@mozaic-ds/chart 0.1.0-beta.12 → 0.1.0-beta.14

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.
@@ -24,7 +24,7 @@ function yt(i) {
24
24
  function An(i) {
25
25
  return St(Be(i * 100), 0, 100);
26
26
  }
27
- const nt = { 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 }, Gi = [..."0123456789ABCDEF"], ga = (i) => Gi[i & 15], pa = (i) => Gi[(i & 240) >> 4] + Gi[i & 15], Ue = (i) => (i & 240) >> 4 === (i & 15), ma = (i) => Ue(i.r) && Ue(i.g) && Ue(i.b) && Ue(i.a);
27
+ const nt = { 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 }, Gi = [..."0123456789ABCDEF"], ga = (i) => Gi[i & 15], pa = (i) => Gi[(i & 240) >> 4] + Gi[i & 15], Ye = (i) => (i & 240) >> 4 === (i & 15), ma = (i) => Ye(i.r) && Ye(i.g) && Ye(i.b) && Ye(i.a);
28
28
  function ba(i) {
29
29
  var t = i.length, e;
30
30
  return i[0] === "#" && (t === 4 || t === 5 ? e = {
@@ -326,13 +326,13 @@ function Oa(i) {
326
326
  function Ia(i) {
327
327
  return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${yt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
328
328
  }
329
- const Fi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Ut = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
329
+ const Fi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Yt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
330
330
  function Fa(i, t, e) {
331
- const n = Ut(yt(i.r)), s = Ut(yt(i.g)), o = Ut(yt(i.b));
331
+ const n = Yt(yt(i.r)), s = Yt(yt(i.g)), o = Yt(yt(i.b));
332
332
  return {
333
- r: Mt(Fi(n + e * (Ut(yt(t.r)) - n))),
334
- g: Mt(Fi(s + e * (Ut(yt(t.g)) - s))),
335
- b: Mt(Fi(o + e * (Ut(yt(t.b)) - o))),
333
+ r: Mt(Fi(n + e * (Yt(yt(t.r)) - n))),
334
+ g: Mt(Fi(s + e * (Yt(yt(t.g)) - s))),
335
+ b: Mt(Fi(o + e * (Yt(yt(t.b)) - o))),
336
336
  a: i.a + e * (t.a - i.a)
337
337
  };
338
338
  }
@@ -585,7 +585,7 @@ const ke = (i) => typeof i < "u", At = (i) => typeof i == "function", In = (i, t
585
585
  function Va(i) {
586
586
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
587
587
  }
588
- const N = Math.PI, H = 2 * N, ja = H + N, gi = Number.POSITIVE_INFINITY, $a = N / 180, Y = N / 2, Tt = N / 4, Fn = N * 2 / 3, wt = Math.log10, ut = Math.sign;
588
+ const N = Math.PI, H = 2 * N, ja = H + N, gi = Number.POSITIVE_INFINITY, $a = N / 180, U = N / 2, Tt = N / 4, Fn = N * 2 / 3, wt = Math.log10, ut = Math.sign;
589
589
  function ye(i, t, e) {
590
590
  return Math.abs(i - t) < e;
591
591
  }
@@ -595,7 +595,7 @@ function Rn(i) {
595
595
  const e = Math.pow(10, Math.floor(wt(i))), n = i / e;
596
596
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * e;
597
597
  }
598
- function Ya(i) {
598
+ function Ua(i) {
599
599
  const t = [], e = Math.sqrt(i);
600
600
  let n;
601
601
  for (n = 1; n < e; n++)
@@ -605,7 +605,7 @@ function Ya(i) {
605
605
  function Me(i) {
606
606
  return !isNaN(parseFloat(i)) && isFinite(i);
607
607
  }
608
- function Ua(i, t) {
608
+ function Ya(i, t) {
609
609
  const e = Math.round(i);
610
610
  return e - t <= i && e + t >= i;
611
611
  }
@@ -795,8 +795,8 @@ const qe = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -=
795
795
  easeInQuint: (i) => i * i * i * i * i,
796
796
  easeOutQuint: (i) => (i -= 1) * i * i * i * i + 1,
797
797
  easeInOutQuint: (i) => (i /= 0.5) < 1 ? 0.5 * i * i * i * i * i : 0.5 * ((i -= 2) * i * i * i * i + 2),
798
- easeInSine: (i) => -Math.cos(i * Y) + 1,
799
- easeOutSine: (i) => Math.sin(i * Y),
798
+ easeInSine: (i) => -Math.cos(i * U) + 1,
799
+ easeOutSine: (i) => Math.sin(i * U),
800
800
  easeInOutSine: (i) => -0.5 * (Math.cos(N * i) - 1),
801
801
  easeInExpo: (i) => i === 0 ? 0 : Math.pow(2, 10 * (i - 1)),
802
802
  easeOutExpo: (i) => i === 1 ? 1 : -Math.pow(2, -10 * i) + 1,
@@ -1176,7 +1176,7 @@ function yo(i, t, e, n, s) {
1176
1176
  h = s ? s / 2 : p, i.moveTo(e + Math.sin(g) * h, n - Math.cos(g) * p), g += Fn, i.lineTo(e + Math.sin(g) * h, n - Math.cos(g) * p), g += Fn, i.lineTo(e + Math.sin(g) * h, n - Math.cos(g) * p), i.closePath();
1177
1177
  break;
1178
1178
  case "rectRounded":
1179
- c = p * 0.516, l = p - c, a = Math.cos(g + Tt) * l, d = Math.cos(g + Tt) * (s ? s / 2 - c : l), r = Math.sin(g + Tt) * l, u = Math.sin(g + Tt) * (s ? s / 2 - c : l), i.arc(e - d, n - r, c, g - N, g - Y), i.arc(e + u, n - a, c, g - Y, g), i.arc(e + d, n + r, c, g, g + Y), i.arc(e - u, n + a, c, g + Y, g + N), i.closePath();
1179
+ c = p * 0.516, l = p - c, a = Math.cos(g + Tt) * l, d = Math.cos(g + Tt) * (s ? s / 2 - c : l), r = Math.sin(g + Tt) * l, u = Math.sin(g + Tt) * (s ? s / 2 - c : l), i.arc(e - d, n - r, c, g - N, g - U), i.arc(e + u, n - a, c, g - U, g), i.arc(e + d, n + r, c, g, g + U), i.arc(e - u, n + a, c, g + U, g + N), i.closePath();
1180
1180
  break;
1181
1181
  case "rect":
1182
1182
  if (!m) {
@@ -1256,7 +1256,7 @@ function Nt(i, t, e, n, s, o = {}) {
1256
1256
  }
1257
1257
  function Pe(i, t) {
1258
1258
  const { x: e, y: n, w: s, h: o, radius: a } = t;
1259
- i.arc(e + a.topLeft, n + a.topLeft, a.topLeft, 1.5 * N, N, !0), i.lineTo(e, n + o - a.bottomLeft), i.arc(e + a.bottomLeft, n + o - a.bottomLeft, a.bottomLeft, N, Y, !0), i.lineTo(e + s - a.bottomRight, n + o), i.arc(e + s - a.bottomRight, n + o - a.bottomRight, a.bottomRight, Y, 0, !0), i.lineTo(e + s, n + a.topRight), i.arc(e + s - a.topRight, n + a.topRight, a.topRight, 0, -Y, !0), i.lineTo(e + a.topLeft, n);
1259
+ i.arc(e + a.topLeft, n + a.topLeft, a.topLeft, 1.5 * N, N, !0), i.lineTo(e, n + o - a.bottomLeft), i.arc(e + a.bottomLeft, n + o - a.bottomLeft, a.bottomLeft, N, U, !0), i.lineTo(e + s - a.bottomRight, n + o), i.arc(e + s - a.bottomRight, n + o - a.bottomRight, a.bottomRight, U, 0, !0), i.lineTo(e + s, n + a.topRight), i.arc(e + s - a.topRight, n + a.topRight, a.topRight, 0, -U, !0), i.lineTo(e + a.topLeft, n);
1260
1260
  }
1261
1261
  const br = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, yr = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
1262
1262
  function xr(i, t) {
@@ -1299,7 +1299,7 @@ function Q(i) {
1299
1299
  const t = xo(i);
1300
1300
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1301
1301
  }
1302
- function U(i, t) {
1302
+ function Y(i, t) {
1303
1303
  i = i || {}, t = t || j.font;
1304
1304
  let e = L(i.size, t.size);
1305
1305
  typeof e == "string" && (e = parseInt(e, 10));
@@ -1734,13 +1734,13 @@ function $r(i, t, e, n) {
1734
1734
  height: h
1735
1735
  };
1736
1736
  }
1737
- function Yn(i, t, e) {
1737
+ function Un(i, t, e) {
1738
1738
  const n = t || 1, s = Math.floor(i.height * n), o = Math.floor(i.width * n);
1739
1739
  i.height = Math.floor(i.height), i.width = Math.floor(i.width);
1740
1740
  const a = i.canvas;
1741
1741
  return a.style && (e || !a.style.height && !a.style.width) && (a.style.height = `${i.height}px`, a.style.width = `${i.width}px`), i.currentDevicePixelRatio !== n || a.height !== s || a.width !== o ? (i.currentDevicePixelRatio = n, a.height = s, a.width = o, i.ctx.setTransform(n, 0, 0, n, 0, 0), !0) : !1;
1742
1742
  }
1743
- const Yr = function() {
1743
+ const Ur = function() {
1744
1744
  let i = !1;
1745
1745
  try {
1746
1746
  const t = {
@@ -1753,7 +1753,7 @@ const Yr = function() {
1753
1753
  }
1754
1754
  return i;
1755
1755
  }();
1756
- function Un(i, t) {
1756
+ function Yn(i, t) {
1757
1757
  const e = Wr(i, t), n = e && e.match(/^(\d+)(\.\d+)?px$/);
1758
1758
  return n ? +n[1] : void 0;
1759
1759
  }
@@ -1763,7 +1763,7 @@ function Et(i, t, e, n) {
1763
1763
  y: i.y + e * (t.y - i.y)
1764
1764
  };
1765
1765
  }
1766
- function Ur(i, t, e, n) {
1766
+ function Yr(i, t, e, n) {
1767
1767
  return {
1768
1768
  x: i.x + e * (t.x - i.x),
1769
1769
  y: n === "middle" ? e < 0.5 ? i.y : t.y : n === "after" ? e < 1 ? i.y : t.y : e > 0 ? t.y : i.y
@@ -3030,7 +3030,7 @@ k(ai, "id", "bar"), k(ai, "defaults", {
3030
3030
  function Cl(i, t, e) {
3031
3031
  let n = 1, s = 1, o = 0, a = 0;
3032
3032
  if (t < H) {
3033
- const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, v, _) => Ce(x, r, l, !0) ? 1 : Math.max(v, v * e, _, _ * e), m = (x, v, _) => Ce(x, r, l, !0) ? -1 : Math.min(v, v * e, _, _ * e), p = f(0, c, d), g = f(Y, h, u), b = m(N, c, d), y = m(N + Y, h, u);
3033
+ const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, v, _) => Ce(x, r, l, !0) ? 1 : Math.max(v, v * e, _, _ * e), m = (x, v, _) => Ce(x, r, l, !0) ? -1 : Math.min(v, v * e, _, _ * e), p = f(0, c, d), g = f(U, h, u), b = m(N, c, d), y = m(N + U, h, u);
3034
3034
  n = (p - b) / 2, s = (g - y) / 2, o = -(p + b) / 2, a = -(g + y) / 2;
3035
3035
  }
3036
3036
  return {
@@ -3819,19 +3819,19 @@ function Vl(i, t) {
3819
3819
  }
3820
3820
  }
3821
3821
  }, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", hs(s)) {
3822
- const o = Un(i, "width");
3822
+ const o = Yn(i, "width");
3823
3823
  o !== void 0 && (i.width = o);
3824
3824
  }
3825
3825
  if (hs(n))
3826
3826
  if (i.style.height === "")
3827
3827
  i.height = i.width / (t || 2);
3828
3828
  else {
3829
- const o = Un(i, "height");
3829
+ const o = Yn(i, "height");
3830
3830
  o !== void 0 && (i.height = o);
3831
3831
  }
3832
3832
  return i;
3833
3833
  }
3834
- const Bo = Yr ? {
3834
+ const Bo = Ur ? {
3835
3835
  passive: !0
3836
3836
  } : !1;
3837
3837
  function jl(i, t, e) {
@@ -3840,7 +3840,7 @@ function jl(i, t, e) {
3840
3840
  function $l(i, t, e) {
3841
3841
  i.canvas.removeEventListener(t, e, Bo);
3842
3842
  }
3843
- function Yl(i, t) {
3843
+ function Ul(i, t) {
3844
3844
  const e = Nl[i.type] || i.type, { x: n, y: s } = Rt(i, t);
3845
3845
  return {
3846
3846
  type: e,
@@ -3855,7 +3855,7 @@ function bi(i, t) {
3855
3855
  if (e === t || e.contains(t))
3856
3856
  return !0;
3857
3857
  }
3858
- function Ul(i, t, e) {
3858
+ function Yl(i, t, e) {
3859
3859
  const n = i.canvas, s = new MutationObserver((o) => {
3860
3860
  let a = !1;
3861
3861
  for (const r of o)
@@ -3911,7 +3911,7 @@ function Vi(i, t, e) {
3911
3911
  }
3912
3912
  function Zl(i, t, e) {
3913
3913
  const n = i.canvas, s = mo((o) => {
3914
- i.ctx !== null && e(Yl(o, i));
3914
+ i.ctx !== null && e(Ul(o, i));
3915
3915
  }, i);
3916
3916
  return jl(n, t, s), s;
3917
3917
  }
@@ -3940,7 +3940,7 @@ class Ql extends Eo {
3940
3940
  addEventListener(t, e, n) {
3941
3941
  this.removeEventListener(t, e);
3942
3942
  const s = t.$proxies || (t.$proxies = {}), a = {
3943
- attach: Ul,
3943
+ attach: Yl,
3944
3944
  detach: Xl,
3945
3945
  resize: Kl
3946
3946
  }[e] || Zl;
@@ -3970,7 +3970,7 @@ class Ql extends Eo {
3970
3970
  function Jl(i) {
3971
3971
  return !Mo() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? Hl : Ql;
3972
3972
  }
3973
- class at {
3973
+ class rt {
3974
3974
  constructor() {
3975
3975
  k(this, "x");
3976
3976
  k(this, "y");
@@ -4001,7 +4001,7 @@ class at {
4001
4001
  }), s;
4002
4002
  }
4003
4003
  }
4004
- k(at, "defaults", {}), k(at, "defaultRoutes");
4004
+ k(rt, "defaults", {}), k(rt, "defaultRoutes");
4005
4005
  function tc(i, t) {
4006
4006
  const e = i.options.ticks, n = ec(i), s = Math.min(e.maxTicksLimit || n, n), o = e.major.enabled ? nc(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
4007
4007
  if (a > s)
@@ -4024,7 +4024,7 @@ function ic(i, t, e) {
4024
4024
  const n = oc(i), s = t.length / e;
4025
4025
  if (!n)
4026
4026
  return Math.max(s, 1);
4027
- const o = Ya(n);
4027
+ const o = Ua(n);
4028
4028
  for (let a = 0, r = o.length - 1; a < r; a++) {
4029
4029
  const l = o[a];
4030
4030
  if (l > s)
@@ -4093,7 +4093,7 @@ function ce(i) {
4093
4093
  function ps(i, t) {
4094
4094
  if (!i.display)
4095
4095
  return 0;
4096
- const e = U(i.font, t), n = Q(i.padding);
4096
+ const e = Y(i.font, t), n = Q(i.padding);
4097
4097
  return (W(i.text) ? i.text.length : 1) * e.lineHeight + n.height;
4098
4098
  }
4099
4099
  function cc(i, t) {
@@ -4130,7 +4130,7 @@ function uc(i, t, e, n) {
4130
4130
  f = h[b].getPixelForValue(y) - g + t;
4131
4131
  } else
4132
4132
  e === "center" ? f = (c.left + c.right) / 2 - g + t : f = us(i, e, t);
4133
- m = K(n, a, s), d = e === "left" ? -Y : Y;
4133
+ m = K(n, a, s), d = e === "left" ? -U : U;
4134
4134
  }
4135
4135
  return {
4136
4136
  titleX: f,
@@ -4139,7 +4139,7 @@ function uc(i, t, e, n) {
4139
4139
  rotation: d
4140
4140
  };
4141
4141
  }
4142
- class jt extends at {
4142
+ class jt extends rt {
4143
4143
  constructor(t) {
4144
4144
  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 = {
4145
4145
  left: 0,
@@ -4473,7 +4473,7 @@ class jt extends at {
4473
4473
  }
4474
4474
  const G = L(s.ticks.maxTicksLimit, d), O = Math.max(1, Math.ceil(d / G));
4475
4475
  for (x = 0; x < d; x += O) {
4476
- const R = this.getContext(x), $ = o.setContext(R), ot = r.setContext(R), q = $.lineWidth, $t = $.color, Ye = ot.dash || [], Yt = ot.dashOffset, ie = $.tickWidth, ne = $.tickColor, se = $.tickBorderDash || [], oe = $.tickBorderDashOffset;
4476
+ const R = this.getContext(x), $ = o.setContext(R), at = r.setContext(R), q = $.lineWidth, $t = $.color, Ue = at.dash || [], Ut = at.dashOffset, ie = $.tickWidth, ne = $.tickColor, se = $.tickBorderDash || [], oe = $.tickBorderDashOffset;
4477
4477
  v = rc(this, x, l), v !== void 0 && (_ = Ot(n, v, q), c ? w = M = P = D = _ : S = C = A = E = _, f.push({
4478
4478
  tx1: w,
4479
4479
  ty1: S,
@@ -4485,8 +4485,8 @@ class jt extends at {
4485
4485
  y2: E,
4486
4486
  width: q,
4487
4487
  color: $t,
4488
- borderDash: Ye,
4489
- borderDashOffset: Yt,
4488
+ borderDash: Ue,
4489
+ borderDashOffset: Ut,
4490
4490
  tickWidth: ie,
4491
4491
  tickColor: ne,
4492
4492
  tickBorderDash: se,
@@ -4531,13 +4531,13 @@ class jt extends at {
4531
4531
  x = r[b], v = x.label;
4532
4532
  const O = o.setContext(this.getContext(b));
4533
4533
  M = this.getPixelForTick(b) + o.labelOffset, C = this._resolveTickFontOptions(b), P = C.lineHeight, A = W(v) ? v.length : 1;
4534
- const R = A / 2, $ = O.color, ot = O.textStrokeColor, q = O.textStrokeWidth;
4534
+ const R = A / 2, $ = O.color, at = O.textStrokeColor, q = O.textStrokeWidth;
4535
4535
  let $t = S;
4536
4536
  a ? (_ = M, S === "inner" && (b === y - 1 ? $t = this.options.reverse ? "left" : "right" : b === 0 ? $t = this.options.reverse ? "right" : "left" : $t = "center"), s === "top" ? c === "near" || p !== 0 ? D = -A * P + P / 2 : c === "center" ? D = -G.highest.height / 2 - R * P + P : D = -G.highest.height + P / 2 : c === "near" || p !== 0 ? D = P / 2 : c === "center" ? D = G.highest.height / 2 - R * P : D = G.highest.height - A * P, d && (D *= -1), p !== 0 && !O.showLabelBackdrop && (_ += P / 2 * Math.sin(p))) : (w = M, D = (1 - A) * P / 2);
4537
- let Ye;
4537
+ let Ue;
4538
4538
  if (O.showLabelBackdrop) {
4539
- const Yt = Q(O.backdropPadding), ie = G.heights[b], ne = G.widths[b];
4540
- let se = D - Yt.top, oe = 0 - Yt.left;
4539
+ const Ut = Q(O.backdropPadding), ie = G.heights[b], ne = G.widths[b];
4540
+ let se = D - Ut.top, oe = 0 - Ut.left;
4541
4541
  switch (E) {
4542
4542
  case "middle":
4543
4543
  se -= ie / 2;
@@ -4554,11 +4554,11 @@ class jt extends at {
4554
4554
  oe -= ne;
4555
4555
  break;
4556
4556
  }
4557
- Ye = {
4557
+ Ue = {
4558
4558
  left: oe,
4559
4559
  top: se,
4560
- width: ne + Yt.width,
4561
- height: ie + Yt.height,
4560
+ width: ne + Ut.width,
4561
+ height: ie + Ut.height,
4562
4562
  color: O.backdropColor
4563
4563
  };
4564
4564
  }
@@ -4569,7 +4569,7 @@ class jt extends at {
4569
4569
  options: {
4570
4570
  rotation: p,
4571
4571
  color: $,
4572
- strokeColor: ot,
4572
+ strokeColor: at,
4573
4573
  strokeWidth: q,
4574
4574
  textAlign: $t,
4575
4575
  textBaseline: E,
@@ -4577,7 +4577,7 @@ class jt extends at {
4577
4577
  _,
4578
4578
  w
4579
4579
  ],
4580
- backdrop: Ye
4580
+ backdrop: Ue
4581
4581
  }
4582
4582
  });
4583
4583
  }
@@ -4681,7 +4681,7 @@ class jt extends at {
4681
4681
  const { ctx: t, options: { position: e, title: n, reverse: s } } = this;
4682
4682
  if (!n.display)
4683
4683
  return;
4684
- const o = U(n.font), a = Q(n.padding), r = n.align;
4684
+ const o = Y(n.font), a = Q(n.padding), r = n.align;
4685
4685
  let l = o.lineHeight / 2;
4686
4686
  e === "bottom" || e === "center" || T(e) ? (l += a.bottom, W(n.text) && (l += o.lineHeight * (n.text.length - 1))) : l += a.top;
4687
4687
  const { titleX: c, titleY: h, maxWidth: d, rotation: u } = uc(this, l, e, r);
@@ -4741,7 +4741,7 @@ class jt extends at {
4741
4741
  }
4742
4742
  _resolveTickFontOptions(t) {
4743
4743
  const e = this.options.ticks.setContext(this.getContext(t));
4744
- return U(e.font);
4744
+ return Y(e.font);
4745
4745
  }
4746
4746
  _maxDigits() {
4747
4747
  const t = this._resolveTickFontOptions(0).lineHeight;
@@ -4793,7 +4793,7 @@ function pc(i) {
4793
4793
  }
4794
4794
  class mc {
4795
4795
  constructor() {
4796
- this.controllers = new ei(Ct, "datasets", !0), this.elements = new ei(at, "elements"), this.plugins = new ei(Object, "plugins"), this.scales = new ei(jt, "scales"), this._typedRegistries = [
4796
+ this.controllers = new ei(Ct, "datasets", !0), this.elements = new ei(rt, "elements"), this.plugins = new ei(Object, "plugins"), this.scales = new ei(jt, "scales"), this._typedRegistries = [
4797
4797
  this.controllers,
4798
4798
  this.scales,
4799
4799
  this.elements
@@ -5303,7 +5303,7 @@ let Lt = (vt = class {
5303
5303
  return ct;
5304
5304
  }
5305
5305
  _initialize() {
5306
- return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Yn(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
5306
+ return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Un(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
5307
5307
  }
5308
5308
  clear() {
5309
5309
  return Vn(this.canvas, this.ctx), this;
@@ -5319,7 +5319,7 @@ let Lt = (vt = class {
5319
5319
  }
5320
5320
  _resize(t, e) {
5321
5321
  const n = this.options, s = this.canvas, o = n.maintainAspectRatio && this.aspectRatio, a = this.platform.getMaximumSize(s, t, e, o), r = n.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
5322
- this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, Yn(this, r, !0) && (this.notifyPlugins("resize", {
5322
+ this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, Un(this, r, !0) && (this.notifyPlugins("resize", {
5323
5323
  size: a
5324
5324
  }), B(n.onResize, [
5325
5325
  this,
@@ -5749,7 +5749,7 @@ function ks() {
5749
5749
  function Bc(i, t, e) {
5750
5750
  const { startAngle: n, pixelMargin: s, x: o, y: a, outerRadius: r, innerRadius: l } = t;
5751
5751
  let c = s / r;
5752
- i.beginPath(), i.arc(o, a, r, n - c, e + c), l > s ? (c = s / l, i.arc(o, a, l, e + c, n - c, !0)) : i.arc(o, a, s, e + Y, n - Y), i.closePath(), i.clip();
5752
+ i.beginPath(), i.arc(o, a, r, n - c, e + c), l > s ? (c = s / l, i.arc(o, a, l, e + c, n - c, !0)) : i.arc(o, a, s, e + U, n - U), i.closePath(), i.clip();
5753
5753
  }
5754
5754
  function zc(i) {
5755
5755
  return yn(i, [
@@ -5782,37 +5782,37 @@ function yi(i, t, e, n, s, o) {
5782
5782
  let f = 0;
5783
5783
  const m = s - l;
5784
5784
  if (n) {
5785
- const O = h > 0 ? h - n : 0, R = d > 0 ? d - n : 0, $ = (O + R) / 2, ot = $ !== 0 ? m * $ / ($ + n) : m;
5786
- f = (m - ot) / 2;
5785
+ const O = h > 0 ? h - n : 0, R = d > 0 ? d - n : 0, $ = (O + R) / 2, at = $ !== 0 ? m * $ / ($ + n) : m;
5786
+ f = (m - at) / 2;
5787
5787
  }
5788
5788
  const p = Math.max(1e-3, m * d - e / N) / d, g = (m - p) / 2, b = l + g + f, y = s - g - f, { outerStart: x, outerEnd: v, innerStart: _, innerEnd: w } = Wc(t, u, d, y - b), S = d - x, M = d - v, C = b + x / S, P = y - v / M, A = u + _, D = u + w, E = b + _ / A, G = y - w / D;
5789
5789
  if (i.beginPath(), o) {
5790
5790
  const O = (C + P) / 2;
5791
5791
  if (i.arc(a, r, d, C, O), i.arc(a, r, d, O, P), v > 0) {
5792
5792
  const q = Xt(M, P, a, r);
5793
- i.arc(q.x, q.y, v, P, y + Y);
5793
+ i.arc(q.x, q.y, v, P, y + U);
5794
5794
  }
5795
5795
  const R = Xt(D, y, a, r);
5796
5796
  if (i.lineTo(R.x, R.y), w > 0) {
5797
5797
  const q = Xt(D, G, a, r);
5798
- i.arc(q.x, q.y, w, y + Y, G + Math.PI);
5798
+ i.arc(q.x, q.y, w, y + U, G + Math.PI);
5799
5799
  }
5800
5800
  const $ = (y - w / u + (b + _ / u)) / 2;
5801
5801
  if (i.arc(a, r, u, y - w / u, $, !0), i.arc(a, r, u, $, b + _ / u, !0), _ > 0) {
5802
5802
  const q = Xt(A, E, a, r);
5803
- i.arc(q.x, q.y, _, E + Math.PI, b - Y);
5803
+ i.arc(q.x, q.y, _, E + Math.PI, b - U);
5804
5804
  }
5805
- const ot = Xt(S, b, a, r);
5806
- if (i.lineTo(ot.x, ot.y), x > 0) {
5805
+ const at = Xt(S, b, a, r);
5806
+ if (i.lineTo(at.x, at.y), x > 0) {
5807
5807
  const q = Xt(S, C, a, r);
5808
- i.arc(q.x, q.y, x, b - Y, C);
5808
+ i.arc(q.x, q.y, x, b - U, C);
5809
5809
  }
5810
5810
  } else {
5811
5811
  i.moveTo(a, r);
5812
5812
  const O = Math.cos(C) * d + a, R = Math.sin(C) * d + r;
5813
5813
  i.lineTo(O, R);
5814
- const $ = Math.cos(P) * d + a, ot = Math.sin(P) * d + r;
5815
- i.lineTo($, ot);
5814
+ const $ = Math.cos(P) * d + a, at = Math.sin(P) * d + r;
5815
+ i.lineTo($, at);
5816
5816
  }
5817
5817
  i.closePath();
5818
5818
  }
@@ -5841,7 +5841,7 @@ function Nc(i, t, e, n, s) {
5841
5841
  }
5842
5842
  f && Bc(i, t, m), o || (yi(i, t, e, n, m, s), i.stroke());
5843
5843
  }
5844
- class ge extends at {
5844
+ class ge extends rt {
5845
5845
  constructor(e) {
5846
5846
  super();
5847
5847
  k(this, "circumference");
@@ -5940,7 +5940,7 @@ function $c(i, t, e, n) {
5940
5940
  m = s[(r + (u ? c - f : f)) % a], !m.skip && (d ? (i.moveTo(m.x, m.y), d = !1) : h(i, p, m, u, o.stepped), p = m);
5941
5941
  return l && (m = s[(r + (u ? c : 0)) % a], h(i, p, m, u, o.stepped)), !!l;
5942
5942
  }
5943
- function Yc(i, t, e, n) {
5943
+ function Uc(i, t, e, n) {
5944
5944
  const s = t.points, { count: o, start: a, ilen: r } = $o(s, e, n), { move: l = !0, reverse: c } = n || {};
5945
5945
  let h = 0, d = 0, u, f, m, p, g, b;
5946
5946
  const y = (v) => (a + (c ? r - v : v)) % o, x = () => {
@@ -5956,10 +5956,10 @@ function Yc(i, t, e, n) {
5956
5956
  }
5957
5957
  function tn(i) {
5958
5958
  const t = i.options, e = t.borderDash && t.borderDash.length;
5959
- return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Yc : $c;
5959
+ return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Uc : $c;
5960
5960
  }
5961
- function Uc(i) {
5962
- return i.stepped ? Ur : i.tension || i.cubicInterpolationMode === "monotone" ? Xr : Et;
5961
+ function Yc(i) {
5962
+ return i.stepped ? Yr : i.tension || i.cubicInterpolationMode === "monotone" ? Xr : Et;
5963
5963
  }
5964
5964
  function Xc(i, t, e, n) {
5965
5965
  let s = t._path;
@@ -5977,7 +5977,7 @@ const qc = typeof Path2D == "function";
5977
5977
  function Kc(i, t, e, n) {
5978
5978
  qc && !t.options.segment ? Xc(i, t, e, n) : Gc(i, t, e, n);
5979
5979
  }
5980
- class dt extends at {
5980
+ class dt extends rt {
5981
5981
  constructor(t) {
5982
5982
  super(), this.animated = !0, this.options = void 0, this._chart = void 0, this._loop = void 0, this._fullLoop = void 0, this._path = void 0, this._points = void 0, this._segments = void 0, this._decimated = !1, this._pointsUpdated = !1, this._datasetIndex = void 0, t && Object.assign(this, t);
5983
5983
  }
@@ -6013,7 +6013,7 @@ class dt extends at {
6013
6013
  });
6014
6014
  if (!a.length)
6015
6015
  return;
6016
- const r = [], l = Uc(n);
6016
+ const r = [], l = Yc(n);
6017
6017
  let c, h;
6018
6018
  for (c = 0, h = a.length; c < h; ++c) {
6019
6019
  const { start: d, end: u } = a[c], f = o[d], m = o[u];
@@ -6070,7 +6070,7 @@ function Ms(i, t, e, n) {
6070
6070
  ], n);
6071
6071
  return Math.abs(t - o) < s.radius + s.hitRadius;
6072
6072
  }
6073
- class Kt extends at {
6073
+ class Kt extends rt {
6074
6074
  constructor(e) {
6075
6075
  super();
6076
6076
  k(this, "parsed");
@@ -6135,7 +6135,7 @@ k(Kt, "defaultRoutes", {
6135
6135
  backgroundColor: "backgroundColor",
6136
6136
  borderColor: "borderColor"
6137
6137
  });
6138
- function Yo(i, t) {
6138
+ function Uo(i, t) {
6139
6139
  const { x: e, y: n, base: s, width: o, height: a } = i.getProps([
6140
6140
  "x",
6141
6141
  "y",
@@ -6175,7 +6175,7 @@ function Qc(i, t, e) {
6175
6175
  };
6176
6176
  }
6177
6177
  function Jc(i) {
6178
- const t = Yo(i), e = t.right - t.left, n = t.bottom - t.top, s = Zc(i, e / 2, n / 2), o = Qc(i, e / 2, n / 2);
6178
+ const t = Uo(i), e = t.right - t.left, n = t.bottom - t.top, s = Zc(i, e / 2, n / 2), o = Qc(i, e / 2, n / 2);
6179
6179
  return {
6180
6180
  outer: {
6181
6181
  x: t.left,
@@ -6199,7 +6199,7 @@ function Jc(i) {
6199
6199
  };
6200
6200
  }
6201
6201
  function ji(i, t, e, n) {
6202
- const s = t === null, o = e === null, r = i && !(s && o) && Yo(i, n);
6202
+ const s = t === null, o = e === null, r = i && !(s && o) && Uo(i, n);
6203
6203
  return r && (s || xt(t, r.left, r.right)) && (o || xt(e, r.top, r.bottom));
6204
6204
  }
6205
6205
  function th(i) {
@@ -6218,7 +6218,7 @@ function $i(i, t, e = {}) {
6218
6218
  radius: i.radius
6219
6219
  };
6220
6220
  }
6221
- class ve extends at {
6221
+ class ve extends rt {
6222
6222
  constructor(t) {
6223
6223
  super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
6224
6224
  }
@@ -6335,7 +6335,7 @@ function kn(i, t, e) {
6335
6335
  function Cs(i, t, e, n) {
6336
6336
  return i && t ? n(i[e], t[e]) : i ? i[e] : t ? t[e] : 0;
6337
6337
  }
6338
- function Uo(i, t) {
6338
+ function Yo(i, t) {
6339
6339
  let e = [], n = !1;
6340
6340
  return W(i) ? (n = !0, e = i) : e = nh(i, t), e.length ? new dt({
6341
6341
  points: e,
@@ -6399,7 +6399,7 @@ function ch(i) {
6399
6399
  }
6400
6400
  function hh(i) {
6401
6401
  const { scale: t, index: e, line: n } = i, s = [], o = n.segments, a = n.points, r = dh(t, e);
6402
- r.push(Uo({
6402
+ r.push(Yo({
6403
6403
  x: null,
6404
6404
  y: t.bottom
6405
6405
  }, n));
@@ -6484,7 +6484,7 @@ function gh(i) {
6484
6484
  if (e === "shape")
6485
6485
  return !0;
6486
6486
  const s = mh(i);
6487
- return s instanceof Xo ? s : Uo(s, n);
6487
+ return s instanceof Xo ? s : Yo(s, n);
6488
6488
  }
6489
6489
  function ph(i, t) {
6490
6490
  const e = i.getDatasetMeta(t);
@@ -6518,7 +6518,7 @@ function yh(i) {
6518
6518
  r.push(t.getPointPositionForValue(l, a));
6519
6519
  return r;
6520
6520
  }
6521
- function Yi(i, t, e) {
6521
+ function Ui(i, t, e) {
6522
6522
  const n = gh(t), { line: s, scale: o, axis: a } = t, r = s.options, l = r.fill, c = r.backgroundColor, { above: h = c, below: d = c } = l || {};
6523
6523
  n && s.points.length && (ki(i, e), xh(i, {
6524
6524
  line: s,
@@ -6606,7 +6606,7 @@ var vh = {
6606
6606
  const n = e.drawTime === "beforeDraw", s = i.getSortedVisibleDatasetMetas(), o = i.chartArea;
6607
6607
  for (let a = s.length - 1; a >= 0; --a) {
6608
6608
  const r = s[a].$filler;
6609
- r && (r.line.updateControlPoints(o, r.axis), n && r.fill && Yi(i.ctx, r, o));
6609
+ r && (r.line.updateControlPoints(o, r.axis), n && r.fill && Ui(i.ctx, r, o));
6610
6610
  }
6611
6611
  },
6612
6612
  beforeDatasetsDraw(i, t, e) {
@@ -6615,12 +6615,12 @@ var vh = {
6615
6615
  const n = i.getSortedVisibleDatasetMetas();
6616
6616
  for (let s = n.length - 1; s >= 0; --s) {
6617
6617
  const o = n[s].$filler;
6618
- Ps(o) && Yi(i.ctx, o, i.chartArea);
6618
+ Ps(o) && Ui(i.ctx, o, i.chartArea);
6619
6619
  }
6620
6620
  },
6621
6621
  beforeDatasetDraw(i, t, e) {
6622
6622
  const n = t.meta.$filler;
6623
- !Ps(n) || e.drawTime !== "beforeDatasetDraw" || Yi(i.ctx, n, i.chartArea);
6623
+ !Ps(n) || e.drawTime !== "beforeDatasetDraw" || Ui(i.ctx, n, i.chartArea);
6624
6624
  },
6625
6625
  defaults: {
6626
6626
  propagate: !0,
@@ -6635,7 +6635,7 @@ const Ts = (i, t) => {
6635
6635
  itemHeight: Math.max(t, e)
6636
6636
  };
6637
6637
  }, Sh = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
6638
- class Os extends at {
6638
+ class Os extends rt {
6639
6639
  constructor(t) {
6640
6640
  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;
6641
6641
  }
@@ -6658,7 +6658,7 @@ class Os extends at {
6658
6658
  this.width = this.height = 0;
6659
6659
  return;
6660
6660
  }
6661
- const n = t.labels, s = U(n.font), o = s.size, a = this._computeTitleHeight(), { boxWidth: r, itemHeight: l } = Ts(n, o);
6661
+ const n = t.labels, s = Y(n.font), o = s.size, a = this._computeTitleHeight(), { boxWidth: r, itemHeight: l } = Ts(n, o);
6662
6662
  let c, h;
6663
6663
  e.font = s.string, this.isHorizontal() ? (c = this.maxWidth, h = this._fitRows(a, o, r, l) + 10) : (h = this.maxHeight, c = this._fitCols(a, s, r, l) + 10), this.width = Math.min(c, t.maxWidth || this.maxWidth), this.height = Math.min(h, t.maxHeight || this.maxHeight);
6664
6664
  }
@@ -6724,7 +6724,7 @@ class Os extends at {
6724
6724
  }
6725
6725
  }
6726
6726
  _draw() {
6727
- const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = j.color, l = qt(t.rtl, this.left, this.width), c = U(a.font), { padding: h } = a, d = c.size, u = d / 2;
6727
+ const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = j.color, l = qt(t.rtl, this.left, this.width), c = Y(a.font), { padding: h } = a, d = c.size, u = d / 2;
6728
6728
  let f;
6729
6729
  this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
6730
6730
  const { boxWidth: m, boxHeight: p, itemHeight: g } = Ts(a, d), b = function(w, S, M) {
@@ -6783,7 +6783,7 @@ class Os extends at {
6783
6783
  }), Po(this.ctx, t.textDirection);
6784
6784
  }
6785
6785
  drawTitle() {
6786
- const t = this.options, e = t.title, n = U(e.font), s = Q(e.padding);
6786
+ const t = this.options, e = t.title, n = Y(e.font), s = Q(e.padding);
6787
6787
  if (!e.display)
6788
6788
  return;
6789
6789
  const o = qt(t.rtl, this.left, this.width), a = this.ctx, r = e.position, l = n.size / 2, c = s.top + l;
@@ -6798,7 +6798,7 @@ class Os extends at {
6798
6798
  a.textAlign = o.textAlign(mn(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = n.string, Nt(a, e.text, f, h, n);
6799
6799
  }
6800
6800
  _computeTitleHeight() {
6801
- const t = this.options.title, e = U(t.font), n = Q(t.padding);
6801
+ const t = this.options.title, e = Y(t.font), n = Q(t.padding);
6802
6802
  return t.display ? e.lineHeight + n.height : 0;
6803
6803
  }
6804
6804
  _getLegendItemAt(t, e) {
@@ -6940,7 +6940,7 @@ var We = {
6940
6940
  }
6941
6941
  }
6942
6942
  };
6943
- class qo extends at {
6943
+ class qo extends rt {
6944
6944
  constructor(t) {
6945
6945
  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;
6946
6946
  }
@@ -6953,7 +6953,7 @@ class qo extends at {
6953
6953
  this.width = this.right = t, this.height = this.bottom = e;
6954
6954
  const s = W(n.text) ? n.text.length : 1;
6955
6955
  this._padding = Q(n.padding);
6956
- const o = s * U(n.font).lineHeight + this._padding.height;
6956
+ const o = s * Y(n.font).lineHeight + this._padding.height;
6957
6957
  this.isHorizontal() ? this.height = o : this.width = o;
6958
6958
  }
6959
6959
  isHorizontal() {
@@ -6974,7 +6974,7 @@ class qo extends at {
6974
6974
  const t = this.ctx, e = this.options;
6975
6975
  if (!e.display)
6976
6976
  return;
6977
- const n = U(e.font), o = n.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
6977
+ const n = Y(e.font), o = n.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
6978
6978
  Nt(t, e.text, 0, 0, n, {
6979
6979
  color: e.color,
6980
6980
  maxWidth: l,
@@ -7091,7 +7091,7 @@ function Ah(i, t) {
7091
7091
  };
7092
7092
  }
7093
7093
  function Is(i, t) {
7094
- const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = U(t.bodyFont), c = U(t.titleFont), h = U(t.footerFont), d = o.length, u = s.length, f = n.length, m = Q(t.padding);
7094
+ const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = Y(t.bodyFont), c = Y(t.titleFont), h = Y(t.footerFont), d = o.length, u = s.length, f = n.length, m = Q(t.padding);
7095
7095
  let p = m.height, g = 0, b = n.reduce((v, _) => v + _.before.length + _.lines.length + _.after.length, 0);
7096
7096
  if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
7097
7097
  const v = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
@@ -7221,7 +7221,7 @@ function J(i, t, e, n) {
7221
7221
  const s = i[t].call(e, n);
7222
7222
  return typeof s > "u" ? Ko[t].call(e, n) : s;
7223
7223
  }
7224
- class nn extends at {
7224
+ class nn extends rt {
7225
7225
  constructor(t) {
7226
7226
  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;
7227
7227
  }
@@ -7323,12 +7323,12 @@ class nn extends at {
7323
7323
  let a, r, l;
7324
7324
  if (o) {
7325
7325
  const c = qt(n.rtl, this.x, this.width);
7326
- for (t.x = si(this, n.titleAlign, n), e.textAlign = c.textAlign(n.titleAlign), e.textBaseline = "middle", a = U(n.titleFont), r = n.titleSpacing, e.fillStyle = n.titleColor, e.font = a.string, l = 0; l < o; ++l)
7326
+ for (t.x = si(this, n.titleAlign, n), e.textAlign = c.textAlign(n.titleAlign), e.textBaseline = "middle", a = Y(n.titleFont), r = n.titleSpacing, e.fillStyle = n.titleColor, e.font = a.string, l = 0; l < o; ++l)
7327
7327
  e.fillText(s[l], c.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + r, l + 1 === o && (t.y += n.titleMarginBottom - r);
7328
7328
  }
7329
7329
  }
7330
7330
  _drawColorBox(t, e, n, s, o) {
7331
- const a = this.labelColors[n], r = this.labelPointStyles[n], { boxHeight: l, boxWidth: c } = o, h = U(o.bodyFont), d = si(this, "left", o), u = s.x(d), f = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0, m = e.y + f;
7331
+ const a = this.labelColors[n], r = this.labelPointStyles[n], { boxHeight: l, boxWidth: c } = o, h = Y(o.bodyFont), d = si(this, "left", o), u = s.x(d), f = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0, m = e.y + f;
7332
7332
  if (o.usePointStyle) {
7333
7333
  const p = {
7334
7334
  radius: Math.min(c, l) / 2,
@@ -7357,7 +7357,7 @@ class nn extends at {
7357
7357
  t.fillStyle = this.labelTextColors[n];
7358
7358
  }
7359
7359
  drawBody(t, e, n) {
7360
- const { body: s } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: l, boxWidth: c, boxPadding: h } = n, d = U(n.bodyFont);
7360
+ const { body: s } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: l, boxWidth: c, boxPadding: h } = n, d = Y(n.bodyFont);
7361
7361
  let u = d.lineHeight, f = 0;
7362
7362
  const m = qt(n.rtl, this.x, this.width), p = function(M) {
7363
7363
  e.fillText(M, m.x(t.x + f), t.y + u / 2), t.y += u + o;
@@ -7375,7 +7375,7 @@ class nn extends at {
7375
7375
  let a, r;
7376
7376
  if (o) {
7377
7377
  const l = qt(n.rtl, this.x, this.width);
7378
- for (t.x = si(this, n.footerAlign, n), t.y += n.footerMarginTop, e.textAlign = l.textAlign(n.footerAlign), e.textBaseline = "middle", a = U(n.footerFont), e.fillStyle = n.footerColor, e.font = a.string, r = 0; r < o; ++r)
7378
+ for (t.x = si(this, n.footerAlign, n), t.y += n.footerMarginTop, e.textAlign = l.textAlign(n.footerAlign), e.textBaseline = "middle", a = Y(n.footerFont), e.fillStyle = n.footerColor, e.font = a.string, r = 0; r < o; ++r)
7379
7379
  e.fillText(s[r], l.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + n.footerSpacing;
7380
7380
  }
7381
7381
  }
@@ -7658,7 +7658,7 @@ function zh(i, t) {
7658
7658
  value: g
7659
7659
  }
7660
7660
  ];
7661
- C = Math.ceil(g / _) - Math.floor(p / _), C > m && (_ = Rn(C * _ / m / f) * f), F(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), s === "ticks" ? (S = Math.floor(p / _) * _, M = Math.ceil(g / _) * _) : (S = p, M = g), b && y && o && Ua((r - a) / o, _ / 1e3) ? (C = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / C, S = a, M = r) : x ? (S = b ? a : S, M = y ? r : M, C = c - 1, _ = (M - S) / C) : (C = (M - S) / _, ye(C, Math.round(C), _ / 1e3) ? C = Math.round(C) : C = Math.ceil(C));
7661
+ C = Math.ceil(g / _) - Math.floor(p / _), C > m && (_ = Rn(C * _ / m / f) * f), F(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), s === "ticks" ? (S = Math.floor(p / _) * _, M = Math.ceil(g / _) * _) : (S = p, M = g), b && y && o && Ya((r - a) / o, _ / 1e3) ? (C = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / C, S = a, M = r) : x ? (S = b ? a : S, M = y ? r : M, C = c - 1, _ = (M - S) / C) : (C = (M - S) / _, ye(C, Math.round(C), _ / 1e3) ? C = Math.round(C) : C = Math.ceil(C));
7662
7662
  const P = Math.max(En(_), En(S));
7663
7663
  w = Math.pow(10, F(l) ? P : l), S = Math.round(S * w) / w, M = Math.round(M * w) / w;
7664
7664
  let A = 0;
@@ -7893,12 +7893,12 @@ function Vh(i) {
7893
7893
  for (let l = 0; l < o; l++) {
7894
7894
  const c = a.setContext(i.getPointLabelContext(l));
7895
7895
  s[l] = c.padding;
7896
- const h = i.getPointPosition(l, i.drawingArea + s[l], r), d = U(c.font), u = Nh(i.ctx, d, i._pointLabels[l]);
7896
+ const h = i.getPointPosition(l, i.drawingArea + s[l], r), d = Y(c.font), u = Nh(i.ctx, d, i._pointLabels[l]);
7897
7897
  n[l] = u;
7898
7898
  const f = it(i.getIndexAngle(l) + r), m = Math.round(gn(f)), p = js(m, h.x, u.w, 0, 180), g = js(m, h.y, u.h, 90, 270);
7899
7899
  jh(e, t, f, p, g);
7900
7900
  }
7901
- i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Uh(i, n, s);
7901
+ i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Yh(i, n, s);
7902
7902
  }
7903
7903
  function jh(i, t, e, n, s) {
7904
7904
  const o = Math.abs(Math.sin(e)), a = Math.abs(Math.cos(e));
@@ -7906,7 +7906,7 @@ function jh(i, t, e, n, s) {
7906
7906
  n.start < t.l ? (r = (t.l - n.start) / o, i.l = Math.min(i.l, t.l - r)) : n.end > t.r && (r = (n.end - t.r) / o, i.r = Math.max(i.r, t.r + r)), s.start < t.t ? (l = (t.t - s.start) / a, i.t = Math.min(i.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / a, i.b = Math.max(i.b, t.b + l));
7907
7907
  }
7908
7908
  function $h(i, t, e) {
7909
- const n = i.drawingArea, { extra: s, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, n + s + a, o), c = Math.round(gn(it(l.angle + Y))), h = qh(l.y, r.h, c), d = Xh(c), u = Gh(l.x, r.w, d);
7909
+ const n = i.drawingArea, { extra: s, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, n + s + a, o), c = Math.round(gn(it(l.angle + U))), h = qh(l.y, r.h, c), d = Xh(c), u = Gh(l.x, r.w, d);
7910
7910
  return {
7911
7911
  visible: !0,
7912
7912
  x: l.x,
@@ -7918,7 +7918,7 @@ function $h(i, t, e) {
7918
7918
  bottom: h + r.h
7919
7919
  };
7920
7920
  }
7921
- function Yh(i, t) {
7921
+ function Uh(i, t) {
7922
7922
  if (!t)
7923
7923
  return !0;
7924
7924
  const { left: e, top: n, right: s, bottom: o } = i;
@@ -7936,7 +7936,7 @@ function Yh(i, t) {
7936
7936
  y: o
7937
7937
  }, t));
7938
7938
  }
7939
- function Uh(i, t, e) {
7939
+ function Yh(i, t, e) {
7940
7940
  const n = [], s = i._pointLabels.length, o = i.options, { centerPointLabels: a, display: r } = o.pointLabels, l = {
7941
7941
  extra: sn(o) / 2,
7942
7942
  additionalAngle: a ? N / s : 0
@@ -7945,7 +7945,7 @@ function Uh(i, t, e) {
7945
7945
  for (let h = 0; h < s; h++) {
7946
7946
  l.padding = e[h], l.size = t[h];
7947
7947
  const d = $h(i, h, l);
7948
- n.push(d), r === "auto" && (d.visible = Yh(d, c), d.visible && (c = d));
7948
+ n.push(d), r === "auto" && (d.visible = Uh(d, c), d.visible && (c = d));
7949
7949
  }
7950
7950
  return n;
7951
7951
  }
@@ -7981,7 +7981,7 @@ function Zh(i, t) {
7981
7981
  continue;
7982
7982
  const a = n.setContext(i.getPointLabelContext(s));
7983
7983
  Kh(e, a, o);
7984
- const r = U(a.font), { x: l, y: c, textAlign: h } = o;
7984
+ const r = Y(a.font), { x: l, y: c, textAlign: h } = o;
7985
7985
  Nt(e, i._pointLabels[s], l, c + r.lineHeight / 2, r, {
7986
7986
  color: a.color,
7987
7987
  textAlign: h,
@@ -8066,7 +8066,7 @@ class me extends xi {
8066
8066
  }
8067
8067
  }
8068
8068
  getPointPosition(t, e, n = 0) {
8069
- const s = this.getIndexAngle(t) - Y + n;
8069
+ const s = this.getIndexAngle(t) - U + n;
8070
8070
  return {
8071
8071
  x: Math.cos(s) * e + this.xCenter,
8072
8072
  y: Math.sin(s) * e + this.yCenter,
@@ -8123,7 +8123,7 @@ class me extends xi {
8123
8123
  t.save(), t.translate(this.xCenter, this.yCenter), t.rotate(s), t.textAlign = "center", t.textBaseline = "middle", this.ticks.forEach((r, l) => {
8124
8124
  if (l === 0 && !e.reverse)
8125
8125
  return;
8126
- const c = n.setContext(this.getContext(l)), h = U(c.font);
8126
+ const c = n.setContext(this.getContext(l)), h = Y(c.font);
8127
8127
  if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
8128
8128
  t.font = h.string, a = t.measureText(r.label).width, t.fillStyle = c.backdropColor;
8129
8129
  const d = Q(c.backdropPadding);
@@ -8228,14 +8228,14 @@ const Pi = {
8228
8228
  function $s(i, t) {
8229
8229
  return i - t;
8230
8230
  }
8231
- function Ys(i, t) {
8231
+ function Us(i, t) {
8232
8232
  if (F(t))
8233
8233
  return null;
8234
8234
  const e = i._adapter, { parser: n, round: s, isoWeekday: o } = i._parseOpts;
8235
8235
  let a = t;
8236
8236
  return typeof n == "function" && (a = n(a)), V(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (Me(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, s)), +a);
8237
8237
  }
8238
- function Us(i, t, e, n) {
8238
+ function Ys(i, t, e, n) {
8239
8239
  const s = tt.length;
8240
8240
  for (let o = tt.indexOf(i); o < s - 1; ++o) {
8241
8241
  const a = Pi[tt[o]], r = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
@@ -8299,7 +8299,7 @@ class _i extends jt {
8299
8299
  }, super.init(t), this._normalized = e.normalized;
8300
8300
  }
8301
8301
  parse(t, e) {
8302
- return t === void 0 ? null : Ys(this, t);
8302
+ return t === void 0 ? null : Us(this, t);
8303
8303
  }
8304
8304
  beforeLayout() {
8305
8305
  super.beforeLayout(), this._cache = {
@@ -8328,7 +8328,7 @@ class _i extends jt {
8328
8328
  const t = this.options, e = t.time, n = t.ticks, s = n.source === "labels" ? this.getLabelTimestamps() : this._generate();
8329
8329
  t.bounds === "ticks" && s.length && (this.min = this._userMin || s[0], this.max = this._userMax || s[s.length - 1]);
8330
8330
  const o = this.min, a = this.max, r = Ka(s, o, a);
8331
- return this._unit = e.unit || (n.autoSkip ? Us(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : td(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !n.major.enabled || this._unit === "year" ? void 0 : ed(this._unit), this.initOffsets(s), t.reverse && r.reverse(), Gs(this, r, this._majorUnit);
8331
+ return this._unit = e.unit || (n.autoSkip ? Ys(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : td(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !n.major.enabled || this._unit === "year" ? void 0 : ed(this._unit), this.initOffsets(s), t.reverse && r.reverse(), Gs(this, r, this._majorUnit);
8332
8332
  }
8333
8333
  afterAutoSkip() {
8334
8334
  this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
@@ -8344,7 +8344,7 @@ class _i extends jt {
8344
8344
  };
8345
8345
  }
8346
8346
  _generate() {
8347
- const t = this._adapter, e = this.min, n = this.max, s = this.options, o = s.time, a = o.unit || Us(o.minUnit, e, n, this._getLabelCapacity(e)), r = L(s.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = Me(l) || l === !0, h = {};
8347
+ const t = this._adapter, e = this.min, n = this.max, s = this.options, o = s.time, a = o.unit || Ys(o.minUnit, e, n, this._getLabelCapacity(e)), r = L(s.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = Me(l) || l === !0, h = {};
8348
8348
  let d = e, u, f;
8349
8349
  if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : a), t.diff(n, e, a) > 1e5 * r)
8350
8350
  throw new Error(e + " and " + n + " are too far apart with stepSize of " + r + " " + a);
@@ -8419,7 +8419,7 @@ class _i extends jt {
8419
8419
  return t;
8420
8420
  const s = this.getLabels();
8421
8421
  for (e = 0, n = s.length; e < n; ++e)
8422
- t.push(Ys(this, s[e]));
8422
+ t.push(Us(this, s[e]));
8423
8423
  return this._cache.labels = this._normalized ? t : this.normalize(t);
8424
8424
  }
8425
8425
  normalize(t) {
@@ -8651,14 +8651,14 @@ function on(i, t) {
8651
8651
  const e = parseInt(i.toFixed());
8652
8652
  return `${new Intl.NumberFormat().format(e)}${t ? " " + t : ""}`;
8653
8653
  }
8654
- function rt(i) {
8654
+ function ot(i) {
8655
8655
  return Math.abs(Number(i)) >= 1e6 ? new Intl.NumberFormat().format(parseFloat((Number(i) / 1e6).toFixed(2))) + " M" : Math.abs(Number(i)) >= 1e3 ? new Intl.NumberFormat().format(parseFloat((Number(i) / 1e3).toFixed(2))) + " K" : new Intl.NumberFormat().format(parseFloat(Number(i).toFixed(2)));
8656
8656
  }
8657
8657
  function ud(i, t) {
8658
8658
  return t ? (i + t) % 6 : i;
8659
8659
  }
8660
8660
  function fd(i, t) {
8661
- return `${rt(i.data[t].value)} (${rt(i.data[t].rate)}%)`;
8661
+ return `${ot(i.data[t].value)} (${ot(i.data[t].rate)}%)`;
8662
8662
  }
8663
8663
  const gd = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTExLjc0IDEyLjAzaC4wMi0uMDJ6TTEyIDdhMyAzIDAgMDAtMyAzIC43NS43NSAwIDAwMS41IDBBMS41IDEuNSAwIDAxMTIgOC41MWExLjUgMS41IDAgMDEuNjYgMi44NSAyLjQxIDIuNDEgMCAwMC0xLjQxIDIuMTZ2LjI1YS43NS43NSAwIDAwMS41IDB2LS4yNWEuOTEuOTEgMCAwMS41Ny0uODFBMyAzIDAgMDAxMiA3eiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTYuMjQiIHI9Ii43NSIvPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PC9zdmc+", { getPatternCanvas: pd } = Di(), md = 14, ia = "6px", vi = "22px", Ks = 6, Mn = "2px";
8664
8664
  function na(i, t, e, n, s, o, a, r) {
@@ -8798,7 +8798,7 @@ function Oe(i, t) {
8798
8798
  const e = Math.round(Math.min(Math.max(t || 1, 0), 1) * 255);
8799
8799
  return i + e.toString(16).toUpperCase();
8800
8800
  }
8801
- const { getPatternIndexWithShift: Ui } = Di();
8801
+ const { getPatternIndexWithShift: Yi } = Di();
8802
8802
  function kd() {
8803
8803
  const i = X(3), t = X(null), e = so({
8804
8804
  dataSetIndex: -1,
@@ -8831,11 +8831,11 @@ function kd() {
8831
8831
  return o([p, g], !1, x, b, y);
8832
8832
  }
8833
8833
  function r(p, g, b, y) {
8834
- const x = Ui(p, y);
8834
+ const x = Yi(p, y);
8835
8835
  return u(p, g) ? b[x] : Oe(b[x], 0.2);
8836
8836
  }
8837
8837
  function l(p, g, b, y, x, v) {
8838
- const _ = Ui(p, v);
8838
+ const _ = Yi(p, v);
8839
8839
  return u(p, g) ? x[_](!1, y[_], b) : x[_](!0, y[_], b);
8840
8840
  }
8841
8841
  function c() {
@@ -8867,7 +8867,7 @@ function kd() {
8867
8867
  getBorderColor: r,
8868
8868
  getPattern: l,
8869
8869
  privateGetHtmlLegendPlugin: n,
8870
- getPatternIndexWithShift: Ui,
8870
+ getPatternIndexWithShift: Yi,
8871
8871
  barChartRef: t,
8872
8872
  borderWidth: i
8873
8873
  };
@@ -9270,7 +9270,7 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9270
9270
  (E) => t.unit === "%" ? E.rate : E.amount
9271
9271
  );
9272
9272
  }, _ = (C) => {
9273
- const P = C.tooltip.dataPoints[0].datasetIndex, A = C.tooltip.dataPoints[0].dataIndex, D = C.tooltip.body[0].lines[0].split(":")[1], E = t.datasets[P].data[A], G = E.rate ? parseFloat(D.replace(",", ".")).toFixed(2) + "% " : "", O = E.amountUnit ? E.amountUnit : "", R = E.amount ? rt(E.amount) : "";
9273
+ const P = C.tooltip.dataPoints[0].datasetIndex, A = C.tooltip.dataPoints[0].dataIndex, D = C.tooltip.body[0].lines[0].split(":")[1], E = t.datasets[P].data[A], G = E.rate ? parseFloat(D.replace(",", ".")).toFixed(2) + "% " : "", O = E.amountUnit ? E.amountUnit : "", R = E.amount ? ot(E.amount) : "";
9274
9274
  return G + (G && R ? "/ " : "") + R + O;
9275
9275
  }, w = (C) => {
9276
9276
  const P = Object.assign([], t.labels);
@@ -9319,7 +9319,7 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9319
9319
  stacked: t.stacked,
9320
9320
  ticks: {
9321
9321
  callback: function(C) {
9322
- return t.unit === "%" ? on(C, t.unit) : rt(C) + " " + t.unit;
9322
+ return t.unit === "%" ? on(C, t.unit) : ot(C) + " " + t.unit;
9323
9323
  }
9324
9324
  }
9325
9325
  }
@@ -9404,7 +9404,7 @@ function Rd() {
9404
9404
  function l(h, d, u, f) {
9405
9405
  let m = h.slice(0), p = d.slice(0);
9406
9406
  return h.length > u && (p = c(d, u), m = m.slice(0, u - 1), m.push(f)), m.map(
9407
- (g, b) => `${r(g)} (${rt(
9407
+ (g, b) => `${r(g)} (${ot(
9408
9408
  p[b].rate
9409
9409
  )} %)`
9410
9410
  );
@@ -9573,7 +9573,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9573
9573
  const M = S.tooltip.dataPoints[0].dataIndex, C = c(
9574
9574
  t.data,
9575
9575
  t.maxValues
9576
- )[M], P = rt(C.rate), A = rt(C.value), D = C.unit || "";
9576
+ )[M], P = ot(C.rate), A = ot(C.value), D = C.unit || "";
9577
9577
  return `${A}${D} (${P})%`;
9578
9578
  };
9579
9579
  function y() {
@@ -9887,7 +9887,7 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9887
9887
  ticks: {
9888
9888
  callback: function(g) {
9889
9889
  const b = t.lines[0].unit;
9890
- return `${rt(g)} ${b || ""}`;
9890
+ return `${ot(g)} ${b || ""}`;
9891
9891
  }
9892
9892
  }
9893
9893
  }
@@ -9942,7 +9942,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
9942
9942
  default:
9943
9943
  return "#000000";
9944
9944
  }
9945
- }), $d = { class: "container" }, Yd = /* @__PURE__ */ Vt({
9945
+ }), $d = { class: "container" }, Ud = /* @__PURE__ */ Vt({
9946
9946
  __name: "RadarChart",
9947
9947
  props: {
9948
9948
  /**
@@ -10149,7 +10149,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10149
10149
  t.datasets[0].areaData[b].value + ""
10150
10150
  )} ${t.datasets[0].areaData[b].unit}` : "No Data";
10151
10151
  return h(g, y);
10152
- }), u = (g) => rt(parseFloat(g));
10152
+ }), u = (g) => ot(parseFloat(g));
10153
10153
  function f(g, b) {
10154
10154
  const y = Cn(g, b);
10155
10155
  return y.onclick = (x) => {
@@ -10207,7 +10207,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10207
10207
  ]));
10208
10208
  }
10209
10209
  });
10210
- const cn = /* @__PURE__ */ $e(Yd, [["__scopeId", "data-v-e59323c3"]]);
10210
+ const cn = /* @__PURE__ */ $e(Ud, [["__scopeId", "data-v-e59323c3"]]);
10211
10211
  cn.install = (i) => {
10212
10212
  i.component("RadarChart", cn);
10213
10213
  };
@@ -10218,7 +10218,7 @@ const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10218
10218
  LineChart: ln,
10219
10219
  RadarChart: cn
10220
10220
  }, Symbol.toStringTag, { value: "Module" })), { getPatternIndexWithShift: Qs } = Di();
10221
- function Ud() {
10221
+ function Yd() {
10222
10222
  const i = X(2), t = so({
10223
10223
  dataSetIndex: -1,
10224
10224
  columnIndex: -1
@@ -10245,12 +10245,12 @@ function Ud() {
10245
10245
  b,
10246
10246
  v,
10247
10247
  u,
10248
- -1,
10248
+ { datasetIndex: -1 },
10249
10249
  m.value
10250
10250
  ) : v != null && v.lineCap ? w = Pn(v) : w = sa(
10251
10251
  v,
10252
10252
  b,
10253
- -1,
10253
+ { datasetIndex: -1 },
10254
10254
  m.value,
10255
10255
  p.value,
10256
10256
  g.value
@@ -10272,38 +10272,41 @@ function Ud() {
10272
10272
  }
10273
10273
  function s(d, u, f, m, p) {
10274
10274
  const g = i.value;
10275
- return d.map((b, y) => ({
10276
- type: b.type,
10277
- fill: b.type === "bar" ? null : !1,
10278
- borderWidth: function() {
10279
- return u ? 1 : g;
10280
- },
10281
- borderColor: function(x) {
10282
- return u ? "#00000000" : b.type === "bar" ? o(
10283
- y,
10284
- x.index,
10285
- f,
10286
- p
10287
- ) : f[y];
10288
- },
10289
- backgroundColor: function(x) {
10290
- return a(
10291
- y,
10292
- x.index,
10293
- u,
10294
- f,
10295
- m,
10296
- p
10297
- );
10298
- },
10299
- yAxisID: b.type === "bar" ? "A" : "B",
10300
- pointStyle: y % 2 === 0 ? "rectRot" : "circle",
10301
- data: b.data,
10302
- label: b.label,
10303
- pointBackgroundColor: "#FFFFFF",
10304
- pointRadius: 5,
10305
- order: d.length - y
10306
- }));
10275
+ return d.map((b, y) => {
10276
+ const x = b.type === "bar";
10277
+ return {
10278
+ type: b.type,
10279
+ fill: x ? null : !1,
10280
+ borderWidth: function() {
10281
+ return u && x ? 1 : g;
10282
+ },
10283
+ borderColor: function(v) {
10284
+ return u && x ? "#00000000" : x ? o(
10285
+ y,
10286
+ v.index,
10287
+ f,
10288
+ p
10289
+ ) : f[y];
10290
+ },
10291
+ backgroundColor: function(v) {
10292
+ return a(
10293
+ y,
10294
+ v.index,
10295
+ u,
10296
+ f,
10297
+ m,
10298
+ p
10299
+ );
10300
+ },
10301
+ yAxisID: x ? "A" : "B",
10302
+ pointStyle: y % 2 === 0 ? "rectRot" : "circle",
10303
+ data: b.data,
10304
+ label: b.label,
10305
+ pointBackgroundColor: "#FFFFFF",
10306
+ pointRadius: 5,
10307
+ order: d.length - y
10308
+ };
10309
+ });
10307
10310
  }
10308
10311
  function o(d, u, f, m) {
10309
10312
  const p = Qs(d, m);
@@ -10392,6 +10395,13 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10392
10395
  type: Array,
10393
10396
  default: () => []
10394
10397
  },
10398
+ /**
10399
+ * Unit of the `bar datasets`
10400
+ */
10401
+ barUnit: {
10402
+ type: String,
10403
+ default: ""
10404
+ },
10395
10405
  /**
10396
10406
  * Value of the `line datasets` key present in the `data` object passed to the Chart config
10397
10407
  */
@@ -10399,6 +10409,13 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10399
10409
  type: Array,
10400
10410
  default: () => []
10401
10411
  },
10412
+ /**
10413
+ * Unit of the `line datasets`
10414
+ */
10415
+ lineUnit: {
10416
+ type: String,
10417
+ default: ""
10418
+ },
10402
10419
  /**
10403
10420
  * Value of the `width` css property used to define the width of the <canvas> element
10404
10421
  */
@@ -10497,7 +10514,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10497
10514
  dt,
10498
10515
  Kt
10499
10516
  );
10500
- const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = Ud(), { colourSets: s, patternsStandardList: o } = je(), a = X(null), r = X(!1), l = z(() => {
10517
+ const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = Yd(), { colourSets: s, patternsStandardList: o } = je(), a = X(null), r = X(!1), l = z(() => {
10501
10518
  let b = [];
10502
10519
  return t.barDatasets && (b = b.concat(t.barDatasets)), t.lineDatasets && (b = b.concat(t.lineDatasets)), b;
10503
10520
  }), c = z(() => t.newPatternsOrder.length !== o.length ? s[t.colourSet] : t.newPatternsOrder.map((b) => s[t.colourSet][b])), h = z(() => t.newPatternsOrder.length !== o.length ? o : t.newPatternsOrder.map((b) => o[b])), d = z(() => t.disableAccessibility), u = z(() => ({
@@ -10510,8 +10527,8 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10510
10527
  0
10511
10528
  )
10512
10529
  })), f = (b) => {
10513
- const y = b.tooltip.dataPoints[0].datasetIndex, x = b.tooltip.dataPoints[0].dataIndex, v = b.tooltip.body[0].lines[0].split(":")[1];
10514
- return l.value[y].data[x] ? parseFloat(v.replace(",", ".")).toFixed(2) + "%" : "";
10530
+ const y = b.tooltip.dataPoints[0].datasetIndex, x = b.tooltip.dataPoints[0].dataIndex, v = l.value[y].data[x], _ = l.value[y].type === "bar" ? t.barUnit : t.lineUnit;
10531
+ return (_ === "%" ? parseFloat(v.toString().replace(",", ".")).toFixed(2) : ot(v)) + _;
10515
10532
  }, m = () => Object.assign([], t.labels).map((y) => y), p = z(() => ({
10516
10533
  type: "scatter",
10517
10534
  responsive: !0,
@@ -10567,7 +10584,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10567
10584
  },
10568
10585
  ticks: {
10569
10586
  callback: function(b) {
10570
- return t.unit === "%" ? on(b, t.unit) : rt(b) + " " + t.unit;
10587
+ return t.barUnit === "%" ? on(b, t.unit) : ot(b) + " " + t.barUnit;
10571
10588
  }
10572
10589
  }
10573
10590
  },
@@ -10584,7 +10601,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10584
10601
  },
10585
10602
  ticks: {
10586
10603
  callback: function(b) {
10587
- return t.yRightAxisTitle ? t.unit === "%" ? on(b, t.unit) : rt(b) + " " + t.unit : null;
10604
+ return (t.lineUnit === "%" ? on(b, t.unit) : ot(b)) + " " + t.lineUnit;
10588
10605
  }
10589
10606
  }
10590
10607
  }
@@ -10618,7 +10635,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10618
10635
  ]));
10619
10636
  }
10620
10637
  });
10621
- const Js = /* @__PURE__ */ $e(qd, [["__scopeId", "data-v-86ba8aab"]]);
10638
+ const Js = /* @__PURE__ */ $e(qd, [["__scopeId", "data-v-758cd368"]]);
10622
10639
  Js.install = (i) => {
10623
10640
  i.component("MixedBarLineChart", Js);
10624
10641
  };