@feedmepos/mf-report 5.4.12-beta.1 → 5.4.13-beta.1

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 (27) hide show
  1. package/dist/{App-BfiD9wmy.js → App-DK19Ohw9.js} +5 -5
  2. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js +160 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-6dgHXUk3.js → Default.vue_vue_type_script_setup_true_lang-CjB6ZFYJ.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DKTYFcWp.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DVqkXuFU.js} +3 -3
  5. package/dist/{InsightView-D--f3-pW.js → InsightView-BcOAKbZN.js} +549 -553
  6. package/dist/{Integration-ksYAaTEL.js → Integration-BAWQq8VO.js} +3 -3
  7. package/dist/{Integrations-B-1-XM7e.js → Integrations-WWnSho0Q.js} +1 -1
  8. package/dist/{Layout-C4LN_UCn.js → Layout-CojLlS0K.js} +1 -1
  9. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js → LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js} +2 -2
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-CRAHJk3-.js +258 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BOeN_d37.js → NavigationTab.vue_vue_type_script_setup_true_lang-CidcC3BD.js} +3 -3
  12. package/dist/{OverviewView-Cxr6evbQ.js → OverviewView-ciepJBIF.js} +4 -4
  13. package/dist/{Report-CENcCPN3.js → Report-s6hZYt-c.js} +3 -3
  14. package/dist/{ReportEditor-C9xlGtQB.js → ReportEditor-TWQyn4cl.js} +4 -4
  15. package/dist/{ReportView-CVRJ-zW-.js → ReportView-DOsvGP8h.js} +6 -6
  16. package/dist/{Setting-CjErDTYk.js → Setting-C0h0GVue.js} +4 -4
  17. package/dist/{TileEditor-CCdfNvYC.js → TileEditor-Bt5t1rOk.js} +6 -6
  18. package/dist/{TransitionFade-CJVHPwW2.js → TransitionFade-ijtXaz1S.js} +4 -4
  19. package/dist/app.js +11 -11
  20. package/dist/{global-loader-D0HoIQuN.js → global-loader-CMC9fgBi.js} +572 -569
  21. package/dist/{index-CoXjL8fr.js → index-SmIkb24L.js} +7 -7
  22. package/dist/{report-schema-ZDNzst0e.js → report-schema-G0x3CoJb.js} +5 -5
  23. package/dist/{timeFormat-LsHi_wa0.js → timeFormat-BF-F4Rnt.js} +1 -1
  24. package/dist/{v4-Cp79gNIM.js → v4-Cb0oLva6.js} +1 -1
  25. package/package.json +1 -1
  26. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js +0 -150
  27. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-CRCXKFqR.js +0 -245
@@ -1,25 +1,21 @@
1
- var Xo = Object.defineProperty;
2
- var Ko = (i, t, e) => t in i ? Xo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var k = (i, t, e) => Ko(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { ref as Ht, defineComponent as ne, watch as ai, computed as wt, onMounted as qo, createElementBlock as U, openBlock as z, createElementVNode as R, renderSlot as jn, toDisplayString as ft, resolveDirective as $n, createCommentVNode as Mt, Fragment as Ii, renderList as zi, withDirectives as qe, createVNode as tt, normalizeClass as Ge, resolveComponent as ri, unref as Qt, useModel as Go, createBlock as ue, resolveDynamicComponent as Zo, withCtx as Jt, createTextVNode as Qo, isRef as ki, nextTick as Jo } from "vue";
5
- import { _ as ta } from "./Default.vue_vue_type_script_setup_true_lang-6dgHXUk3.js";
6
- import { _ as ea } from "./HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js";
7
- import { _ as ia } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js";
8
- import { f as Bi, u as Yn, g as Un, F as Xn, a as sa } from "./global-loader-D0HoIQuN.js";
9
- import { storeToRefs as Kn } from "pinia";
10
- import { c as na } from "./index-CoXjL8fr.js";
11
- import { components as oa, useBreakpoints as aa, useSnackbar as ra } from "@feedmepos/ui-library";
12
- import { _ as la } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
13
- import { _ as ca } from "./LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js";
14
- function ha({ start: i, end: t }) {
15
- return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
16
- }
17
- Ht(!0);
1
+ var Uo = Object.defineProperty;
2
+ var Xo = (i, t, e) => t in i ? Uo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var k = (i, t, e) => Xo(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { defineComponent as ne, ref as Qt, watch as ai, computed as wt, onMounted as Ko, createElementBlock as U, openBlock as z, createElementVNode as R, renderSlot as Hn, toDisplayString as ft, resolveDirective as jn, createCommentVNode as Mt, Fragment as Ii, renderList as zi, withDirectives as qe, createVNode as tt, normalizeClass as Ge, resolveComponent as ri, unref as Zt, useModel as qo, createBlock as ue, resolveDynamicComponent as Go, withCtx as Jt, createTextVNode as Zo, isRef as ki, nextTick as Qo } from "vue";
5
+ import { _ as Jo } from "./Default.vue_vue_type_script_setup_true_lang-CjB6ZFYJ.js";
6
+ import { _ as ta } from "./HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js";
7
+ import { f as ea, _ as ia } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js";
8
+ import { u as $n, f as Yn, F as Un, g as sa, a as na } from "./global-loader-CMC9fgBi.js";
9
+ import { storeToRefs as Xn } from "pinia";
10
+ import { c as oa } from "./index-SmIkb24L.js";
11
+ import { components as aa, useBreakpoints as ra, useSnackbar as la } from "@feedmepos/ui-library";
12
+ import { _ as ca } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
13
+ import { _ as ha } from "./LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js";
18
14
  const da = async (i) => {
19
- const { businessId: t } = Kn(Yn());
15
+ const { businessId: t } = Xn($n());
20
16
  if (t) {
21
17
  const e = {
22
- fetchType: Xn.Post,
18
+ fetchType: Un.Post,
23
19
  url: `${t.value}/insights`,
24
20
  data: {
25
21
  ...i,
@@ -27,16 +23,16 @@ const da = async (i) => {
27
23
  // isAnomaly: anomaly.value
28
24
  }
29
25
  };
30
- return Un.fetch(e);
26
+ return Yn.fetch(e);
31
27
  } else
32
28
  return Promise.reject(new Error("Business Id is not defined"));
33
29
  }, ua = async (i) => {
34
- const { businessId: t } = Yn(), e = {
35
- fetchType: Xn.Post,
30
+ const { businessId: t } = $n(), e = {
31
+ fetchType: Un.Post,
36
32
  url: `${t}/insights/feedbacks`,
37
33
  data: i
38
34
  };
39
- return Un.fetch(e);
35
+ return Yn.fetch(e);
40
36
  };
41
37
  /*!
42
38
  * @kurkle/color v0.3.4
@@ -57,10 +53,10 @@ function At(i) {
57
53
  function xt(i) {
58
54
  return St(Le(i / 2.55) / 100, 0, 1);
59
55
  }
60
- function xs(i) {
56
+ function bs(i) {
61
57
  return St(Le(i * 100), 0, 100);
62
58
  }
63
- const at = { 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 }, Vi = [..."0123456789ABCDEF"], fa = (i) => Vi[i & 15], ga = (i) => Vi[(i & 240) >> 4] + Vi[i & 15], Ee = (i) => (i & 240) >> 4 === (i & 15), pa = (i) => Ee(i.r) && Ee(i.g) && Ee(i.b) && Ee(i.a);
59
+ const at = { 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 }, Bi = [..."0123456789ABCDEF"], fa = (i) => Bi[i & 15], ga = (i) => Bi[(i & 240) >> 4] + Bi[i & 15], Ee = (i) => (i & 240) >> 4 === (i & 15), pa = (i) => Ee(i.r) && Ee(i.g) && Ee(i.b) && Ee(i.a);
64
60
  function ma(i) {
65
61
  var t = i.length, e;
66
62
  return i[0] === "#" && (t === 4 || t === 5 ? e = {
@@ -81,7 +77,7 @@ function xa(i) {
81
77
  return i ? "#" + t(i.r) + t(i.g) + t(i.b) + ba(i.a, t) : void 0;
82
78
  }
83
79
  const _a = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
84
- function qn(i, t, e) {
80
+ function Kn(i, t, e) {
85
81
  const s = t * Math.min(e, 1 - e), n = (o, a = (o + i / 30) % 12) => e - s * Math.max(Math.min(a - 3, 9 - a, 1), -1);
86
82
  return [n(0), n(8), n(4)];
87
83
  }
@@ -90,7 +86,7 @@ function ya(i, t, e) {
90
86
  return [s(5), s(3), s(1)];
91
87
  }
92
88
  function va(i, t, e) {
93
- const s = qn(i, 1, 0.5);
89
+ const s = Kn(i, 1, 0.5);
94
90
  let n;
95
91
  for (t + e > 1 && (n = 1 / (t + e), t *= n, e *= n), n = 0; n < 3; n++)
96
92
  s[n] *= 1 - t - e, s[n] += t;
@@ -99,24 +95,24 @@ function va(i, t, e) {
99
95
  function ka(i, t, e, s, n) {
100
96
  return i === n ? (t - e) / s + (t < e ? 6 : 0) : t === n ? (e - i) / s + 2 : (i - t) / s + 4;
101
97
  }
102
- function es(i) {
98
+ function ts(i) {
103
99
  const e = i.r / 255, s = i.g / 255, n = i.b / 255, o = Math.max(e, s, n), a = Math.min(e, s, n), r = (o + a) / 2;
104
100
  let l, c, h;
105
101
  return o !== a && (h = o - a, c = r > 0.5 ? h / (2 - o - a) : h / (o + a), l = ka(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, r];
106
102
  }
107
- function is(i, t, e, s) {
103
+ function es(i, t, e, s) {
108
104
  return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(At);
109
105
  }
110
- function ss(i, t, e) {
111
- return is(qn, i, t, e);
106
+ function is(i, t, e) {
107
+ return es(Kn, i, t, e);
112
108
  }
113
109
  function wa(i, t, e) {
114
- return is(va, i, t, e);
110
+ return es(va, i, t, e);
115
111
  }
116
112
  function Ma(i, t, e) {
117
- return is(ya, i, t, e);
113
+ return es(ya, i, t, e);
118
114
  }
119
- function Gn(i) {
115
+ function qn(i) {
120
116
  return (i % 360 + 360) % 360;
121
117
  }
122
118
  function Sa(i) {
@@ -125,8 +121,8 @@ function Sa(i) {
125
121
  if (!t)
126
122
  return;
127
123
  t[5] !== s && (e = t[6] ? fe(+t[5]) : At(+t[5]));
128
- const n = Gn(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
129
- return t[1] === "hwb" ? s = wa(n, o, a) : t[1] === "hsv" ? s = Ma(n, o, a) : s = ss(n, o, a), {
124
+ const n = qn(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
125
+ return t[1] === "hwb" ? s = wa(n, o, a) : t[1] === "hsv" ? s = Ma(n, o, a) : s = is(n, o, a), {
130
126
  r: s[0],
131
127
  g: s[1],
132
128
  b: s[2],
@@ -134,16 +130,16 @@ function Sa(i) {
134
130
  };
135
131
  }
136
132
  function Pa(i, t) {
137
- var e = es(i);
138
- e[0] = Gn(e[0] + t), e = ss(e), i.r = e[0], i.g = e[1], i.b = e[2];
133
+ var e = ts(i);
134
+ e[0] = qn(e[0] + t), e = is(e), i.r = e[0], i.g = e[1], i.b = e[2];
139
135
  }
140
136
  function Ca(i) {
141
137
  if (!i)
142
138
  return;
143
- const t = es(i), e = t[0], s = xs(t[1]), n = xs(t[2]);
139
+ const t = ts(i), e = t[0], s = bs(t[1]), n = bs(t[2]);
144
140
  return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${xt(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
145
141
  }
146
- const _s = {
142
+ const xs = {
147
143
  x: "dark",
148
144
  Z: "light",
149
145
  Y: "re",
@@ -171,7 +167,7 @@ const _s = {
171
167
  H: "ea",
172
168
  I: "ightg",
173
169
  J: "wh"
174
- }, ys = {
170
+ }, _s = {
175
171
  OiceXe: "f0f8ff",
176
172
  antiquewEte: "faebd7",
177
173
  aqua: "ffff",
@@ -322,12 +318,12 @@ const _s = {
322
318
  LwgYF: "9acd32"
323
319
  };
324
320
  function Da() {
325
- const i = {}, t = Object.keys(ys), e = Object.keys(_s);
321
+ const i = {}, t = Object.keys(_s), e = Object.keys(xs);
326
322
  let s, n, o, a, r;
327
323
  for (s = 0; s < t.length; s++) {
328
324
  for (a = r = t[s], n = 0; n < e.length; n++)
329
- o = e[n], r = r.replace(o, _s[o]);
330
- o = parseInt(ys[a], 16), i[r] = [o >> 16 & 255, o >> 8 & 255, o & 255];
325
+ o = e[n], r = r.replace(o, xs[o]);
326
+ o = parseInt(_s[a], 16), i[r] = [o >> 16 & 255, o >> 8 & 255, o & 255];
331
327
  }
332
328
  return i;
333
329
  }
@@ -362,28 +358,28 @@ function Ta(i) {
362
358
  function La(i) {
363
359
  return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${xt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
364
360
  }
365
- const wi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Gt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
361
+ const wi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, qt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
366
362
  function Ra(i, t, e) {
367
- const s = Gt(xt(i.r)), n = Gt(xt(i.g)), o = Gt(xt(i.b));
363
+ const s = qt(xt(i.r)), n = qt(xt(i.g)), o = qt(xt(i.b));
368
364
  return {
369
- r: At(wi(s + e * (Gt(xt(t.r)) - s))),
370
- g: At(wi(n + e * (Gt(xt(t.g)) - n))),
371
- b: At(wi(o + e * (Gt(xt(t.b)) - o))),
365
+ r: At(wi(s + e * (qt(xt(t.r)) - s))),
366
+ g: At(wi(n + e * (qt(xt(t.g)) - n))),
367
+ b: At(wi(o + e * (qt(xt(t.b)) - o))),
372
368
  a: i.a + e * (t.a - i.a)
373
369
  };
374
370
  }
375
371
  function ze(i, t, e) {
376
372
  if (i) {
377
- let s = es(i);
378
- s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = ss(s), i.r = s[0], i.g = s[1], i.b = s[2];
373
+ let s = ts(i);
374
+ s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = is(s), i.r = s[0], i.g = s[1], i.b = s[2];
379
375
  }
380
376
  }
381
- function Zn(i, t) {
377
+ function Gn(i, t) {
382
378
  return i && Object.assign(t || {}, i);
383
379
  }
384
- function vs(i) {
380
+ function ys(i) {
385
381
  var t = { r: 0, g: 0, b: 0, a: 255 };
386
- return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = At(i[3]))) : (t = Zn(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = At(t.a)), t;
382
+ return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = At(i[3]))) : (t = Gn(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = At(t.a)), t;
387
383
  }
388
384
  function Fa(i) {
389
385
  return i.charAt(0) === "r" ? Ta(i) : Sa(i);
@@ -394,17 +390,17 @@ class Me {
394
390
  return t;
395
391
  const e = typeof t;
396
392
  let s;
397
- e === "object" ? s = vs(t) : e === "string" && (s = ma(t) || Aa(t) || Fa(t)), this._rgb = s, this._valid = !!s;
393
+ e === "object" ? s = ys(t) : e === "string" && (s = ma(t) || Aa(t) || Fa(t)), this._rgb = s, this._valid = !!s;
398
394
  }
399
395
  get valid() {
400
396
  return this._valid;
401
397
  }
402
398
  get rgb() {
403
- var t = Zn(this._rgb);
399
+ var t = Gn(this._rgb);
404
400
  return t && (t.a = xt(t.a)), t;
405
401
  }
406
402
  set rgb(t) {
407
- this._rgb = vs(t);
403
+ this._rgb = ys(t);
408
404
  }
409
405
  rgbString() {
410
406
  return this._valid ? La(this._rgb) : void 0;
@@ -498,7 +494,7 @@ function nt(i, t) {
498
494
  function C(i, t) {
499
495
  return typeof i > "u" ? t : i;
500
496
  }
501
- const Ia = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, Qn = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i;
497
+ const Ia = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, Zn = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i;
502
498
  function I(i, t, e) {
503
499
  if (i && typeof i.call == "function")
504
500
  return i.apply(e, t);
@@ -533,7 +529,7 @@ function ci(i) {
533
529
  }
534
530
  return i;
535
531
  }
536
- function Jn(i) {
532
+ function Qn(i) {
537
533
  return [
538
534
  "__proto__",
539
535
  "prototype",
@@ -541,7 +537,7 @@ function Jn(i) {
541
537
  ].indexOf(i) === -1;
542
538
  }
543
539
  function za(i, t, e, s) {
544
- if (!Jn(i))
540
+ if (!Qn(i))
545
541
  return;
546
542
  const n = t[i], o = e[i];
547
543
  O(n) && O(o) ? Se(n, o, s) : t[i] = ci(o);
@@ -570,12 +566,12 @@ function _e(i, t) {
570
566
  });
571
567
  }
572
568
  function Ba(i, t, e) {
573
- if (!Jn(i))
569
+ if (!Qn(i))
574
570
  return;
575
571
  const s = t[i], n = e[i];
576
572
  O(s) && O(n) ? _e(s, n) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = ci(n));
577
573
  }
578
- const ks = {
574
+ const vs = {
579
575
  // Chart.helpers.core resolveObjectKey should resolve empty key to root object
580
576
  "": (i) => i,
581
577
  // default resolvers
@@ -601,12 +597,12 @@ function Wa(i) {
601
597
  };
602
598
  }
603
599
  function Ot(i, t) {
604
- return (ks[t] || (ks[t] = Wa(t)))(i);
600
+ return (vs[t] || (vs[t] = Wa(t)))(i);
605
601
  }
606
- function ns(i) {
602
+ function ss(i) {
607
603
  return i.charAt(0).toUpperCase() + i.slice(1);
608
604
  }
609
- const Pe = (i) => typeof i < "u", Tt = (i) => typeof i == "function", ws = (i, t) => {
605
+ const Pe = (i) => typeof i < "u", Tt = (i) => typeof i == "function", ks = (i, t) => {
610
606
  if (i.size !== t.size)
611
607
  return !1;
612
608
  for (const e of i)
@@ -617,11 +613,11 @@ const Pe = (i) => typeof i < "u", Tt = (i) => typeof i == "function", ws = (i, t
617
613
  function Na(i) {
618
614
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
619
615
  }
620
- const V = Math.PI, B = 2 * V, Ha = B + V, hi = Number.POSITIVE_INFINITY, ja = V / 180, Y = V / 2, Et = V / 4, Ms = V * 2 / 3, Pt = Math.log10, gt = Math.sign;
616
+ const V = Math.PI, B = 2 * V, Ha = B + V, hi = Number.POSITIVE_INFINITY, ja = V / 180, Y = V / 2, Et = V / 4, ws = V * 2 / 3, Pt = Math.log10, gt = Math.sign;
621
617
  function ye(i, t, e) {
622
618
  return Math.abs(i - t) < e;
623
619
  }
624
- function Ss(i) {
620
+ function Ms(i) {
625
621
  const t = Math.round(i);
626
622
  i = ye(i, t, i / 1e3) ? t : i;
627
623
  const e = Math.pow(10, Math.floor(Pt(i))), s = i / e;
@@ -641,7 +637,7 @@ function Ya(i, t) {
641
637
  const e = Math.round(i);
642
638
  return e - t <= i && e + t >= i;
643
639
  }
644
- function to(i, t, e) {
640
+ function Jn(i, t, e) {
645
641
  let s, n, o;
646
642
  for (s = 0, n = i.length; s < n; s++)
647
643
  o = i[s][e], isNaN(o) || (t.min = Math.min(t.min, o), t.max = Math.max(t.max, o));
@@ -649,10 +645,10 @@ function to(i, t, e) {
649
645
  function lt(i) {
650
646
  return i * (V / 180);
651
647
  }
652
- function os(i) {
648
+ function ns(i) {
653
649
  return i * (180 / V);
654
650
  }
655
- function Ps(i) {
651
+ function Ss(i) {
656
652
  if (!j(i))
657
653
  return;
658
654
  let t = 1, e = 0;
@@ -660,7 +656,7 @@ function Ps(i) {
660
656
  t *= 10, e++;
661
657
  return e;
662
658
  }
663
- function eo(i, t) {
659
+ function to(i, t) {
664
660
  const e = t.x - i.x, s = t.y - i.y, n = Math.sqrt(e * e + s * s);
665
661
  let o = Math.atan2(s, e);
666
662
  return o < -0.5 * V && (o += B), {
@@ -668,7 +664,7 @@ function eo(i, t) {
668
664
  distance: n
669
665
  };
670
666
  }
671
- function Wi(i, t) {
667
+ function Vi(i, t) {
672
668
  return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
673
669
  }
674
670
  function Ua(i, t) {
@@ -690,7 +686,7 @@ function Xa(i) {
690
686
  function yt(i, t, e, s = 1e-6) {
691
687
  return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s;
692
688
  }
693
- function as(i, t, e) {
689
+ function os(i, t, e) {
694
690
  e = e || ((a) => i[a] < t);
695
691
  let s = i.length - 1, n = 0, o;
696
692
  for (; s - n > 1; )
@@ -700,10 +696,10 @@ function as(i, t, e) {
700
696
  hi: s
701
697
  };
702
698
  }
703
- const vt = (i, t, e, s) => as(i, e, s ? (n) => {
699
+ const vt = (i, t, e, s) => os(i, e, s ? (n) => {
704
700
  const o = i[n][t];
705
701
  return o < e || o === e && i[n + 1][t] === e;
706
- } : (n) => i[n][t] < e), Ka = (i, t, e) => as(i, e, (s) => i[s][t] >= e);
702
+ } : (n) => i[n][t] < e), Ka = (i, t, e) => os(i, e, (s) => i[s][t] >= e);
707
703
  function qa(i, t, e) {
708
704
  let s = 0, n = i.length;
709
705
  for (; s < n && i[s] < t; )
@@ -712,7 +708,7 @@ function qa(i, t, e) {
712
708
  n--;
713
709
  return s > 0 || n < i.length ? i.slice(s, n) : i;
714
710
  }
715
- const io = [
711
+ const eo = [
716
712
  "push",
717
713
  "pop",
718
714
  "shift",
@@ -732,8 +728,8 @@ function Ga(i, t) {
732
728
  t
733
729
  ]
734
730
  }
735
- }), io.forEach((e) => {
736
- const s = "_onData" + ns(e), n = i[e];
731
+ }), eo.forEach((e) => {
732
+ const s = "_onData" + ss(e), n = i[e];
737
733
  Object.defineProperty(i, e, {
738
734
  configurable: !0,
739
735
  enumerable: !1,
@@ -746,28 +742,28 @@ function Ga(i, t) {
746
742
  });
747
743
  });
748
744
  }
749
- function Cs(i, t) {
745
+ function Ps(i, t) {
750
746
  const e = i._chartjs;
751
747
  if (!e)
752
748
  return;
753
749
  const s = e.listeners, n = s.indexOf(t);
754
- n !== -1 && s.splice(n, 1), !(s.length > 0) && (io.forEach((o) => {
750
+ n !== -1 && s.splice(n, 1), !(s.length > 0) && (eo.forEach((o) => {
755
751
  delete i[o];
756
752
  }), delete i._chartjs);
757
753
  }
758
- function so(i) {
754
+ function io(i) {
759
755
  const t = new Set(i);
760
756
  return t.size === i.length ? i : Array.from(t);
761
757
  }
762
- const no = function() {
758
+ const so = function() {
763
759
  return typeof window > "u" ? function(i) {
764
760
  return i();
765
761
  } : window.requestAnimationFrame;
766
762
  }();
767
- function oo(i, t) {
763
+ function no(i, t) {
768
764
  let e = [], s = !1;
769
765
  return function(...n) {
770
- e = n, s || (s = !0, no.call(window, () => {
766
+ e = n, s || (s = !0, so.call(window, () => {
771
767
  s = !1, i.apply(t, e);
772
768
  }));
773
769
  };
@@ -778,8 +774,8 @@ function Za(i, t) {
778
774
  return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t;
779
775
  };
780
776
  }
781
- const rs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Qa = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
782
- function ao(i, t, e) {
777
+ const as = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Qa = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
778
+ function oo(i, t, e) {
783
779
  const s = t.length;
784
780
  let n = 0, o = s;
785
781
  if (i._sorted) {
@@ -801,7 +797,7 @@ function ao(i, t, e) {
801
797
  count: o
802
798
  };
803
799
  }
804
- function ro(i) {
800
+ function ao(i) {
805
801
  const { xScale: t, yScale: e, _scaleRanges: s } = i, n = {
806
802
  xmin: t.min,
807
803
  xmax: t.max,
@@ -813,7 +809,7 @@ function ro(i) {
813
809
  const o = s.xmin !== t.min || s.xmax !== t.max || s.ymin !== e.min || s.ymax !== e.max;
814
810
  return Object.assign(s, n), o;
815
811
  }
816
- const Be = (i) => i === 0 || i === 1, Ds = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * B / e)), As = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * B / e) + 1, ve = {
812
+ const Be = (i) => i === 0 || i === 1, Cs = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * B / e)), Ds = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * B / e) + 1, ve = {
817
813
  linear: (i) => i,
818
814
  easeInQuad: (i) => i * i,
819
815
  easeOutQuad: (i) => -i * (i - 2),
@@ -836,10 +832,10 @@ const Be = (i) => i === 0 || i === 1, Ds = (i, t, e) => -(Math.pow(2, 10 * (i -=
836
832
  easeInCirc: (i) => i >= 1 ? i : -(Math.sqrt(1 - i * i) - 1),
837
833
  easeOutCirc: (i) => Math.sqrt(1 - (i -= 1) * i),
838
834
  easeInOutCirc: (i) => (i /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - i * i) - 1) : 0.5 * (Math.sqrt(1 - (i -= 2) * i) + 1),
839
- easeInElastic: (i) => Be(i) ? i : Ds(i, 0.075, 0.3),
840
- easeOutElastic: (i) => Be(i) ? i : As(i, 0.075, 0.3),
835
+ easeInElastic: (i) => Be(i) ? i : Cs(i, 0.075, 0.3),
836
+ easeOutElastic: (i) => Be(i) ? i : Ds(i, 0.075, 0.3),
841
837
  easeInOutElastic(i) {
842
- return Be(i) ? i : i < 0.5 ? 0.5 * Ds(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * As(i * 2 - 1, 0.1125, 0.45);
838
+ return Be(i) ? i : i < 0.5 ? 0.5 * Cs(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Ds(i * 2 - 1, 0.1125, 0.45);
843
839
  },
844
840
  easeInBack(i) {
845
841
  return i * i * ((1.70158 + 1) * i - 1.70158);
@@ -857,18 +853,18 @@ const Be = (i) => i === 0 || i === 1, Ds = (i, t, e) => -(Math.pow(2, 10 * (i -=
857
853
  },
858
854
  easeInOutBounce: (i) => i < 0.5 ? ve.easeInBounce(i * 2) * 0.5 : ve.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
859
855
  };
860
- function ls(i) {
856
+ function rs(i) {
861
857
  if (i && typeof i == "object") {
862
858
  const t = i.toString();
863
859
  return t === "[object CanvasPattern]" || t === "[object CanvasGradient]";
864
860
  }
865
861
  return !1;
866
862
  }
867
- function Os(i) {
868
- return ls(i) ? i : new Me(i);
863
+ function As(i) {
864
+ return rs(i) ? i : new Me(i);
869
865
  }
870
866
  function Mi(i) {
871
- return ls(i) ? i : new Me(i).saturate(0.5).darken(0.1).hexString();
867
+ return rs(i) ? i : new Me(i).saturate(0.5).darken(0.1).hexString();
872
868
  }
873
869
  const Ja = [
874
870
  "x",
@@ -953,17 +949,17 @@ function ir(i) {
953
949
  }
954
950
  });
955
951
  }
956
- const Ts = /* @__PURE__ */ new Map();
952
+ const Os = /* @__PURE__ */ new Map();
957
953
  function sr(i, t) {
958
954
  t = t || {};
959
955
  const e = i + JSON.stringify(t);
960
- let s = Ts.get(e);
961
- return s || (s = new Intl.NumberFormat(i, t), Ts.set(e, s)), s;
956
+ let s = Os.get(e);
957
+ return s || (s = new Intl.NumberFormat(i, t), Os.set(e, s)), s;
962
958
  }
963
959
  function Re(i, t, e) {
964
960
  return sr(t, e).format(i);
965
961
  }
966
- const lo = {
962
+ const ro = {
967
963
  values(i) {
968
964
  return N(i) ? i : "" + i;
969
965
  },
@@ -994,7 +990,7 @@ const lo = {
994
990
  5,
995
991
  10,
996
992
  15
997
- ].includes(s) || t > 0.8 * e.length ? lo.numeric.call(this, i, t, e) : "";
993
+ ].includes(s) || t > 0.8 * e.length ? ro.numeric.call(this, i, t, e) : "";
998
994
  }
999
995
  };
1000
996
  function nr(i, t) {
@@ -1002,7 +998,7 @@ function nr(i, t) {
1002
998
  return Math.abs(e) >= 1 && i !== Math.floor(i) && (e = i - Math.floor(i)), e;
1003
999
  }
1004
1000
  var mi = {
1005
- formatters: lo
1001
+ formatters: ro
1006
1002
  };
1007
1003
  function or(i) {
1008
1004
  i.set("scale", {
@@ -1068,7 +1064,7 @@ function or(i) {
1068
1064
  _indexable: (t) => t !== "backdropPadding"
1069
1065
  });
1070
1066
  }
1071
- const Yt = /* @__PURE__ */ Object.create(null), Ni = /* @__PURE__ */ Object.create(null);
1067
+ const $t = /* @__PURE__ */ Object.create(null), Wi = /* @__PURE__ */ Object.create(null);
1072
1068
  function ke(i, t) {
1073
1069
  if (!t)
1074
1070
  return i;
@@ -1109,10 +1105,10 @@ class ar {
1109
1105
  return ke(this, t);
1110
1106
  }
1111
1107
  describe(t, e) {
1112
- return Si(Ni, t, e);
1108
+ return Si(Wi, t, e);
1113
1109
  }
1114
1110
  override(t, e) {
1115
- return Si(Yt, t, e);
1111
+ return Si($t, t, e);
1116
1112
  }
1117
1113
  route(t, e, s, n) {
1118
1114
  const o = ke(this, t), a = ke(this, s), r = "_" + e;
@@ -1185,13 +1181,13 @@ function It(i, t, e) {
1185
1181
  const s = i.currentDevicePixelRatio, n = e !== 0 ? Math.max(e / 2, 0.5) : 0;
1186
1182
  return Math.round((t - n) * s) / s + n;
1187
1183
  }
1188
- function Ls(i, t) {
1184
+ function Ts(i, t) {
1189
1185
  !t && !i || (t = t || i.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, i.width, i.height), t.restore());
1190
1186
  }
1191
- function Hi(i, t, e, s) {
1192
- co(i, t, e, s, null);
1187
+ function Ni(i, t, e, s) {
1188
+ lo(i, t, e, s, null);
1193
1189
  }
1194
- function co(i, t, e, s, n) {
1190
+ function lo(i, t, e, s, n) {
1195
1191
  let o, a, r, l, c, h, d, u;
1196
1192
  const f = t.pointStyle, g = t.rotation, p = t.radius;
1197
1193
  let m = (g || 0) * ja;
@@ -1205,7 +1201,7 @@ function co(i, t, e, s, n) {
1205
1201
  n ? i.ellipse(e, s, n / 2, p, 0, 0, B) : i.arc(e, s, p, 0, B), i.closePath();
1206
1202
  break;
1207
1203
  case "triangle":
1208
- h = n ? n / 2 : p, i.moveTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += Ms, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += Ms, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), i.closePath();
1204
+ h = n ? n / 2 : p, i.moveTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += ws, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += ws, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), i.closePath();
1209
1205
  break;
1210
1206
  case "rectRounded":
1211
1207
  c = p * 0.516, l = p - c, a = Math.cos(m + Et) * l, d = Math.cos(m + Et) * (n ? n / 2 - c : l), r = Math.sin(m + Et) * l, u = Math.sin(m + Et) * (n ? n / 2 - c : l), i.arc(e - d, s - r, c, m - V, m - Y), i.arc(e + u, s - a, c, m - Y, m), i.arc(e + d, s + r, c, m, m + Y), i.arc(e - u, s + a, c, m + Y, m + V), i.closePath();
@@ -1276,7 +1272,7 @@ function fr(i, t) {
1276
1272
  const e = i.fillStyle;
1277
1273
  i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
1278
1274
  }
1279
- function Ut(i, t, e, s, n, o = {}) {
1275
+ function Yt(i, t, e, s, n, o = {}) {
1280
1276
  const a = N(t) ? t : [
1281
1277
  t
1282
1278
  ], r = o.strokeWidth > 0 && o.strokeColor !== "";
@@ -1304,22 +1300,22 @@ function mr(i, t) {
1304
1300
  return t * i;
1305
1301
  }
1306
1302
  const br = (i) => +i || 0;
1307
- function cs(i, t) {
1303
+ function ls(i, t) {
1308
1304
  const e = {}, s = O(t), n = s ? Object.keys(t) : t, o = O(i) ? s ? (a) => C(i[a], i[t[a]]) : (a) => i[a] : () => i;
1309
1305
  for (const a of n)
1310
1306
  e[a] = br(o(a));
1311
1307
  return e;
1312
1308
  }
1313
- function ho(i) {
1314
- return cs(i, {
1309
+ function co(i) {
1310
+ return ls(i, {
1315
1311
  top: "y",
1316
1312
  right: "x",
1317
1313
  bottom: "y",
1318
1314
  left: "x"
1319
1315
  });
1320
1316
  }
1321
- function jt(i) {
1322
- return cs(i, [
1317
+ function Ht(i) {
1318
+ return ls(i, [
1323
1319
  "topLeft",
1324
1320
  "topRight",
1325
1321
  "bottomLeft",
@@ -1327,7 +1323,7 @@ function jt(i) {
1327
1323
  ]);
1328
1324
  }
1329
1325
  function J(i) {
1330
- const t = ho(i);
1326
+ const t = co(i);
1331
1327
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1332
1328
  }
1333
1329
  function X(i, t) {
@@ -1353,7 +1349,7 @@ function ge(i, t, e, s) {
1353
1349
  return a;
1354
1350
  }
1355
1351
  function xr(i, t, e) {
1356
- const { min: s, max: n } = i, o = Qn(t, (n - s) / 2), a = (r, l) => e && r === 0 ? 0 : r + l;
1352
+ const { min: s, max: n } = i, o = Zn(t, (n - s) / 2), a = (r, l) => e && r === 0 ? 0 : r + l;
1357
1353
  return {
1358
1354
  min: a(s, -Math.abs(o)),
1359
1355
  max: a(n, o)
@@ -1362,11 +1358,11 @@ function xr(i, t, e) {
1362
1358
  function Lt(i, t) {
1363
1359
  return Object.assign(Object.create(i), t);
1364
1360
  }
1365
- function hs(i, t = [
1361
+ function cs(i, t = [
1366
1362
  ""
1367
1363
  ], e, s, n = () => i[0]) {
1368
1364
  const o = e || i;
1369
- typeof s > "u" && (s = po("_fallback", i));
1365
+ typeof s > "u" && (s = go("_fallback", i));
1370
1366
  const a = {
1371
1367
  [Symbol.toStringTag]: "Object",
1372
1368
  _cacheable: !0,
@@ -1374,7 +1370,7 @@ function hs(i, t = [
1374
1370
  _rootScopes: o,
1375
1371
  _fallback: s,
1376
1372
  _getTarget: n,
1377
- override: (r) => hs([
1373
+ override: (r) => cs([
1378
1374
  r,
1379
1375
  ...i
1380
1376
  ], t, o, s)
@@ -1390,7 +1386,7 @@ function hs(i, t = [
1390
1386
  * A trap for getting property values.
1391
1387
  */
1392
1388
  get(r, l) {
1393
- return fo(r, l, () => Pr(l, t, i, r));
1389
+ return uo(r, l, () => Pr(l, t, i, r));
1394
1390
  },
1395
1391
  /**
1396
1392
  * A trap for Object.getOwnPropertyDescriptor.
@@ -1409,13 +1405,13 @@ function hs(i, t = [
1409
1405
  * A trap for the in operator.
1410
1406
  */
1411
1407
  has(r, l) {
1412
- return Fs(r).includes(l);
1408
+ return Rs(r).includes(l);
1413
1409
  },
1414
1410
  /**
1415
1411
  * A trap for Object.getOwnPropertyNames and Object.getOwnPropertySymbols.
1416
1412
  */
1417
1413
  ownKeys(r) {
1418
- return Fs(r);
1414
+ return Rs(r);
1419
1415
  },
1420
1416
  /**
1421
1417
  * A trap for setting property values.
@@ -1433,7 +1429,7 @@ function ie(i, t, e, s) {
1433
1429
  _context: t,
1434
1430
  _subProxy: e,
1435
1431
  _stack: /* @__PURE__ */ new Set(),
1436
- _descriptors: uo(i, s),
1432
+ _descriptors: ho(i, s),
1437
1433
  setContext: (o) => ie(i, o, e, s),
1438
1434
  override: (o) => ie(i.override(o), t, e, s)
1439
1435
  };
@@ -1448,7 +1444,7 @@ function ie(i, t, e, s) {
1448
1444
  * A trap for getting property values.
1449
1445
  */
1450
1446
  get(o, a, r) {
1451
- return fo(o, a, () => yr(o, a, r));
1447
+ return uo(o, a, () => yr(o, a, r));
1452
1448
  },
1453
1449
  /**
1454
1450
  * A trap for Object.getOwnPropertyDescriptor.
@@ -1486,7 +1482,7 @@ function ie(i, t, e, s) {
1486
1482
  }
1487
1483
  });
1488
1484
  }
1489
- function uo(i, t = {
1485
+ function ho(i, t = {
1490
1486
  scriptable: !0,
1491
1487
  indexable: !0
1492
1488
  }) {
@@ -1499,8 +1495,8 @@ function uo(i, t = {
1499
1495
  isIndexable: Tt(s) ? s : () => s
1500
1496
  };
1501
1497
  }
1502
- const _r = (i, t) => i ? i + ns(t) : t, ds = (i, t) => O(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1503
- function fo(i, t, e) {
1498
+ const _r = (i, t) => i ? i + ss(t) : t, hs = (i, t) => O(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1499
+ function uo(i, t, e) {
1504
1500
  if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
1505
1501
  return i[t];
1506
1502
  const s = e();
@@ -1509,7 +1505,7 @@ function fo(i, t, e) {
1509
1505
  function yr(i, t, e) {
1510
1506
  const { _proxy: s, _context: n, _subProxy: o, _descriptors: a } = i;
1511
1507
  let r = s[t];
1512
- return Tt(r) && a.isScriptable(t) && (r = vr(t, r, i, e)), N(r) && r.length && (r = kr(t, r, i, a.isIndexable)), ds(t, r) && (r = ie(r, n, o && o[t], a)), r;
1508
+ return Tt(r) && a.isScriptable(t) && (r = vr(t, r, i, e)), N(r) && r.length && (r = kr(t, r, i, a.isIndexable)), hs(t, r) && (r = ie(r, n, o && o[t], a)), r;
1513
1509
  }
1514
1510
  function vr(i, t, e, s) {
1515
1511
  const { _proxy: n, _context: o, _subProxy: a, _stack: r } = e;
@@ -1517,7 +1513,7 @@ function vr(i, t, e, s) {
1517
1513
  throw new Error("Recursion detected: " + Array.from(r).join("->") + "->" + i);
1518
1514
  r.add(i);
1519
1515
  let l = t(o, a || s);
1520
- return r.delete(i), ds(i, l) && (l = us(n._scopes, n, i, l)), l;
1516
+ return r.delete(i), hs(i, l) && (l = ds(n._scopes, n, i, l)), l;
1521
1517
  }
1522
1518
  function kr(i, t, e, s) {
1523
1519
  const { _proxy: n, _context: o, _subProxy: a, _descriptors: r } = e;
@@ -1527,13 +1523,13 @@ function kr(i, t, e, s) {
1527
1523
  const l = t, c = n._scopes.filter((h) => h !== l);
1528
1524
  t = [];
1529
1525
  for (const h of l) {
1530
- const d = us(c, n, i, h);
1526
+ const d = ds(c, n, i, h);
1531
1527
  t.push(ie(d, o, a && a[i], r));
1532
1528
  }
1533
1529
  }
1534
1530
  return t;
1535
1531
  }
1536
- function go(i, t, e) {
1532
+ function fo(i, t, e) {
1537
1533
  return Tt(i) ? i(t, e) : i;
1538
1534
  }
1539
1535
  const wr = (i, t) => i === !0 ? t : typeof i == "string" ? Ot(t, i) : void 0;
@@ -1542,7 +1538,7 @@ function Mr(i, t, e, s, n) {
1542
1538
  const a = wr(e, o);
1543
1539
  if (a) {
1544
1540
  i.add(a);
1545
- const r = go(a._fallback, e, n);
1541
+ const r = fo(a._fallback, e, n);
1546
1542
  if (typeof r < "u" && r !== e && r !== s)
1547
1543
  return r;
1548
1544
  } else if (a === !1 && typeof s < "u" && e !== s)
@@ -1550,18 +1546,18 @@ function Mr(i, t, e, s, n) {
1550
1546
  }
1551
1547
  return !1;
1552
1548
  }
1553
- function us(i, t, e, s) {
1554
- const n = t._rootScopes, o = go(t._fallback, e, s), a = [
1549
+ function ds(i, t, e, s) {
1550
+ const n = t._rootScopes, o = fo(t._fallback, e, s), a = [
1555
1551
  ...i,
1556
1552
  ...n
1557
1553
  ], r = /* @__PURE__ */ new Set();
1558
1554
  r.add(s);
1559
- let l = Rs(r, a, e, o || e, s);
1560
- return l === null || typeof o < "u" && o !== e && (l = Rs(r, a, o, l, s), l === null) ? !1 : hs(Array.from(r), [
1555
+ let l = Ls(r, a, e, o || e, s);
1556
+ return l === null || typeof o < "u" && o !== e && (l = Ls(r, a, o, l, s), l === null) ? !1 : cs(Array.from(r), [
1561
1557
  ""
1562
1558
  ], n, o, () => Sr(t, e, s));
1563
1559
  }
1564
- function Rs(i, t, e, s, n) {
1560
+ function Ls(i, t, e, s, n) {
1565
1561
  for (; e; )
1566
1562
  e = Mr(i, t, e, s, n);
1567
1563
  return e;
@@ -1575,10 +1571,10 @@ function Sr(i, t, e) {
1575
1571
  function Pr(i, t, e, s) {
1576
1572
  let n;
1577
1573
  for (const o of t)
1578
- if (n = po(_r(o, i), e), typeof n < "u")
1579
- return ds(i, n) ? us(e, s, i, n) : n;
1574
+ if (n = go(_r(o, i), e), typeof n < "u")
1575
+ return hs(i, n) ? ds(e, s, i, n) : n;
1580
1576
  }
1581
- function po(i, t) {
1577
+ function go(i, t) {
1582
1578
  for (const e of t) {
1583
1579
  if (!e)
1584
1580
  continue;
@@ -1587,7 +1583,7 @@ function po(i, t) {
1587
1583
  return s;
1588
1584
  }
1589
1585
  }
1590
- function Fs(i) {
1586
+ function Rs(i) {
1591
1587
  let t = i._keys;
1592
1588
  return t || (t = i._keys = Cr(i._scopes)), t;
1593
1589
  }
@@ -1598,7 +1594,7 @@ function Cr(i) {
1598
1594
  t.add(s);
1599
1595
  return Array.from(t);
1600
1596
  }
1601
- function mo(i, t, e, s) {
1597
+ function po(i, t, e, s) {
1602
1598
  const { iScale: n } = i, { key: o = "r" } = this._parsing, a = new Array(s);
1603
1599
  let r, l, c, h;
1604
1600
  for (r = 0, l = s; r < l; ++r)
@@ -1607,9 +1603,9 @@ function mo(i, t, e, s) {
1607
1603
  };
1608
1604
  return a;
1609
1605
  }
1610
- const Dr = Number.EPSILON || 1e-14, se = (i, t) => t < i.length && !i[t].skip && i[t], bo = (i) => i === "x" ? "y" : "x";
1606
+ const Dr = Number.EPSILON || 1e-14, se = (i, t) => t < i.length && !i[t].skip && i[t], mo = (i) => i === "x" ? "y" : "x";
1611
1607
  function Ar(i, t, e, s) {
1612
- const n = i.skip ? t : i, o = t, a = e.skip ? t : e, r = Wi(o, n), l = Wi(a, o);
1608
+ const n = i.skip ? t : i, o = t, a = e.skip ? t : e, r = Vi(o, n), l = Vi(a, o);
1613
1609
  let c = r / (r + l), h = l / (r + l);
1614
1610
  c = isNaN(c) ? 0 : c, h = isNaN(h) ? 0 : h;
1615
1611
  const d = s * c, u = s * h;
@@ -1637,7 +1633,7 @@ function Or(i, t, e) {
1637
1633
  }
1638
1634
  }
1639
1635
  function Tr(i, t, e = "x") {
1640
- const s = bo(e), n = i.length;
1636
+ const s = mo(e), n = i.length;
1641
1637
  let o, a, r, l = se(i, 0);
1642
1638
  for (let c = 0; c < n; ++c) {
1643
1639
  if (a = r, r = l, l = se(i, c + 1), !r)
@@ -1647,7 +1643,7 @@ function Tr(i, t, e = "x") {
1647
1643
  }
1648
1644
  }
1649
1645
  function Lr(i, t = "x") {
1650
- const e = bo(t), s = i.length, n = Array(s).fill(0), o = Array(s);
1646
+ const e = mo(t), s = i.length, n = Array(s).fill(0), o = Array(s);
1651
1647
  let a, r, l, c = se(i, 0);
1652
1648
  for (a = 0; a < s; ++a)
1653
1649
  if (r = l, l = c, c = se(i, a + 1), !!l) {
@@ -1678,10 +1674,10 @@ function Fr(i, t, e, s, n) {
1678
1674
  }
1679
1675
  t.capBezierPoints && Rr(i, e);
1680
1676
  }
1681
- function fs() {
1677
+ function us() {
1682
1678
  return typeof window < "u" && typeof document < "u";
1683
1679
  }
1684
- function gs(i) {
1680
+ function fs(i) {
1685
1681
  let t = i.parentNode;
1686
1682
  return t && t.toString() === "[object ShadowRoot]" && (t = t.host), t;
1687
1683
  }
@@ -1699,7 +1695,7 @@ const Ir = [
1699
1695
  "bottom",
1700
1696
  "left"
1701
1697
  ];
1702
- function $t(i, t, e) {
1698
+ function jt(i, t, e) {
1703
1699
  const s = {};
1704
1700
  e = e ? "-" + e : "";
1705
1701
  for (let n = 0; n < 4; n++) {
@@ -1727,7 +1723,7 @@ function Br(i, t) {
1727
1723
  function Vt(i, t) {
1728
1724
  if ("native" in i)
1729
1725
  return i;
1730
- const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = $t(n, "padding"), r = $t(n, "border", "width"), { x: l, y: c, box: h } = Br(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
1726
+ const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = jt(n, "padding"), r = jt(n, "border", "width"), { x: l, y: c, box: h } = Br(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
1731
1727
  let { width: f, height: g } = t;
1732
1728
  return o && (f -= a.width + r.width, g -= a.height + r.height), {
1733
1729
  x: Math.round((l - d) / f * e.width / s),
@@ -1737,11 +1733,11 @@ function Vt(i, t) {
1737
1733
  function Vr(i, t, e) {
1738
1734
  let s, n;
1739
1735
  if (t === void 0 || e === void 0) {
1740
- const o = i && gs(i);
1736
+ const o = i && fs(i);
1741
1737
  if (!o)
1742
1738
  t = i.clientWidth, e = i.clientHeight;
1743
1739
  else {
1744
- const a = o.getBoundingClientRect(), r = _i(o), l = $t(r, "border", "width"), c = $t(r, "padding");
1740
+ const a = o.getBoundingClientRect(), r = _i(o), l = jt(r, "border", "width"), c = jt(r, "padding");
1745
1741
  t = a.width - c.width - l.width, e = a.height - c.height - l.height, s = ui(r.maxWidth, o, "clientWidth"), n = ui(r.maxHeight, o, "clientHeight");
1746
1742
  }
1747
1743
  }
@@ -1754,10 +1750,10 @@ function Vr(i, t, e) {
1754
1750
  }
1755
1751
  const We = (i) => Math.round(i * 10) / 10;
1756
1752
  function Wr(i, t, e, s) {
1757
- const n = _i(i), o = $t(n, "margin"), a = ui(n.maxWidth, i, "clientWidth") || hi, r = ui(n.maxHeight, i, "clientHeight") || hi, l = Vr(i, t, e);
1753
+ const n = _i(i), o = jt(n, "margin"), a = ui(n.maxWidth, i, "clientWidth") || hi, r = ui(n.maxHeight, i, "clientHeight") || hi, l = Vr(i, t, e);
1758
1754
  let { width: c, height: h } = l;
1759
1755
  if (n.boxSizing === "content-box") {
1760
- const u = $t(n, "border", "width"), f = $t(n, "padding");
1756
+ const u = jt(n, "border", "width"), f = jt(n, "padding");
1761
1757
  c -= f.width + u.width, h -= f.height + u.height;
1762
1758
  }
1763
1759
  return c = Math.max(0, c - o.width), h = Math.max(0, s ? c / s : h - o.height), c = We(Math.min(c, a, l.maxWidth)), h = We(Math.min(h, r, l.maxHeight)), c && !h && (h = We(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && h > l.height && (h = l.height, c = We(Math.floor(h * s))), {
@@ -1765,7 +1761,7 @@ function Wr(i, t, e, s) {
1765
1761
  height: h
1766
1762
  };
1767
1763
  }
1768
- function Es(i, t, e) {
1764
+ function Fs(i, t, e) {
1769
1765
  const s = t || 1, n = Math.floor(i.height * s), o = Math.floor(i.width * s);
1770
1766
  i.height = Math.floor(i.height), i.width = Math.floor(i.width);
1771
1767
  const a = i.canvas;
@@ -1779,12 +1775,12 @@ const Nr = function() {
1779
1775
  return i = !0, !1;
1780
1776
  }
1781
1777
  };
1782
- fs() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1778
+ us() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1783
1779
  } catch {
1784
1780
  }
1785
1781
  return i;
1786
1782
  }();
1787
- function Is(i, t) {
1783
+ function Es(i, t) {
1788
1784
  const e = Er(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
1789
1785
  return s ? +s[1] : void 0;
1790
1786
  }
@@ -1849,17 +1845,17 @@ const $r = function(i, t) {
1849
1845
  function te(i, t, e) {
1850
1846
  return i ? $r(t, e) : Yr();
1851
1847
  }
1852
- function xo(i, t) {
1848
+ function bo(i, t) {
1853
1849
  let e, s;
1854
1850
  (t === "ltr" || t === "rtl") && (e = i.canvas.style, s = [
1855
1851
  e.getPropertyValue("direction"),
1856
1852
  e.getPropertyPriority("direction")
1857
1853
  ], e.setProperty("direction", t, "important"), i.prevTextDirection = s);
1858
1854
  }
1859
- function _o(i, t) {
1855
+ function xo(i, t) {
1860
1856
  t !== void 0 && (delete i.prevTextDirection, i.canvas.style.setProperty("direction", t[0], t[1]));
1861
1857
  }
1862
- function yo(i) {
1858
+ function _o(i) {
1863
1859
  return i === "angle" ? {
1864
1860
  between: Ce,
1865
1861
  compare: Ua,
@@ -1870,7 +1866,7 @@ function yo(i) {
1870
1866
  normalize: (t) => t
1871
1867
  };
1872
1868
  }
1873
- function zs({ start: i, end: t, count: e, loop: s, style: n }) {
1869
+ function Is({ start: i, end: t, count: e, loop: s, style: n }) {
1874
1870
  return {
1875
1871
  start: i % e,
1876
1872
  end: t % e,
@@ -1879,7 +1875,7 @@ function zs({ start: i, end: t, count: e, loop: s, style: n }) {
1879
1875
  };
1880
1876
  }
1881
1877
  function Ur(i, t, e) {
1882
- const { property: s, start: n, end: o } = e, { between: a, normalize: r } = yo(s), l = t.length;
1878
+ const { property: s, start: n, end: o } = e, { between: a, normalize: r } = _o(s), l = t.length;
1883
1879
  let { start: c, end: h, loop: d } = i, u, f;
1884
1880
  if (d) {
1885
1881
  for (c += l, h += l, u = 0, f = l; u < f && a(r(t[c % l][s]), n, o); ++u)
@@ -1893,23 +1889,23 @@ function Ur(i, t, e) {
1893
1889
  style: i.style
1894
1890
  };
1895
1891
  }
1896
- function vo(i, t, e) {
1892
+ function yo(i, t, e) {
1897
1893
  if (!e)
1898
1894
  return [
1899
1895
  i
1900
1896
  ];
1901
- const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = yo(s), { start: h, end: d, loop: u, style: f } = Ur(i, t, e), g = [];
1897
+ const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = _o(s), { start: h, end: d, loop: u, style: f } = Ur(i, t, e), g = [];
1902
1898
  let p = !1, m = null, b, x, v;
1903
1899
  const y = () => l(n, v, b) && r(n, v) !== 0, _ = () => r(o, b) === 0 || l(o, v, b), w = () => p || y(), M = () => !p || _();
1904
1900
  for (let S = h, P = h; S <= d; ++S)
1905
- x = t[S % a], !x.skip && (b = c(x[s]), b !== v && (p = l(b, n, o), m === null && w() && (m = r(b, n) === 0 ? S : P), m !== null && M() && (g.push(zs({
1901
+ x = t[S % a], !x.skip && (b = c(x[s]), b !== v && (p = l(b, n, o), m === null && w() && (m = r(b, n) === 0 ? S : P), m !== null && M() && (g.push(Is({
1906
1902
  start: m,
1907
1903
  end: S,
1908
1904
  loop: u,
1909
1905
  count: a,
1910
1906
  style: f
1911
1907
  })), m = null), P = S, v = b));
1912
- return m !== null && g.push(zs({
1908
+ return m !== null && g.push(Is({
1913
1909
  start: m,
1914
1910
  end: d,
1915
1911
  loop: u,
@@ -1917,10 +1913,10 @@ function vo(i, t, e) {
1917
1913
  style: f
1918
1914
  })), g;
1919
1915
  }
1920
- function ko(i, t) {
1916
+ function vo(i, t) {
1921
1917
  const e = [], s = i.segments;
1922
1918
  for (let n = 0; n < s.length; n++) {
1923
- const o = vo(s[n], i.points, t);
1919
+ const o = yo(s[n], i.points, t);
1924
1920
  o.length && e.push(...o);
1925
1921
  }
1926
1922
  return e;
@@ -1962,7 +1958,7 @@ function qr(i, t) {
1962
1958
  return [];
1963
1959
  const o = !!i._loop, { start: a, end: r } = Xr(e, n, o, s);
1964
1960
  if (s === !0)
1965
- return Bs(i, [
1961
+ return zs(i, [
1966
1962
  {
1967
1963
  start: a,
1968
1964
  end: r,
@@ -1970,13 +1966,13 @@ function qr(i, t) {
1970
1966
  }
1971
1967
  ], e, t);
1972
1968
  const l = r < a ? r + n : r, c = !!i._fullLoop && a === 0 && r === n - 1;
1973
- return Bs(i, Kr(e, a, l, c), e, t);
1969
+ return zs(i, Kr(e, a, l, c), e, t);
1974
1970
  }
1975
- function Bs(i, t, e, s) {
1971
+ function zs(i, t, e, s) {
1976
1972
  return !s || !s.setContext || !e ? t : Gr(i, t, e, s);
1977
1973
  }
1978
1974
  function Gr(i, t, e, s) {
1979
- const n = i._chart.getContext(), o = Vs(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, c = [];
1975
+ const n = i._chart.getContext(), o = Bs(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, c = [];
1980
1976
  let h = o, d = t[0].start, u = d;
1981
1977
  function f(g, p, m, b) {
1982
1978
  const x = r ? -1 : 1;
@@ -1998,7 +1994,7 @@ function Gr(i, t, e, s) {
1998
1994
  let p = e[d % l], m;
1999
1995
  for (u = d + 1; u <= g.end; u++) {
2000
1996
  const b = e[u % l];
2001
- m = Vs(s.setContext(Lt(n, {
1997
+ m = Bs(s.setContext(Lt(n, {
2002
1998
  type: "segment",
2003
1999
  p0: p,
2004
2000
  p1: b,
@@ -2011,7 +2007,7 @@ function Gr(i, t, e, s) {
2011
2007
  }
2012
2008
  return c;
2013
2009
  }
2014
- function Vs(i) {
2010
+ function Bs(i) {
2015
2011
  return {
2016
2012
  backgroundColor: i.backgroundColor,
2017
2013
  borderCapStyle: i.borderCapStyle,
@@ -2026,7 +2022,7 @@ function Zr(i, t) {
2026
2022
  if (!t)
2027
2023
  return !1;
2028
2024
  const e = [], s = function(n, o) {
2029
- return ls(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o;
2025
+ return rs(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o;
2030
2026
  };
2031
2027
  return JSON.stringify(i, s) !== JSON.stringify(t, s);
2032
2028
  }
@@ -2050,7 +2046,7 @@ class Qr {
2050
2046
  }));
2051
2047
  }
2052
2048
  _refresh() {
2053
- this._request || (this._running = !0, this._request = no.call(window, () => {
2049
+ this._request || (this._running = !0, this._request = so.call(window, () => {
2054
2050
  this._update(), this._request = null, this._running && this._refresh();
2055
2051
  }));
2056
2052
  }
@@ -2113,12 +2109,12 @@ class Qr {
2113
2109
  }
2114
2110
  }
2115
2111
  var mt = /* @__PURE__ */ new Qr();
2116
- const Ws = "transparent", Jr = {
2112
+ const Vs = "transparent", Jr = {
2117
2113
  boolean(i, t, e) {
2118
2114
  return e > 0.5 ? t : i;
2119
2115
  },
2120
2116
  color(i, t, e) {
2121
- const s = Os(i || Ws), n = s.valid && Os(t || Ws);
2117
+ const s = As(i || Vs), n = s.valid && As(t || Vs);
2122
2118
  return n && n.valid ? n.mix(s, e).hexString() : t;
2123
2119
  },
2124
2120
  number(i, t, e) {
@@ -2191,7 +2187,7 @@ class tl {
2191
2187
  s[n][e]();
2192
2188
  }
2193
2189
  }
2194
- class wo {
2190
+ class ko {
2195
2191
  constructor(t, e) {
2196
2192
  this._chart = t, this._properties = /* @__PURE__ */ new Map(), this.configure(e);
2197
2193
  }
@@ -2282,7 +2278,7 @@ function il(i, t) {
2282
2278
  $animations: {}
2283
2279
  })), e;
2284
2280
  }
2285
- function Ns(i, t) {
2281
+ function Ws(i, t) {
2286
2282
  const e = i && i.options || {}, s = e.reverse, n = e.min === void 0 ? t : 0, o = e.max === void 0 ? t : 0;
2287
2283
  return {
2288
2284
  start: s ? o : n,
@@ -2292,7 +2288,7 @@ function Ns(i, t) {
2292
2288
  function sl(i, t, e) {
2293
2289
  if (e === !1)
2294
2290
  return !1;
2295
- const s = Ns(i, e), n = Ns(t, e);
2291
+ const s = Ws(i, e), n = Ws(t, e);
2296
2292
  return {
2297
2293
  top: n.end,
2298
2294
  right: s.end,
@@ -2310,14 +2306,14 @@ function nl(i) {
2310
2306
  disabled: i === !1
2311
2307
  };
2312
2308
  }
2313
- function Mo(i, t) {
2309
+ function wo(i, t) {
2314
2310
  const e = [], s = i._getSortedDatasetMetas(t);
2315
2311
  let n, o;
2316
2312
  for (n = 0, o = s.length; n < o; ++n)
2317
2313
  e.push(s[n].index);
2318
2314
  return e;
2319
2315
  }
2320
- function Hs(i, t, e, s = {}) {
2316
+ function Ns(i, t, e, s = {}) {
2321
2317
  const n = i.keys, o = s.mode === "single";
2322
2318
  let a, r, l, c;
2323
2319
  if (t === null)
@@ -2361,7 +2357,7 @@ function ll(i, t, e) {
2361
2357
  const s = i[t] || (i[t] = {});
2362
2358
  return s[e] || (s[e] = {});
2363
2359
  }
2364
- function js(i, t, e, s) {
2360
+ function Hs(i, t, e, s) {
2365
2361
  for (const n of t.getMatchingVisibleMetas(s).reverse()) {
2366
2362
  const o = i[n.index];
2367
2363
  if (e && o > 0 || !e && o < 0)
@@ -2369,12 +2365,12 @@ function js(i, t, e, s) {
2369
2365
  }
2370
2366
  return null;
2371
2367
  }
2372
- function $s(i, t) {
2368
+ function js(i, t) {
2373
2369
  const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = s, l = o.axis, c = a.axis, h = al(o, a, s), d = t.length;
2374
2370
  let u;
2375
2371
  for (let f = 0; f < d; ++f) {
2376
2372
  const g = t[f], { [l]: p, [c]: m } = g, b = g._stacks || (g._stacks = {});
2377
- u = b[c] = ll(n, h, p), u[r] = m, u._top = js(u, a, !0, s.type), u._bottom = js(u, a, !1, s.type);
2373
+ u = b[c] = ll(n, h, p), u[r] = m, u._top = Hs(u, a, !0, s.type), u._bottom = Hs(u, a, !1, s.type);
2378
2374
  const x = u._visualValues || (u._visualValues = {});
2379
2375
  x[r] = m;
2380
2376
  }
@@ -2417,8 +2413,8 @@ function re(i, t) {
2417
2413
  }
2418
2414
  }
2419
2415
  }
2420
- const Di = (i) => i === "reset" || i === "none", Ys = (i, t) => t ? i : Object.assign({}, i), dl = (i, t, e) => i && !t.hidden && t._stacked && {
2421
- keys: Mo(e, !0),
2416
+ const Di = (i) => i === "reset" || i === "none", $s = (i, t) => t ? i : Object.assign({}, i), dl = (i, t, e) => i && !t.hidden && t._stacked && {
2417
+ keys: wo(e, !0),
2422
2418
  values: null
2423
2419
  };
2424
2420
  class ct {
@@ -2454,7 +2450,7 @@ class ct {
2454
2450
  }
2455
2451
  _destroy() {
2456
2452
  const t = this._cachedMeta;
2457
- this._data && Cs(this._data, this), t._stacked && re(t);
2453
+ this._data && Ps(this._data, this), t._stacked && re(t);
2458
2454
  }
2459
2455
  _dataCheck() {
2460
2456
  const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
@@ -2463,7 +2459,7 @@ class ct {
2463
2459
  this._data = ol(e, n);
2464
2460
  } else if (s !== e) {
2465
2461
  if (s) {
2466
- Cs(s, this);
2462
+ Ps(s, this);
2467
2463
  const n = this._cachedMeta;
2468
2464
  re(n), n._parsed = [];
2469
2465
  }
@@ -2479,7 +2475,7 @@ class ct {
2479
2475
  let n = !1;
2480
2476
  this._dataCheck();
2481
2477
  const o = e._stacked;
2482
- e._stacked = Pi(e.vScale, e), e.stack !== s.stack && (n = !0, re(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && ($s(this, e._parsed), e._stacked = Pi(e.vScale, e));
2478
+ e._stacked = Pi(e.vScale, e), e.stack !== s.stack && (n = !0, re(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && (js(this, e._parsed), e._stacked = Pi(e.vScale, e));
2483
2479
  }
2484
2480
  configure() {
2485
2481
  const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0);
@@ -2497,7 +2493,7 @@ class ct {
2497
2493
  s._parsed[h + t] = d = u[h], l && (f() && (l = !1), c = d);
2498
2494
  s._sorted = l;
2499
2495
  }
2500
- a && $s(this, u);
2496
+ a && js(this, u);
2501
2497
  }
2502
2498
  parsePrimitiveData(t, e, s, n) {
2503
2499
  const { iScale: o, vScale: a } = t, r = o.axis, l = a.axis, c = o.getLabels(), h = o === a, d = new Array(n);
@@ -2537,10 +2533,10 @@ class ct {
2537
2533
  }
2538
2534
  applyStack(t, e, s) {
2539
2535
  const n = this.chart, o = this._cachedMeta, a = e[t.axis], r = {
2540
- keys: Mo(n, !0),
2536
+ keys: wo(n, !0),
2541
2537
  values: e._stacks[t.axis]._visualValues
2542
2538
  };
2543
- return Hs(r, a, o.index, {
2539
+ return Ns(r, a, o.index, {
2544
2540
  mode: s
2545
2541
  });
2546
2542
  }
@@ -2548,7 +2544,7 @@ class ct {
2548
2544
  const o = s[e.axis];
2549
2545
  let a = o === null ? NaN : o;
2550
2546
  const r = n && s._stacks[e.axis];
2551
- n && r && (n.values = r, a = Hs(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
2547
+ n && r && (n.values = r, a = Ns(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
2552
2548
  }
2553
2549
  getMinMax(t, e) {
2554
2550
  const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), l = dl(e, s, this.chart), c = {
@@ -2628,7 +2624,7 @@ class ct {
2628
2624
  _resolveElementOptions(t, e = "default", s) {
2629
2625
  const n = e === "active", o = this._cachedDataOpts, a = t + "-" + e, r = o[a], l = this.enableOptionSharing && Pe(s);
2630
2626
  if (r)
2631
- return Ys(r, l);
2627
+ return $s(r, l);
2632
2628
  const c = this.chart.config, h = c.datasetElementScopeKeys(this._type, t), d = n ? [
2633
2629
  `${t}Hover`,
2634
2630
  "hover",
@@ -2638,7 +2634,7 @@ class ct {
2638
2634
  t,
2639
2635
  ""
2640
2636
  ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys(H.elements[t]), g = () => this.getContext(s, n, e), p = c.resolveNamedOptions(u, f, g, d);
2641
- return p.$shared && (p.$shared = l, o[a] = Object.freeze(Ys(p, l))), p;
2637
+ return p.$shared && (p.$shared = l, o[a] = Object.freeze($s(p, l))), p;
2642
2638
  }
2643
2639
  _resolveAnimations(t, e, s) {
2644
2640
  const n = this.chart, o = this._cachedDataOpts, a = `animation-${e}`, r = o[a];
@@ -2649,7 +2645,7 @@ class ct {
2649
2645
  const h = this.chart.config, d = h.datasetAnimationScopeKeys(this._type, e), u = h.getOptionScopes(this.getDataset(), d);
2650
2646
  l = h.createResolver(u, this.getContext(t, s, e));
2651
2647
  }
2652
- const c = new wo(n, l && l.animations);
2648
+ const c = new ko(n, l && l.animations);
2653
2649
  return l && l._cacheable && (o[a] = Object.freeze(c)), c;
2654
2650
  }
2655
2651
  getSharedOptions(t) {
@@ -2784,7 +2780,7 @@ function ul(i, t) {
2784
2780
  let s = [];
2785
2781
  for (let n = 0, o = e.length; n < o; n++)
2786
2782
  s = s.concat(e[n].controller.getAllParsedValues(i));
2787
- i._cache.$bar = so(s.sort((n, o) => n - o));
2783
+ i._cache.$bar = io(s.sort((n, o) => n - o));
2788
2784
  }
2789
2785
  return i._cache.$bar;
2790
2786
  }
@@ -2833,14 +2829,14 @@ function ml(i, t, e, s) {
2833
2829
  max: r
2834
2830
  };
2835
2831
  }
2836
- function So(i, t, e, s) {
2832
+ function Mo(i, t, e, s) {
2837
2833
  return N(i) ? ml(i, t, e, s) : t[e.axis] = e.parse(i, s), t;
2838
2834
  }
2839
- function Us(i, t, e, s) {
2835
+ function Ys(i, t, e, s) {
2840
2836
  const n = i.iScale, o = i.vScale, a = n.getLabels(), r = n === o, l = [];
2841
2837
  let c, h, d, u;
2842
2838
  for (c = e, h = e + s; c < h; ++c)
2843
- u = t[c], d = {}, d[n.axis] = r || n.parse(a[c], c), l.push(So(u, d, o, c));
2839
+ u = t[c], d = {}, d[n.axis] = r || n.parse(a[c], c), l.push(Mo(u, d, o, c));
2844
2840
  return l;
2845
2841
  }
2846
2842
  function Ai(i) {
@@ -2876,15 +2872,15 @@ function _l(i, t, e, s) {
2876
2872
  return;
2877
2873
  }
2878
2874
  const { start: a, end: r, reverse: l, top: c, bottom: h } = xl(i);
2879
- n === "middle" && e && (i.enableBorderRadius = !0, (e._top || 0) === s ? n = c : (e._bottom || 0) === s ? n = h : (o[Xs(h, a, r, l)] = !0, n = c)), o[Xs(n, a, r, l)] = !0, i.borderSkipped = o;
2875
+ n === "middle" && e && (i.enableBorderRadius = !0, (e._top || 0) === s ? n = c : (e._bottom || 0) === s ? n = h : (o[Us(h, a, r, l)] = !0, n = c)), o[Us(n, a, r, l)] = !0, i.borderSkipped = o;
2880
2876
  }
2881
- function Xs(i, t, e, s) {
2882
- return s ? (i = yl(i, t, e), i = Ks(i, e, t)) : i = Ks(i, t, e), i;
2877
+ function Us(i, t, e, s) {
2878
+ return s ? (i = yl(i, t, e), i = Xs(i, e, t)) : i = Xs(i, t, e), i;
2883
2879
  }
2884
2880
  function yl(i, t, e) {
2885
2881
  return i === t ? e : i === e ? t : i;
2886
2882
  }
2887
- function Ks(i, t, e) {
2883
+ function Xs(i, t, e) {
2888
2884
  return i === "start" ? t : i === "end" ? e : i;
2889
2885
  }
2890
2886
  function vl(i, { inflateAmount: t }, e) {
@@ -2892,16 +2888,16 @@ function vl(i, { inflateAmount: t }, e) {
2892
2888
  }
2893
2889
  class Ze extends ct {
2894
2890
  parsePrimitiveData(t, e, s, n) {
2895
- return Us(t, e, s, n);
2891
+ return Ys(t, e, s, n);
2896
2892
  }
2897
2893
  parseArrayData(t, e, s, n) {
2898
- return Us(t, e, s, n);
2894
+ return Ys(t, e, s, n);
2899
2895
  }
2900
2896
  parseObjectData(t, e, s, n) {
2901
2897
  const { iScale: o, vScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, c = o.axis === "x" ? r : l, h = a.axis === "x" ? r : l, d = [];
2902
2898
  let u, f, g, p;
2903
2899
  for (u = s, f = s + n; u < f; ++u)
2904
- p = e[u], g = {}, g[o.axis] = o.parse(Ot(p, c), u), d.push(So(Ot(p, h), g, a, u));
2900
+ p = e[u], g = {}, g[o.axis] = o.parse(Ot(p, c), u), d.push(Mo(Ot(p, h), g, a, u));
2905
2901
  return d;
2906
2902
  }
2907
2903
  updateRangeFromParsed(t, e, s, n) {
@@ -3198,7 +3194,7 @@ class Nt extends ct {
3198
3194
  };
3199
3195
  }
3200
3196
  update(t) {
3201
- const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), l = Math.min(Ia(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: g, offsetY: p } = kl(d, h, l), m = (s.width - a) / u, b = (s.height - a) / f, x = Math.max(Math.min(m, b) / 2, 0), v = Qn(this.options.radius, x), y = Math.max(v * l, 0), _ = (v - y) / this._getVisibleDatasetWeightTotal();
3197
+ const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), l = Math.min(Ia(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: g, offsetY: p } = kl(d, h, l), m = (s.width - a) / u, b = (s.height - a) / f, x = Math.max(Math.min(m, b) / 2, 0), v = Zn(this.options.radius, x), y = Math.max(v * l, 0), _ = (v - y) / this._getVisibleDatasetWeightTotal();
3202
3198
  this.offsetX = g * v, this.offsetY = p * v, n.total = this.calculateTotal(), this.outerRadius = v - _ * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - _ * c, 0), this.updateElements(o, 0, o.length, t);
3203
3199
  }
3204
3200
  _circumference(t, e) {
@@ -3352,8 +3348,8 @@ class Je extends ct {
3352
3348
  }
3353
3349
  update(t) {
3354
3350
  const e = this._cachedMeta, { dataset: s, data: n = [], _dataset: o } = e, a = this.chart._animationsDisabled;
3355
- let { start: r, count: l } = ao(e, n, a);
3356
- this._drawStart = r, this._drawCount = l, ro(e) && (r = 0, l = n.length), s._chart = this.chart, s._datasetIndex = this.index, s._decimated = !!o._decimated, s.points = n;
3351
+ let { start: r, count: l } = oo(e, n, a);
3352
+ this._drawStart = r, this._drawCount = l, ao(e) && (r = 0, l = n.length), s._chart = this.chart, s._datasetIndex = this.index, s._decimated = !!o._decimated, s.points = n;
3357
3353
  const c = this.resolveDatasetElementOptions(t);
3358
3354
  this.options.showLine || (c.borderWidth = 0), c.segment = this.options.segment, this.updateElement(s, void 0, {
3359
3355
  animated: !a,
@@ -3412,7 +3408,7 @@ class we extends ct {
3412
3408
  };
3413
3409
  }
3414
3410
  parseObjectData(t, e, s, n) {
3415
- return mo.bind(this)(t, e, s, n);
3411
+ return po.bind(this)(t, e, s, n);
3416
3412
  }
3417
3413
  update(t) {
3418
3414
  const e = this._cachedMeta.data;
@@ -3534,9 +3530,9 @@ k(we, "id", "polarArea"), k(we, "defaults", {
3534
3530
  }
3535
3531
  }
3536
3532
  });
3537
- class ji extends Nt {
3533
+ class Hi extends Nt {
3538
3534
  }
3539
- k(ji, "id", "pie"), k(ji, "defaults", {
3535
+ k(Hi, "id", "pie"), k(Hi, "defaults", {
3540
3536
  cutout: 0,
3541
3537
  rotation: 0,
3542
3538
  circumference: 360,
@@ -3551,7 +3547,7 @@ class ti extends ct {
3551
3547
  };
3552
3548
  }
3553
3549
  parseObjectData(t, e, s, n) {
3554
- return mo.bind(this)(t, e, s, n);
3550
+ return po.bind(this)(t, e, s, n);
3555
3551
  }
3556
3552
  update(t) {
3557
3553
  const e = this._cachedMeta, s = e.dataset, n = e.data || [], o = e.iScale.getLabels();
@@ -3609,8 +3605,8 @@ class ei extends ct {
3609
3605
  }
3610
3606
  update(t) {
3611
3607
  const e = this._cachedMeta, { data: s = [] } = e, n = this.chart._animationsDisabled;
3612
- let { start: o, count: a } = ao(e, s, n);
3613
- if (this._drawStart = o, this._drawCount = a, ro(e) && (o = 0, a = s.length), this.options.showLine) {
3608
+ let { start: o, count: a } = oo(e, s, n);
3609
+ if (this._drawStart = o, this._drawCount = a, ao(e) && (o = 0, a = s.length), this.options.showLine) {
3614
3610
  this.datasetElementType || this.addElements();
3615
3611
  const { dataset: r, _dataset: l } = e;
3616
3612
  r._chart = this.chart, r._datasetIndex = this.index, r._decimated = !!l._decimated, r.points = s;
@@ -3674,7 +3670,7 @@ var wl = /* @__PURE__ */ Object.freeze({
3674
3670
  BubbleController: Qe,
3675
3671
  DoughnutController: Nt,
3676
3672
  LineController: Je,
3677
- PieController: ji,
3673
+ PieController: Hi,
3678
3674
  PolarAreaController: we,
3679
3675
  RadarController: ti,
3680
3676
  ScatterController: ei
@@ -3682,7 +3678,7 @@ var wl = /* @__PURE__ */ Object.freeze({
3682
3678
  function zt() {
3683
3679
  throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
3684
3680
  }
3685
- class ps {
3681
+ class gs {
3686
3682
  constructor(t) {
3687
3683
  k(this, "options");
3688
3684
  this.options = t || {};
@@ -3698,7 +3694,7 @@ class ps {
3698
3694
  * })
3699
3695
  */
3700
3696
  static override(t) {
3701
- Object.assign(ps.prototype, t);
3697
+ Object.assign(gs.prototype, t);
3702
3698
  }
3703
3699
  // eslint-disable-next-line @typescript-eslint/no-empty-function
3704
3700
  init() {
@@ -3726,7 +3722,7 @@ class ps {
3726
3722
  }
3727
3723
  }
3728
3724
  var Ml = {
3729
- _date: ps
3725
+ _date: gs
3730
3726
  };
3731
3727
  function Sl(i, t, e, s) {
3732
3728
  const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
@@ -3783,7 +3779,7 @@ function Cl(i, t, e, s) {
3783
3779
  const { startAngle: c, endAngle: h } = a.getProps([
3784
3780
  "startAngle",
3785
3781
  "endAngle"
3786
- ], s), { angle: d } = eo(a, {
3782
+ ], s), { angle: d } = to(a, {
3787
3783
  x: t.x,
3788
3784
  y: t.y
3789
3785
  });
@@ -3824,7 +3820,7 @@ function Dl(i, t, e, s, n, o) {
3824
3820
  function Ti(i, t, e, s, n, o) {
3825
3821
  return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? Cl(i, t, e, n) : Dl(i, t, e, s, n, o);
3826
3822
  }
3827
- function qs(i, t, e, s, n) {
3823
+ function Ks(i, t, e, s, n) {
3828
3824
  const o = [], a = e === "x" ? "inXRange" : "inYRange";
3829
3825
  let r = !1;
3830
3826
  return yi(i, e, t, (l, c, h) => {
@@ -3873,15 +3869,15 @@ var Al = {
3873
3869
  },
3874
3870
  x(i, t, e, s) {
3875
3871
  const n = Vt(t, i);
3876
- return qs(i, n, "x", e.intersect, s);
3872
+ return Ks(i, n, "x", e.intersect, s);
3877
3873
  },
3878
3874
  y(i, t, e, s) {
3879
3875
  const n = Vt(t, i);
3880
- return qs(i, n, "y", e.intersect, s);
3876
+ return Ks(i, n, "y", e.intersect, s);
3881
3877
  }
3882
3878
  }
3883
3879
  };
3884
- const Po = [
3880
+ const So = [
3885
3881
  "left",
3886
3882
  "top",
3887
3883
  "right",
@@ -3890,8 +3886,8 @@ const Po = [
3890
3886
  function le(i, t) {
3891
3887
  return i.filter((e) => e.pos === t);
3892
3888
  }
3893
- function Gs(i, t) {
3894
- return i.filter((e) => Po.indexOf(e.pos) === -1 && e.box.axis === t);
3889
+ function qs(i, t) {
3890
+ return i.filter((e) => So.indexOf(e.pos) === -1 && e.box.axis === t);
3895
3891
  }
3896
3892
  function ce(i, t) {
3897
3893
  return i.sort((e, s) => {
@@ -3918,7 +3914,7 @@ function Tl(i) {
3918
3914
  const t = {};
3919
3915
  for (const e of i) {
3920
3916
  const { stack: s, pos: n, stackWeight: o } = e;
3921
- if (!s || !Po.includes(n))
3917
+ if (!s || !So.includes(n))
3922
3918
  continue;
3923
3919
  const a = t[s] || (t[s] = {
3924
3920
  count: 0,
@@ -3941,7 +3937,7 @@ function Ll(i, t) {
3941
3937
  return e;
3942
3938
  }
3943
3939
  function Rl(i) {
3944
- const t = Ol(i), e = ce(t.filter((c) => c.box.fullSize), !0), s = ce(le(t, "left"), !0), n = ce(le(t, "right")), o = ce(le(t, "top"), !0), a = ce(le(t, "bottom")), r = Gs(t, "x"), l = Gs(t, "y");
3940
+ const t = Ol(i), e = ce(t.filter((c) => c.box.fullSize), !0), s = ce(le(t, "left"), !0), n = ce(le(t, "right")), o = ce(le(t, "top"), !0), a = ce(le(t, "bottom")), r = qs(t, "x"), l = qs(t, "y");
3945
3941
  return {
3946
3942
  fullSize: e,
3947
3943
  leftAndTop: s.concat(o),
@@ -3951,10 +3947,10 @@ function Rl(i) {
3951
3947
  horizontal: o.concat(a).concat(r)
3952
3948
  };
3953
3949
  }
3954
- function Zs(i, t, e, s) {
3950
+ function Gs(i, t, e, s) {
3955
3951
  return Math.max(i[e], t[e]) + Math.max(i[s], t[s]);
3956
3952
  }
3957
- function Co(i, t) {
3953
+ function Po(i, t) {
3958
3954
  i.top = Math.max(i.top, t.top), i.left = Math.max(i.left, t.left), i.bottom = Math.max(i.bottom, t.bottom), i.right = Math.max(i.right, t.right);
3959
3955
  }
3960
3956
  function Fl(i, t, e, s) {
@@ -3967,8 +3963,8 @@ function Fl(i, t, e, s) {
3967
3963
  };
3968
3964
  d.size = Math.max(d.size, e.horizontal ? o.height : o.width), e.size = d.size / d.count, i[n] += e.size;
3969
3965
  }
3970
- o.getPadding && Co(a, o.getPadding());
3971
- const r = Math.max(0, t.outerWidth - Zs(a, i, "left", "right")), l = Math.max(0, t.outerHeight - Zs(a, i, "top", "bottom")), c = r !== i.w, h = l !== i.h;
3966
+ o.getPadding && Po(a, o.getPadding());
3967
+ const r = Math.max(0, t.outerWidth - Gs(a, i, "left", "right")), l = Math.max(0, t.outerHeight - Gs(a, i, "top", "bottom")), c = r !== i.w, h = l !== i.h;
3972
3968
  return i.w = r, i.h = l, e.horizontal ? {
3973
3969
  same: c,
3974
3970
  other: h
@@ -4019,7 +4015,7 @@ function pe(i, t, e, s) {
4019
4015
  function Ne(i, t, e, s, n) {
4020
4016
  i.top = e, i.left = t, i.right = t + s, i.bottom = e + n, i.width = s, i.height = n;
4021
4017
  }
4022
- function Qs(i, t, e, s) {
4018
+ function Zs(i, t, e, s) {
4023
4019
  const n = e.padding;
4024
4020
  let { x: o, y: a } = t;
4025
4021
  for (const r of i) {
@@ -4073,7 +4069,7 @@ var Q = {
4073
4069
  vBoxMaxWidth: o / 2 / h,
4074
4070
  hBoxMaxHeight: a / 2
4075
4071
  }), u = Object.assign({}, n);
4076
- Co(u, J(s));
4072
+ Po(u, J(s));
4077
4073
  const f = Object.assign({
4078
4074
  maxPadding: u,
4079
4075
  w: o,
@@ -4081,7 +4077,7 @@ var Q = {
4081
4077
  x: n.left,
4082
4078
  y: n.top
4083
4079
  }, n), g = Ll(l.concat(c), d);
4084
- pe(r.fullSize, f, d, g), pe(l, f, d, g), pe(c, f, d, g) && pe(l, f, d, g), El(f), Qs(r.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, Qs(r.rightAndBottom, f, d, g), i.chartArea = {
4080
+ pe(r.fullSize, f, d, g), pe(l, f, d, g), pe(c, f, d, g) && pe(l, f, d, g), El(f), Zs(r.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, Zs(r.rightAndBottom, f, d, g), i.chartArea = {
4085
4081
  left: f.left,
4086
4082
  top: f.top,
4087
4083
  right: f.left + f.w,
@@ -4099,7 +4095,7 @@ var Q = {
4099
4095
  });
4100
4096
  }
4101
4097
  };
4102
- class Do {
4098
+ class Co {
4103
4099
  acquireContext(t, e) {
4104
4100
  }
4105
4101
  releaseContext(t) {
@@ -4124,7 +4120,7 @@ class Do {
4124
4120
  updateConfig(t) {
4125
4121
  }
4126
4122
  }
4127
- class zl extends Do {
4123
+ class zl extends Co {
4128
4124
  acquireContext(t) {
4129
4125
  return t && t.getContext && t.getContext("2d") || null;
4130
4126
  }
@@ -4142,7 +4138,7 @@ const ii = "$chartjs", Bl = {
4142
4138
  pointerup: "mouseup",
4143
4139
  pointerleave: "mouseout",
4144
4140
  pointerout: "mouseout"
4145
- }, Js = (i) => i === null || i === "";
4141
+ }, Qs = (i) => i === null || i === "";
4146
4142
  function Vl(i, t) {
4147
4143
  const e = i.style, s = i.getAttribute("height"), n = i.getAttribute("width");
4148
4144
  if (i[ii] = {
@@ -4155,27 +4151,27 @@ function Vl(i, t) {
4155
4151
  width: e.width
4156
4152
  }
4157
4153
  }
4158
- }, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", Js(n)) {
4159
- const o = Is(i, "width");
4154
+ }, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", Qs(n)) {
4155
+ const o = Es(i, "width");
4160
4156
  o !== void 0 && (i.width = o);
4161
4157
  }
4162
- if (Js(s))
4158
+ if (Qs(s))
4163
4159
  if (i.style.height === "")
4164
4160
  i.height = i.width / (t || 2);
4165
4161
  else {
4166
- const o = Is(i, "height");
4162
+ const o = Es(i, "height");
4167
4163
  o !== void 0 && (i.height = o);
4168
4164
  }
4169
4165
  return i;
4170
4166
  }
4171
- const Ao = Nr ? {
4167
+ const Do = Nr ? {
4172
4168
  passive: !0
4173
4169
  } : !1;
4174
4170
  function Wl(i, t, e) {
4175
- i && i.addEventListener(t, e, Ao);
4171
+ i && i.addEventListener(t, e, Do);
4176
4172
  }
4177
4173
  function Nl(i, t, e) {
4178
- i && i.canvas && i.canvas.removeEventListener(t, e, Ao);
4174
+ i && i.canvas && i.canvas.removeEventListener(t, e, Do);
4179
4175
  }
4180
4176
  function Hl(i, t) {
4181
4177
  const e = Bl[i.type] || i.type, { x: s, y: n } = Vt(i, t);
@@ -4217,24 +4213,24 @@ function $l(i, t, e) {
4217
4213
  }), n;
4218
4214
  }
4219
4215
  const Ae = /* @__PURE__ */ new Map();
4220
- let tn = 0;
4221
- function Oo() {
4216
+ let Js = 0;
4217
+ function Ao() {
4222
4218
  const i = window.devicePixelRatio;
4223
- i !== tn && (tn = i, Ae.forEach((t, e) => {
4219
+ i !== Js && (Js = i, Ae.forEach((t, e) => {
4224
4220
  e.currentDevicePixelRatio !== i && t();
4225
4221
  }));
4226
4222
  }
4227
4223
  function Yl(i, t) {
4228
- Ae.size || window.addEventListener("resize", Oo), Ae.set(i, t);
4224
+ Ae.size || window.addEventListener("resize", Ao), Ae.set(i, t);
4229
4225
  }
4230
4226
  function Ul(i) {
4231
- Ae.delete(i), Ae.size || window.removeEventListener("resize", Oo);
4227
+ Ae.delete(i), Ae.size || window.removeEventListener("resize", Ao);
4232
4228
  }
4233
4229
  function Xl(i, t, e) {
4234
- const s = i.canvas, n = s && gs(s);
4230
+ const s = i.canvas, n = s && fs(s);
4235
4231
  if (!n)
4236
4232
  return;
4237
- const o = oo((r, l) => {
4233
+ const o = no((r, l) => {
4238
4234
  const c = n.clientWidth;
4239
4235
  e(r, l), c < n.clientWidth && e();
4240
4236
  }, window), a = new ResizeObserver((r) => {
@@ -4247,12 +4243,12 @@ function Li(i, t, e) {
4247
4243
  e && e.disconnect(), t === "resize" && Ul(i);
4248
4244
  }
4249
4245
  function Kl(i, t, e) {
4250
- const s = i.canvas, n = oo((o) => {
4246
+ const s = i.canvas, n = no((o) => {
4251
4247
  i.ctx !== null && e(Hl(o, i));
4252
4248
  }, i);
4253
4249
  return Wl(s, t, n), n;
4254
4250
  }
4255
- class ql extends Do {
4251
+ class ql extends Co {
4256
4252
  acquireContext(t, e) {
4257
4253
  const s = t && t.getContext && t.getContext("2d");
4258
4254
  return s && s.canvas === t ? (Vl(t, e), s) : null;
@@ -4300,12 +4296,12 @@ class ql extends Do {
4300
4296
  return Wr(t, e, s, n);
4301
4297
  }
4302
4298
  isAttached(t) {
4303
- const e = t && gs(t);
4299
+ const e = t && fs(t);
4304
4300
  return !!(e && e.isConnected);
4305
4301
  }
4306
4302
  }
4307
4303
  function Gl(i) {
4308
- return !fs() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? zl : ql;
4304
+ return !us() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? zl : ql;
4309
4305
  }
4310
4306
  class ht {
4311
4307
  constructor() {
@@ -4399,8 +4395,8 @@ function ic(i) {
4399
4395
  return !1;
4400
4396
  return s;
4401
4397
  }
4402
- const sc = (i) => i === "left" ? "right" : i === "right" ? "left" : i, en = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, sn = (i, t) => Math.min(t || i, i);
4403
- function nn(i, t) {
4398
+ const sc = (i) => i === "left" ? "right" : i === "right" ? "left" : i, tn = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, en = (i, t) => Math.min(t || i, i);
4399
+ function sn(i, t) {
4404
4400
  const e = [], s = i.length / t, n = i.length;
4405
4401
  let o = 0;
4406
4402
  for (; o < n; o += s)
@@ -4427,7 +4423,7 @@ function oc(i, t) {
4427
4423
  function he(i) {
4428
4424
  return i.drawTicks ? i.tickLength : 0;
4429
4425
  }
4430
- function on(i, t) {
4426
+ function nn(i, t) {
4431
4427
  if (!i.display)
4432
4428
  return 0;
4433
4429
  const e = X(i.font, t), s = J(i.padding);
@@ -4447,7 +4443,7 @@ function rc(i, t, e) {
4447
4443
  });
4448
4444
  }
4449
4445
  function lc(i, t, e) {
4450
- let s = rs(i);
4446
+ let s = as(i);
4451
4447
  return (e && t !== "right" || !e && t === "right") && (s = sc(s)), s;
4452
4448
  }
4453
4449
  function cc(i, t, e, s) {
@@ -4458,13 +4454,13 @@ function cc(i, t, e, s) {
4458
4454
  if (f = Z(s, o, r), O(e)) {
4459
4455
  const b = Object.keys(e)[0], x = e[b];
4460
4456
  g = h[b].getPixelForValue(x) + p - t;
4461
- } else e === "center" ? g = (c.bottom + c.top) / 2 + p - t : g = en(i, e, t);
4457
+ } else e === "center" ? g = (c.bottom + c.top) / 2 + p - t : g = tn(i, e, t);
4462
4458
  u = r - o;
4463
4459
  } else {
4464
4460
  if (O(e)) {
4465
4461
  const b = Object.keys(e)[0], x = e[b];
4466
4462
  f = h[b].getPixelForValue(x) - m + t;
4467
- } else e === "center" ? f = (c.left + c.right) / 2 - m + t : f = en(i, e, t);
4463
+ } else e === "center" ? f = (c.left + c.right) / 2 - m + t : f = tn(i, e, t);
4468
4464
  g = Z(s, a, n), d = e === "left" ? -Y : Y;
4469
4465
  }
4470
4466
  return {
@@ -4474,7 +4470,7 @@ function cc(i, t, e, s) {
4474
4470
  rotation: d
4475
4471
  };
4476
4472
  }
4477
- class Xt extends ht {
4473
+ class Ut extends ht {
4478
4474
  constructor(t) {
4479
4475
  super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
4480
4476
  left: 0,
@@ -4548,7 +4544,7 @@ class Xt extends ht {
4548
4544
  bottom: 0
4549
4545
  }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = xr(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
4550
4546
  const l = r < this.ticks.length;
4551
- this._convertTicksToLabels(l ? nn(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = Zl(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
4547
+ this._convertTicksToLabels(l ? sn(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = Zl(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
4552
4548
  }
4553
4549
  configure() {
4554
4550
  let t = this.options.reverse, e, s;
@@ -4620,14 +4616,14 @@ class Xt extends ht {
4620
4616
  ]);
4621
4617
  }
4622
4618
  calculateLabelRotation() {
4623
- const t = this.options, e = t.ticks, s = sn(this.ticks.length, t.ticks.maxTicksLimit), n = e.minRotation || 0, o = e.maxRotation;
4619
+ const t = this.options, e = t.ticks, s = en(this.ticks.length, t.ticks.maxTicksLimit), n = e.minRotation || 0, o = e.maxRotation;
4624
4620
  let a = n, r, l, c;
4625
4621
  if (!this._isVisible() || !e.display || n >= o || s <= 1 || !this.isHorizontal()) {
4626
4622
  this.labelRotation = n;
4627
4623
  return;
4628
4624
  }
4629
4625
  const h = this._getLabelSizes(), d = h.widest.width, u = h.highest.height, f = K(this.chart.width - d, 0, this.maxWidth);
4630
- r = t.offset ? this.maxWidth / s : f / (s - 1), d + 6 > r && (r = f / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - he(t.grid) - e.padding - on(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = os(Math.min(Math.asin(K((h.highest.height + 6) / r, -1, 1)), Math.asin(K(l / c, -1, 1)) - Math.asin(K(u / c, -1, 1)))), a = Math.max(n, Math.min(o, a))), this.labelRotation = a;
4626
+ r = t.offset ? this.maxWidth / s : f / (s - 1), d + 6 > r && (r = f / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - he(t.grid) - e.padding - nn(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = ns(Math.min(Math.asin(K((h.highest.height + 6) / r, -1, 1)), Math.asin(K(l / c, -1, 1)) - Math.asin(K(u / c, -1, 1)))), a = Math.max(n, Math.min(o, a))), this.labelRotation = a;
4631
4627
  }
4632
4628
  afterCalculateLabelRotation() {
4633
4629
  I(this.options.afterCalculateLabelRotation, [
@@ -4647,7 +4643,7 @@ class Xt extends ht {
4647
4643
  height: 0
4648
4644
  }, { chart: e, options: { ticks: s, title: n, grid: o } } = this, a = this._isVisible(), r = this.isHorizontal();
4649
4645
  if (a) {
4650
- const l = on(n, e.options.font);
4646
+ const l = nn(n, e.options.font);
4651
4647
  if (r ? (t.width = this.maxWidth, t.height = he(o) + l) : (t.height = this.maxHeight, t.width = he(o) + l), s.display && this.ticks.length) {
4652
4648
  const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = s.padding * 2, g = lt(this.labelRotation), p = Math.cos(g), m = Math.sin(g);
4653
4649
  if (r) {
@@ -4700,12 +4696,12 @@ class Xt extends ht {
4700
4696
  if (!t) {
4701
4697
  const e = this.options.ticks.sampleSize;
4702
4698
  let s = this.ticks;
4703
- e < s.length && (s = nn(s, e)), this._labelSizes = t = this._computeLabelSizes(s, s.length, this.options.ticks.maxTicksLimit);
4699
+ e < s.length && (s = sn(s, e)), this._labelSizes = t = this._computeLabelSizes(s, s.length, this.options.ticks.maxTicksLimit);
4704
4700
  }
4705
4701
  return t;
4706
4702
  }
4707
4703
  _computeLabelSizes(t, e, s) {
4708
- const { ctx: n, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / sn(e, s));
4704
+ const { ctx: n, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / en(e, s));
4709
4705
  let c = 0, h = 0, d, u, f, g, p, m, b, x, v, y, _;
4710
4706
  for (d = 0; d < e; d += l) {
4711
4707
  if (g = t[d].label, p = this._resolveTickFontOptions(d), n.font = m = p.string, b = o[m] = o[m] || {
@@ -4808,7 +4804,7 @@ class Xt extends ht {
4808
4804
  }
4809
4805
  const st = C(n.ticks.maxTicksLimit, d), E = Math.max(1, Math.ceil(d / st));
4810
4806
  for (v = 0; v < d; v += E) {
4811
- const W = this.getContext(v), $ = o.setContext(W), rt = r.setContext(W), G = $.lineWidth, Kt = $.color, Fe = rt.dash || [], qt = rt.dashOffset, oe = $.tickWidth, Rt = $.tickColor, ae = $.tickBorderDash || [], Ft = $.tickBorderDashOffset;
4807
+ const W = this.getContext(v), $ = o.setContext(W), rt = r.setContext(W), G = $.lineWidth, Xt = $.color, Fe = rt.dash || [], Kt = rt.dashOffset, oe = $.tickWidth, Rt = $.tickColor, ae = $.tickBorderDash || [], Ft = $.tickBorderDashOffset;
4812
4808
  y = nc(this, v, l), y !== void 0 && (_ = It(s, y, G), c ? w = S = D = T = _ : M = P = A = q = _, f.push({
4813
4809
  tx1: w,
4814
4810
  ty1: M,
@@ -4819,9 +4815,9 @@ class Xt extends ht {
4819
4815
  x2: T,
4820
4816
  y2: q,
4821
4817
  width: G,
4822
- color: Kt,
4818
+ color: Xt,
4823
4819
  borderDash: Fe,
4824
- borderDashOffset: qt,
4820
+ borderDashOffset: Kt,
4825
4821
  tickWidth: oe,
4826
4822
  tickColor: Rt,
4827
4823
  tickBorderDash: ae,
@@ -4867,12 +4863,12 @@ class Xt extends ht {
4867
4863
  const E = o.setContext(this.getContext(b));
4868
4864
  S = this.getPixelForTick(b) + o.labelOffset, P = this._resolveTickFontOptions(b), D = P.lineHeight, A = N(y) ? y.length : 1;
4869
4865
  const W = A / 2, $ = E.color, rt = E.textStrokeColor, G = E.textStrokeWidth;
4870
- let Kt = M;
4871
- a ? (_ = S, M === "inner" && (b === x - 1 ? Kt = this.options.reverse ? "left" : "right" : b === 0 ? Kt = this.options.reverse ? "right" : "left" : Kt = "center"), n === "top" ? c === "near" || p !== 0 ? T = -A * D + D / 2 : c === "center" ? T = -st.highest.height / 2 - W * D + D : T = -st.highest.height + D / 2 : c === "near" || p !== 0 ? T = D / 2 : c === "center" ? T = st.highest.height / 2 - W * D : T = st.highest.height - A * D, d && (T *= -1), p !== 0 && !E.showLabelBackdrop && (_ += D / 2 * Math.sin(p))) : (w = S, T = (1 - A) * D / 2);
4866
+ let Xt = M;
4867
+ a ? (_ = S, M === "inner" && (b === x - 1 ? Xt = this.options.reverse ? "left" : "right" : b === 0 ? Xt = this.options.reverse ? "right" : "left" : Xt = "center"), n === "top" ? c === "near" || p !== 0 ? T = -A * D + D / 2 : c === "center" ? T = -st.highest.height / 2 - W * D + D : T = -st.highest.height + D / 2 : c === "near" || p !== 0 ? T = D / 2 : c === "center" ? T = st.highest.height / 2 - W * D : T = st.highest.height - A * D, d && (T *= -1), p !== 0 && !E.showLabelBackdrop && (_ += D / 2 * Math.sin(p))) : (w = S, T = (1 - A) * D / 2);
4872
4868
  let Fe;
4873
4869
  if (E.showLabelBackdrop) {
4874
- const qt = J(E.backdropPadding), oe = st.heights[b], Rt = st.widths[b];
4875
- let ae = T - qt.top, Ft = 0 - qt.left;
4870
+ const Kt = J(E.backdropPadding), oe = st.heights[b], Rt = st.widths[b];
4871
+ let ae = T - Kt.top, Ft = 0 - Kt.left;
4876
4872
  switch (q) {
4877
4873
  case "middle":
4878
4874
  ae -= oe / 2;
@@ -4895,8 +4891,8 @@ class Xt extends ht {
4895
4891
  Fe = {
4896
4892
  left: Ft,
4897
4893
  top: ae,
4898
- width: Rt + qt.width,
4899
- height: oe + qt.height,
4894
+ width: Rt + Kt.width,
4895
+ height: oe + Kt.height,
4900
4896
  color: E.backdropColor
4901
4897
  };
4902
4898
  }
@@ -4909,7 +4905,7 @@ class Xt extends ht {
4909
4905
  color: $,
4910
4906
  strokeColor: rt,
4911
4907
  strokeWidth: G,
4912
- textAlign: Kt,
4908
+ textAlign: Xt,
4913
4909
  textBaseline: q,
4914
4910
  translation: [
4915
4911
  _,
@@ -5011,7 +5007,7 @@ class Xt extends ht {
5011
5007
  const o = this.getLabelItems(t);
5012
5008
  for (const a of o) {
5013
5009
  const r = a.options, l = a.font, c = a.label, h = a.textOffset;
5014
- Ut(s, c, 0, h, l, r);
5010
+ Yt(s, c, 0, h, l, r);
5015
5011
  }
5016
5012
  n && xi(s);
5017
5013
  }
@@ -5023,7 +5019,7 @@ class Xt extends ht {
5023
5019
  let l = o.lineHeight / 2;
5024
5020
  e === "bottom" || e === "center" || O(e) ? (l += a.bottom, N(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
5025
5021
  const { titleX: c, titleY: h, maxWidth: d, rotation: u } = cc(this, l, e, r);
5026
- Ut(t, s.text, 0, 0, o, {
5022
+ Yt(t, s.text, 0, 0, o, {
5027
5023
  color: s.color,
5028
5024
  maxWidth: d,
5029
5025
  rotation: u,
@@ -5040,7 +5036,7 @@ class Xt extends ht {
5040
5036
  }
5041
5037
  _layers() {
5042
5038
  const t = this.options, e = t.ticks && t.ticks.z || 0, s = C(t.grid && t.grid.z, -1), n = C(t.border && t.border.z, 0);
5043
- return !this._isVisible() || this.draw !== Xt.prototype.draw ? [
5039
+ return !this._isVisible() || this.draw !== Ut.prototype.draw ? [
5044
5040
  {
5045
5041
  z: e,
5046
5042
  draw: (o) => {
@@ -5107,7 +5103,7 @@ class je {
5107
5103
  }
5108
5104
  unregister(t) {
5109
5105
  const e = this.items, s = t.id, n = this.scope;
5110
- s in e && delete e[s], n && s in H[n] && (delete H[n][s], this.override && delete Yt[s]);
5106
+ s in e && delete e[s], n && s in H[n] && (delete H[n][s], this.override && delete $t[s]);
5111
5107
  }
5112
5108
  }
5113
5109
  function hc(i, t, e) {
@@ -5131,7 +5127,7 @@ function uc(i) {
5131
5127
  }
5132
5128
  class fc {
5133
5129
  constructor() {
5134
- this.controllers = new je(ct, "datasets", !0), this.elements = new je(ht, "elements"), this.plugins = new je(Object, "plugins"), this.scales = new je(Xt, "scales"), this._typedRegistries = [
5130
+ this.controllers = new je(ct, "datasets", !0), this.elements = new je(ht, "elements"), this.plugins = new je(Object, "plugins"), this.scales = new je(Ut, "scales"), this._typedRegistries = [
5135
5131
  this.controllers,
5136
5132
  this.scales,
5137
5133
  this.elements
@@ -5191,7 +5187,7 @@ class fc {
5191
5187
  });
5192
5188
  }
5193
5189
  _exec(t, e, s) {
5194
- const n = ns(t);
5190
+ const n = ss(t);
5195
5191
  I(s["before" + n], [], s), e[t](s), I(s["after" + n], [], s);
5196
5192
  }
5197
5193
  _getRegistryForType(t) {
@@ -5291,7 +5287,7 @@ function xc(i, { plugin: t, local: e }, s, n) {
5291
5287
  allKeys: !0
5292
5288
  });
5293
5289
  }
5294
- function $i(i, t) {
5290
+ function ji(i, t) {
5295
5291
  const e = H.datasets[i] || {};
5296
5292
  return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
5297
5293
  }
@@ -5302,7 +5298,7 @@ function _c(i, t) {
5302
5298
  function yc(i, t) {
5303
5299
  return i === t ? "_index_" : "_value_";
5304
5300
  }
5305
- function an(i) {
5301
+ function on(i) {
5306
5302
  if (i === "x" || i === "y" || i === "r")
5307
5303
  return i;
5308
5304
  }
@@ -5312,17 +5308,17 @@ function vc(i) {
5312
5308
  if (i === "left" || i === "right")
5313
5309
  return "y";
5314
5310
  }
5315
- function Yi(i, ...t) {
5316
- if (an(i))
5311
+ function $i(i, ...t) {
5312
+ if (on(i))
5317
5313
  return i;
5318
5314
  for (const e of t) {
5319
- const s = e.axis || vc(e.position) || i.length > 1 && an(i[0].toLowerCase());
5315
+ const s = e.axis || vc(e.position) || i.length > 1 && on(i[0].toLowerCase());
5320
5316
  if (s)
5321
5317
  return s;
5322
5318
  }
5323
5319
  throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`);
5324
5320
  }
5325
- function rn(i, t, e) {
5321
+ function an(i, t, e) {
5326
5322
  if (e[t + "AxisID"] === i)
5327
5323
  return {
5328
5324
  axis: t
@@ -5332,21 +5328,21 @@ function kc(i, t) {
5332
5328
  if (t.data && t.data.datasets) {
5333
5329
  const e = t.data.datasets.filter((s) => s.xAxisID === i || s.yAxisID === i);
5334
5330
  if (e.length)
5335
- return rn(i, "x", e[0]) || rn(i, "y", e[0]);
5331
+ return an(i, "x", e[0]) || an(i, "y", e[0]);
5336
5332
  }
5337
5333
  return {};
5338
5334
  }
5339
5335
  function wc(i, t) {
5340
- const e = Yt[i.type] || {
5336
+ const e = $t[i.type] || {
5341
5337
  scales: {}
5342
- }, s = t.scales || {}, n = $i(i.type, t), o = /* @__PURE__ */ Object.create(null);
5338
+ }, s = t.scales || {}, n = ji(i.type, t), o = /* @__PURE__ */ Object.create(null);
5343
5339
  return Object.keys(s).forEach((a) => {
5344
5340
  const r = s[a];
5345
5341
  if (!O(r))
5346
5342
  return console.error(`Invalid scale configuration for scale: ${a}`);
5347
5343
  if (r._proxy)
5348
5344
  return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
5349
- const l = Yi(a, r, kc(a, i), H.scales[r.type]), c = yc(l, n), h = e.scales || {};
5345
+ const l = $i(a, r, kc(a, i), H.scales[r.type]), c = yc(l, n), h = e.scales || {};
5350
5346
  o[a] = _e(/* @__PURE__ */ Object.create(null), [
5351
5347
  {
5352
5348
  axis: l
@@ -5356,7 +5352,7 @@ function wc(i, t) {
5356
5352
  h[c]
5357
5353
  ]);
5358
5354
  }), i.data.datasets.forEach((a) => {
5359
- const r = a.type || i.type, l = a.indexAxis || $i(r, t), h = (Yt[r] || {}).scales || {};
5355
+ const r = a.type || i.type, l = a.indexAxis || ji(r, t), h = ($t[r] || {}).scales || {};
5360
5356
  Object.keys(h).forEach((d) => {
5361
5357
  const u = _c(d, l), f = a[u + "AxisID"] || u;
5362
5358
  o[f] = o[f] || /* @__PURE__ */ Object.create(null), _e(o[f], [
@@ -5375,20 +5371,20 @@ function wc(i, t) {
5375
5371
  ]);
5376
5372
  }), o;
5377
5373
  }
5378
- function To(i) {
5374
+ function Oo(i) {
5379
5375
  const t = i.options || (i.options = {});
5380
5376
  t.plugins = C(t.plugins, {}), t.scales = wc(i, t);
5381
5377
  }
5382
- function Lo(i) {
5378
+ function To(i) {
5383
5379
  return i = i || {}, i.datasets = i.datasets || [], i.labels = i.labels || [], i;
5384
5380
  }
5385
5381
  function Mc(i) {
5386
- return i = i || {}, i.data = Lo(i.data), To(i), i;
5382
+ return i = i || {}, i.data = To(i.data), Oo(i), i;
5387
5383
  }
5388
- const ln = /* @__PURE__ */ new Map(), Ro = /* @__PURE__ */ new Set();
5384
+ const rn = /* @__PURE__ */ new Map(), Lo = /* @__PURE__ */ new Set();
5389
5385
  function $e(i, t) {
5390
- let e = ln.get(i);
5391
- return e || (e = t(), ln.set(i, e), Ro.add(e)), e;
5386
+ let e = rn.get(i);
5387
+ return e || (e = t(), rn.set(i, e), Lo.add(e)), e;
5392
5388
  }
5393
5389
  const de = (i, t, e) => {
5394
5390
  const s = Ot(t, e);
@@ -5411,7 +5407,7 @@ class Sc {
5411
5407
  return this._config.data;
5412
5408
  }
5413
5409
  set data(t) {
5414
- this._config.data = Lo(t);
5410
+ this._config.data = To(t);
5415
5411
  }
5416
5412
  get options() {
5417
5413
  return this._config.options;
@@ -5424,7 +5420,7 @@ class Sc {
5424
5420
  }
5425
5421
  update() {
5426
5422
  const t = this._config;
5427
- this.clearCache(), To(t);
5423
+ this.clearCache(), Oo(t);
5428
5424
  }
5429
5425
  clearCache() {
5430
5426
  this._scopeCache.clear(), this._resolverCache.clear();
@@ -5479,22 +5475,22 @@ class Sc {
5479
5475
  return r;
5480
5476
  const l = /* @__PURE__ */ new Set();
5481
5477
  e.forEach((h) => {
5482
- t && (l.add(t), h.forEach((d) => de(l, t, d))), h.forEach((d) => de(l, n, d)), h.forEach((d) => de(l, Yt[o] || {}, d)), h.forEach((d) => de(l, H, d)), h.forEach((d) => de(l, Ni, d));
5478
+ t && (l.add(t), h.forEach((d) => de(l, t, d))), h.forEach((d) => de(l, n, d)), h.forEach((d) => de(l, $t[o] || {}, d)), h.forEach((d) => de(l, H, d)), h.forEach((d) => de(l, Wi, d));
5483
5479
  });
5484
5480
  const c = Array.from(l);
5485
- return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Ro.has(e) && a.set(e, c), c;
5481
+ return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Lo.has(e) && a.set(e, c), c;
5486
5482
  }
5487
5483
  chartOptionScopes() {
5488
5484
  const { options: t, type: e } = this;
5489
5485
  return [
5490
5486
  t,
5491
- Yt[e] || {},
5487
+ $t[e] || {},
5492
5488
  H.datasets[e] || {},
5493
5489
  {
5494
5490
  type: e
5495
5491
  },
5496
5492
  H,
5497
- Ni
5493
+ Wi
5498
5494
  ];
5499
5495
  }
5500
5496
  resolveNamedOptions(t, e, s, n = [
@@ -5502,7 +5498,7 @@ class Sc {
5502
5498
  ]) {
5503
5499
  const o = {
5504
5500
  $shared: !0
5505
- }, { resolver: a, subPrefixes: r } = cn(this._resolverCache, t, n);
5501
+ }, { resolver: a, subPrefixes: r } = ln(this._resolverCache, t, n);
5506
5502
  let l = a;
5507
5503
  if (Cc(a, e)) {
5508
5504
  o.$shared = !1, s = Tt(s) ? s() : s;
@@ -5516,23 +5512,23 @@ class Sc {
5516
5512
  createResolver(t, e, s = [
5517
5513
  ""
5518
5514
  ], n) {
5519
- const { resolver: o } = cn(this._resolverCache, t, s);
5515
+ const { resolver: o } = ln(this._resolverCache, t, s);
5520
5516
  return O(e) ? ie(o, e, void 0, n) : o;
5521
5517
  }
5522
5518
  }
5523
- function cn(i, t, e) {
5519
+ function ln(i, t, e) {
5524
5520
  let s = i.get(t);
5525
5521
  s || (s = /* @__PURE__ */ new Map(), i.set(t, s));
5526
5522
  const n = e.join();
5527
5523
  let o = s.get(n);
5528
5524
  return o || (o = {
5529
- resolver: hs(t, e),
5525
+ resolver: cs(t, e),
5530
5526
  subPrefixes: e.filter((r) => !r.toLowerCase().includes("hover"))
5531
5527
  }, s.set(n, o)), o;
5532
5528
  }
5533
5529
  const Pc = (i) => O(i) && Object.getOwnPropertyNames(i).some((t) => Tt(i[t]));
5534
5530
  function Cc(i, t) {
5535
- const { isScriptable: e, isIndexable: s } = uo(i);
5531
+ const { isScriptable: e, isIndexable: s } = ho(i);
5536
5532
  for (const n of t) {
5537
5533
  const o = e(n), a = s(n), r = (a || o) && i[n];
5538
5534
  if (o && (Tt(r) || Pc(r)) || a && N(r))
@@ -5548,15 +5544,15 @@ const Ac = [
5548
5544
  "right",
5549
5545
  "chartArea"
5550
5546
  ];
5551
- function hn(i, t) {
5547
+ function cn(i, t) {
5552
5548
  return i === "top" || i === "bottom" || Ac.indexOf(i) === -1 && t === "x";
5553
5549
  }
5554
- function dn(i, t) {
5550
+ function hn(i, t) {
5555
5551
  return function(e, s) {
5556
5552
  return e[i] === s[i] ? e[t] - s[t] : e[i] - s[i];
5557
5553
  };
5558
5554
  }
5559
- function un(i) {
5555
+ function dn(i) {
5560
5556
  const t = i.chart, e = t.options.animation;
5561
5557
  t.notifyPlugins("afterRender"), I(e && e.onComplete, [
5562
5558
  i
@@ -5568,11 +5564,11 @@ function Oc(i) {
5568
5564
  i
5569
5565
  ], t);
5570
5566
  }
5571
- function Fo(i) {
5572
- return fs() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
5567
+ function Ro(i) {
5568
+ return us() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
5573
5569
  }
5574
- const si = {}, fn = (i) => {
5575
- const t = Fo(i);
5570
+ const si = {}, un = (i) => {
5571
+ const t = Ro(i);
5576
5572
  return Object.values(si).filter((e) => e.canvas === t).pop();
5577
5573
  };
5578
5574
  function Tc(i, t, e) {
@@ -5602,13 +5598,13 @@ function Rc(i, t) {
5602
5598
  }
5603
5599
  class _t {
5604
5600
  static register(...t) {
5605
- ut.add(...t), gn();
5601
+ ut.add(...t), fn();
5606
5602
  }
5607
5603
  static unregister(...t) {
5608
- ut.remove(...t), gn();
5604
+ ut.remove(...t), fn();
5609
5605
  }
5610
5606
  constructor(t, e) {
5611
- const s = this.config = new Sc(e), n = Fo(t), o = fn(n);
5607
+ const s = this.config = new Sc(e), n = Ro(t), o = un(n);
5612
5608
  if (o)
5613
5609
  throw new Error("Canvas is already in use. Chart with ID '" + o.id + "' must be destroyed before the canvas with ID '" + o.canvas.id + "' can be reused.");
5614
5610
  const a = s.createResolver(s.chartOptionScopes(), this.getContext());
@@ -5618,7 +5614,7 @@ class _t {
5618
5614
  console.error("Failed to create chart: can't acquire context from the given item");
5619
5615
  return;
5620
5616
  }
5621
- mt.listen(this, "complete", un), mt.listen(this, "progress", Oc), this._initialize(), this.attached && this.update();
5617
+ mt.listen(this, "complete", dn), mt.listen(this, "progress", Oc), this._initialize(), this.attached && this.update();
5622
5618
  }
5623
5619
  get aspectRatio() {
5624
5620
  const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
@@ -5640,10 +5636,10 @@ class _t {
5640
5636
  return ut;
5641
5637
  }
5642
5638
  _initialize() {
5643
- return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Es(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
5639
+ return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Fs(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
5644
5640
  }
5645
5641
  clear() {
5646
- return Ls(this.canvas, this.ctx), this;
5642
+ return Ts(this.canvas, this.ctx), this;
5647
5643
  }
5648
5644
  stop() {
5649
5645
  return mt.stop(this), this;
@@ -5656,7 +5652,7 @@ class _t {
5656
5652
  }
5657
5653
  _resize(t, e) {
5658
5654
  const s = this.options, n = this.canvas, o = s.maintainAspectRatio && this.aspectRatio, a = this.platform.getMaximumSize(n, t, e, o), r = s.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
5659
- this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, Es(this, r, !0) && (this.notifyPlugins("resize", {
5655
+ this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, Fs(this, r, !0) && (this.notifyPlugins("resize", {
5660
5656
  size: a
5661
5657
  }), I(s.onResize, [
5662
5658
  this,
@@ -5673,15 +5669,15 @@ class _t {
5673
5669
  const t = this.options, e = t.scales, s = this.scales, n = Object.keys(s).reduce((a, r) => (a[r] = !1, a), {});
5674
5670
  let o = [];
5675
5671
  e && (o = o.concat(Object.keys(e).map((a) => {
5676
- const r = e[a], l = Yi(a, r), c = l === "r", h = l === "x";
5672
+ const r = e[a], l = $i(a, r), c = l === "r", h = l === "x";
5677
5673
  return {
5678
5674
  options: r,
5679
5675
  dposition: c ? "chartArea" : h ? "bottom" : "left",
5680
5676
  dtype: c ? "radialLinear" : h ? "category" : "linear"
5681
5677
  };
5682
5678
  }))), F(o, (a) => {
5683
- const r = a.options, l = r.id, c = Yi(l, r), h = C(r.type, a.dtype);
5684
- (r.position === void 0 || hn(r.position, c) !== hn(a.dposition)) && (r.position = a.dposition), n[l] = !0;
5679
+ const r = a.options, l = r.id, c = $i(l, r), h = C(r.type, a.dtype);
5680
+ (r.position === void 0 || cn(r.position, c) !== cn(a.dposition)) && (r.position = a.dposition), n[l] = !0;
5685
5681
  let d = null;
5686
5682
  if (l in s && s[l].type === h)
5687
5683
  d = s[l];
@@ -5708,7 +5704,7 @@ class _t {
5708
5704
  this._destroyDatasetMeta(n);
5709
5705
  t.splice(e, s - e);
5710
5706
  }
5711
- this._sortedMetasets = t.slice(0).sort(dn("order", "index"));
5707
+ this._sortedMetasets = t.slice(0).sort(hn("order", "index"));
5712
5708
  }
5713
5709
  _removeUnreferencedMetasets() {
5714
5710
  const { _metasets: t, data: { datasets: e } } = this;
@@ -5723,7 +5719,7 @@ class _t {
5723
5719
  const o = e[s];
5724
5720
  let a = this.getDatasetMeta(s);
5725
5721
  const r = o.type || this.config.type;
5726
- if (a.type && a.type !== r && (this._destroyDatasetMeta(s), a = this.getDatasetMeta(s)), a.type = r, a.indexAxis = o.indexAxis || $i(r, this.options), a.order = o.order || 0, a.index = s, a.label = "" + o.label, a.visible = this.isDatasetVisible(s), a.controller)
5722
+ if (a.type && a.type !== r && (this._destroyDatasetMeta(s), a = this.getDatasetMeta(s)), a.type = r, a.indexAxis = o.indexAxis || ji(r, this.options), a.order = o.order || 0, a.index = s, a.label = "" + o.label, a.visible = this.isDatasetVisible(s), a.controller)
5727
5723
  a.controller.updateIndex(s), a.controller.linkScales();
5728
5724
  else {
5729
5725
  const l = ut.getController(r), { datasetElementType: c, dataElementType: h } = H.datasets[r];
@@ -5763,7 +5759,7 @@ class _t {
5763
5759
  c.reset();
5764
5760
  }), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
5765
5761
  mode: t
5766
- }), this._layers.sort(dn("z", "_idx"));
5762
+ }), this._layers.sort(hn("z", "_idx"));
5767
5763
  const { _active: r, _lastEvent: l } = this;
5768
5764
  l ? this._eventHandler(l, !0) : r.length && this._updateHoverStyles(r, r, !0), this.render();
5769
5765
  }
@@ -5774,7 +5770,7 @@ class _t {
5774
5770
  }
5775
5771
  _checkEventBindings() {
5776
5772
  const t = this.options, e = new Set(Object.keys(this._listeners)), s = new Set(t.events);
5777
- (!ws(e, s) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
5773
+ (!ks(e, s) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
5778
5774
  }
5779
5775
  _updateHiddenIndices() {
5780
5776
  const { _hiddenIndices: t } = this, e = this._getUniformDataChanges() || [];
@@ -5790,7 +5786,7 @@ class _t {
5790
5786
  this._dataChanges = [];
5791
5787
  const e = this.data.datasets.length, s = (o) => new Set(t.filter((a) => a[0] === o).map((a, r) => r + "," + a.splice(1).join(","))), n = s(0);
5792
5788
  for (let o = 1; o < e; o++)
5793
- if (!ws(n, s(o)))
5789
+ if (!ks(n, s(o)))
5794
5790
  return;
5795
5791
  return Array.from(n).map((o) => o.split(",")).map((o) => ({
5796
5792
  method: o[1],
@@ -5839,7 +5835,7 @@ class _t {
5839
5835
  render() {
5840
5836
  this.notifyPlugins("beforeRender", {
5841
5837
  cancelable: !0
5842
- }) !== !1 && (mt.has(this) ? this.attached && !mt.running(this) && mt.start(this) : (this.draw(), un({
5838
+ }) !== !1 && (mt.has(this) ? this.attached && !mt.running(this) && mt.start(this) : (this.draw(), dn({
5843
5839
  chart: this
5844
5840
  })));
5845
5841
  }
@@ -5970,7 +5966,7 @@ class _t {
5970
5966
  destroy() {
5971
5967
  this.notifyPlugins("beforeDestroy");
5972
5968
  const { canvas: t, ctx: e } = this;
5973
- this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Ls(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete si[this.id], this.notifyPlugins("afterDestroy");
5969
+ this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Ts(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete si[this.id], this.notifyPlugins("afterDestroy");
5974
5970
  }
5975
5971
  toBase64Image(...t) {
5976
5972
  return this.canvas.toDataURL(...t);
@@ -6080,8 +6076,8 @@ class _t {
6080
6076
  return this.getElementsAtEventForMode(t, o.mode, o, n);
6081
6077
  }
6082
6078
  }
6083
- k(_t, "defaults", H), k(_t, "instances", si), k(_t, "overrides", Yt), k(_t, "registry", ut), k(_t, "version", Dc), k(_t, "getChart", fn);
6084
- function gn() {
6079
+ k(_t, "defaults", H), k(_t, "instances", si), k(_t, "overrides", $t), k(_t, "registry", ut), k(_t, "version", Dc), k(_t, "getChart", un);
6080
+ function fn() {
6085
6081
  return F(_t.instances, (i) => i._plugins.invalidate());
6086
6082
  }
6087
6083
  function Fc(i, t, e) {
@@ -6090,7 +6086,7 @@ function Fc(i, t, e) {
6090
6086
  i.beginPath(), i.arc(o, a, r, s - c, e + c), l > n ? (c = n / l, i.arc(o, a, l, e + c, s - c, !0)) : i.arc(o, a, n, e + Y, s - Y), i.closePath(), i.clip();
6091
6087
  }
6092
6088
  function Ec(i) {
6093
- return cs(i, [
6089
+ return ls(i, [
6094
6090
  "outerStart",
6095
6091
  "outerEnd",
6096
6092
  "innerStart",
@@ -6109,7 +6105,7 @@ function Ic(i, t, e, s) {
6109
6105
  innerEnd: K(n.innerEnd, 0, a)
6110
6106
  };
6111
6107
  }
6112
- function Zt(i, t, e, s) {
6108
+ function Gt(i, t, e, s) {
6113
6109
  return {
6114
6110
  x: e + i * Math.cos(t),
6115
6111
  y: s + i * Math.sin(t)
@@ -6127,22 +6123,22 @@ function gi(i, t, e, s, n, o) {
6127
6123
  if (i.beginPath(), o) {
6128
6124
  const E = (P + D) / 2;
6129
6125
  if (i.arc(a, r, d, P, E), i.arc(a, r, d, E, D), y > 0) {
6130
- const G = Zt(S, D, a, r);
6126
+ const G = Gt(S, D, a, r);
6131
6127
  i.arc(G.x, G.y, y, D, x + Y);
6132
6128
  }
6133
- const W = Zt(T, x, a, r);
6129
+ const W = Gt(T, x, a, r);
6134
6130
  if (i.lineTo(W.x, W.y), w > 0) {
6135
- const G = Zt(T, st, a, r);
6131
+ const G = Gt(T, st, a, r);
6136
6132
  i.arc(G.x, G.y, w, x + Y, st + Math.PI);
6137
6133
  }
6138
6134
  const $ = (x - w / u + (b + _ / u)) / 2;
6139
6135
  if (i.arc(a, r, u, x - w / u, $, !0), i.arc(a, r, u, $, b + _ / u, !0), _ > 0) {
6140
- const G = Zt(A, q, a, r);
6136
+ const G = Gt(A, q, a, r);
6141
6137
  i.arc(G.x, G.y, _, q + Math.PI, b - Y);
6142
6138
  }
6143
- const rt = Zt(M, b, a, r);
6139
+ const rt = Gt(M, b, a, r);
6144
6140
  if (i.lineTo(rt.x, rt.y), v > 0) {
6145
- const G = Zt(M, P, a, r);
6141
+ const G = Gt(M, P, a, r);
6146
6142
  i.arc(G.x, G.y, v, b - Y, P);
6147
6143
  }
6148
6144
  } else {
@@ -6195,7 +6191,7 @@ class me extends ht {
6195
6191
  const o = this.getProps([
6196
6192
  "x",
6197
6193
  "y"
6198
- ], n), { angle: a, distance: r } = eo(o, {
6194
+ ], n), { angle: a, distance: r } = to(o, {
6199
6195
  x: e,
6200
6196
  y: s
6201
6197
  }), { startAngle: l, endAngle: c, innerRadius: h, outerRadius: d, circumference: u } = this.getProps([
@@ -6253,7 +6249,7 @@ k(me, "id", "arc"), k(me, "defaults", {
6253
6249
  _scriptable: !0,
6254
6250
  _indexable: (e) => e !== "borderDash"
6255
6251
  });
6256
- function Eo(i, t, e = t) {
6252
+ function Fo(i, t, e = t) {
6257
6253
  i.lineCap = C(e.borderCapStyle, t.borderCapStyle), i.setLineDash(C(e.borderDash, t.borderDash)), i.lineDashOffset = C(e.borderDashOffset, t.borderDashOffset), i.lineJoin = C(e.borderJoinStyle, t.borderJoinStyle), i.lineWidth = C(e.borderWidth, t.borderWidth), i.strokeStyle = C(e.borderColor, t.borderColor);
6258
6254
  }
6259
6255
  function Vc(i, t, e) {
@@ -6262,7 +6258,7 @@ function Vc(i, t, e) {
6262
6258
  function Wc(i) {
6263
6259
  return i.stepped ? cr : i.tension || i.cubicInterpolationMode === "monotone" ? hr : Vc;
6264
6260
  }
6265
- function Io(i, t, e = {}) {
6261
+ function Eo(i, t, e = {}) {
6266
6262
  const s = i.length, { start: n = 0, end: o = s - 1 } = e, { start: a, end: r } = t, l = Math.max(n, a), c = Math.min(o, r), h = n < a && o < a || n > r && o > r;
6267
6263
  return {
6268
6264
  count: s,
@@ -6272,14 +6268,14 @@ function Io(i, t, e = {}) {
6272
6268
  };
6273
6269
  }
6274
6270
  function Nc(i, t, e, s) {
6275
- const { points: n, options: o } = t, { count: a, start: r, loop: l, ilen: c } = Io(n, e, s), h = Wc(o);
6271
+ const { points: n, options: o } = t, { count: a, start: r, loop: l, ilen: c } = Eo(n, e, s), h = Wc(o);
6276
6272
  let { move: d = !0, reverse: u } = s || {}, f, g, p;
6277
6273
  for (f = 0; f <= c; ++f)
6278
6274
  g = n[(r + (u ? c - f : f)) % a], !g.skip && (d ? (i.moveTo(g.x, g.y), d = !1) : h(i, p, g, u, o.stepped), p = g);
6279
6275
  return l && (g = n[(r + (u ? c : 0)) % a], h(i, p, g, u, o.stepped)), !!l;
6280
6276
  }
6281
6277
  function Hc(i, t, e, s) {
6282
- const n = t.points, { count: o, start: a, ilen: r } = Io(n, e, s), { move: l = !0, reverse: c } = s || {};
6278
+ const n = t.points, { count: o, start: a, ilen: r } = Eo(n, e, s), { move: l = !0, reverse: c } = s || {};
6283
6279
  let h = 0, d = 0, u, f, g, p, m, b;
6284
6280
  const x = (y) => (a + (c ? r - y : y)) % o, v = () => {
6285
6281
  p !== m && (i.lineTo(h, m), i.lineTo(h, p), i.lineTo(h, b));
@@ -6292,7 +6288,7 @@ function Hc(i, t, e, s) {
6292
6288
  }
6293
6289
  v();
6294
6290
  }
6295
- function Ui(i) {
6291
+ function Yi(i) {
6296
6292
  const t = i.options, e = t.borderDash && t.borderDash.length;
6297
6293
  return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Hc : Nc;
6298
6294
  }
@@ -6301,12 +6297,12 @@ function jc(i) {
6301
6297
  }
6302
6298
  function $c(i, t, e, s) {
6303
6299
  let n = t._path;
6304
- n || (n = t._path = new Path2D(), t.path(n, e, s) && n.closePath()), Eo(i, t.options), i.stroke(n);
6300
+ n || (n = t._path = new Path2D(), t.path(n, e, s) && n.closePath()), Fo(i, t.options), i.stroke(n);
6305
6301
  }
6306
6302
  function Yc(i, t, e, s) {
6307
- const { segments: n, options: o } = t, a = Ui(t);
6303
+ const { segments: n, options: o } = t, a = Yi(t);
6308
6304
  for (const r of n)
6309
- Eo(i, o, r.style), i.beginPath(), a(i, t, r, {
6305
+ Fo(i, o, r.style), i.beginPath(), a(i, t, r, {
6310
6306
  start: e,
6311
6307
  end: e + s - 1
6312
6308
  }) && i.closePath(), i.stroke();
@@ -6344,7 +6340,7 @@ class Ct extends ht {
6344
6340
  return s && e[t[s - 1].end];
6345
6341
  }
6346
6342
  interpolate(t, e) {
6347
- const s = this.options, n = t[e], o = this.points, a = ko(this, {
6343
+ const s = this.options, n = t[e], o = this.points, a = vo(this, {
6348
6344
  property: e,
6349
6345
  start: n,
6350
6346
  end: n
@@ -6365,10 +6361,10 @@ class Ct extends ht {
6365
6361
  return r.length === 1 ? r[0] : r;
6366
6362
  }
6367
6363
  pathSegment(t, e, s) {
6368
- return Ui(this)(t, this, e, s);
6364
+ return Yi(this)(t, this, e, s);
6369
6365
  }
6370
6366
  path(t, e, s) {
6371
- const n = this.segments, o = Ui(this);
6367
+ const n = this.segments, o = Yi(this);
6372
6368
  let a = this._loop;
6373
6369
  e = e || 0, s = s || this.points.length - e;
6374
6370
  for (const r of n)
@@ -6402,7 +6398,7 @@ k(Ct, "id", "line"), k(Ct, "defaults", {
6402
6398
  _scriptable: !0,
6403
6399
  _indexable: (t) => t !== "borderDash" && t !== "fill"
6404
6400
  });
6405
- function pn(i, t, e, s) {
6401
+ function gn(i, t, e, s) {
6406
6402
  const n = i.options, { [e]: o } = i.getProps([
6407
6403
  e
6408
6404
  ], s);
@@ -6424,10 +6420,10 @@ class ni extends ht {
6424
6420
  return Math.pow(e - a, 2) + Math.pow(s - r, 2) < Math.pow(o.hitRadius + o.radius, 2);
6425
6421
  }
6426
6422
  inXRange(e, s) {
6427
- return pn(this, e, "x", s);
6423
+ return gn(this, e, "x", s);
6428
6424
  }
6429
6425
  inYRange(e, s) {
6430
- return pn(this, e, "y", s);
6426
+ return gn(this, e, "y", s);
6431
6427
  }
6432
6428
  getCenterPoint(e) {
6433
6429
  const { x: s, y: n } = this.getProps([
@@ -6448,7 +6444,7 @@ class ni extends ht {
6448
6444
  }
6449
6445
  draw(e, s) {
6450
6446
  const n = this.options;
6451
- this.skip || n.radius < 0.1 || !kt(this, s, this.size(n) / 2) || (e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.fillStyle = n.backgroundColor, Hi(e, n, this.x, this.y));
6447
+ this.skip || n.radius < 0.1 || !kt(this, s, this.size(n) / 2) || (e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.fillStyle = n.backgroundColor, Ni(e, n, this.x, this.y));
6452
6448
  }
6453
6449
  getRange() {
6454
6450
  const e = this.options || {};
@@ -6473,7 +6469,7 @@ k(ni, "defaultRoutes", {
6473
6469
  backgroundColor: "backgroundColor",
6474
6470
  borderColor: "borderColor"
6475
6471
  });
6476
- function zo(i, t) {
6472
+ function Io(i, t) {
6477
6473
  const { x: e, y: s, base: n, width: o, height: a } = i.getProps([
6478
6474
  "x",
6479
6475
  "y",
@@ -6493,7 +6489,7 @@ function Dt(i, t, e, s) {
6493
6489
  return i ? 0 : K(t, e, s);
6494
6490
  }
6495
6491
  function Kc(i, t, e) {
6496
- const s = i.options.borderWidth, n = i.borderSkipped, o = ho(s);
6492
+ const s = i.options.borderWidth, n = i.borderSkipped, o = co(s);
6497
6493
  return {
6498
6494
  t: Dt(n.top, o.top, 0, e),
6499
6495
  r: Dt(n.right, o.right, 0, t),
@@ -6504,7 +6500,7 @@ function Kc(i, t, e) {
6504
6500
  function qc(i, t, e) {
6505
6501
  const { enableBorderRadius: s } = i.getProps([
6506
6502
  "enableBorderRadius"
6507
- ]), n = i.options.borderRadius, o = jt(n), a = Math.min(t, e), r = i.borderSkipped, l = s || O(n);
6503
+ ]), n = i.options.borderRadius, o = Ht(n), a = Math.min(t, e), r = i.borderSkipped, l = s || O(n);
6508
6504
  return {
6509
6505
  topLeft: Dt(!l || r.top || r.left, o.topLeft, 0, a),
6510
6506
  topRight: Dt(!l || r.top || r.right, o.topRight, 0, a),
@@ -6513,7 +6509,7 @@ function qc(i, t, e) {
6513
6509
  };
6514
6510
  }
6515
6511
  function Gc(i) {
6516
- const t = zo(i), e = t.right - t.left, s = t.bottom - t.top, n = Kc(i, e / 2, s / 2), o = qc(i, e / 2, s / 2);
6512
+ const t = Io(i), e = t.right - t.left, s = t.bottom - t.top, n = Kc(i, e / 2, s / 2), o = qc(i, e / 2, s / 2);
6517
6513
  return {
6518
6514
  outer: {
6519
6515
  x: t.left,
@@ -6537,7 +6533,7 @@ function Gc(i) {
6537
6533
  };
6538
6534
  }
6539
6535
  function Ri(i, t, e, s) {
6540
- const n = t === null, o = e === null, r = i && !(n && o) && zo(i, s);
6536
+ const n = t === null, o = e === null, r = i && !(n && o) && Io(i, s);
6541
6537
  return r && (n || yt(t, r.left, r.right)) && (o || yt(e, r.top, r.bottom));
6542
6538
  }
6543
6539
  function Zc(i) {
@@ -6606,7 +6602,7 @@ var Jc = /* @__PURE__ */ Object.freeze({
6606
6602
  LineElement: Ct,
6607
6603
  PointElement: ni
6608
6604
  });
6609
- const Xi = [
6605
+ const Ui = [
6610
6606
  "rgb(54, 162, 235)",
6611
6607
  "rgb(255, 99, 132)",
6612
6608
  "rgb(255, 159, 64)",
@@ -6615,21 +6611,21 @@ const Xi = [
6615
6611
  "rgb(153, 102, 255)",
6616
6612
  "rgb(201, 203, 207)"
6617
6613
  // grey
6618
- ], mn = /* @__PURE__ */ Xi.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
6619
- function Bo(i) {
6620
- return Xi[i % Xi.length];
6614
+ ], pn = /* @__PURE__ */ Ui.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
6615
+ function zo(i) {
6616
+ return Ui[i % Ui.length];
6621
6617
  }
6622
- function Vo(i) {
6623
- return mn[i % mn.length];
6618
+ function Bo(i) {
6619
+ return pn[i % pn.length];
6624
6620
  }
6625
6621
  function th(i, t) {
6626
- return i.borderColor = Bo(t), i.backgroundColor = Vo(t), ++t;
6622
+ return i.borderColor = zo(t), i.backgroundColor = Bo(t), ++t;
6627
6623
  }
6628
6624
  function eh(i, t) {
6629
- return i.backgroundColor = i.data.map(() => Bo(t++)), t;
6625
+ return i.backgroundColor = i.data.map(() => zo(t++)), t;
6630
6626
  }
6631
6627
  function ih(i, t) {
6632
- return i.backgroundColor = i.data.map(() => Vo(t++)), t;
6628
+ return i.backgroundColor = i.data.map(() => Bo(t++)), t;
6633
6629
  }
6634
6630
  function sh(i) {
6635
6631
  let t = 0;
@@ -6638,7 +6634,7 @@ function sh(i) {
6638
6634
  n instanceof Nt ? t = eh(e, t) : n instanceof we ? t = ih(e, t) : n && (t = th(e, t));
6639
6635
  };
6640
6636
  }
6641
- function bn(i) {
6637
+ function mn(i) {
6642
6638
  let t;
6643
6639
  for (t in i)
6644
6640
  if (i[t].borderColor || i[t].backgroundColor)
@@ -6660,7 +6656,7 @@ var ah = {
6660
6656
  beforeLayout(i, t, e) {
6661
6657
  if (!e.enabled)
6662
6658
  return;
6663
- const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, a = bn(s) || nh(n) || o && bn(o) || oh();
6659
+ const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, a = mn(s) || nh(n) || o && mn(o) || oh();
6664
6660
  if (!e.forceOverride && a)
6665
6661
  return;
6666
6662
  const r = sh(i);
@@ -6713,7 +6709,7 @@ function lh(i, t, e, s) {
6713
6709
  }
6714
6710
  return m;
6715
6711
  }
6716
- function Wo(i) {
6712
+ function Vo(i) {
6717
6713
  if (i._decimated) {
6718
6714
  const t = i._data;
6719
6715
  delete i._decimated, delete i._data, Object.defineProperty(i, "data", {
@@ -6724,9 +6720,9 @@ function Wo(i) {
6724
6720
  });
6725
6721
  }
6726
6722
  }
6727
- function xn(i) {
6723
+ function bn(i) {
6728
6724
  i.data.datasets.forEach((t) => {
6729
- Wo(t);
6725
+ Vo(t);
6730
6726
  });
6731
6727
  }
6732
6728
  function ch(i, t) {
@@ -6746,7 +6742,7 @@ var hh = {
6746
6742
  },
6747
6743
  beforeElementsUpdate: (i, t, e) => {
6748
6744
  if (!e.enabled) {
6749
- xn(i);
6745
+ bn(i);
6750
6746
  return;
6751
6747
  }
6752
6748
  const s = i.width;
@@ -6763,7 +6759,7 @@ var hh = {
6763
6759
  let { start: d, count: u } = ch(l, c);
6764
6760
  const f = e.threshold || 4 * s;
6765
6761
  if (u <= f) {
6766
- Wo(n);
6762
+ Vo(n);
6767
6763
  return;
6768
6764
  }
6769
6765
  L(a) && (n._data = c, delete n.data, Object.defineProperty(n, "data", {
@@ -6791,15 +6787,15 @@ var hh = {
6791
6787
  });
6792
6788
  },
6793
6789
  destroy(i) {
6794
- xn(i);
6790
+ bn(i);
6795
6791
  }
6796
6792
  };
6797
6793
  function dh(i, t, e) {
6798
6794
  const s = i.segments, n = i.points, o = t.points, a = [];
6799
6795
  for (const r of s) {
6800
6796
  let { start: l, end: c } = r;
6801
- c = ms(l, c, n);
6802
- const h = Ki(e, n[l], n[c], r.loop);
6797
+ c = ps(l, c, n);
6798
+ const h = Xi(e, n[l], n[c], r.loop);
6803
6799
  if (!t.segments) {
6804
6800
  a.push({
6805
6801
  source: r,
@@ -6809,25 +6805,25 @@ function dh(i, t, e) {
6809
6805
  });
6810
6806
  continue;
6811
6807
  }
6812
- const d = ko(t, h);
6808
+ const d = vo(t, h);
6813
6809
  for (const u of d) {
6814
- const f = Ki(e, o[u.start], o[u.end], u.loop), g = vo(r, n, f);
6810
+ const f = Xi(e, o[u.start], o[u.end], u.loop), g = yo(r, n, f);
6815
6811
  for (const p of g)
6816
6812
  a.push({
6817
6813
  source: p,
6818
6814
  target: u,
6819
6815
  start: {
6820
- [e]: _n(h, f, "start", Math.max)
6816
+ [e]: xn(h, f, "start", Math.max)
6821
6817
  },
6822
6818
  end: {
6823
- [e]: _n(h, f, "end", Math.min)
6819
+ [e]: xn(h, f, "end", Math.min)
6824
6820
  }
6825
6821
  });
6826
6822
  }
6827
6823
  }
6828
6824
  return a;
6829
6825
  }
6830
- function Ki(i, t, e, s) {
6826
+ function Xi(i, t, e, s) {
6831
6827
  if (s)
6832
6828
  return;
6833
6829
  let n = t[i], o = e[i];
@@ -6840,7 +6836,7 @@ function Ki(i, t, e, s) {
6840
6836
  function uh(i, t) {
6841
6837
  const { x: e = null, y: s = null } = i || {}, n = t.points, o = [];
6842
6838
  return t.segments.forEach(({ start: a, end: r }) => {
6843
- r = ms(a, r, n);
6839
+ r = ps(a, r, n);
6844
6840
  const l = n[a], c = n[r];
6845
6841
  s !== null ? (o.push({
6846
6842
  x: l.x,
@@ -6857,7 +6853,7 @@ function uh(i, t) {
6857
6853
  }));
6858
6854
  }), o;
6859
6855
  }
6860
- function ms(i, t, e) {
6856
+ function ps(i, t, e) {
6861
6857
  for (; t > i; t--) {
6862
6858
  const s = e[t];
6863
6859
  if (!isNaN(s.x) && !isNaN(s.y))
@@ -6865,10 +6861,10 @@ function ms(i, t, e) {
6865
6861
  }
6866
6862
  return t;
6867
6863
  }
6868
- function _n(i, t, e, s) {
6864
+ function xn(i, t, e, s) {
6869
6865
  return i && t ? s(i[e], t[e]) : i ? i[e] : t ? t[e] : 0;
6870
6866
  }
6871
- function No(i, t) {
6867
+ function Wo(i, t) {
6872
6868
  let e = [], s = !1;
6873
6869
  return N(i) ? (s = !0, e = i) : e = uh(i, t), e.length ? new Ct({
6874
6870
  points: e,
@@ -6879,7 +6875,7 @@ function No(i, t) {
6879
6875
  _fullLoop: s
6880
6876
  }) : null;
6881
6877
  }
6882
- function yn(i) {
6878
+ function _n(i) {
6883
6879
  return i && i.fill !== !1;
6884
6880
  }
6885
6881
  function fh(i, t, e) {
@@ -6932,7 +6928,7 @@ function xh(i) {
6932
6928
  }
6933
6929
  function _h(i) {
6934
6930
  const { scale: t, index: e, line: s } = i, n = [], o = s.segments, a = s.points, r = yh(t, e);
6935
- r.push(No({
6931
+ r.push(Wo({
6936
6932
  x: null,
6937
6933
  y: t.bottom
6938
6934
  }, s));
@@ -6988,7 +6984,7 @@ function kh(i, t, e) {
6988
6984
  point: s
6989
6985
  };
6990
6986
  }
6991
- class Ho {
6987
+ class No {
6992
6988
  constructor(t) {
6993
6989
  this.x = t.x, this.y = t.y, this.radius = t.radius;
6994
6990
  }
@@ -7017,7 +7013,7 @@ function wh(i) {
7017
7013
  if (e === "shape")
7018
7014
  return !0;
7019
7015
  const n = Sh(i);
7020
- return n instanceof Ho ? n : No(n, s);
7016
+ return n instanceof No ? n : Wo(n, s);
7021
7017
  }
7022
7018
  function Mh(i, t) {
7023
7019
  const e = i.getDatasetMeta(t);
@@ -7041,7 +7037,7 @@ function Ch(i) {
7041
7037
  const { scale: t, fill: e } = i, s = t.options, n = t.getLabels().length, o = s.reverse ? t.max : t.min, a = bh(e, t, o), r = [];
7042
7038
  if (s.grid.circular) {
7043
7039
  const l = t.getPointPositionForValue(0, o);
7044
- return new Ho({
7040
+ return new No({
7045
7041
  x: l.x,
7046
7042
  y: l.y,
7047
7043
  radius: t.getDistanceFromCenterForValue(a)
@@ -7065,13 +7061,13 @@ function Ei(i, t, e) {
7065
7061
  }
7066
7062
  function Dh(i, t) {
7067
7063
  const { line: e, target: s, above: n, below: o, area: a, scale: r } = t, l = e._loop ? "angle" : t.axis;
7068
- i.save(), l === "x" && o !== n && (vn(i, s, a.top), kn(i, {
7064
+ i.save(), l === "x" && o !== n && (yn(i, s, a.top), vn(i, {
7069
7065
  line: e,
7070
7066
  target: s,
7071
7067
  color: n,
7072
7068
  scale: r,
7073
7069
  property: l
7074
- }), i.restore(), i.save(), vn(i, s, a.bottom)), kn(i, {
7070
+ }), i.restore(), i.save(), yn(i, s, a.bottom)), vn(i, {
7075
7071
  line: e,
7076
7072
  target: s,
7077
7073
  color: o,
@@ -7079,32 +7075,32 @@ function Dh(i, t) {
7079
7075
  property: l
7080
7076
  }), i.restore();
7081
7077
  }
7082
- function vn(i, t, e) {
7078
+ function yn(i, t, e) {
7083
7079
  const { segments: s, points: n } = t;
7084
7080
  let o = !0, a = !1;
7085
7081
  i.beginPath();
7086
7082
  for (const r of s) {
7087
- const { start: l, end: c } = r, h = n[l], d = n[ms(l, c, n)];
7083
+ const { start: l, end: c } = r, h = n[l], d = n[ps(l, c, n)];
7088
7084
  o ? (i.moveTo(h.x, h.y), o = !1) : (i.lineTo(h.x, e), i.lineTo(h.x, h.y)), a = !!t.pathSegment(i, r, {
7089
7085
  move: a
7090
7086
  }), a ? i.closePath() : i.lineTo(d.x, e);
7091
7087
  }
7092
7088
  i.lineTo(t.first().x, e), i.closePath(), i.clip();
7093
7089
  }
7094
- function kn(i, t) {
7090
+ function vn(i, t) {
7095
7091
  const { line: e, target: s, property: n, color: o, scale: a } = t, r = dh(e, s, n);
7096
7092
  for (const { source: l, target: c, start: h, end: d } of r) {
7097
7093
  const { style: { backgroundColor: u = o } = {} } = l, f = s !== !0;
7098
- i.save(), i.fillStyle = u, Ah(i, a, f && Ki(n, h, d)), i.beginPath();
7094
+ i.save(), i.fillStyle = u, Ah(i, a, f && Xi(n, h, d)), i.beginPath();
7099
7095
  const g = !!e.pathSegment(i, l);
7100
7096
  let p;
7101
7097
  if (f) {
7102
- g ? i.closePath() : wn(i, s, d, n);
7098
+ g ? i.closePath() : kn(i, s, d, n);
7103
7099
  const m = !!s.pathSegment(i, c, {
7104
7100
  move: g,
7105
7101
  reverse: !0
7106
7102
  });
7107
- p = g && m, p || wn(i, s, h, n);
7103
+ p = g && m, p || kn(i, s, h, n);
7108
7104
  }
7109
7105
  i.closePath(), i.fill(p ? "evenodd" : "nonzero"), i.restore();
7110
7106
  }
@@ -7113,7 +7109,7 @@ function Ah(i, t, e) {
7113
7109
  const { top: s, bottom: n } = t.chart.chartArea, { property: o, start: a, end: r } = e || {};
7114
7110
  o === "x" && (i.beginPath(), i.rect(a, s, r - a, n - s), i.clip());
7115
7111
  }
7116
- function wn(i, t, e, s) {
7112
+ function kn(i, t, e, s) {
7117
7113
  const n = t.interpolate(e, s);
7118
7114
  n && i.lineTo(n.x, n.y);
7119
7115
  }
@@ -7148,19 +7144,19 @@ var Oh = {
7148
7144
  const s = i.getSortedVisibleDatasetMetas();
7149
7145
  for (let n = s.length - 1; n >= 0; --n) {
7150
7146
  const o = s[n].$filler;
7151
- yn(o) && Ei(i.ctx, o, i.chartArea);
7147
+ _n(o) && Ei(i.ctx, o, i.chartArea);
7152
7148
  }
7153
7149
  },
7154
7150
  beforeDatasetDraw(i, t, e) {
7155
7151
  const s = t.meta.$filler;
7156
- !yn(s) || e.drawTime !== "beforeDatasetDraw" || Ei(i.ctx, s, i.chartArea);
7152
+ !_n(s) || e.drawTime !== "beforeDatasetDraw" || Ei(i.ctx, s, i.chartArea);
7157
7153
  },
7158
7154
  defaults: {
7159
7155
  propagate: !0,
7160
7156
  drawTime: "beforeDatasetDraw"
7161
7157
  }
7162
7158
  };
7163
- const Mn = (i, t) => {
7159
+ const wn = (i, t) => {
7164
7160
  let { boxHeight: e = t, boxWidth: s = t } = i;
7165
7161
  return i.usePointStyle && (e = Math.min(e, t), s = i.pointStyleWidth || Math.min(s, t)), {
7166
7162
  boxWidth: s,
@@ -7168,7 +7164,7 @@ const Mn = (i, t) => {
7168
7164
  itemHeight: Math.max(t, e)
7169
7165
  };
7170
7166
  }, Th = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
7171
- class Sn extends ht {
7167
+ class Mn extends ht {
7172
7168
  constructor(t) {
7173
7169
  super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
7174
7170
  }
@@ -7191,7 +7187,7 @@ class Sn extends ht {
7191
7187
  this.width = this.height = 0;
7192
7188
  return;
7193
7189
  }
7194
- const s = t.labels, n = X(s.font), o = n.size, a = this._computeTitleHeight(), { boxWidth: r, itemHeight: l } = Mn(s, o);
7190
+ const s = t.labels, n = X(s.font), o = n.size, a = this._computeTitleHeight(), { boxWidth: r, itemHeight: l } = wn(s, o);
7195
7191
  let c, h;
7196
7192
  e.font = n.string, this.isHorizontal() ? (c = this.maxWidth, h = this._fitRows(a, o, r, l) + 10) : (h = this.maxHeight, c = this._fitCols(a, n, r, l) + 10), this.width = Math.min(c, t.maxWidth || this.maxWidth), this.height = Math.min(h, t.maxHeight || this.maxHeight);
7197
7193
  }
@@ -7260,7 +7256,7 @@ class Sn extends ht {
7260
7256
  const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: a } = t, r = H.color, l = te(t.rtl, this.left, this.width), c = X(a.font), { padding: h } = a, d = c.size, u = d / 2;
7261
7257
  let f;
7262
7258
  this.drawTitle(), n.textAlign = l.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = c.string;
7263
- const { boxWidth: g, boxHeight: p, itemHeight: m } = Mn(a, d), b = function(w, M, S) {
7259
+ const { boxWidth: g, boxHeight: p, itemHeight: m } = wn(a, d), b = function(w, M, S) {
7264
7260
  if (isNaN(g) || g <= 0 || isNaN(p) || p < 0)
7265
7261
  return;
7266
7262
  n.save();
@@ -7272,9 +7268,9 @@ class Sn extends ht {
7272
7268
  rotation: S.rotation,
7273
7269
  borderWidth: P
7274
7270
  }, A = l.xPlus(w, g / 2), T = M + u;
7275
- co(n, D, A, T, a.pointStyleWidth && g);
7271
+ lo(n, D, A, T, a.pointStyleWidth && g);
7276
7272
  } else {
7277
- const D = M + Math.max((d - p) / 2, 0), A = l.leftForLtr(w, g), T = jt(S.borderRadius);
7273
+ const D = M + Math.max((d - p) / 2, 0), A = l.leftForLtr(w, g), T = Ht(S.borderRadius);
7278
7274
  n.beginPath(), Object.values(T).some((q) => q !== 0) ? De(n, {
7279
7275
  x: A,
7280
7276
  y: D,
@@ -7285,7 +7281,7 @@ class Sn extends ht {
7285
7281
  }
7286
7282
  n.restore();
7287
7283
  }, x = function(w, M, S) {
7288
- Ut(n, S.text, w, M + m / 2, c, {
7284
+ Yt(n, S.text, w, M + m / 2, c, {
7289
7285
  strikethrough: S.hidden,
7290
7286
  textAlign: l.textAlign(S.textAlign)
7291
7287
  });
@@ -7298,7 +7294,7 @@ class Sn extends ht {
7298
7294
  x: this.left + h,
7299
7295
  y: Z(o, this.top + y + h, this.bottom - e[0].height),
7300
7296
  line: 0
7301
- }, xo(this.ctx, t.textDirection);
7297
+ }, bo(this.ctx, t.textDirection);
7302
7298
  const _ = m + h;
7303
7299
  this.legendItems.forEach((w, M) => {
7304
7300
  n.strokeStyle = w.fontColor, n.fillStyle = w.fontColor;
@@ -7310,10 +7306,10 @@ class Sn extends ht {
7310
7306
  f.x += D + h;
7311
7307
  else if (typeof w.text != "string") {
7312
7308
  const st = c.lineHeight;
7313
- f.y += jo(w, st) + h;
7309
+ f.y += Ho(w, st) + h;
7314
7310
  } else
7315
7311
  f.y += _;
7316
- }), _o(this.ctx, t.textDirection);
7312
+ }), xo(this.ctx, t.textDirection);
7317
7313
  }
7318
7314
  drawTitle() {
7319
7315
  const t = this.options, e = t.title, s = X(e.font), n = J(e.padding);
@@ -7328,7 +7324,7 @@ class Sn extends ht {
7328
7324
  h = c + Z(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight());
7329
7325
  }
7330
7326
  const f = Z(r, d, d + u);
7331
- a.textAlign = o.textAlign(rs(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, Ut(a, e.text, f, h, s);
7327
+ a.textAlign = o.textAlign(as(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, Yt(a, e.text, f, h, s);
7332
7328
  }
7333
7329
  _computeTitleHeight() {
7334
7330
  const t = this.options.title, e = X(t.font), s = J(t.padding);
@@ -7379,9 +7375,9 @@ function Rh(i, t, e, s) {
7379
7375
  }
7380
7376
  function Fh(i, t, e) {
7381
7377
  let s = i;
7382
- return typeof t.text != "string" && (s = jo(t, e)), s;
7378
+ return typeof t.text != "string" && (s = Ho(t, e)), s;
7383
7379
  }
7384
- function jo(i, t) {
7380
+ function Ho(i, t) {
7385
7381
  const e = i.text ? i.text.length : 0;
7386
7382
  return t * e;
7387
7383
  }
@@ -7390,9 +7386,9 @@ function Eh(i, t) {
7390
7386
  }
7391
7387
  var Ih = {
7392
7388
  id: "legend",
7393
- _element: Sn,
7389
+ _element: Mn,
7394
7390
  start(i, t, e) {
7395
- const s = i.legend = new Sn({
7391
+ const s = i.legend = new Mn({
7396
7392
  ctx: i.ctx,
7397
7393
  options: e,
7398
7394
  chart: i
@@ -7472,7 +7468,7 @@ var Ih = {
7472
7468
  }
7473
7469
  }
7474
7470
  };
7475
- class bs extends ht {
7471
+ class ms extends ht {
7476
7472
  constructor(t) {
7477
7473
  super(), this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this._padding = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
7478
7474
  }
@@ -7507,11 +7503,11 @@ class bs extends ht {
7507
7503
  if (!e.display)
7508
7504
  return;
7509
7505
  const s = X(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
7510
- Ut(t, e.text, 0, 0, s, {
7506
+ Yt(t, e.text, 0, 0, s, {
7511
7507
  color: e.color,
7512
7508
  maxWidth: l,
7513
7509
  rotation: c,
7514
- textAlign: rs(e.align),
7510
+ textAlign: as(e.align),
7515
7511
  textBaseline: "middle",
7516
7512
  translation: [
7517
7513
  a,
@@ -7521,7 +7517,7 @@ class bs extends ht {
7521
7517
  }
7522
7518
  }
7523
7519
  function zh(i, t) {
7524
- const e = new bs({
7520
+ const e = new ms({
7525
7521
  ctx: i.ctx,
7526
7522
  options: t,
7527
7523
  chart: i
@@ -7530,7 +7526,7 @@ function zh(i, t) {
7530
7526
  }
7531
7527
  var Bh = {
7532
7528
  id: "title",
7533
- _element: bs,
7529
+ _element: ms,
7534
7530
  start(i, t, e) {
7535
7531
  zh(i, e);
7536
7532
  },
@@ -7566,7 +7562,7 @@ const Ue = /* @__PURE__ */ new WeakMap();
7566
7562
  var Vh = {
7567
7563
  id: "subtitle",
7568
7564
  start(i, t, e) {
7569
- const s = new bs({
7565
+ const s = new ms({
7570
7566
  ctx: i.ctx,
7571
7567
  options: e,
7572
7568
  chart: i
@@ -7626,7 +7622,7 @@ const be = {
7626
7622
  for (o = 0, a = i.length; o < a; ++o) {
7627
7623
  const l = i[o].element;
7628
7624
  if (l && l.hasValue()) {
7629
- const c = l.getCenterPoint(), h = Wi(t, c);
7625
+ const c = l.getCenterPoint(), h = Vi(t, c);
7630
7626
  h < n && (n = h, r = l);
7631
7627
  }
7632
7628
  }
@@ -7662,7 +7658,7 @@ function Wh(i, t) {
7662
7658
  element: e
7663
7659
  };
7664
7660
  }
7665
- function Pn(i, t) {
7661
+ function Sn(i, t) {
7666
7662
  const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = X(t.bodyFont), c = X(t.titleFont), h = X(t.footerFont), d = o.length, u = n.length, f = s.length, g = J(t.padding);
7667
7663
  let p = g.height, m = 0, b = s.reduce((y, _) => y + _.before.length + _.lines.length + _.after.length, 0);
7668
7664
  if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
@@ -7695,7 +7691,7 @@ function jh(i, t, e, s) {
7695
7691
  let c = "center";
7696
7692
  return s === "center" ? c = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= a - o / 2 && (c = "right"), Hh(c, i, t, e) && (c = "center"), c;
7697
7693
  }
7698
- function Cn(i, t, e) {
7694
+ function Pn(i, t, e) {
7699
7695
  const s = e.yAlign || t.yAlign || Nh(i, e);
7700
7696
  return {
7701
7697
  xAlign: e.xAlign || t.xAlign || jh(i, t, e, s),
@@ -7710,8 +7706,8 @@ function Yh(i, t, e) {
7710
7706
  let { y: s, height: n } = i;
7711
7707
  return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
7712
7708
  }
7713
- function Dn(i, t, e, s) {
7714
- const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = jt(a);
7709
+ function Cn(i, t, e, s) {
7710
+ const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Ht(a);
7715
7711
  let g = $h(t, r);
7716
7712
  const p = Yh(t, l, c);
7717
7713
  return l === "center" ? r === "left" ? g += c : r === "right" && (g -= c) : r === "left" ? g -= Math.max(h, u) + n : r === "right" && (g += Math.max(d, f) + n), {
@@ -7723,7 +7719,7 @@ function Xe(i, t, e) {
7723
7719
  const s = J(e.padding);
7724
7720
  return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
7725
7721
  }
7726
- function An(i) {
7722
+ function Dn(i) {
7727
7723
  return dt([], bt(i));
7728
7724
  }
7729
7725
  function Uh(i, t, e) {
@@ -7733,11 +7729,11 @@ function Uh(i, t, e) {
7733
7729
  type: "tooltip"
7734
7730
  });
7735
7731
  }
7736
- function On(i, t) {
7732
+ function An(i, t) {
7737
7733
  const e = t && t.dataset && t.dataset.tooltip && t.dataset.tooltip.callbacks;
7738
7734
  return e ? i.override(e) : i;
7739
7735
  }
7740
- const $o = {
7736
+ const jo = {
7741
7737
  beforeTitle: pt,
7742
7738
  title(i) {
7743
7739
  if (i.length > 0) {
@@ -7791,9 +7787,9 @@ const $o = {
7791
7787
  };
7792
7788
  function et(i, t, e, s) {
7793
7789
  const n = i[t].call(e, s);
7794
- return typeof n > "u" ? $o[t].call(e, s) : n;
7790
+ return typeof n > "u" ? jo[t].call(e, s) : n;
7795
7791
  }
7796
- class qi extends ht {
7792
+ class Ki extends ht {
7797
7793
  constructor(t) {
7798
7794
  super(), this.opacity = 0, this._active = [], this._eventPosition = void 0, this._size = void 0, this._cachedAnimations = void 0, this._tooltipItems = [], this.$animations = void 0, this.$context = void 0, this.chart = t.chart, this.options = t.options, this.dataPoints = void 0, this.title = void 0, this.beforeBody = void 0, this.body = void 0, this.afterBody = void 0, this.footer = void 0, this.xAlign = void 0, this.yAlign = void 0, this.x = void 0, this.y = void 0, this.height = void 0, this.width = void 0, this.caretX = void 0, this.caretY = void 0, this.labelColors = void 0, this.labelPointStyles = void 0, this.labelTextColors = void 0;
7799
7795
  }
@@ -7804,7 +7800,7 @@ class qi extends ht {
7804
7800
  const t = this._cachedAnimations;
7805
7801
  if (t)
7806
7802
  return t;
7807
- const e = this.chart, s = this.options.setContext(this.getContext()), n = s.enabled && e.options.animation && s.animations, o = new wo(this.chart, n);
7803
+ const e = this.chart, s = this.options.setContext(this.getContext()), n = s.enabled && e.options.animation && s.animations, o = new ko(this.chart, n);
7808
7804
  return n._cacheable && (this._cachedAnimations = Object.freeze(o)), o;
7809
7805
  }
7810
7806
  getContext() {
@@ -7816,7 +7812,7 @@ class qi extends ht {
7816
7812
  return r = dt(r, bt(n)), r = dt(r, bt(o)), r = dt(r, bt(a)), r;
7817
7813
  }
7818
7814
  getBeforeBody(t, e) {
7819
- return An(et(e.callbacks, "beforeBody", this, t));
7815
+ return Dn(et(e.callbacks, "beforeBody", this, t));
7820
7816
  }
7821
7817
  getBody(t, e) {
7822
7818
  const { callbacks: s } = e, n = [];
@@ -7825,12 +7821,12 @@ class qi extends ht {
7825
7821
  before: [],
7826
7822
  lines: [],
7827
7823
  after: []
7828
- }, r = On(s, o);
7824
+ }, r = An(s, o);
7829
7825
  dt(a.before, bt(et(r, "beforeLabel", this, o))), dt(a.lines, et(r, "label", this, o)), dt(a.after, bt(et(r, "afterLabel", this, o))), n.push(a);
7830
7826
  }), n;
7831
7827
  }
7832
7828
  getAfterBody(t, e) {
7833
- return An(et(e.callbacks, "afterBody", this, t));
7829
+ return Dn(et(e.callbacks, "afterBody", this, t));
7834
7830
  }
7835
7831
  getFooter(t, e) {
7836
7832
  const { callbacks: s } = e, n = et(s, "beforeFooter", this, t), o = et(s, "footer", this, t), a = et(s, "afterFooter", this, t);
@@ -7843,7 +7839,7 @@ class qi extends ht {
7843
7839
  for (l = 0, c = e.length; l < c; ++l)
7844
7840
  r.push(Wh(this.chart, e[l]));
7845
7841
  return t.filter && (r = r.filter((h, d, u) => t.filter(h, d, u, s))), t.itemSort && (r = r.sort((h, d) => t.itemSort(h, d, s))), F(r, (h) => {
7846
- const d = On(t.callbacks, h);
7842
+ const d = An(t.callbacks, h);
7847
7843
  n.push(et(d, "labelColor", this, h)), o.push(et(d, "labelPointStyle", this, h)), a.push(et(d, "labelTextColor", this, h));
7848
7844
  }), this.labelColors = n, this.labelPointStyles = o, this.labelTextColors = a, this.dataPoints = r, r;
7849
7845
  }
@@ -7857,7 +7853,7 @@ class qi extends ht {
7857
7853
  else {
7858
7854
  const r = be[s.position].call(this, n, this._eventPosition);
7859
7855
  a = this._createItems(s), this.title = this.getTitle(a, s), this.beforeBody = this.getBeforeBody(a, s), this.body = this.getBody(a, s), this.afterBody = this.getAfterBody(a, s), this.footer = this.getFooter(a, s);
7860
- const l = this._size = Pn(this, s), c = Object.assign({}, r, l), h = Cn(this.chart, s, c), d = Dn(s, c, h, this.chart);
7856
+ const l = this._size = Sn(this, s), c = Object.assign({}, r, l), h = Pn(this.chart, s, c), d = Cn(s, c, h, this.chart);
7861
7857
  this.xAlign = h.xAlign, this.yAlign = h.yAlign, o = {
7862
7858
  opacity: 1,
7863
7859
  x: d.x,
@@ -7879,7 +7875,7 @@ class qi extends ht {
7879
7875
  e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
7880
7876
  }
7881
7877
  getCaretPosition(t, e, s) {
7882
- const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = jt(r), { x: u, y: f } = t, { width: g, height: p } = e;
7878
+ const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Ht(r), { x: u, y: f } = t, { width: g, height: p } = e;
7883
7879
  let m, b, x, v, y, _;
7884
7880
  return o === "center" ? (y = f + p / 2, n === "left" ? (m = u, b = m - a, v = y + a, _ = y - a) : (m = u + g, b = m + a, v = y - a, _ = y + a), x = m) : (n === "left" ? b = u + Math.max(l, h) + a : n === "right" ? b = u + g - Math.max(c, d) - a : b = this.caretX, o === "top" ? (v = f, y = v - a, m = b - a, x = b + a) : (v = f + p, y = v + a, m = b + a, x = b - a), _ = v), {
7885
7881
  x1: m,
@@ -7908,10 +7904,10 @@ class qi extends ht {
7908
7904
  rotation: r.rotation,
7909
7905
  borderWidth: 1
7910
7906
  }, m = n.leftForLtr(u, c) + c / 2, b = g + l / 2;
7911
- t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Hi(t, p, m, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Hi(t, p, m, b);
7907
+ t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Ni(t, p, m, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Ni(t, p, m, b);
7912
7908
  } else {
7913
7909
  t.lineWidth = O(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
7914
- const p = n.leftForLtr(u, c), m = n.leftForLtr(n.xPlus(u, 1), c - 2), b = jt(a.borderRadius);
7910
+ const p = n.leftForLtr(u, c), m = n.leftForLtr(n.xPlus(u, 1), c - 2), b = Ht(a.borderRadius);
7915
7911
  Object.values(b).some((x) => x !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, De(t, {
7916
7912
  x: p,
7917
7913
  y: g,
@@ -7952,7 +7948,7 @@ class qi extends ht {
7952
7948
  }
7953
7949
  }
7954
7950
  drawBackground(t, e, s, n) {
7955
- const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: g } = jt(n.cornerRadius);
7951
+ const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: g } = Ht(n.cornerRadius);
7956
7952
  e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(r + d, l), a === "top" && this.drawCaret(t, e, s, n), e.lineTo(r + c - u, l), e.quadraticCurveTo(r + c, l, r + c, l + u), a === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(r + c, l + h - g), e.quadraticCurveTo(r + c, l + h, r + c - g, l + h), a === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(r + f, l + h), e.quadraticCurveTo(r, l + h, r, l + h - f), a === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(r, l + d), e.quadraticCurveTo(r, l, r + d, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
7957
7953
  }
7958
7954
  _updateAnimationTarget(t) {
@@ -7961,7 +7957,7 @@ class qi extends ht {
7961
7957
  const a = be[t.position].call(this, this._active, this._eventPosition);
7962
7958
  if (!a)
7963
7959
  return;
7964
- const r = this._size = Pn(this, t), l = Object.assign({}, a, this._size), c = Cn(e, t, l), h = Dn(t, l, c, e);
7960
+ const r = this._size = Sn(this, t), l = Object.assign({}, a, this._size), c = Pn(e, t, l), h = Cn(t, l, c, e);
7965
7961
  (n._to !== h.x || o._to !== h.y) && (this.xAlign = c.xAlign, this.yAlign = c.yAlign, this.width = r.width, this.height = r.height, this.caretX = a.x, this.caretY = a.y, this._resolveAnimations().update(this, h));
7966
7962
  }
7967
7963
  }
@@ -7983,7 +7979,7 @@ class qi extends ht {
7983
7979
  };
7984
7980
  s = Math.abs(s) < 1e-3 ? 0 : s;
7985
7981
  const a = J(e.padding), r = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
7986
- e.enabled && r && (t.save(), t.globalAlpha = s, this.drawBackground(o, t, n, e), xo(t, e.textDirection), o.y += a.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), _o(t, e.textDirection), t.restore());
7982
+ e.enabled && r && (t.save(), t.globalAlpha = s, this.drawBackground(o, t, n, e), bo(t, e.textDirection), o.y += a.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), xo(t, e.textDirection), t.restore());
7987
7983
  }
7988
7984
  getActiveElements() {
7989
7985
  return this._active || [];
@@ -8025,13 +8021,13 @@ class qi extends ht {
8025
8021
  return a !== !1 && (s !== a.x || n !== a.y);
8026
8022
  }
8027
8023
  }
8028
- k(qi, "positioners", be);
8024
+ k(Ki, "positioners", be);
8029
8025
  var Xh = {
8030
8026
  id: "tooltip",
8031
- _element: qi,
8027
+ _element: Ki,
8032
8028
  positioners: be,
8033
8029
  afterInit(i, t, e) {
8034
- e && (i.tooltip = new qi({
8030
+ e && (i.tooltip = new Ki({
8035
8031
  chart: i,
8036
8032
  options: e
8037
8033
  }));
@@ -8117,7 +8113,7 @@ var Xh = {
8117
8113
  duration: 200
8118
8114
  }
8119
8115
  },
8120
- callbacks: $o
8116
+ callbacks: jo
8121
8117
  },
8122
8118
  defaultRoutes: {
8123
8119
  bodyFont: "font",
@@ -8163,11 +8159,11 @@ function Gh(i, t, e, s) {
8163
8159
  return n !== o ? e : n;
8164
8160
  }
8165
8161
  const Zh = (i, t) => i === null ? null : K(Math.round(i), 0, t);
8166
- function Tn(i) {
8162
+ function On(i) {
8167
8163
  const t = this.getLabels();
8168
8164
  return i >= 0 && i < t.length ? t[i] : i;
8169
8165
  }
8170
- class Gi extends Xt {
8166
+ class qi extends Ut {
8171
8167
  constructor(t) {
8172
8168
  super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
8173
8169
  }
@@ -8203,7 +8199,7 @@ class Gi extends Xt {
8203
8199
  return n;
8204
8200
  }
8205
8201
  getLabelForValue(t) {
8206
- return Tn.call(this, t);
8202
+ return On.call(this, t);
8207
8203
  }
8208
8204
  configure() {
8209
8205
  super.configure(), this.isHorizontal() || (this._reversePixels = !this._reversePixels);
@@ -8222,14 +8218,14 @@ class Gi extends Xt {
8222
8218
  return this.bottom;
8223
8219
  }
8224
8220
  }
8225
- k(Gi, "id", "category"), k(Gi, "defaults", {
8221
+ k(qi, "id", "category"), k(qi, "defaults", {
8226
8222
  ticks: {
8227
- callback: Tn
8223
+ callback: On
8228
8224
  }
8229
8225
  });
8230
8226
  function Qh(i, t) {
8231
8227
  const e = [], { bounds: n, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, g = h - 1, { min: p, max: m } = t, b = !L(a), x = !L(r), v = !L(c), y = (m - p) / (d + 1);
8232
- let _ = Ss((m - p) / g / f) * f, w, M, S, P;
8228
+ let _ = Ms((m - p) / g / f) * f, w, M, S, P;
8233
8229
  if (_ < 1e-14 && !b && !x)
8234
8230
  return [
8235
8231
  {
@@ -8239,13 +8235,13 @@ function Qh(i, t) {
8239
8235
  value: m
8240
8236
  }
8241
8237
  ];
8242
- P = Math.ceil(m / _) - Math.floor(p / _), P > g && (_ = Ss(P * _ / g / f) * f), L(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), n === "ticks" ? (M = Math.floor(p / _) * _, S = Math.ceil(m / _) * _) : (M = p, S = m), b && x && o && Ya((r - a) / o, _ / 1e3) ? (P = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / P, M = a, S = r) : v ? (M = b ? a : M, S = x ? r : S, P = c - 1, _ = (S - M) / P) : (P = (S - M) / _, ye(P, Math.round(P), _ / 1e3) ? P = Math.round(P) : P = Math.ceil(P));
8243
- const D = Math.max(Ps(_), Ps(M));
8238
+ P = Math.ceil(m / _) - Math.floor(p / _), P > g && (_ = Ms(P * _ / g / f) * f), L(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), n === "ticks" ? (M = Math.floor(p / _) * _, S = Math.ceil(m / _) * _) : (M = p, S = m), b && x && o && Ya((r - a) / o, _ / 1e3) ? (P = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / P, M = a, S = r) : v ? (M = b ? a : M, S = x ? r : S, P = c - 1, _ = (S - M) / P) : (P = (S - M) / _, ye(P, Math.round(P), _ / 1e3) ? P = Math.round(P) : P = Math.ceil(P));
8239
+ const D = Math.max(Ss(_), Ss(M));
8244
8240
  w = Math.pow(10, L(l) ? D : l), M = Math.round(M * w) / w, S = Math.round(S * w) / w;
8245
8241
  let A = 0;
8246
8242
  for (b && (u && M !== a ? (e.push({
8247
8243
  value: a
8248
- }), M < a && A++, ye(Math.round((M + A * _) * w) / w, a, Ln(a, y, i)) && A++) : M < a && A++); A < P; ++A) {
8244
+ }), M < a && A++, ye(Math.round((M + A * _) * w) / w, a, Tn(a, y, i)) && A++) : M < a && A++); A < P; ++A) {
8249
8245
  const T = Math.round((M + A * _) * w) / w;
8250
8246
  if (x && T > r)
8251
8247
  break;
@@ -8253,17 +8249,17 @@ function Qh(i, t) {
8253
8249
  value: T
8254
8250
  });
8255
8251
  }
8256
- return x && u && S !== r ? e.length && ye(e[e.length - 1].value, r, Ln(r, y, i)) ? e[e.length - 1].value = r : e.push({
8252
+ return x && u && S !== r ? e.length && ye(e[e.length - 1].value, r, Tn(r, y, i)) ? e[e.length - 1].value = r : e.push({
8257
8253
  value: r
8258
8254
  }) : (!x || S === r) && e.push({
8259
8255
  value: S
8260
8256
  }), e;
8261
8257
  }
8262
- function Ln(i, t, { horizontal: e, minRotation: s }) {
8258
+ function Tn(i, t, { horizontal: e, minRotation: s }) {
8263
8259
  const n = lt(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, a = 0.75 * t * ("" + i).length;
8264
8260
  return Math.min(t / o, a);
8265
8261
  }
8266
- class pi extends Xt {
8262
+ class pi extends Ut {
8267
8263
  constructor(t) {
8268
8264
  super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
8269
8265
  }
@@ -8309,7 +8305,7 @@ class pi extends Xt {
8309
8305
  minRotation: e.minRotation || 0,
8310
8306
  includeBounds: e.includeBounds !== !1
8311
8307
  }, o = this._range || this, a = Qh(n, o);
8312
- return t.bounds === "ticks" && to(a, this, "value"), t.reverse ? (a.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), a;
8308
+ return t.bounds === "ticks" && Jn(a, this, "value"), t.reverse ? (a.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), a;
8313
8309
  }
8314
8310
  configure() {
8315
8311
  const t = this.ticks;
@@ -8324,7 +8320,7 @@ class pi extends Xt {
8324
8320
  return Re(t, this.chart.options.locale, this.options.ticks.format);
8325
8321
  }
8326
8322
  }
8327
- class Zi extends pi {
8323
+ class Gi extends pi {
8328
8324
  determineDataLimits() {
8329
8325
  const { min: t, max: e } = this.getMinMax(!0);
8330
8326
  this.min = j(t) ? t : 0, this.max = j(e) ? e : 1, this.handleTickRangeOptions();
@@ -8340,25 +8336,25 @@ class Zi extends pi {
8340
8336
  return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
8341
8337
  }
8342
8338
  }
8343
- k(Zi, "id", "linear"), k(Zi, "defaults", {
8339
+ k(Gi, "id", "linear"), k(Gi, "defaults", {
8344
8340
  ticks: {
8345
8341
  callback: mi.formatters.numeric
8346
8342
  }
8347
8343
  });
8348
8344
  const Oe = (i) => Math.floor(Pt(i)), Bt = (i, t) => Math.pow(10, Oe(i) + t);
8349
- function Rn(i) {
8345
+ function Ln(i) {
8350
8346
  return i / Math.pow(10, Oe(i)) === 1;
8351
8347
  }
8352
- function Fn(i, t, e) {
8348
+ function Rn(i, t, e) {
8353
8349
  const s = Math.pow(10, e), n = Math.floor(i / s);
8354
8350
  return Math.ceil(t / s) - n;
8355
8351
  }
8356
8352
  function Jh(i, t) {
8357
8353
  const e = t - i;
8358
8354
  let s = Oe(e);
8359
- for (; Fn(i, t, s) > 10; )
8355
+ for (; Rn(i, t, s) > 10; )
8360
8356
  s++;
8361
- for (; Fn(i, t, s) < 10; )
8357
+ for (; Rn(i, t, s) < 10; )
8362
8358
  s--;
8363
8359
  return Math.min(s, Oe(i));
8364
8360
  }
@@ -8371,17 +8367,17 @@ function td(i, { min: t, max: e }) {
8371
8367
  for (; u < e; )
8372
8368
  s.push({
8373
8369
  value: u,
8374
- major: Rn(u),
8370
+ major: Ln(u),
8375
8371
  significand: d
8376
8372
  }), d >= 10 ? d = d < 15 ? 15 : 20 : d++, d >= 20 && (o++, d = 2, a = o >= 0 ? 1 : a), u = Math.round((l + h + d * Math.pow(10, o)) * a) / a;
8377
8373
  const f = nt(i.max, u);
8378
8374
  return s.push({
8379
8375
  value: f,
8380
- major: Rn(f),
8376
+ major: Ln(f),
8381
8377
  significand: d
8382
8378
  }), s;
8383
8379
  }
8384
- class Qi extends Xt {
8380
+ class Zi extends Ut {
8385
8381
  constructor(t) {
8386
8382
  super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._valueRange = 0;
8387
8383
  }
@@ -8411,7 +8407,7 @@ class Qi extends Xt {
8411
8407
  min: this._userMin,
8412
8408
  max: this._userMax
8413
8409
  }, s = td(e, this);
8414
- return t.bounds === "ticks" && to(s, this, "value"), t.reverse ? (s.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), s;
8410
+ return t.bounds === "ticks" && Jn(s, this, "value"), t.reverse ? (s.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), s;
8415
8411
  }
8416
8412
  getLabelForValue(t) {
8417
8413
  return t === void 0 ? "0" : Re(t, this.chart.options.locale, this.options.ticks.format);
@@ -8428,7 +8424,7 @@ class Qi extends Xt {
8428
8424
  return Math.pow(10, this._startValue + e * this._valueRange);
8429
8425
  }
8430
8426
  }
8431
- k(Qi, "id", "logarithmic"), k(Qi, "defaults", {
8427
+ k(Zi, "id", "logarithmic"), k(Zi, "defaults", {
8432
8428
  ticks: {
8433
8429
  callback: mi.formatters.logarithmic,
8434
8430
  major: {
@@ -8436,7 +8432,7 @@ k(Qi, "id", "logarithmic"), k(Qi, "defaults", {
8436
8432
  }
8437
8433
  }
8438
8434
  });
8439
- function Ji(i) {
8435
+ function Qi(i) {
8440
8436
  const t = i.ticks;
8441
8437
  if (t.display && i.display) {
8442
8438
  const e = J(t.backdropPadding);
@@ -8452,7 +8448,7 @@ function ed(i, t, e) {
8452
8448
  h: e.length * t.lineHeight
8453
8449
  };
8454
8450
  }
8455
- function En(i, t, e, s, n) {
8451
+ function Fn(i, t, e, s, n) {
8456
8452
  return i === s || i === n ? {
8457
8453
  start: t - e / 2,
8458
8454
  end: t + e / 2
@@ -8476,7 +8472,7 @@ function id(i) {
8476
8472
  n[l] = c.padding;
8477
8473
  const h = i.getPointPosition(l, i.drawingArea + n[l], r), d = X(c.font), u = ed(i.ctx, d, i._pointLabels[l]);
8478
8474
  s[l] = u;
8479
- const f = ot(i.getIndexAngle(l) + r), g = Math.round(os(f)), p = En(g, h.x, u.w, 0, 180), m = En(g, h.y, u.h, 90, 270);
8475
+ const f = ot(i.getIndexAngle(l) + r), g = Math.round(ns(f)), p = Fn(g, h.x, u.w, 0, 180), m = Fn(g, h.y, u.h, 90, 270);
8480
8476
  sd(e, t, f, p, m);
8481
8477
  }
8482
8478
  i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = ad(i, s, n);
@@ -8487,7 +8483,7 @@ function sd(i, t, e, s, n) {
8487
8483
  s.start < t.l ? (r = (t.l - s.start) / o, i.l = Math.min(i.l, t.l - r)) : s.end > t.r && (r = (s.end - t.r) / o, i.r = Math.max(i.r, t.r + r)), n.start < t.t ? (l = (t.t - n.start) / a, i.t = Math.min(i.t, t.t - l)) : n.end > t.b && (l = (n.end - t.b) / a, i.b = Math.max(i.b, t.b + l));
8488
8484
  }
8489
8485
  function nd(i, t, e) {
8490
- const s = i.drawingArea, { extra: n, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, s + n + a, o), c = Math.round(os(ot(l.angle + Y))), h = cd(l.y, r.h, c), d = rd(c), u = ld(l.x, r.w, d);
8486
+ const s = i.drawingArea, { extra: n, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, s + n + a, o), c = Math.round(ns(ot(l.angle + Y))), h = cd(l.y, r.h, c), d = rd(c), u = ld(l.x, r.w, d);
8491
8487
  return {
8492
8488
  visible: !0,
8493
8489
  x: l.x,
@@ -8519,7 +8515,7 @@ function od(i, t) {
8519
8515
  }
8520
8516
  function ad(i, t, e) {
8521
8517
  const s = [], n = i._pointLabels.length, o = i.options, { centerPointLabels: a, display: r } = o.pointLabels, l = {
8522
- extra: Ji(o) / 2,
8518
+ extra: Qi(o) / 2,
8523
8519
  additionalAngle: a ? V / n : 0
8524
8520
  };
8525
8521
  let c;
@@ -8542,7 +8538,7 @@ function cd(i, t, e) {
8542
8538
  function hd(i, t, e) {
8543
8539
  const { left: s, top: n, right: o, bottom: a } = e, { backdropColor: r } = t;
8544
8540
  if (!L(r)) {
8545
- const l = jt(t.borderRadius), c = J(t.backdropPadding);
8541
+ const l = Ht(t.borderRadius), c = J(t.backdropPadding);
8546
8542
  i.fillStyle = r;
8547
8543
  const h = s - c.left, d = n - c.top, u = o - s + c.width, f = a - n + c.height;
8548
8544
  Object.values(l).some((g) => g !== 0) ? (i.beginPath(), De(i, {
@@ -8563,14 +8559,14 @@ function dd(i, t) {
8563
8559
  const a = s.setContext(i.getPointLabelContext(n));
8564
8560
  hd(e, a, o);
8565
8561
  const r = X(a.font), { x: l, y: c, textAlign: h } = o;
8566
- Ut(e, i._pointLabels[n], l, c + r.lineHeight / 2, r, {
8562
+ Yt(e, i._pointLabels[n], l, c + r.lineHeight / 2, r, {
8567
8563
  color: a.color,
8568
8564
  textAlign: h,
8569
8565
  textBaseline: "middle"
8570
8566
  });
8571
8567
  }
8572
8568
  }
8573
- function Yo(i, t, e, s) {
8569
+ function $o(i, t, e, s) {
8574
8570
  const { ctx: n } = i;
8575
8571
  if (e)
8576
8572
  n.arc(i.xCenter, i.yCenter, t, 0, B);
@@ -8583,7 +8579,7 @@ function Yo(i, t, e, s) {
8583
8579
  }
8584
8580
  function ud(i, t, e, s, n) {
8585
8581
  const o = i.ctx, a = t.circular, { color: r, lineWidth: l } = t;
8586
- !a && !s || !r || !l || e < 0 || (o.save(), o.strokeStyle = r, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), Yo(i, e, a, s), o.closePath(), o.stroke(), o.restore());
8582
+ !a && !s || !r || !l || e < 0 || (o.save(), o.strokeStyle = r, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), $o(i, e, a, s), o.closePath(), o.stroke(), o.restore());
8587
8583
  }
8588
8584
  function fd(i, t, e) {
8589
8585
  return Lt(i, {
@@ -8597,7 +8593,7 @@ class xe extends pi {
8597
8593
  super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
8598
8594
  }
8599
8595
  setDimensions() {
8600
- const t = this._padding = J(Ji(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height;
8596
+ const t = this._padding = J(Qi(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height;
8601
8597
  this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + s / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, s) / 2);
8602
8598
  }
8603
8599
  determineDataLimits() {
@@ -8605,7 +8601,7 @@ class xe extends pi {
8605
8601
  this.min = j(t) && !isNaN(t) ? t : 0, this.max = j(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
8606
8602
  }
8607
8603
  computeTickLimit() {
8608
- return Math.ceil(this.drawingArea / Ji(this.options));
8604
+ return Math.ceil(this.drawingArea / Qi(this.options));
8609
8605
  }
8610
8606
  generateTickLabels(t) {
8611
8607
  pi.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, s) => {
@@ -8673,7 +8669,7 @@ class xe extends pi {
8673
8669
  const { backgroundColor: t, grid: { circular: e } } = this.options;
8674
8670
  if (t) {
8675
8671
  const s = this.ctx;
8676
- s.save(), s.beginPath(), Yo(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), s.closePath(), s.fillStyle = t, s.fill(), s.restore();
8672
+ s.save(), s.beginPath(), $o(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), s.closePath(), s.fillStyle = t, s.fill(), s.restore();
8677
8673
  }
8678
8674
  }
8679
8675
  drawGrid() {
@@ -8710,7 +8706,7 @@ class xe extends pi {
8710
8706
  const d = J(c.backdropPadding);
8711
8707
  t.fillRect(-a / 2 - d.left, -o - h.size / 2 - d.top, a + d.width, h.size + d.height);
8712
8708
  }
8713
- Ut(t, r.label, 0, -o, h, {
8709
+ Yt(t, r.label, 0, -o, h, {
8714
8710
  color: c.color,
8715
8711
  strokeColor: c.textStrokeColor,
8716
8712
  strokeWidth: c.textStrokeWidth
@@ -8806,17 +8802,17 @@ const vi = {
8806
8802
  size: 3154e7
8807
8803
  }
8808
8804
  }, it = /* @__PURE__ */ Object.keys(vi);
8809
- function In(i, t) {
8805
+ function En(i, t) {
8810
8806
  return i - t;
8811
8807
  }
8812
- function zn(i, t) {
8808
+ function In(i, t) {
8813
8809
  if (L(t))
8814
8810
  return null;
8815
8811
  const e = i._adapter, { parser: s, round: n, isoWeekday: o } = i._parseOpts;
8816
8812
  let a = t;
8817
8813
  return typeof s == "function" && (a = s(a)), j(a) || (a = typeof s == "string" ? e.parse(a, s) : e.parse(a)), a === null ? null : (n && (a = n === "week" && (ee(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, n)), +a);
8818
8814
  }
8819
- function Bn(i, t, e, s) {
8815
+ function zn(i, t, e, s) {
8820
8816
  const n = it.length;
8821
8817
  for (let o = it.indexOf(i); o < n - 1; ++o) {
8822
8818
  const a = vi[it[o]], r = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
@@ -8838,11 +8834,11 @@ function pd(i) {
8838
8834
  if (vi[it[t]].common)
8839
8835
  return it[t];
8840
8836
  }
8841
- function Vn(i, t, e) {
8837
+ function Bn(i, t, e) {
8842
8838
  if (!e)
8843
8839
  i[t] = !0;
8844
8840
  else if (e.length) {
8845
- const { lo: s, hi: n } = as(e, t), o = e[s] >= t ? e[s] : e[n];
8841
+ const { lo: s, hi: n } = os(e, t), o = e[s] >= t ? e[s] : e[n];
8846
8842
  i[o] = !0;
8847
8843
  }
8848
8844
  }
@@ -8853,7 +8849,7 @@ function md(i, t, e, s) {
8853
8849
  l = e[r], l >= 0 && (t[l].major = !0);
8854
8850
  return t;
8855
8851
  }
8856
- function Wn(i, t, e) {
8852
+ function Vn(i, t, e) {
8857
8853
  const s = [], n = {}, o = t.length;
8858
8854
  let a, r;
8859
8855
  for (a = 0; a < o; ++a)
@@ -8863,7 +8859,7 @@ function Wn(i, t, e) {
8863
8859
  });
8864
8860
  return o === 0 || !e ? s : md(i, s, n, e);
8865
8861
  }
8866
- class Te extends Xt {
8862
+ class Te extends Ut {
8867
8863
  constructor(t) {
8868
8864
  super(t), this._cache = {
8869
8865
  data: [],
@@ -8880,7 +8876,7 @@ class Te extends Xt {
8880
8876
  }, super.init(t), this._normalized = e.normalized;
8881
8877
  }
8882
8878
  parse(t, e) {
8883
- return t === void 0 ? null : zn(this, t);
8879
+ return t === void 0 ? null : In(this, t);
8884
8880
  }
8885
8881
  beforeLayout() {
8886
8882
  super.beforeLayout(), this._cache = {
@@ -8909,7 +8905,7 @@ class Te extends Xt {
8909
8905
  const t = this.options, e = t.time, s = t.ticks, n = s.source === "labels" ? this.getLabelTimestamps() : this._generate();
8910
8906
  t.bounds === "ticks" && n.length && (this.min = this._userMin || n[0], this.max = this._userMax || n[n.length - 1]);
8911
8907
  const o = this.min, a = this.max, r = qa(n, o, a);
8912
- return this._unit = e.unit || (s.autoSkip ? Bn(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : gd(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : pd(this._unit), this.initOffsets(n), t.reverse && r.reverse(), Wn(this, r, this._majorUnit);
8908
+ return this._unit = e.unit || (s.autoSkip ? zn(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : gd(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : pd(this._unit), this.initOffsets(n), t.reverse && r.reverse(), Vn(this, r, this._majorUnit);
8913
8909
  }
8914
8910
  afterAutoSkip() {
8915
8911
  this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
@@ -8925,14 +8921,14 @@ class Te extends Xt {
8925
8921
  };
8926
8922
  }
8927
8923
  _generate() {
8928
- const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, a = o.unit || Bn(o.minUnit, e, s, this._getLabelCapacity(e)), r = C(n.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = ee(l) || l === !0, h = {};
8924
+ const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, a = o.unit || zn(o.minUnit, e, s, this._getLabelCapacity(e)), r = C(n.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = ee(l) || l === !0, h = {};
8929
8925
  let d = e, u, f;
8930
8926
  if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : a), t.diff(s, e, a) > 1e5 * r)
8931
8927
  throw new Error(e + " and " + s + " are too far apart with stepSize of " + r + " " + a);
8932
8928
  const g = n.ticks.source === "data" && this.getDataTimestamps();
8933
8929
  for (u = d, f = 0; u < s; u = +t.add(u, r, a), f++)
8934
- Vn(h, u, g);
8935
- return (u === s || n.bounds === "ticks" || f === 1) && Vn(h, u, g), Object.keys(h).sort(In).map((p) => +p);
8930
+ Bn(h, u, g);
8931
+ return (u === s || n.bounds === "ticks" || f === 1) && Bn(h, u, g), Object.keys(h).sort(En).map((p) => +p);
8936
8932
  }
8937
8933
  getLabelForValue(t) {
8938
8934
  const e = this._adapter, s = this.options.time;
@@ -8977,7 +8973,7 @@ class Te extends Xt {
8977
8973
  };
8978
8974
  }
8979
8975
  _getLabelCapacity(t) {
8980
- const e = this.options.time, s = e.displayFormats, n = s[e.unit] || s.millisecond, o = this._tickFormatFunction(t, 0, Wn(this, [
8976
+ const e = this.options.time, s = e.displayFormats, n = s[e.unit] || s.millisecond, o = this._tickFormatFunction(t, 0, Vn(this, [
8981
8977
  t
8982
8978
  ], this._majorUnit), n), a = this._getLabelSize(o), r = Math.floor(this.isHorizontal() ? this.width / a.w : this.height / a.h) - 1;
8983
8979
  return r > 0 ? r : 1;
@@ -9000,11 +8996,11 @@ class Te extends Xt {
9000
8996
  return t;
9001
8997
  const n = this.getLabels();
9002
8998
  for (e = 0, s = n.length; e < s; ++e)
9003
- t.push(zn(this, n[e]));
8999
+ t.push(In(this, n[e]));
9004
9000
  return this._cache.labels = this._normalized ? t : this.normalize(t);
9005
9001
  }
9006
9002
  normalize(t) {
9007
- return so(t.sort(In));
9003
+ return io(t.sort(En));
9008
9004
  }
9009
9005
  }
9010
9006
  k(Te, "id", "time"), k(Te, "defaults", {
@@ -9032,7 +9028,7 @@ function Ke(i, t, e) {
9032
9028
  const c = a - o;
9033
9029
  return c ? r + (l - r) * (t - o) / c : r;
9034
9030
  }
9035
- class ts extends Te {
9031
+ class Ji extends Te {
9036
9032
  constructor(t) {
9037
9033
  super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
9038
9034
  }
@@ -9083,15 +9079,15 @@ class ts extends Te {
9083
9079
  return Ke(this._table, s * this._tableRange + this._minPos, !0);
9084
9080
  }
9085
9081
  }
9086
- k(ts, "id", "timeseries"), k(ts, "defaults", Te.defaults);
9082
+ k(Ji, "id", "timeseries"), k(Ji, "defaults", Te.defaults);
9087
9083
  var bd = /* @__PURE__ */ Object.freeze({
9088
9084
  __proto__: null,
9089
- CategoryScale: Gi,
9090
- LinearScale: Zi,
9091
- LogarithmicScale: Qi,
9085
+ CategoryScale: qi,
9086
+ LinearScale: Gi,
9087
+ LogarithmicScale: Zi,
9092
9088
  RadialLinearScale: xe,
9093
9089
  TimeScale: Te,
9094
- TimeSeriesScale: ts
9090
+ TimeSeriesScale: Ji
9095
9091
  });
9096
9092
  const xd = [
9097
9093
  wl,
@@ -9115,7 +9111,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9115
9111
  legend: { default: void 0 }
9116
9112
  },
9117
9113
  setup(i) {
9118
- const t = i, e = Ht(null);
9114
+ const t = i, e = Qt(null);
9119
9115
  let s = null;
9120
9116
  ai(
9121
9117
  [
@@ -9197,11 +9193,11 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9197
9193
  }
9198
9194
  }));
9199
9195
  }
9200
- return qo(() => {
9196
+ return Ko(() => {
9201
9197
  a();
9202
9198
  }), (r, l) => (z(), U("div", _d, [
9203
9199
  R("div", yd, [
9204
- jn(r.$slots, "title"),
9200
+ Hn(r.$slots, "title"),
9205
9201
  R("div", vd, ft(r.name), 1),
9206
9202
  R("div", kd, ft(r.paragraph), 1)
9207
9203
  ]),
@@ -9213,7 +9209,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9213
9209
  ])
9214
9210
  ]));
9215
9211
  }
9216
- }), Sd = ["width", "height"], Pd = ["fill"], Cd = ["fill"], Dd = ["stroke"], Ad = ["stroke"], Uo = /* @__PURE__ */ ne({
9212
+ }), Sd = ["width", "height"], Pd = ["fill"], Cd = ["fill"], Dd = ["stroke"], Ad = ["stroke"], Yo = /* @__PURE__ */ ne({
9217
9213
  __name: "SparkIcon",
9218
9214
  props: {
9219
9215
  size: {
@@ -9264,7 +9260,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9264
9260
  }, Ed = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary text-wrap" }, Id = { key: 0 }, zd = {
9265
9261
  key: 0,
9266
9262
  class: "flex justify-center w-full gap-8"
9267
- }, Bd = ["onClick"], Nn = /* @__PURE__ */ ne({
9263
+ }, Bd = ["onClick"], Wn = /* @__PURE__ */ ne({
9268
9264
  __name: "CarouselCard",
9269
9265
  props: {
9270
9266
  title: {
@@ -9277,7 +9273,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9277
9273
  }
9278
9274
  },
9279
9275
  setup(i) {
9280
- const t = Ht(0), e = Ht(), s = i;
9276
+ const t = Qt(0), e = Qt(), s = i;
9281
9277
  function n(o) {
9282
9278
  var a;
9283
9279
  if (e.value) {
@@ -9300,7 +9296,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9300
9296
  }
9301
9297
  }
9302
9298
  ), (o, a) => {
9303
- const r = $n("wave");
9299
+ const r = jn("wave");
9304
9300
  return z(), U("div", Od, [
9305
9301
  R("p", Td, ft(s.title), 1),
9306
9302
  R("div", {
@@ -9316,7 +9312,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9316
9312
  R("p", Rd, ft(l.header), 1),
9317
9313
  a[0] || (a[0] = R("div", { class: "grow" }, null, -1)),
9318
9314
  l.header === "Introduce Kid-Friendly Menu Items" ? qe((z(), U("button", Fd, [
9319
- tt(Uo, { size: 22 })
9315
+ tt(Yo, { size: 22 })
9320
9316
  ])), [
9321
9317
  [r, !0]
9322
9318
  ]) : Mt("", !0)
@@ -9352,7 +9348,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9352
9348
  }, qd = {
9353
9349
  key: 1,
9354
9350
  class: "flex flex-row items-center justify-between"
9355
- }, Gd = { class: "flex flex-row items-center gap-8" }, Hn = /* @__PURE__ */ ne({
9351
+ }, Gd = { class: "flex flex-row items-center gap-8" }, Nn = /* @__PURE__ */ ne({
9356
9352
  __name: "InsightCard",
9357
9353
  props: {
9358
9354
  widget: {
@@ -9422,7 +9418,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9422
9418
  ];
9423
9419
  }), a = wt(
9424
9420
  () => i.widget.data.labels.map((h) => {
9425
- const d = Bi(h), u = [d.format("DD MMM")], f = d.format("d");
9421
+ const d = sa(h), u = [d.format("DD MMM")], f = d.format("d");
9426
9422
  return (f === "6" || f === "0") && u.push(d.format("ddd")), u;
9427
9423
  })
9428
9424
  ), r = {
@@ -9438,10 +9434,10 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9438
9434
  );
9439
9435
  }
9440
9436
  }
9441
- }, l = wt(() => ({ categories: a.value })), c = wt(() => na(i.widget.category));
9437
+ }, l = wt(() => ({ categories: a.value })), c = wt(() => oa(i.widget.category));
9442
9438
  return (h, d) => {
9443
9439
  var p, m;
9444
- const u = ri("FmChip"), f = ri("FmIcon"), g = $n("wave");
9440
+ const u = ri("FmChip"), f = ri("FmIcon"), g = jn("wave");
9445
9441
  return z(), U("div", {
9446
9442
  class: Ge(["flex flex-col gap-40 overflow-y-scroll relative scrollbar-hide", i.detail ? "max-w-[515px]" : "max-w-[368px]"])
9447
9443
  }, [
@@ -9452,7 +9448,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9452
9448
  R("div", Vd, [
9453
9449
  R("div", Wd, [
9454
9450
  R("div", Nd, [
9455
- tt(Uo, { size: 22 }),
9451
+ tt(Yo, { size: 22 }),
9456
9452
  d[2] || (d[2] = R("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, "Insight", -1))
9457
9453
  ]),
9458
9454
  tt(u, {
@@ -9469,7 +9465,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9469
9465
  R("div", Hd, ft(i.widget.title), 1),
9470
9466
  R("div", jd, [
9471
9467
  R("div", $d, ft(i.widget.restaurantName), 1),
9472
- R("div", Yd, ft(Qt(ha)(i.widget.dateRange)), 1)
9468
+ R("div", Yd, ft(Zt(ea)(i.widget.dateRange)), 1)
9473
9469
  ])
9474
9470
  ]),
9475
9471
  i.detail ? (z(), U("div", Ud, [
@@ -9485,14 +9481,14 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9485
9481
  [g, !i.detail]
9486
9482
  ]),
9487
9483
  i.detail && i.widget.data.isAnomaly < 0 ? (z(), U("div", Kd, [
9488
- tt(Nn, {
9484
+ tt(Wn, {
9489
9485
  title: "Reason",
9490
9486
  items: (p = i.widget.data.recommendations) == null ? void 0 : p.map((b) => ({
9491
9487
  header: b.label,
9492
9488
  subLabel: b.reason.replace(b.metric, b.label)
9493
9489
  }))
9494
9490
  }, null, 8, ["items"]),
9495
- tt(Nn, {
9491
+ tt(Wn, {
9496
9492
  title: "Recommendation",
9497
9493
  items: (m = i.widget.data.recommendations) == null ? void 0 : m.map((b) => ({
9498
9494
  header: b.label,
@@ -9534,10 +9530,10 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9534
9530
  },
9535
9531
  emits: ["update:modelValue"],
9536
9532
  setup(i) {
9537
- const t = Go(i, "modelValue"), { FmSideSheet: e, FmTopSheet: s } = oa, { breakpoints: n } = aa();
9533
+ const t = qo(i, "modelValue"), { FmSideSheet: e, FmTopSheet: s } = aa, { breakpoints: n } = ra();
9538
9534
  return (o, a) => {
9539
9535
  const r = ri("FmButton");
9540
- return z(), ue(Zo(Qt(e)), {
9536
+ return z(), ue(Go(Zt(e)), {
9541
9537
  modelValue: t.value,
9542
9538
  "onUpdate:modelValue": a[1] || (a[1] = (l) => t.value = l),
9543
9539
  "fullscreen-size": "sm",
@@ -9545,7 +9541,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9545
9541
  "max-width": 512
9546
9542
  }, {
9547
9543
  "side-sheet-header": Jt(() => a[2] || (a[2] = [
9548
- Qo("Insight")
9544
+ Zo("Insight")
9549
9545
  ])),
9550
9546
  "top-sheet-header": Jt(() => [
9551
9547
  R("div", Zd, [
@@ -9558,7 +9554,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9558
9554
  ])
9559
9555
  ]),
9560
9556
  default: Jt(() => [
9561
- jn(o.$slots, "default")
9557
+ Hn(o.$slots, "default")
9562
9558
  ]),
9563
9559
  _: 3
9564
9560
  }, 8, ["modelValue"]);
@@ -9576,7 +9572,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9576
9572
  }, pu = /* @__PURE__ */ ne({
9577
9573
  __name: "InsightView",
9578
9574
  setup(i) {
9579
- const { dateRange: t, compareDateRange: e, locations: s, selectedLocationIds: n, business: o } = Kn(sa()), a = Ht([]), r = Ht(null), l = Ht(!1), c = ra();
9575
+ const { dateRange: t, compareDateRange: e, locations: s, selectedLocationIds: n, business: o } = Xn(na()), a = Qt([]), r = Qt(null), l = Qt(!1), c = la();
9580
9576
  ai(
9581
9577
  o,
9582
9578
  () => {
@@ -9598,7 +9594,7 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9598
9594
  }
9599
9595
  }
9600
9596
  function d(f) {
9601
- f !== null && (r.value = null), Jo(() => {
9597
+ f !== null && (r.value = null), Qo(() => {
9602
9598
  r.value = f;
9603
9599
  });
9604
9600
  }
@@ -9619,9 +9615,9 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9619
9615
  }
9620
9616
  return (f, g) => {
9621
9617
  const p = ri("FmCircularProgress");
9622
- return z(), ue(ta, null, {
9618
+ return z(), ue(Jo, null, {
9623
9619
  default: Jt(() => [
9624
- tt(ea, null, {
9620
+ tt(ta, null, {
9625
9621
  title: Jt(() => g[4] || (g[4] = [
9626
9622
  R("p", { class: "fm-typo-en-title-md-600" }, "Insight", -1)
9627
9623
  ])),
@@ -9629,21 +9625,21 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9629
9625
  }),
9630
9626
  R("div", Jd, [
9631
9627
  R("div", tu, [
9632
- tt(ca, {
9633
- modelValue: Qt(n),
9628
+ tt(ha, {
9629
+ modelValue: Zt(n),
9634
9630
  "onUpdate:modelValue": [
9635
9631
  g[0] || (g[0] = (m) => ki(n) ? n.value = m : null),
9636
9632
  h
9637
9633
  ],
9638
- options: Qt(s)
9634
+ options: Zt(s)
9639
9635
  }, null, 8, ["modelValue", "options"]),
9640
9636
  tt(ia, {
9641
- dateRange: Qt(t),
9637
+ dateRange: Zt(t),
9642
9638
  "onUpdate:dateRange": [
9643
9639
  g[1] || (g[1] = (m) => ki(t) ? t.value = m : null),
9644
9640
  h
9645
9641
  ],
9646
- "compare-date-range": Qt(e),
9642
+ "compare-date-range": Zt(e),
9647
9643
  "onUpdate:compareDateRange": g[2] || (g[2] = (m) => ki(e) ? e.value = m : null),
9648
9644
  compare: !1
9649
9645
  }, null, 8, ["dateRange", "compare-date-range"])
@@ -9653,19 +9649,19 @@ const _d = { class: "flex flex-col h-full overflow-hidden" }, yd = { class: "fle
9653
9649
  tt(p, { size: "xl" })
9654
9650
  ])) : (z(), U("div", iu, [
9655
9651
  a.value.length > 0 ? (z(), U("div", su, [
9656
- (z(!0), U(Ii, null, zi(a.value, (m, b) => (z(), ue(Hn, {
9652
+ (z(!0), U(Ii, null, zi(a.value, (m, b) => (z(), ue(Nn, {
9657
9653
  key: b,
9658
9654
  widget: m,
9659
9655
  onClick: () => d(b)
9660
9656
  }, null, 8, ["widget", "onClick"]))), 128))
9661
- ])) : (z(), ue(la, { key: 1 }))
9657
+ ])) : (z(), ue(ca, { key: 1 }))
9662
9658
  ])),
9663
9659
  tt(Qd, {
9664
9660
  "model-value": r.value !== null,
9665
9661
  onBack: g[3] || (g[3] = () => d(null))
9666
9662
  }, {
9667
9663
  default: Jt(() => [
9668
- r.value !== null ? (z(), ue(Hn, {
9664
+ r.value !== null ? (z(), ue(Nn, {
9669
9665
  key: 0,
9670
9666
  widget: a.value[r.value],
9671
9667
  detail: "",