@mozaic-ds/chart 0.1.0-beta.13 → 0.1.0-beta.15

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.
@@ -1161,45 +1161,45 @@ function Zi(i, t, e, n) {
1161
1161
  }
1162
1162
  function yo(i, t, e, n, s) {
1163
1163
  let o, a, r, l, c, h, d, u;
1164
- const f = t.pointStyle, m = t.rotation, p = t.radius;
1165
- let g = (m || 0) * $a;
1164
+ const f = t.pointStyle, m = t.rotation, g = t.radius;
1165
+ let p = (m || 0) * $a;
1166
1166
  if (f && typeof f == "object" && (o = f.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
1167
- i.save(), i.translate(e, n), i.rotate(g), i.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), i.restore();
1167
+ i.save(), i.translate(e, n), i.rotate(p), i.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), i.restore();
1168
1168
  return;
1169
1169
  }
1170
- if (!(isNaN(p) || p <= 0)) {
1170
+ if (!(isNaN(g) || g <= 0)) {
1171
1171
  switch (i.beginPath(), f) {
1172
1172
  default:
1173
- s ? i.ellipse(e, n, s / 2, p, 0, 0, H) : i.arc(e, n, p, 0, H), i.closePath();
1173
+ s ? i.ellipse(e, n, s / 2, g, 0, 0, H) : i.arc(e, n, g, 0, H), i.closePath();
1174
1174
  break;
1175
1175
  case "triangle":
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();
1176
+ h = s ? s / 2 : g, i.moveTo(e + Math.sin(p) * h, n - Math.cos(p) * g), p += Fn, i.lineTo(e + Math.sin(p) * h, n - Math.cos(p) * g), p += Fn, i.lineTo(e + Math.sin(p) * h, n - Math.cos(p) * g), 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 - 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();
1179
+ c = g * 0.516, l = g - c, a = Math.cos(p + Tt) * l, d = Math.cos(p + Tt) * (s ? s / 2 - c : l), r = Math.sin(p + Tt) * l, u = Math.sin(p + Tt) * (s ? s / 2 - c : l), i.arc(e - d, n - r, c, p - N, p - U), i.arc(e + u, n - a, c, p - U, p), i.arc(e + d, n + r, c, p, p + U), i.arc(e - u, n + a, c, p + U, p + N), i.closePath();
1180
1180
  break;
1181
1181
  case "rect":
1182
1182
  if (!m) {
1183
- l = Math.SQRT1_2 * p, h = s ? s / 2 : l, i.rect(e - h, n - l, 2 * h, 2 * l);
1183
+ l = Math.SQRT1_2 * g, h = s ? s / 2 : l, i.rect(e - h, n - l, 2 * h, 2 * l);
1184
1184
  break;
1185
1185
  }
1186
- g += Tt;
1186
+ p += Tt;
1187
1187
  case "rectRot":
1188
- d = Math.cos(g) * (s ? s / 2 : p), a = Math.cos(g) * p, r = Math.sin(g) * p, u = Math.sin(g) * (s ? s / 2 : p), i.moveTo(e - d, n - r), i.lineTo(e + u, n - a), i.lineTo(e + d, n + r), i.lineTo(e - u, n + a), i.closePath();
1188
+ d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + u, n - a), i.lineTo(e + d, n + r), i.lineTo(e - u, n + a), i.closePath();
1189
1189
  break;
1190
1190
  case "crossRot":
1191
- g += Tt;
1191
+ p += Tt;
1192
1192
  case "cross":
1193
- d = Math.cos(g) * (s ? s / 2 : p), a = Math.cos(g) * p, r = Math.sin(g) * p, u = Math.sin(g) * (s ? s / 2 : p), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1193
+ d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1194
1194
  break;
1195
1195
  case "star":
1196
- d = Math.cos(g) * (s ? s / 2 : p), a = Math.cos(g) * p, r = Math.sin(g) * p, u = Math.sin(g) * (s ? s / 2 : p), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a), g += Tt, d = Math.cos(g) * (s ? s / 2 : p), a = Math.cos(g) * p, r = Math.sin(g) * p, u = Math.sin(g) * (s ? s / 2 : p), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1196
+ d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a), p += Tt, d = Math.cos(p) * (s ? s / 2 : g), a = Math.cos(p) * g, r = Math.sin(p) * g, u = Math.sin(p) * (s ? s / 2 : g), i.moveTo(e - d, n - r), i.lineTo(e + d, n + r), i.moveTo(e + u, n - a), i.lineTo(e - u, n + a);
1197
1197
  break;
1198
1198
  case "line":
1199
- a = s ? s / 2 : Math.cos(g) * p, r = Math.sin(g) * p, i.moveTo(e - a, n - r), i.lineTo(e + a, n + r);
1199
+ a = s ? s / 2 : Math.cos(p) * g, r = Math.sin(p) * g, i.moveTo(e - a, n - r), i.lineTo(e + a, n + r);
1200
1200
  break;
1201
1201
  case "dash":
1202
- i.moveTo(e, n), i.lineTo(e + Math.cos(g) * (s ? s / 2 : p), n + Math.sin(g) * p);
1202
+ i.moveTo(e, n), i.lineTo(e + Math.cos(p) * (s ? s / 2 : g), n + Math.sin(p) * g);
1203
1203
  break;
1204
1204
  case !1:
1205
1205
  i.closePath();
@@ -1868,18 +1868,18 @@ function Do(i, t, e) {
1868
1868
  i
1869
1869
  ];
1870
1870
  const { property: n, start: s, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Ao(n), { start: h, end: d, loop: u, style: f } = Kr(i, t, e), m = [];
1871
- let p = !1, g = null, b, y, x;
1872
- const v = () => l(s, x, b) && r(s, x) !== 0, _ = () => r(o, b) === 0 || l(o, x, b), w = () => p || v(), S = () => !p || _();
1871
+ let g = !1, p = null, b, y, x;
1872
+ const v = () => l(s, x, b) && r(s, x) !== 0, _ = () => r(o, b) === 0 || l(o, x, b), w = () => g || v(), S = () => !g || _();
1873
1873
  for (let M = h, C = h; M <= d; ++M)
1874
- y = t[M % a], !y.skip && (b = c(y[n]), b !== x && (p = l(b, s, o), g === null && w() && (g = r(b, s) === 0 ? M : C), g !== null && S() && (m.push(Xn({
1875
- start: g,
1874
+ y = t[M % a], !y.skip && (b = c(y[n]), b !== x && (g = l(b, s, o), p === null && w() && (p = r(b, s) === 0 ? M : C), p !== null && S() && (m.push(Xn({
1875
+ start: p,
1876
1876
  end: M,
1877
1877
  loop: u,
1878
1878
  count: a,
1879
1879
  style: f
1880
- })), g = null), C = M, x = b));
1881
- return g !== null && m.push(Xn({
1882
- start: g,
1880
+ })), p = null), C = M, x = b));
1881
+ return p !== null && m.push(Xn({
1882
+ start: p,
1883
1883
  end: d,
1884
1884
  loop: u,
1885
1885
  count: a,
@@ -1947,34 +1947,34 @@ function Gn(i, t, e, n) {
1947
1947
  function tl(i, t, e, n) {
1948
1948
  const s = i._chart.getContext(), o = qn(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, c = [];
1949
1949
  let h = o, d = t[0].start, u = d;
1950
- function f(m, p, g, b) {
1950
+ function f(m, g, p, b) {
1951
1951
  const y = r ? -1 : 1;
1952
- if (m !== p) {
1952
+ if (m !== g) {
1953
1953
  for (m += l; e[m % l].skip; )
1954
1954
  m -= y;
1955
- for (; e[p % l].skip; )
1956
- p += y;
1957
- m % l !== p % l && (c.push({
1955
+ for (; e[g % l].skip; )
1956
+ g += y;
1957
+ m % l !== g % l && (c.push({
1958
1958
  start: m % l,
1959
- end: p % l,
1960
- loop: g,
1959
+ end: g % l,
1960
+ loop: p,
1961
1961
  style: b
1962
- }), h = b, d = p % l);
1962
+ }), h = b, d = g % l);
1963
1963
  }
1964
1964
  }
1965
1965
  for (const m of t) {
1966
1966
  d = r ? d : m.start;
1967
- let p = e[d % l], g;
1967
+ let g = e[d % l], p;
1968
1968
  for (u = d + 1; u <= m.end; u++) {
1969
1969
  const b = e[u % l];
1970
- g = qn(n.setContext(Dt(s, {
1970
+ p = qn(n.setContext(Dt(s, {
1971
1971
  type: "segment",
1972
- p0: p,
1972
+ p0: g,
1973
1973
  p1: b,
1974
1974
  p0DataIndex: (u - 1) % l,
1975
1975
  p1DataIndex: u % l,
1976
1976
  datasetIndex: a
1977
- }))), el(g, h) && f(d, u - 1, m.loop, h), p = b, h = g;
1977
+ }))), el(p, h) && f(d, u - 1, m.loop, h), g = b, h = p;
1978
1978
  }
1979
1979
  d < u - 1 && f(d, u - 1, m.loop, h);
1980
1980
  }
@@ -2341,10 +2341,10 @@ function es(i, t) {
2341
2341
  const { chart: e, _cachedMeta: n } = i, s = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = n, l = o.axis, c = a.axis, h = hl(o, a, n), d = t.length;
2342
2342
  let u;
2343
2343
  for (let f = 0; f < d; ++f) {
2344
- const m = t[f], { [l]: p, [c]: g } = m, b = m._stacks || (m._stacks = {});
2345
- u = b[c] = ul(s, h, p), u[r] = g, u._top = ts(u, a, !0, n.type), u._bottom = ts(u, a, !1, n.type);
2344
+ const m = t[f], { [l]: g, [c]: p } = m, b = m._stacks || (m._stacks = {});
2345
+ u = b[c] = ul(s, h, g), u[r] = p, u._top = ts(u, a, !0, n.type), u._bottom = ts(u, a, !1, n.type);
2346
2346
  const y = u._visualValues || (u._visualValues = {});
2347
- y[r] = g;
2347
+ y[r] = p;
2348
2348
  }
2349
2349
  }
2350
2350
  function Bi(i, t) {
@@ -2525,8 +2525,8 @@ class Ct {
2525
2525
  let u, f;
2526
2526
  function m() {
2527
2527
  f = s[u];
2528
- const p = f[r.axis];
2529
- return !V(f[t.axis]) || h > p || d < p;
2528
+ const g = f[r.axis];
2529
+ return !V(f[t.axis]) || h > g || d < g;
2530
2530
  }
2531
2531
  for (u = 0; u < a && !(!m() && (this.updateRangeFromParsed(c, t, f, l), o)); ++u)
2532
2532
  ;
@@ -2604,8 +2604,8 @@ class Ct {
2604
2604
  ] : [
2605
2605
  t,
2606
2606
  ""
2607
- ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys(j.elements[t]), m = () => this.getContext(n, s, e), p = c.resolveNamedOptions(u, f, m, d);
2608
- return p.$shared && (p.$shared = l, o[a] = Object.freeze(is(p, l))), p;
2607
+ ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys(j.elements[t]), m = () => this.getContext(n, s, e), g = c.resolveNamedOptions(u, f, m, d);
2608
+ return g.$shared && (g.$shared = l, o[a] = Object.freeze(is(g, l))), g;
2609
2609
  }
2610
2610
  _resolveAnimations(t, e, n) {
2611
2611
  const s = this.chart, o = this._cachedDataOpts, a = `animation-${e}`, r = o[a];
@@ -2866,9 +2866,9 @@ class ai extends Ct {
2866
2866
  }
2867
2867
  parseObjectData(t, e, n, s) {
2868
2868
  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 = [];
2869
- let u, f, m, p;
2869
+ let u, f, m, g;
2870
2870
  for (u = n, f = n + s; u < f; ++u)
2871
- p = e[u], m = {}, m[o.axis] = o.parse(Pt(p, c), u), d.push(Io(Pt(p, h), m, a, u));
2871
+ g = e[u], m = {}, m[o.axis] = o.parse(Pt(g, c), u), d.push(Io(Pt(g, h), m, a, u));
2872
2872
  return d;
2873
2873
  }
2874
2874
  updateRangeFromParsed(t, e, n, s) {
@@ -2898,17 +2898,17 @@ class ai extends Ct {
2898
2898
  updateElements(t, e, n, s) {
2899
2899
  const o = s === "reset", { index: a, _cachedMeta: { vScale: r } } = this, l = r.getBasePixel(), c = r.isHorizontal(), h = this._getRuler(), { sharedOptions: d, includeOptions: u } = this._getSharedOptions(e, s);
2900
2900
  for (let f = e; f < e + n; f++) {
2901
- const m = this.getParsed(f), p = o || F(m[r.axis]) ? {
2901
+ const m = this.getParsed(f), g = o || F(m[r.axis]) ? {
2902
2902
  base: l,
2903
2903
  head: l
2904
- } : this._calculateBarValuePixels(f), g = this._calculateBarIndexPixels(f, h), b = (m._stacks || {})[r.axis], y = {
2904
+ } : this._calculateBarValuePixels(f), p = this._calculateBarIndexPixels(f, h), b = (m._stacks || {})[r.axis], y = {
2905
2905
  horizontal: c,
2906
- base: p.base,
2906
+ base: g.base,
2907
2907
  enableBorderRadius: !b || Wi(m._custom) || a === b._top || a === b._bottom,
2908
- x: c ? p.head : g.center,
2909
- y: c ? g.center : p.head,
2910
- height: c ? g.size : Math.abs(p.size),
2911
- width: c ? Math.abs(p.size) : g.size
2908
+ x: c ? g.head : p.center,
2909
+ y: c ? p.center : g.head,
2910
+ height: c ? p.size : Math.abs(g.size),
2911
+ width: c ? Math.abs(g.size) : p.size
2912
2912
  };
2913
2913
  u && (y.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : s));
2914
2914
  const x = y.options || t[f].options;
@@ -2952,24 +2952,24 @@ class ai extends Ct {
2952
2952
  }
2953
2953
  _calculateBarValuePixels(t) {
2954
2954
  const { _cachedMeta: { vScale: e, _stacked: n, index: s }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), c = l._custom, h = Wi(c);
2955
- let d = l[e.axis], u = 0, f = n ? this.applyStack(e, l, n) : d, m, p;
2955
+ let d = l[e.axis], u = 0, f = n ? this.applyStack(e, l, n) : d, m, g;
2956
2956
  f !== d && (u = f - d, f = d), h && (d = c.barStart, f = c.barEnd - c.barStart, d !== 0 && ut(d) !== ut(c.barEnd) && (u = 0), u += d);
2957
- const g = !F(o) && !h ? o : u;
2958
- let b = e.getPixelForValue(g);
2959
- if (this.chart.getDataVisibility(t) ? m = e.getPixelForValue(u + f) : m = b, p = m - b, Math.abs(p) < a) {
2960
- p = vl(p, e, r) * a, d === r && (b -= p / 2);
2957
+ const p = !F(o) && !h ? o : u;
2958
+ let b = e.getPixelForValue(p);
2959
+ if (this.chart.getDataVisibility(t) ? m = e.getPixelForValue(u + f) : m = b, g = m - b, Math.abs(g) < a) {
2960
+ g = vl(g, e, r) * a, d === r && (b -= g / 2);
2961
2961
  const y = e.getPixelForDecimal(0), x = e.getPixelForDecimal(1), v = Math.min(y, x), _ = Math.max(y, x);
2962
- b = Math.max(Math.min(b, _), v), m = b + p, n && !h && (l._stacks[e.axis]._visualValues[s] = e.getValueForPixel(m) - e.getValueForPixel(b));
2962
+ b = Math.max(Math.min(b, _), v), m = b + g, n && !h && (l._stacks[e.axis]._visualValues[s] = e.getValueForPixel(m) - e.getValueForPixel(b));
2963
2963
  }
2964
2964
  if (b === e.getPixelForValue(r)) {
2965
- const y = ut(p) * e.getLineWidthForValue(r) / 2;
2966
- b += y, p -= y;
2965
+ const y = ut(g) * e.getLineWidthForValue(r) / 2;
2966
+ b += y, g -= y;
2967
2967
  }
2968
2968
  return {
2969
- size: p,
2969
+ size: g,
2970
2970
  base: b,
2971
2971
  head: m,
2972
- center: m + p / 2
2972
+ center: m + g / 2
2973
2973
  };
2974
2974
  }
2975
2975
  _calculateBarIndexPixels(t, e) {
@@ -3030,8 +3030,8 @@ 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(U, h, u), b = m(N, c, d), y = m(N + U, h, u);
3034
- n = (p - b) / 2, s = (g - y) / 2, o = -(p + b) / 2, a = -(g + y) / 2;
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), g = f(0, c, d), p = f(U, h, u), b = m(N, c, d), y = m(N + U, h, u);
3034
+ n = (g - b) / 2, s = (p - y) / 2, o = -(g + b) / 2, a = -(p + y) / 2;
3035
3035
  }
3036
3036
  return {
3037
3037
  ratioX: n,
@@ -3080,15 +3080,15 @@ class ue extends Ct {
3080
3080
  };
3081
3081
  }
3082
3082
  update(t) {
3083
- const e = this.chart, { chartArea: n } = e, s = this._cachedMeta, o = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(n.width, n.height) - a) / 2, 0), l = Math.min(Ba(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: m, offsetY: p } = Cl(d, h, l), g = (n.width - a) / u, b = (n.height - a) / f, y = Math.max(Math.min(g, b) / 2, 0), x = lo(this.options.radius, y), v = Math.max(x * l, 0), _ = (x - v) / this._getVisibleDatasetWeightTotal();
3084
- this.offsetX = m * x, this.offsetY = p * x, s.total = this.calculateTotal(), this.outerRadius = x - _ * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - _ * c, 0), this.updateElements(o, 0, o.length, t);
3083
+ const e = this.chart, { chartArea: n } = e, s = this._cachedMeta, o = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(n.width, n.height) - a) / 2, 0), l = Math.min(Ba(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: m, offsetY: g } = Cl(d, h, l), p = (n.width - a) / u, b = (n.height - a) / f, y = Math.max(Math.min(p, b) / 2, 0), x = lo(this.options.radius, y), v = Math.max(x * l, 0), _ = (x - v) / this._getVisibleDatasetWeightTotal();
3084
+ this.offsetX = m * x, this.offsetY = g * x, s.total = this.calculateTotal(), this.outerRadius = x - _ * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - _ * c, 0), this.updateElements(o, 0, o.length, t);
3085
3085
  }
3086
3086
  _circumference(t, e) {
3087
3087
  const n = this.options, s = this._cachedMeta, o = this._getCircumference();
3088
3088
  return e && n.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * o / H);
3089
3089
  }
3090
3090
  updateElements(t, e, n, s) {
3091
- const o = s === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, h = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, u = o && c.animateScale, f = u ? 0 : this.innerRadius, m = u ? 0 : this.outerRadius, { sharedOptions: p, includeOptions: g } = this._getSharedOptions(e, s);
3091
+ const o = s === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, h = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, u = o && c.animateScale, f = u ? 0 : this.innerRadius, m = u ? 0 : this.outerRadius, { sharedOptions: g, includeOptions: p } = this._getSharedOptions(e, s);
3092
3092
  let b = this._getRotation(), y;
3093
3093
  for (y = 0; y < e; ++y)
3094
3094
  b += this._circumference(y, o);
@@ -3102,7 +3102,7 @@ class ue extends Ct {
3102
3102
  outerRadius: m,
3103
3103
  innerRadius: f
3104
3104
  };
3105
- g && (_.options = p || this.resolveDataElementOptions(y, v.active ? "active" : s)), b += x, this.updateElement(v, y, _, s);
3105
+ p && (_.options = g || this.resolveDataElementOptions(y, v.active ? "active" : s)), b += x, this.updateElement(v, y, _, s);
3106
3106
  }
3107
3107
  }
3108
3108
  calculateTotal() {
@@ -3243,7 +3243,7 @@ class ri extends Ct {
3243
3243
  }, t), this.updateElements(s, r, l, t);
3244
3244
  }
3245
3245
  updateElements(t, e, n, s) {
3246
- const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: m, segment: p } = this.options, g = Me(m) ? m : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
3246
+ const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: m, segment: g } = this.options, p = Me(m) ? m : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
3247
3247
  let v = e > 0 && this.getParsed(e - 1);
3248
3248
  for (let _ = 0; _ < x; ++_) {
3249
3249
  const w = t[_], S = b ? w : {};
@@ -3252,7 +3252,7 @@ class ri extends Ct {
3252
3252
  continue;
3253
3253
  }
3254
3254
  const M = this.getParsed(_), C = F(M[f]), P = S[u] = a.getPixelForValue(M[u], _), A = S[f] = o || C ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, M, l) : M[f], _);
3255
- S.skip = isNaN(P) || isNaN(A) || C, S.stop = _ > 0 && Math.abs(M[u] - v[u]) > g, p && (S.parsed = M, S.raw = c.data[_]), d && (S.options = h || this.resolveDataElementOptions(_, w.active ? "active" : s)), b || this.updateElement(w, _, S, s), v = M;
3255
+ S.skip = isNaN(P) || isNaN(A) || C, S.stop = _ > 0 && Math.abs(M[u] - v[u]) > p, g && (S.parsed = M, S.raw = c.data[_]), d && (S.options = h || this.resolveDataElementOptions(_, w.active ? "active" : s)), b || this.updateElement(w, _, S, s), v = M;
3256
3256
  }
3257
3257
  }
3258
3258
  getMaxOverflow() {
@@ -3467,14 +3467,14 @@ function Tl(i, t, e, n, s, o) {
3467
3467
  const m = h.getCenterPoint(s);
3468
3468
  if (!(!!o || i.isPointInArea(m)) && !f)
3469
3469
  return;
3470
- const g = r(t, m);
3471
- g < l ? (a = [
3470
+ const p = r(t, m);
3471
+ p < l ? (a = [
3472
3472
  {
3473
3473
  element: h,
3474
3474
  datasetIndex: d,
3475
3475
  index: u
3476
3476
  }
3477
- ], l = g) : g === l && a.push({
3477
+ ], l = p) : p === l && a.push({
3478
3478
  element: h,
3479
3479
  datasetIndex: d,
3480
3480
  index: u
@@ -3724,10 +3724,10 @@ var st = {
3724
3724
  if (!i)
3725
3725
  return;
3726
3726
  const s = Q(i.options.layout.padding), o = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), r = El(i.boxes), l = r.vertical, c = r.horizontal;
3727
- I(i.boxes, (p) => {
3728
- typeof p.beforeLayout == "function" && p.beforeLayout();
3727
+ I(i.boxes, (g) => {
3728
+ typeof g.beforeLayout == "function" && g.beforeLayout();
3729
3729
  });
3730
- const h = l.reduce((p, g) => g.box.options && g.box.options.display === !1 ? p : p + 1, 0) || 1, d = Object.freeze({
3730
+ const h = l.reduce((g, p) => p.box.options && p.box.options.display === !1 ? g : g + 1, 0) || 1, d = Object.freeze({
3731
3731
  outerWidth: t,
3732
3732
  outerHeight: e,
3733
3733
  padding: s,
@@ -3751,9 +3751,9 @@ var st = {
3751
3751
  bottom: f.top + f.h,
3752
3752
  height: f.h,
3753
3753
  width: f.w
3754
- }, I(r.chartArea, (p) => {
3755
- const g = p.box;
3756
- Object.assign(g, i.chartArea), g.update(f.w, f.h, {
3754
+ }, I(r.chartArea, (g) => {
3755
+ const p = g.box;
3756
+ Object.assign(p, i.chartArea), p.update(f.w, f.h, {
3757
3757
  left: 0,
3758
3758
  top: 0,
3759
3759
  right: 0,
@@ -4116,20 +4116,20 @@ function dc(i, t, e) {
4116
4116
  function uc(i, t, e, n) {
4117
4117
  const { top: s, left: o, bottom: a, right: r, chart: l } = i, { chartArea: c, scales: h } = l;
4118
4118
  let d = 0, u, f, m;
4119
- const p = a - s, g = r - o;
4119
+ const g = a - s, p = r - o;
4120
4120
  if (i.isHorizontal()) {
4121
4121
  if (f = K(n, o, r), T(e)) {
4122
4122
  const b = Object.keys(e)[0], y = e[b];
4123
- m = h[b].getPixelForValue(y) + p - t;
4123
+ m = h[b].getPixelForValue(y) + g - t;
4124
4124
  } else
4125
- e === "center" ? m = (c.bottom + c.top) / 2 + p - t : m = us(i, e, t);
4125
+ e === "center" ? m = (c.bottom + c.top) / 2 + g - t : m = us(i, e, t);
4126
4126
  u = r - o;
4127
4127
  } else {
4128
4128
  if (T(e)) {
4129
4129
  const b = Object.keys(e)[0], y = e[b];
4130
- f = h[b].getPixelForValue(y) - g + t;
4130
+ f = h[b].getPixelForValue(y) - p + t;
4131
4131
  } else
4132
- e === "center" ? f = (c.left + c.right) / 2 - g + t : f = us(i, e, t);
4132
+ e === "center" ? f = (c.left + c.right) / 2 - p + t : f = us(i, e, t);
4133
4133
  m = K(n, a, s), d = e === "left" ? -U : U;
4134
4134
  }
4135
4135
  return {
@@ -4314,15 +4314,15 @@ class jt extends rt {
4314
4314
  if (a) {
4315
4315
  const l = ps(s, e.options.font);
4316
4316
  if (r ? (t.width = this.maxWidth, t.height = ce(o) + l) : (t.height = this.maxHeight, t.width = ce(o) + l), n.display && this.ticks.length) {
4317
- const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2, m = ht(this.labelRotation), p = Math.cos(m), g = Math.sin(m);
4317
+ const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2, m = ht(this.labelRotation), g = Math.cos(m), p = Math.sin(m);
4318
4318
  if (r) {
4319
- const b = n.mirror ? 0 : g * d.width + p * u.height;
4319
+ const b = n.mirror ? 0 : p * d.width + g * u.height;
4320
4320
  t.height = Math.min(this.maxHeight, t.height + b + f);
4321
4321
  } else {
4322
- const b = n.mirror ? 0 : p * d.width + g * u.height;
4322
+ const b = n.mirror ? 0 : g * d.width + p * u.height;
4323
4323
  t.width = Math.min(this.maxWidth, t.width + b + f);
4324
4324
  }
4325
- this._calculatePadding(c, h, g, p);
4325
+ this._calculatePadding(c, h, p, g);
4326
4326
  }
4327
4327
  }
4328
4328
  this._handleMargins(), r ? (this.width = this._length = e.width - this._margins.left - this._margins.right, this.height = t.height) : (this.width = t.width, this.height = this._length = e.height - this._margins.top - this._margins.bottom);
@@ -4371,12 +4371,12 @@ class jt extends rt {
4371
4371
  }
4372
4372
  _computeLabelSizes(t, e, n) {
4373
4373
  const { ctx: s, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / fs(e, n));
4374
- let c = 0, h = 0, d, u, f, m, p, g, b, y, x, v, _;
4374
+ let c = 0, h = 0, d, u, f, m, g, p, b, y, x, v, _;
4375
4375
  for (d = 0; d < e; d += l) {
4376
- if (m = t[d].label, p = this._resolveTickFontOptions(d), s.font = g = p.string, b = o[g] = o[g] || {
4376
+ if (m = t[d].label, g = this._resolveTickFontOptions(d), s.font = p = g.string, b = o[p] = o[p] || {
4377
4377
  data: {},
4378
4378
  gc: []
4379
- }, y = p.lineHeight, x = v = 0, !F(m) && !W(m))
4379
+ }, y = g.lineHeight, x = v = 0, !F(m) && !W(m))
4380
4380
  x = pi(s, b.data, b.gc, x, m), v = y;
4381
4381
  else if (W(m))
4382
4382
  for (u = 0, f = m.length; u < f; ++u)
@@ -4442,18 +4442,18 @@ class jt extends rt {
4442
4442
  return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
4443
4443
  }
4444
4444
  _computeGridLineItems(t) {
4445
- const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = ce(o), f = [], m = r.setContext(this.getContext()), p = m.display ? m.width : 0, g = p / 2, b = function(R) {
4446
- return Ot(n, R, p);
4445
+ const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = ce(o), f = [], m = r.setContext(this.getContext()), g = m.display ? m.width : 0, p = g / 2, b = function(R) {
4446
+ return Ot(n, R, g);
4447
4447
  };
4448
4448
  let y, x, v, _, w, S, M, C, P, A, D, E;
4449
4449
  if (a === "top")
4450
- y = b(this.bottom), S = this.bottom - u, C = y - g, A = b(t.top) + g, E = t.bottom;
4450
+ y = b(this.bottom), S = this.bottom - u, C = y - p, A = b(t.top) + p, E = t.bottom;
4451
4451
  else if (a === "bottom")
4452
- y = b(this.top), A = t.top, E = b(t.bottom) - g, S = y + g, C = this.top + u;
4452
+ y = b(this.top), A = t.top, E = b(t.bottom) - p, S = y + p, C = this.top + u;
4453
4453
  else if (a === "left")
4454
- y = b(this.right), w = this.right - u, M = y - g, P = b(t.left) + g, D = t.right;
4454
+ y = b(this.right), w = this.right - u, M = y - p, P = b(t.left) + p, D = t.right;
4455
4455
  else if (a === "right")
4456
- y = b(this.left), P = t.left, D = b(t.right) - g, w = y + g, M = this.left + u;
4456
+ y = b(this.left), P = t.left, D = b(t.right) - p, w = y + p, M = this.left + u;
4457
4457
  else if (e === "x") {
4458
4458
  if (a === "center")
4459
4459
  y = b((t.top + t.bottom) / 2 + 0.5);
@@ -4461,7 +4461,7 @@ class jt extends rt {
4461
4461
  const R = Object.keys(a)[0], $ = a[R];
4462
4462
  y = b(this.chart.scales[R].getPixelForValue($));
4463
4463
  }
4464
- A = t.top, E = t.bottom, S = y + g, C = S + u;
4464
+ A = t.top, E = t.bottom, S = y + p, C = S + u;
4465
4465
  } else if (e === "y") {
4466
4466
  if (a === "center")
4467
4467
  y = b((t.left + t.right) / 2);
@@ -4469,7 +4469,7 @@ class jt extends rt {
4469
4469
  const R = Object.keys(a)[0], $ = a[R];
4470
4470
  y = b(this.chart.scales[R].getPixelForValue($));
4471
4471
  }
4472
- w = y - g, M = w - u, P = t.left, D = t.right;
4472
+ w = y - p, M = w - u, P = t.left, D = t.right;
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) {
@@ -4496,7 +4496,7 @@ class jt extends rt {
4496
4496
  return this._ticksLength = d, this._borderValue = y, f;
4497
4497
  }
4498
4498
  _computeLabelItems(t) {
4499
- const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = ce(n.grid), f = u + h, m = d ? -h : f, p = -ht(this.labelRotation), g = [];
4499
+ const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = ce(n.grid), f = u + h, m = d ? -h : f, g = -ht(this.labelRotation), p = [];
4500
4500
  let b, y, x, v, _, w, S, M, C, P, A, D, E = "middle";
4501
4501
  if (s === "top")
4502
4502
  w = this.bottom - m, S = this._getXAxisLabelAlignment();
@@ -4533,7 +4533,7 @@ class jt extends rt {
4533
4533
  M = this.getPixelForTick(b) + o.labelOffset, C = this._resolveTickFontOptions(b), P = C.lineHeight, A = W(v) ? v.length : 1;
4534
4534
  const R = A / 2, $ = O.color, at = O.textStrokeColor, q = O.textStrokeWidth;
4535
4535
  let $t = S;
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);
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" || g !== 0 ? D = -A * P + P / 2 : c === "center" ? D = -G.highest.height / 2 - R * P + P : D = -G.highest.height + P / 2 : c === "near" || g !== 0 ? D = P / 2 : c === "center" ? D = G.highest.height / 2 - R * P : D = G.highest.height - A * P, d && (D *= -1), g !== 0 && !O.showLabelBackdrop && (_ += P / 2 * Math.sin(g))) : (w = M, D = (1 - A) * P / 2);
4537
4537
  let Ue;
4538
4538
  if (O.showLabelBackdrop) {
4539
4539
  const Ut = Q(O.backdropPadding), ie = G.heights[b], ne = G.widths[b];
@@ -4562,12 +4562,12 @@ class jt extends rt {
4562
4562
  color: O.backdropColor
4563
4563
  };
4564
4564
  }
4565
- g.push({
4565
+ p.push({
4566
4566
  label: v,
4567
4567
  font: C,
4568
4568
  textOffset: D,
4569
4569
  options: {
4570
- rotation: p,
4570
+ rotation: g,
4571
4571
  color: $,
4572
4572
  strokeColor: at,
4573
4573
  strokeWidth: q,
@@ -4581,7 +4581,7 @@ class jt extends rt {
4581
4581
  }
4582
4582
  });
4583
4583
  }
4584
- return g;
4584
+ return p;
4585
4585
  }
4586
4586
  _getXAxisLabelAlignment() {
4587
4587
  const { position: t, ticks: e } = this.options;
@@ -5785,7 +5785,7 @@ function yi(i, t, e, n, s, o) {
5785
5785
  const O = h > 0 ? h - n : 0, R = d > 0 ? d - n : 0, $ = (O + R) / 2, at = $ !== 0 ? m * $ / ($ + n) : m;
5786
5786
  f = (m - at) / 2;
5787
5787
  }
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;
5788
+ const g = Math.max(1e-3, m * d - e / N) / d, p = (m - g) / 2, b = l + p + f, y = s - p - 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) {
@@ -5835,7 +5835,7 @@ function Nc(i, t, e, n, s) {
5835
5835
  let m = t.endAngle;
5836
5836
  if (o) {
5837
5837
  yi(i, t, e, n, m, s);
5838
- for (let p = 0; p < o; ++p)
5838
+ for (let g = 0; g < o; ++g)
5839
5839
  i.stroke();
5840
5840
  isNaN(r) || (m = a + (r % H || H));
5841
5841
  }
@@ -5866,8 +5866,8 @@ class ge extends rt {
5866
5866
  "innerRadius",
5867
5867
  "outerRadius",
5868
5868
  "circumference"
5869
- ], s), f = (this.options.spacing + this.options.borderWidth) / 2, p = L(u, c - l) >= H || Ce(a, l, c), g = xt(r, h + f, d + f);
5870
- return p && g;
5869
+ ], s), f = (this.options.spacing + this.options.borderWidth) / 2, g = L(u, c - l) >= H || Ce(a, l, c), p = xt(r, h + f, d + f);
5870
+ return g && p;
5871
5871
  }
5872
5872
  getCenterPoint(e) {
5873
5873
  const { x: n, y: s, startAngle: o, endAngle: a, innerRadius: r, outerRadius: l } = this.getProps([
@@ -5935,22 +5935,22 @@ function $o(i, t, e = {}) {
5935
5935
  }
5936
5936
  function $c(i, t, e, n) {
5937
5937
  const { points: s, options: o } = t, { count: a, start: r, loop: l, ilen: c } = $o(s, e, n), h = jc(o);
5938
- let { move: d = !0, reverse: u } = n || {}, f, m, p;
5938
+ let { move: d = !0, reverse: u } = n || {}, f, m, g;
5939
5939
  for (f = 0; f <= c; ++f)
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
- return l && (m = s[(r + (u ? c : 0)) % a], h(i, p, m, u, o.stepped)), !!l;
5940
+ m = s[(r + (u ? c - f : f)) % a], !m.skip && (d ? (i.moveTo(m.x, m.y), d = !1) : h(i, g, m, u, o.stepped), g = m);
5941
+ return l && (m = s[(r + (u ? c : 0)) % a], h(i, g, m, u, o.stepped)), !!l;
5942
5942
  }
5943
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
- let h = 0, d = 0, u, f, m, p, g, b;
5945
+ let h = 0, d = 0, u, f, m, g, p, b;
5946
5946
  const y = (v) => (a + (c ? r - v : v)) % o, x = () => {
5947
- p !== g && (i.lineTo(h, g), i.lineTo(h, p), i.lineTo(h, b));
5947
+ g !== p && (i.lineTo(h, p), i.lineTo(h, g), i.lineTo(h, b));
5948
5948
  };
5949
5949
  for (l && (f = s[y(0)], i.moveTo(f.x, f.y)), u = 0; u <= r; ++u) {
5950
5950
  if (f = s[y(u)], f.skip)
5951
5951
  continue;
5952
5952
  const v = f.x, _ = f.y, w = v | 0;
5953
- w === m ? (_ < p ? p = _ : _ > g && (g = _), h = (d * h + v) / ++d) : (x(), i.lineTo(v, _), m = w, d = 0, p = g = _), b = _;
5953
+ w === m ? (_ < g ? g = _ : _ > p && (p = _), h = (d * h + v) / ++d) : (x(), i.lineTo(v, _), m = w, d = 0, g = p = _), b = _;
5954
5954
  }
5955
5955
  x();
5956
5956
  }
@@ -6021,8 +6021,8 @@ class dt extends rt {
6021
6021
  r.push(f);
6022
6022
  continue;
6023
6023
  }
6024
- const p = Math.abs((s - f[e]) / (m[e] - f[e])), g = l(f, m, p, n.stepped);
6025
- g[e] = t[e], r.push(g);
6024
+ const g = Math.abs((s - f[e]) / (m[e] - f[e])), p = l(f, m, g, n.stepped);
6025
+ p[e] = t[e], r.push(p);
6026
6026
  }
6027
6027
  return r.length === 1 ? r[0] : r;
6028
6028
  }
@@ -6279,9 +6279,9 @@ function ih(i, t, e) {
6279
6279
  const d = Lo(t, h);
6280
6280
  for (const u of d) {
6281
6281
  const f = en(e, o[u.start], o[u.end], u.loop), m = Do(r, s, f);
6282
- for (const p of m)
6282
+ for (const g of m)
6283
6283
  a.push({
6284
- source: p,
6284
+ source: g,
6285
6285
  target: u,
6286
6286
  start: {
6287
6287
  [e]: Cs(h, f, "start", Math.max)
@@ -6564,16 +6564,16 @@ function Ds(i, t) {
6564
6564
  const { style: { backgroundColor: u = o } = {} } = l, f = n !== !0;
6565
6565
  i.save(), i.fillStyle = u, _h(i, a, f && en(s, h, d)), i.beginPath();
6566
6566
  const m = !!e.pathSegment(i, l);
6567
- let p;
6567
+ let g;
6568
6568
  if (f) {
6569
6569
  m ? i.closePath() : Ls(i, n, d, s);
6570
- const g = !!n.pathSegment(i, c, {
6570
+ const p = !!n.pathSegment(i, c, {
6571
6571
  move: m,
6572
6572
  reverse: !0
6573
6573
  });
6574
- p = m && g, p || Ls(i, n, h, s);
6574
+ g = m && p, g || Ls(i, n, h, s);
6575
6575
  }
6576
- i.closePath(), i.fill(p ? "evenodd" : "nonzero"), i.restore();
6576
+ i.closePath(), i.fill(g ? "evenodd" : "nonzero"), i.restore();
6577
6577
  }
6578
6578
  }
6579
6579
  function _h(i, t, e) {
@@ -6669,29 +6669,29 @@ class Os extends rt {
6669
6669
  let d = t;
6670
6670
  o.textAlign = "left", o.textBaseline = "middle";
6671
6671
  let u = -1, f = -h;
6672
- return this.legendItems.forEach((m, p) => {
6673
- const g = n + e / 2 + o.measureText(m.text).width;
6674
- (p === 0 || c[c.length - 1] + g + 2 * r > a) && (d += h, c[c.length - (p > 0 ? 0 : 1)] = 0, f += h, u++), l[p] = {
6672
+ return this.legendItems.forEach((m, g) => {
6673
+ const p = n + e / 2 + o.measureText(m.text).width;
6674
+ (g === 0 || c[c.length - 1] + p + 2 * r > a) && (d += h, c[c.length - (g > 0 ? 0 : 1)] = 0, f += h, u++), l[g] = {
6675
6675
  left: 0,
6676
6676
  top: f,
6677
6677
  row: u,
6678
- width: g,
6678
+ width: p,
6679
6679
  height: s
6680
- }, c[c.length - 1] += g + r;
6680
+ }, c[c.length - 1] += p + r;
6681
6681
  }), d;
6682
6682
  }
6683
6683
  _fitCols(t, e, n, s) {
6684
6684
  const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], h = a - t;
6685
- let d = r, u = 0, f = 0, m = 0, p = 0;
6686
- return this.legendItems.forEach((g, b) => {
6687
- const { itemWidth: y, itemHeight: x } = wh(n, e, o, g, s);
6685
+ let d = r, u = 0, f = 0, m = 0, g = 0;
6686
+ return this.legendItems.forEach((p, b) => {
6687
+ const { itemWidth: y, itemHeight: x } = wh(n, e, o, p, s);
6688
6688
  b > 0 && f + x + 2 * r > h && (d += u + r, c.push({
6689
6689
  width: u,
6690
6690
  height: f
6691
- }), m += u + r, p++, u = f = 0), l[b] = {
6691
+ }), m += u + r, g++, u = f = 0), l[b] = {
6692
6692
  left: m,
6693
6693
  top: f,
6694
- col: p,
6694
+ col: g,
6695
6695
  width: y,
6696
6696
  height: x
6697
6697
  }, u = Math.max(u, y), f += x + r;
@@ -6727,32 +6727,32 @@ class Os extends rt {
6727
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
- const { boxWidth: m, boxHeight: p, itemHeight: g } = Ts(a, d), b = function(w, S, M) {
6731
- if (isNaN(m) || m <= 0 || isNaN(p) || p < 0)
6730
+ const { boxWidth: m, boxHeight: g, itemHeight: p } = Ts(a, d), b = function(w, S, M) {
6731
+ if (isNaN(m) || m <= 0 || isNaN(g) || g < 0)
6732
6732
  return;
6733
6733
  s.save();
6734
6734
  const C = L(M.lineWidth, 1);
6735
6735
  if (s.fillStyle = L(M.fillStyle, r), s.lineCap = L(M.lineCap, "butt"), s.lineDashOffset = L(M.lineDashOffset, 0), s.lineJoin = L(M.lineJoin, "miter"), s.lineWidth = C, s.strokeStyle = L(M.strokeStyle, r), s.setLineDash(L(M.lineDash, [])), a.usePointStyle) {
6736
6736
  const P = {
6737
- radius: p * Math.SQRT2 / 2,
6737
+ radius: g * Math.SQRT2 / 2,
6738
6738
  pointStyle: M.pointStyle,
6739
6739
  rotation: M.rotation,
6740
6740
  borderWidth: C
6741
6741
  }, A = l.xPlus(w, m / 2), D = S + u;
6742
6742
  yo(s, P, A, D, a.pointStyleWidth && m);
6743
6743
  } else {
6744
- const P = S + Math.max((d - p) / 2, 0), A = l.leftForLtr(w, m), D = zt(M.borderRadius);
6744
+ const P = S + Math.max((d - g) / 2, 0), A = l.leftForLtr(w, m), D = zt(M.borderRadius);
6745
6745
  s.beginPath(), Object.values(D).some((E) => E !== 0) ? Pe(s, {
6746
6746
  x: A,
6747
6747
  y: P,
6748
6748
  w: m,
6749
- h: p,
6749
+ h: g,
6750
6750
  radius: D
6751
- }) : s.rect(A, P, m, p), s.fill(), C !== 0 && s.stroke();
6751
+ }) : s.rect(A, P, m, g), s.fill(), C !== 0 && s.stroke();
6752
6752
  }
6753
6753
  s.restore();
6754
6754
  }, y = function(w, S, M) {
6755
- Nt(s, M.text, w, S + g / 2, c, {
6755
+ Nt(s, M.text, w, S + p / 2, c, {
6756
6756
  strikethrough: M.hidden,
6757
6757
  textAlign: l.textAlign(M.textAlign)
6758
6758
  });
@@ -6766,7 +6766,7 @@ class Os extends rt {
6766
6766
  y: K(o, this.top + v + h, this.bottom - e[0].height),
6767
6767
  line: 0
6768
6768
  }, Co(this.ctx, t.textDirection);
6769
- const _ = g + h;
6769
+ const _ = p + h;
6770
6770
  this.legendItems.forEach((w, S) => {
6771
6771
  s.strokeStyle = w.fontColor, s.fillStyle = w.fontColor;
6772
6772
  const M = s.measureText(w.text).width, C = l.textAlign(w.textAlign || (w.textAlign = a.textAlign)), P = m + u + M;
@@ -6791,7 +6791,7 @@ class Os extends rt {
6791
6791
  if (this.isHorizontal())
6792
6792
  u = Math.max(...this.lineWidths), h = this.top + c, d = K(t.align, d, this.right - u);
6793
6793
  else {
6794
- const m = this.columnSizes.reduce((p, g) => Math.max(p, g.height), 0);
6794
+ const m = this.columnSizes.reduce((g, p) => Math.max(g, p.height), 0);
6795
6795
  h = c + K(t.align, this.top, this.bottom - m - t.labels.padding - this._computeTitleHeight());
6796
6796
  }
6797
6797
  const f = K(r, d, d + u);
@@ -7092,21 +7092,21 @@ function Ah(i, t) {
7092
7092
  }
7093
7093
  function Is(i, t) {
7094
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
- let p = m.height, g = 0, b = n.reduce((v, _) => v + _.before.length + _.lines.length + _.after.length, 0);
7096
- if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
7095
+ let g = m.height, p = 0, b = n.reduce((v, _) => v + _.before.length + _.lines.length + _.after.length, 0);
7096
+ if (b += i.beforeBody.length + i.afterBody.length, d && (g += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
7097
7097
  const v = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
7098
- p += f * v + (b - f) * l.lineHeight + (b - 1) * t.bodySpacing;
7098
+ g += f * v + (b - f) * l.lineHeight + (b - 1) * t.bodySpacing;
7099
7099
  }
7100
- u && (p += t.footerMarginTop + u * h.lineHeight + (u - 1) * t.footerSpacing);
7100
+ u && (g += t.footerMarginTop + u * h.lineHeight + (u - 1) * t.footerSpacing);
7101
7101
  let y = 0;
7102
7102
  const x = function(v) {
7103
- g = Math.max(g, e.measureText(v).width + y);
7103
+ p = Math.max(p, e.measureText(v).width + y);
7104
7104
  };
7105
7105
  return e.save(), e.font = c.string, I(i.title, x), e.font = l.string, I(i.beforeBody.concat(i.afterBody), x), y = t.displayColors ? a + 2 + t.boxPadding : 0, I(n, (v) => {
7106
7106
  I(v.before, x), I(v.lines, x), I(v.after, x);
7107
- }), y = 0, e.font = h.string, I(i.footer, x), e.restore(), g += m.width, {
7108
- width: g,
7109
- height: p
7107
+ }), y = 0, e.font = h.string, I(i.footer, x), e.restore(), p += m.width, {
7108
+ width: p,
7109
+ height: g
7110
7110
  };
7111
7111
  }
7112
7112
  function Dh(i, t) {
@@ -7141,10 +7141,10 @@ function Ih(i, t, e) {
7141
7141
  function Rs(i, t, e, n) {
7142
7142
  const { caretSize: s, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = s + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = zt(a);
7143
7143
  let m = Oh(t, r);
7144
- const p = Ih(t, l, c);
7144
+ const g = Ih(t, l, c);
7145
7145
  return l === "center" ? r === "left" ? m += c : r === "right" && (m -= c) : r === "left" ? m -= Math.max(h, u) + s : r === "right" && (m += Math.max(d, f) + s), {
7146
7146
  x: Z(m, 0, n.width - t.width),
7147
- y: Z(p, 0, n.height - t.height)
7147
+ y: Z(g, 0, n.height - t.height)
7148
7148
  };
7149
7149
  }
7150
7150
  function si(i, t, e) {
@@ -7307,10 +7307,10 @@ class nn extends rt {
7307
7307
  e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
7308
7308
  }
7309
7309
  getCaretPosition(t, e, n) {
7310
- const { xAlign: s, yAlign: o } = this, { caretSize: a, cornerRadius: r } = n, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = zt(r), { x: u, y: f } = t, { width: m, height: p } = e;
7311
- let g, b, y, x, v, _;
7312
- return o === "center" ? (v = f + p / 2, s === "left" ? (g = u, b = g - a, x = v + a, _ = v - a) : (g = u + m, b = g + a, x = v - a, _ = v + a), y = g) : (s === "left" ? b = u + Math.max(l, h) + a : s === "right" ? b = u + m - Math.max(c, d) - a : b = this.caretX, o === "top" ? (x = f, v = x - a, g = b - a, y = b + a) : (x = f + p, v = x + a, g = b + a, y = b - a), _ = x), {
7313
- x1: g,
7310
+ const { xAlign: s, yAlign: o } = this, { caretSize: a, cornerRadius: r } = n, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = zt(r), { x: u, y: f } = t, { width: m, height: g } = e;
7311
+ let p, b, y, x, v, _;
7312
+ return o === "center" ? (v = f + g / 2, s === "left" ? (p = u, b = p - a, x = v + a, _ = v - a) : (p = u + m, b = p + a, x = v - a, _ = v + a), y = p) : (s === "left" ? b = u + Math.max(l, h) + a : s === "right" ? b = u + m - Math.max(c, d) - a : b = this.caretX, o === "top" ? (x = f, v = x - a, p = b - a, y = b + a) : (x = f + g, v = x + a, p = b + a, y = b - a), _ = x), {
7313
+ x1: p,
7314
7314
  x2: b,
7315
7315
  x3: y,
7316
7316
  y1: x,
@@ -7330,45 +7330,45 @@ class nn extends rt {
7330
7330
  _drawColorBox(t, e, n, s, o) {
7331
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
- const p = {
7333
+ const g = {
7334
7334
  radius: Math.min(c, l) / 2,
7335
7335
  pointStyle: r.pointStyle,
7336
7336
  rotation: r.rotation,
7337
7337
  borderWidth: 1
7338
- }, g = s.leftForLtr(u, c) + c / 2, b = m + l / 2;
7339
- t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Zi(t, p, g, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Zi(t, p, g, b);
7338
+ }, p = s.leftForLtr(u, c) + c / 2, b = m + l / 2;
7339
+ t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Zi(t, g, p, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Zi(t, g, p, b);
7340
7340
  } else {
7341
7341
  t.lineWidth = T(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
7342
- const p = s.leftForLtr(u, c), g = s.leftForLtr(s.xPlus(u, 1), c - 2), b = zt(a.borderRadius);
7342
+ const g = s.leftForLtr(u, c), p = s.leftForLtr(s.xPlus(u, 1), c - 2), b = zt(a.borderRadius);
7343
7343
  Object.values(b).some((y) => y !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Pe(t, {
7344
- x: p,
7344
+ x: g,
7345
7345
  y: m,
7346
7346
  w: c,
7347
7347
  h: l,
7348
7348
  radius: b
7349
7349
  }), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), Pe(t, {
7350
- x: g,
7350
+ x: p,
7351
7351
  y: m + 1,
7352
7352
  w: c - 2,
7353
7353
  h: l - 2,
7354
7354
  radius: b
7355
- }), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(p, m, c, l), t.strokeRect(p, m, c, l), t.fillStyle = a.backgroundColor, t.fillRect(g, m + 1, c - 2, l - 2));
7355
+ }), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(g, m, c, l), t.strokeRect(g, m, c, l), t.fillStyle = a.backgroundColor, t.fillRect(p, m + 1, c - 2, l - 2));
7356
7356
  }
7357
7357
  t.fillStyle = this.labelTextColors[n];
7358
7358
  }
7359
7359
  drawBody(t, e, n) {
7360
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
- const m = qt(n.rtl, this.x, this.width), p = function(M) {
7362
+ const m = qt(n.rtl, this.x, this.width), g = function(M) {
7363
7363
  e.fillText(M, m.x(t.x + f), t.y + u / 2), t.y += u + o;
7364
- }, g = m.textAlign(a);
7364
+ }, p = m.textAlign(a);
7365
7365
  let b, y, x, v, _, w, S;
7366
- for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = si(this, g, n), e.fillStyle = n.bodyColor, I(this.beforeBody, p), f = r && g !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = s.length; v < w; ++v) {
7367
- for (b = s[v], y = this.labelTextColors[v], e.fillStyle = y, I(b.before, p), x = b.lines, r && x.length && (this._drawColorBox(e, t, v, m, n), u = Math.max(d.lineHeight, l)), _ = 0, S = x.length; _ < S; ++_)
7368
- p(x[_]), u = d.lineHeight;
7369
- I(b.after, p);
7366
+ for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = si(this, p, n), e.fillStyle = n.bodyColor, I(this.beforeBody, g), f = r && p !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = s.length; v < w; ++v) {
7367
+ for (b = s[v], y = this.labelTextColors[v], e.fillStyle = y, I(b.before, g), x = b.lines, r && x.length && (this._drawColorBox(e, t, v, m, n), u = Math.max(d.lineHeight, l)), _ = 0, S = x.length; _ < S; ++_)
7368
+ g(x[_]), u = d.lineHeight;
7369
+ I(b.after, g);
7370
7370
  }
7371
- f = 0, u = d.lineHeight, I(this.afterBody, p), t.y -= o;
7371
+ f = 0, u = d.lineHeight, I(this.afterBody, g), t.y -= o;
7372
7372
  }
7373
7373
  drawFooter(t, e, n) {
7374
7374
  const s = this.footer, o = s.length;
@@ -7647,18 +7647,18 @@ k(De, "id", "category"), k(De, "defaults", {
7647
7647
  }
7648
7648
  });
7649
7649
  function zh(i, t) {
7650
- const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, m = h - 1, { min: p, max: g } = t, b = !F(a), y = !F(r), x = !F(c), v = (g - p) / (d + 1);
7651
- let _ = Rn((g - p) / m / f) * f, w, S, M, C;
7650
+ const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, m = h - 1, { min: g, max: p } = t, b = !F(a), y = !F(r), x = !F(c), v = (p - g) / (d + 1);
7651
+ let _ = Rn((p - g) / m / f) * f, w, S, M, C;
7652
7652
  if (_ < 1e-14 && !b && !y)
7653
7653
  return [
7654
7654
  {
7655
- value: p
7655
+ value: g
7656
7656
  },
7657
7657
  {
7658
- value: g
7658
+ value: p
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 && 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));
7661
+ C = Math.ceil(p / _) - Math.floor(g / _), C > m && (_ = Rn(C * _ / m / f) * f), F(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), s === "ticks" ? (S = Math.floor(g / _) * _, M = Math.ceil(p / _) * _) : (S = g, M = p), 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;
@@ -7895,8 +7895,8 @@ function Vh(i) {
7895
7895
  s[l] = c.padding;
7896
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
- 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
- jh(e, t, f, p, g);
7898
+ const f = it(i.getIndexAngle(l) + r), m = Math.round(gn(f)), g = js(m, h.x, u.w, 0, 180), p = js(m, h.y, u.h, 90, 270);
7899
+ jh(e, t, f, g, p);
7900
7900
  }
7901
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
  }
@@ -8351,7 +8351,7 @@ class _i extends jt {
8351
8351
  const m = s.ticks.source === "data" && this.getDataTimestamps();
8352
8352
  for (u = d, f = 0; u < n; u = +t.add(u, r, a), f++)
8353
8353
  Xs(h, u, m);
8354
- return (u === n || s.bounds === "ticks" || f === 1) && Xs(h, u, m), Object.keys(h).sort($s).map((p) => +p);
8354
+ return (u === n || s.bounds === "ticks" || f === 1) && Xs(h, u, m), Object.keys(h).sort($s).map((g) => +g);
8355
8355
  }
8356
8356
  getLabelForValue(t) {
8357
8357
  const e = this._adapter, n = this.options.time;
@@ -8597,16 +8597,16 @@ const ld = Vt({
8597
8597
  const m = Xi(s.value);
8598
8598
  if (!m)
8599
8599
  return;
8600
- let p = !1;
8600
+ let g = !1;
8601
8601
  if (h) {
8602
- const g = Gt(h), b = Gt(u);
8603
- g && g !== b && (ad(m, g), p = !0);
8602
+ const p = Gt(h), b = Gt(u);
8603
+ p && p !== b && (ad(m, p), g = !0);
8604
8604
  }
8605
8605
  if (d) {
8606
- const g = Gt(d.labels), b = Gt(f.labels), y = Gt(d.datasets), x = Gt(f.datasets);
8607
- g !== b && (Jo(m.config.data, g), p = !0), y && y !== x && (ta(m.config.data, y, i.datasetIdKey), p = !0);
8606
+ const p = Gt(d.labels), b = Gt(f.labels), y = Gt(d.datasets), x = Gt(f.datasets);
8607
+ p !== b && (Jo(m.config.data, p), g = !0), y && y !== x && (ta(m.config.data, y, i.datasetIdKey), g = !0);
8608
8608
  }
8609
- p && r(m);
8609
+ g && r(m);
8610
8610
  }, {
8611
8611
  deep: !0
8612
8612
  }), () => io("canvas", {
@@ -8669,15 +8669,15 @@ function na(i, t, e, n, s, o, a, r) {
8669
8669
  for (d.style.margin = "1.375rem 1.0625rem"; d.firstChild; )
8670
8670
  d.firstChild.remove();
8671
8671
  l.options.plugins.legend.labels.generateLabels(l).forEach((f) => {
8672
- const m = l.config.type === "doughnut", p = m ? f.index : f.datasetIndex, g = Ti(l, t, p);
8672
+ const m = l.config.type === "doughnut", g = m ? f.index : f.datasetIndex, p = Ti(l, t, g);
8673
8673
  if (m) {
8674
- const y = p + 1 === a;
8675
- g.style.marginTop = "12px", y && (g.style.position = "relative");
8674
+ const y = g + 1 === a;
8675
+ p.style.marginTop = "12px", y && (p.style.position = "relative");
8676
8676
  } else
8677
- g.style.marginRight = "10px";
8678
- g.style.width = "max-content", g.style.cursor = "pointer";
8677
+ p.style.marginRight = "10px";
8678
+ p.style.width = "max-content", p.style.cursor = "pointer";
8679
8679
  let b;
8680
- t.value ? b = oa(l, f, t, e, n.value) : b = sa(f, l, e, n.value, s.value, o.value), b.style.boxSizing = "border-box", g.appendChild(b), g.appendChild(Li(f)), m && a && bd(r, a, p) && g.appendChild(yd(r, a)), d.appendChild(g);
8680
+ t.value ? b = oa(l, f, t, e, n.value) : b = sa(f, l, e, n.value, s.value, o.value), b.style.boxSizing = "border-box", p.appendChild(b), p.appendChild(Li(f)), m && a && bd(r, a, g) && p.appendChild(yd(r, a)), d.appendChild(p);
8681
8681
  });
8682
8682
  }
8683
8683
  }];
@@ -8804,15 +8804,15 @@ function kd() {
8804
8804
  dataSetIndex: -1,
8805
8805
  columnIndex: -1
8806
8806
  });
8807
- function n(p, g, b, y, x) {
8808
- return na(p, g, e, b, y, x);
8807
+ function n(g, p, b, y, x) {
8808
+ return na(g, p, e, b, y, x);
8809
8809
  }
8810
8810
  function s() {
8811
8811
  i.value = 4, i.value = 3;
8812
8812
  }
8813
- function o(p, g, b, y, x, v) {
8813
+ function o(g, p, b, y, x, v) {
8814
8814
  const _ = i.value;
8815
- return p.map((w, S) => ({
8815
+ return g.map((w, S) => ({
8816
8816
  borderColor: function(M) {
8817
8817
  return b ? "#00000000" : r(S, M.index, y, v);
8818
8818
  },
@@ -8824,38 +8824,38 @@ function kd() {
8824
8824
  },
8825
8825
  data: w.data,
8826
8826
  label: w.label,
8827
- stack: `Stack ${g ? "0" : S}`
8827
+ stack: `Stack ${p ? "0" : S}`
8828
8828
  }));
8829
8829
  }
8830
- function a(p, g, b, y, x) {
8831
- return o([p, g], !1, x, b, y);
8830
+ function a(g, p, b, y, x) {
8831
+ return o([g, p], !1, x, b, y);
8832
8832
  }
8833
- function r(p, g, b, y) {
8834
- const x = Yi(p, y);
8835
- return u(p, g) ? b[x] : Oe(b[x], 0.2);
8833
+ function r(g, p, b, y) {
8834
+ const x = Yi(g, y);
8835
+ return u(g, p) ? b[x] : Oe(b[x], 0.2);
8836
8836
  }
8837
- function l(p, g, b, y, x, v) {
8838
- const _ = Yi(p, v);
8839
- return u(p, g) ? x[_](!1, y[_], b) : x[_](!0, y[_], b);
8837
+ function l(g, p, b, y, x, v) {
8838
+ const _ = Yi(g, v);
8839
+ return u(g, p) ? x[_](!1, y[_], b) : x[_](!0, y[_], b);
8840
8840
  }
8841
8841
  function c() {
8842
8842
  return e.dataSetIndex < 0;
8843
8843
  }
8844
- function h(p, g) {
8845
- return e.dataSetIndex === p && e.columnIndex === g;
8844
+ function h(g, p) {
8845
+ return e.dataSetIndex === g && e.columnIndex === p;
8846
8846
  }
8847
- function d(p) {
8848
- return e.dataSetIndex === p && e.columnIndex < 0;
8847
+ function d(g) {
8848
+ return e.dataSetIndex === g && e.columnIndex < 0;
8849
8849
  }
8850
- function u(p, g) {
8851
- return c() || h(p, g) || d(p);
8850
+ function u(g, p) {
8851
+ return c() || h(g, p) || d(g);
8852
8852
  }
8853
8853
  function f() {
8854
8854
  e.dataSetIndex = -1, e.columnIndex = -1;
8855
8855
  }
8856
8856
  function m() {
8857
- return (p, g) => {
8858
- g[0] !== void 0 ? (e.dataSetIndex = g[0].datasetIndex, e.columnIndex = g[0].index) : f();
8857
+ return (g, p) => {
8858
+ p[0] !== void 0 ? (e.dataSetIndex = p[0].datasetIndex, e.columnIndex = p[0].index) : f();
8859
8859
  };
8860
8860
  }
8861
8861
  return {
@@ -8901,14 +8901,14 @@ class Ve {
8901
8901
  const f = l.body.map(this.getBody);
8902
8902
  let m = "background: white;";
8903
8903
  m += "border-bottom: 1px solid #CCCCCC;", m += "border-radius: 5px;", m += "padding: 10px 20px";
8904
- const p = `<div style="${m}" class="tooltipTitle">`, g = this.chartType === "DOUGHNUT" ? [l.title[0].split("(")[0].trim()] : f[0];
8904
+ const g = `<div style="${m}" class="tooltipTitle">`, p = this.chartType === "DOUGHNUT" ? [l.title[0].split("(")[0].trim()] : f[0];
8905
8905
  let b = "", y = "";
8906
8906
  const x = (u = (d = (h = t.tooltip) == null ? void 0 : h.dataPoints[0]) == null ? void 0 : d.dataset) == null ? void 0 : u.type;
8907
8907
  this.chartType === "RADAR" || this.chartType === "LINE_CHART" ? (b = this.createLegendStyle(t), y = this.createLegendInnerStyle(t)) : this.chartType === "BAR_CHART" || this.chartType === "DETAILS_BAR_CHART" || this.chartType === "DOUGHNUT" ? b = this.createPatternLegendStyle(t) : this.chartType === "MIXED_BAR_LINE_CHART" && (x === "bar" ? b = this.createPatternLegendStyle(t) : (b = this.createLegendStyle(t), y = this.createLegendInnerStyle(t))), this.addLegendToDom(
8908
- p,
8908
+ g,
8909
8909
  b,
8910
8910
  y,
8911
- g,
8911
+ p,
8912
8912
  m,
8913
8913
  r,
8914
8914
  s,
@@ -8948,8 +8948,8 @@ class Ve {
8948
8948
  u += `${f}</div>`;
8949
8949
  const m = this.setInnerHtmlToAdd(s, o, u);
8950
8950
  d += m;
8951
- const p = a == null ? void 0 : a.querySelector(".tooltipCtn");
8952
- (p == null ? void 0 : p.innerHTML) != null && (h ? this.setInnerHtmlAndPattern(p, d, r, l, c, h) : this.setInnerHtmlAndPattern(p, d, r, l, c));
8951
+ const g = a == null ? void 0 : a.querySelector(".tooltipCtn");
8952
+ (g == null ? void 0 : g.innerHTML) != null && (h ? this.setInnerHtmlAndPattern(g, d, r, l, c, h) : this.setInnerHtmlAndPattern(g, d, r, l, c));
8953
8953
  }
8954
8954
  setInnerHtmlToAdd(t, e, n) {
8955
8955
  const a = `<span style="font-family: Arial; font-size: 16px">${t[0].split(":")[0]}</span>`;
@@ -9236,7 +9236,7 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9236
9236
  getOnHoverOptions: u,
9237
9237
  getStackedDatasets: f,
9238
9238
  privateGetHtmlLegendPlugin: m
9239
- } = kd(), p = z(() => {
9239
+ } = kd(), g = z(() => {
9240
9240
  const C = w(x.value);
9241
9241
  return y(), {
9242
9242
  labels: C,
@@ -9253,9 +9253,9 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9253
9253
  )
9254
9254
  };
9255
9255
  });
9256
- let g, b;
9256
+ let p, b;
9257
9257
  const y = () => {
9258
- g = t.tooltipFirstLineLabel, b = t.tooltipSecondLineLabel;
9258
+ p = t.tooltipFirstLineLabel, b = t.tooltipSecondLineLabel;
9259
9259
  }, x = z(() => {
9260
9260
  const C = t.labels;
9261
9261
  if (C.includes("other")) {
@@ -9301,7 +9301,7 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9301
9301
  _,
9302
9302
  {
9303
9303
  chartType: ee.BAR_CHART,
9304
- firstLineLabel: g,
9304
+ firstLineLabel: p,
9305
9305
  secondLineLabel: b
9306
9306
  },
9307
9307
  a.value,
@@ -9341,12 +9341,12 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9341
9341
  { deep: !0 }
9342
9342
  ), (C, P) => (ft(), Ie("div", Od, [
9343
9343
  gt("div", Id, [
9344
- p.value ? (ft(), Fe(Zt(ea), {
9344
+ g.value ? (ft(), Fe(Zt(ea), {
9345
9345
  key: 0,
9346
9346
  ref_key: "barChartRef",
9347
9347
  ref: h,
9348
9348
  id: i.chartId,
9349
- data: p.value,
9349
+ data: g.value,
9350
9350
  options: S.value,
9351
9351
  plugins: M.value,
9352
9352
  class: Re(i.cssClasses),
@@ -9371,7 +9371,7 @@ an.install = (i) => {
9371
9371
  };
9372
9372
  function Rd() {
9373
9373
  const i = X(null), t = X(null), e = X(null);
9374
- function n(h, d, u, f, m, p, g) {
9374
+ function n(h, d, u, f, m, g, p) {
9375
9375
  return na(
9376
9376
  h,
9377
9377
  d,
@@ -9379,8 +9379,8 @@ function Rd() {
9379
9379
  u,
9380
9380
  f,
9381
9381
  m,
9382
- p,
9383
- g
9382
+ g,
9383
+ p
9384
9384
  );
9385
9385
  }
9386
9386
  function s(h, d, u) {
@@ -9402,10 +9402,10 @@ function Rd() {
9402
9402
  }
9403
9403
  const r = (h) => h.charAt(0).toUpperCase() + h.slice(1).toLowerCase();
9404
9404
  function l(h, d, u, f) {
9405
- let m = h.slice(0), p = d.slice(0);
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)} (${ot(
9408
- p[b].rate
9405
+ let m = h.slice(0), g = d.slice(0);
9406
+ return h.length > u && (g = c(d, u), m = m.slice(0, u - 1), m.push(f)), m.map(
9407
+ (p, b) => `${r(p)} (${ot(
9408
+ g[b].rate
9409
9409
  )} %)`
9410
9410
  );
9411
9411
  }
@@ -9548,7 +9548,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9548
9548
  groupDataAfterNthValue: c,
9549
9549
  getDoughnutLabels: h,
9550
9550
  getBorderColor: d
9551
- } = Rd(), u = X(!1), f = X(null), m = z(() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((S) => e[t.colourSet][S])), p = z(() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((S) => n[S])), g = z(() => ({
9551
+ } = Rd(), u = X(!1), f = X(null), m = z(() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((S) => e[t.colourSet][S])), g = z(() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((S) => n[S])), p = z(() => ({
9552
9552
  labels: h(
9553
9553
  t.labels,
9554
9554
  t.data,
@@ -9563,7 +9563,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9563
9563
  ).map((S) => S.rate),
9564
9564
  backgroundColor: a(
9565
9565
  m.value,
9566
- p.value,
9566
+ g.value,
9567
9567
  t.disableAccessibility
9568
9568
  ),
9569
9569
  borderColor: d(m.value)
@@ -9580,7 +9580,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9580
9580
  return t.labels.length <= 1 ? 0 : 12;
9581
9581
  }
9582
9582
  const x = z(() => {
9583
- const S = m.value, M = p.value;
9583
+ const S = m.value, M = g.value;
9584
9584
  return {
9585
9585
  onHover: l(),
9586
9586
  plugins: {
@@ -9628,7 +9628,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9628
9628
  u,
9629
9629
  _,
9630
9630
  m,
9631
- p,
9631
+ g,
9632
9632
  t.maxValues,
9633
9633
  v
9634
9634
  )
@@ -9636,29 +9636,29 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9636
9636
  return eo(() => {
9637
9637
  a(
9638
9638
  m.value,
9639
- p.value,
9639
+ g.value,
9640
9640
  t.disableAccessibility
9641
9641
  );
9642
9642
  }), di(s, (S, M) => {
9643
9643
  S !== M && a(
9644
9644
  m.value,
9645
- p.value,
9645
+ g.value,
9646
9646
  t.disableAccessibility
9647
9647
  );
9648
9648
  }), di(_, () => {
9649
9649
  a(
9650
9650
  m.value,
9651
- p.value,
9651
+ g.value,
9652
9652
  t.disableAccessibility
9653
9653
  );
9654
9654
  }), (S, M) => (ft(), Ie("div", Ed, [
9655
9655
  gt("div", Bd, [
9656
- g.value ? (ft(), Fe(Zt(cd), {
9656
+ p.value ? (ft(), Fe(Zt(cd), {
9657
9657
  key: 0,
9658
9658
  ref_key: "doughnutRef",
9659
9659
  ref: o,
9660
9660
  id: i.chartId,
9661
- data: g.value,
9661
+ data: p.value,
9662
9662
  options: x.value,
9663
9663
  plugins: w.value,
9664
9664
  "max-values": i.maxValues,
@@ -9792,12 +9792,12 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9792
9792
  Le
9793
9793
  );
9794
9794
  const { colourSets: e, patternsStandardList: n } = je(), s = X(null), o = X(!1), a = z(
9795
- () => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((g) => e[t.colourSet][g])
9796
- ), r = t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((g) => n[g]), l = (g) => {
9797
- const b = g.tooltip.dataPoints[0].datasetIndex, y = g.tooltip.dataPoints[0].dataIndex, x = t.lines[b].data[y].toFixed(2);
9795
+ () => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((p) => e[t.colourSet][p])
9796
+ ), r = t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((p) => n[p]), l = (p) => {
9797
+ const b = p.tooltip.dataPoints[0].datasetIndex, y = p.tooltip.dataPoints[0].dataIndex, x = t.lines[b].data[y].toFixed(2);
9798
9798
  return t.lines[b].unit ? x + " " + t.lines[b].unit : x;
9799
9799
  }, c = z(() => t.tooltipFirstLineLabel), h = z(() => t.tooltipSecondLineLabel), d = z(() => ({
9800
- labels: t.labels.map((g) => g),
9800
+ labels: t.labels.map((p) => p),
9801
9801
  datasets: [
9802
9802
  {
9803
9803
  type: "line",
@@ -9821,12 +9821,12 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9821
9821
  }
9822
9822
  ]
9823
9823
  }));
9824
- function u(g, b) {
9824
+ function u(p, b) {
9825
9825
  return [
9826
9826
  {
9827
9827
  id: "htmlLegend",
9828
9828
  afterUpdate(y) {
9829
- const x = Ii(g, "column");
9829
+ const x = Ii(p, "column");
9830
9830
  for (x.style.display = "flex", x.style.flexDirection = "row", x.style.margin = "1.375rem 1.0625rem"; x.firstChild; )
9831
9831
  x.firstChild.remove();
9832
9832
  y.options.plugins.legend.labels.generateLabels(y).forEach((_) => {
@@ -9842,13 +9842,13 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9842
9842
  }
9843
9843
  ];
9844
9844
  }
9845
- function f(g, b) {
9846
- const y = Cn(g, b);
9845
+ function f(p, b) {
9846
+ const y = Cn(p, b);
9847
9847
  return y.onclick = (x) => {
9848
- Oi(g, b.datasetIndex, o), x.stopPropagation();
9848
+ Oi(p, b.datasetIndex, o), x.stopPropagation();
9849
9849
  }, y;
9850
9850
  }
9851
- const m = u(s, o), p = z(() => ({
9851
+ const m = u(s, o), g = z(() => ({
9852
9852
  responsive: !0,
9853
9853
  maintainAspectRatio: !1,
9854
9854
  plugins: {
@@ -9857,9 +9857,9 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9857
9857
  },
9858
9858
  tooltip: {
9859
9859
  enabled: !1,
9860
- external: function(g) {
9860
+ external: function(p) {
9861
9861
  new Ve().createTooltip(
9862
- g,
9862
+ p,
9863
9863
  l,
9864
9864
  {
9865
9865
  chartType: ee.LINE_CHART,
@@ -9885,22 +9885,22 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9885
9885
  drawOnChartArea: !0
9886
9886
  },
9887
9887
  ticks: {
9888
- callback: function(g) {
9888
+ callback: function(p) {
9889
9889
  const b = t.lines[0].unit;
9890
- return `${ot(g)} ${b || ""}`;
9890
+ return `${ot(p)} ${b || ""}`;
9891
9891
  }
9892
9892
  }
9893
9893
  }
9894
9894
  }
9895
9895
  }));
9896
- return (g, b) => (ft(), Ie("div", Wd, [
9896
+ return (p, b) => (ft(), Ie("div", Wd, [
9897
9897
  gt("div", Hd, [
9898
9898
  d.value ? (ft(), Fe(Zt(hd), {
9899
9899
  key: 0,
9900
9900
  ref: "lineChartRef",
9901
9901
  id: i.chartId,
9902
9902
  data: d.value,
9903
- options: p.value,
9903
+ options: g.value,
9904
9904
  plugins: Zt(m),
9905
9905
  class: Re(i.cssClasses),
9906
9906
  style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
@@ -9925,11 +9925,11 @@ function Vd(i, t) {
9925
9925
  let c = r <= Math.PI / 2 || r > 3 * Math.PI / 2 ? 15 : -15, h;
9926
9926
  r < 0 || r > Math.PI ? h = -15 : h = 15, r > Math.PI / 4 && r < 3 * Math.PI / 4 && (h *= 3), (r < -Math.PI / 4 || r > 5 * Math.PI / 4) && (h *= 3, c = 0), (r > 11 * Math.PI / 8 || r < -3 * Math.PI / 8) && (e.textAlign = "center");
9927
9927
  const d = l.y + h * (o.length - 1) / 2;
9928
- e.font = "15px Arial", o.forEach((u, f) => {
9928
+ e.font = "12px Arial", o.forEach((u, f) => {
9929
9929
  const m = f === o.length - 1 ? jd(t)[a] : "#000000";
9930
9930
  e.fillStyle = m;
9931
- const p = l.x + c, g = d + 15 * f;
9932
- e.fillText(u, p, g);
9931
+ const g = l.x + c, p = d + 15 * f;
9932
+ e.fillText(u, g, p);
9933
9933
  });
9934
9934
  }), e.restore());
9935
9935
  }
@@ -9942,7 +9942,22 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
9942
9942
  default:
9943
9943
  return "#000000";
9944
9944
  }
9945
- }), $d = { class: "container" }, Ud = /* @__PURE__ */ Vt({
9945
+ });
9946
+ function $d(i, t) {
9947
+ if (i.length > 7 && i.includes(" ", 7)) {
9948
+ const n = i.indexOf(
9949
+ " ",
9950
+ 7
9951
+ );
9952
+ return [
9953
+ i.substring(0, n),
9954
+ i.substring(n),
9955
+ t
9956
+ ];
9957
+ }
9958
+ return [i, t];
9959
+ }
9960
+ const Ud = { class: "container" }, Yd = /* @__PURE__ */ Vt({
9946
9961
  __name: "RadarChart",
9947
9962
  props: {
9948
9963
  /**
@@ -10039,7 +10054,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10039
10054
  ), o = z(
10040
10055
  () => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((g) => n[g])
10041
10056
  ), a = z(() => ({
10042
- labels: d(),
10057
+ labels: h(),
10043
10058
  datasets: [
10044
10059
  {
10045
10060
  label: t.datasets[0].label,
@@ -10076,8 +10091,8 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10076
10091
  }
10077
10092
  ]
10078
10093
  })), r = {
10079
- onClick: (g, b, y) => {
10080
- b[0] && ca(y, b[0].datasetIndex, c);
10094
+ onClick: (g, p, b) => {
10095
+ p[0] && ca(b, p[0].datasetIndex, c);
10081
10096
  },
10082
10097
  plugins: {
10083
10098
  htmlLegend: {
@@ -10095,7 +10110,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10095
10110
  external: function(g) {
10096
10111
  new Ve().createTooltip(
10097
10112
  g,
10098
- p,
10113
+ m,
10099
10114
  { chartType: ee.RADAR },
10100
10115
  s.value,
10101
10116
  o.value,
@@ -10129,48 +10144,33 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10129
10144
  }
10130
10145
  }
10131
10146
  }
10132
- }, l = X(null), c = X(!1);
10133
- function h(g, b) {
10134
- if (g.length > 9 && g.includes(" ", 9)) {
10135
- const x = g.indexOf(
10136
- " ",
10137
- 9
10138
- );
10139
- return [
10140
- g.substring(0, x),
10141
- g.substring(x),
10142
- b
10143
- ];
10144
- }
10145
- return [g, b];
10146
- }
10147
- const d = () => t.labels.map((g, b) => {
10148
- const y = t.datasets[0].areaData[b].value ? `${u(
10149
- t.datasets[0].areaData[b].value + ""
10150
- )} ${t.datasets[0].areaData[b].unit}` : "No Data";
10151
- return h(g, y);
10152
- }), u = (g) => ot(parseFloat(g));
10153
- function f(g, b) {
10154
- const y = Cn(g, b);
10155
- return y.onclick = (x) => {
10156
- Oi(g, b.datasetIndex, c), x.stopPropagation();
10157
- }, y;
10158
- }
10159
- const m = [
10147
+ }, l = X(null), c = X(!1), h = () => t.labels.map((g, p) => {
10148
+ const b = t.datasets[0].areaData[p].value ? `${d(
10149
+ t.datasets[0].areaData[p].value + ""
10150
+ )} ${t.datasets[0].areaData[p].unit}` : "No Data";
10151
+ return $d(g, b);
10152
+ }), d = (g) => ot(parseFloat(g));
10153
+ function u(g, p) {
10154
+ const b = Cn(g, p);
10155
+ return b.onclick = (y) => {
10156
+ Oi(g, p.datasetIndex, c), y.stopPropagation();
10157
+ }, b;
10158
+ }
10159
+ const f = [
10160
10160
  {
10161
10161
  id: "htmlLegend",
10162
10162
  afterUpdate(g) {
10163
- const b = Ii(l, "row");
10164
- for (; b.firstChild; )
10165
- b.firstChild.remove();
10166
- g.options.plugins.legend.labels.generateLabels(g).reverse().forEach((x) => {
10167
- const v = Ti(
10163
+ const p = Ii(l, "row");
10164
+ for (; p.firstChild; )
10165
+ p.firstChild.remove();
10166
+ g.options.plugins.legend.labels.generateLabels(g).reverse().forEach((y) => {
10167
+ const x = Ti(
10168
10168
  g,
10169
10169
  c,
10170
- x.datasetIndex
10170
+ y.datasetIndex
10171
10171
  );
10172
- let _;
10173
- v.style.marginRight = "0.625rem", c.value ? _ = f(g, x) : _ = Pn(x, !0), v.appendChild(_), v.appendChild(Li(x)), b.appendChild(v);
10172
+ let v;
10173
+ x.style.marginRight = "0.625rem", c.value ? v = u(g, y) : v = Pn(y, !0), x.appendChild(v), x.appendChild(Li(y)), p.appendChild(x);
10174
10174
  });
10175
10175
  }
10176
10176
  },
@@ -10180,11 +10180,11 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10180
10180
  Vd(g, t);
10181
10181
  }
10182
10182
  }
10183
- ], p = (g) => {
10184
- const b = g.tooltip.dataPoints[0].datasetIndex, y = g.tooltip.dataPoints[0].dataIndex, x = t.datasets[b];
10185
- return x.areaData[y].value.toFixed(2) + " " + x.areaData[y].unit;
10183
+ ], m = (g) => {
10184
+ const p = g.tooltip.dataPoints[0].datasetIndex, b = g.tooltip.dataPoints[0].dataIndex, y = t.datasets[p];
10185
+ return y.areaData[b].value.toFixed(2) + " " + y.areaData[b].unit;
10186
10186
  };
10187
- return (g, b) => (ft(), Ie("div", $d, [
10187
+ return (g, p) => (ft(), Ie("div", Ud, [
10188
10188
  gt("div", {
10189
10189
  class: "main",
10190
10190
  style: Qt({ height: i.height })
@@ -10194,7 +10194,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10194
10194
  id: i.chartId,
10195
10195
  data: a.value,
10196
10196
  options: r,
10197
- plugins: m,
10197
+ plugins: f,
10198
10198
  class: Re(i.cssClasses),
10199
10199
  style: Qt([{ height: i.height, cursor: "pointer" }, i.styles])
10200
10200
  }, null, 8, ["id", "data", "class", "style"])) : Ee("", !0)
@@ -10207,7 +10207,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10207
10207
  ]));
10208
10208
  }
10209
10209
  });
10210
- const cn = /* @__PURE__ */ $e(Ud, [["__scopeId", "data-v-e59323c3"]]);
10210
+ const cn = /* @__PURE__ */ $e(Yd, [["__scopeId", "data-v-a28617e3"]]);
10211
10211
  cn.install = (i) => {
10212
10212
  i.component("RadarChart", cn);
10213
10213
  };
@@ -10218,12 +10218,12 @@ 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 Yd() {
10221
+ function Xd() {
10222
10222
  const i = X(2), t = so({
10223
10223
  dataSetIndex: -1,
10224
10224
  columnIndex: -1
10225
10225
  });
10226
- function e(d, u, f, m, p, g) {
10226
+ function e(d, u, f, m, g, p) {
10227
10227
  return [
10228
10228
  {
10229
10229
  id: "htmlLegend",
@@ -10245,77 +10245,80 @@ function Yd() {
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
- p.value,
10256
- g.value
10255
+ g.value,
10256
+ p.value
10257
10257
  ), w.style.boxSizing = "border-box", _.style.marginRight = "10px", _.appendChild(w), _.appendChild(Li(v)), y.appendChild(_);
10258
10258
  });
10259
10259
  }
10260
10260
  }
10261
10261
  ];
10262
10262
  }
10263
- function n(d, u, f, m, p) {
10263
+ function n(d, u, f, m, g) {
10264
10264
  return e(
10265
10265
  d,
10266
10266
  u,
10267
10267
  t,
10268
10268
  f,
10269
10269
  m,
10270
- p
10270
+ g
10271
10271
  );
10272
10272
  }
10273
- function s(d, u, f, m, p) {
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
- }));
10273
+ function s(d, u, f, m, g) {
10274
+ const p = i.value;
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 : p;
10282
+ },
10283
+ borderColor: function(v) {
10284
+ return u && x ? "#00000000" : x ? o(
10285
+ y,
10286
+ v.index,
10287
+ f,
10288
+ g
10289
+ ) : f[y];
10290
+ },
10291
+ backgroundColor: function(v) {
10292
+ return a(
10293
+ y,
10294
+ v.index,
10295
+ u,
10296
+ f,
10297
+ m,
10298
+ g
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
- const p = Qs(d, m);
10310
- return r(d, u) ? f[p] : Oe(f[p], 0.2);
10312
+ const g = Qs(d, m);
10313
+ return r(d, u) ? f[g] : Oe(f[g], 0.2);
10311
10314
  }
10312
- function a(d, u, f, m, p, g) {
10313
- const b = Qs(d, g);
10314
- return r(d, u) ? p[b](
10315
+ function a(d, u, f, m, g, p) {
10316
+ const b = Qs(d, p);
10317
+ return r(d, u) ? g[b](
10315
10318
  !1,
10316
10319
  m[b],
10317
10320
  f
10318
- ) : p[b](
10321
+ ) : g[b](
10319
10322
  !0,
10320
10323
  m[b],
10321
10324
  f
@@ -10341,7 +10344,7 @@ function Yd() {
10341
10344
  onHoverIndex: t
10342
10345
  };
10343
10346
  }
10344
- const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */ Vt({
10347
+ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */ Vt({
10345
10348
  __name: "MixedBarLineChart",
10346
10349
  props: {
10347
10350
  /**
@@ -10511,7 +10514,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10511
10514
  dt,
10512
10515
  Kt
10513
10516
  );
10514
- const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = Yd(), { colourSets: s, patternsStandardList: o } = je(), a = X(null), r = X(!1), l = z(() => {
10517
+ const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = Xd(), { colourSets: s, patternsStandardList: o } = je(), a = X(null), r = X(!1), l = z(() => {
10515
10518
  let b = [];
10516
10519
  return t.barDatasets && (b = b.concat(t.barDatasets)), t.lineDatasets && (b = b.concat(t.lineDatasets)), b;
10517
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(() => ({
@@ -10526,7 +10529,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10526
10529
  })), f = (b) => {
10527
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;
10528
10531
  return (_ === "%" ? parseFloat(v.toString().replace(",", ".")).toFixed(2) : ot(v)) + _;
10529
- }, m = () => Object.assign([], t.labels).map((y) => y), p = z(() => ({
10532
+ }, m = () => Object.assign([], t.labels).map((y) => y), g = z(() => ({
10530
10533
  type: "scatter",
10531
10534
  responsive: !0,
10532
10535
  maintainAspectRatio: !0,
@@ -10603,7 +10606,7 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10603
10606
  }
10604
10607
  }
10605
10608
  }
10606
- })), g = X(
10609
+ })), p = X(
10607
10610
  e(
10608
10611
  a,
10609
10612
  r,
@@ -10612,15 +10615,15 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10612
10615
  h
10613
10616
  )
10614
10617
  );
10615
- return (b, y) => (ft(), Ie("div", Xd, [
10616
- gt("div", Gd, [
10618
+ return (b, y) => (ft(), Ie("div", Gd, [
10619
+ gt("div", qd, [
10617
10620
  u.value ? (ft(), Fe(Zt(ea), {
10618
10621
  key: 0,
10619
10622
  ref: "mixedBarLineChartRef",
10620
10623
  id: i.chartId,
10621
10624
  data: u.value,
10622
- options: p.value,
10623
- plugins: g.value,
10625
+ options: g.value,
10626
+ plugins: p.value,
10624
10627
  class: Re(i.cssClasses),
10625
10628
  style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10626
10629
  }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ee("", !0)
@@ -10632,11 +10635,11 @@ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */
10632
10635
  ]));
10633
10636
  }
10634
10637
  });
10635
- const Js = /* @__PURE__ */ $e(qd, [["__scopeId", "data-v-758cd368"]]);
10638
+ const Js = /* @__PURE__ */ $e(Kd, [["__scopeId", "data-v-758cd368"]]);
10636
10639
  Js.install = (i) => {
10637
10640
  i.component("MixedBarLineChart", Js);
10638
10641
  };
10639
- const Jd = {
10642
+ const tu = {
10640
10643
  install: (i, t) => {
10641
10644
  Object.keys(Zs).forEach((e) => {
10642
10645
  i.component(e, Zs[e]);
@@ -10649,5 +10652,5 @@ export {
10649
10652
  ln as LineChart,
10650
10653
  Js as MixedBarLineChart,
10651
10654
  cn as RadarChart,
10652
- Jd as default
10655
+ tu as default
10653
10656
  };