genus-ui 1.82.20 → 1.83.20

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.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var xa = Object.defineProperty;
2
2
  var Ca = (i, t, e) => t in i ? xa(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var Y = (i, t, e) => (Ca(i, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { css as C, LitElement as tt, html as B } from "lit";
5
- import { property as G, state as J, customElement as et, queryAssignedElements as mo, query as Li } from "lit/decorators.js";
5
+ import { property as G, state as J, customElement as et, queryAssignedElements as Mo, query as Li } from "lit/decorators.js";
6
6
  import { when as ue } from "lit/directives/when.js";
7
7
  import { unsafeHTML as Ls } from "lit/directives/unsafe-html.js";
8
8
  const ya = C`
@@ -831,7 +831,7 @@ let zt = class extends tt {
831
831
  };
832
832
  zt.styles = [Va, Wa, Na, Za, Ka, Ua];
833
833
  Be([
834
- mo()
834
+ Mo()
835
835
  ], zt.prototype, "_tabContents", 2);
836
836
  Be([
837
837
  J()
@@ -1120,7 +1120,7 @@ Yt([
1120
1120
  G()
1121
1121
  ], gt.prototype, "direction", 2);
1122
1122
  Yt([
1123
- mo()
1123
+ Mo()
1124
1124
  ], gt.prototype, "stepContents", 2);
1125
1125
  Yt([
1126
1126
  J()
@@ -1280,7 +1280,7 @@ var gr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Zt = (i, t
1280
1280
  (a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
1281
1281
  return s && n && gr(t, e, n), n;
1282
1282
  };
1283
- let Mt = class extends tt {
1283
+ let mt = class extends tt {
1284
1284
  constructor() {
1285
1285
  super(), this.groupName = "", this.labelText = "", this.inputName = "", this.selectedOption = "", this.options = [], this.withoutLabel = !1, this.withoutIcon = !1, this._internals = this.attachInternals();
1286
1286
  }
@@ -1342,32 +1342,32 @@ let Mt = class extends tt {
1342
1342
  `;
1343
1343
  }
1344
1344
  };
1345
- Mt.styles = [cr, lr, hr, Ar, dr, rr];
1346
- Mt.formAssociated = !0;
1345
+ mt.styles = [cr, lr, hr, Ar, dr, rr];
1346
+ mt.formAssociated = !0;
1347
1347
  Zt([
1348
1348
  G({ attribute: "group-name" })
1349
- ], Mt.prototype, "groupName", 2);
1349
+ ], mt.prototype, "groupName", 2);
1350
1350
  Zt([
1351
1351
  G({ attribute: "label-text" })
1352
- ], Mt.prototype, "labelText", 2);
1352
+ ], mt.prototype, "labelText", 2);
1353
1353
  Zt([
1354
1354
  G({ attribute: "name", reflect: !0 })
1355
- ], Mt.prototype, "inputName", 2);
1355
+ ], mt.prototype, "inputName", 2);
1356
1356
  Zt([
1357
1357
  G({ attribute: "selected-option" })
1358
- ], Mt.prototype, "selectedOption", 2);
1358
+ ], mt.prototype, "selectedOption", 2);
1359
1359
  Zt([
1360
1360
  G({ attribute: "group-options", type: Array })
1361
- ], Mt.prototype, "options", 2);
1361
+ ], mt.prototype, "options", 2);
1362
1362
  Zt([
1363
1363
  G({ attribute: "without-label", type: Boolean })
1364
- ], Mt.prototype, "withoutLabel", 2);
1364
+ ], mt.prototype, "withoutLabel", 2);
1365
1365
  Zt([
1366
1366
  G({ attribute: "without-icon", type: Boolean })
1367
- ], Mt.prototype, "withoutIcon", 2);
1368
- Mt = Zt([
1367
+ ], mt.prototype, "withoutIcon", 2);
1368
+ mt = Zt([
1369
1369
  et("genus-radiobtn-group")
1370
- ], Mt);
1370
+ ], mt);
1371
1371
  const fr = C`
1372
1372
  *
1373
1373
  {
@@ -1444,7 +1444,7 @@ const fr = C`
1444
1444
  justify-content: center;
1445
1445
  align-items: center;
1446
1446
  }
1447
- `, Mr = C`
1447
+ `, mr = C`
1448
1448
  .data-card__title
1449
1449
  {
1450
1450
  font-family: var(--card-title-font-family, 'Sofia Pro Semi');
@@ -1475,7 +1475,7 @@ const fr = C`
1475
1475
  font-size: var(--card-text-font-size, 1.25rem);
1476
1476
  color: var(--card-text-color, #213e70)
1477
1477
  }
1478
- `, mr = C`
1478
+ `, Mr = C`
1479
1479
  img
1480
1480
  {
1481
1481
  max-width: 100%;
@@ -1519,7 +1519,7 @@ let Vt = class extends tt {
1519
1519
  `;
1520
1520
  }
1521
1521
  };
1522
- Vt.styles = [fr, Mr, pr, wr, mr];
1522
+ Vt.styles = [fr, mr, pr, wr, Mr];
1523
1523
  Ge([
1524
1524
  G({ attribute: "card-title" })
1525
1525
  ], Vt.prototype, "dataCardTitle", 2);
@@ -1579,7 +1579,7 @@ const Bo = C`
1579
1579
 
1580
1580
  .options-label { grid-area: ol; }
1581
1581
  `;
1582
- var Gr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, ms = (i, t, e, s) => {
1582
+ var Gr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Ms = (i, t, e, s) => {
1583
1583
  for (var n = s > 1 ? void 0 : s ? Yr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
1584
1584
  (a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
1585
1585
  return s && n && Gr(t, e, n), n;
@@ -1600,13 +1600,13 @@ let pe = class extends tt {
1600
1600
  }
1601
1601
  };
1602
1602
  pe.styles = [Bo, Br, Go];
1603
- ms([
1603
+ Ms([
1604
1604
  G({ attribute: "option-value" })
1605
1605
  ], pe.prototype, "optionValue", 2);
1606
- ms([
1606
+ Ms([
1607
1607
  G({ attribute: "option-id" })
1608
1608
  ], pe.prototype, "optionID", 2);
1609
- pe = ms([
1609
+ pe = Ms([
1610
1610
  et("genus-checkbox-option")
1611
1611
  ], pe);
1612
1612
  const xr = C`
@@ -2427,7 +2427,7 @@ function wA(i) {
2427
2427
  return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${It(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
2428
2428
  }
2429
2429
  const Ni = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, de = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
2430
- function MA(i, t, e) {
2430
+ function mA(i, t, e) {
2431
2431
  const s = de(It(i.r)), n = de(It(i.g)), o = de(It(i.b));
2432
2432
  return {
2433
2433
  r: Ft(Ni(s + e * (de(It(t.r)) - s))),
@@ -2449,7 +2449,7 @@ function Js(i) {
2449
2449
  var t = { r: 0, g: 0, b: 0, a: 255 };
2450
2450
  return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = Ft(i[3]))) : (t = Eo(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = Ft(t.a)), t;
2451
2451
  }
2452
- function mA(i) {
2452
+ function MA(i) {
2453
2453
  return i.charAt(0) === "r" ? pA(i) : cA(i);
2454
2454
  }
2455
2455
  class Ze {
@@ -2458,7 +2458,7 @@ class Ze {
2458
2458
  return t;
2459
2459
  const e = typeof t;
2460
2460
  let s;
2461
- e === "object" ? s = Js(t) : e === "string" && (s = eA(t) || uA(t) || mA(t)), this._rgb = s, this._valid = !!s;
2461
+ e === "object" ? s = Js(t) : e === "string" && (s = eA(t) || uA(t) || MA(t)), this._rgb = s, this._valid = !!s;
2462
2462
  }
2463
2463
  get valid() {
2464
2464
  return this._valid;
@@ -2489,7 +2489,7 @@ class Ze {
2489
2489
  return this;
2490
2490
  }
2491
2491
  interpolate(t, e) {
2492
- return t && (this._rgb = MA(this._rgb, t._rgb, e)), this;
2492
+ return t && (this._rgb = mA(this._rgb, t._rgb, e)), this;
2493
2493
  }
2494
2494
  clone() {
2495
2495
  return new Ze(this.rgb);
@@ -2702,7 +2702,7 @@ function IA(i) {
2702
2702
  i % s === 0 && (t.push(s), t.push(i / s));
2703
2703
  return e === (e | 0) && t.push(e), t.sort((n, o) => n - o).pop(), t;
2704
2704
  }
2705
- function Me(i) {
2705
+ function me(i) {
2706
2706
  return !isNaN(parseFloat(i)) && isFinite(i);
2707
2707
  }
2708
2708
  function EA(i, t) {
@@ -3495,7 +3495,7 @@ function Is(i, t = [
3495
3495
  }
3496
3496
  });
3497
3497
  }
3498
- function me(i, t, e, s) {
3498
+ function Me(i, t, e, s) {
3499
3499
  const n = {
3500
3500
  _cacheable: !1,
3501
3501
  _proxy: i,
@@ -3503,8 +3503,8 @@ function me(i, t, e, s) {
3503
3503
  _subProxy: e,
3504
3504
  _stack: /* @__PURE__ */ new Set(),
3505
3505
  _descriptors: No(i, s),
3506
- setContext: (o) => me(i, o, e, s),
3507
- override: (o) => me(i.override(o), t, e, s)
3506
+ setContext: (o) => Me(i, o, e, s),
3507
+ override: (o) => Me(i.override(o), t, e, s)
3508
3508
  };
3509
3509
  return new Proxy(n, {
3510
3510
  /**
@@ -3578,7 +3578,7 @@ function Wo(i, t, e) {
3578
3578
  function ol(i, t, e) {
3579
3579
  const { _proxy: s, _context: n, _subProxy: o, _descriptors: a } = i;
3580
3580
  let r = s[t];
3581
- return Wt(r) && a.isScriptable(t) && (r = al(t, r, i, e)), j(r) && r.length && (r = rl(t, r, i, a.isIndexable)), Es(t, r) && (r = me(r, n, o && o[t], a)), r;
3581
+ return Wt(r) && a.isScriptable(t) && (r = al(t, r, i, e)), j(r) && r.length && (r = rl(t, r, i, a.isIndexable)), Es(t, r) && (r = Me(r, n, o && o[t], a)), r;
3582
3582
  }
3583
3583
  function al(i, t, e, s) {
3584
3584
  const { _proxy: n, _context: o, _subProxy: a, _stack: r } = e;
@@ -3597,7 +3597,7 @@ function rl(i, t, e, s) {
3597
3597
  t = [];
3598
3598
  for (const c of A) {
3599
3599
  const h = Qs(l, n, i, c);
3600
- t.push(me(h, o, a && a[i], r));
3600
+ t.push(Me(h, o, a && a[i], r));
3601
3601
  }
3602
3602
  }
3603
3603
  return t;
@@ -3731,12 +3731,12 @@ function wl(i, t = "x") {
3731
3731
  function Ai(i, t, e) {
3732
3732
  return Math.max(Math.min(i, e), t);
3733
3733
  }
3734
- function Ml(i, t) {
3734
+ function ml(i, t) {
3735
3735
  let e, s, n, o, a, r = Pt(i[0], t);
3736
3736
  for (e = 0, s = i.length; e < s; ++e)
3737
3737
  a = o, o = r, r = e < s - 1 && Pt(i[e + 1], t), o && (n = i[e], a && (n.cp1x = Ai(n.cp1x, t.left, t.right), n.cp1y = Ai(n.cp1y, t.top, t.bottom)), r && (n.cp2x = Ai(n.cp2x, t.left, t.right), n.cp2y = Ai(n.cp2y, t.top, t.bottom)));
3738
3738
  }
3739
- function ml(i, t, e, s, n) {
3739
+ function Ml(i, t, e, s, n) {
3740
3740
  let o, a, r, A;
3741
3741
  if (t.spanGaps && (i = i.filter((l) => !l.skip)), t.cubicInterpolationMode === "monotone")
3742
3742
  wl(i, n);
@@ -3745,7 +3745,7 @@ function ml(i, t, e, s, n) {
3745
3745
  for (o = 0, a = i.length; o < a; ++o)
3746
3746
  r = i[o], A = ul(l, r, i[Math.min(o + 1, a - (s ? 0 : 1)) % a], t.tension), r.cp1x = A.previous.x, r.cp1y = A.previous.y, r.cp2x = A.next.x, r.cp2y = A.next.y, l = r;
3747
3747
  }
3748
- t.capBezierPoints && Ml(i, e);
3748
+ t.capBezierPoints && ml(i, e);
3749
3749
  }
3750
3750
  function Jo() {
3751
3751
  return typeof window < "u" && typeof document < "u";
@@ -3968,10 +3968,10 @@ function ta(i, t, e) {
3968
3968
  i
3969
3969
  ];
3970
3970
  const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: A, normalize: l } = $o(s), { start: c, end: h, loop: d, style: g } = Ql(i, t, e), u = [];
3971
- let f = !1, p = null, w, M, b;
3972
- const D = () => A(n, b, w) && r(n, b) !== 0, m = () => r(o, w) === 0 || A(o, b, w), x = () => f || D(), y = () => !f || m();
3971
+ let f = !1, p = null, w, m, b;
3972
+ const D = () => A(n, b, w) && r(n, b) !== 0, M = () => r(o, w) === 0 || A(o, b, w), x = () => f || D(), y = () => !f || M();
3973
3973
  for (let v = c, I = c; v <= h; ++v)
3974
- M = t[v % a], !M.skip && (w = l(M[s]), w !== b && (f = A(w, n, o), p === null && x() && (p = r(w, n) === 0 ? v : I), p !== null && y() && (u.push(gn({
3974
+ m = t[v % a], !m.skip && (w = l(m[s]), w !== b && (f = A(w, n, o), p === null && x() && (p = r(w, n) === 0 ? v : I), p !== null && y() && (u.push(gn({
3975
3975
  start: p,
3976
3976
  end: v,
3977
3977
  loop: d,
@@ -4048,12 +4048,12 @@ function zl(i, t, e, s) {
4048
4048
  const n = i._chart.getContext(), o = fn(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, A = e.length, l = [];
4049
4049
  let c = o, h = t[0].start, d = h;
4050
4050
  function g(u, f, p, w) {
4051
- const M = r ? -1 : 1;
4051
+ const m = r ? -1 : 1;
4052
4052
  if (u !== f) {
4053
4053
  for (u += A; e[u % A].skip; )
4054
- u -= M;
4054
+ u -= m;
4055
4055
  for (; e[f % A].skip; )
4056
- f += M;
4056
+ f += m;
4057
4057
  u % A !== f % A && (l.push({
4058
4058
  start: u % A,
4059
4059
  end: f % A,
@@ -4386,7 +4386,7 @@ function sa(i, t) {
4386
4386
  e.push(s[n].index);
4387
4387
  return e;
4388
4388
  }
4389
- function Mn(i, t, e, s = {}) {
4389
+ function mn(i, t, e, s = {}) {
4390
4390
  const n = i.keys, o = s.mode === "single";
4391
4391
  let a, r, A, l;
4392
4392
  if (t !== null) {
@@ -4411,7 +4411,7 @@ function Nl(i) {
4411
4411
  };
4412
4412
  return e;
4413
4413
  }
4414
- function mn(i, t) {
4414
+ function Mn(i, t) {
4415
4415
  const e = i && i.options.stacked;
4416
4416
  return e || e === void 0 && t.stack !== void 0;
4417
4417
  }
@@ -4443,8 +4443,8 @@ function bn(i, t) {
4443
4443
  for (let g = 0; g < h; ++g) {
4444
4444
  const u = t[g], { [A]: f, [l]: p } = u, w = u._stacks || (u._stacks = {});
4445
4445
  d = w[l] = Kl(n, c, f), d[r] = p, d._top = Dn(d, a, !0, s.type), d._bottom = Dn(d, a, !1, s.type);
4446
- const M = d._visualValues || (d._visualValues = {});
4447
- M[r] = p;
4446
+ const m = d._visualValues || (d._visualValues = {});
4447
+ m[r] = p;
4448
4448
  }
4449
4449
  }
4450
4450
  function Ki(i, t) {
@@ -4495,7 +4495,7 @@ class wt {
4495
4495
  }
4496
4496
  initialize() {
4497
4497
  const t = this._cachedMeta;
4498
- this.configure(), this.linkScales(), t._stacked = mn(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
4498
+ this.configure(), this.linkScales(), t._stacked = Mn(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
4499
4499
  }
4500
4500
  updateIndex(t) {
4501
4501
  this.index !== t && ve(this._cachedMeta), this.index = t;
@@ -4546,7 +4546,7 @@ class wt {
4546
4546
  let n = !1;
4547
4547
  this._dataCheck();
4548
4548
  const o = e._stacked;
4549
- e._stacked = mn(e.vScale, e), e.stack !== s.stack && (n = !0, ve(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && bn(this, e._parsed);
4549
+ e._stacked = Mn(e.vScale, e), e.stack !== s.stack && (n = !0, ve(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && bn(this, e._parsed);
4550
4550
  }
4551
4551
  configure() {
4552
4552
  const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0);
@@ -4607,7 +4607,7 @@ class wt {
4607
4607
  keys: sa(n, !0),
4608
4608
  values: e._stacks[t.axis]._visualValues
4609
4609
  };
4610
- return Mn(r, a, o.index, {
4610
+ return mn(r, a, o.index, {
4611
4611
  mode: s
4612
4612
  });
4613
4613
  }
@@ -4615,7 +4615,7 @@ class wt {
4615
4615
  const o = s[e.axis];
4616
4616
  let a = o === null ? NaN : o;
4617
4617
  const r = n && s._stacks[e.axis];
4618
- n && r && (n.values = r, a = Mn(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
4618
+ n && r && (n.values = r, a = mn(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
4619
4619
  }
4620
4620
  getMinMax(t, e) {
4621
4621
  const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), A = Jl(e, s, this.chart), l = {
@@ -4957,7 +4957,7 @@ function xn(i, t, e) {
4957
4957
  function ac(i, { inflateAmount: t }, e) {
4958
4958
  i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
4959
4959
  }
4960
- class Mi extends wt {
4960
+ class mi extends wt {
4961
4961
  parsePrimitiveData(t, e, s, n) {
4962
4962
  return Gn(t, e, s, n);
4963
4963
  }
@@ -5001,7 +5001,7 @@ class Mi extends wt {
5001
5001
  const u = this.getParsed(g), f = o || z(u[r.axis]) ? {
5002
5002
  base: A,
5003
5003
  head: A
5004
- } : this._calculateBarValuePixels(g), p = this._calculateBarIndexPixels(g, c), w = (u._stacks || {})[r.axis], M = {
5004
+ } : this._calculateBarValuePixels(g), p = this._calculateBarIndexPixels(g, c), w = (u._stacks || {})[r.axis], m = {
5005
5005
  horizontal: l,
5006
5006
  base: f.base,
5007
5007
  enableBorderRadius: !w || Xi(u._custom) || a === w._top || a === w._bottom,
@@ -5010,9 +5010,9 @@ class Mi extends wt {
5010
5010
  height: l ? p.size : Math.abs(f.size),
5011
5011
  width: l ? Math.abs(f.size) : p.size
5012
5012
  };
5013
- d && (M.options = h || this.resolveDataElementOptions(g, t[g].active ? "active" : n));
5014
- const b = M.options || t[g].options;
5015
- nc(M, b, w, a), ac(M, b, c.ratio), this.updateElement(t[g], g, M, n);
5013
+ d && (m.options = h || this.resolveDataElementOptions(g, t[g].active ? "active" : n));
5014
+ const b = m.options || t[g].options;
5015
+ nc(m, b, w, a), ac(m, b, c.ratio), this.updateElement(t[g], g, m, n);
5016
5016
  }
5017
5017
  }
5018
5018
  _getStacks(t, e) {
@@ -5058,12 +5058,12 @@ class Mi extends wt {
5058
5058
  let w = e.getPixelForValue(p);
5059
5059
  if (this.chart.getDataVisibility(t) ? u = e.getPixelForValue(d + g) : u = w, f = u - w, Math.abs(f) < a) {
5060
5060
  f = ic(f, e, r) * a, h === r && (w -= f / 2);
5061
- const M = e.getPixelForDecimal(0), b = e.getPixelForDecimal(1), D = Math.min(M, b), m = Math.max(M, b);
5062
- w = Math.max(Math.min(w, m), D), u = w + f, s && !c && (A._stacks[e.axis]._visualValues[n] = e.getValueForPixel(u) - e.getValueForPixel(w));
5061
+ const m = e.getPixelForDecimal(0), b = e.getPixelForDecimal(1), D = Math.min(m, b), M = Math.max(m, b);
5062
+ w = Math.max(Math.min(w, M), D), u = w + f, s && !c && (A._stacks[e.axis]._visualValues[n] = e.getValueForPixel(u) - e.getValueForPixel(w));
5063
5063
  }
5064
5064
  if (w === e.getPixelForValue(r)) {
5065
- const M = Bt(f) * e.getLineWidthForValue(r) / 2;
5066
- w += M, f -= M;
5065
+ const m = Bt(f) * e.getLineWidthForValue(r) / 2;
5066
+ w += m, f -= m;
5067
5067
  }
5068
5068
  return {
5069
5069
  size: f,
@@ -5094,7 +5094,7 @@ class Mi extends wt {
5094
5094
  this.getParsed(o)[e.axis] !== null && s[o].draw(this._ctx);
5095
5095
  }
5096
5096
  }
5097
- Y(Mi, "id", "bar"), Y(Mi, "defaults", {
5097
+ Y(mi, "id", "bar"), Y(mi, "defaults", {
5098
5098
  datasetElementType: !1,
5099
5099
  dataElementType: "bar",
5100
5100
  categoryPercentage: 0.8,
@@ -5112,7 +5112,7 @@ Y(Mi, "id", "bar"), Y(Mi, "defaults", {
5112
5112
  ]
5113
5113
  }
5114
5114
  }
5115
- }), Y(Mi, "overrides", {
5115
+ }), Y(mi, "overrides", {
5116
5116
  scales: {
5117
5117
  _index_: {
5118
5118
  type: "category",
@@ -5127,7 +5127,7 @@ Y(Mi, "id", "bar"), Y(Mi, "defaults", {
5127
5127
  }
5128
5128
  }
5129
5129
  });
5130
- class mi extends wt {
5130
+ class Mi extends wt {
5131
5131
  initialize() {
5132
5132
  this.enableOptionSharing = !0, super.initialize();
5133
5133
  }
@@ -5188,7 +5188,7 @@ class mi extends wt {
5188
5188
  return e !== "active" && (n.radius = 0), n.radius += E(s && s._custom, o), n;
5189
5189
  }
5190
5190
  }
5191
- Y(mi, "id", "bubble"), Y(mi, "defaults", {
5191
+ Y(Mi, "id", "bubble"), Y(Mi, "defaults", {
5192
5192
  datasetElementType: !1,
5193
5193
  dataElementType: "point",
5194
5194
  animations: {
@@ -5202,7 +5202,7 @@ Y(mi, "id", "bubble"), Y(mi, "defaults", {
5202
5202
  ]
5203
5203
  }
5204
5204
  }
5205
- }), Y(mi, "overrides", {
5205
+ }), Y(Mi, "overrides", {
5206
5206
  scales: {
5207
5207
  x: {
5208
5208
  type: "linear"
@@ -5215,8 +5215,8 @@ Y(mi, "id", "bubble"), Y(mi, "defaults", {
5215
5215
  function rc(i, t, e) {
5216
5216
  let s = 1, n = 1, o = 0, a = 0;
5217
5217
  if (t < H) {
5218
- const r = i, A = r + t, l = Math.cos(r), c = Math.sin(r), h = Math.cos(A), d = Math.sin(A), g = (b, D, m) => Xe(b, r, A, !0) ? 1 : Math.max(D, D * e, m, m * e), u = (b, D, m) => Xe(b, r, A, !0) ? -1 : Math.min(D, D * e, m, m * e), f = g(0, l, h), p = g(X, c, d), w = u(F, l, h), M = u(F + X, c, d);
5219
- s = (f - w) / 2, n = (p - M) / 2, o = -(f + w) / 2, a = -(p + M) / 2;
5218
+ const r = i, A = r + t, l = Math.cos(r), c = Math.sin(r), h = Math.cos(A), d = Math.sin(A), g = (b, D, M) => Xe(b, r, A, !0) ? 1 : Math.max(D, D * e, M, M * e), u = (b, D, M) => Xe(b, r, A, !0) ? -1 : Math.min(D, D * e, M, M * e), f = g(0, l, h), p = g(X, c, d), w = u(F, l, h), m = u(F + X, c, d);
5219
+ s = (f - w) / 2, n = (p - m) / 2, o = -(f + w) / 2, a = -(p + m) / 2;
5220
5220
  }
5221
5221
  return {
5222
5222
  ratioX: s,
@@ -5265,8 +5265,8 @@ class ee extends wt {
5265
5265
  };
5266
5266
  }
5267
5267
  update(t) {
5268
- const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), A = Math.min(bA(this.options.cutout, r), 1), l = this._getRingWeight(this.index), { circumference: c, rotation: h } = this._getRotationExtents(), { ratioX: d, ratioY: g, offsetX: u, offsetY: f } = rc(h, c, A), p = (s.width - a) / d, w = (s.height - a) / g, M = Math.max(Math.min(p, w) / 2, 0), b = Qo(this.options.radius, M), D = Math.max(b * A, 0), m = (b - D) / this._getVisibleDatasetWeightTotal();
5269
- this.offsetX = u * b, this.offsetY = f * b, n.total = this.calculateTotal(), this.outerRadius = b - m * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - m * l, 0), this.updateElements(o, 0, o.length, t);
5268
+ const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), A = Math.min(bA(this.options.cutout, r), 1), l = this._getRingWeight(this.index), { circumference: c, rotation: h } = this._getRotationExtents(), { ratioX: d, ratioY: g, offsetX: u, offsetY: f } = rc(h, c, A), p = (s.width - a) / d, w = (s.height - a) / g, m = Math.max(Math.min(p, w) / 2, 0), b = Qo(this.options.radius, m), D = Math.max(b * A, 0), M = (b - D) / this._getVisibleDatasetWeightTotal();
5269
+ this.offsetX = u * b, this.offsetY = f * b, n.total = this.calculateTotal(), this.outerRadius = b - M * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - M * l, 0), this.updateElements(o, 0, o.length, t);
5270
5270
  }
5271
5271
  _circumference(t, e) {
5272
5272
  const s = this.options, n = this._cachedMeta, o = this._getCircumference();
@@ -5274,11 +5274,11 @@ class ee extends wt {
5274
5274
  }
5275
5275
  updateElements(t, e, s, n) {
5276
5276
  const o = n === "reset", a = this.chart, r = a.chartArea, l = a.options.animation, c = (r.left + r.right) / 2, h = (r.top + r.bottom) / 2, d = o && l.animateScale, g = d ? 0 : this.innerRadius, u = d ? 0 : this.outerRadius, { sharedOptions: f, includeOptions: p } = this._getSharedOptions(e, n);
5277
- let w = this._getRotation(), M;
5278
- for (M = 0; M < e; ++M)
5279
- w += this._circumference(M, o);
5280
- for (M = e; M < e + s; ++M) {
5281
- const b = this._circumference(M, o), D = t[M], m = {
5277
+ let w = this._getRotation(), m;
5278
+ for (m = 0; m < e; ++m)
5279
+ w += this._circumference(m, o);
5280
+ for (m = e; m < e + s; ++m) {
5281
+ const b = this._circumference(m, o), D = t[m], M = {
5282
5282
  x: c + this.offsetX,
5283
5283
  y: h + this.offsetY,
5284
5284
  startAngle: w,
@@ -5287,7 +5287,7 @@ class ee extends wt {
5287
5287
  outerRadius: u,
5288
5288
  innerRadius: g
5289
5289
  };
5290
- p && (m.options = f || this.resolveDataElementOptions(M, D.active ? "active" : n)), w += b, this.updateElement(D, M, m, n);
5290
+ p && (M.options = f || this.resolveDataElementOptions(m, D.active ? "active" : n)), w += b, this.updateElement(D, m, M, n);
5291
5291
  }
5292
5292
  }
5293
5293
  calculateTotal() {
@@ -5428,16 +5428,16 @@ class Di extends wt {
5428
5428
  }, t), this.updateElements(n, r, A, t);
5429
5429
  }
5430
5430
  updateElements(t, e, s, n) {
5431
- const o = n === "reset", { iScale: a, vScale: r, _stacked: A, _dataset: l } = this._cachedMeta, { sharedOptions: c, includeOptions: h } = this._getSharedOptions(e, n), d = a.axis, g = r.axis, { spanGaps: u, segment: f } = this.options, p = Me(u) ? u : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || o || n === "none", M = e + s, b = t.length;
5431
+ const o = n === "reset", { iScale: a, vScale: r, _stacked: A, _dataset: l } = this._cachedMeta, { sharedOptions: c, includeOptions: h } = this._getSharedOptions(e, n), d = a.axis, g = r.axis, { spanGaps: u, segment: f } = this.options, p = me(u) ? u : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || o || n === "none", m = e + s, b = t.length;
5432
5432
  let D = e > 0 && this.getParsed(e - 1);
5433
- for (let m = 0; m < b; ++m) {
5434
- const x = t[m], y = w ? x : {};
5435
- if (m < e || m >= M) {
5433
+ for (let M = 0; M < b; ++M) {
5434
+ const x = t[M], y = w ? x : {};
5435
+ if (M < e || M >= m) {
5436
5436
  y.skip = !0;
5437
5437
  continue;
5438
5438
  }
5439
- const v = this.getParsed(m), I = z(v[g]), Q = y[d] = a.getPixelForValue(v[d], m), k = y[g] = o || I ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, v, A) : v[g], m);
5440
- y.skip = isNaN(Q) || isNaN(k) || I, y.stop = m > 0 && Math.abs(v[d] - D[d]) > p, f && (y.parsed = v, y.raw = l.data[m]), h && (y.options = c || this.resolveDataElementOptions(m, x.active ? "active" : n)), w || this.updateElement(x, m, y, n), D = v;
5439
+ const v = this.getParsed(M), I = z(v[g]), Q = y[d] = a.getPixelForValue(v[d], M), k = y[g] = o || I ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, v, A) : v[g], M);
5440
+ y.skip = isNaN(Q) || isNaN(k) || I, y.stop = M > 0 && Math.abs(v[d] - D[d]) > p, f && (y.parsed = v, y.raw = l.data[M]), h && (y.options = c || this.resolveDataElementOptions(M, x.active ? "active" : n)), w || this.updateElement(x, M, y, n), D = v;
5441
5441
  }
5442
5442
  }
5443
5443
  getMaxOverflow() {
@@ -5507,15 +5507,15 @@ class Ve extends wt {
5507
5507
  g += this._computeAngle(u, n, f);
5508
5508
  for (u = e; u < e + s; u++) {
5509
5509
  const p = t[u];
5510
- let w = g, M = g + this._computeAngle(u, n, f), b = a.getDataVisibility(u) ? l.getDistanceFromCenterForValue(this.getParsed(u).r) : 0;
5511
- g = M, o && (A.animateScale && (b = 0), A.animateRotate && (w = M = d));
5510
+ let w = g, m = g + this._computeAngle(u, n, f), b = a.getDataVisibility(u) ? l.getDistanceFromCenterForValue(this.getParsed(u).r) : 0;
5511
+ g = m, o && (A.animateScale && (b = 0), A.animateRotate && (w = m = d));
5512
5512
  const D = {
5513
5513
  x: c,
5514
5514
  y: h,
5515
5515
  innerRadius: 0,
5516
5516
  outerRadius: b,
5517
5517
  startAngle: w,
5518
- endAngle: M,
5518
+ endAngle: m,
5519
5519
  options: this.resolveDataElementOptions(u, p.active ? "active" : n)
5520
5520
  };
5521
5521
  this.updateElement(p, u, D, n);
@@ -5695,11 +5695,11 @@ class Bi extends wt {
5695
5695
  !this.datasetElementType && t && (this.datasetElementType = this.chart.registry.getElement("line")), super.addElements();
5696
5696
  }
5697
5697
  updateElements(t, e, s, n) {
5698
- const o = n === "reset", { iScale: a, vScale: r, _stacked: A, _dataset: l } = this._cachedMeta, c = this.resolveDataElementOptions(e, n), h = this.getSharedOptions(c), d = this.includeOptions(n, h), g = a.axis, u = r.axis, { spanGaps: f, segment: p } = this.options, w = Me(f) ? f : Number.POSITIVE_INFINITY, M = this.chart._animationsDisabled || o || n === "none";
5698
+ const o = n === "reset", { iScale: a, vScale: r, _stacked: A, _dataset: l } = this._cachedMeta, c = this.resolveDataElementOptions(e, n), h = this.getSharedOptions(c), d = this.includeOptions(n, h), g = a.axis, u = r.axis, { spanGaps: f, segment: p } = this.options, w = me(f) ? f : Number.POSITIVE_INFINITY, m = this.chart._animationsDisabled || o || n === "none";
5699
5699
  let b = e > 0 && this.getParsed(e - 1);
5700
5700
  for (let D = e; D < e + s; ++D) {
5701
- const m = t[D], x = this.getParsed(D), y = M ? m : {}, v = z(x[u]), I = y[g] = a.getPixelForValue(x[g], D), Q = y[u] = o || v ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, x, A) : x[u], D);
5702
- y.skip = isNaN(I) || isNaN(Q) || v, y.stop = D > 0 && Math.abs(x[g] - b[g]) > w, p && (y.parsed = x, y.raw = l.data[D]), d && (y.options = h || this.resolveDataElementOptions(D, m.active ? "active" : n)), M || this.updateElement(m, D, y, n), b = x;
5701
+ const M = t[D], x = this.getParsed(D), y = m ? M : {}, v = z(x[u]), I = y[g] = a.getPixelForValue(x[g], D), Q = y[u] = o || v ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, x, A) : x[u], D);
5702
+ y.skip = isNaN(I) || isNaN(Q) || v, y.stop = D > 0 && Math.abs(x[g] - b[g]) > w, p && (y.parsed = x, y.raw = l.data[D]), d && (y.options = h || this.resolveDataElementOptions(D, M.active ? "active" : n)), m || this.updateElement(M, D, y, n), b = x;
5703
5703
  }
5704
5704
  this.updateSharedOptions(h, n, c);
5705
5705
  }
@@ -5738,8 +5738,8 @@ Y(Bi, "id", "scatter"), Y(Bi, "defaults", {
5738
5738
  });
5739
5739
  var Ac = /* @__PURE__ */ Object.freeze({
5740
5740
  __proto__: null,
5741
- BarController: Mi,
5742
- BubbleController: mi,
5741
+ BarController: mi,
5742
+ BubbleController: Mi,
5743
5743
  DoughnutController: ee,
5744
5744
  LineController: Di,
5745
5745
  PieController: rs,
@@ -6010,7 +6010,7 @@ function wc(i, t) {
6010
6010
  }
6011
6011
  return e;
6012
6012
  }
6013
- function Mc(i) {
6013
+ function mc(i) {
6014
6014
  const t = fc(i), e = Ee(t.filter((l) => l.box.fullSize), !0), s = Ee(Ie(t, "left"), !0), n = Ee(Ie(t, "right")), o = Ee(Ie(t, "top"), !0), a = Ee(Ie(t, "bottom")), r = yn(t, "x"), A = yn(t, "y");
6015
6015
  return {
6016
6016
  fullSize: e,
@@ -6027,7 +6027,7 @@ function vn(i, t, e, s) {
6027
6027
  function aa(i, t) {
6028
6028
  i.top = Math.max(i.top, t.top), i.left = Math.max(i.left, t.left), i.bottom = Math.max(i.bottom, t.bottom), i.right = Math.max(i.right, t.right);
6029
6029
  }
6030
- function mc(i, t, e, s) {
6030
+ function Mc(i, t, e, s) {
6031
6031
  const { pos: n, box: o } = e, a = i.maxPadding;
6032
6032
  if (!P(n)) {
6033
6033
  e.size && (i[n] -= e.size);
@@ -6081,7 +6081,7 @@ function ze(i, t, e, s) {
6081
6081
  let o, a, r, A, l, c;
6082
6082
  for (o = 0, a = i.length, l = 0; o < a; ++o) {
6083
6083
  r = i[o], A = r.box, A.update(r.width || t.w, r.height || t.h, bc(r.horizontal, t));
6084
- const { same: h, other: d } = mc(t, e, r, s);
6084
+ const { same: h, other: d } = Mc(t, e, r, s);
6085
6085
  l |= h && n.length, c = c || d, A.fullSize || n.push(r);
6086
6086
  }
6087
6087
  return l && ze(n, t, e, s) || c;
@@ -6131,7 +6131,7 @@ var ot = {
6131
6131
  update(i, t, e, s) {
6132
6132
  if (!i)
6133
6133
  return;
6134
- const n = at(i.options.layout.padding), o = Math.max(t - n.width, 0), a = Math.max(e - n.height, 0), r = Mc(i.boxes), A = r.vertical, l = r.horizontal;
6134
+ const n = at(i.options.layout.padding), o = Math.max(t - n.width, 0), a = Math.max(e - n.height, 0), r = mc(i.boxes), A = r.vertical, l = r.horizontal;
6135
6135
  L(i.boxes, (f) => {
6136
6136
  typeof f.beforeLayout == "function" && f.beforeLayout();
6137
6137
  });
@@ -6378,7 +6378,7 @@ class Oc extends ra {
6378
6378
  function zc(i) {
6379
6379
  return !Jo() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? Bc : Oc;
6380
6380
  }
6381
- class mt {
6381
+ class Mt {
6382
6382
  constructor() {
6383
6383
  Y(this, "x");
6384
6384
  Y(this, "y");
@@ -6397,7 +6397,7 @@ class mt {
6397
6397
  };
6398
6398
  }
6399
6399
  hasValue() {
6400
- return Me(this.x) && Me(this.y);
6400
+ return me(this.x) && me(this.y);
6401
6401
  }
6402
6402
  getProps(t, e) {
6403
6403
  const s = this.$animations;
@@ -6409,7 +6409,7 @@ class mt {
6409
6409
  }), n;
6410
6410
  }
6411
6411
  }
6412
- Y(mt, "defaults", {}), Y(mt, "defaultRoutes");
6412
+ Y(Mt, "defaults", {}), Y(Mt, "defaultRoutes");
6413
6413
  function Lc(i, t) {
6414
6414
  const e = i.options.ticks, s = Tc(i), n = Math.min(e.maxTicksLimit || s, s), o = e.major.enabled ? Rc(t) : [], a = o.length, r = o[0], A = o[a - 1], l = [];
6415
6415
  if (a > n)
@@ -6527,15 +6527,15 @@ function Uc(i, t, e, s) {
6527
6527
  const f = a - n, p = r - o;
6528
6528
  if (i.isHorizontal()) {
6529
6529
  if (g = nt(s, o, r), P(e)) {
6530
- const w = Object.keys(e)[0], M = e[w];
6531
- u = c[w].getPixelForValue(M) + f - t;
6530
+ const w = Object.keys(e)[0], m = e[w];
6531
+ u = c[w].getPixelForValue(m) + f - t;
6532
6532
  } else
6533
6533
  e === "center" ? u = (l.bottom + l.top) / 2 + f - t : u = kn(i, e, t);
6534
6534
  d = r - o;
6535
6535
  } else {
6536
6536
  if (P(e)) {
6537
- const w = Object.keys(e)[0], M = e[w];
6538
- g = c[w].getPixelForValue(M) - p + t;
6537
+ const w = Object.keys(e)[0], m = e[w];
6538
+ g = c[w].getPixelForValue(m) - p + t;
6539
6539
  } else
6540
6540
  e === "center" ? g = (l.left + l.right) / 2 - p + t : g = kn(i, e, t);
6541
6541
  u = nt(s, a, n), h = e === "left" ? -X : X;
@@ -6547,7 +6547,7 @@ function Uc(i, t, e, s) {
6547
6547
  rotation: h
6548
6548
  };
6549
6549
  }
6550
- class re extends mt {
6550
+ class re extends Mt {
6551
6551
  constructor(t) {
6552
6552
  super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
6553
6553
  left: 0,
@@ -6779,16 +6779,16 @@ class re extends mt {
6779
6779
  }
6780
6780
  _computeLabelSizes(t, e, s) {
6781
6781
  const { ctx: n, _longestTextCache: o } = this, a = [], r = [], A = Math.floor(e / Pn(e, s));
6782
- let l = 0, c = 0, h, d, g, u, f, p, w, M, b, D, m;
6782
+ let l = 0, c = 0, h, d, g, u, f, p, w, m, b, D, M;
6783
6783
  for (h = 0; h < e; h += A) {
6784
6784
  if (u = t[h].label, f = this._resolveTickFontOptions(h), n.font = p = f.string, w = o[p] = o[p] || {
6785
6785
  data: {},
6786
6786
  gc: []
6787
- }, M = f.lineHeight, b = D = 0, !z(u) && !j(u))
6788
- b = Qi(n, w.data, w.gc, b, u), D = M;
6787
+ }, m = f.lineHeight, b = D = 0, !z(u) && !j(u))
6788
+ b = Qi(n, w.data, w.gc, b, u), D = m;
6789
6789
  else if (j(u))
6790
6790
  for (d = 0, g = u.length; d < g; ++d)
6791
- m = u[d], !z(m) && !j(m) && (b = Qi(n, w.data, w.gc, b, m), D += M);
6791
+ M = u[d], !z(M) && !j(M) && (b = Qi(n, w.data, w.gc, b, M), D += m);
6792
6792
  a.push(b), r.push(D), l = Math.max(b, l), c = Math.max(D, c);
6793
6793
  }
6794
6794
  Nc(o, e);
@@ -6853,36 +6853,36 @@ class re extends mt {
6853
6853
  const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, A = o.offset, l = this.isHorizontal(), h = this.ticks.length + (A ? 1 : 0), d = Qe(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(V) {
6854
6854
  return Jt(s, V, f);
6855
6855
  };
6856
- let M, b, D, m, x, y, v, I, Q, k, O, it;
6856
+ let m, b, D, M, x, y, v, I, Q, k, O, it;
6857
6857
  if (a === "top")
6858
- M = w(this.bottom), y = this.bottom - d, I = M - p, k = w(t.top) + p, it = t.bottom;
6858
+ m = w(this.bottom), y = this.bottom - d, I = m - p, k = w(t.top) + p, it = t.bottom;
6859
6859
  else if (a === "bottom")
6860
- M = w(this.top), k = t.top, it = w(t.bottom) - p, y = M + p, I = this.top + d;
6860
+ m = w(this.top), k = t.top, it = w(t.bottom) - p, y = m + p, I = this.top + d;
6861
6861
  else if (a === "left")
6862
- M = w(this.right), x = this.right - d, v = M - p, Q = w(t.left) + p, O = t.right;
6862
+ m = w(this.right), x = this.right - d, v = m - p, Q = w(t.left) + p, O = t.right;
6863
6863
  else if (a === "right")
6864
- M = w(this.left), Q = t.left, O = w(t.right) - p, x = M + p, v = this.left + d;
6864
+ m = w(this.left), Q = t.left, O = w(t.right) - p, x = m + p, v = this.left + d;
6865
6865
  else if (e === "x") {
6866
6866
  if (a === "center")
6867
- M = w((t.top + t.bottom) / 2 + 0.5);
6867
+ m = w((t.top + t.bottom) / 2 + 0.5);
6868
6868
  else if (P(a)) {
6869
6869
  const V = Object.keys(a)[0], U = a[V];
6870
- M = w(this.chart.scales[V].getPixelForValue(U));
6870
+ m = w(this.chart.scales[V].getPixelForValue(U));
6871
6871
  }
6872
- k = t.top, it = t.bottom, y = M + p, I = y + d;
6872
+ k = t.top, it = t.bottom, y = m + p, I = y + d;
6873
6873
  } else if (e === "y") {
6874
6874
  if (a === "center")
6875
- M = w((t.left + t.right) / 2);
6875
+ m = w((t.left + t.right) / 2);
6876
6876
  else if (P(a)) {
6877
6877
  const V = Object.keys(a)[0], U = a[V];
6878
- M = w(this.chart.scales[V].getPixelForValue(U));
6878
+ m = w(this.chart.scales[V].getPixelForValue(U));
6879
6879
  }
6880
- x = M - p, v = x - d, Q = t.left, O = t.right;
6880
+ x = m - p, v = x - d, Q = t.left, O = t.right;
6881
6881
  }
6882
6882
  const ct = E(n.ticks.maxTicksLimit, h), T = Math.max(1, Math.ceil(h / ct));
6883
6883
  for (b = 0; b < h; b += T) {
6884
6884
  const V = this.getContext(b), U = o.setContext(V), ft = r.setContext(V), st = U.lineWidth, ce = U.color, si = ft.dash || [], he = ft.dashOffset, Ye = U.tickWidth, xe = U.tickColor, Ce = U.tickBorderDash || [], ye = U.tickBorderDashOffset;
6885
- D = Vc(this, b, A), D !== void 0 && (m = Jt(s, D, st), l ? x = v = Q = O = m : y = I = k = it = m, g.push({
6885
+ D = Vc(this, b, A), D !== void 0 && (M = Jt(s, D, st), l ? x = v = Q = O = M : y = I = k = it = M, g.push({
6886
6886
  tx1: x,
6887
6887
  ty1: y,
6888
6888
  tx2: v,
@@ -6901,21 +6901,21 @@ class re extends mt {
6901
6901
  tickBorderDashOffset: ye
6902
6902
  }));
6903
6903
  }
6904
- return this._ticksLength = h, this._borderValue = M, g;
6904
+ return this._ticksLength = h, this._borderValue = m, g;
6905
6905
  }
6906
6906
  _computeLabelItems(t) {
6907
6907
  const e = this.axis, s = this.options, { position: n, ticks: o } = s, a = this.isHorizontal(), r = this.ticks, { align: A, crossAlign: l, padding: c, mirror: h } = o, d = Qe(s.grid), g = d + c, u = h ? -c : g, f = -pt(this.labelRotation), p = [];
6908
- let w, M, b, D, m, x, y, v, I, Q, k, O, it = "middle";
6908
+ let w, m, b, D, M, x, y, v, I, Q, k, O, it = "middle";
6909
6909
  if (n === "top")
6910
6910
  x = this.bottom - u, y = this._getXAxisLabelAlignment();
6911
6911
  else if (n === "bottom")
6912
6912
  x = this.top + u, y = this._getXAxisLabelAlignment();
6913
6913
  else if (n === "left") {
6914
6914
  const T = this._getYAxisLabelAlignment(d);
6915
- y = T.textAlign, m = T.x;
6915
+ y = T.textAlign, M = T.x;
6916
6916
  } else if (n === "right") {
6917
6917
  const T = this._getYAxisLabelAlignment(d);
6918
- y = T.textAlign, m = T.x;
6918
+ y = T.textAlign, M = T.x;
6919
6919
  } else if (e === "x") {
6920
6920
  if (n === "center")
6921
6921
  x = (t.top + t.bottom) / 2 + g;
@@ -6926,22 +6926,22 @@ class re extends mt {
6926
6926
  y = this._getXAxisLabelAlignment();
6927
6927
  } else if (e === "y") {
6928
6928
  if (n === "center")
6929
- m = (t.left + t.right) / 2 - g;
6929
+ M = (t.left + t.right) / 2 - g;
6930
6930
  else if (P(n)) {
6931
6931
  const T = Object.keys(n)[0], V = n[T];
6932
- m = this.chart.scales[T].getPixelForValue(V);
6932
+ M = this.chart.scales[T].getPixelForValue(V);
6933
6933
  }
6934
6934
  y = this._getYAxisLabelAlignment(d).textAlign;
6935
6935
  }
6936
6936
  e === "y" && (A === "start" ? it = "top" : A === "end" && (it = "bottom"));
6937
6937
  const ct = this._getLabelSizes();
6938
- for (w = 0, M = r.length; w < M; ++w) {
6938
+ for (w = 0, m = r.length; w < m; ++w) {
6939
6939
  b = r[w], D = b.label;
6940
6940
  const T = o.setContext(this.getContext(w));
6941
6941
  v = this.getPixelForTick(w) + o.labelOffset, I = this._resolveTickFontOptions(w), Q = I.lineHeight, k = j(D) ? D.length : 1;
6942
6942
  const V = k / 2, U = T.color, ft = T.textStrokeColor, st = T.textStrokeWidth;
6943
6943
  let ce = y;
6944
- a ? (m = v, y === "inner" && (w === M - 1 ? ce = this.options.reverse ? "left" : "right" : w === 0 ? ce = this.options.reverse ? "right" : "left" : ce = "center"), n === "top" ? l === "near" || f !== 0 ? O = -k * Q + Q / 2 : l === "center" ? O = -ct.highest.height / 2 - V * Q + Q : O = -ct.highest.height + Q / 2 : l === "near" || f !== 0 ? O = Q / 2 : l === "center" ? O = ct.highest.height / 2 - V * Q : O = ct.highest.height - k * Q, h && (O *= -1), f !== 0 && !T.showLabelBackdrop && (m += Q / 2 * Math.sin(f))) : (x = v, O = (1 - k) * Q / 2);
6944
+ a ? (M = v, y === "inner" && (w === m - 1 ? ce = this.options.reverse ? "left" : "right" : w === 0 ? ce = this.options.reverse ? "right" : "left" : ce = "center"), n === "top" ? l === "near" || f !== 0 ? O = -k * Q + Q / 2 : l === "center" ? O = -ct.highest.height / 2 - V * Q + Q : O = -ct.highest.height + Q / 2 : l === "near" || f !== 0 ? O = Q / 2 : l === "center" ? O = ct.highest.height / 2 - V * Q : O = ct.highest.height - k * Q, h && (O *= -1), f !== 0 && !T.showLabelBackdrop && (M += Q / 2 * Math.sin(f))) : (x = v, O = (1 - k) * Q / 2);
6945
6945
  let si;
6946
6946
  if (T.showLabelBackdrop) {
6947
6947
  const he = at(T.backdropPadding), Ye = ct.heights[w], xe = ct.widths[w];
@@ -6982,7 +6982,7 @@ class re extends mt {
6982
6982
  textAlign: ce,
6983
6983
  textBaseline: it,
6984
6984
  translation: [
6985
- m,
6985
+ M,
6986
6986
  x
6987
6987
  ],
6988
6988
  backdrop: si
@@ -7201,7 +7201,7 @@ function qc(i) {
7201
7201
  }
7202
7202
  class _c {
7203
7203
  constructor() {
7204
- this.controllers = new di(wt, "datasets", !0), this.elements = new di(mt, "elements"), this.plugins = new di(Object, "plugins"), this.scales = new di(re, "scales"), this._typedRegistries = [
7204
+ this.controllers = new di(wt, "datasets", !0), this.elements = new di(Mt, "elements"), this.plugins = new di(Object, "plugins"), this.scales = new di(re, "scales"), this._typedRegistries = [
7205
7205
  this.controllers,
7206
7206
  this.scales,
7207
7207
  this.elements
@@ -7577,7 +7577,7 @@ class ch {
7577
7577
  if (dh(a, e)) {
7578
7578
  o.$shared = !1, s = Wt(s) ? s() : s;
7579
7579
  const l = this.createResolver(t, s, r);
7580
- A = me(a, s, l);
7580
+ A = Me(a, s, l);
7581
7581
  }
7582
7582
  for (const l of e)
7583
7583
  o[l] = A[l];
@@ -7587,7 +7587,7 @@ class ch {
7587
7587
  ""
7588
7588
  ], n) {
7589
7589
  const { resolver: o } = Rn(this._resolverCache, t, s);
7590
- return P(e) ? me(o, e, void 0, n) : o;
7590
+ return P(e) ? Me(o, e, void 0, n) : o;
7591
7591
  }
7592
7592
  }
7593
7593
  function Rn(i, t, e) {
@@ -7661,7 +7661,7 @@ function wh(i, t, e, s) {
7661
7661
  function ui(i, t, e) {
7662
7662
  return i.options.clip ? i[e] : t[e];
7663
7663
  }
7664
- function Mh(i, t) {
7664
+ function mh(i, t) {
7665
7665
  const { xScale: e, yScale: s } = i;
7666
7666
  return e && s ? {
7667
7667
  left: ui(e, t, "left"),
@@ -7953,7 +7953,7 @@ class Et {
7953
7953
  this.notifyPlugins("afterDatasetsDraw");
7954
7954
  }
7955
7955
  _drawDataset(t) {
7956
- const e = this.ctx, s = t._clip, n = !s.disabled, o = Mh(t, this.chartArea), a = {
7956
+ const e = this.ctx, s = t._clip, n = !s.disabled, o = mh(t, this.chartArea), a = {
7957
7957
  meta: t,
7958
7958
  index: t.index,
7959
7959
  cancelable: !0
@@ -8154,7 +8154,7 @@ Y(Et, "defaults", Z), Y(Et, "instances", Yi), Y(Et, "overrides", ne), Y(Et, "reg
8154
8154
  function Nn() {
8155
8155
  return L(Et.instances, (i) => i._plugins.invalidate());
8156
8156
  }
8157
- function mh(i, t, e) {
8157
+ function Mh(i, t, e) {
8158
8158
  const { startAngle: s, pixelMargin: n, x: o, y: a, outerRadius: r, innerRadius: A } = t;
8159
8159
  let l = n / r;
8160
8160
  i.beginPath(), i.arc(o, a, r, s - l, e + l), A > n ? (l = n / A, i.arc(o, a, A, e + l, s - l, !0)) : i.arc(o, a, n, e + X, s - X), i.closePath(), i.clip();
@@ -8193,22 +8193,22 @@ function Oi(i, t, e, s, n, o) {
8193
8193
  const T = c > 0 ? c - s : 0, V = h > 0 ? h - s : 0, U = (T + V) / 2, ft = U !== 0 ? u * U / (U + s) : u;
8194
8194
  g = (u - ft) / 2;
8195
8195
  }
8196
- const f = Math.max(1e-3, u * h - e / F) / h, p = (u - f) / 2, w = A + p + g, M = n - p - g, { outerStart: b, outerEnd: D, innerStart: m, innerEnd: x } = bh(t, d, h, M - w), y = h - b, v = h - D, I = w + b / y, Q = M - D / v, k = d + m, O = d + x, it = w + m / k, ct = M - x / O;
8196
+ const f = Math.max(1e-3, u * h - e / F) / h, p = (u - f) / 2, w = A + p + g, m = n - p - g, { outerStart: b, outerEnd: D, innerStart: M, innerEnd: x } = bh(t, d, h, m - w), y = h - b, v = h - D, I = w + b / y, Q = m - D / v, k = d + M, O = d + x, it = w + M / k, ct = m - x / O;
8197
8197
  if (i.beginPath(), o) {
8198
8198
  const T = (I + Q) / 2;
8199
8199
  if (i.arc(a, r, h, I, T), i.arc(a, r, h, T, Q), D > 0) {
8200
8200
  const st = ge(v, Q, a, r);
8201
- i.arc(st.x, st.y, D, Q, M + X);
8201
+ i.arc(st.x, st.y, D, Q, m + X);
8202
8202
  }
8203
- const V = ge(O, M, a, r);
8203
+ const V = ge(O, m, a, r);
8204
8204
  if (i.lineTo(V.x, V.y), x > 0) {
8205
8205
  const st = ge(O, ct, a, r);
8206
- i.arc(st.x, st.y, x, M + X, ct + Math.PI);
8206
+ i.arc(st.x, st.y, x, m + X, ct + Math.PI);
8207
8207
  }
8208
- const U = (M - x / d + (w + m / d)) / 2;
8209
- if (i.arc(a, r, d, M - x / d, U, !0), i.arc(a, r, d, U, w + m / d, !0), m > 0) {
8208
+ const U = (m - x / d + (w + M / d)) / 2;
8209
+ if (i.arc(a, r, d, m - x / d, U, !0), i.arc(a, r, d, U, w + M / d, !0), M > 0) {
8210
8210
  const st = ge(k, it, a, r);
8211
- i.arc(st.x, st.y, m, it + Math.PI, w - X);
8211
+ i.arc(st.x, st.y, M, it + Math.PI, w - X);
8212
8212
  }
8213
8213
  const ft = ge(y, w, a, r);
8214
8214
  if (i.lineTo(ft.x, ft.y), b > 0) {
@@ -8247,9 +8247,9 @@ function Gh(i, t, e, s, n) {
8247
8247
  i.stroke();
8248
8248
  isNaN(r) || (u = a + (r % H || H));
8249
8249
  }
8250
- g && mh(i, t, u), o || (Oi(i, t, e, s, u, n), i.stroke());
8250
+ g && Mh(i, t, u), o || (Oi(i, t, e, s, u, n), i.stroke());
8251
8251
  }
8252
- class Le extends mt {
8252
+ class Le extends Mt {
8253
8253
  constructor(e) {
8254
8254
  super();
8255
8255
  Y(this, "circumference");
@@ -8351,14 +8351,14 @@ function Ch(i, t, e, s) {
8351
8351
  function yh(i, t, e, s) {
8352
8352
  const n = t.points, { count: o, start: a, ilen: r } = fa(n, e, s), { move: A = !0, reverse: l } = s || {};
8353
8353
  let c = 0, h = 0, d, g, u, f, p, w;
8354
- const M = (D) => (a + (l ? r - D : D)) % o, b = () => {
8354
+ const m = (D) => (a + (l ? r - D : D)) % o, b = () => {
8355
8355
  f !== p && (i.lineTo(c, p), i.lineTo(c, f), i.lineTo(c, w));
8356
8356
  };
8357
- for (A && (g = n[M(0)], i.moveTo(g.x, g.y)), d = 0; d <= r; ++d) {
8358
- if (g = n[M(d)], g.skip)
8357
+ for (A && (g = n[m(0)], i.moveTo(g.x, g.y)), d = 0; d <= r; ++d) {
8358
+ if (g = n[m(d)], g.skip)
8359
8359
  continue;
8360
- const D = g.x, m = g.y, x = D | 0;
8361
- x === u ? (m < f ? f = m : m > p && (p = m), c = (h * c + D) / ++h) : (b(), i.lineTo(D, m), u = x, h = 0, f = p = m), w = m;
8360
+ const D = g.x, M = g.y, x = D | 0;
8361
+ x === u ? (M < f ? f = M : M > p && (p = M), c = (h * c + D) / ++h) : (b(), i.lineTo(D, M), u = x, h = 0, f = p = M), w = M;
8362
8362
  }
8363
8363
  b();
8364
8364
  }
@@ -8385,7 +8385,7 @@ const Qh = typeof Path2D == "function";
8385
8385
  function kh(i, t, e, s) {
8386
8386
  Qh && !t.options.segment ? Ih(i, t, e, s) : Eh(i, t, e, s);
8387
8387
  }
8388
- class jt extends mt {
8388
+ class jt extends Mt {
8389
8389
  constructor(t) {
8390
8390
  super(), this.animated = !0, this.options = void 0, this._chart = void 0, this._loop = void 0, this._fullLoop = void 0, this._path = void 0, this._points = void 0, this._segments = void 0, this._decimated = !1, this._pointsUpdated = !1, this._datasetIndex = void 0, t && Object.assign(this, t);
8391
8391
  }
@@ -8393,7 +8393,7 @@ class jt extends mt {
8393
8393
  const s = this.options;
8394
8394
  if ((s.tension || s.cubicInterpolationMode === "monotone") && !s.stepped && !this._pointsUpdated) {
8395
8395
  const n = s.spanGaps ? this._loop : this._fullLoop;
8396
- ml(this._points, s, t, n, e), this._pointsUpdated = !0;
8396
+ Ml(this._points, s, t, n, e), this._pointsUpdated = !0;
8397
8397
  }
8398
8398
  }
8399
8399
  set points(t) {
@@ -8478,7 +8478,7 @@ function Wn(i, t, e, s) {
8478
8478
  ], s);
8479
8479
  return Math.abs(t - o) < n.radius + n.hitRadius;
8480
8480
  }
8481
- class xi extends mt {
8481
+ class xi extends Mt {
8482
8482
  constructor(e) {
8483
8483
  super();
8484
8484
  Y(this, "parsed");
@@ -8626,7 +8626,7 @@ function ts(i, t, e = {}) {
8626
8626
  radius: i.radius
8627
8627
  };
8628
8628
  }
8629
- class Ci extends mt {
8629
+ class Ci extends Mt {
8630
8630
  constructor(t) {
8631
8631
  super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
8632
8632
  }
@@ -8689,17 +8689,17 @@ const hs = [
8689
8689
  function wa(i) {
8690
8690
  return hs[i % hs.length];
8691
8691
  }
8692
- function Ma(i) {
8692
+ function ma(i) {
8693
8693
  return Zn[i % Zn.length];
8694
8694
  }
8695
8695
  function Rh(i, t) {
8696
- return i.borderColor = wa(t), i.backgroundColor = Ma(t), ++t;
8696
+ return i.borderColor = wa(t), i.backgroundColor = ma(t), ++t;
8697
8697
  }
8698
8698
  function jh(i, t) {
8699
8699
  return i.backgroundColor = i.data.map(() => wa(t++)), t;
8700
8700
  }
8701
8701
  function Hh(i, t) {
8702
- return i.backgroundColor = i.data.map(() => Ma(t++)), t;
8702
+ return i.backgroundColor = i.data.map(() => ma(t++)), t;
8703
8703
  }
8704
8704
  function Fh(i) {
8705
8705
  let t = 0;
@@ -8743,25 +8743,25 @@ function Wh(i, t, e, s, n) {
8743
8743
  const l = t + e - 1;
8744
8744
  let c = t, h, d, g, u, f;
8745
8745
  for (a[A++] = i[c], h = 0; h < o - 2; h++) {
8746
- let p = 0, w = 0, M;
8747
- const b = Math.floor((h + 1) * r) + 1 + t, D = Math.min(Math.floor((h + 2) * r) + 1, e) + t, m = D - b;
8748
- for (M = b; M < D; M++)
8749
- p += i[M].x, w += i[M].y;
8750
- p /= m, w /= m;
8746
+ let p = 0, w = 0, m;
8747
+ const b = Math.floor((h + 1) * r) + 1 + t, D = Math.min(Math.floor((h + 2) * r) + 1, e) + t, M = D - b;
8748
+ for (m = b; m < D; m++)
8749
+ p += i[m].x, w += i[m].y;
8750
+ p /= M, w /= M;
8751
8751
  const x = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x: v, y: I } = i[c];
8752
- for (g = u = -1, M = x; M < y; M++)
8753
- u = 0.5 * Math.abs((v - p) * (i[M].y - I) - (v - i[M].x) * (w - I)), u > g && (g = u, d = i[M], f = M);
8752
+ for (g = u = -1, m = x; m < y; m++)
8753
+ u = 0.5 * Math.abs((v - p) * (i[m].y - I) - (v - i[m].x) * (w - I)), u > g && (g = u, d = i[m], f = m);
8754
8754
  a[A++] = d, c = f;
8755
8755
  }
8756
8756
  return a[A++] = i[l], a;
8757
8757
  }
8758
8758
  function Zh(i, t, e, s) {
8759
8759
  let n = 0, o = 0, a, r, A, l, c, h, d, g, u, f;
8760
- const p = [], w = t + e - 1, M = i[t].x, D = i[w].x - M;
8760
+ const p = [], w = t + e - 1, m = i[t].x, D = i[w].x - m;
8761
8761
  for (a = t; a < t + e; ++a) {
8762
- r = i[a], A = (r.x - M) / D * s, l = r.y;
8763
- const m = A | 0;
8764
- if (m === c)
8762
+ r = i[a], A = (r.x - m) / D * s, l = r.y;
8763
+ const M = A | 0;
8764
+ if (M === c)
8765
8765
  l < u ? (u = l, h = a) : l > f && (f = l, d = a), n = (o * n + r.x) / ++o;
8766
8766
  else {
8767
8767
  const x = a - 1;
@@ -8775,12 +8775,12 @@ function Zh(i, t, e, s) {
8775
8775
  x: n
8776
8776
  });
8777
8777
  }
8778
- a > 0 && x !== g && p.push(i[x]), p.push(r), c = m, o = 0, u = f = l, h = d = g = a;
8778
+ a > 0 && x !== g && p.push(i[x]), p.push(r), c = M, o = 0, u = f = l, h = d = g = a;
8779
8779
  }
8780
8780
  }
8781
8781
  return p;
8782
8782
  }
8783
- function ma(i) {
8783
+ function Ma(i) {
8784
8784
  if (i._decimated) {
8785
8785
  const t = i._data;
8786
8786
  delete i._decimated, delete i._data, Object.defineProperty(i, "data", {
@@ -8793,7 +8793,7 @@ function ma(i) {
8793
8793
  }
8794
8794
  function Un(i) {
8795
8795
  i.data.datasets.forEach((t) => {
8796
- ma(t);
8796
+ Ma(t);
8797
8797
  });
8798
8798
  }
8799
8799
  function Kh(i, t) {
@@ -8830,7 +8830,7 @@ var Uh = {
8830
8830
  let { start: h, count: d } = Kh(A, l);
8831
8831
  const g = e.threshold || 4 * s;
8832
8832
  if (d <= g) {
8833
- ma(n);
8833
+ Ma(n);
8834
8834
  return;
8835
8835
  }
8836
8836
  z(a) && (n._data = l, delete n.data, Object.defineProperty(n, "data", {
@@ -9235,7 +9235,7 @@ const to = (i, t) => {
9235
9235
  itemHeight: Math.max(t, e)
9236
9236
  };
9237
9237
  }, fd = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
9238
- class eo extends mt {
9238
+ class eo extends Mt {
9239
9239
  constructor(t) {
9240
9240
  super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
9241
9241
  }
@@ -9284,7 +9284,7 @@ class eo extends mt {
9284
9284
  const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, A = this.legendHitBoxes = [], l = this.columnSizes = [], c = a - t;
9285
9285
  let h = r, d = 0, g = 0, u = 0, f = 0;
9286
9286
  return this.legendItems.forEach((p, w) => {
9287
- const { itemWidth: M, itemHeight: b } = pd(s, e, o, p, n);
9287
+ const { itemWidth: m, itemHeight: b } = pd(s, e, o, p, n);
9288
9288
  w > 0 && g + b + 2 * r > c && (h += d + r, l.push({
9289
9289
  width: d,
9290
9290
  height: g
@@ -9292,9 +9292,9 @@ class eo extends mt {
9292
9292
  left: u,
9293
9293
  top: g,
9294
9294
  col: f,
9295
- width: M,
9295
+ width: m,
9296
9296
  height: b
9297
- }, d = Math.max(d, M), g += b + r;
9297
+ }, d = Math.max(d, m), g += b + r;
9298
9298
  }), h += d, l.push({
9299
9299
  width: d,
9300
9300
  height: g
@@ -9351,7 +9351,7 @@ class eo extends mt {
9351
9351
  }) : n.rect(k, Q, u, f), n.fill(), I !== 0 && n.stroke();
9352
9352
  }
9353
9353
  n.restore();
9354
- }, M = function(x, y, v) {
9354
+ }, m = function(x, y, v) {
9355
9355
  oe(n, v.text, x, y + p / 2, l, {
9356
9356
  strikethrough: v.hidden,
9357
9357
  textAlign: A.textAlign(v.textAlign)
@@ -9366,20 +9366,20 @@ class eo extends mt {
9366
9366
  y: nt(o, this.top + D + c, this.bottom - e[0].height),
9367
9367
  line: 0
9368
9368
  }, qo(this.ctx, t.textDirection);
9369
- const m = p + c;
9369
+ const M = p + c;
9370
9370
  this.legendItems.forEach((x, y) => {
9371
9371
  n.strokeStyle = x.fontColor, n.fillStyle = x.fontColor;
9372
9372
  const v = n.measureText(x.text).width, I = A.textAlign(x.textAlign || (x.textAlign = a.textAlign)), Q = u + d + v;
9373
9373
  let k = g.x, O = g.y;
9374
- A.setWidth(this.width), b ? y > 0 && k + Q + c > this.right && (O = g.y += m, g.line++, k = g.x = nt(o, this.left + c, this.right - s[g.line])) : y > 0 && O + m > this.bottom && (k = g.x = k + e[g.line].width + c, g.line++, O = g.y = nt(o, this.top + D + c, this.bottom - e[g.line].height));
9374
+ A.setWidth(this.width), b ? y > 0 && k + Q + c > this.right && (O = g.y += M, g.line++, k = g.x = nt(o, this.left + c, this.right - s[g.line])) : y > 0 && O + M > this.bottom && (k = g.x = k + e[g.line].width + c, g.line++, O = g.y = nt(o, this.top + D + c, this.bottom - e[g.line].height));
9375
9375
  const it = A.x(k);
9376
- if (w(it, O, x), k = TA(I, k + u + d, b ? k + Q : this.right, t.rtl), M(A.x(k), O, x), b)
9376
+ if (w(it, O, x), k = TA(I, k + u + d, b ? k + Q : this.right, t.rtl), m(A.x(k), O, x), b)
9377
9377
  g.x += Q + c;
9378
9378
  else if (typeof x.text != "string") {
9379
9379
  const ct = l.lineHeight;
9380
9380
  g.y += Ba(x, ct) + c;
9381
9381
  } else
9382
- g.y += m;
9382
+ g.y += M;
9383
9383
  }), _o(this.ctx, t.textDirection);
9384
9384
  }
9385
9385
  drawTitle() {
@@ -9412,7 +9412,7 @@ class eo extends mt {
9412
9412
  }
9413
9413
  handleEvent(t) {
9414
9414
  const e = this.options;
9415
- if (!md(t.type, e))
9415
+ if (!Md(t.type, e))
9416
9416
  return;
9417
9417
  const s = this._getLegendItemAt(t.x, t.y);
9418
9418
  if (t.type === "mousemove" || t.type === "mouseout") {
@@ -9435,7 +9435,7 @@ class eo extends mt {
9435
9435
  }
9436
9436
  }
9437
9437
  function pd(i, t, e, s, n) {
9438
- const o = wd(s, i, t, e), a = Md(n, s, t.lineHeight);
9438
+ const o = wd(s, i, t, e), a = md(n, s, t.lineHeight);
9439
9439
  return {
9440
9440
  itemWidth: o,
9441
9441
  itemHeight: a
@@ -9445,7 +9445,7 @@ function wd(i, t, e, s) {
9445
9445
  let n = i.text;
9446
9446
  return n && typeof n != "string" && (n = n.reduce((o, a) => o.length > a.length ? o : a)), t + e.size / 2 + s.measureText(n).width;
9447
9447
  }
9448
- function Md(i, t, e) {
9448
+ function md(i, t, e) {
9449
9449
  let s = i;
9450
9450
  return typeof t.text != "string" && (s = Ba(t, e)), s;
9451
9451
  }
@@ -9453,7 +9453,7 @@ function Ba(i, t) {
9453
9453
  const e = i.text ? i.text.length : 0;
9454
9454
  return t * e;
9455
9455
  }
9456
- function md(i, t) {
9456
+ function Md(i, t) {
9457
9457
  return !!((i === "mousemove" || i === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (i === "click" || i === "mouseup"));
9458
9458
  }
9459
9459
  var Dd = {
@@ -9540,7 +9540,7 @@ var Dd = {
9540
9540
  }
9541
9541
  }
9542
9542
  };
9543
- class zs extends mt {
9543
+ class zs extends Mt {
9544
9544
  constructor(t) {
9545
9545
  super(), this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this._padding = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
9546
9546
  }
@@ -9730,19 +9730,19 @@ function Yd(i, t) {
9730
9730
  }
9731
9731
  function io(i, t) {
9732
9732
  const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: a, boxHeight: r } = t, A = q(t.bodyFont), l = q(t.titleFont), c = q(t.footerFont), h = o.length, d = n.length, g = s.length, u = at(t.padding);
9733
- let f = u.height, p = 0, w = s.reduce((D, m) => D + m.before.length + m.lines.length + m.after.length, 0);
9733
+ let f = u.height, p = 0, w = s.reduce((D, M) => D + M.before.length + M.lines.length + M.after.length, 0);
9734
9734
  if (w += i.beforeBody.length + i.afterBody.length, h && (f += h * l.lineHeight + (h - 1) * t.titleSpacing + t.titleMarginBottom), w) {
9735
9735
  const D = t.displayColors ? Math.max(r, A.lineHeight) : A.lineHeight;
9736
9736
  f += g * D + (w - g) * A.lineHeight + (w - 1) * t.bodySpacing;
9737
9737
  }
9738
9738
  d && (f += t.footerMarginTop + d * c.lineHeight + (d - 1) * t.footerSpacing);
9739
- let M = 0;
9739
+ let m = 0;
9740
9740
  const b = function(D) {
9741
- p = Math.max(p, e.measureText(D).width + M);
9741
+ p = Math.max(p, e.measureText(D).width + m);
9742
9742
  };
9743
- return e.save(), e.font = l.string, L(i.title, b), e.font = A.string, L(i.beforeBody.concat(i.afterBody), b), M = t.displayColors ? a + 2 + t.boxPadding : 0, L(s, (D) => {
9743
+ return e.save(), e.font = l.string, L(i.title, b), e.font = A.string, L(i.beforeBody.concat(i.afterBody), b), m = t.displayColors ? a + 2 + t.boxPadding : 0, L(s, (D) => {
9744
9744
  L(D.before, b), L(D.lines, b), L(D.after, b);
9745
- }), M = 0, e.font = c.string, L(i.footer, b), e.restore(), p += u.width, {
9745
+ }), m = 0, e.font = c.string, L(i.footer, b), e.restore(), p += u.width, {
9746
9746
  width: p,
9747
9747
  height: f
9748
9748
  };
@@ -9859,7 +9859,7 @@ function rt(i, t, e, s) {
9859
9859
  const n = i[t].call(e, s);
9860
9860
  return typeof n > "u" ? Ga[t].call(e, s) : n;
9861
9861
  }
9862
- class gs extends mt {
9862
+ class gs extends Mt {
9863
9863
  constructor(t) {
9864
9864
  super(), this.opacity = 0, this._active = [], this._eventPosition = void 0, this._size = void 0, this._cachedAnimations = void 0, this._tooltipItems = [], this.$animations = void 0, this.$context = void 0, this.chart = t.chart, this.options = t.options, this.dataPoints = void 0, this.title = void 0, this.beforeBody = void 0, this.body = void 0, this.afterBody = void 0, this.footer = void 0, this.xAlign = void 0, this.yAlign = void 0, this.x = void 0, this.y = void 0, this.height = void 0, this.width = void 0, this.caretX = void 0, this.caretY = void 0, this.labelColors = void 0, this.labelPointStyles = void 0, this.labelTextColors = void 0;
9865
9865
  }
@@ -9946,14 +9946,14 @@ class gs extends mt {
9946
9946
  }
9947
9947
  getCaretPosition(t, e, s) {
9948
9948
  const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: A, topRight: l, bottomLeft: c, bottomRight: h } = ie(r), { x: d, y: g } = t, { width: u, height: f } = e;
9949
- let p, w, M, b, D, m;
9950
- return o === "center" ? (D = g + f / 2, n === "left" ? (p = d, w = p - a, b = D + a, m = D - a) : (p = d + u, w = p + a, b = D - a, m = D + a), M = p) : (n === "left" ? w = d + Math.max(A, c) + a : n === "right" ? w = d + u - Math.max(l, h) - a : w = this.caretX, o === "top" ? (b = g, D = b - a, p = w - a, M = w + a) : (b = g + f, D = b + a, p = w + a, M = w - a), m = b), {
9949
+ let p, w, m, b, D, M;
9950
+ return o === "center" ? (D = g + f / 2, n === "left" ? (p = d, w = p - a, b = D + a, M = D - a) : (p = d + u, w = p + a, b = D - a, M = D + a), m = p) : (n === "left" ? w = d + Math.max(A, c) + a : n === "right" ? w = d + u - Math.max(l, h) - a : w = this.caretX, o === "top" ? (b = g, D = b - a, p = w - a, m = w + a) : (b = g + f, D = b + a, p = w + a, m = w - a), M = b), {
9951
9951
  x1: p,
9952
9952
  x2: w,
9953
- x3: M,
9953
+ x3: m,
9954
9954
  y1: b,
9955
9955
  y2: D,
9956
- y3: m
9956
+ y3: M
9957
9957
  };
9958
9958
  }
9959
9959
  drawTitle(t, e, s) {
@@ -9978,7 +9978,7 @@ class gs extends mt {
9978
9978
  } else {
9979
9979
  t.lineWidth = P(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
9980
9980
  const f = n.leftForLtr(d, l), p = n.leftForLtr(n.xPlus(d, 1), l - 2), w = ie(a.borderRadius);
9981
- Object.values(w).some((M) => M !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Je(t, {
9981
+ Object.values(w).some((m) => m !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Je(t, {
9982
9982
  x: f,
9983
9983
  y: u,
9984
9984
  w: l,
@@ -10000,10 +10000,10 @@ class gs extends mt {
10000
10000
  const u = fe(s.rtl, this.x, this.width), f = function(v) {
10001
10001
  e.fillText(v, u.x(t.x + g), t.y + d / 2), t.y += d + o;
10002
10002
  }, p = u.textAlign(a);
10003
- let w, M, b, D, m, x, y;
10003
+ let w, m, b, D, M, x, y;
10004
10004
  for (e.textAlign = a, e.textBaseline = "middle", e.font = h.string, t.x = pi(this, p, s), e.fillStyle = s.bodyColor, L(this.beforeBody, f), g = r && p !== "right" ? a === "center" ? l / 2 + c : l + 2 + c : 0, D = 0, x = n.length; D < x; ++D) {
10005
- for (w = n[D], M = this.labelTextColors[D], e.fillStyle = M, L(w.before, f), b = w.lines, r && b.length && (this._drawColorBox(e, t, D, u, s), d = Math.max(h.lineHeight, A)), m = 0, y = b.length; m < y; ++m)
10006
- f(b[m]), d = h.lineHeight;
10005
+ for (w = n[D], m = this.labelTextColors[D], e.fillStyle = m, L(w.before, f), b = w.lines, r && b.length && (this._drawColorBox(e, t, D, u, s), d = Math.max(h.lineHeight, A)), M = 0, y = b.length; M < y; ++M)
10006
+ f(b[M]), d = h.lineHeight;
10007
10007
  L(w.after, f);
10008
10008
  }
10009
10009
  g = 0, d = h.lineHeight, L(this.afterBody, f), t.y -= o;
@@ -10294,9 +10294,9 @@ Y(us, "id", "category"), Y(us, "defaults", {
10294
10294
  }
10295
10295
  });
10296
10296
  function Ld(i, t) {
10297
- const e = [], { bounds: n, step: o, min: a, max: r, precision: A, count: l, maxTicks: c, maxDigits: h, includeBounds: d } = i, g = o || 1, u = c - 1, { min: f, max: p } = t, w = !z(a), M = !z(r), b = !z(l), D = (p - f) / (h + 1);
10298
- let m = tn((p - f) / u / g) * g, x, y, v, I;
10299
- if (m < 1e-14 && !w && !M)
10297
+ const e = [], { bounds: n, step: o, min: a, max: r, precision: A, count: l, maxTicks: c, maxDigits: h, includeBounds: d } = i, g = o || 1, u = c - 1, { min: f, max: p } = t, w = !z(a), m = !z(r), b = !z(l), D = (p - f) / (h + 1);
10298
+ let M = tn((p - f) / u / g) * g, x, y, v, I;
10299
+ if (M < 1e-14 && !w && !m)
10300
10300
  return [
10301
10301
  {
10302
10302
  value: f
@@ -10305,23 +10305,23 @@ function Ld(i, t) {
10305
10305
  value: p
10306
10306
  }
10307
10307
  ];
10308
- I = Math.ceil(p / m) - Math.floor(f / m), I > u && (m = tn(I * m / u / g) * g), z(A) || (x = Math.pow(10, A), m = Math.ceil(m * x) / x), n === "ticks" ? (y = Math.floor(f / m) * m, v = Math.ceil(p / m) * m) : (y = f, v = p), w && M && o && EA((r - a) / o, m / 1e3) ? (I = Math.round(Math.min((r - a) / m, c)), m = (r - a) / I, y = a, v = r) : b ? (y = w ? a : y, v = M ? r : v, I = l - 1, m = (v - y) / I) : (I = (v - y) / m, je(I, Math.round(I), m / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
10309
- const Q = Math.max(en(m), en(y));
10308
+ I = Math.ceil(p / M) - Math.floor(f / M), I > u && (M = tn(I * M / u / g) * g), z(A) || (x = Math.pow(10, A), M = Math.ceil(M * x) / x), n === "ticks" ? (y = Math.floor(f / M) * M, v = Math.ceil(p / M) * M) : (y = f, v = p), w && m && o && EA((r - a) / o, M / 1e3) ? (I = Math.round(Math.min((r - a) / M, c)), M = (r - a) / I, y = a, v = r) : b ? (y = w ? a : y, v = m ? r : v, I = l - 1, M = (v - y) / I) : (I = (v - y) / M, je(I, Math.round(I), M / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
10309
+ const Q = Math.max(en(M), en(y));
10310
10310
  x = Math.pow(10, z(A) ? Q : A), y = Math.round(y * x) / x, v = Math.round(v * x) / x;
10311
10311
  let k = 0;
10312
10312
  for (w && (d && y !== a ? (e.push({
10313
10313
  value: a
10314
- }), y < a && k++, je(Math.round((y + k * m) * x) / x, a, Ao(a, D, i)) && k++) : y < a && k++); k < I; ++k) {
10315
- const O = Math.round((y + k * m) * x) / x;
10316
- if (M && O > r)
10314
+ }), y < a && k++, je(Math.round((y + k * M) * x) / x, a, Ao(a, D, i)) && k++) : y < a && k++); k < I; ++k) {
10315
+ const O = Math.round((y + k * M) * x) / x;
10316
+ if (m && O > r)
10317
10317
  break;
10318
10318
  e.push({
10319
10319
  value: O
10320
10320
  });
10321
10321
  }
10322
- return M && d && v !== r ? e.length && je(e[e.length - 1].value, r, Ao(r, D, i)) ? e[e.length - 1].value = r : e.push({
10322
+ return m && d && v !== r ? e.length && je(e[e.length - 1].value, r, Ao(r, D, i)) ? e[e.length - 1].value = r : e.push({
10323
10323
  value: r
10324
- }) : (!M || v === r) && e.push({
10324
+ }) : (!m || v === r) && e.push({
10325
10325
  value: v
10326
10326
  }), e;
10327
10327
  }
@@ -10880,7 +10880,7 @@ function uo(i, t) {
10880
10880
  return null;
10881
10881
  const e = i._adapter, { parser: s, round: n, isoWeekday: o } = i._parseOpts;
10882
10882
  let a = t;
10883
- return typeof s == "function" && (a = s(a)), W(a) || (a = typeof s == "string" ? e.parse(a, s) : e.parse(a)), a === null ? null : (n && (a = n === "week" && (Me(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, n)), +a);
10883
+ return typeof s == "function" && (a = s(a)), W(a) || (a = typeof s == "string" ? e.parse(a, s) : e.parse(a)), a === null ? null : (n && (a = n === "week" && (me(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, n)), +a);
10884
10884
  }
10885
10885
  function fo(i, t, e, s) {
10886
10886
  const n = At.length;
@@ -10991,7 +10991,7 @@ class $e extends re {
10991
10991
  };
10992
10992
  }
10993
10993
  _generate() {
10994
- const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, a = o.unit || fo(o.minUnit, e, s, this._getLabelCapacity(e)), r = E(n.ticks.stepSize, 1), A = a === "week" ? o.isoWeekday : !1, l = Me(A) || A === !0, c = {};
10994
+ const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, a = o.unit || fo(o.minUnit, e, s, this._getLabelCapacity(e)), r = E(n.ticks.stepSize, 1), A = a === "week" ? o.isoWeekday : !1, l = me(A) || A === !0, c = {};
10995
10995
  let h = e, d, g;
10996
10996
  if (l && (h = +t.startOf(h, "isoWeek", A)), h = +t.startOf(h, l ? "day" : a), t.diff(s, e, a) > 1e5 * r)
10997
10997
  throw new Error(e + " and " + s + " are too far apart with stepSize of " + r + " " + a);
@@ -11098,7 +11098,7 @@ function wi(i, t, e) {
11098
11098
  const l = a - o;
11099
11099
  return l ? r + (A - r) * (t - o) / l : r;
11100
11100
  }
11101
- class Ms extends $e {
11101
+ class ms extends $e {
11102
11102
  constructor(t) {
11103
11103
  super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
11104
11104
  }
@@ -11149,7 +11149,7 @@ class Ms extends $e {
11149
11149
  return wi(this._table, s * this._tableRange + this._minPos, !0);
11150
11150
  }
11151
11151
  }
11152
- Y(Ms, "id", "timeseries"), Y(Ms, "defaults", $e.defaults);
11152
+ Y(ms, "id", "timeseries"), Y(ms, "defaults", $e.defaults);
11153
11153
  var eg = /* @__PURE__ */ Object.freeze({
11154
11154
  __proto__: null,
11155
11155
  CategoryScale: us,
@@ -11157,7 +11157,7 @@ var eg = /* @__PURE__ */ Object.freeze({
11157
11157
  LogarithmicScale: ps,
11158
11158
  RadialLinearScale: Se,
11159
11159
  TimeScale: $e,
11160
- TimeSeriesScale: Ms
11160
+ TimeSeriesScale: ms
11161
11161
  });
11162
11162
  const ig = [
11163
11163
  Ac,
@@ -11793,6 +11793,8 @@ const Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11793
11793
 
11794
11794
  .toast--error { background: #ffebe8; }
11795
11795
 
11796
+ .toast--info { background: #edf1fb; }
11797
+
11796
11798
  .toast--success { background: #e8f9f0; }
11797
11799
 
11798
11800
  @media(min-width: 62em)
@@ -11813,7 +11815,7 @@ const Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11813
11815
  opacity: 1;
11814
11816
  }
11815
11817
  }
11816
- `, Mg = C`
11818
+ `, mg = C`
11817
11819
  .toast__message
11818
11820
  {
11819
11821
  margin: 0;
@@ -11824,8 +11826,10 @@ const Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11824
11826
 
11825
11827
  .toast--error .toast__message { color: #981f10; }
11826
11828
 
11829
+ .toast--info .toast__message { color: #4b77d7; }
11830
+
11827
11831
  .toast--success .toast__message { color: #0f753e; }
11828
- `, mg = C`
11832
+ `, Mg = C`
11829
11833
  .genus-icon { pointer-events: none; }
11830
11834
  `, Dg = C`
11831
11835
  .toast
@@ -11835,6 +11839,12 @@ const Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11835
11839
  grid-column-gap: 1rem;
11836
11840
  align-items: center;
11837
11841
  }
11842
+
11843
+ .toast--info
11844
+ {
11845
+ grid-template-columns: 1fr;
11846
+ grid-column-gap: unset;
11847
+ }
11838
11848
  `, bg = C`
11839
11849
  .close-btn
11840
11850
  {
@@ -11842,6 +11852,8 @@ const Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11842
11852
  width: 1.25rem;
11843
11853
  height: 1.25rem;
11844
11854
  }
11855
+
11856
+ .close-btn:hover { cursor: pointer; }
11845
11857
  `, Bg = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Close%20Square%3c/title%3e%3cg%20id='Iconly/Bold/Close-Square'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Close-Square'%20transform='translate(1.999800,%201.999200)'%20fill='%23fe331a'%20fill-rule='nonzero'%3e%3cpath%20d='M14.34,2.84217094e-14%20C17.73,2.84217094e-14%2020,2.38%2020,5.92%20L20,5.92%20L20,14.091%20C20,17.621%2017.73,20%2014.34,20%20L14.34,20%20L5.67,20%20C2.28,20%200,17.621%200,14.091%20L0,14.091%20L0,5.92%20C0,2.38%202.28,2.84217094e-14%205.67,2.84217094e-14%20L5.67,2.84217094e-14%20Z%20M13.01,6.971%20C12.67,6.63%2012.12,6.63%2011.77,6.971%20L11.77,6.971%20L10,8.75%20L8.22,6.971%20C7.87,6.63%207.32,6.63%206.98,6.971%20C6.64,7.311%206.64,7.871%206.98,8.21%20L6.98,8.21%20L8.76,9.991%20L6.98,11.761%20C6.64,12.111%206.64,12.661%206.98,13%20C7.15,13.17%207.38,13.261%207.6,13.261%20C7.83,13.261%208.05,13.17%208.22,13%20L8.22,13%20L10,11.231%20L11.78,13%20C11.95,13.181%2012.17,13.261%2012.39,13.261%20C12.62,13.261%2012.84,13.17%2013.01,13%20C13.35,12.661%2013.35,12.111%2013.01,11.771%20L13.01,11.771%20L11.23,9.991%20L13.01,8.21%20C13.35,7.871%2013.35,7.311%2013.01,6.971%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Gg = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Close%20Square%3c/title%3e%3cg%20id='Iconly/Bold/Close-Square'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Close-Square'%20transform='translate(1.999800,%201.999200)'%20fill='%2319c368'%20fill-rule='nonzero'%3e%3cpath%20d='M14.34,2.84217094e-14%20C17.73,2.84217094e-14%2020,2.38%2020,5.92%20L20,5.92%20L20,14.091%20C20,17.621%2017.73,20%2014.34,20%20L14.34,20%20L5.67,20%20C2.28,20%200,17.621%200,14.091%20L0,14.091%20L0,5.92%20C0,2.38%202.28,2.84217094e-14%205.67,2.84217094e-14%20L5.67,2.84217094e-14%20Z%20M13.01,6.971%20C12.67,6.63%2012.12,6.63%2011.77,6.971%20L11.77,6.971%20L10,8.75%20L8.22,6.971%20C7.87,6.63%207.32,6.63%206.98,6.971%20C6.64,7.311%206.64,7.871%206.98,8.21%20L6.98,8.21%20L8.76,9.991%20L6.98,11.761%20C6.64,12.111%206.64,12.661%206.98,13%20C7.15,13.17%207.38,13.261%207.6,13.261%20C7.83,13.261%208.05,13.17%208.22,13%20L8.22,13%20L10,11.231%20L11.78,13%20C11.95,13.181%2012.17,13.261%2012.39,13.261%20C12.62,13.261%2012.84,13.17%2013.01,13%20C13.35,12.661%2013.35,12.111%2013.01,11.771%20L13.01,11.771%20L11.23,9.991%20L13.01,8.21%20C13.35,7.871%2013.35,7.311%2013.01,6.971%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
11846
11858
  var Yg = Object.defineProperty, xg = Object.getOwnPropertyDescriptor, Vi = (i, t, e, s) => {
11847
11859
  for (var n = s > 1 ? void 0 : s ? xg(t, e) : t, o = i.length - 1, a; o >= 0; o--)
@@ -11850,20 +11862,23 @@ var Yg = Object.defineProperty, xg = Object.getOwnPropertyDescriptor, Vi = (i, t
11850
11862
  };
11851
11863
  let be = class extends tt {
11852
11864
  constructor() {
11853
- super(...arguments), this.toastMessage = "", this.toastType = "error", this.showToast = !1, this.setToastVisibility = () => {
11865
+ super(...arguments), this.toastMessage = "", this.toastType = "info", this.showToast = !1, this.setToastVisibility = () => {
11854
11866
  this.showToast && (this.showToast = !this.showToast), this.dispatchEvent(new CustomEvent("clicked", { detail: this.showToast }));
11867
+ }, this.renderCloseBtn = (i) => {
11868
+ let t = B``;
11869
+ return i === "success" && (t = B`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${Gg}' width='20' height='20'></object></span>`), i === "error" && (t = B`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${Bg}' width='20' height='20'></object></span>`), t;
11855
11870
  };
11856
11871
  }
11857
11872
  render() {
11858
11873
  return B`
11859
- <div class='toast toast--${this.toastType} ${this.showToast ? "toast--show-toast" : ""}'>
11874
+ <div class='toast toast--${this.toastType} ${this.showToast && "toast--show-toast"}'>
11860
11875
  <p class='toast__message'>${this.toastMessage}</p>
11861
- ${this.toastType === "success" ? B`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${Gg}' width='20' height='20'></object></span>` : B`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${Bg}' width='20' height='20'></object></span>`}
11876
+ ${this.renderCloseBtn(this.toastType)}
11862
11877
  </div>
11863
11878
  `;
11864
11879
  }
11865
11880
  };
11866
- be.styles = [wg, Mg, Dg, mg, bg];
11881
+ be.styles = [wg, mg, Dg, Mg, bg];
11867
11882
  Vi([
11868
11883
  G({ attribute: "toast-message" })
11869
11884
  ], be.prototype, "toastMessage", 2);
@@ -12097,7 +12112,7 @@ const Pg = C`
12097
12112
  .upload-label:hover { cursor: pointer; }
12098
12113
  `, Tg = C`
12099
12114
  input[type='file'] { display: none; }
12100
- `, Mo = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Upload%3c/title%3e%3cg%20id='Iconly/Bold/Upload'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Upload'%20transform='translate(2.000000,%202.000000)'%20fill='%23213e70'%20fill-rule='nonzero'%3e%3cpath%20d='M1.77635684e-15,11.2874674%20C1.77635684e-15,8.87583953%201.8779102,6.89627143%204.23116222,6.78512193%20L4.44,6.7802%20L9.23,6.7802%20L9.23,12.8848512%20C9.23,13.3223512%209.57,13.6682814%2010,13.6682814%20C10.385,13.6682814%2010.7111806,13.3776039%2010.7628704,12.9921713%20L10.77,12.8848512%20L10.77,6.7802%20L15.55,6.7802%20C17.93,6.7802%2019.8853469,8.69086445%2019.9951382,11.0944886%20L20,11.3078163%20L20,16.2627581%20C20,18.6842698%2018.1220898,20.6641203%2015.7688378,20.7752778%20L15.56,20.7802%20L4.45,20.7802%20C2.06028571,20.7802%200.114097959,18.8599342%200.00483801749,16.4650885%20L1.77635684e-15,16.2525837%20L1.77635684e-15,11.2874674%20Z%20M6.5502,4.24%20C6.26838182,3.96727273%206.24276198,3.53752066%206.46582735,3.23624343%20L6.5402,3.15%20L9.4502,0.23%20C9.6002,0.08%209.7902,-1.42108547e-14%2010.0002,-1.42108547e-14%20C10.1602,-1.42108547e-14%2010.3202,0.0512%2010.44948,0.14848%20L10.5402,0.23%20L13.4502,3.15%20C13.6002,3.3%2013.6802,3.5%2013.6802,3.69%20C13.6802,3.89%2013.6002,4.09%2013.4502,4.24%20C13.1774727,4.51272727%2012.7477207,4.53752066%2012.4464434,4.31438017%20L12.3602,4.24%20L10.7702,2.64%20L10.7702,6.78%20L9.2302,6.78%20L9.2302,2.64%20L7.6402,4.24%20C7.3402,4.54%206.8502,4.54%206.5502,4.24%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
12115
+ `, mo = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Upload%3c/title%3e%3cg%20id='Iconly/Bold/Upload'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Upload'%20transform='translate(2.000000,%202.000000)'%20fill='%23213e70'%20fill-rule='nonzero'%3e%3cpath%20d='M1.77635684e-15,11.2874674%20C1.77635684e-15,8.87583953%201.8779102,6.89627143%204.23116222,6.78512193%20L4.44,6.7802%20L9.23,6.7802%20L9.23,12.8848512%20C9.23,13.3223512%209.57,13.6682814%2010,13.6682814%20C10.385,13.6682814%2010.7111806,13.3776039%2010.7628704,12.9921713%20L10.77,12.8848512%20L10.77,6.7802%20L15.55,6.7802%20C17.93,6.7802%2019.8853469,8.69086445%2019.9951382,11.0944886%20L20,11.3078163%20L20,16.2627581%20C20,18.6842698%2018.1220898,20.6641203%2015.7688378,20.7752778%20L15.56,20.7802%20L4.45,20.7802%20C2.06028571,20.7802%200.114097959,18.8599342%200.00483801749,16.4650885%20L1.77635684e-15,16.2525837%20L1.77635684e-15,11.2874674%20Z%20M6.5502,4.24%20C6.26838182,3.96727273%206.24276198,3.53752066%206.46582735,3.23624343%20L6.5402,3.15%20L9.4502,0.23%20C9.6002,0.08%209.7902,-1.42108547e-14%2010.0002,-1.42108547e-14%20C10.1602,-1.42108547e-14%2010.3202,0.0512%2010.44948,0.14848%20L10.5402,0.23%20L13.4502,3.15%20C13.6002,3.3%2013.6802,3.5%2013.6802,3.69%20C13.6802,3.89%2013.6002,4.09%2013.4502,4.24%20C13.1774727,4.51272727%2012.7477207,4.53752066%2012.4464434,4.31438017%20L12.3602,4.24%20L10.7702,2.64%20L10.7702,6.78%20L9.2302,6.78%20L9.2302,2.64%20L7.6402,4.24%20C7.3402,4.54%206.8502,4.54%206.5502,4.24%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
12101
12116
  var Sg = Object.defineProperty, Rg = Object.getOwnPropertyDescriptor, le = (i, t, e, s) => {
12102
12117
  for (var n = s > 1 ? void 0 : s ? Rg(t, e) : t, o = i.length - 1, a; o >= 0; o--)
12103
12118
  (a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
@@ -12129,12 +12144,12 @@ let Tt = class extends tt {
12129
12144
  ` : this.withoutButtonText ? i = B`
12130
12145
  <input type='file' id='file-input' accept='${this.specificFileTypes}' @change='${this.getInputValue}' multiple />
12131
12146
  <label class='upload-label upload-label--without-button-text' for='file-input'>
12132
- <img class='component-icon' src='${this.uploadIcon || Mo}' />
12147
+ <img class='component-icon' src='${this.uploadIcon || mo}' />
12133
12148
  </label>
12134
12149
  ` : i = B`
12135
12150
  <input type='file' id='file-input' accept='${this.specificFileTypes}' @change='${this.getInputValue}' multiple />
12136
12151
  <label class='upload-label' for='file-input'>
12137
- <img class='component-icon' src='${this.uploadIcon || Mo}' />
12152
+ <img class='component-icon' src='${this.uploadIcon || mo}' />
12138
12153
  <span class='button-text'>${this.buttonText}</span>
12139
12154
  </label>
12140
12155
  `, i;
@@ -12225,7 +12240,7 @@ export {
12225
12240
  Jg as GenusDataTable,
12226
12241
  Xg as GenusDropDownSelect,
12227
12242
  Tt as GenusFileUpload,
12228
- Mt as GenusRadioBtnGroup,
12243
+ mt as GenusRadioBtnGroup,
12229
12244
  Zg as GenusTabs,
12230
12245
  Ot as GenusTextArea,
12231
12246
  K as GenusTextBox,