scope360-core 0.0.267 → 0.0.268

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.
@@ -13459,7 +13459,7 @@ const uv = (t) => (mn("data-v-8797178e"), t = t(), pn(), t), hO = { class: "scop
13459
13459
  ], 4)
13460
13460
  ]));
13461
13461
  }
13462
- }, e2 = /* @__PURE__ */ ze(JO, [["__scopeId", "data-v-ea085d6b"]]);
13462
+ }, eP = /* @__PURE__ */ ze(JO, [["__scopeId", "data-v-ea085d6b"]]);
13463
13463
  /*!
13464
13464
  * @kurkle/color v0.3.2
13465
13465
  * https://github.com/kurkle/color#readme
@@ -13482,8 +13482,8 @@ function Gs(t) {
13482
13482
  function Um(t) {
13483
13483
  return Di(Ho(t * 100), 0, 100);
13484
13484
  }
13485
- const Bn = { 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 }, Yd = [..."0123456789ABCDEF"], t2 = (t) => Yd[t & 15], n2 = (t) => Yd[(t & 240) >> 4] + Yd[t & 15], al = (t) => (t & 240) >> 4 === (t & 15), s2 = (t) => al(t.r) && al(t.g) && al(t.b) && al(t.a);
13486
- function i2(t) {
13485
+ const Bn = { 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 }, Yd = [..."0123456789ABCDEF"], tP = (t) => Yd[t & 15], nP = (t) => Yd[(t & 240) >> 4] + Yd[t & 15], al = (t) => (t & 240) >> 4 === (t & 15), sP = (t) => al(t.r) && al(t.g) && al(t.b) && al(t.a);
13486
+ function iP(t) {
13487
13487
  var e = t.length, n;
13488
13488
  return t[0] === "#" && (e === 4 || e === 5 ? n = {
13489
13489
  r: 255 & Bn[t[1]] * 17,
@@ -13497,34 +13497,34 @@ function i2(t) {
13497
13497
  a: e === 9 ? Bn[t[7]] << 4 | Bn[t[8]] : 255
13498
13498
  })), n;
13499
13499
  }
13500
- const r2 = (t, e) => t < 255 ? e(t) : "";
13501
- function a2(t) {
13502
- var e = s2(t) ? t2 : n2;
13503
- return t ? "#" + e(t.r) + e(t.g) + e(t.b) + r2(t.a, e) : void 0;
13500
+ const rP = (t, e) => t < 255 ? e(t) : "";
13501
+ function aP(t) {
13502
+ var e = sP(t) ? tP : nP;
13503
+ return t ? "#" + e(t.r) + e(t.g) + e(t.b) + rP(t.a, e) : void 0;
13504
13504
  }
13505
- const o2 = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
13505
+ const oP = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
13506
13506
  function fv(t, e, n) {
13507
13507
  const s = e * Math.min(n, 1 - n), i = (r, a = (r + t / 30) % 12) => n - s * Math.max(Math.min(a - 3, 9 - a, 1), -1);
13508
13508
  return [i(0), i(8), i(4)];
13509
13509
  }
13510
- function l2(t, e, n) {
13510
+ function lP(t, e, n) {
13511
13511
  const s = (i, r = (i + t / 60) % 6) => n - n * e * Math.max(Math.min(r, 4 - r, 1), 0);
13512
13512
  return [s(5), s(3), s(1)];
13513
13513
  }
13514
- function u2(t, e, n) {
13514
+ function uP(t, e, n) {
13515
13515
  const s = fv(t, 1, 0.5);
13516
13516
  let i;
13517
13517
  for (e + n > 1 && (i = 1 / (e + n), e *= i, n *= i), i = 0; i < 3; i++)
13518
13518
  s[i] *= 1 - e - n, s[i] += e;
13519
13519
  return s;
13520
13520
  }
13521
- function c2(t, e, n, s, i) {
13521
+ function cP(t, e, n, s, i) {
13522
13522
  return t === i ? (e - n) / s + (e < n ? 6 : 0) : e === i ? (n - t) / s + 2 : (t - e) / s + 4;
13523
13523
  }
13524
13524
  function ef(t) {
13525
13525
  const n = t.r / 255, s = t.g / 255, i = t.b / 255, r = Math.max(n, s, i), a = Math.min(n, s, i), o = (r + a) / 2;
13526
13526
  let l, u, c;
13527
- return r !== a && (c = r - a, u = o > 0.5 ? c / (2 - r - a) : c / (r + a), l = c2(n, s, i, c, r), l = l * 60 + 0.5), [l | 0, u || 0, o];
13527
+ return r !== a && (c = r - a, u = o > 0.5 ? c / (2 - r - a) : c / (r + a), l = cP(n, s, i, c, r), l = l * 60 + 0.5), [l | 0, u || 0, o];
13528
13528
  }
13529
13529
  function tf(t, e, n, s) {
13530
13530
  return (Array.isArray(e) ? t(e[0], e[1], e[2]) : t(e, n, s)).map(Ii);
@@ -13532,34 +13532,34 @@ function tf(t, e, n, s) {
13532
13532
  function nf(t, e, n) {
13533
13533
  return tf(fv, t, e, n);
13534
13534
  }
13535
- function d2(t, e, n) {
13536
- return tf(u2, t, e, n);
13535
+ function dP(t, e, n) {
13536
+ return tf(uP, t, e, n);
13537
13537
  }
13538
- function h2(t, e, n) {
13539
- return tf(l2, t, e, n);
13538
+ function hP(t, e, n) {
13539
+ return tf(lP, t, e, n);
13540
13540
  }
13541
13541
  function mv(t) {
13542
13542
  return (t % 360 + 360) % 360;
13543
13543
  }
13544
- function f2(t) {
13545
- const e = o2.exec(t);
13544
+ function fP(t) {
13545
+ const e = oP.exec(t);
13546
13546
  let n = 255, s;
13547
13547
  if (!e)
13548
13548
  return;
13549
13549
  e[5] !== s && (n = e[6] ? Ua(+e[5]) : Ii(+e[5]));
13550
13550
  const i = mv(+e[2]), r = +e[3] / 100, a = +e[4] / 100;
13551
- return e[1] === "hwb" ? s = d2(i, r, a) : e[1] === "hsv" ? s = h2(i, r, a) : s = nf(i, r, a), {
13551
+ return e[1] === "hwb" ? s = dP(i, r, a) : e[1] === "hsv" ? s = hP(i, r, a) : s = nf(i, r, a), {
13552
13552
  r: s[0],
13553
13553
  g: s[1],
13554
13554
  b: s[2],
13555
13555
  a: n
13556
13556
  };
13557
13557
  }
13558
- function m2(t, e) {
13558
+ function mP(t, e) {
13559
13559
  var n = ef(t);
13560
13560
  n[0] = mv(n[0] + e), n = nf(n), t.r = n[0], t.g = n[1], t.b = n[2];
13561
13561
  }
13562
- function p2(t) {
13562
+ function pP(t) {
13563
13563
  if (!t)
13564
13564
  return;
13565
13565
  const e = ef(t), n = e[0], s = Um(e[1]), i = Um(e[2]);
@@ -13743,7 +13743,7 @@ const jm = {
13743
13743
  Lw: "ffff00",
13744
13744
  LwgYF: "9acd32"
13745
13745
  };
13746
- function g2() {
13746
+ function gP() {
13747
13747
  const t = {}, e = Object.keys(qm), n = Object.keys(jm);
13748
13748
  let s, i, r, a, o;
13749
13749
  for (s = 0; s < e.length; s++) {
@@ -13754,8 +13754,8 @@ function g2() {
13754
13754
  return t;
13755
13755
  }
13756
13756
  let ol;
13757
- function y2(t) {
13758
- ol || (ol = g2(), ol.transparent = [0, 0, 0, 0]);
13757
+ function yP(t) {
13758
+ ol || (ol = gP(), ol.transparent = [0, 0, 0, 0]);
13759
13759
  const e = ol[t.toLowerCase()];
13760
13760
  return e && {
13761
13761
  r: e[0],
@@ -13764,9 +13764,9 @@ function y2(t) {
13764
13764
  a: e.length === 4 ? e[3] : 255
13765
13765
  };
13766
13766
  }
13767
- const v2 = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
13768
- function _2(t) {
13769
- const e = v2.exec(t);
13767
+ const vP = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
13768
+ function _P(t) {
13769
+ const e = vP.exec(t);
13770
13770
  let n = 255, s, i, r;
13771
13771
  if (e) {
13772
13772
  if (e[7] !== s) {
@@ -13781,11 +13781,11 @@ function _2(t) {
13781
13781
  };
13782
13782
  }
13783
13783
  }
13784
- function b2(t) {
13784
+ function bP(t) {
13785
13785
  return t && (t.a < 255 ? `rgba(${t.r}, ${t.g}, ${t.b}, ${Gs(t.a)})` : `rgb(${t.r}, ${t.g}, ${t.b})`);
13786
13786
  }
13787
13787
  const Bc = (t) => t <= 31308e-7 ? t * 12.92 : Math.pow(t, 1 / 2.4) * 1.055 - 0.055, Ir = (t) => t <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
13788
- function w2(t, e, n) {
13788
+ function wP(t, e, n) {
13789
13789
  const s = Ir(Gs(t.r)), i = Ir(Gs(t.g)), r = Ir(Gs(t.b));
13790
13790
  return {
13791
13791
  r: Ii(Bc(s + n * (Ir(Gs(e.r)) - s))),
@@ -13807,8 +13807,8 @@ function Gm(t) {
13807
13807
  var e = { r: 0, g: 0, b: 0, a: 255 };
13808
13808
  return Array.isArray(t) ? t.length >= 3 && (e = { r: t[0], g: t[1], b: t[2], a: 255 }, t.length > 3 && (e.a = Ii(t[3]))) : (e = pv(t, { r: 0, g: 0, b: 0, a: 1 }), e.a = Ii(e.a)), e;
13809
13809
  }
13810
- function k2(t) {
13811
- return t.charAt(0) === "r" ? _2(t) : f2(t);
13810
+ function kP(t) {
13811
+ return t.charAt(0) === "r" ? _P(t) : fP(t);
13812
13812
  }
13813
13813
  class To {
13814
13814
  constructor(e) {
@@ -13816,7 +13816,7 @@ class To {
13816
13816
  return e;
13817
13817
  const n = typeof e;
13818
13818
  let s;
13819
- n === "object" ? s = Gm(e) : n === "string" && (s = i2(e) || y2(e) || k2(e)), this._rgb = s, this._valid = !!s;
13819
+ n === "object" ? s = Gm(e) : n === "string" && (s = iP(e) || yP(e) || kP(e)), this._rgb = s, this._valid = !!s;
13820
13820
  }
13821
13821
  get valid() {
13822
13822
  return this._valid;
@@ -13829,13 +13829,13 @@ class To {
13829
13829
  this._rgb = Gm(e);
13830
13830
  }
13831
13831
  rgbString() {
13832
- return this._valid ? b2(this._rgb) : void 0;
13832
+ return this._valid ? bP(this._rgb) : void 0;
13833
13833
  }
13834
13834
  hexString() {
13835
- return this._valid ? a2(this._rgb) : void 0;
13835
+ return this._valid ? aP(this._rgb) : void 0;
13836
13836
  }
13837
13837
  hslString() {
13838
- return this._valid ? p2(this._rgb) : void 0;
13838
+ return this._valid ? pP(this._rgb) : void 0;
13839
13839
  }
13840
13840
  mix(e, n) {
13841
13841
  if (e) {
@@ -13847,7 +13847,7 @@ class To {
13847
13847
  return this;
13848
13848
  }
13849
13849
  interpolate(e, n) {
13850
- return e && (this._rgb = w2(this._rgb, e._rgb, n)), this;
13850
+ return e && (this._rgb = wP(this._rgb, e._rgb, n)), this;
13851
13851
  }
13852
13852
  clone() {
13853
13853
  return new To(this.rgb);
@@ -13884,7 +13884,7 @@ class To {
13884
13884
  return ll(this._rgb, 1, -e), this;
13885
13885
  }
13886
13886
  rotate(e) {
13887
- return m2(this._rgb, e), this;
13887
+ return mP(this._rgb, e), this;
13888
13888
  }
13889
13889
  }
13890
13890
  /*!
@@ -13895,7 +13895,7 @@ class To {
13895
13895
  */
13896
13896
  function Vs() {
13897
13897
  }
13898
- const x2 = /* @__PURE__ */ (() => {
13898
+ const xP = /* @__PURE__ */ (() => {
13899
13899
  let t = 0;
13900
13900
  return () => t++;
13901
13901
  })();
@@ -13920,7 +13920,7 @@ function Mn(t, e) {
13920
13920
  function tt(t, e) {
13921
13921
  return typeof t > "u" ? e : t;
13922
13922
  }
13923
- const S2 = (t, e) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) / 100 * e : +t;
13923
+ const SP = (t, e) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) / 100 * e : +t;
13924
13924
  function wt(t, e, n) {
13925
13925
  if (t && typeof t.call == "function")
13926
13926
  return t.apply(n, e);
@@ -13966,7 +13966,7 @@ function gv(t) {
13966
13966
  "constructor"
13967
13967
  ].indexOf(t) === -1;
13968
13968
  }
13969
- function M2(t, e, n, s) {
13969
+ function MP(t, e, n, s) {
13970
13970
  if (!gv(t))
13971
13971
  return;
13972
13972
  const i = e[t], r = n[t];
@@ -13979,7 +13979,7 @@ function Oo(t, e, n) {
13979
13979
  if (!We(t))
13980
13980
  return t;
13981
13981
  n = n || {};
13982
- const r = n.merger || M2;
13982
+ const r = n.merger || MP;
13983
13983
  let a;
13984
13984
  for (let o = 0; o < i; ++o) {
13985
13985
  if (a = s[o], !We(a))
@@ -13992,10 +13992,10 @@ function Oo(t, e, n) {
13992
13992
  }
13993
13993
  function to(t, e) {
13994
13994
  return Oo(t, e, {
13995
- merger: D2
13995
+ merger: DP
13996
13996
  });
13997
13997
  }
13998
- function D2(t, e, n) {
13998
+ function DP(t, e, n) {
13999
13999
  if (!gv(t))
14000
14000
  return;
14001
14001
  const s = e[t], i = n[t];
@@ -14008,15 +14008,15 @@ const Zm = {
14008
14008
  x: (t) => t.x,
14009
14009
  y: (t) => t.y
14010
14010
  };
14011
- function T2(t) {
14011
+ function TP(t) {
14012
14012
  const e = t.split("."), n = [];
14013
14013
  let s = "";
14014
14014
  for (const i of e)
14015
14015
  s += i, s.endsWith("\\") ? s = s.slice(0, -1) + "." : (n.push(s), s = "");
14016
14016
  return n;
14017
14017
  }
14018
- function O2(t) {
14019
- const e = T2(t);
14018
+ function OP(t) {
14019
+ const e = TP(t);
14020
14020
  return (n) => {
14021
14021
  for (const s of e) {
14022
14022
  if (s === "")
@@ -14027,7 +14027,7 @@ function O2(t) {
14027
14027
  };
14028
14028
  }
14029
14029
  function au(t, e) {
14030
- return (Zm[e] || (Zm[e] = O2(e)))(t);
14030
+ return (Zm[e] || (Zm[e] = OP(e)))(t);
14031
14031
  }
14032
14032
  function sf(t) {
14033
14033
  return t.charAt(0).toUpperCase() + t.slice(1);
@@ -14040,10 +14040,10 @@ const ou = (t) => typeof t < "u", Yi = (t) => typeof t == "function", Km = (t, e
14040
14040
  return !1;
14041
14041
  return !0;
14042
14042
  };
14043
- function P2(t) {
14043
+ function PP(t) {
14044
14044
  return t.type === "mouseup" || t.type === "click" || t.type === "contextmenu";
14045
14045
  }
14046
- const Zt = Math.PI, In = 2 * Zt, C2 = In + Zt, lu = Number.POSITIVE_INFINITY, A2 = Zt / 180, Rn = Zt / 2, Gi = Zt / 4, Xm = Zt * 2 / 3, Ti = Math.log10, ha = Math.sign;
14046
+ const Zt = Math.PI, In = 2 * Zt, CP = In + Zt, lu = Number.POSITIVE_INFINITY, AP = Zt / 180, Rn = Zt / 2, Gi = Zt / 4, Xm = Zt * 2 / 3, Ti = Math.log10, ha = Math.sign;
14047
14047
  function no(t, e, n) {
14048
14048
  return Math.abs(t - e) < n;
14049
14049
  }
@@ -14053,7 +14053,7 @@ function Qm(t) {
14053
14053
  const n = Math.pow(10, Math.floor(Ti(t))), s = t / n;
14054
14054
  return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * n;
14055
14055
  }
14056
- function R2(t) {
14056
+ function RP(t) {
14057
14057
  const e = [], n = Math.sqrt(t);
14058
14058
  let s;
14059
14059
  for (s = 1; s < n; s++)
@@ -14063,7 +14063,7 @@ function R2(t) {
14063
14063
  function Po(t) {
14064
14064
  return !isNaN(parseFloat(t)) && isFinite(t);
14065
14065
  }
14066
- function E2(t, e) {
14066
+ function EP(t, e) {
14067
14067
  const n = Math.round(t);
14068
14068
  return n - e <= t && n + e >= t;
14069
14069
  }
@@ -14086,7 +14086,7 @@ function Jm(t) {
14086
14086
  e *= 10, n++;
14087
14087
  return n;
14088
14088
  }
14089
- function $2(t, e) {
14089
+ function $P(t, e) {
14090
14090
  const n = e.x - t.x, s = e.y - t.y, i = Math.sqrt(n * n + s * s);
14091
14091
  let r = Math.atan2(s, n);
14092
14092
  return r < -0.5 * Zt && (r += In), {
@@ -14097,8 +14097,8 @@ function $2(t, e) {
14097
14097
  function Vd(t, e) {
14098
14098
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
14099
14099
  }
14100
- function I2(t, e) {
14101
- return (t - e + C2) % In - Zt;
14100
+ function IP(t, e) {
14101
+ return (t - e + CP) % In - Zt;
14102
14102
  }
14103
14103
  function Tn(t) {
14104
14104
  return (t % In + In) % In;
@@ -14110,7 +14110,7 @@ function vv(t, e, n, s) {
14110
14110
  function qn(t, e, n) {
14111
14111
  return Math.max(e, Math.min(n, t));
14112
14112
  }
14113
- function N2(t) {
14113
+ function NP(t) {
14114
14114
  return qn(t, -32768, 32767);
14115
14115
  }
14116
14116
  function _v(t, e, n, s = 1e-6) {
@@ -14129,8 +14129,8 @@ function af(t, e, n) {
14129
14129
  const lr = (t, e, n, s) => af(t, n, s ? (i) => {
14130
14130
  const r = t[i][e];
14131
14131
  return r < n || r === n && t[i + 1][e] === n;
14132
- } : (i) => t[i][e] < n), L2 = (t, e, n) => af(t, n, (s) => t[s][e] >= n);
14133
- function F2(t, e, n) {
14132
+ } : (i) => t[i][e] < n), LP = (t, e, n) => af(t, n, (s) => t[s][e] >= n);
14133
+ function FP(t, e, n) {
14134
14134
  let s = 0, i = t.length;
14135
14135
  for (; s < i && t[s] < e; )
14136
14136
  s++;
@@ -14145,7 +14145,7 @@ const bv = [
14145
14145
  "splice",
14146
14146
  "unshift"
14147
14147
  ];
14148
- function Y2(t, e) {
14148
+ function YP(t, e) {
14149
14149
  if (t._chartjs) {
14150
14150
  t._chartjs.listeners.push(e);
14151
14151
  return;
@@ -14181,7 +14181,7 @@ function ep(t, e) {
14181
14181
  delete t[r];
14182
14182
  }), delete t._chartjs);
14183
14183
  }
14184
- function V2(t) {
14184
+ function VP(t) {
14185
14185
  const e = new Set(t);
14186
14186
  return e.size === t.length ? t : Array.from(e);
14187
14187
  }
@@ -14198,14 +14198,14 @@ function kv(t, e) {
14198
14198
  }));
14199
14199
  };
14200
14200
  }
14201
- function B2(t, e) {
14201
+ function BP(t, e) {
14202
14202
  let n;
14203
14203
  return function(...s) {
14204
14204
  return e ? (clearTimeout(n), n = setTimeout(t, e, s)) : t.apply(this, s), e;
14205
14205
  };
14206
14206
  }
14207
- const W2 = (t) => t === "start" ? "left" : t === "end" ? "right" : "center", tp = (t, e, n) => t === "start" ? e : t === "end" ? n : (e + n) / 2;
14208
- function z2(t, e, n) {
14207
+ const WP = (t) => t === "start" ? "left" : t === "end" ? "right" : "center", tp = (t, e, n) => t === "start" ? e : t === "end" ? n : (e + n) / 2;
14208
+ function zP(t, e, n) {
14209
14209
  const s = e.length;
14210
14210
  let i = 0, r = s;
14211
14211
  if (t._sorted) {
@@ -14227,7 +14227,7 @@ function z2(t, e, n) {
14227
14227
  count: r
14228
14228
  };
14229
14229
  }
14230
- function H2(t) {
14230
+ function HP(t) {
14231
14231
  const { xScale: e, yScale: n, _scaleRanges: s } = t, i = {
14232
14232
  xmin: e.min,
14233
14233
  xmax: e.max,
@@ -14296,18 +14296,18 @@ function ip(t) {
14296
14296
  function Wc(t) {
14297
14297
  return of(t) ? t : new To(t).saturate(0.5).darken(0.1).hexString();
14298
14298
  }
14299
- const U2 = [
14299
+ const UP = [
14300
14300
  "x",
14301
14301
  "y",
14302
14302
  "borderWidth",
14303
14303
  "radius",
14304
14304
  "tension"
14305
- ], j2 = [
14305
+ ], jP = [
14306
14306
  "color",
14307
14307
  "borderColor",
14308
14308
  "backgroundColor"
14309
14309
  ];
14310
- function q2(t) {
14310
+ function qP(t) {
14311
14311
  t.set("animation", {
14312
14312
  delay: void 0,
14313
14313
  duration: 1e3,
@@ -14324,11 +14324,11 @@ function q2(t) {
14324
14324
  }), t.set("animations", {
14325
14325
  colors: {
14326
14326
  type: "color",
14327
- properties: j2
14327
+ properties: jP
14328
14328
  },
14329
14329
  numbers: {
14330
14330
  type: "number",
14331
- properties: U2
14331
+ properties: UP
14332
14332
  }
14333
14333
  }), t.describe("animations", {
14334
14334
  _fallback: "animation"
@@ -14368,7 +14368,7 @@ function q2(t) {
14368
14368
  }
14369
14369
  });
14370
14370
  }
14371
- function G2(t) {
14371
+ function GP(t) {
14372
14372
  t.set("layout", {
14373
14373
  autoPadding: !0,
14374
14374
  padding: {
@@ -14380,14 +14380,14 @@ function G2(t) {
14380
14380
  });
14381
14381
  }
14382
14382
  const rp = /* @__PURE__ */ new Map();
14383
- function Z2(t, e) {
14383
+ function ZP(t, e) {
14384
14384
  e = e || {};
14385
14385
  const n = t + JSON.stringify(e);
14386
14386
  let s = rp.get(n);
14387
14387
  return s || (s = new Intl.NumberFormat(t, e), rp.set(n, s)), s;
14388
14388
  }
14389
14389
  function lf(t, e, n) {
14390
- return Z2(e, n).format(t);
14390
+ return ZP(e, n).format(t);
14391
14391
  }
14392
14392
  const xv = {
14393
14393
  values(t) {
@@ -14400,7 +14400,7 @@ const xv = {
14400
14400
  let i, r = t;
14401
14401
  if (n.length > 1) {
14402
14402
  const u = Math.max(Math.abs(n[0].value), Math.abs(n[n.length - 1].value));
14403
- (u < 1e-4 || u > 1e15) && (i = "scientific"), r = K2(t, n);
14403
+ (u < 1e-4 || u > 1e15) && (i = "scientific"), r = KP(t, n);
14404
14404
  }
14405
14405
  const a = Ti(Math.abs(r)), o = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), l = {
14406
14406
  notation: i,
@@ -14423,14 +14423,14 @@ const xv = {
14423
14423
  ].includes(s) || e > 0.8 * n.length ? xv.numeric.call(this, t, e, n) : "";
14424
14424
  }
14425
14425
  };
14426
- function K2(t, e) {
14426
+ function KP(t, e) {
14427
14427
  let n = e.length > 3 ? e[2].value - e[1].value : e[1].value - e[0].value;
14428
14428
  return Math.abs(n) >= 1 && t !== Math.floor(t) && (n = t - Math.floor(t)), n;
14429
14429
  }
14430
14430
  var Vu = {
14431
14431
  formatters: xv
14432
14432
  };
14433
- function X2(t) {
14433
+ function XP(t) {
14434
14434
  t.set("scale", {
14435
14435
  display: !0,
14436
14436
  offset: !1,
@@ -14508,7 +14508,7 @@ function io(t, e) {
14508
14508
  function zc(t, e, n) {
14509
14509
  return typeof e == "string" ? Oo(io(t, e), n) : Oo(io(t, ""), e);
14510
14510
  }
14511
- class Q2 {
14511
+ class QP {
14512
14512
  constructor(e, n) {
14513
14513
  this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (s) => s.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
14514
14514
  "mousemove",
@@ -14563,7 +14563,7 @@ class Q2 {
14563
14563
  e.forEach((n) => n(this));
14564
14564
  }
14565
14565
  }
14566
- var Nt = /* @__PURE__ */ new Q2({
14566
+ var Nt = /* @__PURE__ */ new QP({
14567
14567
  _scriptable: (t) => !t.startsWith("on"),
14568
14568
  _indexable: (t) => t !== "events",
14569
14569
  hover: {
@@ -14574,18 +14574,18 @@ var Nt = /* @__PURE__ */ new Q2({
14574
14574
  _indexable: !1
14575
14575
  }
14576
14576
  }, [
14577
- q2,
14578
- G2,
14579
- X2
14577
+ qP,
14578
+ GP,
14579
+ XP
14580
14580
  ]);
14581
- function J2(t) {
14581
+ function JP(t) {
14582
14582
  return !t || ut(t.size) || ut(t.family) ? null : (t.style ? t.style + " " : "") + (t.weight ? t.weight + " " : "") + t.size + "px " + t.family;
14583
14583
  }
14584
14584
  function uu(t, e, n, s, i) {
14585
14585
  let r = e[i];
14586
14586
  return r || (r = e[i] = t.measureText(i).width, n.push(i)), r > s && (s = r), s;
14587
14587
  }
14588
- function eP(t, e, n, s) {
14588
+ function e2(t, e, n, s) {
14589
14589
  s = s || {};
14590
14590
  let i = s.data = s.data || {}, r = s.garbageCollect = s.garbageCollect || [];
14591
14591
  s.font !== e && (i = s.data = {}, r = s.garbageCollect = [], s.font = e), t.save(), t.font = e;
@@ -14615,12 +14615,12 @@ function ap(t, e) {
14615
14615
  e = e || t.getContext("2d"), e.save(), e.resetTransform(), e.clearRect(0, 0, t.width, t.height), e.restore();
14616
14616
  }
14617
14617
  function Wd(t, e, n, s) {
14618
- tP(t, e, n, s, null);
14618
+ t2(t, e, n, s, null);
14619
14619
  }
14620
- function tP(t, e, n, s, i) {
14620
+ function t2(t, e, n, s, i) {
14621
14621
  let r, a, o, l, u, c, d, h;
14622
14622
  const f = e.pointStyle, p = e.rotation, m = e.radius;
14623
- let g = (p || 0) * A2;
14623
+ let g = (p || 0) * AP;
14624
14624
  if (f && typeof f == "object" && (r = f.toString(), r === "[object HTMLImageElement]" || r === "[object HTMLCanvasElement]")) {
14625
14625
  t.save(), t.translate(n, s), t.rotate(g), t.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), t.restore();
14626
14626
  return;
@@ -14675,7 +14675,7 @@ function uf(t, e) {
14675
14675
  function cf(t) {
14676
14676
  t.restore();
14677
14677
  }
14678
- function nP(t, e, n, s, i) {
14678
+ function n2(t, e, n, s, i) {
14679
14679
  if (!e)
14680
14680
  return t.lineTo(n.x, n.y);
14681
14681
  if (i === "middle") {
@@ -14685,21 +14685,21 @@ function nP(t, e, n, s, i) {
14685
14685
  i === "after" != !!s ? t.lineTo(e.x, n.y) : t.lineTo(n.x, e.y);
14686
14686
  t.lineTo(n.x, n.y);
14687
14687
  }
14688
- function sP(t, e, n, s) {
14688
+ function s2(t, e, n, s) {
14689
14689
  if (!e)
14690
14690
  return t.lineTo(n.x, n.y);
14691
14691
  t.bezierCurveTo(s ? e.cp1x : e.cp2x, s ? e.cp1y : e.cp2y, s ? n.cp2x : n.cp1x, s ? n.cp2y : n.cp1y, n.x, n.y);
14692
14692
  }
14693
- function iP(t, e) {
14693
+ function i2(t, e) {
14694
14694
  e.translation && t.translate(e.translation[0], e.translation[1]), ut(e.rotation) || t.rotate(e.rotation), e.color && (t.fillStyle = e.color), e.textAlign && (t.textAlign = e.textAlign), e.textBaseline && (t.textBaseline = e.textBaseline);
14695
14695
  }
14696
- function rP(t, e, n, s, i) {
14696
+ function r2(t, e, n, s, i) {
14697
14697
  if (i.strikethrough || i.underline) {
14698
14698
  const r = t.measureText(s), a = e - r.actualBoundingBoxLeft, o = e + r.actualBoundingBoxRight, l = n - r.actualBoundingBoxAscent, u = n + r.actualBoundingBoxDescent, c = i.strikethrough ? (l + u) / 2 : u;
14699
14699
  t.strokeStyle = t.fillStyle, t.beginPath(), t.lineWidth = i.decorationWidth || 2, t.moveTo(a, c), t.lineTo(o, c), t.stroke();
14700
14700
  }
14701
14701
  }
14702
- function aP(t, e) {
14702
+ function a2(t, e) {
14703
14703
  const n = t.fillStyle;
14704
14704
  t.fillStyle = e.color, t.fillRect(e.left, e.top, e.width, e.height), t.fillStyle = n;
14705
14705
  }
@@ -14708,17 +14708,17 @@ function cu(t, e, n, s, i, r = {}) {
14708
14708
  e
14709
14709
  ], o = r.strokeWidth > 0 && r.strokeColor !== "";
14710
14710
  let l, u;
14711
- for (t.save(), t.font = i.string, iP(t, r), l = 0; l < a.length; ++l)
14712
- u = a[l], r.backdrop && aP(t, r.backdrop), o && (r.strokeColor && (t.strokeStyle = r.strokeColor), ut(r.strokeWidth) || (t.lineWidth = r.strokeWidth), t.strokeText(u, n, s, r.maxWidth)), t.fillText(u, n, s, r.maxWidth), rP(t, n, s, u, r), s += Number(i.lineHeight);
14711
+ for (t.save(), t.font = i.string, i2(t, r), l = 0; l < a.length; ++l)
14712
+ u = a[l], r.backdrop && a2(t, r.backdrop), o && (r.strokeColor && (t.strokeStyle = r.strokeColor), ut(r.strokeWidth) || (t.lineWidth = r.strokeWidth), t.strokeText(u, n, s, r.maxWidth)), t.fillText(u, n, s, r.maxWidth), r2(t, n, s, u, r), s += Number(i.lineHeight);
14713
14713
  t.restore();
14714
14714
  }
14715
14715
  function zd(t, e) {
14716
14716
  const { x: n, y: s, w: i, h: r, radius: a } = e;
14717
14717
  t.arc(n + a.topLeft, s + a.topLeft, a.topLeft, 1.5 * Zt, Zt, !0), t.lineTo(n, s + r - a.bottomLeft), t.arc(n + a.bottomLeft, s + r - a.bottomLeft, a.bottomLeft, Zt, Rn, !0), t.lineTo(n + i - a.bottomRight, s + r), t.arc(n + i - a.bottomRight, s + r - a.bottomRight, a.bottomRight, Rn, 0, !0), t.lineTo(n + i, s + a.topRight), t.arc(n + i - a.topRight, s + a.topRight, a.topRight, 0, -Rn, !0), t.lineTo(n + a.topLeft, s);
14718
14718
  }
14719
- const oP = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, lP = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
14720
- function uP(t, e) {
14721
- const n = ("" + t).match(oP);
14719
+ const o2 = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, l2 = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
14720
+ function u2(t, e) {
14721
+ const n = ("" + t).match(o2);
14722
14722
  if (!n || n[1] === "normal")
14723
14723
  return e * 1.2;
14724
14724
  switch (t = +n[2], n[3]) {
@@ -14730,14 +14730,14 @@ function uP(t, e) {
14730
14730
  }
14731
14731
  return e * t;
14732
14732
  }
14733
- const cP = (t) => +t || 0;
14733
+ const c2 = (t) => +t || 0;
14734
14734
  function Sv(t, e) {
14735
14735
  const n = {}, s = We(e), i = s ? Object.keys(e) : e, r = We(t) ? s ? (a) => tt(t[a], t[e[a]]) : (a) => t[a] : () => t;
14736
14736
  for (const a of i)
14737
- n[a] = cP(r(a));
14737
+ n[a] = c2(r(a));
14738
14738
  return n;
14739
14739
  }
14740
- function dP(t) {
14740
+ function d2(t) {
14741
14741
  return Sv(t, {
14742
14742
  top: "y",
14743
14743
  right: "x",
@@ -14754,7 +14754,7 @@ function ro(t) {
14754
14754
  ]);
14755
14755
  }
14756
14756
  function Qn(t) {
14757
- const e = dP(t);
14757
+ const e = d2(t);
14758
14758
  return e.width = e.left + e.right, e.height = e.top + e.bottom, e;
14759
14759
  }
14760
14760
  function En(t, e) {
@@ -14762,16 +14762,16 @@ function En(t, e) {
14762
14762
  let n = tt(t.size, e.size);
14763
14763
  typeof n == "string" && (n = parseInt(n, 10));
14764
14764
  let s = tt(t.style, e.style);
14765
- s && !("" + s).match(lP) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0);
14765
+ s && !("" + s).match(l2) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0);
14766
14766
  const i = {
14767
14767
  family: tt(t.family, e.family),
14768
- lineHeight: uP(tt(t.lineHeight, e.lineHeight), n),
14768
+ lineHeight: u2(tt(t.lineHeight, e.lineHeight), n),
14769
14769
  size: n,
14770
14770
  style: s,
14771
14771
  weight: tt(t.weight, e.weight),
14772
14772
  string: ""
14773
14773
  };
14774
- return i.string = J2(i), i;
14774
+ return i.string = JP(i), i;
14775
14775
  }
14776
14776
  function cl(t, e, n, s) {
14777
14777
  let i = !0, r, a, o;
@@ -14779,8 +14779,8 @@ function cl(t, e, n, s) {
14779
14779
  if (o = t[r], o !== void 0 && (e !== void 0 && typeof o == "function" && (o = o(e), i = !1), n !== void 0 && vt(o) && (o = o[n % o.length], i = !1), o !== void 0))
14780
14780
  return s && !i && (s.cacheable = !1), o;
14781
14781
  }
14782
- function hP(t, e, n) {
14783
- const { min: s, max: i } = t, r = S2(e, (i - s) / 2), a = (o, l) => n && o === 0 ? 0 : o + l;
14782
+ function h2(t, e, n) {
14783
+ const { min: s, max: i } = t, r = SP(e, (i - s) / 2), a = (o, l) => n && o === 0 ? 0 : o + l;
14784
14784
  return {
14785
14785
  min: a(s, -Math.abs(r)),
14786
14786
  max: a(i, r)
@@ -14817,7 +14817,7 @@ function df(t, e = [
14817
14817
  * A trap for getting property values.
14818
14818
  */
14819
14819
  get(o, l) {
14820
- return Dv(o, l, () => bP(l, e, t, o));
14820
+ return Dv(o, l, () => b2(l, e, t, o));
14821
14821
  },
14822
14822
  /**
14823
14823
  * A trap for Object.getOwnPropertyDescriptor.
@@ -14875,7 +14875,7 @@ function fa(t, e, n, s) {
14875
14875
  * A trap for getting property values.
14876
14876
  */
14877
14877
  get(r, a, o) {
14878
- return Dv(r, a, () => mP(r, a, o));
14878
+ return Dv(r, a, () => m2(r, a, o));
14879
14879
  },
14880
14880
  /**
14881
14881
  * A trap for Object.getOwnPropertyDescriptor.
@@ -14926,19 +14926,19 @@ function Mv(t, e = {
14926
14926
  isIndexable: Yi(s) ? s : () => s
14927
14927
  };
14928
14928
  }
14929
- const fP = (t, e) => t ? t + sf(e) : e, hf = (t, e) => We(e) && t !== "adapters" && (Object.getPrototypeOf(e) === null || e.constructor === Object);
14929
+ const f2 = (t, e) => t ? t + sf(e) : e, hf = (t, e) => We(e) && t !== "adapters" && (Object.getPrototypeOf(e) === null || e.constructor === Object);
14930
14930
  function Dv(t, e, n) {
14931
14931
  if (Object.prototype.hasOwnProperty.call(t, e))
14932
14932
  return t[e];
14933
14933
  const s = n();
14934
14934
  return t[e] = s, s;
14935
14935
  }
14936
- function mP(t, e, n) {
14936
+ function m2(t, e, n) {
14937
14937
  const { _proxy: s, _context: i, _subProxy: r, _descriptors: a } = t;
14938
14938
  let o = s[e];
14939
- return Yi(o) && a.isScriptable(e) && (o = pP(e, o, t, n)), vt(o) && o.length && (o = gP(e, o, t, a.isIndexable)), hf(e, o) && (o = fa(o, i, r && r[e], a)), o;
14939
+ return Yi(o) && a.isScriptable(e) && (o = p2(e, o, t, n)), vt(o) && o.length && (o = g2(e, o, t, a.isIndexable)), hf(e, o) && (o = fa(o, i, r && r[e], a)), o;
14940
14940
  }
14941
- function pP(t, e, n, s) {
14941
+ function p2(t, e, n, s) {
14942
14942
  const { _proxy: i, _context: r, _subProxy: a, _stack: o } = n;
14943
14943
  if (o.has(t))
14944
14944
  throw new Error("Recursion detected: " + Array.from(o).join("->") + "->" + t);
@@ -14946,7 +14946,7 @@ function pP(t, e, n, s) {
14946
14946
  let l = e(r, a || s);
14947
14947
  return o.delete(t), hf(t, l) && (l = ff(i._scopes, i, t, l)), l;
14948
14948
  }
14949
- function gP(t, e, n, s) {
14949
+ function g2(t, e, n, s) {
14950
14950
  const { _proxy: i, _context: r, _subProxy: a, _descriptors: o } = n;
14951
14951
  if (typeof r.index < "u" && s(t))
14952
14952
  return e[r.index % e.length];
@@ -14963,10 +14963,10 @@ function gP(t, e, n, s) {
14963
14963
  function Tv(t, e, n) {
14964
14964
  return Yi(t) ? t(e, n) : t;
14965
14965
  }
14966
- const yP = (t, e) => t === !0 ? e : typeof t == "string" ? au(e, t) : void 0;
14967
- function vP(t, e, n, s, i) {
14966
+ const y2 = (t, e) => t === !0 ? e : typeof t == "string" ? au(e, t) : void 0;
14967
+ function v2(t, e, n, s, i) {
14968
14968
  for (const r of e) {
14969
- const a = yP(n, r);
14969
+ const a = y2(n, r);
14970
14970
  if (a) {
14971
14971
  t.add(a);
14972
14972
  const o = Tv(a._fallback, n, i);
@@ -14986,23 +14986,23 @@ function ff(t, e, n, s) {
14986
14986
  let l = op(o, a, n, r || n, s);
14987
14987
  return l === null || typeof r < "u" && r !== n && (l = op(o, a, r, l, s), l === null) ? !1 : df(Array.from(o), [
14988
14988
  ""
14989
- ], i, r, () => _P(e, n, s));
14989
+ ], i, r, () => _2(e, n, s));
14990
14990
  }
14991
14991
  function op(t, e, n, s, i) {
14992
14992
  for (; n; )
14993
- n = vP(t, e, n, s, i);
14993
+ n = v2(t, e, n, s, i);
14994
14994
  return n;
14995
14995
  }
14996
- function _P(t, e, n) {
14996
+ function _2(t, e, n) {
14997
14997
  const s = t._getTarget();
14998
14998
  e in s || (s[e] = {});
14999
14999
  const i = s[e];
15000
15000
  return vt(i) && We(n) ? n : i || {};
15001
15001
  }
15002
- function bP(t, e, n, s) {
15002
+ function b2(t, e, n, s) {
15003
15003
  let i;
15004
15004
  for (const r of e)
15005
- if (i = Ov(fP(r, t), n), typeof i < "u")
15005
+ if (i = Ov(f2(r, t), n), typeof i < "u")
15006
15006
  return hf(t, i) ? ff(n, s, t, i) : i;
15007
15007
  }
15008
15008
  function Ov(t, e) {
@@ -15016,17 +15016,17 @@ function Ov(t, e) {
15016
15016
  }
15017
15017
  function lp(t) {
15018
15018
  let e = t._keys;
15019
- return e || (e = t._keys = wP(t._scopes)), e;
15019
+ return e || (e = t._keys = w2(t._scopes)), e;
15020
15020
  }
15021
- function wP(t) {
15021
+ function w2(t) {
15022
15022
  const e = /* @__PURE__ */ new Set();
15023
15023
  for (const n of t)
15024
15024
  for (const s of Object.keys(n).filter((i) => !i.startsWith("_")))
15025
15025
  e.add(s);
15026
15026
  return Array.from(e);
15027
15027
  }
15028
- const kP = Number.EPSILON || 1e-14, ma = (t, e) => e < t.length && !t[e].skip && t[e], Pv = (t) => t === "x" ? "y" : "x";
15029
- function xP(t, e, n, s) {
15028
+ const k2 = Number.EPSILON || 1e-14, ma = (t, e) => e < t.length && !t[e].skip && t[e], Pv = (t) => t === "x" ? "y" : "x";
15029
+ function x2(t, e, n, s) {
15030
15030
  const i = t.skip ? e : t, r = e, a = n.skip ? e : n, o = Vd(r, i), l = Vd(a, r);
15031
15031
  let u = o / (o + l), c = l / (o + l);
15032
15032
  u = isNaN(u) ? 0 : u, c = isNaN(c) ? 0 : c;
@@ -15042,19 +15042,19 @@ function xP(t, e, n, s) {
15042
15042
  }
15043
15043
  };
15044
15044
  }
15045
- function SP(t, e, n) {
15045
+ function S2(t, e, n) {
15046
15046
  const s = t.length;
15047
15047
  let i, r, a, o, l, u = ma(t, 0);
15048
15048
  for (let c = 0; c < s - 1; ++c)
15049
15049
  if (l = u, u = ma(t, c + 1), !(!l || !u)) {
15050
- if (no(e[c], 0, kP)) {
15050
+ if (no(e[c], 0, k2)) {
15051
15051
  n[c] = n[c + 1] = 0;
15052
15052
  continue;
15053
15053
  }
15054
15054
  i = n[c] / e[c], r = n[c + 1] / e[c], o = Math.pow(i, 2) + Math.pow(r, 2), !(o <= 9) && (a = 3 / Math.sqrt(o), n[c] = i * a * e[c], n[c + 1] = r * a * e[c]);
15055
15055
  }
15056
15056
  }
15057
- function MP(t, e, n = "x") {
15057
+ function M2(t, e, n = "x") {
15058
15058
  const s = Pv(n), i = t.length;
15059
15059
  let r, a, o, l = ma(t, 0);
15060
15060
  for (let u = 0; u < i; ++u) {
@@ -15064,7 +15064,7 @@ function MP(t, e, n = "x") {
15064
15064
  a && (r = (c - a[n]) / 3, o[`cp1${n}`] = c - r, o[`cp1${s}`] = d - r * e[u]), l && (r = (l[n] - c) / 3, o[`cp2${n}`] = c + r, o[`cp2${s}`] = d + r * e[u]);
15065
15065
  }
15066
15066
  }
15067
- function DP(t, e = "x") {
15067
+ function D2(t, e = "x") {
15068
15068
  const n = Pv(e), s = t.length, i = Array(s).fill(0), r = Array(s);
15069
15069
  let a, o, l, u = ma(t, 0);
15070
15070
  for (a = 0; a < s; ++a)
@@ -15075,26 +15075,26 @@ function DP(t, e = "x") {
15075
15075
  }
15076
15076
  r[a] = o ? u ? ha(i[a - 1]) !== ha(i[a]) ? 0 : (i[a - 1] + i[a]) / 2 : i[a - 1] : i[a];
15077
15077
  }
15078
- SP(t, i, r), MP(t, r, e);
15078
+ S2(t, i, r), M2(t, r, e);
15079
15079
  }
15080
15080
  function dl(t, e, n) {
15081
15081
  return Math.max(Math.min(t, n), e);
15082
15082
  }
15083
- function TP(t, e) {
15083
+ function T2(t, e) {
15084
15084
  let n, s, i, r, a, o = Ks(t[0], e);
15085
15085
  for (n = 0, s = t.length; n < s; ++n)
15086
15086
  a = r, r = o, o = n < s - 1 && Ks(t[n + 1], e), r && (i = t[n], a && (i.cp1x = dl(i.cp1x, e.left, e.right), i.cp1y = dl(i.cp1y, e.top, e.bottom)), o && (i.cp2x = dl(i.cp2x, e.left, e.right), i.cp2y = dl(i.cp2y, e.top, e.bottom)));
15087
15087
  }
15088
- function OP(t, e, n, s, i) {
15088
+ function O2(t, e, n, s, i) {
15089
15089
  let r, a, o, l;
15090
15090
  if (e.spanGaps && (t = t.filter((u) => !u.skip)), e.cubicInterpolationMode === "monotone")
15091
- DP(t, i);
15091
+ D2(t, i);
15092
15092
  else {
15093
15093
  let u = s ? t[t.length - 1] : t[0];
15094
15094
  for (r = 0, a = t.length; r < a; ++r)
15095
- o = t[r], l = xP(u, o, t[Math.min(r + 1, a - (s ? 0 : 1)) % a], e.tension), o.cp1x = l.previous.x, o.cp1y = l.previous.y, o.cp2x = l.next.x, o.cp2y = l.next.y, u = o;
15095
+ o = t[r], l = x2(u, o, t[Math.min(r + 1, a - (s ? 0 : 1)) % a], e.tension), o.cp1x = l.previous.x, o.cp1y = l.previous.y, o.cp2x = l.next.x, o.cp2y = l.next.y, u = o;
15096
15096
  }
15097
- e.capBezierPoints && TP(t, n);
15097
+ e.capBezierPoints && T2(t, n);
15098
15098
  }
15099
15099
  function mf() {
15100
15100
  return typeof window < "u" && typeof document < "u";
@@ -15108,10 +15108,10 @@ function du(t, e, n) {
15108
15108
  return typeof t == "string" ? (s = parseInt(t, 10), t.indexOf("%") !== -1 && (s = s / 100 * e.parentNode[n])) : s = t, s;
15109
15109
  }
15110
15110
  const Bu = (t) => t.ownerDocument.defaultView.getComputedStyle(t, null);
15111
- function PP(t, e) {
15111
+ function P2(t, e) {
15112
15112
  return Bu(t).getPropertyValue(e);
15113
15113
  }
15114
- const CP = [
15114
+ const C2 = [
15115
15115
  "top",
15116
15116
  "right",
15117
15117
  "bottom",
@@ -15121,16 +15121,16 @@ function yr(t, e, n) {
15121
15121
  const s = {};
15122
15122
  n = n ? "-" + n : "";
15123
15123
  for (let i = 0; i < 4; i++) {
15124
- const r = CP[i];
15124
+ const r = C2[i];
15125
15125
  s[r] = parseFloat(t[e + "-" + r + n]) || 0;
15126
15126
  }
15127
15127
  return s.width = s.left + s.right, s.height = s.top + s.bottom, s;
15128
15128
  }
15129
- const AP = (t, e, n) => (t > 0 || e > 0) && (!n || !n.shadowRoot);
15130
- function RP(t, e) {
15129
+ const A2 = (t, e, n) => (t > 0 || e > 0) && (!n || !n.shadowRoot);
15130
+ function R2(t, e) {
15131
15131
  const n = t.touches, s = n && n.length ? n[0] : t, { offsetX: i, offsetY: r } = s;
15132
15132
  let a = !1, o, l;
15133
- if (AP(i, r, t.target))
15133
+ if (A2(i, r, t.target))
15134
15134
  o = i, l = r;
15135
15135
  else {
15136
15136
  const u = e.getBoundingClientRect();
@@ -15145,14 +15145,14 @@ function RP(t, e) {
15145
15145
  function ir(t, e) {
15146
15146
  if ("native" in t)
15147
15147
  return t;
15148
- const { canvas: n, currentDevicePixelRatio: s } = e, i = Bu(n), r = i.boxSizing === "border-box", a = yr(i, "padding"), o = yr(i, "border", "width"), { x: l, y: u, box: c } = RP(t, n), d = a.left + (c && o.left), h = a.top + (c && o.top);
15148
+ const { canvas: n, currentDevicePixelRatio: s } = e, i = Bu(n), r = i.boxSizing === "border-box", a = yr(i, "padding"), o = yr(i, "border", "width"), { x: l, y: u, box: c } = R2(t, n), d = a.left + (c && o.left), h = a.top + (c && o.top);
15149
15149
  let { width: f, height: p } = e;
15150
15150
  return r && (f -= a.width + o.width, p -= a.height + o.height), {
15151
15151
  x: Math.round((l - d) / f * n.width / s),
15152
15152
  y: Math.round((u - h) / p * n.height / s)
15153
15153
  };
15154
15154
  }
15155
- function EP(t, e, n) {
15155
+ function E2(t, e, n) {
15156
15156
  let s, i;
15157
15157
  if (e === void 0 || n === void 0) {
15158
15158
  const r = pf(t);
@@ -15171,8 +15171,8 @@ function EP(t, e, n) {
15171
15171
  };
15172
15172
  }
15173
15173
  const hl = (t) => Math.round(t * 10) / 10;
15174
- function $P(t, e, n, s) {
15175
- const i = Bu(t), r = yr(i, "margin"), a = du(i.maxWidth, t, "clientWidth") || lu, o = du(i.maxHeight, t, "clientHeight") || lu, l = EP(t, e, n);
15174
+ function $2(t, e, n, s) {
15175
+ const i = Bu(t), r = yr(i, "margin"), a = du(i.maxWidth, t, "clientWidth") || lu, o = du(i.maxHeight, t, "clientHeight") || lu, l = E2(t, e, n);
15176
15176
  let { width: u, height: c } = l;
15177
15177
  if (i.boxSizing === "content-box") {
15178
15178
  const h = yr(i, "border", "width"), f = yr(i, "padding");
@@ -15189,7 +15189,7 @@ function up(t, e, n) {
15189
15189
  const a = t.canvas;
15190
15190
  return a.style && (n || !a.style.height && !a.style.width) && (a.style.height = `${t.height}px`, a.style.width = `${t.width}px`), t.currentDevicePixelRatio !== s || a.height !== i || a.width !== r ? (t.currentDevicePixelRatio = s, a.height = i, a.width = r, t.ctx.setTransform(s, 0, 0, s, 0, 0), !0) : !1;
15191
15191
  }
15192
- const IP = function() {
15192
+ const I2 = function() {
15193
15193
  let t = !1;
15194
15194
  try {
15195
15195
  const e = {
@@ -15203,7 +15203,7 @@ const IP = function() {
15203
15203
  return t;
15204
15204
  }();
15205
15205
  function cp(t, e) {
15206
- const n = PP(t, e), s = n && n.match(/^(\d+)(\.\d+)?px$/);
15206
+ const n = P2(t, e), s = n && n.match(/^(\d+)(\.\d+)?px$/);
15207
15207
  return s ? +s[1] : void 0;
15208
15208
  }
15209
15209
  function rr(t, e, n, s) {
@@ -15212,13 +15212,13 @@ function rr(t, e, n, s) {
15212
15212
  y: t.y + n * (e.y - t.y)
15213
15213
  };
15214
15214
  }
15215
- function NP(t, e, n, s) {
15215
+ function N2(t, e, n, s) {
15216
15216
  return {
15217
15217
  x: t.x + n * (e.x - t.x),
15218
15218
  y: s === "middle" ? n < 0.5 ? t.y : e.y : s === "after" ? n < 1 ? t.y : e.y : n > 0 ? e.y : t.y
15219
15219
  };
15220
15220
  }
15221
- function LP(t, e, n, s) {
15221
+ function L2(t, e, n, s) {
15222
15222
  const i = {
15223
15223
  x: t.cp2x,
15224
15224
  y: t.cp2y
@@ -15228,7 +15228,7 @@ function LP(t, e, n, s) {
15228
15228
  }, a = rr(t, i, n), o = rr(i, r, n), l = rr(r, e, n), u = rr(a, o, n), c = rr(o, l, n);
15229
15229
  return rr(u, c, n);
15230
15230
  }
15231
- const FP = function(t, e) {
15231
+ const F2 = function(t, e) {
15232
15232
  return {
15233
15233
  x(n) {
15234
15234
  return t + t + e - n;
@@ -15246,7 +15246,7 @@ const FP = function(t, e) {
15246
15246
  return n - s;
15247
15247
  }
15248
15248
  };
15249
- }, YP = function() {
15249
+ }, Y2 = function() {
15250
15250
  return {
15251
15251
  x(t) {
15252
15252
  return t;
@@ -15265,22 +15265,22 @@ const FP = function(t, e) {
15265
15265
  };
15266
15266
  };
15267
15267
  function Hc(t, e, n) {
15268
- return t ? FP(e, n) : YP();
15268
+ return t ? F2(e, n) : Y2();
15269
15269
  }
15270
- function VP(t, e) {
15270
+ function V2(t, e) {
15271
15271
  let n, s;
15272
15272
  (e === "ltr" || e === "rtl") && (n = t.canvas.style, s = [
15273
15273
  n.getPropertyValue("direction"),
15274
15274
  n.getPropertyPriority("direction")
15275
15275
  ], n.setProperty("direction", e, "important"), t.prevTextDirection = s);
15276
15276
  }
15277
- function BP(t, e) {
15277
+ function B2(t, e) {
15278
15278
  e !== void 0 && (delete t.prevTextDirection, t.canvas.style.setProperty("direction", e[0], e[1]));
15279
15279
  }
15280
15280
  function Cv(t) {
15281
15281
  return t === "angle" ? {
15282
15282
  between: vv,
15283
- compare: I2,
15283
+ compare: IP,
15284
15284
  normalize: Tn
15285
15285
  } : {
15286
15286
  between: _v,
@@ -15296,7 +15296,7 @@ function dp({ start: t, end: e, count: n, loop: s, style: i }) {
15296
15296
  style: i
15297
15297
  };
15298
15298
  }
15299
- function WP(t, e, n) {
15299
+ function W2(t, e, n) {
15300
15300
  const { property: s, start: i, end: r } = n, { between: a, normalize: o } = Cv(s), l = e.length;
15301
15301
  let { start: u, end: c, loop: d } = t, h, f;
15302
15302
  if (d) {
@@ -15316,7 +15316,7 @@ function Av(t, e, n) {
15316
15316
  return [
15317
15317
  t
15318
15318
  ];
15319
- const { property: s, start: i, end: r } = n, a = e.length, { compare: o, between: l, normalize: u } = Cv(s), { start: c, end: d, loop: h, style: f } = WP(t, e, n), p = [];
15319
+ const { property: s, start: i, end: r } = n, a = e.length, { compare: o, between: l, normalize: u } = Cv(s), { start: c, end: d, loop: h, style: f } = W2(t, e, n), p = [];
15320
15320
  let m = !1, g = null, y, w, b;
15321
15321
  const D = () => l(i, b, y) && o(i, b) !== 0, S = () => o(r, y) === 0 || l(r, b, y), P = () => m || D(), M = () => !m || S();
15322
15322
  for (let A = c, R = c; A <= d; ++A)
@@ -15343,7 +15343,7 @@ function Rv(t, e) {
15343
15343
  }
15344
15344
  return n;
15345
15345
  }
15346
- function zP(t, e, n, s) {
15346
+ function z2(t, e, n, s) {
15347
15347
  let i = 0, r = e - 1;
15348
15348
  if (n && !s)
15349
15349
  for (; i < e && !t[i].skip; )
@@ -15357,7 +15357,7 @@ function zP(t, e, n, s) {
15357
15357
  end: r
15358
15358
  };
15359
15359
  }
15360
- function HP(t, e, n, s) {
15360
+ function H2(t, e, n, s) {
15361
15361
  const i = t.length, r = [];
15362
15362
  let a = e, o = t[e], l;
15363
15363
  for (l = e + 1; l <= n; ++l) {
@@ -15374,11 +15374,11 @@ function HP(t, e, n, s) {
15374
15374
  loop: s
15375
15375
  }), r;
15376
15376
  }
15377
- function UP(t, e) {
15377
+ function U2(t, e) {
15378
15378
  const n = t.points, s = t.options.spanGaps, i = n.length;
15379
15379
  if (!i)
15380
15380
  return [];
15381
- const r = !!t._loop, { start: a, end: o } = zP(n, i, r, s);
15381
+ const r = !!t._loop, { start: a, end: o } = z2(n, i, r, s);
15382
15382
  if (s === !0)
15383
15383
  return hp(t, [
15384
15384
  {
@@ -15388,12 +15388,12 @@ function UP(t, e) {
15388
15388
  }
15389
15389
  ], n, e);
15390
15390
  const l = o < a ? o + i : o, u = !!t._fullLoop && a === 0 && o === i - 1;
15391
- return hp(t, HP(n, a, l, u), n, e);
15391
+ return hp(t, H2(n, a, l, u), n, e);
15392
15392
  }
15393
15393
  function hp(t, e, n, s) {
15394
- return !s || !s.setContext || !n ? e : jP(t, e, n, s);
15394
+ return !s || !s.setContext || !n ? e : j2(t, e, n, s);
15395
15395
  }
15396
- function jP(t, e, n, s) {
15396
+ function j2(t, e, n, s) {
15397
15397
  const i = t._chart.getContext(), r = fp(t.options), { _datasetIndex: a, options: { spanGaps: o } } = t, l = n.length, u = [];
15398
15398
  let c = r, d = e[0].start, h = d;
15399
15399
  function f(p, m, g, y) {
@@ -15423,7 +15423,7 @@ function jP(t, e, n, s) {
15423
15423
  p0DataIndex: (h - 1) % l,
15424
15424
  p1DataIndex: h % l,
15425
15425
  datasetIndex: a
15426
- }))), qP(g, c) && f(d, h - 1, p.loop, c), m = y, c = g;
15426
+ }))), q2(g, c) && f(d, h - 1, p.loop, c), m = y, c = g;
15427
15427
  }
15428
15428
  d < h - 1 && f(d, h - 1, p.loop, c);
15429
15429
  }
@@ -15440,7 +15440,7 @@ function fp(t) {
15440
15440
  borderColor: t.borderColor
15441
15441
  };
15442
15442
  }
15443
- function qP(t, e) {
15443
+ function q2(t, e) {
15444
15444
  if (!e)
15445
15445
  return !1;
15446
15446
  const n = [], s = function(i, r) {
@@ -15454,7 +15454,7 @@ function qP(t, e) {
15454
15454
  * (c) 2024 Chart.js Contributors
15455
15455
  * Released under the MIT License
15456
15456
  */
15457
- class GP {
15457
+ class G2 {
15458
15458
  constructor() {
15459
15459
  this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
15460
15460
  }
@@ -15530,8 +15530,8 @@ class GP {
15530
15530
  return this._charts.delete(e);
15531
15531
  }
15532
15532
  }
15533
- var Ws = /* @__PURE__ */ new GP();
15534
- const mp = "transparent", ZP = {
15533
+ var Ws = /* @__PURE__ */ new G2();
15534
+ const mp = "transparent", Z2 = {
15535
15535
  boolean(t, e, n) {
15536
15536
  return n > 0.5 ? e : t;
15537
15537
  },
@@ -15543,7 +15543,7 @@ const mp = "transparent", ZP = {
15543
15543
  return t + (e - t) * n;
15544
15544
  }
15545
15545
  };
15546
- class KP {
15546
+ class K2 {
15547
15547
  constructor(e, n, s, i) {
15548
15548
  const r = n[s];
15549
15549
  i = cl([
@@ -15557,7 +15557,7 @@ class KP {
15557
15557
  r,
15558
15558
  i
15559
15559
  ]);
15560
- this._active = !0, this._fn = e.fn || ZP[e.type || typeof a], this._easing = so[e.easing] || so.linear, this._start = Math.floor(Date.now() + (e.delay || 0)), this._duration = this._total = Math.floor(e.duration), this._loop = !!e.loop, this._target = n, this._prop = s, this._from = a, this._to = i, this._promises = void 0;
15560
+ this._active = !0, this._fn = e.fn || Z2[e.type || typeof a], this._easing = so[e.easing] || so.linear, this._start = Math.floor(Date.now() + (e.delay || 0)), this._duration = this._total = Math.floor(e.duration), this._loop = !!e.loop, this._target = n, this._prop = s, this._from = a, this._to = i, this._promises = void 0;
15561
15561
  }
15562
15562
  active() {
15563
15563
  return this._active;
@@ -15632,11 +15632,11 @@ class Ev {
15632
15632
  });
15633
15633
  }
15634
15634
  _animateOptions(e, n) {
15635
- const s = n.options, i = QP(e, s);
15635
+ const s = n.options, i = Q2(e, s);
15636
15636
  if (!i)
15637
15637
  return [];
15638
15638
  const r = this._createAnimations(i, s);
15639
- return s.$shared && XP(e.options.$animations, s).then(() => {
15639
+ return s.$shared && X2(e.options.$animations, s).then(() => {
15640
15640
  e.options = s;
15641
15641
  }, () => {
15642
15642
  }), r;
@@ -15665,7 +15665,7 @@ class Ev {
15665
15665
  e[u] = c;
15666
15666
  continue;
15667
15667
  }
15668
- r[u] = d = new KP(h, e, u, c), i.push(d);
15668
+ r[u] = d = new K2(h, e, u, c), i.push(d);
15669
15669
  }
15670
15670
  return i;
15671
15671
  }
@@ -15679,7 +15679,7 @@ class Ev {
15679
15679
  return Ws.add(this._chart, s), !0;
15680
15680
  }
15681
15681
  }
15682
- function XP(t, e) {
15682
+ function X2(t, e) {
15683
15683
  const n = [], s = Object.keys(e);
15684
15684
  for (let i = 0; i < s.length; i++) {
15685
15685
  const r = t[s[i]];
@@ -15687,7 +15687,7 @@ function XP(t, e) {
15687
15687
  }
15688
15688
  return Promise.all(n);
15689
15689
  }
15690
- function QP(t, e) {
15690
+ function Q2(t, e) {
15691
15691
  if (!e)
15692
15692
  return;
15693
15693
  let n = t.options;
@@ -15707,7 +15707,7 @@ function pp(t, e) {
15707
15707
  end: s ? i : r
15708
15708
  };
15709
15709
  }
15710
- function JP(t, e, n) {
15710
+ function J2(t, e, n) {
15711
15711
  if (n === !1)
15712
15712
  return !1;
15713
15713
  const s = pp(t, n), i = pp(e, n);
@@ -15883,7 +15883,7 @@ class ao {
15883
15883
  const i = this._cachedMeta;
15884
15884
  $a(i), i._parsed = [];
15885
15885
  }
15886
- n && Object.isExtensible(n) && Y2(n, this), this._syncList = [], this._data = n;
15886
+ n && Object.isExtensible(n) && YP(n, this), this._syncList = [], this._data = n;
15887
15887
  }
15888
15888
  }
15889
15889
  addElements() {
@@ -16007,7 +16007,7 @@ class ao {
16007
16007
  }
16008
16008
  _update(e) {
16009
16009
  const n = this._cachedMeta;
16010
- this.update(e || "default"), n._clip = eC(tt(this.options.clip, JP(n.xScale, n.yScale, this.getMaxOverflow())));
16010
+ this.update(e || "default"), n._clip = eC(tt(this.options.clip, J2(n.xScale, n.yScale, this.getMaxOverflow())));
16011
16011
  }
16012
16012
  update(e) {
16013
16013
  }
@@ -16200,8 +16200,8 @@ class Fl extends ao {
16200
16200
  }
16201
16201
  update(e) {
16202
16202
  const n = this._cachedMeta, { dataset: s, data: i = [], _dataset: r } = n, a = this.chart._animationsDisabled;
16203
- let { start: o, count: l } = z2(n, i, a);
16204
- this._drawStart = o, this._drawCount = l, H2(n) && (o = 0, l = i.length), s._chart = this.chart, s._datasetIndex = this.index, s._decimated = !!r._decimated, s.points = i;
16203
+ let { start: o, count: l } = zP(n, i, a);
16204
+ this._drawStart = o, this._drawCount = l, HP(n) && (o = 0, l = i.length), s._chart = this.chart, s._datasetIndex = this.index, s._decimated = !!r._decimated, s.points = i;
16205
16205
  const u = this.resolveDatasetElementOptions(e);
16206
16206
  this.options.showLine || (u.borderWidth = 0), u.segment = this.options.segment, this.updateElement(s, void 0, {
16207
16207
  animated: !a,
@@ -16300,7 +16300,7 @@ var lC = {
16300
16300
  function uC(t, e, n, s) {
16301
16301
  const { controller: i, data: r, _sorted: a } = t, o = i._cachedMeta.iScale;
16302
16302
  if (o && e === o.axis && e !== "r" && a && r.length) {
16303
- const l = o._reversePixels ? L2 : lr;
16303
+ const l = o._reversePixels ? LP : lr;
16304
16304
  if (s) {
16305
16305
  if (i._sharedOptions) {
16306
16306
  const u = r[0], c = typeof u.getRange == "function" && u.getRange(e);
@@ -16353,7 +16353,7 @@ function dC(t, e, n, s) {
16353
16353
  const { startAngle: u, endAngle: c } = a.getProps([
16354
16354
  "startAngle",
16355
16355
  "endAngle"
16356
- ], s), { angle: d } = $2(a, {
16356
+ ], s), { angle: d } = $P(a, {
16357
16357
  x: e.x,
16358
16358
  y: e.y
16359
16359
  });
@@ -16740,7 +16740,7 @@ function xC(t, e) {
16740
16740
  }
16741
16741
  return t;
16742
16742
  }
16743
- const Fv = IP ? {
16743
+ const Fv = I2 ? {
16744
16744
  passive: !0
16745
16745
  } : !1;
16746
16746
  function SC(t, e, n) {
@@ -16869,7 +16869,7 @@ class EC extends Lv {
16869
16869
  return window.devicePixelRatio;
16870
16870
  }
16871
16871
  getMaximumSize(e, n, s, i) {
16872
- return $P(e, n, s, i);
16872
+ return $2(e, n, s, i);
16873
16873
  }
16874
16874
  isAttached(e) {
16875
16875
  const n = pf(e);
@@ -16933,7 +16933,7 @@ function LC(t, e, n) {
16933
16933
  const s = VC(t), i = e.length / n;
16934
16934
  if (!s)
16935
16935
  return Math.max(i, 1);
16936
- const r = R2(s);
16936
+ const r = RP(s);
16937
16937
  for (let a = 0, o = r.length - 1; a < o; a++) {
16938
16938
  const l = r[a];
16939
16939
  if (l > i)
@@ -17019,7 +17019,7 @@ function UC(t, e, n) {
17019
17019
  });
17020
17020
  }
17021
17021
  function jC(t, e, n) {
17022
- let s = W2(t);
17022
+ let s = WP(t);
17023
17023
  return (n && e !== "right" || !n && e === "right") && (s = BC(s)), s;
17024
17024
  }
17025
17025
  function qC(t, e, n, s) {
@@ -17120,7 +17120,7 @@ class Or extends xr {
17120
17120
  right: 0,
17121
17121
  top: 0,
17122
17122
  bottom: 0
17123
- }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = hP(this, r, i), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
17123
+ }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = h2(this, r, i), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
17124
17124
  const l = o < this.ticks.length;
17125
17125
  this._convertTicksToLabels(l ? Pp(this.ticks, o) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = IC(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
17126
17126
  }
@@ -17321,7 +17321,7 @@ class Or extends xr {
17321
17321
  getPixelForDecimal(e) {
17322
17322
  this._reversePixels && (e = 1 - e);
17323
17323
  const n = this._startPixel + e * this._length;
17324
- return N2(this._alignToPixels ? Zi(this.chart, n, 0) : n);
17324
+ return NP(this._alignToPixels ? Zi(this.chart, n, 0) : n);
17325
17325
  }
17326
17326
  getDecimalForPixel(e) {
17327
17327
  const n = (e - this._startPixel) / this._length;
@@ -18189,7 +18189,7 @@ let jo = (vi = class {
18189
18189
  const a = s.createResolver(s.chartOptionScopes(), this.getContext());
18190
18190
  this.platform = new (s.platform || $C(i))(), this.platform.updateConfig(s);
18191
18191
  const o = this.platform.acquireContext(i, a.aspectRatio), l = o && o.canvas, u = l && l.height, c = l && l.width;
18192
- if (this.id = x2(), this.ctx = o, this.canvas = l, this.width = c, this.height = u, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new QC(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = B2((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], Vl[this.id] = this, !o || !l) {
18192
+ if (this.id = xP(), this.ctx = o, this.canvas = l, this.width = c, this.height = u, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new QC(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = BP((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], Vl[this.id] = this, !o || !l) {
18193
18193
  console.error("Failed to create chart: can't acquire context from the given item");
18194
18194
  return;
18195
18195
  }
@@ -18633,7 +18633,7 @@ let jo = (vi = class {
18633
18633
  return s.cancelable = !1, this.notifyPlugins("afterEvent", s, i), (r || s.changed) && this.render(), this;
18634
18634
  }
18635
18635
  _handleEvent(e, n, s) {
18636
- const { _active: i = [], options: r } = this, a = n, o = this._getActiveElements(e, i, s, a), l = P2(e), u = gA(e, this._lastEvent, s, l);
18636
+ const { _active: i = [], options: r } = this, a = n, o = this._getActiveElements(e, i, s, a), l = PP(e), u = gA(e, this._lastEvent, s, l);
18637
18637
  s && (this._lastEvent = null, wt(r.onHover, [
18638
18638
  e,
18639
18639
  o,
@@ -18665,7 +18665,7 @@ function vA(t, e, n) {
18665
18665
  t.lineTo(n.x, n.y);
18666
18666
  }
18667
18667
  function _A(t) {
18668
- return t.stepped ? nP : t.tension || t.cubicInterpolationMode === "monotone" ? sP : vA;
18668
+ return t.stepped ? n2 : t.tension || t.cubicInterpolationMode === "monotone" ? s2 : vA;
18669
18669
  }
18670
18670
  function Uv(t, e, n = {}) {
18671
18671
  const s = t.length, { start: i = 0, end: r = s - 1 } = n, { start: a, end: o } = e, l = Math.max(i, a), u = Math.min(r, o), c = i < a && r < a || i > o && r > o;
@@ -18702,7 +18702,7 @@ function jd(t) {
18702
18702
  return !t._decimated && !t._loop && !e.tension && e.cubicInterpolationMode !== "monotone" && !e.stepped && !n ? wA : bA;
18703
18703
  }
18704
18704
  function kA(t) {
18705
- return t.stepped ? NP : t.tension || t.cubicInterpolationMode === "monotone" ? LP : rr;
18705
+ return t.stepped ? N2 : t.tension || t.cubicInterpolationMode === "monotone" ? L2 : rr;
18706
18706
  }
18707
18707
  function xA(t, e, n, s) {
18708
18708
  let i = e._path;
@@ -18728,7 +18728,7 @@ class Xs extends xr {
18728
18728
  const s = this.options;
18729
18729
  if ((s.tension || s.cubicInterpolationMode === "monotone") && !s.stepped && !this._pointsUpdated) {
18730
18730
  const i = s.spanGaps ? this._loop : this._fullLoop;
18731
- OP(this._points, s, e, i, n), this._pointsUpdated = !0;
18731
+ O2(this._points, s, e, i, n), this._pointsUpdated = !0;
18732
18732
  }
18733
18733
  }
18734
18734
  set points(e) {
@@ -18738,7 +18738,7 @@ class Xs extends xr {
18738
18738
  return this._points;
18739
18739
  }
18740
18740
  get segments() {
18741
- return this._segments || (this._segments = UP(this, this.options.segment));
18741
+ return this._segments || (this._segments = U2(this, this.options.segment));
18742
18742
  }
18743
18743
  first() {
18744
18744
  const e = this.segments, n = this.points;
@@ -19627,7 +19627,7 @@ class Gd extends xr {
19627
19627
  };
19628
19628
  s = Math.abs(s) < 1e-3 ? 0 : s;
19629
19629
  const a = Qn(n.padding), o = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
19630
- n.enabled && o && (e.save(), e.globalAlpha = s, this.drawBackground(r, e, i, n), VP(e, n.textDirection), r.y += a.top, this.drawTitle(r, e, n), this.drawBody(r, e, n), this.drawFooter(r, e, n), BP(e, n.textDirection), e.restore());
19630
+ n.enabled && o && (e.save(), e.globalAlpha = s, this.drawBackground(r, e, i, n), V2(e, n.textDirection), r.y += a.top, this.drawTitle(r, e, n), this.drawBody(r, e, n), this.drawFooter(r, e, n), B2(e, n.textDirection), e.restore());
19631
19631
  }
19632
19632
  getActiveElements() {
19633
19633
  return this._active || [];
@@ -19874,7 +19874,7 @@ function sR(t, e) {
19874
19874
  value: g
19875
19875
  }
19876
19876
  ];
19877
- R = Math.ceil(g / S) - Math.floor(m / S), R > p && (S = Qm(R * S / p / f) * f), ut(l) || (P = Math.pow(10, l), S = Math.ceil(S * P) / P), i === "ticks" ? (M = Math.floor(m / S) * S, A = Math.ceil(g / S) * S) : (M = m, A = g), y && w && r && E2((o - a) / r, S / 1e3) ? (R = Math.round(Math.min((o - a) / S, c)), S = (o - a) / R, M = a, A = o) : b ? (M = y ? a : M, A = w ? o : A, R = u - 1, S = (A - M) / R) : (R = (A - M) / S, no(R, Math.round(R), S / 1e3) ? R = Math.round(R) : R = Math.ceil(R));
19877
+ R = Math.ceil(g / S) - Math.floor(m / S), R > p && (S = Qm(R * S / p / f) * f), ut(l) || (P = Math.pow(10, l), S = Math.ceil(S * P) / P), i === "ticks" ? (M = Math.floor(m / S) * S, A = Math.ceil(g / S) * S) : (M = m, A = g), y && w && r && EP((o - a) / r, S / 1e3) ? (R = Math.round(Math.min((o - a) / S, c)), S = (o - a) / R, M = a, A = o) : b ? (M = y ? a : M, A = w ? o : A, R = u - 1, S = (A - M) / R) : (R = (A - M) / S, no(R, Math.round(R), S / 1e3) ? R = Math.round(R) : R = Math.ceil(R));
19878
19878
  const H = Math.max(Jm(S), Jm(M));
19879
19879
  P = Math.pow(10, ut(l) ? H : l), M = Math.round(M * P) / P, A = Math.round(A * P) / P;
19880
19880
  let X = 0;
@@ -20083,7 +20083,7 @@ function aR(t, e, n) {
20083
20083
  return n = vt(n) ? n : [
20084
20084
  n
20085
20085
  ], {
20086
- w: eP(t, e.string, n),
20086
+ w: e2(t, e.string, n),
20087
20087
  h: n.length * e.lineHeight
20088
20088
  };
20089
20089
  }
@@ -20543,7 +20543,7 @@ class gu extends Or {
20543
20543
  buildTicks() {
20544
20544
  const e = this.options, n = e.time, s = e.ticks, i = s.source === "labels" ? this.getLabelTimestamps() : this._generate();
20545
20545
  e.bounds === "ticks" && i.length && (this.min = this._userMin || i[0], this.max = this._userMax || i[i.length - 1]);
20546
- const r = this.min, a = this.max, o = F2(i, r, a);
20546
+ const r = this.min, a = this.max, o = FP(i, r, a);
20547
20547
  return this._unit = n.unit || (s.autoSkip ? rg(n.minUnit, this.min, this.max, this._getLabelCapacity(r)) : _R(this, o.length, n.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : bR(this._unit), this.initOffsets(i), e.reverse && o.reverse(), og(this, o, this._majorUnit);
20548
20548
  }
20549
20549
  afterAutoSkip() {
@@ -20639,7 +20639,7 @@ class gu extends Or {
20639
20639
  return this._cache.labels = this._normalized ? e : this.normalize(e);
20640
20640
  }
20641
20641
  normalize(e) {
20642
- return V2(e.sort(sg));
20642
+ return VP(e.sort(sg));
20643
20643
  }
20644
20644
  }
20645
20645
  Z(gu, "id", "time"), Z(gu, "defaults", {
@@ -21033,7 +21033,7 @@ const e_ = /* @__PURE__ */ PR("line", Fl), CR = { class: "chart-container" }, t_
21033
21033
  return an(
21034
21034
  () => e.isMask,
21035
21035
  () => {
21036
- console.log(2222), n.value += 1;
21036
+ n.value += 1;
21037
21037
  },
21038
21038
  { immediate: !0 }
21039
21039
  ), (d, h) => (T(), E("div", CR, [
@@ -21408,7 +21408,7 @@ const e_ = /* @__PURE__ */ PR("line", Fl), CR = { class: "chart-container" }, t_
21408
21408
  class: ue(["calendar-widget__point__value", p.class ? p.class : ""])
21409
21409
  }, re(k(Fe)(t.isMask, p.value, { repeat: 5 })), 3)
21410
21410
  ]))), 256)),
21411
- ce(k(e2), {
21411
+ ce(k(eP), {
21412
21412
  isHidden: t.isMask,
21413
21413
  long: (h = t.dailyStatData) == null ? void 0 : h.long_count,
21414
21414
  short: (f = t.dailyStatData) == null ? void 0 : f.short_count
@@ -30348,7 +30348,7 @@ export {
30348
30348
  Ke as Icon,
30349
30349
  JV as Input,
30350
30350
  t_ as LineChart,
30351
- e2 as LongShort,
30351
+ eP as LongShort,
30352
30352
  s5 as Menu,
30353
30353
  l5 as NavigationTab,
30354
30354
  dv as NoMore,