@carbon/charts-react 1.22.3 → 1.22.4

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.mjs CHANGED
@@ -3825,6 +3825,7 @@ const xe = "cds", $n = {
3825
3825
  }, Kn = {
3826
3826
  ticks: {
3827
3827
  number: 7,
3828
+ rotateIfSmallerThan: 30,
3828
3829
  verticalSpaceRatio: 2.5,
3829
3830
  horizontalSpaceRatio: 3.5
3830
3831
  },
@@ -3995,6 +3996,7 @@ const xe = "cds", $n = {
3995
3996
  dotsRadius: 5
3996
3997
  }, We = {
3997
3998
  nodeWidth: 4,
3999
+ nodeHoveredWidth: 8,
3998
4000
  minNodePadding: 24,
3999
4001
  opacity: {
4000
4002
  unfocus: 0.3,
@@ -4002,7 +4004,9 @@ const xe = "cds", $n = {
4002
4004
  selected: 1
4003
4005
  }
4004
4006
  }, md = {
4005
- minCellDividerDimension: 16
4007
+ minCellDividerDimension: 16,
4008
+ // Ensures axes lines are displayed with or without stroke disabled
4009
+ chartPadding: 0.5
4006
4010
  }, gd = {
4007
4011
  default: {
4008
4012
  size: 24
@@ -4868,6 +4872,8 @@ const qn = {
4868
4872
  return Ct(i, t.length);
4869
4873
  }
4870
4874
  }, Br = {
4875
+ am: "am",
4876
+ pm: "pm",
4871
4877
  midnight: "midnight",
4872
4878
  noon: "noon",
4873
4879
  morning: "morning",
@@ -7268,8 +7274,8 @@ function TM(e) {
7268
7274
  d: Id,
7269
7275
  e: Id,
7270
7276
  f: XM,
7271
- g: aC,
7272
- G: oC,
7277
+ g: a2,
7278
+ G: o2,
7273
7279
  H: WM,
7274
7280
  I: qM,
7275
7281
  j: YM,
@@ -7282,15 +7288,15 @@ function TM(e) {
7282
7288
  s: Bd,
7283
7289
  S: QM,
7284
7290
  u: JM,
7285
- U: tC,
7286
- V: eC,
7287
- w: nC,
7288
- W: rC,
7291
+ U: t2,
7292
+ V: e2,
7293
+ w: n2,
7294
+ W: r2,
7289
7295
  x: null,
7290
7296
  X: null,
7291
- y: iC,
7292
- Y: sC,
7293
- Z: lC,
7297
+ y: i2,
7298
+ Y: s2,
7299
+ Z: l2,
7294
7300
  "%": Pd
7295
7301
  }, O = {
7296
7302
  a: rt,
@@ -7300,30 +7306,30 @@ function TM(e) {
7300
7306
  c: null,
7301
7307
  d: Nd,
7302
7308
  e: Nd,
7303
- f: dC,
7304
- g: EC,
7305
- G: wC,
7306
- H: cC,
7307
- I: uC,
7308
- j: hC,
7309
+ f: d2,
7310
+ g: E2,
7311
+ G: w2,
7312
+ H: c2,
7313
+ I: u2,
7314
+ j: h2,
7309
7315
  L: Ng,
7310
- m: pC,
7311
- M: fC,
7316
+ m: p2,
7317
+ M: f2,
7312
7318
  p: J,
7313
7319
  q: pt,
7314
7320
  Q: Ud,
7315
7321
  s: Bd,
7316
- S: mC,
7317
- u: gC,
7318
- U: vC,
7319
- V: yC,
7320
- w: bC,
7321
- W: xC,
7322
+ S: m2,
7323
+ u: g2,
7324
+ U: v2,
7325
+ V: y2,
7326
+ w: b2,
7327
+ W: x2,
7322
7328
  x: null,
7323
7329
  X: null,
7324
- y: _C,
7325
- Y: OC,
7326
- Z: SC,
7330
+ y: _2,
7331
+ Y: O2,
7332
+ Z: S2,
7327
7333
  "%": Pd
7328
7334
  }, E = {
7329
7335
  a: R,
@@ -7608,100 +7614,100 @@ function JM(e) {
7608
7614
  var t = e.getDay();
7609
7615
  return t === 0 ? 7 : t;
7610
7616
  }
7611
- function tC(e, t) {
7617
+ function t2(e, t) {
7612
7618
  return Ot(qo.count(Pn(e) - 1, e), t, 2);
7613
7619
  }
7614
7620
  function Ig(e) {
7615
7621
  var t = e.getDay();
7616
7622
  return t >= 4 || t === 0 ? mi(e) : mi.ceil(e);
7617
7623
  }
7618
- function eC(e, t) {
7624
+ function e2(e, t) {
7619
7625
  return e = Ig(e), Ot(mi.count(Pn(e), e) + (Pn(e).getDay() === 4), t, 2);
7620
7626
  }
7621
- function nC(e) {
7627
+ function n2(e) {
7622
7628
  return e.getDay();
7623
7629
  }
7624
- function rC(e, t) {
7630
+ function r2(e, t) {
7625
7631
  return Ot(no.count(Pn(e) - 1, e), t, 2);
7626
7632
  }
7627
- function iC(e, t) {
7633
+ function i2(e, t) {
7628
7634
  return Ot(e.getFullYear() % 100, t, 2);
7629
7635
  }
7630
- function aC(e, t) {
7636
+ function a2(e, t) {
7631
7637
  return e = Ig(e), Ot(e.getFullYear() % 100, t, 2);
7632
7638
  }
7633
- function sC(e, t) {
7639
+ function s2(e, t) {
7634
7640
  return Ot(e.getFullYear() % 1e4, t, 4);
7635
7641
  }
7636
- function oC(e, t) {
7642
+ function o2(e, t) {
7637
7643
  var n = e.getDay();
7638
7644
  return e = n >= 4 || n === 0 ? mi(e) : mi.ceil(e), Ot(e.getFullYear() % 1e4, t, 4);
7639
7645
  }
7640
- function lC(e) {
7646
+ function l2(e) {
7641
7647
  var t = e.getTimezoneOffset();
7642
7648
  return (t > 0 ? "-" : (t *= -1, "+")) + Ot(t / 60 | 0, "0", 2) + Ot(t % 60, "0", 2);
7643
7649
  }
7644
7650
  function Nd(e, t) {
7645
7651
  return Ot(e.getUTCDate(), t, 2);
7646
7652
  }
7647
- function cC(e, t) {
7653
+ function c2(e, t) {
7648
7654
  return Ot(e.getUTCHours(), t, 2);
7649
7655
  }
7650
- function uC(e, t) {
7656
+ function u2(e, t) {
7651
7657
  return Ot(e.getUTCHours() % 12 || 12, t, 2);
7652
7658
  }
7653
- function hC(e, t) {
7659
+ function h2(e, t) {
7654
7660
  return Ot(1 + Wu.count(_r(e), e), t, 3);
7655
7661
  }
7656
7662
  function Ng(e, t) {
7657
7663
  return Ot(e.getUTCMilliseconds(), t, 3);
7658
7664
  }
7659
- function dC(e, t) {
7665
+ function d2(e, t) {
7660
7666
  return Ng(e, t) + "000";
7661
7667
  }
7662
- function pC(e, t) {
7668
+ function p2(e, t) {
7663
7669
  return Ot(e.getUTCMonth() + 1, t, 2);
7664
7670
  }
7665
- function fC(e, t) {
7671
+ function f2(e, t) {
7666
7672
  return Ot(e.getUTCMinutes(), t, 2);
7667
7673
  }
7668
- function mC(e, t) {
7674
+ function m2(e, t) {
7669
7675
  return Ot(e.getUTCSeconds(), t, 2);
7670
7676
  }
7671
- function gC(e) {
7677
+ function g2(e) {
7672
7678
  var t = e.getUTCDay();
7673
7679
  return t === 0 ? 7 : t;
7674
7680
  }
7675
- function vC(e, t) {
7681
+ function v2(e, t) {
7676
7682
  return Ot(Rg.count(_r(e) - 1, e), t, 2);
7677
7683
  }
7678
7684
  function Pg(e) {
7679
7685
  var t = e.getUTCDay();
7680
7686
  return t >= 4 || t === 0 ? gi(e) : gi.ceil(e);
7681
7687
  }
7682
- function yC(e, t) {
7688
+ function y2(e, t) {
7683
7689
  return e = Pg(e), Ot(gi.count(_r(e), e) + (_r(e).getUTCDay() === 4), t, 2);
7684
7690
  }
7685
- function bC(e) {
7691
+ function b2(e) {
7686
7692
  return e.getUTCDay();
7687
7693
  }
7688
- function xC(e, t) {
7694
+ function x2(e, t) {
7689
7695
  return Ot(ro.count(_r(e) - 1, e), t, 2);
7690
7696
  }
7691
- function _C(e, t) {
7697
+ function _2(e, t) {
7692
7698
  return Ot(e.getUTCFullYear() % 100, t, 2);
7693
7699
  }
7694
- function EC(e, t) {
7700
+ function E2(e, t) {
7695
7701
  return e = Pg(e), Ot(e.getUTCFullYear() % 100, t, 2);
7696
7702
  }
7697
- function OC(e, t) {
7703
+ function O2(e, t) {
7698
7704
  return Ot(e.getUTCFullYear() % 1e4, t, 4);
7699
7705
  }
7700
- function wC(e, t) {
7706
+ function w2(e, t) {
7701
7707
  var n = e.getUTCDay();
7702
7708
  return e = n >= 4 || n === 0 ? gi(e) : gi.ceil(e), Ot(e.getUTCFullYear() % 1e4, t, 4);
7703
7709
  }
7704
- function SC() {
7710
+ function S2() {
7705
7711
  return "+0000";
7706
7712
  }
7707
7713
  function Pd() {
@@ -7714,7 +7720,7 @@ function Bd(e) {
7714
7720
  return Math.floor(+e / 1e3);
7715
7721
  }
7716
7722
  var Hr, Ug;
7717
- TC({
7723
+ T2({
7718
7724
  dateTime: "%x, %X",
7719
7725
  date: "%-m/%-d/%Y",
7720
7726
  time: "%-I:%M:%S %p",
@@ -7724,13 +7730,13 @@ TC({
7724
7730
  months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
7725
7731
  shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
7726
7732
  });
7727
- function TC(e) {
7733
+ function T2(e) {
7728
7734
  return Hr = TM(e), Ug = Hr.format, Hr.parse, Hr.utcFormat, Hr.utcParse, Hr;
7729
7735
  }
7730
- function $C(e) {
7736
+ function $2(e) {
7731
7737
  return new Date(e);
7732
7738
  }
7733
- function MC(e) {
7739
+ function M2(e) {
7734
7740
  return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
7735
7741
  }
7736
7742
  function Bg(e, t, n, r, i, a, s, o, l, c) {
@@ -7741,7 +7747,7 @@ function Bg(e, t, n, r, i, a, s, o, l, c) {
7741
7747
  return u.invert = function(w) {
7742
7748
  return new Date(d(w));
7743
7749
  }, u.domain = function(w) {
7744
- return arguments.length ? h(Array.from(w, MC)) : h().map($C);
7750
+ return arguments.length ? h(Array.from(w, M2)) : h().map($2);
7745
7751
  }, u.ticks = function(w) {
7746
7752
  var A = h();
7747
7753
  return e(A[0], A[A.length - 1], w ?? 10);
@@ -7757,8 +7763,8 @@ function Bg(e, t, n, r, i, a, s, o, l, c) {
7757
7763
  function Hg() {
7758
7764
  return Ei.apply(Bg(wM, SM, Pn, qu, qo, Ga, zu, ju, ei, Ug).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
7759
7765
  }
7760
- const Hd = Math.abs, le = Math.atan2, or = Math.cos, CC = Math.max, wl = Math.min, sn = Math.sin, ni = Math.sqrt, he = 1e-12, Ma = Math.PI, io = Ma / 2, Ms = 2 * Ma;
7761
- function AC(e) {
7766
+ const Hd = Math.abs, le = Math.atan2, or = Math.cos, C2 = Math.max, wl = Math.min, sn = Math.sin, ni = Math.sqrt, he = 1e-12, Ma = Math.PI, io = Ma / 2, Ms = 2 * Ma;
7767
+ function A2(e) {
7762
7768
  return e > 1 ? 0 : e < -1 ? Ma : Math.acos(e);
7763
7769
  }
7764
7770
  function Vd(e) {
@@ -7817,7 +7823,7 @@ Fg.prototype = {
7817
7823
  function Gg(e) {
7818
7824
  return new Fg(e);
7819
7825
  }
7820
- function LC(e, t) {
7826
+ function L2(e, t) {
7821
7827
  if (e.match(/^[a-z]+:\/\//i))
7822
7828
  return e;
7823
7829
  if (e.match(/^\/\//))
@@ -7827,7 +7833,7 @@ function LC(e, t) {
7827
7833
  const n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
7828
7834
  return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
7829
7835
  }
7830
- const kC = /* @__PURE__ */ (() => {
7836
+ const k2 = /* @__PURE__ */ (() => {
7831
7837
  let e = 0;
7832
7838
  const t = () => (
7833
7839
  // eslint-disable-next-line no-bitwise
@@ -7845,19 +7851,19 @@ function ao(e, t) {
7845
7851
  const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
7846
7852
  return n ? parseFloat(n.replace("px", "")) : 0;
7847
7853
  }
7848
- function RC(e) {
7854
+ function R2(e) {
7849
7855
  const t = ao(e, "border-left-width"), n = ao(e, "border-right-width");
7850
7856
  return e.clientWidth + t + n;
7851
7857
  }
7852
- function DC(e) {
7858
+ function D2(e) {
7853
7859
  const t = ao(e, "border-top-width"), n = ao(e, "border-bottom-width");
7854
7860
  return e.clientHeight + t + n;
7855
7861
  }
7856
7862
  function jg(e, t = {}) {
7857
- const n = t.width || RC(e), r = t.height || DC(e);
7863
+ const n = t.width || R2(e), r = t.height || D2(e);
7858
7864
  return { width: n, height: r };
7859
7865
  }
7860
- function IC() {
7866
+ function I2() {
7861
7867
  let e, t;
7862
7868
  try {
7863
7869
  t = process;
@@ -7867,7 +7873,7 @@ function IC() {
7867
7873
  return n && (e = parseInt(n, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
7868
7874
  }
7869
7875
  const $e = 16384;
7870
- function NC(e) {
7876
+ function N2(e) {
7871
7877
  (e.width > $e || e.height > $e) && (e.width > $e && e.height > $e ? e.width > e.height ? (e.height *= $e / e.width, e.width = $e) : (e.width *= $e / e.height, e.height = $e) : e.width > $e ? (e.height *= $e / e.width, e.width = $e) : (e.width *= $e / e.height, e.height = $e));
7872
7878
  }
7873
7879
  function so(e) {
@@ -7876,12 +7882,12 @@ function so(e) {
7876
7882
  r.decode = () => t(r), r.onload = () => t(r), r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = e;
7877
7883
  });
7878
7884
  }
7879
- async function PC(e) {
7885
+ async function P2(e) {
7880
7886
  return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
7881
7887
  }
7882
- async function UC(e, t, n) {
7888
+ async function U2(e, t, n) {
7883
7889
  const r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
7884
- return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), PC(i);
7890
+ return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), P2(i);
7885
7891
  }
7886
7892
  const Oe = (e, t) => {
7887
7893
  if (e instanceof t)
@@ -7889,37 +7895,37 @@ const Oe = (e, t) => {
7889
7895
  const n = Object.getPrototypeOf(e);
7890
7896
  return n === null ? !1 : n.constructor.name === t.name || Oe(n, t);
7891
7897
  };
7892
- function BC(e) {
7898
+ function B2(e) {
7893
7899
  const t = e.getPropertyValue("content");
7894
7900
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
7895
7901
  }
7896
- function HC(e) {
7902
+ function H2(e) {
7897
7903
  return kn(e).map((t) => {
7898
7904
  const n = e.getPropertyValue(t), r = e.getPropertyPriority(t);
7899
7905
  return `${t}: ${n}${r ? " !important" : ""};`;
7900
7906
  }).join(" ");
7901
7907
  }
7902
- function VC(e, t, n) {
7903
- const r = `.${e}:${t}`, i = n.cssText ? BC(n) : HC(n);
7908
+ function V2(e, t, n) {
7909
+ const r = `.${e}:${t}`, i = n.cssText ? B2(n) : H2(n);
7904
7910
  return document.createTextNode(`${r}{${i}}`);
7905
7911
  }
7906
7912
  function Fd(e, t, n) {
7907
7913
  const r = window.getComputedStyle(e, n), i = r.getPropertyValue("content");
7908
7914
  if (i === "" || i === "none")
7909
7915
  return;
7910
- const a = kC();
7916
+ const a = k2();
7911
7917
  try {
7912
7918
  t.className = `${t.className} ${a}`;
7913
7919
  } catch {
7914
7920
  return;
7915
7921
  }
7916
7922
  const s = document.createElement("style");
7917
- s.appendChild(VC(a, n, r)), t.appendChild(s);
7923
+ s.appendChild(V2(a, n, r)), t.appendChild(s);
7918
7924
  }
7919
- function FC(e, t) {
7925
+ function F2(e, t) {
7920
7926
  Fd(e, t, ":before"), Fd(e, t, ":after");
7921
7927
  }
7922
- const Gd = "application/font-woff", jd = "image/jpeg", GC = {
7928
+ const Gd = "application/font-woff", jd = "image/jpeg", G2 = {
7923
7929
  woff: Gd,
7924
7930
  woff2: Gd,
7925
7931
  ttf: "application/font-truetype",
@@ -7932,21 +7938,21 @@ const Gd = "application/font-woff", jd = "image/jpeg", GC = {
7932
7938
  svg: "image/svg+xml",
7933
7939
  webp: "image/webp"
7934
7940
  };
7935
- function jC(e) {
7941
+ function j2(e) {
7936
7942
  const t = /\.([^./]*?)$/g.exec(e);
7937
7943
  return t ? t[1] : "";
7938
7944
  }
7939
7945
  function Yu(e) {
7940
- const t = jC(e).toLowerCase();
7941
- return GC[t] || "";
7946
+ const t = j2(e).toLowerCase();
7947
+ return G2[t] || "";
7942
7948
  }
7943
- function zC(e) {
7949
+ function z2(e) {
7944
7950
  return e.split(/,/)[1];
7945
7951
  }
7946
7952
  function gc(e) {
7947
7953
  return e.search(/^(data:)/) !== -1;
7948
7954
  }
7949
- function WC(e, t) {
7955
+ function W2(e, t) {
7950
7956
  return `data:${t};base64,${e}`;
7951
7957
  }
7952
7958
  async function zg(e, t, n) {
@@ -7966,19 +7972,19 @@ async function zg(e, t, n) {
7966
7972
  });
7967
7973
  }
7968
7974
  const Sl = {};
7969
- function qC(e, t, n) {
7975
+ function q2(e, t, n) {
7970
7976
  let r = e.replace(/\?.*/, "");
7971
7977
  return n && (r = e), /ttf|otf|eot|woff2?/i.test(r) && (r = r.replace(/.*\//, "")), t ? `[${t}]${r}` : r;
7972
7978
  }
7973
7979
  async function Xu(e, t, n) {
7974
- const r = qC(e, t, n.includeQueryParams);
7980
+ const r = q2(e, t, n.includeQueryParams);
7975
7981
  if (Sl[r] != null)
7976
7982
  return Sl[r];
7977
7983
  n.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
7978
7984
  let i;
7979
7985
  try {
7980
- const a = await zg(e, n.fetchRequestInit, ({ res: s, result: o }) => (t || (t = s.headers.get("Content-Type") || ""), zC(o)));
7981
- i = WC(a, t);
7986
+ const a = await zg(e, n.fetchRequestInit, ({ res: s, result: o }) => (t || (t = s.headers.get("Content-Type") || ""), z2(o)));
7987
+ i = W2(a, t);
7982
7988
  } catch (a) {
7983
7989
  i = n.imagePlaceholder || "";
7984
7990
  let s = `Failed to fetch resource: ${e}`;
@@ -7986,11 +7992,11 @@ async function Xu(e, t, n) {
7986
7992
  }
7987
7993
  return Sl[r] = i, i;
7988
7994
  }
7989
- async function YC(e) {
7995
+ async function Y2(e) {
7990
7996
  const t = e.toDataURL();
7991
7997
  return t === "data:," ? e.cloneNode(!1) : so(t);
7992
7998
  }
7993
- async function XC(e, t) {
7999
+ async function X2(e, t) {
7994
8000
  if (e.currentSrc) {
7995
8001
  const a = document.createElement("canvas"), s = a.getContext("2d");
7996
8002
  a.width = e.clientWidth, a.height = e.clientHeight, s == null || s.drawImage(e, 0, 0, a.width, a.height);
@@ -8000,7 +8006,7 @@ async function XC(e, t) {
8000
8006
  const n = e.poster, r = Yu(n), i = await Xu(n, r, t);
8001
8007
  return so(i);
8002
8008
  }
8003
- async function ZC(e) {
8009
+ async function Z2(e) {
8004
8010
  var t;
8005
8011
  try {
8006
8012
  if (!((t = e == null ? void 0 : e.contentDocument) === null || t === void 0) && t.body)
@@ -8009,18 +8015,18 @@ async function ZC(e) {
8009
8015
  }
8010
8016
  return e.cloneNode(!1);
8011
8017
  }
8012
- async function KC(e, t) {
8013
- return Oe(e, HTMLCanvasElement) ? YC(e) : Oe(e, HTMLVideoElement) ? XC(e, t) : Oe(e, HTMLIFrameElement) ? ZC(e) : e.cloneNode(!1);
8018
+ async function K2(e, t) {
8019
+ return Oe(e, HTMLCanvasElement) ? Y2(e) : Oe(e, HTMLVideoElement) ? X2(e, t) : Oe(e, HTMLIFrameElement) ? Z2(e) : e.cloneNode(!1);
8014
8020
  }
8015
- const QC = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT";
8016
- async function JC(e, t, n) {
8021
+ const Q2 = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT";
8022
+ async function J2(e, t, n) {
8017
8023
  var r, i;
8018
8024
  let a = [];
8019
- return QC(e) && e.assignedNodes ? a = kn(e.assignedNodes()) : Oe(e, HTMLIFrameElement) && !((r = e.contentDocument) === null || r === void 0) && r.body ? a = kn(e.contentDocument.body.childNodes) : a = kn(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), a.length === 0 || Oe(e, HTMLVideoElement) || await a.reduce((s, o) => s.then(() => Xo(o, n)).then((l) => {
8025
+ return Q2(e) && e.assignedNodes ? a = kn(e.assignedNodes()) : Oe(e, HTMLIFrameElement) && !((r = e.contentDocument) === null || r === void 0) && r.body ? a = kn(e.contentDocument.body.childNodes) : a = kn(((i = e.shadowRoot) !== null && i !== void 0 ? i : e).childNodes), a.length === 0 || Oe(e, HTMLVideoElement) || await a.reduce((s, o) => s.then(() => Xo(o, n)).then((l) => {
8020
8026
  l && t.appendChild(l);
8021
8027
  }), Promise.resolve()), t;
8022
8028
  }
8023
- function t2(e, t) {
8029
+ function tC(e, t) {
8024
8030
  const n = t.style;
8025
8031
  if (!n)
8026
8032
  return;
@@ -8030,19 +8036,19 @@ function t2(e, t) {
8030
8036
  i === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - 0.1}px`), Oe(e, HTMLIFrameElement) && i === "display" && a === "inline" && (a = "block"), i === "d" && t.getAttribute("d") && (a = `path(${t.getAttribute("d")})`), n.setProperty(i, a, r.getPropertyPriority(i));
8031
8037
  });
8032
8038
  }
8033
- function e2(e, t) {
8039
+ function eC(e, t) {
8034
8040
  Oe(e, HTMLTextAreaElement) && (t.innerHTML = e.value), Oe(e, HTMLInputElement) && t.setAttribute("value", e.value);
8035
8041
  }
8036
- function n2(e, t) {
8042
+ function nC(e, t) {
8037
8043
  if (Oe(e, HTMLSelectElement)) {
8038
8044
  const n = t, r = Array.from(n.children).find((i) => e.value === i.getAttribute("value"));
8039
8045
  r && r.setAttribute("selected", "");
8040
8046
  }
8041
8047
  }
8042
- function r2(e, t) {
8043
- return Oe(t, Element) && (t2(e, t), FC(e, t), e2(e, t), n2(e, t)), t;
8048
+ function rC(e, t) {
8049
+ return Oe(t, Element) && (tC(e, t), F2(e, t), eC(e, t), nC(e, t)), t;
8044
8050
  }
8045
- async function i2(e, t) {
8051
+ async function iC(e, t) {
8046
8052
  const n = e.querySelectorAll ? e.querySelectorAll("use") : [];
8047
8053
  if (n.length === 0)
8048
8054
  return e;
@@ -8067,30 +8073,30 @@ async function i2(e, t) {
8067
8073
  return e;
8068
8074
  }
8069
8075
  async function Xo(e, t, n) {
8070
- return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((r) => KC(r, t)).then((r) => JC(e, r, t)).then((r) => r2(e, r)).then((r) => i2(r, t));
8076
+ return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((r) => K2(r, t)).then((r) => J2(e, r, t)).then((r) => rC(e, r)).then((r) => iC(r, t));
8071
8077
  }
8072
- const Wg = /url\((['"]?)([^'"]+?)\1\)/g, a2 = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, s2 = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
8073
- function o2(e) {
8078
+ const Wg = /url\((['"]?)([^'"]+?)\1\)/g, aC = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, sC = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
8079
+ function oC(e) {
8074
8080
  const t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
8075
8081
  return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
8076
8082
  }
8077
- function l2(e) {
8083
+ function lC(e) {
8078
8084
  const t = [];
8079
8085
  return e.replace(Wg, (n, r, i) => (t.push(i), n)), t.filter((n) => !gc(n));
8080
8086
  }
8081
- async function c2(e, t, n, r, i) {
8087
+ async function cC(e, t, n, r, i) {
8082
8088
  try {
8083
- const a = n ? LC(t, n) : t, s = Yu(t);
8089
+ const a = n ? L2(t, n) : t, s = Yu(t);
8084
8090
  let o;
8085
- return i || (o = await Xu(a, s, r)), e.replace(o2(t), `$1${o}$3`);
8091
+ return i || (o = await Xu(a, s, r)), e.replace(oC(t), `$1${o}$3`);
8086
8092
  } catch {
8087
8093
  }
8088
8094
  return e;
8089
8095
  }
8090
- function u2(e, { preferredFontFormat: t }) {
8091
- return t ? e.replace(s2, (n) => {
8096
+ function uC(e, { preferredFontFormat: t }) {
8097
+ return t ? e.replace(sC, (n) => {
8092
8098
  for (; ; ) {
8093
- const [r, , i] = a2.exec(n) || [];
8099
+ const [r, , i] = aC.exec(n) || [];
8094
8100
  if (!i)
8095
8101
  return "";
8096
8102
  if (i === t)
@@ -8104,8 +8110,8 @@ function qg(e) {
8104
8110
  async function Yg(e, t, n) {
8105
8111
  if (!qg(e))
8106
8112
  return e;
8107
- const r = u2(e, n);
8108
- return l2(r).reduce((i, a) => i.then((s) => c2(s, a, t, n)), Promise.resolve(r));
8113
+ const r = uC(e, n);
8114
+ return lC(r).reduce((i, a) => i.then((s) => cC(s, a, t, n)), Promise.resolve(r));
8109
8115
  }
8110
8116
  async function cs(e, t, n) {
8111
8117
  var r;
@@ -8116,10 +8122,10 @@ async function cs(e, t, n) {
8116
8122
  }
8117
8123
  return !1;
8118
8124
  }
8119
- async function h2(e, t) {
8125
+ async function hC(e, t) {
8120
8126
  await cs("background", e, t) || await cs("background-image", e, t), await cs("mask", e, t) || await cs("mask-image", e, t);
8121
8127
  }
8122
- async function d2(e, t) {
8128
+ async function dC(e, t) {
8123
8129
  const n = Oe(e, HTMLImageElement);
8124
8130
  if (!(n && !gc(e.src)) && !(Oe(e, SVGImageElement) && !gc(e.href.baseVal)))
8125
8131
  return;
@@ -8130,14 +8136,14 @@ async function d2(e, t) {
8130
8136
  o.decode && (o.decode = a), o.loading === "lazy" && (o.loading = "eager"), n ? (e.srcset = "", e.src = i) : e.href.baseVal = i;
8131
8137
  });
8132
8138
  }
8133
- async function p2(e, t) {
8139
+ async function pC(e, t) {
8134
8140
  const n = kn(e.childNodes).map((r) => Xg(r, t));
8135
8141
  await Promise.all(n).then(() => e);
8136
8142
  }
8137
8143
  async function Xg(e, t) {
8138
- Oe(e, Element) && (await h2(e, t), await d2(e, t), await p2(e, t));
8144
+ Oe(e, Element) && (await hC(e, t), await dC(e, t), await pC(e, t));
8139
8145
  }
8140
- function f2(e, t) {
8146
+ function fC(e, t) {
8141
8147
  const { style: n } = e;
8142
8148
  t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.width && (n.width = `${t.width}px`), t.height && (n.height = `${t.height}px`);
8143
8149
  const r = t.style;
@@ -8187,7 +8193,7 @@ function Yd(e) {
8187
8193
  }
8188
8194
  return t;
8189
8195
  }
8190
- async function m2(e, t) {
8196
+ async function mC(e, t) {
8191
8197
  const n = [], r = [];
8192
8198
  return e.forEach((i) => {
8193
8199
  if ("cssRules" in i)
@@ -8229,42 +8235,42 @@ async function m2(e, t) {
8229
8235
  }
8230
8236
  }), n));
8231
8237
  }
8232
- function g2(e) {
8238
+ function gC(e) {
8233
8239
  return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => qg(t.style.getPropertyValue("src")));
8234
8240
  }
8235
- async function v2(e, t) {
8241
+ async function vC(e, t) {
8236
8242
  if (e.ownerDocument == null)
8237
8243
  throw new Error("Provided element is not within a Document");
8238
- const n = kn(e.ownerDocument.styleSheets), r = await m2(n, t);
8239
- return g2(r);
8244
+ const n = kn(e.ownerDocument.styleSheets), r = await mC(n, t);
8245
+ return gC(r);
8240
8246
  }
8241
- async function y2(e, t) {
8242
- const n = await v2(e, t);
8247
+ async function yC(e, t) {
8248
+ const n = await vC(e, t);
8243
8249
  return (await Promise.all(n.map((r) => {
8244
8250
  const i = r.parentStyleSheet ? r.parentStyleSheet.href : null;
8245
8251
  return Yg(r.cssText, i, t);
8246
8252
  }))).join(`
8247
8253
  `);
8248
8254
  }
8249
- async function b2(e, t) {
8250
- const n = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await y2(e, t);
8255
+ async function bC(e, t) {
8256
+ const n = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await yC(e, t);
8251
8257
  if (n) {
8252
8258
  const r = document.createElement("style"), i = document.createTextNode(n);
8253
8259
  r.appendChild(i), e.firstChild ? e.insertBefore(r, e.firstChild) : e.appendChild(r);
8254
8260
  }
8255
8261
  }
8256
- async function x2(e, t = {}) {
8262
+ async function xC(e, t = {}) {
8257
8263
  const { width: n, height: r } = jg(e, t), i = await Xo(e, t, !0);
8258
- return await b2(i, t), await Xg(i, t), f2(i, t), await UC(i, n, r);
8264
+ return await bC(i, t), await Xg(i, t), fC(i, t), await U2(i, n, r);
8259
8265
  }
8260
8266
  async function Zg(e, t = {}) {
8261
- const { width: n, height: r } = jg(e, t), i = await x2(e, t), a = await so(i), s = document.createElement("canvas"), o = s.getContext("2d"), l = t.pixelRatio || IC(), c = t.canvasWidth || n, u = t.canvasHeight || r;
8262
- return s.width = c * l, s.height = u * l, t.skipAutoScale || NC(s), s.style.width = `${c}`, s.style.height = `${u}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, s.width, s.height)), o.drawImage(a, 0, 0, s.width, s.height), s;
8267
+ const { width: n, height: r } = jg(e, t), i = await xC(e, t), a = await so(i), s = document.createElement("canvas"), o = s.getContext("2d"), l = t.pixelRatio || I2(), c = t.canvasWidth || n, u = t.canvasHeight || r;
8268
+ return s.width = c * l, s.height = u * l, t.skipAutoScale || N2(s), s.style.width = `${c}`, s.style.height = `${u}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, s.width, s.height)), o.drawImage(a, 0, 0, s.width, s.height), s;
8263
8269
  }
8264
- async function _2(e, t = {}) {
8270
+ async function _C(e, t = {}) {
8265
8271
  return (await Zg(e, t)).toDataURL();
8266
8272
  }
8267
- async function E2(e, t = {}) {
8273
+ async function EC(e, t = {}) {
8268
8274
  return (await Zg(e, t)).toDataURL("image/jpeg", t.quality || 1);
8269
8275
  }
8270
8276
  let Fn = class {
@@ -8284,7 +8290,7 @@ let Fn = class {
8284
8290
  this.services = t;
8285
8291
  }
8286
8292
  };
8287
- const O2 = "DONT_STYLE_ME_css_styles_verifier";
8293
+ const OC = "DONT_STYLE_ME_css_styles_verifier";
8288
8294
  let N = class vc extends Fn {
8289
8295
  // initialized in initializeID() called by init()
8290
8296
  constructor(t, n) {
@@ -8390,7 +8396,7 @@ let N = class vc extends Fn {
8390
8396
  }
8391
8397
  addMainContainer() {
8392
8398
  const t = this.model.getOptions(), n = b(t, "style", "prefix"), r = D(this.getHolder()).append("div").classed(`${xe}--${n}--chart-wrapper`, !0).attr("id", `chart-${this.getChartID()}`).style("height", "100%").style("width", "100%");
8393
- r.append("g").attr("class", O2), this.mainContainer = r.node();
8399
+ r.append("g").attr("class", OC), this.mainContainer = r.node();
8394
8400
  }
8395
8401
  update() {
8396
8402
  this.styleHolderElement();
@@ -8404,7 +8410,7 @@ let N = class vc extends Fn {
8404
8410
  }
8405
8411
  exportToJPG() {
8406
8412
  const t = this, n = this.model.getOptions(), r = this.getHolder(), i = D(r);
8407
- i.classed("filled", !0), E2(this.getMainContainer(), {
8413
+ i.classed("filled", !0), EC(this.getMainContainer(), {
8408
8414
  quality: 1,
8409
8415
  // Remove toolbar
8410
8416
  filter: (a) => !(a.classList && a.classList.contains("cds--cc--toolbar"))
@@ -8417,7 +8423,7 @@ let N = class vc extends Fn {
8417
8423
  }
8418
8424
  exportToPNG() {
8419
8425
  const t = this, n = this.model.getOptions(), r = this.getHolder(), i = D(r);
8420
- i.classed("filled", !0), _2(this.getMainContainer(), {
8426
+ i.classed("filled", !0), _C(this.getMainContainer(), {
8421
8427
  quality: 1,
8422
8428
  // Remove toolbar
8423
8429
  filter: (a) => !(a.classList && a.classList.contains("cds--cc--toolbar"))
@@ -8527,7 +8533,7 @@ let N = class vc extends Fn {
8527
8533
  }
8528
8534
  };
8529
8535
  function Xd(e) {
8530
- const t = w2(Qg(e), 360);
8536
+ const t = wC(Qg(e), 360);
8531
8537
  return Xn(t, [0, 10]) || Xn(t, [350, 0]) ? {
8532
8538
  textAnchor: En.START,
8533
8539
  dominantBaseline: On.MIDDLE
@@ -8554,7 +8560,7 @@ function Xd(e) {
8554
8560
  dominantBaseline: On.BASELINE
8555
8561
  };
8556
8562
  }
8557
- function w2(e, t) {
8563
+ function wC(e, t) {
8558
8564
  return (e % t + t) % t;
8559
8565
  }
8560
8566
  function Xn(e, [t, n]) {
@@ -8567,20 +8573,20 @@ function qt(e, t, n = { x: 0, y: 0 }) {
8567
8573
  const r = t * Math.cos(e) + n.x, i = t * Math.sin(e) + n.y;
8568
8574
  return { x: isNaN(r) ? 0 : r, y: isNaN(i) ? 0 : i };
8569
8575
  }
8570
- function S2(e, t) {
8576
+ function SC(e, t) {
8571
8577
  return t * Math.sin(e - Math.PI / 2);
8572
8578
  }
8573
- function T2(e, t, n, r) {
8579
+ function TC(e, t, n, r) {
8574
8580
  for (var i = -1, a = e == null ? 0 : e.length; ++i < a; )
8575
8581
  n = t(n, e[i], i, e);
8576
8582
  return n;
8577
8583
  }
8578
- function $2(e) {
8584
+ function $C(e) {
8579
8585
  return function(t) {
8580
8586
  return e == null ? void 0 : e[t];
8581
8587
  };
8582
8588
  }
8583
- var M2 = {
8589
+ var MC = {
8584
8590
  // Latin-1 Supplement block.
8585
8591
  À: "A",
8586
8592
  Á: "A",
@@ -8773,19 +8779,19 @@ var M2 = {
8773
8779
  œ: "oe",
8774
8780
  ʼn: "'n",
8775
8781
  ſ: "s"
8776
- }, C2 = $2(M2), A2 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, L2 = "\\u0300-\\u036f", k2 = "\\ufe20-\\ufe2f", R2 = "\\u20d0-\\u20ff", D2 = L2 + k2 + R2, I2 = "[" + D2 + "]", N2 = RegExp(I2, "g");
8777
- function P2(e) {
8778
- return e = Na(e), e && e.replace(A2, C2).replace(N2, "");
8782
+ }, CC = $C(MC), AC = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, LC = "\\u0300-\\u036f", kC = "\\ufe20-\\ufe2f", RC = "\\u20d0-\\u20ff", DC = LC + kC + RC, IC = "[" + DC + "]", NC = RegExp(IC, "g");
8783
+ function PC(e) {
8784
+ return e = Na(e), e && e.replace(AC, CC).replace(NC, "");
8779
8785
  }
8780
- var U2 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
8781
- function B2(e) {
8782
- return e.match(U2) || [];
8786
+ var UC = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
8787
+ function BC(e) {
8788
+ return e.match(UC) || [];
8783
8789
  }
8784
- var H2 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
8785
- function V2(e) {
8786
- return H2.test(e);
8790
+ var HC = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
8791
+ function VC(e) {
8792
+ return HC.test(e);
8787
8793
  }
8788
- var Jg = "\\ud800-\\udfff", F2 = "\\u0300-\\u036f", G2 = "\\ufe20-\\ufe2f", j2 = "\\u20d0-\\u20ff", z2 = F2 + G2 + j2, tv = "\\u2700-\\u27bf", ev = "a-z\\xdf-\\xf6\\xf8-\\xff", W2 = "\\xac\\xb1\\xd7\\xf7", q2 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Y2 = "\\u2000-\\u206f", X2 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", nv = "A-Z\\xc0-\\xd6\\xd8-\\xde", Z2 = "\\ufe0e\\ufe0f", rv = W2 + q2 + Y2 + X2, iv = "['’]", Zd = "[" + rv + "]", K2 = "[" + z2 + "]", av = "\\d+", Q2 = "[" + tv + "]", sv = "[" + ev + "]", ov = "[^" + Jg + rv + av + tv + ev + nv + "]", J2 = "\\ud83c[\\udffb-\\udfff]", tA = "(?:" + K2 + "|" + J2 + ")", eA = "[^" + Jg + "]", lv = "(?:\\ud83c[\\udde6-\\uddff]){2}", cv = "[\\ud800-\\udbff][\\udc00-\\udfff]", qr = "[" + nv + "]", nA = "\\u200d", Kd = "(?:" + sv + "|" + ov + ")", rA = "(?:" + qr + "|" + ov + ")", Qd = "(?:" + iv + "(?:d|ll|m|re|s|t|ve))?", Jd = "(?:" + iv + "(?:D|LL|M|RE|S|T|VE))?", uv = tA + "?", hv = "[" + Z2 + "]?", iA = "(?:" + nA + "(?:" + [eA, lv, cv].join("|") + ")" + hv + uv + ")*", aA = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", sA = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", oA = hv + uv + iA, lA = "(?:" + [Q2, lv, cv].join("|") + ")" + oA, cA = RegExp([
8794
+ var Jg = "\\ud800-\\udfff", FC = "\\u0300-\\u036f", GC = "\\ufe20-\\ufe2f", jC = "\\u20d0-\\u20ff", zC = FC + GC + jC, tv = "\\u2700-\\u27bf", ev = "a-z\\xdf-\\xf6\\xf8-\\xff", WC = "\\xac\\xb1\\xd7\\xf7", qC = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", YC = "\\u2000-\\u206f", XC = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", nv = "A-Z\\xc0-\\xd6\\xd8-\\xde", ZC = "\\ufe0e\\ufe0f", rv = WC + qC + YC + XC, iv = "['’]", Zd = "[" + rv + "]", KC = "[" + zC + "]", av = "\\d+", QC = "[" + tv + "]", sv = "[" + ev + "]", ov = "[^" + Jg + rv + av + tv + ev + nv + "]", JC = "\\ud83c[\\udffb-\\udfff]", tA = "(?:" + KC + "|" + JC + ")", eA = "[^" + Jg + "]", lv = "(?:\\ud83c[\\udde6-\\uddff]){2}", cv = "[\\ud800-\\udbff][\\udc00-\\udfff]", qr = "[" + nv + "]", nA = "\\u200d", Kd = "(?:" + sv + "|" + ov + ")", rA = "(?:" + qr + "|" + ov + ")", Qd = "(?:" + iv + "(?:d|ll|m|re|s|t|ve))?", Jd = "(?:" + iv + "(?:D|LL|M|RE|S|T|VE))?", uv = tA + "?", hv = "[" + ZC + "]?", iA = "(?:" + nA + "(?:" + [eA, lv, cv].join("|") + ")" + hv + uv + ")*", aA = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", sA = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", oA = hv + uv + iA, lA = "(?:" + [QC, lv, cv].join("|") + ")" + oA, cA = RegExp([
8789
8795
  qr + "?" + sv + "+" + Qd + "(?=" + [Zd, qr, "$"].join("|") + ")",
8790
8796
  rA + "+" + Jd + "(?=" + [Zd, qr + Kd, "$"].join("|") + ")",
8791
8797
  qr + "?" + Kd + "+" + Qd,
@@ -8799,12 +8805,12 @@ function uA(e) {
8799
8805
  return e.match(cA) || [];
8800
8806
  }
8801
8807
  function hA(e, t, n) {
8802
- return e = Na(e), t = t, t === void 0 ? V2(e) ? uA(e) : B2(e) : e.match(t) || [];
8808
+ return e = Na(e), t = t, t === void 0 ? VC(e) ? uA(e) : BC(e) : e.match(t) || [];
8803
8809
  }
8804
8810
  var dA = "['’]", pA = RegExp(dA, "g");
8805
8811
  function dv(e) {
8806
8812
  return function(t) {
8807
- return T2(hA(P2(t).replace(pA, "")), e, "");
8813
+ return TC(hA(PC(t).replace(pA, "")), e, "");
8808
8814
  };
8809
8815
  }
8810
8816
  function fA(e, t, n) {
@@ -10991,7 +10997,7 @@ function Wk(e, t, n, r, i, a, s, o) {
10991
10997
  return h = (u * (t - a) - d * (e - i)) / h, [e + h * l, t + h * c];
10992
10998
  }
10993
10999
  function gs(e, t, n, r, i, a, s) {
10994
- var o = e - n, l = t - r, c = (s ? a : -a) / ni(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, v = r + d, m = (h + f) / 2, y = (p + v) / 2, g = f - h, x = v - p, O = g * g + x * x, E = i - a, w = h * v - f * p, A = (x < 0 ? -1 : 1) * ni(CC(0, E * E * O - w * w)), I = (w * x - g * A) / O, k = (-w * g - x * A) / O, R = (w * x + g * A) / O, $ = (-w * g + x * A) / O, V = I - m, P = k - y, H = R - m, _ = $ - y;
11000
+ var o = e - n, l = t - r, c = (s ? a : -a) / ni(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, v = r + d, m = (h + f) / 2, y = (p + v) / 2, g = f - h, x = v - p, O = g * g + x * x, E = i - a, w = h * v - f * p, A = (x < 0 ? -1 : 1) * ni(C2(0, E * E * O - w * w)), I = (w * x - g * A) / O, k = (-w * g - x * A) / O, R = (w * x + g * A) / O, $ = (-w * g + x * A) / O, V = I - m, P = k - y, H = R - m, _ = $ - y;
10995
11001
  return V * V + P * P > H * H + _ * _ && (I = R, k = $), {
10996
11002
  cx: I,
10997
11003
  cy: k,
@@ -11019,7 +11025,7 @@ function ka() {
11019
11025
  var q = p * or(x), at = p * sn(x), rt = h * or(O), gt = h * sn(O), it;
11020
11026
  if (m < Ma)
11021
11027
  if (it = Wk(L, U, rt, gt, q, at, B, X)) {
11022
- var Z = L - it[0], J = U - it[1], pt = q - it[0], W = at - it[1], Q = 1 / sn(AC((Z * pt + J * W) / (ni(Z * Z + J * J) * ni(pt * pt + W * W))) / 2), ut = ni(it[0] * it[0] + it[1] * it[1]);
11028
+ var Z = L - it[0], J = U - it[1], pt = q - it[0], W = at - it[1], Q = 1 / sn(A2((Z * pt + J * W) / (ni(Z * Z + J * J) * ni(pt * pt + W * W))) / 2), ut = ni(it[0] * it[0] + it[1] * it[1]);
11023
11029
  $ = wl(R, (h - ut) / (Q - 1)), V = wl(R, (p - ut) / (Q + 1));
11024
11030
  } else
11025
11031
  $ = V = 0;
@@ -11330,7 +11336,7 @@ let bt = class {
11330
11336
  return this.configs.options ? ct({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
11331
11337
  }
11332
11338
  };
11333
- /*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */
11339
+ /*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */
11334
11340
  const {
11335
11341
  entries: Yv,
11336
11342
  setPrototypeOf: kp,
@@ -11436,11 +11442,20 @@ var Bp = /* @__PURE__ */ Object.freeze({
11436
11442
  });
11437
11443
  const zi = {
11438
11444
  element: 1,
11445
+ attribute: 2,
11439
11446
  text: 3,
11447
+ cdataSection: 4,
11448
+ entityReference: 5,
11449
+ // Deprecated
11450
+ entityNode: 6,
11440
11451
  // Deprecated
11441
11452
  progressingInstruction: 7,
11442
11453
  comment: 8,
11443
- document: 9
11454
+ document: 9,
11455
+ documentType: 10,
11456
+ documentFragment: 11,
11457
+ notation: 12
11458
+ // Deprecated
11444
11459
  }, ER = function() {
11445
11460
  return typeof window > "u" ? null : window;
11446
11461
  }, OR = function(e, t) {
@@ -11466,7 +11481,7 @@ const zi = {
11466
11481
  function Qv() {
11467
11482
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ER();
11468
11483
  const t = (T) => Qv(T);
11469
- if (t.version = "3.2.0", t.removed = [], !e || !e.document || e.document.nodeType !== zi.document)
11484
+ if (t.version = "3.2.1", t.removed = [], !e || !e.document || e.document.nodeType !== zi.document)
11470
11485
  return t.isSupported = !1, t;
11471
11486
  let {
11472
11487
  document: n
@@ -12317,6 +12332,12 @@ var SR = {
12317
12332
  button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
12318
12333
  textarea:not([disabled]):not([tabindex='-1']),
12319
12334
  iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]
12335
+ `,
12336
+ selectorFocusable: `
12337
+ a[href], area[href], input:not([disabled]),
12338
+ button:not([disabled]),select:not([disabled]),
12339
+ textarea:not([disabled]),
12340
+ iframe, object, embed, *[tabindex], *[contenteditable=true]
12320
12341
  `
12321
12342
  }, jl = SR;
12322
12343
  function TR(e, t, n) {
@@ -13738,7 +13759,9 @@ var Gp = (jr = {}, jr[Zt.LEFT] = function(e, t, n) {
13738
13759
  };
13739
13760
  }, jr), jp = typeof window < "u" ? window : {
13740
13761
  innerHeight: 0,
13741
- innerWidth: 0
13762
+ scrollY: 0,
13763
+ innerWidth: 0,
13764
+ scrollX: 0
13742
13765
  }, el = (
13743
13766
  /** @class */
13744
13767
  function() {
@@ -17117,17 +17140,35 @@ const TI = (e, t) => {
17117
17140
  const n = e.x, r = e.y, i = t.x, a = t.y, s = bv();
17118
17141
  return s.moveTo(n, r), s.lineTo(i, a), s.toString();
17119
17142
  }, $I = {
17120
- d: "M7 0v8L0 4z"
17143
+ d: "M7 0v8L0 4z",
17144
+ height: 8,
17145
+ width: 7.5,
17146
+ id: "arrowLeft"
17121
17147
  }, MI = {
17122
- d: "M0 0v8l7-4z"
17148
+ d: "M0 0v8l7-4z",
17149
+ height: 8,
17150
+ width: 7.5,
17151
+ id: "arrowRight"
17123
17152
  }, CI = {
17124
- d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z"
17153
+ d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
17154
+ height: 10,
17155
+ width: 10,
17156
+ id: "circle"
17125
17157
  }, AI = {
17126
- d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z"
17158
+ d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z",
17159
+ height: 10,
17160
+ width: 10,
17161
+ id: "diamond"
17127
17162
  }, LI = {
17128
- d: "M0 .44974747h8v8H0v-3.6830331z"
17163
+ d: "M0 .44974747h8v8H0v-3.6830331z",
17164
+ height: 9,
17165
+ width: 8,
17166
+ id: "square"
17129
17167
  }, kI = {
17130
- d: "M0 0h1.5v8H0z"
17168
+ d: "M0 0h1.5v8H0z",
17169
+ height: 8,
17170
+ width: 2,
17171
+ id: "tee"
17131
17172
  };
17132
17173
  class f0 extends ah {
17133
17174
  constructor(t, n, r) {
@@ -18602,7 +18643,7 @@ class FI extends bt {
18602
18643
  O >= 0 ? 0 : O,
18603
18644
  vr(this.fullDataNormalized.map((_) => _[d]))
18604
18645
  ]).range([v, g]).nice(f), w = E.ticks(f), A = (_, C, L) => this.model.getFillColor(_, C, L), I = Qk().angle((_) => x(_[u]) + Math.PI / 2).radius((_) => E(_[d])).curve(Gg), k = this.uniqueKeys.map((_) => {
18605
- const C = this.getLabelDimensions(_).width, L = S2(
18646
+ const C = this.getLabelDimensions(_).width, L = SC(
18606
18647
  x(_),
18607
18648
  g
18608
18649
  );
@@ -19279,6 +19320,8 @@ class jI extends bt {
19279
19320
  return;
19280
19321
  const a = this.model.getOptions(), s = this.model.getDisplayData(), o = b(a, "tree", "rootTitle") || "Tree", l = this.getMockLabelWidth(n, o), c = this.getLongestLabel(s), u = this.getMockLabelWidth(n, c), d = {
19281
19322
  top: 0,
19323
+ right: 0,
19324
+ bottom: 0,
19282
19325
  left: l > 0 ? l + zr : 30 - zr
19283
19326
  }, h = ja({
19284
19327
  name: o,