@carbon/charts 1.23.15 → 1.23.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/a11y-ePqvrObQ.mjs.map +1 -1
  3. package/dist/{angle-utils-Re7uVv7K.mjs → angle-utils-BWFhuTnR.mjs} +49 -54
  4. package/dist/{angle-utils-Re7uVv7K.mjs.map → angle-utils-BWFhuTnR.mjs.map} +1 -1
  5. package/dist/{array-CLq6Q40W.mjs → array-4CiuhqlQ.mjs} +2 -2
  6. package/dist/{array-CLq6Q40W.mjs.map → array-4CiuhqlQ.mjs.map} +1 -1
  7. package/dist/axis-scales-CPuwbFQf.mjs.map +1 -1
  8. package/dist/{choropleth-DvuP75LI.mjs → choropleth-Bst0hbTL.mjs} +482 -505
  9. package/dist/{choropleth-DvuP75LI.mjs.map → choropleth-Bst0hbTL.mjs.map} +1 -1
  10. package/dist/{color-scale-utils-BPsvYA85.mjs → color-scale-utils-DCBFJmbg.mjs} +1152 -1161
  11. package/dist/{color-scale-utils-BPsvYA85.mjs.map → color-scale-utils-DCBFJmbg.mjs.map} +1 -1
  12. package/dist/components/index.mjs +1 -1
  13. package/dist/{index-Ciju2yyn.mjs → index-BILVb6NZ.mjs} +442 -447
  14. package/dist/{index-Ciju2yyn.mjs.map → index-BILVb6NZ.mjs.map} +1 -1
  15. package/dist/index.d.cts +21 -0
  16. package/dist/index.mjs +62 -63
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/model/index.mjs +22 -22
  19. package/dist/model/index.mjs.map +1 -1
  20. package/dist/services/index.mjs +3 -3
  21. package/dist/styles.css +96 -0
  22. package/dist/styles.css.map +1 -1
  23. package/dist/styles.min.css +1 -1
  24. package/dist/styles.min.css.map +1 -1
  25. package/dist/umd/bundle.umd.cjs +14 -14
  26. package/dist/umd/bundle.umd.cjs.map +1 -1
  27. package/dist/umd/bundle.umd.js +14 -14
  28. package/package.json +24 -25
  29. package/styles.css +96 -0
  30. package/styles.min.css +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.23.16 (2025-08-13)
7
+
8
+ **Note:** Version bump only for package @carbon/charts
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
6
15
  ## 1.23.15 (2025-07-25)
7
16
 
8
17
  ### Bug Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"a11y-ePqvrObQ.mjs","sources":["../src/interfaces/a11y.ts"],"sourcesContent":["export enum Roles {\n\tGRAPHICS_DOCUMENT = 'graphics-document',\n\tGRAPHICS_OBJECT = 'graphics-object',\n\tGRAPHICS_SYMBOL = 'graphics-symbol',\n\tGROUP = 'group',\n\tDOCUMENT = 'document',\n\tCHECKBOX = 'checkbox',\n\tBUTTON = 'button',\n\tMENU = 'menu',\n\tMENU_ITEM = 'menuitem',\n\tIMG = 'img'\n}\n"],"names":["Roles"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,oBAAoB,qBACpBA,EAAA,kBAAkB,mBAClBA,EAAA,kBAAkB,mBAClBA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,YAAY,YACZA,EAAA,MAAM,OAVKA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"a11y-ePqvrObQ.mjs","sources":["../src/interfaces/a11y.ts"],"sourcesContent":["export enum Roles {\n\tGRAPHICS_DOCUMENT = 'graphics-document',\n\tGRAPHICS_OBJECT = 'graphics-object',\n\tGRAPHICS_SYMBOL = 'graphics-symbol',\n\tGROUP = 'group',\n\tDOCUMENT = 'document',\n\tCHECKBOX = 'checkbox',\n\tBUTTON = 'button',\n\tMENU = 'menu',\n\tMENU_ITEM = 'menuitem',\n\tIMG = 'img'\n}\n"],"names":["Roles"],"mappings":"AAAO,IAAKA,sBAAAA,OACXA,EAAA,oBAAoB,qBACpBA,EAAA,kBAAkB,mBAClBA,EAAA,kBAAkB,mBAClBA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,YAAY,YACZA,EAAA,MAAM,OAVKA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,4 +1,4 @@
1
- import { P as qt, Q as be, R as Nt, S as Pe, U as Gt, V as jt, W as at, X as Zt, Y as We, Z as Xt, _ as Qt, g as ne, p as ke } from "./color-scale-utils-BPsvYA85.mjs";
1
+ import { P as qt, Q as be, R as Nt, S as Pe, U as Gt, V as jt, W as at, X as Zt, Y as We, Z as Xt, _ as Qt, g as ne, p as ke } from "./color-scale-utils-DCBFJmbg.mjs";
2
2
  import { $ as ye, o as V, T as z } from "./axis-scales-CPuwbFQf.mjs";
3
3
  var Jt = /\s/;
4
4
  function Kt(e) {
@@ -41,7 +41,7 @@ function ln(e, t, n) {
41
41
  function M(f) {
42
42
  return g = f, a = setTimeout(P, t), m ? T(f) : s;
43
43
  }
44
- function E(f) {
44
+ function U(f) {
45
45
  var S = f - c, W = f - g, ae = t - S;
46
46
  return d ? cn(ae, o - W) : ae;
47
47
  }
@@ -53,7 +53,7 @@ function ln(e, t, n) {
53
53
  var f = pe();
54
54
  if (H(f))
55
55
  return Q(f);
56
- a = setTimeout(P, E(f));
56
+ a = setTimeout(P, U(f));
57
57
  }
58
58
  function Q(f) {
59
59
  return a = void 0, h && r ? T(f) : (r = i = void 0, s);
@@ -89,8 +89,8 @@ function hn() {
89
89
  var e = jt().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, o, s, a = !1, c = 0, g = 0, m = 0.5;
90
90
  delete e.unknown;
91
91
  function d() {
92
- var h = t().length, T = i < r, M = T ? i : r, E = T ? r : i;
93
- o = (E - M) / Math.max(1, h - c + g * 2), a && (o = Math.floor(o)), M += (E - M - o * (h - c)) * m, s = o * (1 - c), a && (M = Math.round(M), s = Math.round(s));
92
+ var h = t().length, T = i < r, M = T ? i : r, U = T ? r : i;
93
+ o = (U - M) / Math.max(1, h - c + g * 2), a && (o = Math.floor(o)), M += (U - M - o * (h - c)) * m, s = o * (1 - c), a && (M = Math.round(M), s = Math.round(s));
94
94
  var H = fn(h).map(function(P) {
95
95
  return M + o * P;
96
96
  });
@@ -163,18 +163,18 @@ ce.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ?
163
163
  t.setTime(+t + n * e);
164
164
  }, (t, n) => (n - t) / e) : ce);
165
165
  ce.range;
166
- const k = 1e3, I = k * 60, $ = I * 60, _ = $ * 24, Ue = _ * 7, _e = _ * 30, Ce = _ * 365, K = x((e) => {
166
+ const k = 1e3, I = k * 60, $ = I * 60, _ = $ * 24, Ee = _ * 7, _e = _ * 30, Ce = _ * 365, K = x((e) => {
167
167
  e.setTime(e - e.getMilliseconds());
168
168
  }, (e, t) => {
169
169
  e.setTime(+e + t * k);
170
170
  }, (e, t) => (t - e) / k, (e) => e.getUTCSeconds());
171
171
  K.range;
172
- const Ee = x((e) => {
172
+ const Ue = x((e) => {
173
173
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * k);
174
174
  }, (e, t) => {
175
175
  e.setTime(+e + t * I);
176
176
  }, (e, t) => (t - e) / I, (e) => e.getMinutes());
177
- Ee.range;
177
+ Ue.range;
178
178
  const mn = x((e) => {
179
179
  e.setUTCSeconds(0, 0);
180
180
  }, (e, t) => {
@@ -217,7 +217,7 @@ function Z(e) {
217
217
  t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
218
218
  }, (t, n) => {
219
219
  t.setDate(t.getDate() + n * 7);
220
- }, (t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * I) / Ue);
220
+ }, (t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * I) / Ee);
221
221
  }
222
222
  const me = Z(0), le = Z(1), pn = Z(2), wn = Z(3), ee = Z(4), Tn = Z(5), Cn = Z(6);
223
223
  me.range;
@@ -232,7 +232,7 @@ function X(e) {
232
232
  t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
233
233
  }, (t, n) => {
234
234
  t.setUTCDate(t.getUTCDate() + n * 7);
235
- }, (t, n) => (n - t) / Ue);
235
+ }, (t, n) => (n - t) / Ee);
236
236
  }
237
237
  const ut = X(0), fe = X(1), Sn = X(2), Mn = X(3), te = X(4), xn = X(5), bn = X(6);
238
238
  ut.range;
@@ -292,7 +292,7 @@ function vn(e, t, n, r, i, o) {
292
292
  [i, 12, 12 * $],
293
293
  [r, 1, _],
294
294
  [r, 2, 2 * _],
295
- [n, 1, Ue],
295
+ [n, 1, Ee],
296
296
  [t, 1, _e],
297
297
  [t, 3, 3 * _e],
298
298
  [e, 1, Ce]
@@ -307,12 +307,12 @@ function vn(e, t, n, r, i, o) {
307
307
  const h = Math.abs(m - g) / d, T = Zt(([, , H]) => H).right(s, h);
308
308
  if (T === s.length) return e.every(We(g / Ce, m / Ce, d));
309
309
  if (T === 0) return ce.every(Math.max(We(g, m, d), 1));
310
- const [M, E] = s[h / s[T - 1][2] < s[T][2] / h ? T - 1 : T];
311
- return M.every(E);
310
+ const [M, U] = s[h / s[T - 1][2] < s[T][2] / h ? T - 1 : T];
311
+ return M.every(U);
312
312
  }
313
313
  return [a, c];
314
314
  }
315
- const [Un, En] = vn(B, Le, me, se, Fe, Ee);
315
+ const [En, Un] = vn(B, Le, me, se, Fe, Ue);
316
316
  function Se(e) {
317
317
  if (0 <= e.y && e.y < 100) {
318
318
  var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
@@ -331,7 +331,7 @@ function re(e, t, n) {
331
331
  return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 };
332
332
  }
333
333
  function Fn(e) {
334
- var t = e.dateTime, n = e.date, r = e.time, i = e.periods, o = e.days, s = e.shortDays, a = e.months, c = e.shortMonths, g = ie(i), m = oe(i), d = ie(o), h = oe(o), T = ie(s), M = oe(s), E = ie(a), H = oe(a), P = ie(c), Q = oe(c), A = {
334
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, o = e.days, s = e.shortDays, a = e.months, c = e.shortMonths, g = ie(i), m = oe(i), d = ie(o), h = oe(o), T = ie(s), M = oe(s), U = ie(a), H = oe(a), P = ie(c), Q = oe(c), A = {
335
335
  a: Ht,
336
336
  A: At,
337
337
  b: Ot,
@@ -374,7 +374,7 @@ function Fn(e) {
374
374
  e: je,
375
375
  f: dr,
376
376
  g: Dr,
377
- G: Ur,
377
+ G: Er,
378
378
  H: hr,
379
379
  I: gr,
380
380
  j: mr,
@@ -395,12 +395,12 @@ function Fn(e) {
395
395
  X: null,
396
396
  y: br,
397
397
  Y: vr,
398
- Z: Er,
398
+ Z: Ur,
399
399
  "%": Ze
400
400
  }, N = {
401
401
  a: vt,
402
- A: Ut,
403
- b: Et,
402
+ A: Et,
403
+ b: Ut,
404
404
  B: Ft,
405
405
  c: Rt,
406
406
  d: qe,
@@ -471,16 +471,16 @@ function Fn(e) {
471
471
  var u = T.exec(y.slice(p));
472
472
  return u ? (l.w = M.get(u[0].toLowerCase()), p + u[0].length) : -1;
473
473
  }
474
- function Ut(l, y, p) {
474
+ function Et(l, y, p) {
475
475
  var u = d.exec(y.slice(p));
476
476
  return u ? (l.w = h.get(u[0].toLowerCase()), p + u[0].length) : -1;
477
477
  }
478
- function Et(l, y, p) {
478
+ function Ut(l, y, p) {
479
479
  var u = P.exec(y.slice(p));
480
480
  return u ? (l.m = Q.get(u[0].toLowerCase()), p + u[0].length) : -1;
481
481
  }
482
482
  function Ft(l, y, p) {
483
- var u = E.exec(y.slice(p));
483
+ var u = U.exec(y.slice(p));
484
484
  return u ? (l.m = H.get(u[0].toLowerCase()), p + u[0].length) : -1;
485
485
  }
486
486
  function Rt(l, y, p) {
@@ -769,11 +769,11 @@ function Dr(e, t) {
769
769
  function vr(e, t) {
770
770
  return w(e.getUTCFullYear() % 1e4, t, 4);
771
771
  }
772
- function Ur(e, t) {
772
+ function Er(e, t) {
773
773
  var n = e.getUTCDay();
774
774
  return e = n >= 4 || n === 0 ? te(e) : te.ceil(e), w(e.getUTCFullYear() % 1e4, t, 4);
775
775
  }
776
- function Er() {
776
+ function Ur() {
777
777
  return "+0000";
778
778
  }
779
779
  function Ze() {
@@ -806,9 +806,9 @@ function Lr(e) {
806
806
  return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
807
807
  }
808
808
  function mt(e, t, n, r, i, o, s, a, c, g) {
809
- var m = Xt(), d = m.invert, h = m.domain, T = g(".%L"), M = g(":%S"), E = g("%I:%M"), H = g("%I %p"), P = g("%a %d"), Q = g("%b %d"), A = g("%B"), O = g("%Y");
809
+ var m = Xt(), d = m.invert, h = m.domain, T = g(".%L"), M = g(":%S"), U = g("%I:%M"), H = g("%I %p"), P = g("%a %d"), Q = g("%b %d"), A = g("%B"), O = g("%Y");
810
810
  function N(f) {
811
- return (c(f) < f ? T : a(f) < f ? M : s(f) < f ? E : o(f) < f ? H : r(f) < f ? i(f) < f ? P : Q : n(f) < f ? A : O)(f);
811
+ return (c(f) < f ? T : a(f) < f ? M : s(f) < f ? U : o(f) < f ? H : r(f) < f ? i(f) < f ? P : Q : n(f) < f ? A : O)(f);
812
812
  }
813
813
  return m.invert = function(f) {
814
814
  return new Date(d(f));
@@ -827,7 +827,7 @@ function mt(e, t, n, r, i, o, s, a, c, g) {
827
827
  }, m;
828
828
  }
829
829
  function Fi() {
830
- return at.apply(mt(Un, En, B, Le, me, se, Fe, Ee, K, gt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
830
+ return at.apply(mt(En, Un, B, Le, me, se, Fe, Ue, K, gt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
831
831
  }
832
832
  const Ri = Math.abs, Li = Math.atan2, Ii = Math.cos, Hi = Math.max, Ai = Math.min, Oi = Math.sin, Pi = Math.sqrt, Wi = 1e-12, Ie = Math.PI, Je = Ie / 2, ki = 2 * Ie;
833
833
  function $i(e) {
@@ -956,11 +956,11 @@ async function $r(e, t, n) {
956
956
  const r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), o = document.createElementNS(r, "foreignObject");
957
957
  return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), o.setAttribute("width", "100%"), o.setAttribute("height", "100%"), o.setAttribute("x", "0"), o.setAttribute("y", "0"), o.setAttribute("externalResourcesRequired", "true"), i.appendChild(o), o.appendChild(e), kr(i);
958
958
  }
959
- const U = (e, t) => {
959
+ const E = (e, t) => {
960
960
  if (e instanceof t)
961
961
  return !0;
962
962
  const n = Object.getPrototypeOf(e);
963
- return n === null ? !1 : n.constructor.name === t.name || U(n, t);
963
+ return n === null ? !1 : n.constructor.name === t.name || E(n, t);
964
964
  };
965
965
  function Yr(e) {
966
966
  const t = e.getPropertyValue("content");
@@ -1066,7 +1066,7 @@ async function Zr(e) {
1066
1066
  async function Xr(e, t) {
1067
1067
  if (e.currentSrc) {
1068
1068
  const o = document.createElement("canvas"), s = o.getContext("2d");
1069
- o.width = e.clientWidth, o.height = e.clientHeight, s == null || s.drawImage(e, 0, 0, o.width, o.height);
1069
+ o.width = e.clientWidth, o.height = e.clientHeight, s?.drawImage(e, 0, 0, o.width, o.height);
1070
1070
  const a = o.toDataURL();
1071
1071
  return ge(a);
1072
1072
  }
@@ -1076,20 +1076,20 @@ async function Xr(e, t) {
1076
1076
  async function Qr(e) {
1077
1077
  var t;
1078
1078
  try {
1079
- if (!((t = e == null ? void 0 : e.contentDocument) === null || t === void 0) && t.body)
1079
+ if (!((t = e?.contentDocument) === null || t === void 0) && t.body)
1080
1080
  return await de(e.contentDocument.body, {}, !0);
1081
1081
  } catch {
1082
1082
  }
1083
1083
  return e.cloneNode(!1);
1084
1084
  }
1085
1085
  async function Jr(e, t) {
1086
- return U(e, HTMLCanvasElement) ? Zr(e) : U(e, HTMLVideoElement) ? Xr(e, t) : U(e, HTMLIFrameElement) ? Qr(e) : e.cloneNode(!1);
1086
+ return E(e, HTMLCanvasElement) ? Zr(e) : E(e, HTMLVideoElement) ? Xr(e, t) : E(e, HTMLIFrameElement) ? Qr(e) : e.cloneNode(!1);
1087
1087
  }
1088
1088
  const Kr = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT";
1089
1089
  async function ei(e, t, n) {
1090
1090
  var r, i;
1091
1091
  let o = [];
1092
- return Kr(e) && e.assignedNodes ? o = Y(e.assignedNodes()) : U(e, HTMLIFrameElement) && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? o = Y(e.contentDocument.body.childNodes) : o = Y(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), o.length === 0 || U(e, HTMLVideoElement) || await o.reduce((s, a) => s.then(() => de(a, n)).then((c) => {
1092
+ return Kr(e) && e.assignedNodes ? o = Y(e.assignedNodes()) : E(e, HTMLIFrameElement) && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? o = Y(e.contentDocument.body.childNodes) : o = Y(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), o.length === 0 || E(e, HTMLVideoElement) || await o.reduce((s, a) => s.then(() => de(a, n)).then((c) => {
1093
1093
  c && t.appendChild(c);
1094
1094
  }), Promise.resolve()), t;
1095
1095
  }
@@ -1100,20 +1100,20 @@ function ti(e, t) {
1100
1100
  const r = window.getComputedStyle(e);
1101
1101
  r.cssText ? (n.cssText = r.cssText, n.transformOrigin = r.transformOrigin) : Y(r).forEach((i) => {
1102
1102
  let o = r.getPropertyValue(i);
1103
- i === "font-size" && o.endsWith("px") && (o = `${Math.floor(parseFloat(o.substring(0, o.length - 2))) - 0.1}px`), U(e, HTMLIFrameElement) && i === "display" && o === "inline" && (o = "block"), i === "d" && t.getAttribute("d") && (o = `path(${t.getAttribute("d")})`), n.setProperty(i, o, r.getPropertyPriority(i));
1103
+ i === "font-size" && o.endsWith("px") && (o = `${Math.floor(parseFloat(o.substring(0, o.length - 2))) - 0.1}px`), E(e, HTMLIFrameElement) && i === "display" && o === "inline" && (o = "block"), i === "d" && t.getAttribute("d") && (o = `path(${t.getAttribute("d")})`), n.setProperty(i, o, r.getPropertyPriority(i));
1104
1104
  });
1105
1105
  }
1106
1106
  function ni(e, t) {
1107
- U(e, HTMLTextAreaElement) && (t.innerHTML = e.value), U(e, HTMLInputElement) && t.setAttribute("value", e.value);
1107
+ E(e, HTMLTextAreaElement) && (t.innerHTML = e.value), E(e, HTMLInputElement) && t.setAttribute("value", e.value);
1108
1108
  }
1109
1109
  function ri(e, t) {
1110
- if (U(e, HTMLSelectElement)) {
1110
+ if (E(e, HTMLSelectElement)) {
1111
1111
  const n = t, r = Array.from(n.children).find((i) => e.value === i.getAttribute("value"));
1112
1112
  r && r.setAttribute("selected", "");
1113
1113
  }
1114
1114
  }
1115
1115
  function ii(e, t) {
1116
- return U(t, Element) && (ti(e, t), Vr(e, t), ni(e, t), ri(e, t)), t;
1116
+ return E(t, Element) && (ti(e, t), Vr(e, t), ni(e, t), ri(e, t)), t;
1117
1117
  }
1118
1118
  async function oi(e, t) {
1119
1119
  const n = e.querySelectorAll ? e.querySelectorAll("use") : [];
@@ -1193,8 +1193,8 @@ async function hi(e, t) {
1193
1193
  await ue("background", e, t) || await ue("background-image", e, t), await ue("mask", e, t) || await ue("mask-image", e, t);
1194
1194
  }
1195
1195
  async function gi(e, t) {
1196
- const n = U(e, HTMLImageElement);
1197
- if (!(n && !De(e.src)) && !(U(e, SVGImageElement) && !De(e.href.baseVal)))
1196
+ const n = E(e, HTMLImageElement);
1197
+ if (!(n && !De(e.src)) && !(E(e, SVGImageElement) && !De(e.href.baseVal)))
1198
1198
  return;
1199
1199
  const r = n ? e.src : e.href.baseVal, i = await Ae(r, He(r), t);
1200
1200
  await new Promise((o, s) => {
@@ -1208,7 +1208,7 @@ async function mi(e, t) {
1208
1208
  await Promise.all(r).then(() => e);
1209
1209
  }
1210
1210
  async function Mt(e, t) {
1211
- U(e, Element) && (await hi(e, t), await gi(e, t), await mi(e, t));
1211
+ E(e, Element) && (await hi(e, t), await gi(e, t), await mi(e, t));
1212
1212
  }
1213
1213
  function di(e, t) {
1214
1214
  const { style: n } = e;
@@ -1382,8 +1382,8 @@ class ve extends bt {
1382
1382
  }, i = (h) => {
1383
1383
  h && Object.keys(r).forEach((T) => {
1384
1384
  if (h[T]) {
1385
- const M = h[T], E = parseFloat(M);
1386
- M && E > r[T] && ("" + M).indexOf("%") === -1 && (r[T] = E);
1385
+ const M = h[T], U = parseFloat(M);
1386
+ M && U > r[T] && ("" + M).indexOf("%") === -1 && (r[T] = U);
1387
1387
  }
1388
1388
  });
1389
1389
  }, o = {
@@ -1400,7 +1400,7 @@ class ve extends bt {
1400
1400
  console.error(h);
1401
1401
  }
1402
1402
  try {
1403
- typeof (s == null ? void 0 : s.getBoundingClientRect) == "function" && (g = s.getBoundingClientRect(), m = {
1403
+ typeof s?.getBoundingClientRect == "function" && (g = s.getBoundingClientRect(), m = {
1404
1404
  width: g.width,
1405
1405
  height: g.height
1406
1406
  });
@@ -1482,10 +1482,9 @@ class ve extends bt {
1482
1482
  // Remove toolbar
1483
1483
  filter: (o) => !(o.classList && o.classList.contains("cds--cc--toolbar"))
1484
1484
  }).then(function(o) {
1485
- var c;
1486
1485
  let s = "myChart";
1487
1486
  const a = ne(n, "fileDownload", "fileName");
1488
- typeof a == "function" ? s = a("jpg") : typeof a == "string" && (s = a), (c = t.services.files) == null || c.downloadImage(o, `${s}.jpg`), i.classed("filled", !1);
1487
+ typeof a == "function" ? s = a("jpg") : typeof a == "string" && (s = a), t.services.files?.downloadImage(o, `${s}.jpg`), i.classed("filled", !1);
1489
1488
  });
1490
1489
  }
1491
1490
  exportToPNG() {
@@ -1495,10 +1494,9 @@ class ve extends bt {
1495
1494
  // Remove toolbar
1496
1495
  filter: (o) => !(o.classList && o.classList.contains("cds--cc--toolbar"))
1497
1496
  }).then(function(o) {
1498
- var c;
1499
1497
  let s = "myChart";
1500
1498
  const a = ne(n, "fileDownload", "fileName");
1501
- typeof a == "function" ? s = a("png") : typeof a == "string" && (s = a), (c = t.services.files) == null || c.downloadImage(o, `${s}.png`), i.classed("filled", !1);
1499
+ typeof a == "function" ? s = a("png") : typeof a == "string" && (s = a), t.services.files?.downloadImage(o, `${s}.png`), i.classed("filled", !1);
1502
1500
  }).catch(function(o) {
1503
1501
  console.error("oops, something went wrong!", o);
1504
1502
  });
@@ -1540,11 +1538,9 @@ class ve extends bt {
1540
1538
  addHolderListeners() {
1541
1539
  const t = this.getHolder();
1542
1540
  t && D(t).on("mouseover", () => {
1543
- var n;
1544
- (n = this.services.events) == null || n.dispatchEvent(ye.Chart.MOUSEOVER);
1541
+ this.services.events?.dispatchEvent(ye.Chart.MOUSEOVER);
1545
1542
  }).on("mouseout", () => {
1546
- var n;
1547
- (n = this.services.events) == null || n.dispatchEvent(ye.Chart.MOUSEOUT);
1543
+ this.services.events?.dispatchEvent(ye.Chart.MOUSEOUT);
1548
1544
  });
1549
1545
  }
1550
1546
  addResizeListener() {
@@ -1553,8 +1549,7 @@ class ve extends bt {
1553
1549
  return;
1554
1550
  let n = t.clientWidth, r = t.clientHeight;
1555
1551
  const i = ln(() => {
1556
- var s;
1557
- t && (Math.abs(n - t.clientWidth) > 1 || Math.abs(r - t.clientHeight) > 1) && (n = t.clientWidth, r = t.clientHeight, (s = this.services.events) == null || s.dispatchEvent(ye.Chart.RESIZE));
1552
+ t && (Math.abs(n - t.clientWidth) > 1 || Math.abs(r - t.clientHeight) > 1) && (n = t.clientWidth, r = t.clientHeight, this.services.events?.dispatchEvent(ye.Chart.RESIZE));
1558
1553
  }, 12.5);
1559
1554
  new ResizeObserver(i).observe(t);
1560
1555
  }
@@ -1679,4 +1674,4 @@ export {
1679
1674
  Bi as y,
1680
1675
  gn as z
1681
1676
  };
1682
- //# sourceMappingURL=angle-utils-Re7uVv7K.mjs.map
1677
+ //# sourceMappingURL=angle-utils-BWFhuTnR.mjs.map