@carbon/charts 1.23.10 → 1.23.12

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.
@@ -1,5 +1,5 @@
1
1
  import { t as Br, $ as al, i as rl, a0 as ol, a1 as zr, a2 as Ur, a3 as ll, a4 as cl, a5 as ul, a6 as hl, a7 as Fr, a8 as ya, a9 as sn, g as O, p as Kt, a as nn, C as Ea, aa as xt, w as Mt, ab as Cn, E as xa, H as jt, ac as Wr, ad as Os, c as dl, ae as xe, I as hi, K as di, e as se, af as yn, ag as ge, f as ye, x as ve, ah as pl, h as Ke, O as fl, ai as Re, z as Et, l as qt, aj as Gt, ak as gl, M as ml, al as Xr, y as _t, q as hn, n as Hn, am as Ps, an as vl, ao as yl, ap as pi, aq as Sa, A as Ae, ar as Ta, as as Yr, at as El } from "./color-scale-utils-BPsvYA85.mjs";
2
- import { y as at, $ as T, N as Tt, r as be, q as ze, L as xl, A as te, m as nt, s as Me, W as Je, S as kt, e as J, Z as Ue, i as Xt, f as ba, J as $s, d as Sl, F as Bn, n as Vs, H as Gs, C as Hs, p as zn, b as Oa, D as Bs, U as Tl, x as we, a0 as Un, O as zs } from "./axis-scales-CPuwbFQf.mjs";
2
+ import { y as at, $ as b, N as Tt, r as be, q as ze, L as xl, A as te, m as nt, s as Me, W as Je, S as kt, e as J, Z as Ue, i as Xt, f as ba, J as $s, d as Sl, F as Bn, n as Vs, H as Gs, C as Hs, p as zn, b as Oa, D as Bs, U as Tl, x as we, a0 as Un, O as zs } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as lt } from "./a11y-ePqvrObQ.mjs";
4
4
  import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as Us, i as Aa, j as Ma, k as Qe, l as Dt, n as wa, o as bl, q as Ol, u as Bi, D as I, v as Ll, w as fi, G as Ca, x as zi, y as Al, a as Ml, p as bt, r as ka, b as wl } from "./angle-utils-Re7uVv7K.mjs";
5
5
  import { b as Zr, c as pt, a as Ui, s as Cl } from "./array-CLq6Q40W.mjs";
@@ -340,13 +340,13 @@ function Nc() {
340
340
  function Ls(i, t) {
341
341
  var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === En ? -1 : 1, h = i === En || i === as ? "x" : "y", d = i === is || i === gi ? _c : Ic;
342
342
  function u(p) {
343
- var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : kc), m = Math.max(a, 0) + o, y = t.range(), S = +y[0] + c, v = +y[y.length - 1] + c, E = (t.bandwidth ? Dc : Rc)(t.copy(), c), x = p.selection ? p.selection() : p, b = x.selectAll(".domain").data([null]), _ = x.selectAll(".tick").data(f, t).order(), k = _.exit(), G = _.enter().append("g").attr("class", "tick"), R = _.select("line"), A = _.select("text");
344
- b = b.merge(b.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), _ = _.merge(G), R = R.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", i === is ? "0em" : i === gi ? "0.71em" : "0.32em")), p !== x && (b = b.transition(p), _ = _.transition(p), R = R.transition(p), A = A.transition(p), k = k.transition(p).attr("opacity", Na).attr("transform", function(H) {
343
+ var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : kc), m = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Dc : Rc)(t.copy(), c), x = p.selection ? p.selection() : p, T = x.selectAll(".domain").data([null]), k = x.selectAll(".tick").data(f, t).order(), _ = k.exit(), G = k.enter().append("g").attr("class", "tick"), R = k.select("line"), A = k.select("text");
344
+ T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), k = k.merge(G), R = R.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", i === is ? "0em" : i === gi ? "0.71em" : "0.32em")), p !== x && (T = T.transition(p), k = k.transition(p), R = R.transition(p), A = A.transition(p), _ = _.transition(p).attr("opacity", Na).attr("transform", function(H) {
345
345
  return isFinite(H = E(H)) ? d(H + c) : this.getAttribute("transform");
346
346
  }), G.attr("opacity", Na).attr("transform", function(H) {
347
347
  var N = this.parentNode.__axis;
348
348
  return d((N && isFinite(N = N(H)) ? N : E(H)) + c);
349
- })), k.remove(), b.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + v + "H" + l * r : "M" + c + "," + S + "V" + v : r ? "M" + S + "," + l * r + "V" + c + "H" + v + "V" + l * r : "M" + S + "," + c + "H" + v), _.attr("opacity", 1).attr("transform", function(H) {
349
+ })), _.remove(), T.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + y + "H" + l * r : "M" + c + "," + S + "V" + y : r ? "M" + S + "," + l * r + "V" + c + "H" + y + "V" + l * r : "M" + S + "," + c + "H" + y), k.attr("opacity", 1).attr("transform", function(H) {
350
350
  return d(E(H) + c);
351
351
  }), R.attr(h + "2", l * a), A.attr(h, l * m).text(g), x.filter(Nc).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", i === as ? "start" : i === En ? "end" : "middle"), x.each(function() {
352
352
  this.__axis = E;
@@ -518,98 +518,98 @@ function po() {
518
518
  function jc(i) {
519
519
  var t = Yc, e = Xc, n = Zc, s = !0, a = hl("start", "brush", "end"), r = 6, o;
520
520
  function c(m) {
521
- var y = m.property("__brush", g).selectAll(".overlay").data([yi("overlay")]);
522
- y.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", fe.overlay).merge(y).each(function() {
523
- var v = Zs(this).extent;
524
- D(this).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]);
521
+ var v = m.property("__brush", g).selectAll(".overlay").data([yi("overlay")]);
522
+ v.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", fe.overlay).merge(v).each(function() {
523
+ var y = Zs(this).extent;
524
+ D(this).attr("x", y[0][0]).attr("y", y[0][1]).attr("width", y[1][0] - y[0][0]).attr("height", y[1][1] - y[0][1]);
525
525
  }), m.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", fe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
526
- var S = m.selectAll(".handle").data(i.handles, function(v) {
527
- return v.type;
526
+ var S = m.selectAll(".handle").data(i.handles, function(y) {
527
+ return y.type;
528
528
  });
529
- S.exit().remove(), S.enter().append("rect").attr("class", function(v) {
530
- return "handle handle--" + v.type;
531
- }).attr("cursor", function(v) {
532
- return fe[v.type];
529
+ S.exit().remove(), S.enter().append("rect").attr("class", function(y) {
530
+ return "handle handle--" + y.type;
531
+ }).attr("cursor", function(y) {
532
+ return fe[y.type];
533
533
  }), m.each(l).attr("fill", "none").attr("pointer-events", "all").on("mousedown.brush", u).filter(n).on("touchstart.brush", u).on("touchmove.brush", p).on("touchend.brush touchcancel.brush", f).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
534
534
  }
535
- c.move = function(m, y, S) {
536
- m.tween ? m.on("start.brush", function(v) {
537
- h(this, arguments).beforestart().start(v);
538
- }).on("interrupt.brush end.brush", function(v) {
539
- h(this, arguments).end(v);
535
+ c.move = function(m, v, S) {
536
+ m.tween ? m.on("start.brush", function(y) {
537
+ h(this, arguments).beforestart().start(y);
538
+ }).on("interrupt.brush end.brush", function(y) {
539
+ h(this, arguments).end(y);
540
540
  }).tween("brush", function() {
541
- var v = this, E = v.__brush, x = h(v, arguments), b = E.selection, _ = i.input(typeof y == "function" ? y.apply(this, arguments) : y, E.extent), k = Fr(b, _);
541
+ var y = this, E = y.__brush, x = h(y, arguments), T = E.selection, k = i.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), _ = Fr(T, k);
542
542
  function G(R) {
543
- E.selection = R === 1 && _ === null ? null : k(R), l.call(v), x.brush();
543
+ E.selection = R === 1 && k === null ? null : _(R), l.call(y), x.brush();
544
544
  }
545
- return b !== null && _ !== null ? G : G(1);
545
+ return T !== null && k !== null ? G : G(1);
546
546
  }) : m.each(function() {
547
- var v = this, E = arguments, x = v.__brush, b = i.input(typeof y == "function" ? y.apply(v, E) : y, x.extent), _ = h(v, E).beforestart();
548
- ya(v), x.selection = b === null ? null : b, l.call(v), _.start(S).brush(S).end(S);
547
+ var y = this, E = arguments, x = y.__brush, T = i.input(typeof v == "function" ? v.apply(y, E) : v, x.extent), k = h(y, E).beforestart();
548
+ ya(y), x.selection = T === null ? null : T, l.call(y), k.start(S).brush(S).end(S);
549
549
  });
550
- }, c.clear = function(m, y) {
551
- c.move(m, null, y);
550
+ }, c.clear = function(m, v) {
551
+ c.move(m, null, v);
552
552
  };
553
553
  function l() {
554
- var m = D(this), y = Zs(this).selection;
555
- y ? (m.selectAll(".selection").style("display", null).attr("x", y[0][0]).attr("y", y[0][1]).attr("width", y[1][0] - y[0][0]).attr("height", y[1][1] - y[0][1]), m.selectAll(".handle").style("display", null).attr("x", function(S) {
556
- return S.type[S.type.length - 1] === "e" ? y[1][0] - r / 2 : y[0][0] - r / 2;
554
+ var m = D(this), v = Zs(this).selection;
555
+ v ? (m.selectAll(".selection").style("display", null).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]), m.selectAll(".handle").style("display", null).attr("x", function(S) {
556
+ return S.type[S.type.length - 1] === "e" ? v[1][0] - r / 2 : v[0][0] - r / 2;
557
557
  }).attr("y", function(S) {
558
- return S.type[0] === "s" ? y[1][1] - r / 2 : y[0][1] - r / 2;
558
+ return S.type[0] === "s" ? v[1][1] - r / 2 : v[0][1] - r / 2;
559
559
  }).attr("width", function(S) {
560
- return S.type === "n" || S.type === "s" ? y[1][0] - y[0][0] + r : r;
560
+ return S.type === "n" || S.type === "s" ? v[1][0] - v[0][0] + r : r;
561
561
  }).attr("height", function(S) {
562
- return S.type === "e" || S.type === "w" ? y[1][1] - y[0][1] + r : r;
562
+ return S.type === "e" || S.type === "w" ? v[1][1] - v[0][1] + r : r;
563
563
  })) : m.selectAll(".selection,.handle").style("display", "none").attr("x", null).attr("y", null).attr("width", null).attr("height", null);
564
564
  }
565
- function h(m, y, S) {
566
- var v = m.__brush.emitter;
567
- return v && (!S || !v.clean) ? v : new d(m, y, S);
565
+ function h(m, v, S) {
566
+ var y = m.__brush.emitter;
567
+ return y && (!S || !y.clean) ? y : new d(m, v, S);
568
568
  }
569
- function d(m, y, S) {
570
- this.that = m, this.args = y, this.state = m.__brush, this.active = 0, this.clean = S;
569
+ function d(m, v, S) {
570
+ this.that = m, this.args = v, this.state = m.__brush, this.active = 0, this.clean = S;
571
571
  }
572
572
  d.prototype = {
573
573
  beforestart: function() {
574
574
  return ++this.active === 1 && (this.state.emitter = this, this.starting = !0), this;
575
575
  },
576
- start: function(m, y) {
577
- return this.starting ? (this.starting = !1, this.emit("start", m, y)) : this.emit("brush", m), this;
576
+ start: function(m, v) {
577
+ return this.starting ? (this.starting = !1, this.emit("start", m, v)) : this.emit("brush", m), this;
578
578
  },
579
- brush: function(m, y) {
580
- return this.emit("brush", m, y), this;
579
+ brush: function(m, v) {
580
+ return this.emit("brush", m, v), this;
581
581
  },
582
- end: function(m, y) {
583
- return --this.active === 0 && (delete this.state.emitter, this.emit("end", m, y)), this;
582
+ end: function(m, v) {
583
+ return --this.active === 0 && (delete this.state.emitter, this.emit("end", m, v)), this;
584
584
  },
585
- emit: function(m, y, S) {
586
- var v = D(this.that).datum();
585
+ emit: function(m, v, S) {
586
+ var y = D(this.that).datum();
587
587
  a.call(
588
588
  m,
589
589
  this.that,
590
590
  new zc(m, {
591
- sourceEvent: y,
591
+ sourceEvent: v,
592
592
  target: c,
593
593
  selection: i.output(this.state.selection),
594
594
  mode: S,
595
595
  dispatch: a
596
596
  }),
597
- v
597
+ y
598
598
  );
599
599
  }
600
600
  };
601
601
  function u(m) {
602
602
  if (o && !m.touches || !e.apply(this, arguments)) return;
603
- var y = this, S = m.target.__data__.type, v = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && m.altKey ? Xe : We, E = i === Ys ? null : Fc[S], x = i === rs ? null : Wc[S], b = Zs(y), _ = b.extent, k = b.selection, G = _[0][0], R, A, H = _[0][1], N, M, L = _[1][0], P, $, C = _[1][1], V, q, X = 0, F = 0, Z, rt = E && x && s && m.shiftKey, j, Y, K = Array.from(m.touches || [m], (et) => {
603
+ var v = this, S = m.target.__data__.type, y = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && m.altKey ? Xe : We, E = i === Ys ? null : Fc[S], x = i === rs ? null : Wc[S], T = Zs(v), k = T.extent, _ = T.selection, G = k[0][0], R, A, H = k[0][1], N, M, L = k[1][0], P, $, C = k[1][1], V, q, X = 0, F = 0, Z, rt = E && x && s && m.shiftKey, j, Y, K = Array.from(m.touches || [m], (et) => {
604
604
  const yt = et.identifier;
605
- return et = sn(et, y), et.point0 = et.slice(), et.identifier = yt, et;
605
+ return et = sn(et, v), et.point0 = et.slice(), et.identifier = yt, et;
606
606
  });
607
- ya(y);
608
- var ot = h(y, arguments, !0).beforestart();
607
+ ya(v);
608
+ var ot = h(v, arguments, !0).beforestart();
609
609
  if (S === "overlay") {
610
- k && (Z = !0);
610
+ _ && (Z = !0);
611
611
  const et = [K[0], K[1] || K[0]];
612
- b.selection = k = [[
612
+ T.selection = _ = [[
613
613
  R = i === Ys ? G : Pt(et[0][0], et[1][0]),
614
614
  N = i === rs ? H : Pt(et[0][1], et[1][1])
615
615
  ], [
@@ -617,20 +617,20 @@ function jc(i) {
617
617
  V = i === rs ? C : Nt(et[0][1], et[1][1])
618
618
  ]], K.length > 1 && B(m);
619
619
  } else
620
- R = k[0][0], N = k[0][1], P = k[1][0], V = k[1][1];
620
+ R = _[0][0], N = _[0][1], P = _[1][0], V = _[1][1];
621
621
  A = R, M = N, $ = P, q = V;
622
- var ct = D(y).attr("pointer-events", "none"), st = ct.selectAll(".overlay").attr("cursor", fe[S]);
622
+ var ct = D(v).attr("pointer-events", "none"), st = ct.selectAll(".overlay").attr("cursor", fe[S]);
623
623
  if (m.touches)
624
624
  ot.moved = z, ot.ended = U;
625
625
  else {
626
626
  var it = D(m.view).on("mousemove.brush", z, !0).on("mouseup.brush", U, !0);
627
627
  s && it.on("keydown.brush", wt, !0).on("keyup.brush", Te, !0), Vc(m.view);
628
628
  }
629
- l.call(y), ot.start(m, v.name);
629
+ l.call(v), ot.start(m, y.name);
630
630
  function z(et) {
631
631
  for (const yt of et.changedTouches || [et])
632
632
  for (const Zt of K)
633
- Zt.identifier === yt.identifier && (Zt.cur = sn(yt, y));
633
+ Zt.identifier === yt.identifier && (Zt.cur = sn(yt, v));
634
634
  if (rt && !j && !Y && K.length === 1) {
635
635
  const yt = K[0];
636
636
  $a(yt.cur[0] - yt[0]) > $a(yt.cur[1] - yt[1]) ? Y = !0 : j = !0;
@@ -642,7 +642,7 @@ function jc(i) {
642
642
  function B(et) {
643
643
  const yt = K[0], Zt = yt.point0;
644
644
  var Wt;
645
- switch (X = yt[0] - Zt[0], F = yt[1] - Zt[1], v) {
645
+ switch (X = yt[0] - Zt[0], F = yt[1] - Zt[1], y) {
646
646
  case Xs:
647
647
  case Pa: {
648
648
  E && (X = Nt(G - R, Pt(L - P, X)), A = R + X, $ = P + X), x && (F = Nt(H - N, Pt(C - V, F)), M = N + F, q = V + F);
@@ -657,7 +657,7 @@ function jc(i) {
657
657
  break;
658
658
  }
659
659
  }
660
- $ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = V, V = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])), b.selection && (k = b.selection), j && (A = k[0][0], $ = k[1][0]), Y && (M = k[0][1], q = k[1][1]), (k[0][0] !== A || k[0][1] !== M || k[1][0] !== $ || k[1][1] !== q) && (b.selection = [[A, M], [$, q]], l.call(y), ot.brush(et, v.name));
660
+ $ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = V, V = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])), T.selection && (_ = T.selection), j && (A = _[0][0], $ = _[1][0]), Y && (M = _[0][1], q = _[1][1]), (_[0][0] !== A || _[0][1] !== M || _[1][0] !== $ || _[1][1] !== q) && (T.selection = [[A, M], [$, q]], l.call(v), ot.brush(et, y.name));
661
661
  }
662
662
  function U(et) {
663
663
  if (Uc(et), et.touches) {
@@ -667,7 +667,7 @@ function jc(i) {
667
667
  }, 500);
668
668
  } else
669
669
  Gc(et.view, Z), it.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
670
- ct.attr("pointer-events", "all"), st.attr("cursor", fe.overlay), b.selection && (k = b.selection), qc(k) && (b.selection = null, l.call(y)), ot.end(et, v.name);
670
+ ct.attr("pointer-events", "all"), st.attr("cursor", fe.overlay), T.selection && (_ = T.selection), qc(_) && (T.selection = null, l.call(v)), ot.end(et, y.name);
671
671
  }
672
672
  function wt(et) {
673
673
  switch (et.keyCode) {
@@ -676,11 +676,11 @@ function jc(i) {
676
676
  break;
677
677
  }
678
678
  case 18: {
679
- v === We && (E && (P = $ - X * E, R = A + X * E), x && (V = q - F * x, N = M + F * x), v = Xe, B(et));
679
+ y === We && (E && (P = $ - X * E, R = A + X * E), x && (V = q - F * x, N = M + F * x), y = Xe, B(et));
680
680
  break;
681
681
  }
682
682
  case 32: {
683
- (v === We || v === Xe) && (E < 0 ? P = $ - X : E > 0 && (R = A - X), x < 0 ? V = q - F : x > 0 && (N = M - F), v = Xs, st.attr("cursor", fe.selection), B(et));
683
+ (y === We || y === Xe) && (E < 0 ? P = $ - X : E > 0 && (R = A - X), x < 0 ? V = q - F : x > 0 && (N = M - F), y = Xs, st.attr("cursor", fe.selection), B(et));
684
684
  break;
685
685
  }
686
686
  default:
@@ -695,11 +695,11 @@ function jc(i) {
695
695
  break;
696
696
  }
697
697
  case 18: {
698
- v === Xe && (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? V = q : x > 0 && (N = M), v = We, B(et));
698
+ y === Xe && (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? V = q : x > 0 && (N = M), y = We, B(et));
699
699
  break;
700
700
  }
701
701
  case 32: {
702
- v === Xs && (et.altKey ? (E && (P = $ - X * E, R = A + X * E), x && (V = q - F * x, N = M + F * x), v = Xe) : (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? V = q : x > 0 && (N = M), v = We), st.attr("cursor", fe[S]), B(et));
702
+ y === Xs && (et.altKey ? (E && (P = $ - X * E, R = A + X * E), x && (V = q - F * x, N = M + F * x), y = Xe) : (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? V = q : x > 0 && (N = M), y = We), st.attr("cursor", fe[S]), B(et));
703
703
  break;
704
704
  }
705
705
  default:
@@ -778,7 +778,7 @@ let Wi = class {
778
778
  else if (u > ke) if (!(Math.abs(d * c - l * h) > ke) || !a)
779
779
  this._append`L${this._x1 = t},${this._y1 = e}`;
780
780
  else {
781
- let p = n - r, f = s - o, g = c * c + l * l, m = p * p + f * f, y = Math.sqrt(g), S = Math.sqrt(u), v = a * Math.tan((Ei - Math.acos((g + u - m) / (2 * y * S))) / 2), E = v / S, x = v / y;
781
+ let p = n - r, f = s - o, g = c * c + l * l, m = p * p + f * f, v = Math.sqrt(g), S = Math.sqrt(u), y = a * Math.tan((Ei - Math.acos((g + u - m) / (2 * v * S))) / 2), E = y / S, x = y / v;
782
782
  Math.abs(E - 1) > ke && this._append`L${t + E * h},${e + E * d}`, this._append`A${a},${a},0,0,${+(d * p > h * f)},${this._x1 = t + x * c},${this._y1 = e + x * l}`;
783
783
  }
784
784
  }
@@ -973,16 +973,16 @@ function yo(i, t, e, n, s) {
973
973
  var a = [], r = [], o, c;
974
974
  if (i.forEach(function(f) {
975
975
  if (!((g = f.length - 1) <= 0)) {
976
- var g, m = f[0], y = f[g], S;
977
- if (os(m, y)) {
978
- if (!m[2] && !y[2]) {
976
+ var g, m = f[0], v = f[g], S;
977
+ if (os(m, v)) {
978
+ if (!m[2] && !v[2]) {
979
979
  for (s.lineStart(), o = 0; o < g; ++o) s.point((m = f[o])[0], m[1]);
980
980
  s.lineEnd();
981
981
  return;
982
982
  }
983
- y[0] += 2 * vt;
983
+ v[0] += 2 * vt;
984
984
  }
985
- a.push(S = new Xn(m, f, null, !0)), r.push(S.o = new Xn(m, null, S, !1)), a.push(S = new Xn(y, f, null, !1)), r.push(S.o = new Xn(y, null, S, !0));
985
+ a.push(S = new Xn(m, f, null, !0)), r.push(S.o = new Xn(m, null, S, !1)), a.push(S = new Xn(v, f, null, !1)), r.push(S.o = new Xn(v, null, S, !0));
986
986
  }
987
987
  }), !!a.length) {
988
988
  for (r.sort(t), ja(a), ja(r), o = 0, c = r.length; o < c; ++o)
@@ -1025,15 +1025,15 @@ function ru(i, t) {
1025
1025
  s === 1 ? n = Ft + vt : s === -1 && (n = -Ft - vt);
1026
1026
  for (var l = 0, h = i.length; l < h; ++l)
1027
1027
  if (u = (d = i[l]).length)
1028
- for (var d, u, p = d[u - 1], f = js(p), g = p[1] / 2 + za, m = ft(g), y = mt(g), S = 0; S < u; ++S, f = E, m = b, y = _, p = v) {
1029
- var v = d[S], E = js(v), x = v[1] / 2 + za, b = ft(x), _ = mt(x), k = E - f, G = k >= 0 ? 1 : -1, R = G * k, A = R > ht, H = m * b;
1030
- if (c.add(Ne(H * G * ft(R), y * _ + H * mt(R))), r += A ? k + G * Yt : k, A ^ f >= e ^ E >= e) {
1031
- var N = ds(an(p), an(v));
1028
+ for (var d, u, p = d[u - 1], f = js(p), g = p[1] / 2 + za, m = ft(g), v = mt(g), S = 0; S < u; ++S, f = E, m = T, v = k, p = y) {
1029
+ var y = d[S], E = js(y), x = y[1] / 2 + za, T = ft(x), k = mt(x), _ = E - f, G = _ >= 0 ? 1 : -1, R = G * _, A = R > ht, H = m * T;
1030
+ if (c.add(Ne(H * G * ft(R), v * k + H * mt(R))), r += A ? _ + G * Yt : _, A ^ f >= e ^ E >= e) {
1031
+ var N = ds(an(p), an(y));
1032
1032
  bi(N);
1033
1033
  var M = ds(a, N);
1034
1034
  bi(M);
1035
- var L = (A ^ k >= 0 ? -1 : 1) * Se(M[2]);
1036
- (n > L || n === L && (N[0] || N[1])) && (o += A ^ k >= 0 ? 1 : -1);
1035
+ var L = (A ^ _ >= 0 ? -1 : 1) * Se(M[2]);
1036
+ (n > L || n === L && (N[0] || N[1])) && (o += A ^ _ >= 0 ? 1 : -1);
1037
1037
  }
1038
1038
  }
1039
1039
  return (r < -1e-6 || r < vt && c < -1e-12) ^ o & 1;
@@ -1045,7 +1045,7 @@ function Eo(i, t, e, n) {
1045
1045
  lineStart: g,
1046
1046
  lineEnd: m,
1047
1047
  polygonStart: function() {
1048
- u.point = y, u.lineStart = S, u.lineEnd = v, h = [], l = [];
1048
+ u.point = v, u.lineStart = S, u.lineEnd = y, h = [], l = [];
1049
1049
  },
1050
1050
  polygonEnd: function() {
1051
1051
  u.point = p, u.lineStart = g, u.lineEnd = m, h = uo(h);
@@ -1068,24 +1068,24 @@ function Eo(i, t, e, n) {
1068
1068
  function m() {
1069
1069
  u.point = p, a.lineEnd();
1070
1070
  }
1071
- function y(E, x) {
1071
+ function v(E, x) {
1072
1072
  d.push([E, x]), o.point(E, x);
1073
1073
  }
1074
1074
  function S() {
1075
1075
  o.lineStart(), d = [];
1076
1076
  }
1077
- function v() {
1078
- y(d[0][0], d[0][1]), o.lineEnd();
1079
- var E = o.clean(), x = r.result(), b, _ = x.length, k, G, R;
1080
- if (d.pop(), l.push(d), d = null, !!_) {
1077
+ function y() {
1078
+ v(d[0][0], d[0][1]), o.lineEnd();
1079
+ var E = o.clean(), x = r.result(), T, k = x.length, _, G, R;
1080
+ if (d.pop(), l.push(d), d = null, !!k) {
1081
1081
  if (E & 1) {
1082
- if (G = x[0], (k = G.length - 1) > 0) {
1083
- for (c || (s.polygonStart(), c = !0), s.lineStart(), b = 0; b < k; ++b) s.point((R = G[b])[0], R[1]);
1082
+ if (G = x[0], (_ = G.length - 1) > 0) {
1083
+ for (c || (s.polygonStart(), c = !0), s.lineStart(), T = 0; T < _; ++T) s.point((R = G[T])[0], R[1]);
1084
1084
  s.lineEnd();
1085
1085
  }
1086
1086
  return;
1087
1087
  }
1088
- _ > 1 && E & 2 && x.push(x.pop().concat(x.shift())), h.push(x.filter(ou));
1088
+ k > 1 && E & 2 && x.push(x.pop().concat(x.shift())), h.push(x.filter(ou));
1089
1089
  }
1090
1090
  }
1091
1091
  return u;
@@ -1151,13 +1151,13 @@ function du(i) {
1151
1151
  lineStart: function() {
1152
1152
  f = p = !1, g = 1;
1153
1153
  },
1154
- point: function(m, y) {
1155
- var S = [m, y], v, E = r(m, y), x = n ? E ? 0 : l(m, y) : E ? l(m + (m < 0 ? ht : -ht), y) : 0;
1156
- if (!d && (f = p = E) && h.lineStart(), E !== p && (v = c(d, S), (!v || os(d, v) || os(S, v)) && (S[2] = 1)), E !== p)
1157
- g = 0, E ? (h.lineStart(), v = c(S, d), h.point(v[0], v[1])) : (v = c(d, S), h.point(v[0], v[1], 2), h.lineEnd()), d = v;
1154
+ point: function(m, v) {
1155
+ var S = [m, v], y, E = r(m, v), x = n ? E ? 0 : l(m, v) : E ? l(m + (m < 0 ? ht : -ht), v) : 0;
1156
+ if (!d && (f = p = E) && h.lineStart(), E !== p && (y = c(d, S), (!y || os(d, y) || os(S, y)) && (S[2] = 1)), E !== p)
1157
+ g = 0, E ? (h.lineStart(), y = c(S, d), h.point(y[0], y[1])) : (y = c(d, S), h.point(y[0], y[1], 2), h.lineEnd()), d = y;
1158
1158
  else if (s && d && n ^ E) {
1159
- var b;
1160
- !(x & u) && (b = c(S, d, !0)) && (g = 0, n ? (h.lineStart(), h.point(b[0][0], b[0][1]), h.point(b[1][0], b[1][1]), h.lineEnd()) : (h.point(b[1][0], b[1][1]), h.lineEnd(), h.lineStart(), h.point(b[0][0], b[0][1], 3)));
1159
+ var T;
1160
+ !(x & u) && (T = c(S, d, !0)) && (g = 0, n ? (h.lineStart(), h.point(T[0][0], T[0][1]), h.point(T[1][0], T[1][1]), h.lineEnd()) : (h.point(T[1][0], T[1][1]), h.lineEnd(), h.lineStart(), h.point(T[0][0], T[0][1], 3)));
1161
1161
  }
1162
1162
  E && (!d || !os(d, S)) && h.point(S[0], S[1]), d = S, p = E, u = x;
1163
1163
  },
@@ -1172,20 +1172,20 @@ function du(i) {
1172
1172
  };
1173
1173
  }
1174
1174
  function c(h, d, u) {
1175
- var p = an(h), f = an(d), g = [1, 0, 0], m = ds(p, f), y = Fn(m, m), S = m[0], v = y - S * S;
1176
- if (!v) return !u && h;
1177
- var E = t * y / v, x = -t * S / v, b = ds(g, m), _ = Wn(g, E), k = Wn(m, x);
1178
- qs(_, k);
1179
- var G = b, R = Fn(_, G), A = Fn(G, G), H = R * R - A * (Fn(_, _) - 1);
1175
+ var p = an(h), f = an(d), g = [1, 0, 0], m = ds(p, f), v = Fn(m, m), S = m[0], y = v - S * S;
1176
+ if (!y) return !u && h;
1177
+ var E = t * v / y, x = -t * S / y, T = ds(g, m), k = Wn(g, E), _ = Wn(m, x);
1178
+ qs(k, _);
1179
+ var G = T, R = Fn(k, G), A = Fn(G, G), H = R * R - A * (Fn(k, k) - 1);
1180
1180
  if (!(H < 0)) {
1181
1181
  var N = ae(H), M = Wn(G, (-R - N) / A);
1182
- if (qs(M, _), M = Ti(M), !u) return M;
1182
+ if (qs(M, k), M = Ti(M), !u) return M;
1183
1183
  var L = h[0], P = d[0], $ = h[1], C = d[1], V;
1184
1184
  P < L && (V = L, L = P, P = V);
1185
1185
  var q = P - L, X = gt(q - ht) < vt, F = X || q < vt;
1186
1186
  if (!X && C < $ && (V = $, $ = C, C = V), F ? X ? $ + C > 0 ^ M[1] < (gt(M[0] - L) < vt ? $ : C) : $ <= M[1] && M[1] <= C : q > ht ^ (L <= M[0] && M[0] <= P)) {
1187
1187
  var Z = Wn(G, (-R + N) / A);
1188
- return qs(Z, _), [M, Ti(Z)];
1188
+ return qs(Z, k), [M, Ti(Z)];
1189
1189
  }
1190
1190
  }
1191
1191
  }
@@ -1260,14 +1260,14 @@ function fu(i, t, e, n) {
1260
1260
  return d !== u ? d - u : d === 0 ? h[1] - l[1] : d === 1 ? l[0] - h[0] : d === 2 ? l[1] - h[1] : h[0] - l[0];
1261
1261
  }
1262
1262
  return function(l) {
1263
- var h = l, d = vo(), u, p, f, g, m, y, S, v, E, x, b, _ = {
1264
- point: k,
1263
+ var h = l, d = vo(), u, p, f, g, m, v, S, y, E, x, T, k = {
1264
+ point: _,
1265
1265
  lineStart: H,
1266
1266
  lineEnd: N,
1267
1267
  polygonStart: R,
1268
1268
  polygonEnd: A
1269
1269
  };
1270
- function k(L, P) {
1270
+ function _(L, P) {
1271
1271
  s(L, P) && h.point(L, P);
1272
1272
  }
1273
1273
  function G() {
@@ -1277,30 +1277,30 @@ function fu(i, t, e, n) {
1277
1277
  return L;
1278
1278
  }
1279
1279
  function R() {
1280
- h = d, u = [], p = [], b = !0;
1280
+ h = d, u = [], p = [], T = !0;
1281
1281
  }
1282
1282
  function A() {
1283
- var L = G(), P = b && L, $ = (u = uo(u)).length;
1283
+ var L = G(), P = T && L, $ = (u = uo(u)).length;
1284
1284
  (P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && yo(u, o, L, a, l), l.polygonEnd()), h = l, u = p = f = null;
1285
1285
  }
1286
1286
  function H() {
1287
- _.point = M, p && p.push(f = []), x = !0, E = !1, S = v = NaN;
1287
+ k.point = M, p && p.push(f = []), x = !0, E = !1, S = y = NaN;
1288
1288
  }
1289
1289
  function N() {
1290
- u && (M(g, m), y && E && d.rejoin(), u.push(d.result())), _.point = k, E && h.lineEnd();
1290
+ u && (M(g, m), v && E && d.rejoin(), u.push(d.result())), k.point = _, E && h.lineEnd();
1291
1291
  }
1292
1292
  function M(L, P) {
1293
1293
  var $ = s(L, P);
1294
1294
  if (p && f.push([L, P]), x)
1295
- g = L, m = P, y = $, x = !1, $ && (h.lineStart(), h.point(L, P));
1295
+ g = L, m = P, v = $, x = !1, $ && (h.lineStart(), h.point(L, P));
1296
1296
  else if ($ && E) h.point(L, P);
1297
1297
  else {
1298
- var C = [S = Math.max(Zn, Math.min(Yn, S)), v = Math.max(Zn, Math.min(Yn, v))], V = [L = Math.max(Zn, Math.min(Yn, L)), P = Math.max(Zn, Math.min(Yn, P))];
1299
- pu(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(), b = !1) : $ && (h.lineStart(), h.point(L, P), b = !1);
1298
+ var C = [S = Math.max(Zn, Math.min(Yn, S)), y = Math.max(Zn, Math.min(Yn, y))], V = [L = Math.max(Zn, Math.min(Yn, L)), P = Math.max(Zn, Math.min(Yn, P))];
1299
+ pu(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(), T = !1) : $ && (h.lineStart(), h.point(L, P), T = !1);
1300
1300
  }
1301
- S = L, v = P, E = $;
1301
+ S = L, y = P, E = $;
1302
1302
  }
1303
- return _;
1303
+ return k;
1304
1304
  };
1305
1305
  }
1306
1306
  const Ai = (i) => i;
@@ -1616,15 +1616,15 @@ function _u(i) {
1616
1616
  }
1617
1617
  function Iu(i, t) {
1618
1618
  function e(n, s, a, r, o, c, l, h, d, u, p, f, g, m) {
1619
- var y = l - n, S = h - s, v = y * y + S * S;
1620
- if (v > 4 * t && g--) {
1621
- var E = r + u, x = o + p, b = c + f, _ = ae(E * E + x * x + b * b), k = Se(b /= _), G = gt(gt(b) - 1) < vt || gt(a - d) < vt ? (a + d) / 2 : Ne(x, E), R = i(G, k), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - y * M;
1622
- (L * L / v > t || gt((y * N + S * M) / v - 0.5) > 0.3 || r * u + o * p + c * f < ku) && (e(n, s, a, r, o, c, A, H, G, E /= _, x /= _, b, g, m), m.point(A, H), e(A, H, G, E, x, b, l, h, d, u, p, f, g, m));
1619
+ var v = l - n, S = h - s, y = v * v + S * S;
1620
+ if (y > 4 * t && g--) {
1621
+ var E = r + u, x = o + p, T = c + f, k = ae(E * E + x * x + T * T), _ = Se(T /= k), G = gt(gt(T) - 1) < vt || gt(a - d) < vt ? (a + d) / 2 : Ne(x, E), R = i(G, _), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - v * M;
1622
+ (L * L / y > t || gt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < ku) && (e(n, s, a, r, o, c, A, H, G, E /= k, x /= k, T, g, m), m.point(A, H), e(A, H, G, E, x, T, l, h, d, u, p, f, g, m));
1623
1623
  }
1624
1624
  }
1625
1625
  return function(n) {
1626
1626
  var s, a, r, o, c, l, h, d, u, p, f, g, m = {
1627
- point: y,
1627
+ point: v,
1628
1628
  lineStart: S,
1629
1629
  lineEnd: E,
1630
1630
  polygonStart: function() {
@@ -1634,26 +1634,26 @@ function Iu(i, t) {
1634
1634
  n.polygonEnd(), m.lineStart = S;
1635
1635
  }
1636
1636
  };
1637
- function y(k, G) {
1638
- k = i(k, G), n.point(k[0], k[1]);
1637
+ function v(_, G) {
1638
+ _ = i(_, G), n.point(_[0], _[1]);
1639
1639
  }
1640
1640
  function S() {
1641
- d = NaN, m.point = v, n.lineStart();
1641
+ d = NaN, m.point = y, n.lineStart();
1642
1642
  }
1643
- function v(k, G) {
1644
- var R = an([k, G]), A = i(k, G);
1645
- e(d, u, h, p, f, g, d = A[0], u = A[1], h = k, p = R[0], f = R[1], g = R[2], ir, n), n.point(d, u);
1643
+ function y(_, G) {
1644
+ var R = an([_, G]), A = i(_, G);
1645
+ e(d, u, h, p, f, g, d = A[0], u = A[1], h = _, p = R[0], f = R[1], g = R[2], ir, n), n.point(d, u);
1646
1646
  }
1647
1647
  function E() {
1648
- m.point = y, n.lineEnd();
1648
+ m.point = v, n.lineEnd();
1649
1649
  }
1650
1650
  function x() {
1651
- S(), m.point = b, m.lineEnd = _;
1651
+ S(), m.point = T, m.lineEnd = k;
1652
1652
  }
1653
- function b(k, G) {
1654
- v(s = k, G), a = d, r = u, o = p, c = f, l = g, m.point = v;
1653
+ function T(_, G) {
1654
+ y(s = _, G), a = d, r = u, o = p, c = f, l = g, m.point = y;
1655
1655
  }
1656
- function _() {
1656
+ function k() {
1657
1657
  e(d, u, h, p, f, g, a, r, s, o, c, l, ir, n), m.lineEnd = E, E();
1658
1658
  }
1659
1659
  return m;
@@ -1696,23 +1696,23 @@ function Ms(i) {
1696
1696
  })();
1697
1697
  }
1698
1698
  function Io(i) {
1699
- var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = Ka, m = null, y, S, v, E = Ai, x = 0.5, b, _, k, G, R;
1699
+ var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = Ka, m = null, v, S, y, E = Ai, x = 0.5, T, k, _, G, R;
1700
1700
  function A(L) {
1701
- return k(L[0] * Ot, L[1] * Ot);
1701
+ return _(L[0] * Ot, L[1] * Ot);
1702
1702
  }
1703
1703
  function H(L) {
1704
- return L = k.invert(L[0], L[1]), L && [L[0] * Vt, L[1] * Vt];
1704
+ return L = _.invert(L[0], L[1]), L && [L[0] * Vt, L[1] * Vt];
1705
1705
  }
1706
1706
  A.stream = function(L) {
1707
- return G && R === L ? G : G = Ru(Du(h)(g(b(E(R = L)))));
1707
+ return G && R === L ? G : G = Ru(Du(h)(g(T(E(R = L)))));
1708
1708
  }, A.preclip = function(L) {
1709
1709
  return arguments.length ? (g = L, f = void 0, M()) : g;
1710
1710
  }, A.postclip = function(L) {
1711
- return arguments.length ? (E = L, m = y = S = v = null, M()) : E;
1711
+ return arguments.length ? (E = L, m = v = S = y = null, M()) : E;
1712
1712
  }, A.clipAngle = function(L) {
1713
1713
  return arguments.length ? (g = +L ? du(f = L * Ot) : (f = null, Ka), M()) : f * Vt;
1714
1714
  }, A.clipExtent = function(L) {
1715
- return arguments.length ? (E = L == null ? (m = y = S = v = null, Ai) : fu(m = +L[0][0], y = +L[0][1], S = +L[1][0], v = +L[1][1]), M()) : m == null ? null : [[m, y], [S, v]];
1715
+ return arguments.length ? (E = L == null ? (m = v = S = y = null, Ai) : fu(m = +L[0][0], v = +L[0][1], S = +L[1][0], y = +L[1][1]), M()) : m == null ? null : [[m, v], [S, y]];
1716
1716
  }, A.scale = function(L) {
1717
1717
  return arguments.length ? (e = +L, N()) : e;
1718
1718
  }, A.translate = function(L) {
@@ -1728,7 +1728,7 @@ function Io(i) {
1728
1728
  }, A.reflectY = function(L) {
1729
1729
  return arguments.length ? (p = L ? -1 : 1, N()) : p < 0;
1730
1730
  }, A.precision = function(L) {
1731
- return arguments.length ? (b = ar(_, x = L * L), M()) : ae(x);
1731
+ return arguments.length ? (T = ar(k, x = L * L), M()) : ae(x);
1732
1732
  }, A.fitExtent = function(L, P) {
1733
1733
  return _o(A, L, P);
1734
1734
  }, A.fitSize = function(L, P) {
@@ -1740,7 +1740,7 @@ function Io(i) {
1740
1740
  };
1741
1741
  function N() {
1742
1742
  var L = rr(e, 0, 0, u, p, d).apply(null, t(a, r)), P = rr(e, n - L[0], s - L[1], u, p, d);
1743
- return h = mo(o, c, l), _ = Oi(t, P), k = Oi(h, _), b = ar(_, x), M();
1743
+ return h = mo(o, c, l), k = Oi(t, P), _ = Oi(h, k), T = ar(k, x), M();
1744
1744
  }
1745
1745
  function M() {
1746
1746
  return G = R = null, A;
@@ -2140,10 +2140,10 @@ function On(i, t) {
2140
2140
  };
2141
2141
  }
2142
2142
  function Go(i, t, e) {
2143
- var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, g = s - h, m = c - a, y = d - a, S = n * n + s * s - a * a, v = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * g, b = (f * E - g * v) / (x * 2) - n, _ = (g * m - f * y) / x, k = (p * v - u * E) / (x * 2) - s, G = (u * y - p * m) / x, R = _ * _ + G * G - 1, A = 2 * (a + b * _ + k * G), H = b * b + k * k - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
2143
+ var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, g = s - h, m = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * g, T = (f * E - g * y) / (x * 2) - n, k = (g * m - f * v) / x, _ = (p * y - u * E) / (x * 2) - s, G = (u * v - p * m) / x, R = k * k + G * G - 1, A = 2 * (a + T * k + _ * G), H = T * T + _ * _ - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
2144
2144
  return {
2145
- x: n + b + _ * N,
2146
- y: s + k + G * N,
2145
+ x: n + T + k * N,
2146
+ y: s + _ + G * N,
2147
2147
  r: N
2148
2148
  };
2149
2149
  }
@@ -2281,9 +2281,9 @@ function Bh() {
2281
2281
  l.eachBefore(function(S) {
2282
2282
  S.x < d.x && (d = S), S.x > u.x && (u = S), S.depth > p.depth && (p = S);
2283
2283
  });
2284
- var f = d === u ? 1 : i(d, u) / 2, g = f - d.x, m = t / (u.x + f + g), y = e / (p.depth || 1);
2284
+ var f = d === u ? 1 : i(d, u) / 2, g = f - d.x, m = t / (u.x + f + g), v = e / (p.depth || 1);
2285
2285
  l.eachBefore(function(S) {
2286
- S.x = (S.x + g) * m, S.y = S.depth * y;
2286
+ S.x = (S.x + g) * m, S.y = S.depth * v;
2287
2287
  });
2288
2288
  }
2289
2289
  return l;
@@ -2302,9 +2302,9 @@ function Bh() {
2302
2302
  }
2303
2303
  function o(l, h, d) {
2304
2304
  if (h) {
2305
- for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, y = p.m, S = f.m, v = g.m, E; f = ni(f), u = ei(u), f && u; )
2306
- g = ei(g), p = ni(p), p.a = l, E = f.z + S - u.z - m + i(f._, u._), E > 0 && ($h(Gh(f, l, d), l, E), m += E, y += E), S += f.m, m += u.m, v += g.m, y += p.m;
2307
- f && !ni(p) && (p.t = f, p.m += S - y), u && !ei(g) && (g.t = u, g.m += m - v, d = l);
2305
+ for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, v = p.m, S = f.m, y = g.m, E; f = ni(f), u = ei(u), f && u; )
2306
+ g = ei(g), p = ni(p), p.a = l, E = f.z + S - u.z - m + i(f._, u._), E > 0 && ($h(Gh(f, l, d), l, E), m += E, v += E), S += f.m, m += u.m, y += g.m, v += p.m;
2307
+ f && !ni(p) && (p.t = f, p.m += S - v), u && !ei(g) && (g.t = u, g.m += m - y, d = l);
2308
2308
  }
2309
2309
  return d;
2310
2310
  }
@@ -2325,17 +2325,17 @@ function zh(i, t, e, n, s) {
2325
2325
  }
2326
2326
  var Uh = (1 + Math.sqrt(5)) / 2;
2327
2327
  function Fh(i, t, e, n, s, a) {
2328
- for (var r = [], o = t.children, c, l, h = 0, d = 0, u = o.length, p, f, g = t.value, m, y, S, v, E, x, b; h < u; ) {
2328
+ for (var r = [], o = t.children, c, l, h = 0, d = 0, u = o.length, p, f, g = t.value, m, v, S, y, E, x, T; h < u; ) {
2329
2329
  p = s - e, f = a - n;
2330
2330
  do
2331
2331
  m = o[d++].value;
2332
2332
  while (!m && d < u);
2333
- for (y = S = m, x = Math.max(f / p, p / f) / (g * i), b = m * m * x, E = Math.max(S / b, b / y); d < u; ++d) {
2334
- if (m += l = o[d].value, l < y && (y = l), l > S && (S = l), b = m * m * x, v = Math.max(S / b, b / y), v > E) {
2333
+ for (v = S = m, x = Math.max(f / p, p / f) / (g * i), T = m * m * x, E = Math.max(S / T, T / v); d < u; ++d) {
2334
+ if (m += l = o[d].value, l < v && (v = l), l > S && (S = l), T = m * m * x, y = Math.max(S / T, T / v), y > E) {
2335
2335
  m -= l;
2336
2336
  break;
2337
2337
  }
2338
- E = v;
2338
+ E = y;
2339
2339
  }
2340
2340
  r.push(c = { value: m, dice: p < f, children: o.slice(h, d) }), c.dice ? Nh(c, e, n, s, g ? n += f * m / g : a) : zh(c, e, n, g ? e += p * m / g : s, a), g -= m, h = d;
2341
2341
  }
@@ -2355,8 +2355,8 @@ function Xh() {
2355
2355
  return u.x0 = u.y0 = 0, u.x1 = e, u.y1 = n, u.eachBefore(d), s = [0], t && u.eachBefore(Dh), u;
2356
2356
  }
2357
2357
  function d(u) {
2358
- var p = s[u.depth], f = u.x0 + p, g = u.y0 + p, m = u.x1 - p, y = u.y1 - p;
2359
- m < f && (f = m = (f + m) / 2), y < g && (g = y = (g + y) / 2), u.x0 = f, u.y0 = g, u.x1 = m, u.y1 = y, u.children && (p = s[u.depth + 1] = a(u) / 2, f += l(u) - p, g += r(u) - p, m -= o(u) - p, y -= c(u) - p, m < f && (f = m = (f + m) / 2), y < g && (g = y = (g + y) / 2), i(u, f, g, m, y));
2358
+ var p = s[u.depth], f = u.x0 + p, g = u.y0 + p, m = u.x1 - p, v = u.y1 - p;
2359
+ m < f && (f = m = (f + m) / 2), v < g && (g = v = (g + v) / 2), u.x0 = f, u.y0 = g, u.x1 = m, u.y1 = v, u.children && (p = s[u.depth + 1] = a(u) / 2, f += l(u) - p, g += r(u) - p, m -= o(u) - p, v -= c(u) - p, m < f && (f = m = (f + m) / 2), v < g && (g = v = (g + v) / 2), i(u, f, g, m, v));
2360
2360
  }
2361
2361
  return h.round = function(u) {
2362
2362
  return arguments.length ? (t = !!u, h) : t;
@@ -2415,32 +2415,32 @@ function Jh(i, t, e, n, s, a, r, o) {
2415
2415
  return u = (h * (t - a) - d * (i - s)) / u, [i + u * c, t + u * l];
2416
2416
  }
2417
2417
  function Kn(i, t, e, n, s, a, r) {
2418
- var o = i - e, c = t - n, l = (r ? a : -a) / Qe(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, y = (p + g) / 2, S = f - u, v = g - p, E = S * S + v * v, x = s - a, b = u * g - f * p, _ = (v < 0 ? -1 : 1) * Qe(Ol(0, x * x * E - b * b)), k = (b * v - S * _) / E, G = (-b * S - v * _) / E, R = (b * v + S * _) / E, A = (-b * S + v * _) / E, H = k - m, N = G - y, M = R - m, L = A - y;
2419
- return H * H + N * N > M * M + L * L && (k = R, G = A), {
2420
- cx: k,
2418
+ var o = i - e, c = t - n, l = (r ? a : -a) / Qe(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, v = (p + g) / 2, S = f - u, y = g - p, E = S * S + y * y, x = s - a, T = u * g - f * p, k = (y < 0 ? -1 : 1) * Qe(Ol(0, x * x * E - T * T)), _ = (T * y - S * k) / E, G = (-T * S - y * k) / E, R = (T * y + S * k) / E, A = (-T * S + y * k) / E, H = _ - m, N = G - v, M = R - m, L = A - v;
2419
+ return H * H + N * N > M * M + L * L && (_ = R, G = A), {
2420
+ cx: _,
2421
2421
  cy: G,
2422
2422
  x01: -h,
2423
2423
  y01: -d,
2424
- x11: k * (s / x - 1),
2424
+ x11: _ * (s / x - 1),
2425
2425
  y11: G * (s / x - 1)
2426
2426
  };
2427
2427
  }
2428
2428
  function Rn() {
2429
2429
  var i = Yh, t = Zh, e = pt(0), n = null, s = qh, a = jh, r = Kh, o = null, c = ws(l);
2430
2430
  function l() {
2431
- var h, d, u = +i.apply(this, arguments), p = +t.apply(this, arguments), f = s.apply(this, arguments) - La, g = a.apply(this, arguments) - La, m = Aa(g - f), y = g > f;
2431
+ var h, d, u = +i.apply(this, arguments), p = +t.apply(this, arguments), f = s.apply(this, arguments) - La, g = a.apply(this, arguments) - La, m = Aa(g - f), v = g > f;
2432
2432
  if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Ut)) o.moveTo(0, 0);
2433
2433
  else if (m > ss - Ut)
2434
- o.moveTo(p * Ce(f), p * oe(f)), o.arc(0, 0, p, f, g, !y), u > Ut && (o.moveTo(u * Ce(g), u * oe(g)), o.arc(0, 0, u, g, f, y));
2434
+ o.moveTo(p * Ce(f), p * oe(f)), o.arc(0, 0, p, f, g, !v), u > Ut && (o.moveTo(u * Ce(g), u * oe(g)), o.arc(0, 0, u, g, f, v));
2435
2435
  else {
2436
- var S = f, v = g, E = f, x = g, b = m, _ = m, k = r.apply(this, arguments) / 2, G = k > Ut && (n ? +n.apply(this, arguments) : Qe(u * u + p * p)), R = Us(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
2436
+ var S = f, y = g, E = f, x = g, T = m, k = m, _ = r.apply(this, arguments) / 2, G = _ > Ut && (n ? +n.apply(this, arguments) : Qe(u * u + p * p)), R = Us(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
2437
2437
  if (G > Ut) {
2438
- var L = wa(G / u * oe(k)), P = wa(G / p * oe(k));
2439
- (b -= L * 2) > Ut ? (L *= y ? 1 : -1, E += L, x -= L) : (b = 0, E = x = (f + g) / 2), (_ -= P * 2) > Ut ? (P *= y ? 1 : -1, S += P, v -= P) : (_ = 0, S = v = (f + g) / 2);
2438
+ var L = wa(G / u * oe(_)), P = wa(G / p * oe(_));
2439
+ (T -= L * 2) > Ut ? (L *= v ? 1 : -1, E += L, x -= L) : (T = 0, E = x = (f + g) / 2), (k -= P * 2) > Ut ? (P *= v ? 1 : -1, S += P, y -= P) : (k = 0, S = y = (f + g) / 2);
2440
2440
  }
2441
2441
  var $ = p * Ce(S), C = p * oe(S), V = u * Ce(x), q = u * oe(x);
2442
2442
  if (R > Ut) {
2443
- var X = p * Ce(v), F = p * oe(v), Z = u * Ce(E), rt = u * oe(E), j;
2443
+ var X = p * Ce(y), F = p * oe(y), Z = u * Ce(E), rt = u * oe(E), j;
2444
2444
  if (m < Ma)
2445
2445
  if (j = Jh($, C, Z, rt, X, F, V, q)) {
2446
2446
  var Y = $ - j[0], K = C - j[1], ot = X - j[0], ct = F - j[1], st = 1 / oe(bl((Y * ot + K * ct) / (Qe(Y * Y + K * K) * Qe(ot * ot + ct * ct))) / 2), it = Qe(j[0] * j[0] + j[1] * j[1]);
@@ -2448,7 +2448,7 @@ function Rn() {
2448
2448
  } else
2449
2449
  A = H = 0;
2450
2450
  }
2451
- _ > Ut ? H > Ut ? (N = Kn(Z, rt, $, C, p, H, y), M = Kn(X, F, V, q, p, H, y), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !y) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !y), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !y), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !y))) : (o.moveTo($, C), o.arc(0, 0, p, S, v, !y)) : o.moveTo($, C), !(u > Ut) || !(b > Ut) ? o.lineTo(V, q) : A > Ut ? (N = Kn(V, q, X, F, u, -A, y), M = Kn($, C, Z, rt, u, -A, y), o.lineTo(N.cx + N.x01, N.cy + N.y01), A < R ? o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !y) : (o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !y), o.arc(0, 0, u, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), y), o.arc(M.cx, M.cy, A, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !y))) : o.arc(0, 0, u, x, E, y);
2451
+ k > Ut ? H > Ut ? (N = Kn(Z, rt, $, C, p, H, v), M = Kn(X, F, V, q, p, H, v), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !v), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : (o.moveTo($, C), o.arc(0, 0, p, S, y, !v)) : o.moveTo($, C), !(u > Ut) || !(T > Ut) ? o.lineTo(V, q) : A > Ut ? (N = Kn(V, q, X, F, u, -A, v), M = Kn($, C, Z, rt, u, -A, v), o.lineTo(N.cx + N.x01, N.cy + N.y01), A < R ? o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, u, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), v), o.arc(M.cx, M.cy, A, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : o.arc(0, 0, u, x, E, v);
2452
2452
  }
2453
2453
  if (o.closePath(), h) return o = null, h + "" || null;
2454
2454
  }
@@ -2504,17 +2504,17 @@ function Ki(i, t, e) {
2504
2504
  var n = null, s = pt(!0), a = null, r = Bi, o = null, c = ws(l);
2505
2505
  i = typeof i == "function" ? i : i === void 0 ? qi : pt(+i), t = typeof t == "function" ? t : t === void 0 ? pt(0) : pt(+t), e = typeof e == "function" ? e : e === void 0 ? ji : pt(+e);
2506
2506
  function l(d) {
2507
- var u, p, f, g = (d = Ui(d)).length, m, y = !1, S, v = new Array(g), E = new Array(g);
2507
+ var u, p, f, g = (d = Ui(d)).length, m, v = !1, S, y = new Array(g), E = new Array(g);
2508
2508
  for (a == null && (o = r(S = c())), u = 0; u <= g; ++u) {
2509
- if (!(u < g && s(m = d[u], u, d)) === y)
2510
- if (y = !y)
2509
+ if (!(u < g && s(m = d[u], u, d)) === v)
2510
+ if (v = !v)
2511
2511
  p = u, o.areaStart(), o.lineStart();
2512
2512
  else {
2513
2513
  for (o.lineEnd(), o.lineStart(), f = u - 1; f >= p; --f)
2514
- o.point(v[f], E[f]);
2514
+ o.point(y[f], E[f]);
2515
2515
  o.lineEnd(), o.areaEnd();
2516
2516
  }
2517
- y && (v[u] = +i(m, u, d), E[u] = +t(m, u, d), o.point(n ? +n(m, u, d) : v[u], e ? +e(m, u, d) : E[u]));
2517
+ v && (y[u] = +i(m, u, d), E[u] = +t(m, u, d), o.point(n ? +n(m, u, d) : y[u], e ? +e(m, u, d) : E[u]));
2518
2518
  }
2519
2519
  if (S) return o = null, S + "" || null;
2520
2520
  }
@@ -2556,20 +2556,20 @@ function td(i) {
2556
2556
  function ed() {
2557
2557
  var i = td, t = Qh, e = null, n = pt(0), s = pt(ss), a = pt(0);
2558
2558
  function r(o) {
2559
- var c, l = (o = Ui(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(ss, Math.max(-ss, s.apply(this, arguments) - g)), y, S = Math.min(Math.abs(m) / l, a.apply(this, arguments)), v = S * (m < 0 ? -1 : 1), E;
2559
+ var c, l = (o = Ui(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(ss, Math.max(-ss, s.apply(this, arguments) - g)), v, S = Math.min(Math.abs(m) / l, a.apply(this, arguments)), y = S * (m < 0 ? -1 : 1), E;
2560
2560
  for (c = 0; c < l; ++c)
2561
2561
  (E = f[p[c] = c] = +i(o[c], c, o)) > 0 && (u += E);
2562
- for (t != null ? p.sort(function(x, b) {
2563
- return t(f[x], f[b]);
2564
- }) : e != null && p.sort(function(x, b) {
2565
- return e(o[x], o[b]);
2566
- }), c = 0, d = u ? (m - l * v) / u : 0; c < l; ++c, g = y)
2567
- h = p[c], E = f[h], y = g + (E > 0 ? E * d : 0) + v, f[h] = {
2562
+ for (t != null ? p.sort(function(x, T) {
2563
+ return t(f[x], f[T]);
2564
+ }) : e != null && p.sort(function(x, T) {
2565
+ return e(o[x], o[T]);
2566
+ }), c = 0, d = u ? (m - l * y) / u : 0; c < l; ++c, g = v)
2567
+ h = p[c], E = f[h], v = g + (E > 0 ? E * d : 0) + y, f[h] = {
2568
2568
  data: o[h],
2569
2569
  index: c,
2570
2570
  value: E,
2571
2571
  startAngle: g,
2572
- endAngle: y,
2572
+ endAngle: v,
2573
2573
  padAngle: S
2574
2574
  };
2575
2575
  return f;
@@ -2739,7 +2739,10 @@ class dt {
2739
2739
  const a = this.model.get("chartClipId");
2740
2740
  if (a) {
2741
2741
  const o = D(`#${a}`).select("rect");
2742
- o.size() !== 0 && parseFloat(o.attr("height")) > 0 && s.attr("clip-path", `url(#${a})`);
2742
+ if (o.size() !== 0) {
2743
+ const c = parseFloat(o.attr("height")), l = parseFloat(o.attr("width"));
2744
+ !isNaN(c) && !isNaN(l) && c > 0 && l > 0 && s.attr("clip-path", `url(#${a})`);
2745
+ }
2743
2746
  }
2744
2747
  }
2745
2748
  return s.attr("width", "100%").attr("height", "100%");
@@ -2919,22 +2922,22 @@ function Xo() {
2919
2922
  HTMLFormElement: d,
2920
2923
  DOMParser: u,
2921
2924
  trustedTypes: p
2922
- } = i, f = c.prototype, g = gn(f, "cloneNode"), m = gn(f, "remove"), y = gn(f, "nextSibling"), S = gn(f, "childNodes"), v = gn(f, "parentNode");
2925
+ } = i, f = c.prototype, g = gn(f, "cloneNode"), m = gn(f, "remove"), v = gn(f, "nextSibling"), S = gn(f, "childNodes"), y = gn(f, "parentNode");
2923
2926
  if (typeof r == "function") {
2924
2927
  const tt = e.createElement("template");
2925
2928
  tt.content && tt.content.ownerDocument && (e = tt.content.ownerDocument);
2926
2929
  }
2927
2930
  let E, x = "";
2928
2931
  const {
2929
- implementation: b,
2930
- createNodeIterator: _,
2931
- createDocumentFragment: k,
2932
+ implementation: T,
2933
+ createNodeIterator: k,
2934
+ createDocumentFragment: _,
2932
2935
  getElementsByTagName: G
2933
2936
  } = e, {
2934
2937
  importNode: R
2935
2938
  } = n;
2936
2939
  let A = Sr();
2937
- t.isSupported = typeof zo == "function" && typeof v == "function" && b && b.createHTMLDocument !== void 0;
2940
+ t.isSupported = typeof zo == "function" && typeof y == "function" && T && T.createHTMLDocument !== void 0;
2938
2941
  const {
2939
2942
  MUSTACHE_EXPR: H,
2940
2943
  ERB_EXPR: N,
@@ -3002,7 +3005,7 @@ function Xo() {
3002
3005
  Ht && Ht(w), He = w;
3003
3006
  }
3004
3007
  }, oa = ut({}, [...ii, ...ai, ...xd]), la = ut({}, [...ri, ...Sd]), sl = function(w) {
3005
- let W = v(w);
3008
+ let W = y(w);
3006
3009
  (!W || !W.tagName) && (W = {
3007
3010
  namespaceURI: Ge,
3008
3011
  tagName: "template"
@@ -3014,7 +3017,7 @@ function Xo() {
3014
3017
  element: w
3015
3018
  });
3016
3019
  try {
3017
- v(w).removeChild(w);
3020
+ y(w).removeChild(w);
3018
3021
  } catch {
3019
3022
  m(w);
3020
3023
  }
@@ -3057,7 +3060,7 @@ function Xo() {
3057
3060
  } catch {
3058
3061
  }
3059
3062
  if (!W || !W.documentElement) {
3060
- W = b.createDocument(Ge, "template", null);
3063
+ W = T.createDocument(Ge, "template", null);
3061
3064
  try {
3062
3065
  W.documentElement.innerHTML = _s ? x : St;
3063
3066
  } catch {
@@ -3066,7 +3069,7 @@ function Xo() {
3066
3069
  const It = W.body || W.documentElement;
3067
3070
  return w && Q && It.insertBefore(e.createTextNode(Q), It.childNodes[0] || null), Ge === he ? G.call(W, U ? "html" : "body")[0] : U ? W.documentElement : It;
3068
3071
  }, ua = function(w) {
3069
- return _.call(
3072
+ return k.call(
3070
3073
  w.ownerDocument || w,
3071
3074
  w,
3072
3075
  // eslint-disable-next-line no-bitwise
@@ -3097,12 +3100,12 @@ function Xo() {
3097
3100
  if (!Y[Q] && fa(Q) && (j.tagNameCheck instanceof RegExp && $t(j.tagNameCheck, Q) || j.tagNameCheck instanceof Function && j.tagNameCheck(Q)))
3098
3101
  return !1;
3099
3102
  if (Le && !Ve[Q]) {
3100
- const St = v(w) || w.parentNode, It = S(w) || w.childNodes;
3103
+ const St = y(w) || w.parentNode, It = S(w) || w.childNodes;
3101
3104
  if (It && St) {
3102
3105
  const At = It.length;
3103
3106
  for (let zt = At - 1; zt >= 0; --zt) {
3104
3107
  const pe = g(It[zt], !0);
3105
- pe.__removalCount = (w.__removalCount || 0) + 1, St.insertBefore(pe, y(w));
3108
+ pe.__removalCount = (w.__removalCount || 0) + 1, St.insertBefore(pe, v(w));
3106
3109
  }
3107
3110
  }
3108
3111
  }
@@ -3245,7 +3248,7 @@ function Xo() {
3245
3248
  return tt;
3246
3249
  if (et) {
3247
3250
  if (yt)
3248
- for (It = k.call(W.ownerDocument); W.firstChild; )
3251
+ for (It = _.call(W.ownerDocument); W.firstChild; )
3249
3252
  It.appendChild(W.firstChild);
3250
3253
  else
3251
3254
  It = W;
@@ -3299,9 +3302,9 @@ const ts = (i) => Ji.sanitize(i, {
3299
3302
  }
3300
3303
  init() {
3301
3304
  const t = () => this.updateOverflowMenu(!1);
3302
- this.services.events.addEventListener(T.Toolbar.SHOW_OVERFLOW_MENU, () => {
3305
+ this.services.events.addEventListener(b.Toolbar.SHOW_OVERFLOW_MENU, () => {
3303
3306
  this.renderOverflowMenu(), document.body.addEventListener("click", t);
3304
- }), this.services.events.addEventListener(T.Toolbar.HIDE_OVERFLOW_MENU, () => {
3307
+ }), this.services.events.addEventListener(b.Toolbar.HIDE_OVERFLOW_MENU, () => {
3305
3308
  document.body.removeEventListener("click", t);
3306
3309
  });
3307
3310
  }
@@ -3336,7 +3339,7 @@ const ts = (i) => Ji.sanitize(i, {
3336
3339
  </button>`).each(function(l, h) {
3337
3340
  D(this).select("svg").style("pointer-events", "none").style("will-change", "transform").style("width", l.iconSVG.width !== void 0 ? l.iconSVG.width : "20px").style("height", l.iconSVG.height !== void 0 ? l.iconSVG.height : "20px"), D(this).select("button").on("mouseover focus", function(d) {
3338
3341
  const u = D(this);
3339
- u.classed("hovered", !0), c.services.events.dispatchEvent(T.Toolbar.SHOW_TOOLTIP, {
3342
+ u.classed("hovered", !0), c.services.events.dispatchEvent(b.Toolbar.SHOW_TOOLTIP, {
3340
3343
  event: d,
3341
3344
  hoveredElement: u,
3342
3345
  content: l.title,
@@ -3344,7 +3347,7 @@ const ts = (i) => Ji.sanitize(i, {
3344
3347
  placements: ["top", "bottom"]
3345
3348
  });
3346
3349
  }).on("mouseout blur", function() {
3347
- c.services.events.dispatchEvent(T.Toolbar.HIDE_TOOLTIP);
3350
+ c.services.events.dispatchEvent(b.Toolbar.HIDE_TOOLTIP);
3348
3351
  }).on("click", (d) => {
3349
3352
  l.shouldBeDisabled() || c.triggerFunctionAndEvent(l, d, this);
3350
3353
  }).on("keydown", (d) => {
@@ -3368,7 +3371,7 @@ const ts = (i) => Ji.sanitize(i, {
3368
3371
  }
3369
3372
  // show/hide overflow menu
3370
3373
  updateOverflowMenu(t) {
3371
- this.overflowMenu && (this.overflowMenu.classed("is-open", t), this.overflowButton && (this.overflowButton.attr("aria-expanded", t), D(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open", t).classed("cds--overflow-menu--open", t)), t ? this.services.events.dispatchEvent(T.Toolbar.SHOW_OVERFLOW_MENU) : this.services.events.dispatchEvent(T.Toolbar.HIDE_OVERFLOW_MENU));
3374
+ this.overflowMenu && (this.overflowMenu.classed("is-open", t), this.overflowButton && (this.overflowButton.attr("aria-expanded", t), D(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open", t).classed("cds--overflow-menu--open", t)), t ? this.services.events.dispatchEvent(b.Toolbar.SHOW_OVERFLOW_MENU) : this.services.events.dispatchEvent(b.Toolbar.HIDE_OVERFLOW_MENU));
3372
3375
  }
3373
3376
  // Toolbar controllers
3374
3377
  focusOnPreviousEnabledToolbarItem(t) {
@@ -3460,7 +3463,7 @@ const ts = (i) => Ji.sanitize(i, {
3460
3463
  }
3461
3464
  // Calls passed function && dispatches event
3462
3465
  triggerFunctionAndEvent(t, e, n) {
3463
- typeof t.shouldBeDisabled == "function" && t.shouldBeDisabled() || (typeof t.clickFunction == "function" && t.clickFunction(e), this.services.events.dispatchEvent(T.Toolbar.BUTTON_CLICK, {
3466
+ typeof t.shouldBeDisabled == "function" && t.shouldBeDisabled() || (typeof t.clickFunction == "function" && t.clickFunction(e), this.services.events.dispatchEvent(b.Toolbar.BUTTON_CLICK, {
3464
3467
  control: t,
3465
3468
  event: e,
3466
3469
  element: n
@@ -3597,7 +3600,7 @@ const ts = (i) => Ji.sanitize(i, {
3597
3600
  },
3598
3601
  title: p,
3599
3602
  shouldBeDisabled: () => n.length === 0,
3600
- clickFunction: () => this.services.events.dispatchEvent(T.Modal.SHOW)
3603
+ clickFunction: () => this.services.events.dispatchEvent(b.Modal.SHOW)
3601
3604
  };
3602
3605
  break;
3603
3606
  case Tt.EXPORT_CSV:
@@ -3713,11 +3716,11 @@ const bs = class bs extends dt {
3713
3716
  ).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
3714
3717
  c.enter().append("div").merge(n.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
3715
3718
  d.components.forEach((u) => {
3716
- var y;
3719
+ var v;
3717
3720
  const p = D(this), g = O(d, "renderType") === at.SVG;
3718
3721
  u.setParent(
3719
3722
  g ? I.appendOrSelect(p, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : p
3720
- ), g && !p.select("svg.layout-svg-wrapper").attr("aria-label") && p.select("svg.layout-svg-wrapper").attr("aria-label", ((y = e == null ? void 0 : e.accessibility) == null ? void 0 : y.svgAriaLabel) || (e == null ? void 0 : e.title));
3723
+ ), g && !p.select("svg.layout-svg-wrapper").attr("aria-label") && p.select("svg.layout-svg-wrapper").attr("aria-label", ((v = e == null ? void 0 : e.accessibility) == null ? void 0 : v.svgAriaLabel) || (e == null ? void 0 : e.title));
3721
3724
  const m = O(d, "growth");
3722
3725
  (m === be.PREFERRED || m === be.FIXED) && u.render(t);
3723
3726
  });
@@ -3786,10 +3789,10 @@ class lm extends dt {
3786
3789
  }, this.init();
3787
3790
  }
3788
3791
  addEventListeners() {
3789
- this.services.events.addEventListener(T.Modal.SHOW, this.handleShowModal);
3792
+ this.services.events.addEventListener(b.Modal.SHOW, this.handleShowModal);
3790
3793
  }
3791
3794
  removeEventListeners() {
3792
- this.services.events.removeEventListener(T.Modal.SHOW, this.handleShowModal);
3795
+ this.services.events.removeEventListener(b.Modal.SHOW, this.handleShowModal);
3793
3796
  }
3794
3797
  getModalHTML() {
3795
3798
  const t = this.services.domUtils.getChartID(), e = this.model.getOptions(), { title: n, downloadAsCSV: s } = O(e, "locale", "translations", "tabularRep"), a = O(e, "style", "prefix"), r = this.model.getTabularDataArray();
@@ -3864,17 +3867,17 @@ class Rd extends dt {
3864
3867
  if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) => ue(a)), s.node() && s.node().offsetWidth < s.node().scrollWidth) {
3865
3868
  const a = this;
3866
3869
  s.on("mouseover", function(r) {
3867
- a.services.events.dispatchEvent(T.Tooltip.SHOW, {
3870
+ a.services.events.dispatchEvent(b.Tooltip.SHOW, {
3868
3871
  event: r,
3869
3872
  hoveredElement: s,
3870
3873
  content: s.text()
3871
3874
  });
3872
3875
  }).on("mousemove", function(r) {
3873
- a.services.events.dispatchEvent(T.Tooltip.MOVE, {
3876
+ a.services.events.dispatchEvent(b.Tooltip.MOVE, {
3874
3877
  event: r
3875
3878
  });
3876
3879
  }).on("mouseout", function() {
3877
- a.services.events.dispatchEvent(T.Tooltip.HIDE);
3880
+ a.services.events.dispatchEvent(b.Tooltip.HIDE);
3878
3881
  });
3879
3882
  }
3880
3883
  s.exit().remove();
@@ -3897,17 +3900,17 @@ class Rd extends dt {
3897
3900
  t.html(a.substring(0, r - 1)).append("tspan").text("...");
3898
3901
  const o = this;
3899
3902
  t.on("mouseover", function(c) {
3900
- o.services.events.dispatchEvent(T.Tooltip.SHOW, {
3903
+ o.services.events.dispatchEvent(b.Tooltip.SHOW, {
3901
3904
  event: c,
3902
3905
  hoveredElement: t,
3903
3906
  content: n
3904
3907
  });
3905
3908
  }).on("mousemove", function(c) {
3906
- o.services.events.dispatchEvent(T.Tooltip.MOVE, {
3909
+ o.services.events.dispatchEvent(b.Tooltip.MOVE, {
3907
3910
  event: c
3908
3911
  });
3909
3912
  }).on("mouseout", function() {
3910
- o.services.events.dispatchEvent(T.Tooltip.HIDE);
3913
+ o.services.events.dispatchEvent(b.Tooltip.HIDE);
3911
3914
  });
3912
3915
  }
3913
3916
  }
@@ -3939,7 +3942,7 @@ class Dd extends dt {
3939
3942
  render(t = !1) {
3940
3943
  const e = this.getOptions(), n = O(e, "legend"), s = O(n, "alignment"), a = O(e, "legend", "orientation");
3941
3944
  let r = this.model.getDataGroups();
3942
- const { DISABLED: o } = Mt.items.status, c = r.some((S) => S.status === o), l = O(n, "order"), h = this.getComponentContainer().classed("center-aligned", s === te.CENTER).classed("right-aligned", s === te.RIGHT).classed(a, !0).classed("has-deactivated-items", c).attr("role", lt.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
3945
+ const { DISABLED: o } = Mt.items.status, c = r.some((S) => S.status === o), l = O(n, "order"), h = this.getComponentContainer().classed("center-aligned", s === te.CENTER).classed("right-aligned", s === te.RIGHT).classed(a || "horizontal", !0).classed("has-deactivated-items", c).attr("role", lt.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
3943
3946
  l && (r = this.sortDataGroups(r, l));
3944
3947
  const d = h.selectAll("div.legend-item").data(r, (S) => S.name), u = d.enter().append("div").attr("class", "legend-item");
3945
3948
  u.merge(h.selectAll("div.legend-item")).classed("active", function(S) {
@@ -3949,7 +3952,7 @@ class Dd extends dt {
3949
3952
  h.classed("clickable", p && r.length > 1);
3950
3953
  const f = Mt.checkbox.radius, g = u.append("div").classed("checkbox", !0), m = g.merge(d.select("div.checkbox")).attr("role", lt.CHECKBOX).attr("tabindex", p ? 0 : -1).attr(
3951
3954
  "aria-labelledby",
3952
- (S, v) => this.services.domUtils.generateElementIDString(`legend-datagroup-${v}-title`)
3955
+ (S, y) => this.services.domUtils.generateElementIDString(`legend-datagroup-${y}-title`)
3953
3956
  ).attr("aria-checked", ({ status: S }) => S === Mt.items.status.ACTIVE).attr("width", f * 2).attr("height", f * 2).attr(
3954
3957
  "class",
3955
3958
  (S) => this.model.getColorClassName({
@@ -3964,21 +3967,21 @@ class Dd extends dt {
3964
3967
  return S.status === Mt.items.status.ACTIVE;
3965
3968
  });
3966
3969
  g.append("svg").attr("focusable", !1).attr("preserveAspectRatio", "xMidYMid meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", "11").attr("height", "11").attr("viewBox", "0 0 31 28").attr("aria-hidden", !0).style("will-change", "transform").append("path").attr("d", "M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"), u.append("p").merge(d.select("p"));
3967
- const y = O(e, "legend", "additionalItems");
3968
- if (y && r.length) {
3969
- const S = this, v = h.selectAll("div.additional-item").data(y);
3970
- v.exit().remove();
3971
- const E = v.enter().append("div").merge(v).classed("legend-item", !0).classed("additional", !0).attr(
3970
+ const v = O(e, "legend", "additionalItems");
3971
+ if (v && r.length) {
3972
+ const S = this, y = h.selectAll("div.additional-item").data(v);
3973
+ y.exit().remove();
3974
+ const E = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr(
3972
3975
  "aria-labelledby",
3973
- (_, k) => this.services.domUtils.generateElementIDString(
3974
- `legend-datagroup-${m.size() + k}-title`
3976
+ (k, _) => this.services.domUtils.generateElementIDString(
3977
+ `legend-datagroup-${m.size() + _}-title`
3975
3978
  )
3976
3979
  );
3977
3980
  E.selectAll("*").remove();
3978
- let x, b = 1;
3979
- E.append("svg").classed("icon", !0).each(function(_) {
3980
- const k = D(this);
3981
- !x || x != _.type ? (x = _.type, b = 1) : b++, S.addAdditionalItem(k, _, b);
3981
+ let x, T = 1;
3982
+ E.append("svg").classed("icon", !0).each(function(k) {
3983
+ const _ = D(this);
3984
+ !x || x != k.type ? (x = k.type, T = 1) : T++, S.addAdditionalItem(_, k, T);
3982
3985
  }), E.append("p").merge(E.select("p")), this.truncateLegendText();
3983
3986
  }
3984
3987
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
@@ -4034,43 +4037,43 @@ class Dd extends dt {
4034
4037
  addEventListeners() {
4035
4038
  const t = this, e = this.getComponentContainer(), n = this.getOptions(), s = O(n, "legend"), a = O(s, "truncation");
4036
4039
  e.selectAll("div.legend-item").on("mouseover", function(r) {
4037
- t.services.events.dispatchEvent(T.Legend.ITEM_HOVER, {
4040
+ t.services.events.dispatchEvent(b.Legend.ITEM_HOVER, {
4038
4041
  hoveredElement: D(this)
4039
4042
  });
4040
4043
  const o = D(this);
4041
4044
  o.select("div.checkbox").classed("hovered", !0);
4042
4045
  const c = o.datum();
4043
- c.name.length > a.threshold && a.numCharacter < c.name.length && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.SHOW, {
4046
+ c.name.length > a.threshold && a.numCharacter < c.name.length && a.type !== Je.NONE && t.services.events.dispatchEvent(b.Tooltip.SHOW, {
4044
4047
  event: r,
4045
4048
  hoveredElement: o,
4046
4049
  content: c.name
4047
4050
  });
4048
4051
  }).on("mousemove", function(r) {
4049
- D(this).datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.MOVE, {
4052
+ D(this).datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(b.Tooltip.MOVE, {
4050
4053
  event: r
4051
4054
  });
4052
4055
  }).on("click", function() {
4053
- t.services.events.dispatchEvent(T.Legend.ITEM_CLICK, {
4056
+ t.services.events.dispatchEvent(b.Legend.ITEM_CLICK, {
4054
4057
  clickedElement: D(this)
4055
4058
  });
4056
4059
  const o = D(this).datum();
4057
4060
  t.model.toggleDataLabel(o.name);
4058
4061
  }).on("mouseout", function() {
4059
4062
  const r = D(this);
4060
- r.select("div.checkbox").classed("hovered", !1), r.datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.HIDE), t.services.events.dispatchEvent(T.Legend.ITEM_MOUSEOUT, {
4063
+ r.select("div.checkbox").classed("hovered", !1), r.datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(b.Tooltip.HIDE), t.services.events.dispatchEvent(b.Legend.ITEM_MOUSEOUT, {
4061
4064
  hoveredElement: r
4062
4065
  });
4063
4066
  }), e.selectAll("div.legend-item div.checkbox").on("keyup", function(r) {
4064
- r.key && r.key === "Tab" && t.services.events.dispatchEvent(T.Legend.ITEM_HOVER, {
4067
+ r.key && r.key === "Tab" && t.services.events.dispatchEvent(b.Legend.ITEM_HOVER, {
4065
4068
  hoveredElement: D(this)
4066
4069
  });
4067
4070
  }), e.selectAll("div.legend-item div.checkbox").on("keydown", function(r, o) {
4068
- r.key && r.key === " " ? (r.preventDefault(), t.model.toggleDataLabel(o.name)) : r.key && r.key === "Tab" && t.services.events.dispatchEvent(T.Legend.ITEM_MOUSEOUT, {
4071
+ r.key && r.key === " " ? (r.preventDefault(), t.model.toggleDataLabel(o.name)) : r.key && r.key === "Tab" && t.services.events.dispatchEvent(b.Legend.ITEM_MOUSEOUT, {
4069
4072
  hoveredElement: D(this)
4070
4073
  });
4071
4074
  }), e.selectAll("g.additional-item").on("mouseover", function(r) {
4072
4075
  const o = D(this), c = o.datum();
4073
- c.name.length > a.threshold && t.services.events.dispatchEvent(T.Tooltip.SHOW, {
4076
+ c.name.length > a.threshold && t.services.events.dispatchEvent(b.Tooltip.SHOW, {
4074
4077
  event: r,
4075
4078
  hoveredElement: o,
4076
4079
  content: c.name
@@ -4207,10 +4210,10 @@ var Or = (Ye = {}, Ye[Lt.LEFT] = function(i, t, e) {
4207
4210
  var o = n.map(function(c) {
4208
4211
  var l = a(t, e, c), h = r.getPlacementBox(e, l), d = 0, u = 0, p = s();
4209
4212
  h.top < p.top ? d = p.top - h.top : h.bottom > p.height && (d = h.bottom - p.height), h.left < p.left ? u = p.left - h.left : h.right > p.width && (u = h.right - p.width), d && !u ? u = 1 : u && !d && (d = 1);
4210
- var f = e.offsetHeight * e.offsetWidth, g = d * u, m = f - g, y = m / f;
4213
+ var f = e.offsetHeight * e.offsetWidth, g = d * u, m = f - g, v = m / f;
4211
4214
  return {
4212
4215
  placement: c,
4213
- weight: y
4216
+ weight: v
4214
4217
  };
4215
4218
  });
4216
4219
  return o.sort(function(c, l) {
@@ -4268,12 +4271,12 @@ class Pd extends dt {
4268
4271
  }, this.init();
4269
4272
  }
4270
4273
  addTooltipEventListener() {
4271
- this.services.events.addEventListener(T.Tooltip.MOVE, (t) => {
4272
- this.lastTriggeredEventType !== T.Toolbar.SHOW_TOOLTIP && this.tooltip.classed("hidden") === !1 && this.positionTooltip(t);
4273
- }), this.services.events.addEventListener(T.Tooltip.SHOW, this.handleShowTooltip), this.services.events.addEventListener(T.Tooltip.HIDE, this.handleHideTooltip), this.services.events.addEventListener(T.Chart.MOUSEOUT, this.handleHideTooltip), this.services.events.addEventListener(T.Toolbar.SHOW_TOOLTIP, this.handleShowTooltip), this.services.events.addEventListener(T.Toolbar.HIDE_TOOLTIP, this.handleHideTooltip);
4274
+ this.services.events.addEventListener(b.Tooltip.MOVE, (t) => {
4275
+ this.lastTriggeredEventType !== b.Toolbar.SHOW_TOOLTIP && this.tooltip.classed("hidden") === !1 && this.positionTooltip(t);
4276
+ }), this.services.events.addEventListener(b.Tooltip.SHOW, this.handleShowTooltip), this.services.events.addEventListener(b.Tooltip.HIDE, this.handleHideTooltip), this.services.events.addEventListener(b.Chart.MOUSEOUT, this.handleHideTooltip), this.services.events.addEventListener(b.Toolbar.SHOW_TOOLTIP, this.handleShowTooltip), this.services.events.addEventListener(b.Toolbar.HIDE_TOOLTIP, this.handleHideTooltip);
4274
4277
  }
4275
4278
  removeTooltipEventListener() {
4276
- this.services.events.removeEventListener(T.Tooltip.MOVE, null), this.services.events.removeEventListener(T.Tooltip.SHOW, this.handleShowTooltip), this.services.events.removeEventListener(T.Tooltip.HIDE, this.handleHideTooltip), this.services.events.removeEventListener(T.Chart.MOUSEOUT, this.handleHideTooltip), this.services.events.removeEventListener(T.Toolbar.SHOW_TOOLTIP, this.handleShowTooltip), this.services.events.removeEventListener(T.Toolbar.HIDE_TOOLTIP, this.handleHideTooltip);
4279
+ this.services.events.removeEventListener(b.Tooltip.MOVE, null), this.services.events.removeEventListener(b.Tooltip.SHOW, this.handleShowTooltip), this.services.events.removeEventListener(b.Tooltip.HIDE, this.handleHideTooltip), this.services.events.removeEventListener(b.Chart.MOUSEOUT, this.handleHideTooltip), this.services.events.removeEventListener(b.Toolbar.SHOW_TOOLTIP, this.handleShowTooltip), this.services.events.removeEventListener(b.Toolbar.HIDE_TOOLTIP, this.handleHideTooltip);
4277
4280
  }
4278
4281
  getItems(t) {
4279
4282
  return t.detail.items ? t.detail.items : [];
@@ -4344,9 +4347,9 @@ class Pd extends dt {
4344
4347
  let d, { horizontalOffset: u } = xa;
4345
4348
  const { defaultOffset: p } = xa;
4346
4349
  if (this.tooltip.select("div.title-tooltip").classed("title-tooltip-nowrap", c), l) {
4347
- const m = O(t, "detail", "event", "target"), y = this.services.domUtils.getElementOffset(m, !0);
4350
+ const m = O(t, "detail", "event", "target"), v = this.services.domUtils.getElementOffset(m, !0);
4348
4351
  d = this.positionService.findBestPlacementAt(
4349
- y,
4352
+ v,
4350
4353
  a,
4351
4354
  h,
4352
4355
  () => ({
@@ -4369,8 +4372,8 @@ class Pd extends dt {
4369
4372
  if (!f)
4370
4373
  f = sn(O(t, "detail", "event"), e);
4371
4374
  else {
4372
- const m = O(r, "zoomBar", "top", "type"), y = jt.height[m];
4373
- o && (f[1] += y + jt.spacerHeight);
4375
+ const m = O(r, "zoomBar", "top", "type"), v = jt.height[m];
4376
+ o && (f[1] += v + jt.spacerHeight);
4374
4377
  }
4375
4378
  f[0] / n > 0.9 ? d = Lt.LEFT : f[0] / n < 0.1 ? d = Lt.RIGHT : d = this.positionService.findBestPlacementAt(
4376
4379
  {
@@ -4424,37 +4427,37 @@ const en = class en extends dt {
4424
4427
  let f = this.model.get("zoomDomain");
4425
4428
  f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
4426
4429
  const g = (x) => {
4427
- const b = x[1] - x[0];
4428
- let _ = "0," + b.toString();
4429
- const k = Math.floor(c / en.DASH_LENGTH), G = k * en.DASH_LENGTH;
4430
- for (let R = 0; R < k; R++)
4431
- _ += "," + en.DASH_LENGTH;
4432
- _ += "," + (c - G), k % 2 === 1 && (_ += ",0"), _ += "," + b.toString(), _ += "," + c.toString(), p.attr("stroke-dasharray", _);
4430
+ const T = x[1] - x[0];
4431
+ let k = "0," + T.toString();
4432
+ const _ = Math.floor(c / en.DASH_LENGTH), G = _ * en.DASH_LENGTH;
4433
+ for (let R = 0; R < _; R++)
4434
+ k += "," + en.DASH_LENGTH;
4435
+ k += "," + (c - G), _ % 2 === 1 && (k += ",0"), k += "," + T.toString(), k += "," + c.toString(), p.attr("stroke-dasharray", k);
4433
4436
  }, m = (x) => {
4434
- const b = x.selection;
4435
- b === null || b[0] === b[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), g(b));
4436
- }, y = (x, b) => {
4437
- const _ = Ll().range([0, o]).domain(f);
4438
- let k = [_.invert(x), _.invert(b)];
4439
- k[0].valueOf() === k[1].valueOf() && (k = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== k[0].valueOf() || f[1].valueOf() !== k[1].valueOf()) && this.services.zoom.handleDomainChange(k);
4437
+ const T = x.selection;
4438
+ T === null || T[0] === T[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), g(T));
4439
+ }, v = (x, T) => {
4440
+ const k = Ll().range([0, o]).domain(f);
4441
+ let _ = [k.invert(x), k.invert(T)];
4442
+ _[0].valueOf() === _[1].valueOf() && (_ = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== _[0].valueOf() || f[1].valueOf() !== _[1].valueOf()) && this.services.zoom.handleDomainChange(_);
4440
4443
  };
4441
4444
  let S;
4442
- const v = (x) => {
4443
- const b = x.selection;
4444
- b !== null && (y(b[0], b[1]), a.call(S.move, null), p.style("display", "none"));
4445
+ const y = (x) => {
4446
+ const T = x.selection;
4447
+ T !== null && (v(T[0], T[1]), a.call(S.move, null), p.style("display", "none"));
4445
4448
  };
4446
4449
  c != 0 && o != 0 && (S = po().extent([
4447
4450
  [0, 0],
4448
4451
  [o - 1, c]
4449
- ]).on("start brush end", m).on("end.brushed", v), a.call(S));
4452
+ ]).on("start brush end", m).on("end.brushed", y), a.call(S));
4450
4453
  const E = this.services.zoom.getZoomRatio();
4451
4454
  s.on("click", function(x) {
4452
4455
  if (x.shiftKey) {
4453
- const b = this.services.domUtils.getHolder(), _ = sn(a.node(), b)[0];
4454
- let k = _ - o * E / 2;
4455
- k < 0 && (k = 0);
4456
- let G = _ + o * E / 2;
4457
- G > o && (G = o), y(k, G);
4456
+ const T = this.services.domUtils.getHolder(), k = sn(a.node(), T)[0];
4457
+ let _ = k - o * E / 2;
4458
+ _ < 0 && (_ = 0);
4459
+ let G = k + o * E / 2;
4460
+ G > o && (G = o), v(_, G);
4458
4461
  }
4459
4462
  });
4460
4463
  }
@@ -4467,7 +4470,7 @@ class um extends dt {
4467
4470
  super(...arguments), this.type = "zoom-bar", this.renderType = at.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = po(), this.highlightStrokeWidth = 1;
4468
4471
  }
4469
4472
  init() {
4470
- this.services.events.addEventListener(T.ZoomBar.UPDATE, this.render.bind(this));
4473
+ this.services.events.addEventListener(b.ZoomBar.UPDATE, this.render.bind(this));
4471
4474
  const t = O(this.getOptions(), "zoomBar", J.TOP, "data");
4472
4475
  this.model.setZoomBarData(t);
4473
4476
  }
@@ -4502,41 +4505,41 @@ class um extends dt {
4502
4505
  if (Wr(m) || m.length === 1)
4503
4506
  return;
4504
4507
  this.xScale = p.copy(), this.yScale = f.copy();
4505
- const y = this.services.zoom.getDefaultZoomBarDomain(m);
4506
- m = this.compensateDataForDefaultDomain(m, y);
4507
- const S = this.model.get("initialZoomDomain"), v = O(
4508
+ const v = this.services.zoom.getDefaultZoomBarDomain(m);
4509
+ m = this.compensateDataForDefaultDomain(m, v);
4510
+ const S = this.model.get("initialZoomDomain"), y = O(
4508
4511
  this.getOptions(),
4509
4512
  "zoomBar",
4510
4513
  J.TOP,
4511
4514
  "initialZoomDomain"
4512
4515
  );
4513
- v && v[0] && v[1] && (v[0] = new Date(v[0]), v[1] = new Date(v[1])), v && !(S && S[0].valueOf() === v[0].valueOf() && S[1].valueOf() === v[1].valueOf()) ? this.model.set(
4516
+ y && y[0] && y[1] && (y[0] = new Date(y[0]), y[1] = new Date(y[1])), y && !(S && S[0].valueOf() === y[0].valueOf() && S[1].valueOf() === y[1].valueOf()) ? this.model.set(
4514
4517
  {
4515
4518
  // use a new object instead of newInitialZoomDomain
4516
- initialZoomDomain: nn([], v),
4517
- zoomDomain: v ? nn([], v) : y
4519
+ initialZoomDomain: nn([], y),
4520
+ zoomDomain: y ? nn([], y) : v
4518
4521
  },
4519
4522
  { skipUpdate: !0 }
4520
- ) : v === null && S !== null && this.model.set(
4523
+ ) : y === null && S !== null && this.model.set(
4521
4524
  {
4522
4525
  initialZoomDomain: null,
4523
- zoomDomain: nn([], y)
4526
+ zoomDomain: nn([], v)
4524
4527
  },
4525
4528
  { skipUpdate: !0 }
4526
- ), this.xScale.range([l, c]).domain(y), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Os(m, (b) => b.value));
4529
+ ), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Os(m, (T) => T.value));
4527
4530
  const E = this.model.get("zoomDomain");
4528
4531
  if (a === Ue.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, l, c), r)) {
4529
- const b = r.highlightStartMapsTo, _ = r.highlightEndMapsTo, k = r.color, G = r.labelMapsTo;
4532
+ const T = r.highlightStartMapsTo, k = r.highlightEndMapsTo, _ = r.color, G = r.labelMapsTo;
4530
4533
  r.data.forEach((R, A) => {
4531
- I.appendOrSelect(d, `rect.highlight-${A}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[b])).attr(
4534
+ I.appendOrSelect(d, `rect.highlight-${A}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[T])).attr(
4532
4535
  "width",
4533
- this.xScale(R[_]) - this.xScale(R[b])
4536
+ this.xScale(R[k]) - this.xScale(R[T])
4534
4537
  ).style(
4535
4538
  "fill",
4536
- k && k.scale[R[G]] ? k.scale[R[G]] : null
4539
+ _ && _.scale[R[G]] ? _.scale[R[G]] : null
4537
4540
  ).style("fill-opacity", 0.1).style(
4538
4541
  "stroke",
4539
- k && k.scale[R[G]] ? k.scale[R[G]] : null
4542
+ _ && _.scale[R[G]] ? _.scale[R[G]] : null
4540
4543
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
4541
4544
  });
4542
4545
  }
@@ -4545,8 +4548,8 @@ class um extends dt {
4545
4548
  if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
4546
4549
  x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
4547
4550
  else {
4548
- const b = E.map((_) => this.xScale(_));
4549
- b[1] - b[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, b), this.updateBrushHandle(this.getComponentContainer(), b));
4551
+ const T = E.map((k) => this.xScale(k));
4552
+ T[1] - T[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, T), this.updateBrushHandle(this.getComponentContainer(), T));
4550
4553
  }
4551
4554
  s && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
4552
4555
  }
@@ -4569,7 +4572,7 @@ class um extends dt {
4569
4572
  dispatchEvent: !1
4570
4573
  });
4571
4574
  let r;
4572
- t.type === "start" ? r = T.ZoomBar.SELECTION_START : t.type === "brush" ? r = T.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (r = T.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(T.ZoomDomain.CHANGE, {
4575
+ t.type === "start" ? r = b.ZoomBar.SELECTION_START : t.type === "brush" ? r = b.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (r = b.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(b.ZoomDomain.CHANGE, {
4573
4576
  newDomain: a
4574
4577
  })), this.services.events.dispatchEvent(r, {
4575
4578
  selection: s,
@@ -4613,7 +4616,7 @@ class um extends dt {
4613
4616
  I.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", t[0]).attr("y", n / 2 - 1).attr("width", t[1] - t[0]).attr("height", 2);
4614
4617
  }
4615
4618
  renderZoomBarArea(t, e, n, s) {
4616
- const { cartesianScales: a } = this.services, r = a.getMainXAxisPosition(), o = a.getMainYAxisPosition(), c = a.getMainXScaleType(), l = a.getMainYScaleType(), h = (y, S, v) => (E) => a.getValueFromScale(y, S, v, E), d = h(this.xScale, c, r), u = h(this.yScale, l, o), p = O(this.getOptions(), "zoomBar", J.TOP, "type"), f = jt.height[p], g = Ki().x((y) => d(y)).y0(f).y1((y) => f - u(y)), m = I.appendOrSelect(t, e).datum(n).attr("d", g);
4619
+ const { cartesianScales: a } = this.services, r = a.getMainXAxisPosition(), o = a.getMainYAxisPosition(), c = a.getMainXScaleType(), l = a.getMainYScaleType(), h = (v, S, y) => (E) => a.getValueFromScale(v, S, y, E), d = h(this.xScale, c, r), u = h(this.yScale, l, o), p = O(this.getOptions(), "zoomBar", J.TOP, "type"), f = jt.height[p], g = Ki().x((v) => d(v)).y0(f).y1((v) => f - u(v)), m = I.appendOrSelect(t, e).datum(n).attr("d", g);
4617
4620
  s && m.attr("clip-path", `url(#${s})`);
4618
4621
  }
4619
4622
  updateClipPath(t, e, n, s, a, r) {
@@ -4654,7 +4657,7 @@ class um extends dt {
4654
4657
  this.renderZoomBarArea(t, "path.zoom-graph-area-unselected", [], null), this.renderZoomBarArea(t, "path.zoom-graph-area", [], this.clipId), this.brush.on("start brush end", null), I.appendOrSelect(this.getComponentContainer(), this.brushSelector).html(null), O(this.getOptions(), "zoomBar", J.TOP, "type") === Ue.GRAPH_VIEW && this.renderZoomBarBaseline(t, e, n, !0);
4655
4658
  }
4656
4659
  destroy() {
4657
- this.brush.on("start brush end", null), this.services.events.removeEventListener(T.ZoomBar.UPDATE, this.render.bind(this));
4660
+ this.brush.on("start brush end", null), this.services.events.removeEventListener(b.ZoomBar.UPDATE, this.render.bind(this));
4658
4661
  }
4659
4662
  }
4660
4663
  class hm extends dt {
@@ -4694,10 +4697,10 @@ class hm extends dt {
4694
4697
  ), f = d.services.cartesianScales.getScaleTypeByPosition(u);
4695
4698
  let g = null, m = null;
4696
4699
  u === J.LEFT || u === J.RIGHT ? (m = p, g = d.services.cartesianScales.getMainXScale()) : (g = p, m = d.services.cartesianScales.getMainYScale());
4697
- const y = f === kt.LABELS, [S, v] = g.range(), [E, x] = m.range(), { cartesianScales: b } = d.services, _ = b.getOrientation(), k = (N) => b.getDomainValue(N), G = (N) => b.getRangeValue(N), [R, A] = xe(
4698
- k,
4700
+ const v = f === kt.LABELS, [S, y] = g.range(), [E, x] = m.range(), { cartesianScales: T } = d.services, k = T.getOrientation(), _ = (N) => T.getDomainValue(N), G = (N) => T.getRangeValue(N), [R, A] = xe(
4701
+ _,
4699
4702
  G,
4700
- _
4703
+ k
4701
4704
  ), H = D(this);
4702
4705
  u === J.TOP || u === J.BOTTOM ? (H.selectAll("line.threshold-line").transition().call(
4703
4706
  (N) => d.services.transitions.setupTransition({
@@ -4707,26 +4710,26 @@ class hm extends dt {
4707
4710
  })
4708
4711
  ).attr("y1", x).attr("y2", E).attr(
4709
4712
  "x1",
4710
- ({ datum: N }) => R(N) + (y ? p.step() / 2 : 0)
4713
+ ({ datum: N }) => R(N) + (v ? p.step() / 2 : 0)
4711
4714
  ).attr(
4712
4715
  "x2",
4713
- ({ datum: N }) => R(N) + (y ? p.step() / 2 : 0)
4716
+ ({ datum: N }) => R(N) + (v ? p.step() / 2 : 0)
4714
4717
  ).style("stroke", ({ fillColor: N }) => N), H.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: N }) => -R(N)).attr("width", Math.abs(E - x)).classed("rotate", !0)) : (H.selectAll("line.threshold-line").transition().call(
4715
4718
  (N) => d.services.transitions.setupTransition({
4716
4719
  transition: N,
4717
4720
  name: "threshold-line-update",
4718
4721
  animate: t
4719
4722
  })
4720
- ).attr("x1", S).attr("x2", v).attr(
4723
+ ).attr("x1", S).attr("x2", y).attr(
4721
4724
  "y1",
4722
- ({ datum: N }) => A(N) + (y ? p.step() / 2 : 0)
4725
+ ({ datum: N }) => A(N) + (v ? p.step() / 2 : 0)
4723
4726
  ).attr(
4724
4727
  "y2",
4725
- ({ datum: N }) => A(N) + (y ? p.step() / 2 : 0)
4726
- ).style("stroke", ({ fillColor: N }) => N), H.selectAll("rect.threshold-hoverable-area").attr("x", S).attr("y", ({ datum: N }) => A(N)).attr("width", Math.abs(v - S)).classed("rotate", !1));
4727
- }), this.services.events.addEventListener(T.Threshold.SHOW, (u) => {
4728
+ ({ datum: N }) => A(N) + (v ? p.step() / 2 : 0)
4729
+ ).style("stroke", ({ fillColor: N }) => N), H.selectAll("rect.threshold-hoverable-area").attr("x", S).attr("y", ({ datum: N }) => A(N)).attr("width", Math.abs(y - S)).classed("rotate", !1));
4730
+ }), this.services.events.addEventListener(b.Threshold.SHOW, (u) => {
4728
4731
  this.setThresholdLabelPosition(u.detail), this.label.classed("hidden", !1);
4729
- }), this.services.events.addEventListener(T.Threshold.HIDE, () => {
4732
+ }), this.services.events.addEventListener(b.Threshold.HIDE, () => {
4730
4733
  this.label.classed("hidden", !0);
4731
4734
  }), this.appendThresholdLabel(), this.addEventListeners();
4732
4735
  }
@@ -4784,13 +4787,13 @@ class hm extends dt {
4784
4787
  addEventListeners() {
4785
4788
  const t = this;
4786
4789
  this.getComponentContainer({ withinChartClip: !0 }).selectAll("rect.threshold-hoverable-area").on("mouseover mousemove", function(n) {
4787
- D(this.parentNode).select("line.threshold-line").classed("active", !0), t.services.events.dispatchEvent(T.Threshold.SHOW, {
4790
+ D(this.parentNode).select("line.threshold-line").classed("active", !0), t.services.events.dispatchEvent(b.Threshold.SHOW, {
4788
4791
  event: n,
4789
4792
  hoveredElement: D(this),
4790
4793
  datum: D(this).datum()
4791
4794
  });
4792
4795
  }).on("mouseout", function(n) {
4793
- D(this.parentNode).select("line.threshold-line").classed("active", !1), t.services.events.dispatchEvent(T.Threshold.HIDE, {
4796
+ D(this.parentNode).select("line.threshold-line").classed("active", !1), t.services.events.dispatchEvent(b.Threshold.HIDE, {
4794
4797
  event: n,
4795
4798
  hoveredElement: D(this),
4796
4799
  datum: D(this).datum()
@@ -4832,9 +4835,9 @@ class dm extends dt {
4832
4835
  l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
4833
4836
  const d = this;
4834
4837
  o.each(function({ axisPosition: u }) {
4835
- const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [y, S] = f.range(), { cartesianScales: v } = d.services, E = v.getOrientation(), x = (R) => v.getDomainValue(R), b = (R) => v.getRangeValue(R), [_, k] = xe(
4838
+ const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R), T = (R) => y.getRangeValue(R), [k, _] = xe(
4836
4839
  x,
4837
- b,
4840
+ T,
4838
4841
  E
4839
4842
  ), G = D(this);
4840
4843
  u === J.TOP || u === J.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
@@ -4843,18 +4846,18 @@ class dm extends dt {
4843
4846
  name: "highlight-bar-update",
4844
4847
  animate: t
4845
4848
  })
4846
- ).attr("y", Math.max(S + d.highlightStrokeWidth, 0)).attr("height", Math.max(y - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: R, ...A }) => _(A[R])).attr(
4849
+ ).attr("y", Math.max(S + d.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: R, ...A }) => k(A[R])).attr(
4847
4850
  "width",
4848
- ({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(_(H[A]) - _(H[R]), 0)
4851
+ ({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(k(H[A]) - k(H[R]), 0)
4849
4852
  ).style("stroke", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null) : G.selectAll("rect.highlight-bar").transition().call(
4850
4853
  (R) => d.services.transitions.setupTransition({
4851
4854
  transition: R,
4852
4855
  name: "highlight-bar-update",
4853
4856
  animate: t
4854
4857
  })
4855
- ).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: R, ...A }) => k(A[R])).attr(
4858
+ ).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: R, ...A }) => _(A[R])).attr(
4856
4859
  "height",
4857
- ({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(k(H[R]) - k(H[A]), 0)
4860
+ ({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(_(H[R]) - _(H[A]), 0)
4858
4861
  ).style("stroke", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null);
4859
4862
  });
4860
4863
  }
@@ -5035,7 +5038,7 @@ function Ud() {
5035
5038
  let i = 0, t = 0, e = 1, n = 1, s = 24, a = 8, r, o = Hd, c = Yo, l, h, d = Bd, u = zd, p = 6;
5036
5039
  function f() {
5037
5040
  const L = { nodes: d.apply(null, arguments), links: u.apply(null, arguments) };
5038
- return g(L), m(L), y(L), S(L), x(L), _r(L), L;
5041
+ return g(L), m(L), v(L), S(L), x(L), _r(L), L;
5039
5042
  }
5040
5043
  f.update = function(L) {
5041
5044
  return _r(L), L;
@@ -5079,7 +5082,7 @@ function Ud() {
5079
5082
  for (const P of L)
5080
5083
  P.value = P.fixedValue === void 0 ? Math.max(li(P.sourceLinks, ci), li(P.targetLinks, ci)) : P.fixedValue;
5081
5084
  }
5082
- function y({ nodes: L }) {
5085
+ function v({ nodes: L }) {
5083
5086
  const P = L.length;
5084
5087
  let $ = new Set(L), C = /* @__PURE__ */ new Set(), V = 0;
5085
5088
  for (; $.size; ) {
@@ -5105,7 +5108,7 @@ function Ud() {
5105
5108
  $ = C, C = /* @__PURE__ */ new Set();
5106
5109
  }
5107
5110
  }
5108
- function v({ nodes: L }) {
5111
+ function y({ nodes: L }) {
5109
5112
  const P = Mr(L, (V) => V.depth) + 1, $ = (e - i - s) / (P - 1), C = new Array(P);
5110
5113
  for (const V of L) {
5111
5114
  const q = Math.max(0, Math.min(P - 1, Math.floor(c.call(null, V, P))));
@@ -5133,14 +5136,14 @@ function Ud() {
5133
5136
  }
5134
5137
  }
5135
5138
  function x(L) {
5136
- const P = v(L);
5139
+ const P = y(L);
5137
5140
  r = Math.min(a, (n - t) / (Mr(P, ($) => $.length) - 1)), E(P);
5138
5141
  for (let $ = 0; $ < p; ++$) {
5139
5142
  const C = Math.pow(0.99, $), V = Math.max(1 - C, ($ + 1) / p);
5140
- _(P, C, V), b(P, C, V);
5143
+ k(P, C, V), T(P, C, V);
5141
5144
  }
5142
5145
  }
5143
- function b(L, P, $) {
5146
+ function T(L, P, $) {
5144
5147
  for (let C = 1, V = L.length; C < V; ++C) {
5145
5148
  const q = L[C];
5146
5149
  for (const X of q) {
@@ -5153,10 +5156,10 @@ function Ud() {
5153
5156
  let rt = (F / Z - X.y0) * P;
5154
5157
  X.y0 += rt, X.y1 += rt, A(X);
5155
5158
  }
5156
- l === void 0 && q.sort(Ss), k(q, $);
5159
+ l === void 0 && q.sort(Ss), _(q, $);
5157
5160
  }
5158
5161
  }
5159
- function _(L, P, $) {
5162
+ function k(L, P, $) {
5160
5163
  for (let C = L.length, V = C - 2; V >= 0; --V) {
5161
5164
  const q = L[V];
5162
5165
  for (const X of q) {
@@ -5169,10 +5172,10 @@ function Ud() {
5169
5172
  let rt = (F / Z - X.y0) * P;
5170
5173
  X.y0 += rt, X.y1 += rt, A(X);
5171
5174
  }
5172
- l === void 0 && q.sort(Ss), k(q, $);
5175
+ l === void 0 && q.sort(Ss), _(q, $);
5173
5176
  }
5174
5177
  }
5175
- function k(L, P) {
5178
+ function _(L, P) {
5176
5179
  const $ = L.length >> 1, C = L[$];
5177
5180
  R(L, C.y0 - r, $ - 1, P), G(L, C.y1 + r, $ + 1, P), R(L, n, L.length - 1, P), G(L, t, 0, P);
5178
5181
  }
@@ -5261,8 +5264,8 @@ Hi.prototype = Zo.prototype = {
5261
5264
  else if (d > _e) if (!(Math.abs(h * o - c * l) > _e) || !s)
5262
5265
  this._ += "L" + (this._x1 = i) + "," + (this._y1 = t);
5263
5266
  else {
5264
- var u = e - a, p = n - r, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), y = Math.sqrt(d), S = s * Math.tan((Vi - Math.acos((f + d - g) / (2 * m * y))) / 2), v = S / y, E = S / m;
5265
- Math.abs(v - 1) > _e && (this._ += "L" + (i + v * l) + "," + (t + v * h)), this._ += "A" + s + "," + s + ",0,0," + +(h * u > l * p) + "," + (this._x1 = i + E * o) + "," + (this._y1 = t + E * c);
5267
+ var u = e - a, p = n - r, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), v = Math.sqrt(d), S = s * Math.tan((Vi - Math.acos((f + d - g) / (2 * m * v))) / 2), y = S / v, E = S / m;
5268
+ Math.abs(y - 1) > _e && (this._ += "L" + (i + y * l) + "," + (t + y * h)), this._ += "A" + s + "," + s + ",0,0," + +(h * u > l * p) + "," + (this._x1 = i + E * o) + "," + (this._y1 = t + E * c);
5266
5269
  }
5267
5270
  },
5268
5271
  arc: function(i, t, e, n, s, a) {
@@ -5355,85 +5358,85 @@ class fm extends dt {
5355
5358
  const l = O(a, "alluvial", "nodeAlignment");
5356
5359
  let h = Yo;
5357
5360
  l === te.LEFT ? h = Vd : l === te.RIGHT && (h = Gd);
5358
- const d = Ud().nodeId((v) => v.name).nodeWidth(se.nodeWidth).nodePadding(c).nodeAlign(h).extent([
5361
+ const d = Ud().nodeId((y) => y.name).nodeWidth(se.nodeWidth).nodePadding(c).nodeAlign(h).extent([
5359
5362
  [2, 30],
5360
5363
  [n - 2, s]
5361
5364
  ]);
5362
5365
  this.graph = d({
5363
- nodes: a.alluvial.nodes.map((v) => Object.assign({}, v)),
5364
- links: r.map((v) => Object.assign({}, v))
5365
- }), this.graph.nodes = this.graph.nodes.filter((v) => v.value !== 0);
5366
+ nodes: a.alluvial.nodes.map((y) => Object.assign({}, y)),
5367
+ links: r.map((y) => Object.assign({}, y))
5368
+ }), this.graph.nodes = this.graph.nodes.filter((y) => y.value !== 0);
5366
5369
  const u = {};
5367
- this.graph.nodes.forEach((v) => {
5368
- const E = v.x0;
5369
- v.category && (u[E] = v == null ? void 0 : v.category);
5370
- }), e.append("g").classed("header-arrows", !0).selectAll("g").data(Object.keys(u)).join("g").attr("transform", (v) => `translate(${v}, 0)`).append("text").attr(
5370
+ this.graph.nodes.forEach((y) => {
5371
+ const E = y.x0;
5372
+ y.category && (u[E] = y == null ? void 0 : y.category);
5373
+ }), e.append("g").classed("header-arrows", !0).selectAll("g").data(Object.keys(u)).join("g").attr("transform", (y) => `translate(${y}, 0)`).append("text").attr(
5371
5374
  "id",
5372
- (v, E) => this.services.domUtils.generateElementIDString(`alluvial-category-${E}`)
5373
- ).style("font-size", "14px").text((v) => u[v] ? u[v] : "").attr("y", 20).attr("x", (v, E) => {
5375
+ (y, E) => this.services.domUtils.generateElementIDString(`alluvial-category-${E}`)
5376
+ ).style("font-size", "14px").text((y) => u[y] ? u[y] : "").attr("y", 20).attr("x", (y, E) => {
5374
5377
  const x = this.services.domUtils.generateElementIDString(
5375
5378
  `alluvial-category-${E}`
5376
- ), { width: b } = I.getSVGElementSize(D(`text#${x}`), {
5379
+ ), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
5377
5380
  useBBox: !0
5378
5381
  });
5379
- let _ = 0;
5380
- return v + _ >= b && (_ = -b + 4), _;
5382
+ let k = 0;
5383
+ return y + k >= T && (k = -T + 4), k;
5381
5384
  });
5382
5385
  const f = e.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
5383
5386
  if (f.exit().remove(), o) {
5384
- const v = O(this.getOptions(), "color", "scale");
5385
- v && f.enter().append("linearGradient").attr("id", (E) => `${this.gradient_id}-link-${E.index}`).attr("gradientUnits", "userSpaceOnUse").call(
5386
- (E) => E.append("stop").attr("offset", "0%").attr("stop-color", (x) => v[x.source.name])
5387
+ const y = O(this.getOptions(), "color", "scale");
5388
+ y && f.enter().append("linearGradient").attr("id", (E) => `${this.gradient_id}-link-${E.index}`).attr("gradientUnits", "userSpaceOnUse").call(
5389
+ (E) => E.append("stop").attr("offset", "0%").attr("stop-color", (x) => y[x.source.name])
5387
5390
  ).call(
5388
- (E) => E.append("stop").attr("offset", "100%").attr("stop-color", (x) => v[x.target.name])
5391
+ (E) => E.append("stop").attr("offset", "100%").attr("stop-color", (x) => y[x.target.name])
5389
5392
  ), f.exit().remove();
5390
5393
  }
5391
5394
  f.enter().append("path").classed("link", !0).attr("d", ep()).attr(
5392
5395
  "id",
5393
- (v) => this.services.domUtils.generateElementIDString(`alluvial-line-${v.index}`)
5394
- ).attr("class", (v) => a.alluvial.monochrome ? this.model.getColorClassName({
5396
+ (y) => this.services.domUtils.generateElementIDString(`alluvial-line-${y.index}`)
5397
+ ).attr("class", (y) => a.alluvial.monochrome ? this.model.getColorClassName({
5395
5398
  classNameTypes: [nt.STROKE],
5396
5399
  dataGroupName: 0,
5397
5400
  originalClassName: "link"
5398
5401
  }) : this.model.getColorClassName({
5399
5402
  classNameTypes: [nt.STROKE],
5400
- dataGroupName: v.source.index,
5403
+ dataGroupName: y.source.index,
5401
5404
  originalClassName: "link"
5402
- })).style("stroke", (v) => o ? `url(#${this.gradient_id}-link-${v.index})` : this.model.getFillColor(v.source.name, null, {
5403
- ...v,
5404
- source: v.source.name,
5405
- target: v.target.name
5406
- })).attr("stroke-width", (v) => Math.max(1, v.width)).style("stroke-opacity", se.opacity.default).attr(
5405
+ })).style("stroke", (y) => o ? `url(#${this.gradient_id}-link-${y.index})` : this.model.getFillColor(y.source.name, null, {
5406
+ ...y,
5407
+ source: y.source.name,
5408
+ target: y.target.name
5409
+ })).attr("stroke-width", (y) => Math.max(1, y.width)).style("stroke-opacity", se.opacity.default).attr(
5407
5410
  "aria-label",
5408
- (v) => `${v.source.name} → ${v.target.name} (${v.value}${a.alluvial.units ? " " + a.alluvial.units : ""})`
5411
+ (y) => `${y.source.name} → ${y.target.name} (${y.value}${a.alluvial.units ? " " + a.alluvial.units : ""})`
5409
5412
  );
5410
5413
  const g = e.append("g").selectAll("g").data(this.graph.nodes).enter().append("g").attr(
5411
5414
  "id",
5412
- (v) => this.services.domUtils.generateElementIDString(`alluvial-node-${v.index}`)
5413
- ).classed("node-group", !0).attr("transform", (v) => `translate(${v.x0}, ${v.y0})`);
5414
- g.append("rect").classed("node", !0).attr("height", (v) => v.y1 - v.y0).attr("width", (v) => v.x1 - v.x0).attr("fill", "black");
5415
+ (y) => this.services.domUtils.generateElementIDString(`alluvial-node-${y.index}`)
5416
+ ).classed("node-group", !0).attr("transform", (y) => `translate(${y.x0}, ${y.y0})`);
5417
+ g.append("rect").classed("node", !0).attr("height", (y) => y.y1 - y.y0).attr("width", (y) => y.x1 - y.x0).attr("fill", "black");
5415
5418
  const m = g.append("g").attr(
5416
5419
  "id",
5417
- (v) => this.services.domUtils.generateElementIDString(`alluvial-node-title-${v.index}`)
5418
- ), { code: y, number: S } = O(a, "locale");
5420
+ (y) => this.services.domUtils.generateElementIDString(`alluvial-node-title-${y.index}`)
5421
+ ), { code: v, number: S } = O(a, "locale");
5419
5422
  m.append("text").attr(
5420
5423
  "id",
5421
- (v) => this.services.domUtils.generateElementIDString(`alluvial-node-text-${v.index}`)
5422
- ).attr("class", "node-text").style("font-size", "12px").attr("text-anchor", "start").attr("fill", "white").attr("x", 4).attr("dy", 13).text((v) => `${v.name} (${S(v.value, y)})`).attr("aria-label", (v) => `${v.name} (${v.value})`), m.append("rect").classed("node-text-bg", !0).attr("width", (v, E) => {
5424
+ (y) => this.services.domUtils.generateElementIDString(`alluvial-node-text-${y.index}`)
5425
+ ).attr("class", "node-text").style("font-size", "12px").attr("text-anchor", "start").attr("fill", "white").attr("x", 4).attr("dy", 13).text((y) => `${y.name} (${S(y.value, v)})`).attr("aria-label", (y) => `${y.name} (${y.value})`), m.append("rect").classed("node-text-bg", !0).attr("width", (y, E) => {
5423
5426
  const x = this.services.domUtils.generateElementIDString(
5424
5427
  `alluvial-node-text-${E}`
5425
- ), { width: b } = I.getSVGElementSize(D(`text#${x}`), {
5428
+ ), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
5426
5429
  useBBox: !0
5427
5430
  });
5428
- return b + 8;
5429
- }).attr("height", 18).attr("stroke-width", 2).lower(), m.attr("transform", (v, E) => {
5431
+ return T + 8;
5432
+ }).attr("height", 18).attr("stroke-width", 2).lower(), m.attr("transform", (y, E) => {
5430
5433
  const x = this.services.domUtils.generateElementIDString(
5431
5434
  `alluvial-node-text-${E}`
5432
- ), { width: b } = I.getSVGElementSize(D(`text#${x}`), {
5435
+ ), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
5433
5436
  useBBox: !0
5434
- }), _ = (v.y1 - v.y0) / 2 - 9;
5435
- let k = v.x1 - v.x0;
5436
- return v.x1 >= b ? k = k - (b + 16) : k += 4, `translate(${k}, ${_})`;
5437
+ }), k = (y.y1 - y.y0) / 2 - 9;
5438
+ let _ = y.x1 - y.x0;
5439
+ return y.x1 >= T ? _ = _ - (T + 16) : _ += 4, `translate(${_}, ${k})`;
5437
5440
  }), this.addLineEventListener(), this.addNodeEventListener();
5438
5441
  }
5439
5442
  addLineEventListener() {
@@ -5452,11 +5455,11 @@ class fm extends dt {
5452
5455
  const c = D(this);
5453
5456
  a(this, "mouseover"), c.classed("link-hovered", !0);
5454
5457
  const l = getComputedStyle(this).getPropertyValue("stroke");
5455
- e.services.events.dispatchEvent(T.Alluvial.LINE_MOUSEOVER, {
5458
+ e.services.events.dispatchEvent(b.Alluvial.LINE_MOUSEOVER, {
5456
5459
  event: r,
5457
5460
  element: c,
5458
5461
  datum: o
5459
- }), e.services.events.dispatchEvent(T.Tooltip.SHOW, {
5462
+ }), e.services.events.dispatchEvent(b.Tooltip.SHOW, {
5460
5463
  event: r,
5461
5464
  hoveredElement: c,
5462
5465
  items: [
@@ -5469,26 +5472,26 @@ class fm extends dt {
5469
5472
  ]
5470
5473
  });
5471
5474
  }).on("mousemove", function(r, o) {
5472
- e.services.events.dispatchEvent(T.Alluvial.LINE_MOUSEMOVE, {
5475
+ e.services.events.dispatchEvent(b.Alluvial.LINE_MOUSEMOVE, {
5473
5476
  event: r,
5474
5477
  element: D(this),
5475
5478
  datum: o
5476
- }), e.services.events.dispatchEvent(T.Tooltip.MOVE, {
5479
+ }), e.services.events.dispatchEvent(b.Tooltip.MOVE, {
5477
5480
  event: r
5478
5481
  });
5479
5482
  }).on("click", function(r, o) {
5480
- e.services.events.dispatchEvent(T.Alluvial.LINE_CLICK, {
5483
+ e.services.events.dispatchEvent(b.Alluvial.LINE_CLICK, {
5481
5484
  event: r,
5482
5485
  element: D(this),
5483
5486
  datum: o
5484
5487
  });
5485
5488
  }).on("mouseout", function(r, o) {
5486
5489
  const c = D(this);
5487
- a(this, "mouseout"), c.classed("link-hovered", !1), e.services.events.dispatchEvent(T.Alluvial.LINE_MOUSEOUT, {
5490
+ a(this, "mouseout"), c.classed("link-hovered", !1), e.services.events.dispatchEvent(b.Alluvial.LINE_MOUSEOUT, {
5488
5491
  event: r,
5489
5492
  element: c,
5490
5493
  datum: o
5491
- }), e.services.events.dispatchEvent(T.Tooltip.HIDE, {
5494
+ }), e.services.events.dispatchEvent(b.Tooltip.HIDE, {
5492
5495
  event: r,
5493
5496
  hoveredElement: c
5494
5497
  });
@@ -5522,22 +5525,22 @@ class fm extends dt {
5522
5525
  const c = t.services.domUtils.generateElementIDString(
5523
5526
  `alluvial-node-text-${s.index}`
5524
5527
  );
5525
- t.parent.select(`text#${c}`).style("font-weight", "bold"), e(r, "mouseover"), t.services.events.dispatchEvent(T.Alluvial.NODE_MOUSEOVER, {
5528
+ t.parent.select(`text#${c}`).style("font-weight", "bold"), e(r, "mouseover"), t.services.events.dispatchEvent(b.Alluvial.NODE_MOUSEOVER, {
5526
5529
  event: n,
5527
5530
  element: a,
5528
5531
  datum: s
5529
5532
  });
5530
5533
  }
5531
5534
  }).on("mousemove", function(n, s) {
5532
- t.services.events.dispatchEvent(T.Alluvial.NODE_MOUSEMOVE, {
5535
+ t.services.events.dispatchEvent(b.Alluvial.NODE_MOUSEMOVE, {
5533
5536
  event: n,
5534
5537
  element: D(this),
5535
5538
  datum: s
5536
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
5539
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
5537
5540
  event: n
5538
5541
  });
5539
5542
  }).on("click", function(n, s) {
5540
- t.services.events.dispatchEvent(T.Alluvial.NODE_CLICK, {
5543
+ t.services.events.dispatchEvent(b.Alluvial.NODE_CLICK, {
5541
5544
  event: n,
5542
5545
  element: D(this),
5543
5546
  datum: s
@@ -5553,11 +5556,11 @@ class fm extends dt {
5553
5556
  const o = t.services.domUtils.generateElementIDString(
5554
5557
  `alluvial-node-text-${s.index}`
5555
5558
  );
5556
- t.parent.select(`text#${o}`).style("font-weight", "normal"), e([], "mouseout"), t.services.events.dispatchEvent(T.Alluvial.NODE_MOUSEOUT, {
5559
+ t.parent.select(`text#${o}`).style("font-weight", "normal"), e([], "mouseout"), t.services.events.dispatchEvent(b.Alluvial.NODE_MOUSEOUT, {
5557
5560
  event: n,
5558
5561
  element: a,
5559
5562
  datum: s
5560
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
5563
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
5561
5564
  hoveredElement: a
5562
5565
  });
5563
5566
  });
@@ -5698,27 +5701,27 @@ class mm extends dt {
5698
5701
  }
5699
5702
  init() {
5700
5703
  const t = this.services.events;
5701
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5704
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5702
5705
  }
5703
5706
  render(t = !0) {
5704
5707
  const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
5705
5708
  let s = [0, 0];
5706
5709
  const { cartesianScales: a } = this.services, r = a.getOrientation(), o = Ki().curve(this.services.curves.getD3Curve()).defined((x) => {
5707
- const b = a.getRangeIdentifier(), _ = x[b];
5708
- return _ != null;
5710
+ const T = a.getRangeIdentifier(), k = x[T];
5711
+ return k != null;
5709
5712
  }), c = this.model.getGroupedData(this.configs.groups), l = O(n, "bounds"), h = l && c && c.length === 1;
5710
5713
  !h && l && console.warn(
5711
5714
  `Bounds can only be shown when having 1 single datagroup, you've supplied ${c.length}`
5712
5715
  );
5713
5716
  let d = 0;
5714
- const u = (x, b) => {
5715
- O(n, "axes", x, "includeZero") === !1 && b[0] > 0 && b[1] > 0 && (d = b[0]);
5717
+ const u = (x, T) => {
5718
+ O(n, "axes", x, "includeZero") === !1 && T[0] > 0 && T[1] > 0 && (d = T[0]);
5716
5719
  }, p = (x) => h ? a.getBoundedScaledValues(x)[0] : a.getRangeValue(d), f = (x) => h ? a.getBoundedScaledValues(x)[1] : a.getRangeValue(x);
5717
5720
  r === Xt.VERTICAL ? (s = a.getMainYScale().domain(), u(a.getMainYAxisPosition(), s), o.x((x) => a.getDomainValue(x)).y0((x) => p(x)).y1((x) => f(x))) : (s = a.getMainXScale().domain(), u(a.getMainXAxisPosition(), s), o.x0((x) => p(x)).x1((x) => f(x)).y((x) => a.getDomainValue(x)));
5718
5721
  const g = O(n, "color", "gradient", "enabled"), m = c && c.length === 1 && g;
5719
5722
  c.length > 1 && g && console.error("Gradients can only be enabled when having 1 single dataset");
5720
- const y = e.selectAll("path.area").data(c, (x) => x.name), S = D(this.services.domUtils.getMainContainer());
5721
- if (y.exit().attr("opacity", 0).remove(), !c.length)
5723
+ const v = e.selectAll("path.area").data(c, (x) => x.name), S = D(this.services.domUtils.getMainContainer());
5724
+ if (v.exit().attr("opacity", 0).remove(), !c.length)
5722
5725
  return;
5723
5726
  if (m) {
5724
5727
  const x = S.select(
@@ -5727,16 +5730,16 @@ class mm extends dt {
5727
5730
  dataGroupName: c[0].name
5728
5731
  })}`
5729
5732
  ).node();
5730
- let b;
5733
+ let T;
5731
5734
  if (x)
5732
- b = getComputedStyle(x, null).getPropertyValue(
5735
+ T = getComputedStyle(x, null).getPropertyValue(
5733
5736
  "stroke"
5734
5737
  );
5735
5738
  else {
5736
- const _ = O(this.model.getOptions(), "color", "scale");
5737
- if (_ !== null) {
5738
- const k = Object.keys(_);
5739
- b = _[k[0]];
5739
+ const k = O(this.model.getOptions(), "color", "scale");
5740
+ if (k !== null) {
5741
+ const _ = Object.keys(k);
5742
+ T = k[_[0]];
5740
5743
  }
5741
5744
  }
5742
5745
  Ca.appendOrUpdateLinearGradient({
@@ -5748,14 +5751,14 @@ class mm extends dt {
5748
5751
  x2: "0%",
5749
5752
  y1: "0%",
5750
5753
  y2: "100%",
5751
- stops: Ca.getStops(s, b)
5754
+ stops: Ca.getStops(s, T)
5752
5755
  });
5753
5756
  } else
5754
5757
  this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
5755
5758
  this.parentNode.remove();
5756
5759
  });
5757
- const v = this, E = y.enter().append("path");
5758
- m ? E.merge(y).style(
5760
+ const y = this, E = v.enter().append("path");
5761
+ m ? E.merge(v).style(
5759
5762
  "fill",
5760
5763
  (x) => `url(#${this.services.domUtils.generateElementIDString(
5761
5764
  `${x.name.replace(" ", "")}_${this.gradient_id}`
@@ -5768,29 +5771,29 @@ class mm extends dt {
5768
5771
  originalClassName: "area"
5769
5772
  })
5770
5773
  ).attr("d", (x) => {
5771
- const { data: b } = x;
5772
- return o(b);
5773
- }) : (E.attr("opacity", 0).merge(y).attr("class", "area").attr(
5774
+ const { data: T } = x;
5775
+ return o(T);
5776
+ }) : (E.attr("opacity", 0).merge(v).attr("class", "area").attr(
5774
5777
  "class",
5775
5778
  (x) => this.model.getColorClassName({
5776
5779
  classNameTypes: [nt.FILL, nt.STROKE],
5777
5780
  dataGroupName: x.name,
5778
5781
  originalClassName: "area"
5779
5782
  })
5780
- ).style("fill", (x) => v.model.getFillColor(x.name, null, x.data)).transition().call(
5783
+ ).style("fill", (x) => y.model.getFillColor(x.name, null, x.data)).transition().call(
5781
5784
  (x) => this.services.transitions.setupTransition({
5782
5785
  transition: x,
5783
5786
  name: "area-update-enter",
5784
5787
  animate: t
5785
5788
  })
5786
5789
  ).attr("opacity", h ? 1 : ye.opacity.selected).attr("d", (x) => {
5787
- const { data: b } = x;
5788
- return o(b);
5789
- }), h && E.attr("fill-opacity", ye.opacity.selected).style("stroke", (x) => v.model.getStrokeColor(x.name, null, x.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
5790
+ const { data: T } = x;
5791
+ return o(T);
5792
+ }), h && E.attr("fill-opacity", ye.opacity.selected).style("stroke", (x) => y.model.getStrokeColor(x.name, null, x.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
5790
5793
  }
5791
5794
  destroy() {
5792
5795
  const t = this.services.events;
5793
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5796
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5794
5797
  }
5795
5798
  }
5796
5799
  class vm extends dt {
@@ -5814,65 +5817,74 @@ class vm extends dt {
5814
5817
  }
5815
5818
  init() {
5816
5819
  const { events: t } = this.services;
5817
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5820
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5818
5821
  }
5819
5822
  render(t = !0) {
5820
- const e = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), { cartesianScales: n, curves: s } = this.services, a = (f) => n.getDomainValue(f), r = (f) => n.getRangeValue(f), [o, c] = xe(
5821
- a,
5822
- r,
5823
- n.getOrientation()
5824
- ), l = this.getOptions(), h = Nn().x(o).y(c).curve(s.getD3Curve()).defined((f) => {
5825
- const g = n.getRangeIdentifier(f), m = f[g];
5826
- return m != null;
5823
+ const e = navigator.userAgent.toLowerCase().indexOf("firefox") > -1, n = this.model.get("zoomDomain") !== void 0, s = e && n ? this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !1 }) : this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), { cartesianScales: a, curves: r } = this.services, o = (v) => a.getDomainValue(v), c = (v) => a.getRangeValue(v), [l, h] = xe(
5824
+ o,
5825
+ c,
5826
+ a.getOrientation()
5827
+ ), d = this.getOptions(), u = Nn().x(l).y(h).curve(r.getD3Curve()).defined((v) => {
5828
+ const S = a.getRangeIdentifier(v), y = v[S];
5829
+ return y != null;
5827
5830
  });
5828
- let d = [];
5831
+ let p = [];
5829
5832
  if (this.configs.stacked) {
5830
- const f = Object.keys(l.axes).some((y) => l.axes[y].percentage), { groupMapsTo: g } = l.data;
5831
- d = this.model.getStackedData({
5833
+ const v = Object.keys(d.axes).some((E) => d.axes[E].percentage), { groupMapsTo: S } = d.data;
5834
+ p = this.model.getStackedData({
5832
5835
  groups: this.configs.groups,
5833
- percentage: f
5834
- }).map((y) => {
5835
- const S = this.services.cartesianScales.getDomainIdentifier(y), v = this.services.cartesianScales.getRangeIdentifier(y);
5836
+ percentage: v
5837
+ }).map((E) => {
5838
+ const x = this.services.cartesianScales.getDomainIdentifier(E), T = this.services.cartesianScales.getRangeIdentifier(E);
5836
5839
  return {
5837
- name: O(y, 0, g),
5838
- data: y.map((E) => ({
5839
- [S]: E.data.sharedStackKey,
5840
- [g]: E[g],
5841
- [v]: E[1]
5840
+ name: O(E, 0, S),
5841
+ data: E.map((k) => ({
5842
+ [x]: k.data.sharedStackKey,
5843
+ [S]: k[S],
5844
+ [T]: k[1]
5842
5845
  })),
5843
- hidden: !wc(y, (E) => E[0] !== E[1])
5846
+ hidden: !wc(E, (k) => k[0] !== k[1])
5844
5847
  };
5845
5848
  });
5846
5849
  } else
5847
- d = this.model.getGroupedData(this.configs.groups);
5848
- const u = e.selectAll("path.line").data(d, (f) => f.name);
5849
- u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("line", !0).attr("opacity", 0).merge(u).data(d, (f) => f.name).attr(
5850
+ p = this.model.getGroupedData(this.configs.groups);
5851
+ const f = s.selectAll("path.line").data(p, (v) => v.name);
5852
+ f.exit().attr("opacity", 0).remove();
5853
+ const m = f.enter().append("path").classed("line", !0).attr("opacity", 0).merge(f).data(p, (v) => v.name).attr(
5850
5854
  "class",
5851
- (f) => this.model.getColorClassName({
5855
+ (v) => this.model.getColorClassName({
5852
5856
  classNameTypes: [nt.STROKE],
5853
- dataGroupName: f.name,
5857
+ dataGroupName: v.name,
5854
5858
  originalClassName: "line"
5855
5859
  })
5856
- ).style("stroke", (f) => this.model.getStrokeColor(f.name, null, f.data)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "line").attr("aria-label", (f) => {
5857
- const { data: g } = f;
5858
- return g.map((m) => {
5859
- const y = this.services.cartesianScales.getRangeIdentifier(m);
5860
- return m[y];
5860
+ ).style("stroke", (v) => this.model.getStrokeColor(v.name, null, v.data)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "line").attr("aria-label", (v) => {
5861
+ const { data: S } = v;
5862
+ return S.map((y) => {
5863
+ const E = this.services.cartesianScales.getRangeIdentifier(y);
5864
+ return y[E];
5861
5865
  }).join(",");
5862
- }).transition().call(
5863
- (f) => this.services.transitions.setupTransition({
5864
- transition: f,
5866
+ });
5867
+ if (e && n) {
5868
+ const v = a.getMainXScale(), S = a.getMainYScale();
5869
+ if (v && S) {
5870
+ const [y, E] = v.range(), [x, T] = S.range();
5871
+ s.style("overflow", "hidden").style("clip", `rect(${T}px, ${E}px, ${x}px, ${y}px)`);
5872
+ }
5873
+ }
5874
+ m.transition().call(
5875
+ (v) => this.services.transitions.setupTransition({
5876
+ transition: v,
5865
5877
  name: "line-update-enter",
5866
5878
  animate: t
5867
5879
  })
5868
- ).attr("opacity", (f) => f.hidden ? 0 : 1).attr("d", (f) => {
5869
- const { data: g } = f;
5870
- return h(g);
5880
+ ).attr("opacity", (v) => v.hidden ? 0 : 1).attr("d", (v) => {
5881
+ const { data: S } = v;
5882
+ return u(S);
5871
5883
  });
5872
5884
  }
5873
5885
  destroy() {
5874
5886
  const t = this.services.events;
5875
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5887
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5876
5888
  }
5877
5889
  }
5878
5890
  const Rr = 5;
@@ -5902,40 +5914,40 @@ class qo extends dt {
5902
5914
  originalData: m
5903
5915
  })).filter((m) => np(m.domainValue, h));
5904
5916
  if (this.pointsWithinLine && f.length === this.pointsWithinLine.length && f.map((m) => m.domainValue).join() === this.pointsWithinLine.map((m) => m.domainValue).join())
5905
- return this.pointsWithinLine = f, this.services.events.dispatchEvent(T.Tooltip.MOVE, {
5917
+ return this.pointsWithinLine = f, this.services.events.dispatchEvent(b.Tooltip.MOVE, {
5906
5918
  mousePosition: [e, n]
5907
5919
  });
5908
5920
  this.pointsWithinLine = f;
5909
- const g = this.pointsWithinLine.reduce((m, y) => {
5921
+ const g = this.pointsWithinLine.reduce((m, v) => {
5910
5922
  if (m.length === 0)
5911
- return m.push(y), m;
5912
- const S = m[0].domainValue, v = Math.abs(h - y.domainValue), E = Math.abs(h - S);
5913
- return v > E || (v < E ? m = [y] : m.push(y)), m;
5923
+ return m.push(v), m;
5924
+ const S = m[0].domainValue, y = Math.abs(h - v.domainValue), E = Math.abs(h - S);
5925
+ return y > E || (y < E ? m = [v] : m.push(v)), m;
5914
5926
  }, []);
5915
5927
  if (g.length > 0) {
5916
5928
  const m = g.map((E) => E.originalData).filter((E) => {
5917
- const x = this.services.cartesianScales.getRangeIdentifier(E), b = E[x];
5918
- return b != null;
5919
- }), y = g.map(
5929
+ const x = this.services.cartesianScales.getRangeIdentifier(E), T = E[x];
5930
+ return T != null;
5931
+ }), v = g.map(
5920
5932
  (E) => E.domainValue
5921
5933
  ), S = p.filter((E) => {
5922
5934
  const x = this.services.cartesianScales.getDomainValue(E);
5923
- return y.includes(x);
5935
+ return v.includes(x);
5924
5936
  });
5925
- this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !co(this.elementsToHighlight, S) && this.hideRuler(), S.dispatch("mouseover"), this.elementsToHighlight = S, this.services.events.dispatchEvent(T.Tooltip.SHOW, {
5937
+ this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !co(this.elementsToHighlight, S) && this.hideRuler(), S.dispatch("mouseover"), this.elementsToHighlight = S, this.services.events.dispatchEvent(b.Tooltip.SHOW, {
5926
5938
  event: t,
5927
5939
  mousePosition: [e, n],
5928
5940
  hoveredElement: u,
5929
5941
  data: this.formatTooltipData(m)
5930
5942
  }), d.attr("opacity", 1);
5931
- const v = g[0];
5932
- a === "horizontal" ? u.attr("x1", l).attr("x2", c).attr("y1", v.domainValue).attr("y2", v.domainValue) : u.attr("y1", l).attr("y2", c).attr("x1", v.domainValue).attr("x2", v.domainValue);
5943
+ const y = g[0];
5944
+ a === "horizontal" ? u.attr("x1", l).attr("x2", c).attr("y1", y.domainValue).attr("y2", y.domainValue) : u.attr("y1", l).attr("y2", c).attr("x1", y.domainValue).attr("x2", y.domainValue);
5933
5945
  } else
5934
5946
  this.hideRuler();
5935
5947
  }
5936
5948
  hideRuler() {
5937
5949
  const t = this.parent, e = I.appendOrSelect(t, "g.ruler");
5938
- t.selectAll("[role=graphics-symbol]").dispatch("mouseout"), this.services.events.dispatchEvent(T.Tooltip.HIDE), e.attr("opacity", 0);
5950
+ t.selectAll("[role=graphics-symbol]").dispatch("mouseout"), this.services.events.dispatchEvent(b.Tooltip.HIDE), e.attr("opacity", 0);
5939
5951
  }
5940
5952
  /**
5941
5953
  * Adds the listener on the X grid to trigger multiple point tooltips along the x axis.
@@ -6018,11 +6030,11 @@ class Qi extends dt {
6018
6030
  const { events: t } = this.services;
6019
6031
  if (!t) throw new Error("Services events are undefined.");
6020
6032
  t.addEventListener(
6021
- T.Legend.ITEM_HOVER,
6033
+ b.Legend.ITEM_HOVER,
6022
6034
  this.handleLegendOnHover
6023
- ), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
6035
+ ), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
6024
6036
  const { fadeInOnChartHolderMouseover: e } = this.configs;
6025
- e && (t.addEventListener(T.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.addEventListener(T.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut));
6037
+ e && (t.addEventListener(b.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.addEventListener(b.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut));
6026
6038
  }
6027
6039
  filterBasedOnZoomDomain(t) {
6028
6040
  const { cartesianScales: e } = this.services;
@@ -6148,12 +6160,12 @@ class Qi extends dt {
6148
6160
  var h;
6149
6161
  const l = (h = t.services.cartesianScales) == null ? void 0 : h.getDomainIdentifier(c);
6150
6162
  return t.model.getFillColor(c[e], c[l], c);
6151
- }).classed("unfilled", !1), (r = t.services.events) == null || r.dispatchEvent(T.Tooltip.SHOW, {
6163
+ }).classed("unfilled", !1), (r = t.services.events) == null || r.dispatchEvent(b.Tooltip.SHOW, {
6152
6164
  event: n,
6153
6165
  hoveredElement: a,
6154
6166
  data: [s],
6155
6167
  additionalItems: t.getTooltipAdditionalItems(s)
6156
- }), (o = t.services.events) == null || o.dispatchEvent(T.Scatter.SCATTER_MOUSEOVER, {
6168
+ }), (o = t.services.events) == null || o.dispatchEvent(b.Scatter.SCATTER_MOUSEOVER, {
6157
6169
  event: n,
6158
6170
  element: a,
6159
6171
  datum: s
@@ -6161,16 +6173,16 @@ class Qi extends dt {
6161
6173
  }).on("mousemove", function(n, s) {
6162
6174
  var r, o;
6163
6175
  const a = D(this);
6164
- (r = t.services.events) == null || r.dispatchEvent(T.Scatter.SCATTER_MOUSEMOVE, {
6176
+ (r = t.services.events) == null || r.dispatchEvent(b.Scatter.SCATTER_MOUSEMOVE, {
6165
6177
  event: n,
6166
6178
  element: a,
6167
6179
  datum: s
6168
- }), (o = t.services.events) == null || o.dispatchEvent(T.Tooltip.MOVE, {
6180
+ }), (o = t.services.events) == null || o.dispatchEvent(b.Tooltip.MOVE, {
6169
6181
  event: n
6170
6182
  });
6171
6183
  }).on("click", function(n, s) {
6172
6184
  var a;
6173
- (a = t.services.events) == null || a.dispatchEvent(T.Scatter.SCATTER_CLICK, {
6185
+ (a = t.services.events) == null || a.dispatchEvent(b.Scatter.SCATTER_CLICK, {
6174
6186
  event: n,
6175
6187
  element: D(this),
6176
6188
  datum: s
@@ -6187,11 +6199,11 @@ class Qi extends dt {
6187
6199
  );
6188
6200
  a.classed("unfilled", !d).style("fill", (u) => d || l ? t.model.getFillColor(u[e], u[h], u) : null);
6189
6201
  }
6190
- (o = t.services.events) == null || o.dispatchEvent(T.Scatter.SCATTER_MOUSEOUT, {
6202
+ (o = t.services.events) == null || o.dispatchEvent(b.Scatter.SCATTER_MOUSEOUT, {
6191
6203
  event: n,
6192
6204
  element: a,
6193
6205
  datum: s
6194
- }), (c = t.services.events) == null || c.dispatchEvent(T.Tooltip.HIDE, {
6206
+ }), (c = t.services.events) == null || c.dispatchEvent(b.Tooltip.HIDE, {
6195
6207
  hoveredElement: a
6196
6208
  });
6197
6209
  });
@@ -6202,9 +6214,9 @@ class Qi extends dt {
6202
6214
  const { events: t } = this.services;
6203
6215
  if (!t) throw new Error("Services events undefined");
6204
6216
  t.removeEventListener(
6205
- T.Legend.ITEM_HOVER,
6217
+ b.Legend.ITEM_HOVER,
6206
6218
  this.handleLegendOnHover
6207
- ), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(T.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.removeEventListener(T.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
6219
+ ), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(b.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.removeEventListener(b.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
6208
6220
  }
6209
6221
  }
6210
6222
  class jo extends dt {
@@ -6245,23 +6257,23 @@ class jo extends dt {
6245
6257
  const p = !c.select("g.ticks").empty();
6246
6258
  let f = I.appendOrSelect(c, "g.ticks");
6247
6259
  p || (f.attr("role", `${lt.GRAPHICS_OBJECT} ${lt.GROUP}`), f.attr("aria-label", `${e} ticks`));
6248
- const g = I.appendOrSelect(c, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${e} ticks`), m = O(n, "axes", e), y = this.scaleType === kt.TIME || m.scaleType === kt.TIME, S = e === J.LEFT || e === J.RIGHT, v = this.model.get("zoomDomain");
6249
- if (v && y && !S && d.domain(v), !s) {
6260
+ const g = I.appendOrSelect(c, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${e} ticks`), m = O(n, "axes", e), v = this.scaleType === kt.TIME || m.scaleType === kt.TIME, S = e === J.LEFT || e === J.RIGHT, y = this.model.get("zoomDomain");
6261
+ if (y && v && !S && d.domain(y), !s) {
6250
6262
  f.attr("aria-hidden", !0);
6251
6263
  return;
6252
6264
  }
6253
- const E = O(m, "scaleType"), x = O(n, "data", "loading"), b = O(m, "ticks", "number"), _ = O(m, "ticks", "values"), k = O(m, "truncation", "type"), G = O(m, "truncation", "threshold"), R = O(m, "truncation", "numCharacter"), A = b !== null, H = O(n, "timeScale"), N = I.appendOrSelect(g, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
6265
+ const E = O(m, "scaleType"), x = O(n, "data", "loading"), T = O(m, "ticks", "number"), k = O(m, "ticks", "values"), _ = O(m, "truncation", "type"), G = O(m, "truncation", "threshold"), R = O(m, "truncation", "numCharacter"), A = T !== null, H = O(n, "timeScale"), N = I.appendOrSelect(g, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
6254
6266
  useBBox: !0
6255
6267
  }).height;
6256
6268
  N.remove();
6257
6269
  const P = this.scaleType || m.scaleType || kt.LINEAR, $ = u(d).tickSizeOuter(0);
6258
6270
  if (d.ticks) {
6259
6271
  let Y;
6260
- if (A ? Y = b : (Y = Ke.ticks.number, S && (Y = this.getNumberOfFittingTicks(
6272
+ if (A ? Y = T : (Y = Ke.ticks.number, S && (Y = this.getNumberOfFittingTicks(
6261
6273
  o,
6262
6274
  L,
6263
6275
  Ke.ticks.verticalSpaceRatio
6264
- ))), d.ticks().length === 1 && d.ticks()[0] === 0 && (Y = 0), $.ticks(Y), y)
6276
+ ))), d.ticks().length === 1 && d.ticks()[0] === 0 && (Y = 0), $.ticks(Y), v)
6265
6277
  if (!d.ticks(Y).length)
6266
6278
  $.tickValues([]);
6267
6279
  else {
@@ -6273,7 +6285,7 @@ class jo extends dt {
6273
6285
  }
6274
6286
  let C;
6275
6287
  const V = O(m, "ticks", "formatter"), { code: q, number: X } = O(n, "locale");
6276
- if (y) {
6288
+ if (v) {
6277
6289
  const Y = hi(
6278
6290
  $.tickValues(),
6279
6291
  O(n, "timeScale", "timeInterval")
@@ -6294,19 +6306,19 @@ class jo extends dt {
6294
6306
  $.tickFormat(C);
6295
6307
  const [F, Z] = this.services.cartesianScales.getScaleByPosition(e).domain();
6296
6308
  let rt;
6297
- if (_) {
6298
- if (y)
6299
- _.forEach((Y, K) => {
6300
- Y.getTime === void 0 && (_[K] = new Date(Y));
6301
- }), rt = _.filter((Y) => {
6309
+ if (k) {
6310
+ if (v)
6311
+ k.forEach((Y, K) => {
6312
+ Y.getTime === void 0 && (k[K] = new Date(Y));
6313
+ }), rt = k.filter((Y) => {
6302
6314
  const K = Y.getTime();
6303
6315
  return K >= new Date(F).getTime() && K <= new Date(Z).getTime();
6304
6316
  });
6305
6317
  else if (E === kt.LABELS) {
6306
6318
  const Y = this.services.cartesianScales.getScaleByPosition(e).domain();
6307
- rt = _.filter((K) => Y.includes(K));
6319
+ rt = k.filter((K) => Y.includes(K));
6308
6320
  } else
6309
- rt = _.filter(
6321
+ rt = k.filter(
6310
6322
  (Y) => Y >= F && Y <= Z
6311
6323
  );
6312
6324
  $.tickValues(rt);
@@ -6354,7 +6366,7 @@ class jo extends dt {
6354
6366
  break;
6355
6367
  }
6356
6368
  }
6357
- if (y) {
6369
+ if (v) {
6358
6370
  const Y = hi(
6359
6371
  $.tickValues(),
6360
6372
  O(n, "timeScale", "timeInterval")
@@ -6406,16 +6418,16 @@ class jo extends dt {
6406
6418
  this.getNumberOfFittingTicks(r, L, Ke.ticks.horizontalSpaceRatio)
6407
6419
  ), g.call($), f.call($)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === J.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
6408
6420
  }
6409
- if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), g.selectAll("g.tick").attr("aria-label", (Y) => Y), k !== Je.NONE && E === kt.LABELS && !_) {
6421
+ if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), g.selectAll("g.tick").attr("aria-label", (Y) => Y), _ !== Je.NONE && E === kt.LABELS && !k) {
6410
6422
  const Y = this.services.cartesianScales.getScaleDomain(e);
6411
6423
  if (Y.length > 0) {
6412
6424
  const K = a.select(`g.axis.${e} g.ticks g.tick`).html();
6413
6425
  c.selectAll("g.ticks g.tick").html(K);
6414
6426
  const ot = this;
6415
6427
  c.selectAll("g.tick text").data(Y).text(function(ct) {
6416
- return ct.length > G ? (ot.truncation[e] = !0, Cn(ct, k, R)) : ct;
6428
+ return ct.length > G ? (ot.truncation[e] = !0, Cn(ct, _, R)) : ct;
6417
6429
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(Y).text(function(ct) {
6418
- return ct.length > G ? Cn(ct, k, R) : ct;
6430
+ return ct.length > G ? Cn(ct, _, R) : ct;
6419
6431
  }), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(Y);
6420
6432
  }
6421
6433
  }
@@ -6424,35 +6436,35 @@ class jo extends dt {
6424
6436
  addEventListeners() {
6425
6437
  const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = O(s, "axes", e), r = O(a, "scaleType"), o = O(a, "truncation", "threshold"), c = this;
6426
6438
  n.selectAll("g.tick text").on("mouseover", function(l, h) {
6427
- c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOVER, {
6439
+ c.services.events.dispatchEvent(b.Axis.LABEL_MOUSEOVER, {
6428
6440
  event: l,
6429
6441
  element: D(this),
6430
6442
  datum: h
6431
- }), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(T.Tooltip.SHOW, {
6443
+ }), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(b.Tooltip.SHOW, {
6432
6444
  event: l,
6433
6445
  hoveredElement: D(this),
6434
6446
  content: h
6435
6447
  });
6436
6448
  }).on("mousemove", function(l, h) {
6437
- c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEMOVE, {
6449
+ c.services.events.dispatchEvent(b.Axis.LABEL_MOUSEMOVE, {
6438
6450
  event: l,
6439
6451
  element: D(this),
6440
6452
  datum: h
6441
- }), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(T.Tooltip.MOVE, {
6453
+ }), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(b.Tooltip.MOVE, {
6442
6454
  event: l
6443
6455
  });
6444
6456
  }).on("click", function(l, h) {
6445
- c.services.events.dispatchEvent(T.Axis.LABEL_CLICK, {
6457
+ c.services.events.dispatchEvent(b.Axis.LABEL_CLICK, {
6446
6458
  event: l,
6447
6459
  element: D(this),
6448
6460
  datum: h
6449
6461
  });
6450
6462
  }).on("mouseout", function(l, h) {
6451
- c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOUT, {
6463
+ c.services.events.dispatchEvent(b.Axis.LABEL_MOUSEOUT, {
6452
6464
  event: l,
6453
6465
  element: D(this),
6454
6466
  datum: h
6455
- }), r === kt.LABELS && c.services.events.dispatchEvent(T.Tooltip.HIDE);
6467
+ }), r === kt.LABELS && c.services.events.dispatchEvent(b.Tooltip.HIDE);
6456
6468
  });
6457
6469
  }
6458
6470
  getInvisibleAxisRef() {
@@ -6509,36 +6521,36 @@ class sp extends jo {
6509
6521
  const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = O(s, "axes", e), r = O(a, "scaleType"), o = O(a, "truncation", "threshold"), c = this;
6510
6522
  n.selectAll("g.tick.tick-hover").on("mouseover", function(l) {
6511
6523
  const h = D(this).select("text"), d = h.datum();
6512
- c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOVER, {
6524
+ c.services.events.dispatchEvent(b.Axis.LABEL_MOUSEOVER, {
6513
6525
  event: l,
6514
6526
  element: h,
6515
6527
  datum: d
6516
- }), r === kt.LABELS && d.length > o && c.services.events.dispatchEvent(T.Tooltip.SHOW, {
6528
+ }), r === kt.LABELS && d.length > o && c.services.events.dispatchEvent(b.Tooltip.SHOW, {
6517
6529
  event: l,
6518
6530
  element: h,
6519
6531
  datum: d
6520
6532
  });
6521
6533
  }).on("mousemove", function(l) {
6522
6534
  const h = D(this).select("text"), d = h.datum();
6523
- c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEMOVE, {
6535
+ c.services.events.dispatchEvent(b.Axis.LABEL_MOUSEMOVE, {
6524
6536
  event: l,
6525
6537
  element: h,
6526
6538
  datum: d
6527
- }), c.services.events.dispatchEvent(T.Tooltip.MOVE, {
6539
+ }), c.services.events.dispatchEvent(b.Tooltip.MOVE, {
6528
6540
  event: l
6529
6541
  });
6530
6542
  }).on("click", function(l) {
6531
- c.services.events.dispatchEvent(T.Axis.LABEL_CLICK, {
6543
+ c.services.events.dispatchEvent(b.Axis.LABEL_CLICK, {
6532
6544
  event: l,
6533
6545
  element: D(this).select("text"),
6534
6546
  datum: D(this).select("text").datum()
6535
6547
  });
6536
6548
  }).on("mouseout", function(l) {
6537
- c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOUT, {
6549
+ c.services.events.dispatchEvent(b.Axis.LABEL_MOUSEOUT, {
6538
6550
  event: l,
6539
6551
  element: D(this).select("text"),
6540
6552
  datum: D(this).select("text").datum()
6541
- }), r === kt.LABELS && c.services.events.dispatchEvent(T.Tooltip.HIDE);
6553
+ }), r === kt.LABELS && c.services.events.dispatchEvent(b.Tooltip.HIDE);
6542
6554
  }).on("focus", function(l) {
6543
6555
  const h = { clientX: 0, clientY: 0 };
6544
6556
  if (l.target) {
@@ -6546,19 +6558,19 @@ class sp extends jo {
6546
6558
  const d = l.target.getBoundingClientRect();
6547
6559
  h.clientX = d.x, h.clientY = d.y;
6548
6560
  }
6549
- c.services.events.dispatchEvent(T.Axis.LABEL_FOCUS, {
6561
+ c.services.events.dispatchEvent(b.Axis.LABEL_FOCUS, {
6550
6562
  event: { ...l, ...h },
6551
6563
  element: D(this),
6552
6564
  datum: D(this).select("text").datum()
6553
6565
  });
6554
6566
  }).on("blur", function(l) {
6555
- c.services.events.dispatchEvent(T.Axis.LABEL_BLUR, {
6567
+ c.services.events.dispatchEvent(b.Axis.LABEL_BLUR, {
6556
6568
  event: l,
6557
6569
  element: D(this),
6558
6570
  datum: D(this).select("text").datum()
6559
6571
  });
6560
6572
  }).on("keydown", function(l) {
6561
- l.key && l.key === "Escape" && (c.services.events.dispatchEvent(T.Tooltip.HIDE), c.services.events.dispatchEvent(T.Axis.LABEL_BLUR, {
6573
+ l.key && l.key === "Escape" && (c.services.events.dispatchEvent(b.Tooltip.HIDE), c.services.events.dispatchEvent(b.Axis.LABEL_BLUR, {
6562
6574
  event: l,
6563
6575
  element: D(this),
6564
6576
  datum: D(this).select("text").datum()
@@ -6624,9 +6636,9 @@ class ym extends dt {
6624
6636
  a.right = d + p;
6625
6637
  break;
6626
6638
  }
6627
- }), this.services.events.dispatchEvent(T.Axis.RENDER_COMPLETE), Object.keys(a).some(
6639
+ }), this.services.events.dispatchEvent(b.Axis.RENDER_COMPLETE), Object.keys(a).some(
6628
6640
  (o) => this.margins[o] !== a[o]
6629
- ) && (this.margins = Object.assign(this.margins, a), this.model.set({ axesMargins: this.margins }, { skipUpdate: !0 }), this.services.events.dispatchEvent(T.ZoomBar.UPDATE), Object.keys(this.children).forEach((o) => {
6641
+ ) && (this.margins = Object.assign(this.margins, a), this.model.set({ axesMargins: this.margins }, { skipUpdate: !0 }), this.services.events.dispatchEvent(b.ZoomBar.UPDATE), Object.keys(this.children).forEach((o) => {
6630
6642
  const c = this.children[o];
6631
6643
  c.margins = this.margins;
6632
6644
  }), this.render(!0));
@@ -6751,14 +6763,14 @@ class Em extends dt {
6751
6763
  const e = this.getComponentContainer({ ariaLabel: "box plots", withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getDataGroupNames(), r = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [c, l] = r.range(), [h, d] = o.range(), u = l - c, p = h - d;
6752
6764
  if (u === 0)
6753
6765
  return;
6754
- const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Xt.VERTICAL, [y, S] = xe(
6766
+ const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Xt.VERTICAL, [v, S] = xe(
6755
6767
  (A) => this.services.cartesianScales.getDomainValue(A),
6756
6768
  (A) => this.services.cartesianScales.getRangeValue(A),
6757
6769
  g
6758
- ), v = Math.floor((m ? u : p) / a.length), E = Math.min(v / 2, 16), x = this.model.getBoxplotData(), b = e.selectAll(".box-group").data(x);
6759
- b.exit().remove();
6760
- const _ = b.enter().append("g").attr("class", "box-group"), k = b.merge(_);
6761
- _.append("path").merge(b.select("path.vertical-line.start")).attr(
6770
+ ), y = Math.floor((m ? u : p) / a.length), E = Math.min(y / 2, 16), x = this.model.getBoxplotData(), T = e.selectAll(".box-group").data(x);
6771
+ T.exit().remove();
6772
+ const k = T.enter().append("g").attr("class", "box-group"), _ = T.merge(k);
6773
+ k.append("path").merge(T.select("path.vertical-line.start")).attr(
6762
6774
  "class",
6763
6775
  () => this.model.getColorClassName({
6764
6776
  classNameTypes: [nt.STROKE],
@@ -6773,7 +6785,7 @@ class Em extends dt {
6773
6785
  ).attr("d", (A) => {
6774
6786
  const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.quartiles.q_25);
6775
6787
  return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6776
- }), _.append("path").merge(b.select("path.vertical-line.end")).attr(
6788
+ }), k.append("path").merge(T.select("path.vertical-line.end")).attr(
6777
6789
  "class",
6778
6790
  () => this.model.getColorClassName({
6779
6791
  classNameTypes: [nt.STROKE],
@@ -6788,7 +6800,7 @@ class Em extends dt {
6788
6800
  ).attr("d", (A) => {
6789
6801
  const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.quartiles.q_75);
6790
6802
  return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6791
- }), _.append("path").merge(b.select("path.box")).attr(
6803
+ }), k.append("path").merge(T.select("path.box")).attr(
6792
6804
  "class",
6793
6805
  () => this.model.getColorClassName({
6794
6806
  classNameTypes: [nt.FILL, nt.STROKE],
@@ -6807,10 +6819,10 @@ class Em extends dt {
6807
6819
  f.getRangeValue(A.quartiles.q_75) - f.getRangeValue(A.quartiles.q_25)
6808
6820
  );
6809
6821
  return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6810
- }), _.append("path").merge(b.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
6822
+ }), k.append("path").merge(T.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
6811
6823
  const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.max);
6812
6824
  return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6813
- }), _.append("path").merge(b.select("path.whisker.start")).attr(
6825
+ }), k.append("path").merge(T.select("path.whisker.start")).attr(
6814
6826
  "class",
6815
6827
  () => this.model.getColorClassName({
6816
6828
  classNameTypes: [nt.STROKE],
@@ -6825,7 +6837,7 @@ class Em extends dt {
6825
6837
  ).attr("d", (A) => {
6826
6838
  const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.min);
6827
6839
  return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6828
- }), _.append("path").merge(b.select("path.median")).attr("fill", "none").attr(
6840
+ }), k.append("path").merge(T.select("path.median")).attr("fill", "none").attr(
6829
6841
  "class",
6830
6842
  () => this.model.getColorClassName({
6831
6843
  classNameTypes: [nt.STROKE],
@@ -6840,7 +6852,7 @@ class Em extends dt {
6840
6852
  ).attr("d", (A) => {
6841
6853
  const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.quartiles.q_50);
6842
6854
  return Gt({ x0: H, x1: N, y0: M, y1: M }, g);
6843
- }), _.append("path").merge(b.select("path.whisker.end")).attr(
6855
+ }), k.append("path").merge(T.select("path.whisker.end")).attr(
6844
6856
  "class",
6845
6857
  () => this.model.getColorClassName({
6846
6858
  classNameTypes: [nt.STROKE],
@@ -6856,7 +6868,7 @@ class Em extends dt {
6856
6868
  const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.whiskers.max);
6857
6869
  return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6858
6870
  });
6859
- const G = k.selectAll("circle.outlier").data(
6871
+ const G = _.selectAll("circle.outlier").data(
6860
6872
  (A) => A.outliers.map((H) => ({
6861
6873
  min: A.whiskers.min,
6862
6874
  max: A.whiskers.max,
@@ -6872,7 +6884,7 @@ class Em extends dt {
6872
6884
  classNameTypes: [nt.FILL, nt.STROKE],
6873
6885
  originalClassName: "outlier"
6874
6886
  })
6875
- ).attr("fill-opacity", qt.circle.opacity.default).attr("cx", y).transition().call(
6887
+ ).attr("fill-opacity", qt.circle.opacity.default).attr("cx", v).transition().call(
6876
6888
  (A) => this.services.transitions.setupTransition({
6877
6889
  transition: A,
6878
6890
  name: "boxplot-update-circles",
@@ -6884,7 +6896,7 @@ class Em extends dt {
6884
6896
  const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data;
6885
6897
  this.parent.selectAll("path.highlight-area").on("mouseover", function(s, a) {
6886
6898
  const r = D(this);
6887
- D(this.parentNode).select("path.box").classed("hovered", !0).attr("fill-opacity", qt.box.opacity.hovered), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
6899
+ D(this.parentNode).select("path.box").classed("hovered", !0).attr("fill-opacity", qt.box.opacity.hovered), t.services.events.dispatchEvent(b.Tooltip.SHOW, {
6888
6900
  event: s,
6889
6901
  hoveredElement: r,
6890
6902
  items: [
@@ -6920,33 +6932,33 @@ class Em extends dt {
6920
6932
  value: a.quartiles.q_75 - a.quartiles.q_25
6921
6933
  }
6922
6934
  ]
6923
- }), t.services.events.dispatchEvent(T.Boxplot.BOX_MOUSEOVER, {
6935
+ }), t.services.events.dispatchEvent(b.Boxplot.BOX_MOUSEOVER, {
6924
6936
  event: s,
6925
6937
  element: r,
6926
6938
  datum: a
6927
6939
  });
6928
6940
  }).on("mousemove", function(s, a) {
6929
6941
  const r = D(this);
6930
- t.services.events.dispatchEvent(T.Boxplot.BOX_MOUSEMOVE, {
6942
+ t.services.events.dispatchEvent(b.Boxplot.BOX_MOUSEMOVE, {
6931
6943
  event: s,
6932
6944
  element: r,
6933
6945
  datum: a
6934
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
6946
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
6935
6947
  event: s
6936
6948
  });
6937
6949
  }).on("click", function(s, a) {
6938
- t.services.events.dispatchEvent(T.Boxplot.BOX_CLICK, {
6950
+ t.services.events.dispatchEvent(b.Boxplot.BOX_CLICK, {
6939
6951
  event: s,
6940
6952
  element: D(this),
6941
6953
  datum: a
6942
6954
  });
6943
6955
  }).on("mouseout", function(s, a) {
6944
6956
  const r = D(this);
6945
- D(this.parentNode).select("path.box").classed("hovered", !1).attr("fill-opacity", qt.box.opacity.default), t.services.events.dispatchEvent(T.Boxplot.BOX_MOUSEOUT, {
6957
+ D(this.parentNode).select("path.box").classed("hovered", !1).attr("fill-opacity", qt.box.opacity.default), t.services.events.dispatchEvent(b.Boxplot.BOX_MOUSEOUT, {
6946
6958
  event: s,
6947
6959
  element: r,
6948
6960
  datum: a
6949
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
6961
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
6950
6962
  hoveredElement: r
6951
6963
  });
6952
6964
  });
@@ -6955,7 +6967,7 @@ class Em extends dt {
6955
6967
  const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.services.cartesianScales.getRangeIdentifier();
6956
6968
  this.parent.selectAll("circle").on("mouseover", function(a, r) {
6957
6969
  const o = D(this);
6958
- o.classed("hovered", !0).attr("fill-opacity", qt.circle.opacity.hovered).classed("unfilled", !1), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
6970
+ o.classed("hovered", !0).attr("fill-opacity", qt.circle.opacity.hovered).classed("unfilled", !1), t.services.events.dispatchEvent(b.Tooltip.SHOW, {
6959
6971
  event: a,
6960
6972
  hoveredElement: o,
6961
6973
  items: [
@@ -6971,33 +6983,33 @@ class Em extends dt {
6971
6983
  value: r[s]
6972
6984
  }
6973
6985
  ]
6974
- }), t.services.events.dispatchEvent(T.Boxplot.OUTLIER_MOUSEOVER, {
6986
+ }), t.services.events.dispatchEvent(b.Boxplot.OUTLIER_MOUSEOVER, {
6975
6987
  event: a,
6976
6988
  element: o,
6977
6989
  datum: r
6978
6990
  });
6979
6991
  }).on("mousemove", function(a, r) {
6980
6992
  const o = D(this);
6981
- t.services.events.dispatchEvent(T.Boxplot.OUTLIER_MOUSEMOVE, {
6993
+ t.services.events.dispatchEvent(b.Boxplot.OUTLIER_MOUSEMOVE, {
6982
6994
  event: a,
6983
6995
  element: o,
6984
6996
  datum: r
6985
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
6997
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
6986
6998
  event: a
6987
6999
  });
6988
7000
  }).on("click", function(a, r) {
6989
- t.services.events.dispatchEvent(T.Boxplot.OUTLIER_CLICK, {
7001
+ t.services.events.dispatchEvent(b.Boxplot.OUTLIER_CLICK, {
6990
7002
  event: a,
6991
7003
  element: D(this),
6992
7004
  datum: r
6993
7005
  });
6994
7006
  }).on("mouseout", function(a, r) {
6995
7007
  const o = D(this);
6996
- o.classed("hovered", !1).attr("fill-opacity", qt.circle.opacity.default), t.services.events.dispatchEvent(T.Boxplot.OUTLIER_MOUSEOUT, {
7008
+ o.classed("hovered", !1).attr("fill-opacity", qt.circle.opacity.default), t.services.events.dispatchEvent(b.Boxplot.OUTLIER_MOUSEOUT, {
6997
7009
  event: a,
6998
7010
  element: o,
6999
7011
  datum: r
7000
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
7012
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
7001
7013
  hoveredElement: o
7002
7014
  });
7003
7015
  });
@@ -7107,16 +7119,16 @@ class Tm extends dt {
7107
7119
  }
7108
7120
  init() {
7109
7121
  const t = this.services.events;
7110
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7122
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7111
7123
  }
7112
7124
  render(t) {
7113
7125
  const e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.getComponentContainer({ ariaLabel: "bullet graphs", withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), r = this.services.cartesianScales.getRangeScale(), o = this.services.cartesianScales.getRangeIdentifier(), [c, l] = r.range(), [, h] = r.domain(), d = () => {
7114
7126
  const g = [];
7115
7127
  a.forEach((S) => {
7116
- S.ranges ? S.ranges.forEach((v, E) => {
7117
- v != null && v < h && g.push({
7128
+ S.ranges ? S.ranges.forEach((y, E) => {
7129
+ y != null && y < h && g.push({
7118
7130
  datum: S,
7119
- value: v,
7131
+ value: y,
7120
7132
  order: E + 1
7121
7133
  });
7122
7134
  }) : g.push({
@@ -7132,63 +7144,63 @@ class Tm extends dt {
7132
7144
  animate: t
7133
7145
  })
7134
7146
  ).attr("d", (S) => {
7135
- let E, x, b, _;
7136
- return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, b = l - 2, _ = c + 1) : (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, b = this.services.cartesianScales.getRangeValue(S.value), _ = l), Gt(
7137
- { x0: E, x1: x, y0: b, y1: _ },
7147
+ let E, x, T, k;
7148
+ return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = l - 2, k = c + 1) : (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = this.services.cartesianScales.getRangeValue(S.value), k = l), Gt(
7149
+ { x0: E, x1: x, y0: T, y1: k },
7138
7150
  this.services.cartesianScales.getOrientation()
7139
7151
  );
7140
7152
  }).attr("opacity", 1);
7141
7153
  }, u = () => {
7142
- const g = I.appendOrSelect(s, "g.bars").selectAll("path.bar").data(a, (y) => y[n]);
7154
+ const g = I.appendOrSelect(s, "g.bars").selectAll("path.bar").data(a, (v) => v[n]);
7143
7155
  g.exit().attr("opacity", 0).remove(), g.enter().append("path").attr("opacity", 0).merge(g).classed("bar", !0).transition().call(
7144
- (y) => this.services.transitions.setupTransition({
7145
- transition: y,
7156
+ (v) => this.services.transitions.setupTransition({
7157
+ transition: v,
7146
7158
  name: "bullet-bar-update-enter",
7147
7159
  animate: t
7148
7160
  })
7149
7161
  ).attr(
7150
7162
  "class",
7151
- (y) => this.model.getColorClassName({
7163
+ (v) => this.model.getColorClassName({
7152
7164
  classNameTypes: [nt.FILL],
7153
- dataGroupName: y[n],
7165
+ dataGroupName: v[n],
7154
7166
  originalClassName: "bar"
7155
7167
  })
7156
- ).style("fill", (y) => {
7157
- const S = this.services.cartesianScales.getDomainIdentifier(y);
7158
- return this.model.getFillColor(y[n], y[S], y);
7159
- }).attr("d", (y) => {
7160
- const v = this.services.cartesianScales.getDomainValue(y) - 4, E = v + 8, x = this.services.cartesianScales.getRangeValue(0) + 1, b = this.services.cartesianScales.getRangeValue(y);
7168
+ ).style("fill", (v) => {
7169
+ const S = this.services.cartesianScales.getDomainIdentifier(v);
7170
+ return this.model.getFillColor(v[n], v[S], v);
7171
+ }).attr("d", (v) => {
7172
+ const y = this.services.cartesianScales.getDomainValue(v) - 4, E = y + 8, x = this.services.cartesianScales.getRangeValue(0) + 1, T = this.services.cartesianScales.getRangeValue(v);
7161
7173
  return Gt(
7162
- { x0: v, x1: E, y0: x, y1: b },
7174
+ { x0: y, x1: E, y0: x, y1: T },
7163
7175
  this.services.cartesianScales.getOrientation()
7164
7176
  );
7165
- }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (y) => y.value);
7177
+ }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (v) => v.value);
7166
7178
  }, p = () => {
7167
7179
  const g = I.appendOrSelect(s, "g.markers").selectAll("path.marker").data(
7168
- a.filter((y) => O(y, "marker") !== null),
7169
- (y) => y[n]
7180
+ a.filter((v) => O(v, "marker") !== null),
7181
+ (v) => v[n]
7170
7182
  );
7171
7183
  g.exit().attr("opacity", 0).remove(), g.enter().append("path").attr("opacity", 0).merge(g).classed("marker", !0).transition().call(
7172
- (y) => this.services.transitions.setupTransition({
7173
- transition: y,
7184
+ (v) => this.services.transitions.setupTransition({
7185
+ transition: v,
7174
7186
  name: "bullet-marker-update-enter",
7175
7187
  animate: t
7176
7188
  })
7177
- ).attr("d", (y) => {
7178
- const v = this.services.cartesianScales.getDomainValue(y) - 12, E = v + 24, x = this.services.cartesianScales.getRangeValue(y.marker);
7189
+ ).attr("d", (v) => {
7190
+ const y = this.services.cartesianScales.getDomainValue(v) - 12, E = y + 24, x = this.services.cartesianScales.getRangeValue(v.marker);
7179
7191
  return Gt(
7180
- { x0: v, x1: E, y0: x, y1: x },
7192
+ { x0: y, x1: E, y0: x, y1: x },
7181
7193
  this.services.cartesianScales.getOrientation()
7182
7194
  );
7183
7195
  }).attr("opacity", 1);
7184
7196
  }, f = () => {
7185
7197
  let g = [];
7186
7198
  a.filter((S) => O(S, "marker") !== null).forEach((S) => {
7187
- const v = S.marker, E = S[o];
7199
+ const y = S.marker, E = S[o];
7188
7200
  g = g.concat([
7189
- { datum: S, value: v * 0.25, barValue: E },
7190
- { datum: S, value: v * 0.5, barValue: E },
7191
- { datum: S, value: v * 0.75, barValue: E }
7201
+ { datum: S, value: y * 0.25, barValue: E },
7202
+ { datum: S, value: y * 0.5, barValue: E },
7203
+ { datum: S, value: y * 0.75, barValue: E }
7192
7204
  ]);
7193
7205
  });
7194
7206
  const m = I.appendOrSelect(s, "g.quartiles").selectAll("path.quartile").data(g, (S) => S[n]);
@@ -7198,12 +7210,12 @@ class Tm extends dt {
7198
7210
  name: "bullet-quartile-update-enter",
7199
7211
  animate: t
7200
7212
  })
7201
- ).attr("d", ({ datum: S, value: v }) => {
7213
+ ).attr("d", ({ datum: S, value: y }) => {
7202
7214
  let E = 4;
7203
- S.ranges && S.ranges.indexOf(v) !== -1 && (E = 8);
7204
- const x = this.services.cartesianScales.getDomainValue(S) - E / 2, b = x + E, _ = this.services.cartesianScales.getRangeValue(v);
7215
+ S.ranges && S.ranges.indexOf(y) !== -1 && (E = 8);
7216
+ const x = this.services.cartesianScales.getDomainValue(S) - E / 2, T = x + E, k = this.services.cartesianScales.getRangeValue(y);
7205
7217
  return Gt(
7206
- { x0: x, x1: b, y0: _, y1: _ },
7218
+ { x0: x, x1: T, y0: k, y1: k },
7207
7219
  this.services.cartesianScales.getOrientation()
7208
7220
  );
7209
7221
  }).attr("opacity", 1);
@@ -7214,13 +7226,13 @@ class Tm extends dt {
7214
7226
  const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.services.cartesianScales.getRangeIdentifier(), { code: a, number: r } = O(e, "locale");
7215
7227
  this.parent.selectAll("path.bar").on("mouseover", function(o, c) {
7216
7228
  const l = D(this);
7217
- l.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
7229
+ l.classed("hovered", !0), t.services.events.dispatchEvent(b.Bar.BAR_MOUSEOVER, {
7218
7230
  event: o,
7219
7231
  element: l,
7220
7232
  datum: c
7221
7233
  });
7222
7234
  const h = O(e, "bullet", "performanceAreaTitles"), d = t.model.getMatchingRangeIndexForDatapoint(c);
7223
- t.services.events.dispatchEvent(T.Tooltip.SHOW, {
7235
+ t.services.events.dispatchEvent(b.Tooltip.SHOW, {
7224
7236
  event: o,
7225
7237
  hoveredElement: l,
7226
7238
  items: [
@@ -7251,26 +7263,26 @@ class Tm extends dt {
7251
7263
  ]
7252
7264
  });
7253
7265
  }).on("mousemove", function(o, c) {
7254
- t.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
7266
+ t.services.events.dispatchEvent(b.Bar.BAR_MOUSEMOVE, {
7255
7267
  event: o,
7256
7268
  element: D(this),
7257
7269
  datum: c
7258
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
7270
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
7259
7271
  event: o
7260
7272
  });
7261
7273
  }).on("click", function(o, c) {
7262
- t.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
7274
+ t.services.events.dispatchEvent(b.Bar.BAR_CLICK, {
7263
7275
  event: o,
7264
7276
  element: D(this),
7265
7277
  datum: c
7266
7278
  });
7267
7279
  }).on("mouseout", function(o, c) {
7268
7280
  const l = D(this);
7269
- l.classed("hovered", !1), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
7281
+ l.classed("hovered", !1), t.services.events.dispatchEvent(b.Bar.BAR_MOUSEOUT, {
7270
7282
  event: o,
7271
7283
  element: l,
7272
7284
  datum: c
7273
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
7285
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
7274
7286
  hoveredElement: l
7275
7287
  });
7276
7288
  });
@@ -7278,7 +7290,7 @@ class Tm extends dt {
7278
7290
  destroy() {
7279
7291
  this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
7280
7292
  const t = this.services.events;
7281
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7293
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7282
7294
  }
7283
7295
  }
7284
7296
  function ap(i) {
@@ -7453,8 +7465,8 @@ function dp(i, t) {
7453
7465
  var l = [], h;
7454
7466
  if (c.forEach(function(g) {
7455
7467
  g.forEach(function(m) {
7456
- m.forEach(function(y) {
7457
- e[y < 0 ? ~y : y].length < 2 && l.push(y);
7468
+ m.forEach(function(v) {
7469
+ e[v < 0 ? ~v : v].length < 2 && l.push(v);
7458
7470
  });
7459
7471
  });
7460
7472
  }), l = cp(i, l), (h = l.length) > 1)
@@ -7473,44 +7485,44 @@ class bm extends qo {
7473
7485
  showRuler(t, [e, n]) {
7474
7486
  const s = this.parent, a = this.model.getOptions(), { cartesianScales: r } = this.services, o = r.getOrientation(), c = r.getRangeScale(), [l, h] = c.range(), d = r.getDomainScale(), u = d.invert(
7475
7487
  o === Xt.VERTICAL ? e : n
7476
- ), p = I.appendOrSelect(s, "g.ruler").attr("aria-label", "ruler"), f = I.appendOrSelect(p, "line.ruler-line"), m = s.selectAll("[role=graphics-symbol]").filter((y) => {
7477
- if (parseFloat(xt(y, "data.x0")) <= u && parseFloat(xt(y, "data.x1")) >= u)
7488
+ ), p = I.appendOrSelect(s, "g.ruler").attr("aria-label", "ruler"), f = I.appendOrSelect(p, "line.ruler-line"), m = s.selectAll("[role=graphics-symbol]").filter((v) => {
7489
+ if (parseFloat(xt(v, "data.x0")) <= u && parseFloat(xt(v, "data.x1")) >= u)
7478
7490
  return !0;
7479
7491
  });
7480
7492
  if (m.size() > 0) {
7481
7493
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !co(this.elementsToHighlight, m) && this.hideRuler(), m.dispatch("mouseover"), this.elementsToHighlight = m;
7482
- const y = D(m.nodes()[0]).datum(), S = parseFloat(xt(y, "data.x0")), v = parseFloat(xt(y, "data.x1")), E = this.model.getActiveDataGroupNames(), x = E.reverse().map((_) => ({
7483
- label: _,
7484
- value: xt(y, `data.${_}`),
7494
+ const v = D(m.nodes()[0]).datum(), S = parseFloat(xt(v, "data.x0")), y = parseFloat(xt(v, "data.x1")), E = this.model.getActiveDataGroupNames(), x = E.reverse().map((k) => ({
7495
+ label: k,
7496
+ value: xt(v, `data.${k}`),
7485
7497
  class: this.model.getColorClassName({
7486
7498
  classNameTypes: [nt.TOOLTIP],
7487
- dataGroupName: _
7499
+ dataGroupName: k
7488
7500
  })
7489
- })).filter((_) => _.value !== 0);
7501
+ })).filter((k) => k.value !== 0);
7490
7502
  if (x.length > 0) {
7491
- this.services.events.dispatchEvent(T.Tooltip.SHOW, {
7503
+ this.services.events.dispatchEvent(b.Tooltip.SHOW, {
7492
7504
  event: t,
7493
7505
  mousePosition: [e, n],
7494
7506
  hoveredElement: f,
7495
7507
  items: [
7496
7508
  {
7497
7509
  label: xt(a, "bins.rangeLabel") || "Range",
7498
- value: `${S} – ${v}`
7510
+ value: `${S} – ${y}`
7499
7511
  },
7500
7512
  ...x,
7501
7513
  ...O(a, "tooltip", "showTotal") === !0 ? [
7502
7514
  {
7503
7515
  label: xt(a, "locale.translations.total") || xt(a, "tooltip.totalLabel") || "Total",
7504
7516
  value: E.reduce(
7505
- (k, G) => k + parseFloat(xt(y, `data.${G}`)),
7517
+ (_, G) => _ + parseFloat(xt(v, `data.${G}`)),
7506
7518
  0
7507
7519
  )
7508
7520
  }
7509
7521
  ] : []
7510
7522
  ]
7511
7523
  }), p.attr("opacity", 1);
7512
- const _ = d((S + v) / 2);
7513
- o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", _).attr("y2", _) : f.attr("y1", h).attr("y2", l).attr("x1", _).attr("x2", _);
7524
+ const k = d((S + y) / 2);
7525
+ o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", k).attr("y2", k) : f.attr("y1", h).attr("y2", l).attr("x1", k).attr("x2", k);
7514
7526
  } else
7515
7527
  this.hideRuler();
7516
7528
  } else
@@ -7582,7 +7594,7 @@ class Dm extends Dd {
7582
7594
  }, this.chartType = n.chartType;
7583
7595
  }
7584
7596
  init() {
7585
- this.chartType === "heatmap" && this.services.events.addEventListener(T.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
7597
+ this.chartType === "heatmap" && this.services.events.addEventListener(b.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
7586
7598
  }
7587
7599
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7588
7600
  // @ts-ignore
@@ -7606,25 +7618,25 @@ class Dm extends Dd {
7606
7618
  }
7607
7619
  const m = d[0] < 0 && d[1] > 0 ? "diverge" : "mono";
7608
7620
  (o < 1 && o > 4 && m === "mono" || o < 1 && o > 2 && m === "diverge") && (o = 1);
7609
- let y = [];
7621
+ let v = [];
7610
7622
  const S = m === "diverge" ? 17 : 11;
7611
7623
  if (h)
7612
- y = a;
7624
+ v = a;
7613
7625
  else
7614
7626
  for (let R = 1; R < S + 1; R++)
7615
- y.push(
7627
+ v.push(
7616
7628
  r === Vs.LINEAR ? `stop-color-${m}-${o}-${R}` : `fill-${m}-${o}-${R}`
7617
7629
  );
7618
- const v = Xr(d[0], d[1]), E = Hc(v, 3), x = Re().domain(d).range([0, p]), b = Fi(x).tickSize(0).tickValues(E), { code: _, number: k } = O(e, "locale");
7619
- b.tickFormat((R) => k(R, _));
7630
+ const y = Xr(d[0], d[1]), E = Hc(y, 3), x = Re().domain(d).range([0, p]), T = Fi(x).tickSize(0).tickValues(E), { code: k, number: _ } = O(e, "locale");
7631
+ T.tickFormat((R) => _(R, k));
7620
7632
  let G;
7621
7633
  switch (r) {
7622
7634
  case Vs.LINEAR:
7623
- this.drawLinear(y, f, p);
7635
+ this.drawLinear(v, f, p);
7624
7636
  break;
7625
7637
  case Vs.QUANTIZE:
7626
7638
  G = this.drawQuantize(
7627
- y,
7639
+ v,
7628
7640
  m,
7629
7641
  h,
7630
7642
  f,
@@ -7634,7 +7646,7 @@ class Dm extends Dd {
7634
7646
  default:
7635
7647
  throw Error("Entered color legend type is not supported.");
7636
7648
  }
7637
- g.attr("transform", `translate(0,${Mt.color.axisYTranslation})`).call(b), g.select(".domain").remove(), g.select("g.tick:last-of-type text").style("text-anchor", u ? "middle" : "end"), g.select("g.tick:first-of-type text").style(
7649
+ g.attr("transform", `translate(0,${Mt.color.axisYTranslation})`).call(T), g.select(".domain").remove(), g.select("g.tick:last-of-type text").style("text-anchor", u ? "middle" : "end"), g.select("g.tick:first-of-type text").style(
7638
7650
  "text-anchor",
7639
7651
  u && this.chartType !== "choropleth" ? "middle" : "start"
7640
7652
  );
@@ -7654,7 +7666,7 @@ class Dm extends Dd {
7654
7666
  return I.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(r.domain()).join("rect").attr("x", (c) => r(c)).attr("y", 0).attr("width", Math.max(0, r.bandwidth() - 1)).attr("height", Mt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? r.bandwidth() - 1 : 0;
7655
7667
  }
7656
7668
  destroy() {
7657
- this.chartType === "heatmap" && this.services.events.removeEventListener(T.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
7669
+ this.chartType === "heatmap" && this.services.events.removeEventListener(b.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
7658
7670
  }
7659
7671
  }
7660
7672
  class Nm extends Rd {
@@ -7854,7 +7866,7 @@ class Pm extends dt {
7854
7866
  }
7855
7867
  addLegendListeners() {
7856
7868
  const { events: t } = this.services;
7857
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7869
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7858
7870
  }
7859
7871
  removeBackgroundListeners() {
7860
7872
  D(this.services.domUtils.getMainContainer()).on("click", () => null);
@@ -7906,7 +7918,7 @@ class Pm extends dt {
7906
7918
  } else
7907
7919
  d = n.value;
7908
7920
  const u = getComputedStyle(this, null).getPropertyValue("fill");
7909
- t.services.events.dispatchEvent(T.Tooltip.SHOW, {
7921
+ t.services.events.dispatchEvent(b.Tooltip.SHOW, {
7910
7922
  event: e,
7911
7923
  hoveredElement: s,
7912
7924
  items: [
@@ -7921,27 +7933,27 @@ class Pm extends dt {
7921
7933
  ]
7922
7934
  });
7923
7935
  }
7924
- t.services.events.dispatchEvent(T.CirclePack.CIRCLE_MOUSEOVER, {
7936
+ t.services.events.dispatchEvent(b.CirclePack.CIRCLE_MOUSEOVER, {
7925
7937
  event: e,
7926
7938
  element: s,
7927
7939
  datum: n
7928
7940
  });
7929
7941
  }).on("mousemove", function(e, n) {
7930
7942
  const s = D(this);
7931
- t.services.events.dispatchEvent(T.CirclePack.CIRCLE_MOUSEMOVE, {
7943
+ t.services.events.dispatchEvent(b.CirclePack.CIRCLE_MOUSEMOVE, {
7932
7944
  event: e,
7933
7945
  element: s,
7934
7946
  datum: n
7935
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
7947
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
7936
7948
  event: e
7937
7949
  });
7938
7950
  }).on("mouseout", function(e, n) {
7939
7951
  const s = D(this);
7940
- s.classed("hovered", !1), n.children && t.unhighlightChildren(n.children), t.services.events.dispatchEvent(T.CirclePack.CIRCLE_MOUSEOUT, {
7952
+ s.classed("hovered", !1), n.children && t.unhighlightChildren(n.children), t.services.events.dispatchEvent(b.CirclePack.CIRCLE_MOUSEOUT, {
7941
7953
  event: e,
7942
7954
  element: s,
7943
7955
  datum: n
7944
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
7956
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
7945
7957
  hoveredElement: s
7946
7958
  });
7947
7959
  }).on("click", function(e, n) {
@@ -7953,7 +7965,7 @@ class Pm extends dt {
7953
7965
  const o = t.parent.selectAll("circle.node");
7954
7966
  D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Hn), e.stopPropagation();
7955
7967
  }
7956
- t.services.events.dispatchEvent(T.CirclePack.CIRCLE_CLICK, {
7968
+ t.services.events.dispatchEvent(b.CirclePack.CIRCLE_CLICK, {
7957
7969
  event: e,
7958
7970
  element: s,
7959
7971
  datum: n
@@ -7963,7 +7975,7 @@ class Pm extends dt {
7963
7975
  destroy() {
7964
7976
  this.parent.selectAll("circle.node").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
7965
7977
  const t = this.services.events;
7966
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
7978
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
7967
7979
  }
7968
7980
  }
7969
7981
  function pp(i, t) {
@@ -7994,7 +8006,7 @@ class fp extends dt {
7994
8006
  }
7995
8007
  init() {
7996
8008
  const t = this.services.events;
7997
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8009
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7998
8010
  }
7999
8011
  getInnerRadius() {
8000
8012
  return Et.innerRadius;
@@ -8028,9 +8040,9 @@ class fp extends dt {
8028
8040
  }).on("end", () => {
8029
8041
  e.isRendering = !1;
8030
8042
  });
8031
- const { code: g, number: m } = O(s, "locale"), y = s.pie.labels.enabled, S = y ? h.filter((M) => M.data[r] > 0) : [], E = I.appendOrSelect(n, "g.labels").attr("role", lt.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(S, (M) => M.data[a]);
8043
+ const { code: g, number: m } = O(s, "locale"), v = s.pie.labels.enabled, S = v ? h.filter((M) => M.data[r] > 0) : [], E = I.appendOrSelect(n, "g.labels").attr("role", lt.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(S, (M) => M.data[a]);
8032
8044
  E.exit().attr("opacity", 0).remove();
8033
- const x = E.enter().append("text").classed("pie-label", !0), b = [];
8045
+ const x = E.enter().append("text").classed("pie-label", !0), T = [];
8034
8046
  x.merge(E).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
8035
8047
  ...M,
8036
8048
  percentageValue: Ps(
@@ -8049,17 +8061,17 @@ class fp extends dt {
8049
8061
  const P = S.length, $ = (M.endAngle - M.startAngle) * (180 / Math.PI);
8050
8062
  if (L >= P - 2 && $ < Et.callout.minSliceDegree) {
8051
8063
  let C, V;
8052
- return M.index === P - 1 ? (C = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.RIGHT, b.push(M)) : (C = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.LEFT, b.push(M)), `translate(${C}, ${V})`;
8064
+ return M.index === P - 1 ? (C = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.RIGHT, T.push(M)) : (C = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.LEFT, T.push(M)), `translate(${C}, ${V})`;
8053
8065
  }
8054
8066
  return `translate(${M.xPosition}, ${M.yPosition})`;
8055
- }), this.renderCallouts(b);
8056
- const _ = O(s, "donut") ? "donut" : "pie", k = O(s, _, "alignment"), { width: G } = I.getSVGElementSize(this.getParent(), {
8067
+ }), this.renderCallouts(T);
8068
+ const k = O(s, "donut") ? "donut" : "pie", _ = O(s, k, "alignment"), { width: G } = I.getSVGElementSize(this.getParent(), {
8057
8069
  useAttrs: !0
8058
- }), R = y ? Et.xOffset : 0, A = y ? Et.yOffset : 0;
8070
+ }), R = v ? Et.xOffset : 0, A = v ? Et.yOffset : 0;
8059
8071
  let H = c + R;
8060
- k === te.CENTER ? H = G / 2 : k === te.RIGHT && (H = G - c - Et.xOffset);
8072
+ _ === te.CENTER ? H = G / 2 : _ === te.RIGHT && (H = G - c - Et.xOffset);
8061
8073
  let N = c + A;
8062
- b.length > 0 && (N += Et.yOffsetCallout), n.attr("x", H + 7).attr("y", N), this.addEventListeners();
8074
+ T.length > 0 && (N += Et.yOffsetCallout), n.attr("x", H + 7).attr("y", N), this.addEventListeners();
8063
8075
  }
8064
8076
  renderCallouts(t) {
8065
8077
  const e = I.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", lt.GROUP).attr("data-name", "callouts"), n = e.selectAll("g.callout").data(t);
@@ -8095,13 +8107,13 @@ class fp extends dt {
8095
8107
  transition: o,
8096
8108
  name: "pie_slice_mouseover"
8097
8109
  })
8098
- ).attr("d", t.hoverArc), t.services.events.dispatchEvent(T.Pie.SLICE_MOUSEOVER, {
8110
+ ).attr("d", t.hoverArc), t.services.events.dispatchEvent(b.Pie.SLICE_MOUSEOVER, {
8099
8111
  event: e,
8100
8112
  element: D(this),
8101
8113
  datum: n
8102
8114
  });
8103
8115
  const { groupMapsTo: a } = t.getOptions().data, { valueMapsTo: r } = t.getOptions().pie;
8104
- t.services.events.dispatchEvent(T.Tooltip.SHOW, {
8116
+ t.services.events.dispatchEvent(b.Tooltip.SHOW, {
8105
8117
  event: e,
8106
8118
  hoveredElement: s,
8107
8119
  items: [
@@ -8113,15 +8125,15 @@ class fp extends dt {
8113
8125
  });
8114
8126
  }).on("mousemove", function(e, n) {
8115
8127
  const s = D(this);
8116
- t.services.events.dispatchEvent(T.Pie.SLICE_MOUSEMOVE, {
8128
+ t.services.events.dispatchEvent(b.Pie.SLICE_MOUSEMOVE, {
8117
8129
  event: e,
8118
8130
  element: s,
8119
8131
  datum: n
8120
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
8132
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
8121
8133
  event: e
8122
8134
  });
8123
8135
  }).on("click", function(e, n) {
8124
- t.services.events.dispatchEvent(T.Pie.SLICE_CLICK, {
8136
+ t.services.events.dispatchEvent(b.Pie.SLICE_CLICK, {
8125
8137
  event: e,
8126
8138
  element: D(this),
8127
8139
  datum: n
@@ -8135,11 +8147,11 @@ class fp extends dt {
8135
8147
  name: "pie_slice_mouseout"
8136
8148
  })
8137
8149
  ).attr("d", t.arc);
8138
- }, 100), t.services.events.dispatchEvent(T.Pie.SLICE_MOUSEOUT, {
8150
+ }, 100), t.services.events.dispatchEvent(b.Pie.SLICE_MOUSEOUT, {
8139
8151
  event: e,
8140
8152
  element: s,
8141
8153
  datum: n
8142
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
8154
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
8143
8155
  hoveredElement: s
8144
8156
  });
8145
8157
  });
@@ -8262,8 +8274,8 @@ class Vm extends dt {
8262
8274
  const g = O(n, "gauge", "alignment"), { width: m } = I.getSVGElementSize(this.getParent(), {
8263
8275
  useAttrs: !0
8264
8276
  });
8265
- let y = d;
8266
- g === te.CENTER ? y = m / 2 : g === te.RIGHT && (y = m - d), e.attr("x", y).attr("y", d), this.addEventListeners();
8277
+ let v = d;
8278
+ g === te.CENTER ? v = m / 2 : g === te.RIGHT && (v = m - d), e.attr("x", v).attr("y", d), this.addEventListeners();
8267
8279
  }
8268
8280
  /**
8269
8281
  * draws the value number associated with the Gauge component in the center
@@ -8275,18 +8287,18 @@ class Vm extends dt {
8275
8287
  const u = I.appendOrSelect(t, "g.gauge-numbers").attr(
8276
8288
  "transform",
8277
8289
  `translate(0, ${d})`
8278
- ), p = o(r), f = I.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = O(e, "locale"), y = O(e, "gauge", "numberFormatter"), S = f.selectAll("text.gauge-value-number").data([s]);
8290
+ ), p = o(r), f = I.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = O(e, "locale"), v = O(e, "gauge", "numberFormatter"), S = f.selectAll("text.gauge-value-number").data([s]);
8279
8291
  S.enter().append("text").attr("class", "gauge-value-number").merge(S).style("font-size", `${p}px`).attr("text-anchor", "middle").text((G) => {
8280
8292
  let R;
8281
- return G != null ? R = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : R = 0, y ? y(R) : m(Number(R), g);
8293
+ return G != null ? R = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : R = 0, v ? v(R) : m(Number(R), g);
8282
8294
  });
8283
- const { width: v } = I.getSVGElementSize(
8295
+ const { width: y } = I.getSVGElementSize(
8284
8296
  I.appendOrSelect(t, "text.gauge-value-number"),
8285
8297
  { useBBox: !0 }
8286
- ), E = p / 2, x = h ? "%" : "", b = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", v / 2).text(x), { width: _, height: k } = I.getSVGElementSize(b, {
8298
+ ), E = p / 2, x = h ? "%" : "", T = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", y / 2).text(x), { width: k, height: _ } = I.getSVGElementSize(T, {
8287
8299
  useBBox: !0
8288
8300
  });
8289
- b.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${_ / 2}, 0)`);
8301
+ T.attr("y", `-${_ / 2}px`), f.attr("transform", `translate(-${k / 2}, 0)`);
8290
8302
  }
8291
8303
  /**
8292
8304
  * adds the delta number for the gauge
@@ -8302,16 +8314,16 @@ class Vm extends dt {
8302
8314
  let x;
8303
8315
  return E != null ? x = Number(E.toFixed(2)) % 1 !== 0 ? E.toFixed(2) : E.toFixed() : x = 0, l ? `${l(x)}${m}` : `${r(Number(x), a)}${m}`;
8304
8316
  });
8305
- const { width: y } = I.getSVGElementSize(
8317
+ const { width: v } = I.getSVGElementSize(
8306
8318
  I.appendOrSelect(e, ".gauge-delta-number"),
8307
8319
  { useBBox: !0 }
8308
- ), S = O(n, "gauge", "deltaArrow", "enabled"), v = f.selectAll("svg.gauge-delta-arrow").data(s !== null && S ? [s] : []);
8309
- v.enter().append("svg").merge(v).attr("class", "gauge-delta-arrow").attr("x", -h(o) - y / 2).attr("y", -h(o) / 2 - c(o) * 0.35).attr("width", h(o)).attr("height", h(o)).attr("viewBox", "0 0 16 16").each(function() {
8320
+ ), S = O(n, "gauge", "deltaArrow", "enabled"), y = f.selectAll("svg.gauge-delta-arrow").data(s !== null && S ? [s] : []);
8321
+ y.enter().append("svg").merge(y).attr("class", "gauge-delta-arrow").attr("x", -h(o) - v / 2).attr("y", -h(o) / 2 - c(o) * 0.35).attr("width", h(o)).attr("height", h(o)).attr("viewBox", "0 0 16 16").each(function() {
8310
8322
  const E = D(this);
8311
8323
  I.appendOrSelect(E, "rect.gauge-delta-arrow-backdrop").attr("width", "16").attr("height", "16").attr("fill", "none");
8312
8324
  const x = O(n, "gauge", "status");
8313
8325
  I.appendOrSelect(E, "polygon.gauge-delta-arrow").attr("class", x !== null ? `gauge-delta-arrow status--${x}` : "").attr("points", t.getArrow(s));
8314
- }), v.exit().remove(), g.exit().remove();
8326
+ }), y.exit().remove(), g.exit().remove();
8315
8327
  } else {
8316
8328
  const o = e.select("g.gauge-delta");
8317
8329
  o.empty() || o.remove();
@@ -8324,27 +8336,27 @@ class Vm extends dt {
8324
8336
  addEventListeners() {
8325
8337
  const t = this;
8326
8338
  this.parent.selectAll("path.arc-foreground").on("mouseover", function(e, n) {
8327
- t.services.events.dispatchEvent(T.Gauge.ARC_MOUSEOVER, {
8339
+ t.services.events.dispatchEvent(b.Gauge.ARC_MOUSEOVER, {
8328
8340
  event: e,
8329
8341
  element: D(this),
8330
8342
  datum: n
8331
8343
  });
8332
8344
  }).on("mousemove", function(e, n) {
8333
8345
  const s = D(this);
8334
- t.services.events.dispatchEvent(T.Gauge.ARC_MOUSEMOVE, {
8346
+ t.services.events.dispatchEvent(b.Gauge.ARC_MOUSEMOVE, {
8335
8347
  event: e,
8336
8348
  element: s,
8337
8349
  datum: n
8338
8350
  });
8339
8351
  }).on("click", function(e, n) {
8340
- t.services.events.dispatchEvent(T.Gauge.ARC_CLICK, {
8352
+ t.services.events.dispatchEvent(b.Gauge.ARC_CLICK, {
8341
8353
  event: e,
8342
8354
  element: D(this),
8343
8355
  datum: n
8344
8356
  });
8345
8357
  }).on("mouseout", function(e, n) {
8346
8358
  const s = D(this);
8347
- t.services.events.dispatchEvent(T.Gauge.ARC_MOUSEOUT, {
8359
+ t.services.events.dispatchEvent(b.Gauge.ARC_MOUSEOUT, {
8348
8360
  event: e,
8349
8361
  element: s,
8350
8362
  datum: n
@@ -8380,7 +8392,7 @@ class Gm extends ea {
8380
8392
  }
8381
8393
  init() {
8382
8394
  const t = this.services.events;
8383
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8395
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8384
8396
  }
8385
8397
  render(t) {
8386
8398
  const e = this.model.getDisplayData(this.configs.groups), n = this.getOptions(), { groupMapsTo: s } = n.data;
@@ -8424,10 +8436,10 @@ class Gm extends ea {
8424
8436
  const p = this.services.cartesianScales.getDomainIdentifier(u);
8425
8437
  return this.model.getFillColor(u[s], u[p], u);
8426
8438
  }).attr("d", (u) => {
8427
- const p = this.groupScale(u[s]), f = this.getBarWidth(), g = p, m = p + f, y = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), S = this.services.cartesianScales.getDomainLowerBound(y), v = this.services.cartesianScales.getValueThroughAxisPosition(y, S), E = this.services.cartesianScales.getRangeValue(u), x = this.services.cartesianScales.getDomainValue(u) - f / 2, b = x + f;
8428
- if (!this.isOutsideZoomedDomain(x, b))
8439
+ const p = this.groupScale(u[s]), f = this.getBarWidth(), g = p, m = p + f, v = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), S = this.services.cartesianScales.getDomainLowerBound(v), y = this.services.cartesianScales.getValueThroughAxisPosition(v, S), E = this.services.cartesianScales.getRangeValue(u), x = this.services.cartesianScales.getDomainValue(u) - f / 2, T = x + f;
8440
+ if (!this.isOutsideZoomedDomain(x, T))
8429
8441
  return Gt(
8430
- { x0: g, x1: m, y0: v, y1: E },
8442
+ { x0: g, x1: m, y0: y, y1: E },
8431
8443
  this.services.cartesianScales.getOrientation()
8432
8444
  );
8433
8445
  }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
@@ -8436,37 +8448,37 @@ class Gm extends ea {
8436
8448
  const t = this;
8437
8449
  this.parent.selectAll("path.bar").on("mouseover", function(e, n) {
8438
8450
  const s = D(this);
8439
- s.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
8451
+ s.classed("hovered", !0), t.services.events.dispatchEvent(b.Bar.BAR_MOUSEOVER, {
8440
8452
  event: e,
8441
8453
  element: s,
8442
8454
  datum: n
8443
- }), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
8455
+ }), t.services.events.dispatchEvent(b.Tooltip.SHOW, {
8444
8456
  event: e,
8445
8457
  hoveredElement: s,
8446
8458
  data: [n]
8447
8459
  });
8448
8460
  }).on("mousemove", function(e, n) {
8449
8461
  const s = D(this);
8450
- t.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
8462
+ t.services.events.dispatchEvent(b.Bar.BAR_MOUSEMOVE, {
8451
8463
  event: e,
8452
8464
  element: s,
8453
8465
  datum: n
8454
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
8466
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
8455
8467
  event: e
8456
8468
  });
8457
8469
  }).on("click", function(e, n) {
8458
- t.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
8470
+ t.services.events.dispatchEvent(b.Bar.BAR_CLICK, {
8459
8471
  event: e,
8460
8472
  element: D(this),
8461
8473
  datum: n
8462
8474
  });
8463
8475
  }).on("mouseout", function(e, n) {
8464
8476
  const s = D(this);
8465
- s.classed("hovered", !1), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
8477
+ s.classed("hovered", !1), t.services.events.dispatchEvent(b.Bar.BAR_MOUSEOUT, {
8466
8478
  event: e,
8467
8479
  element: s,
8468
8480
  datum: n
8469
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
8481
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
8470
8482
  hoveredElement: s
8471
8483
  });
8472
8484
  });
@@ -8474,7 +8486,7 @@ class Gm extends ea {
8474
8486
  destroy() {
8475
8487
  this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
8476
8488
  const t = this.services.events;
8477
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8489
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8478
8490
  }
8479
8491
  getDataCorrespondingToLabel(t) {
8480
8492
  return this.model.getDisplayData(this.configs.groups).filter((n) => {
@@ -8551,7 +8563,7 @@ class Hm extends dt {
8551
8563
  }
8552
8564
  d += g, u = g < u ? g : u, p = g > p ? g : p;
8553
8565
  }
8554
- })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${pi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${pi(c.range())},${l(n)})`), this.services.events.dispatchEvent(T.Tooltip.SHOW, {
8566
+ })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${pi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${pi(c.range())},${l(n)})`), this.services.events.dispatchEvent(b.Tooltip.SHOW, {
8555
8567
  event: e.event,
8556
8568
  hoveredElement: D(t.detail.element),
8557
8569
  items: [
@@ -8575,14 +8587,14 @@ class Hm extends dt {
8575
8587
  ]
8576
8588
  });
8577
8589
  }, this.handleAxisMouseOut = (t) => {
8578
- this.parent.selectAll("g.multi-cell").classed("highlighter-hidden", !0), this.services.events.dispatchEvent(T.Tooltip.HIDE, {
8590
+ this.parent.selectAll("g.multi-cell").classed("highlighter-hidden", !0), this.services.events.dispatchEvent(b.Tooltip.HIDE, {
8579
8591
  event: t
8580
8592
  });
8581
8593
  };
8582
8594
  }
8583
8595
  init() {
8584
8596
  const t = this.services.events;
8585
- t.addEventListener(T.Axis.LABEL_MOUSEOVER, this.handleAxisOnHover), t.addEventListener(T.Axis.LABEL_MOUSEOUT, this.handleAxisMouseOut), t.addEventListener(T.Axis.LABEL_FOCUS, this.handleAxisOnHover), t.addEventListener(T.Axis.LABEL_BLUR, this.handleAxisMouseOut);
8597
+ t.addEventListener(b.Axis.LABEL_MOUSEOVER, this.handleAxisOnHover), t.addEventListener(b.Axis.LABEL_MOUSEOUT, this.handleAxisMouseOut), t.addEventListener(b.Axis.LABEL_FOCUS, this.handleAxisOnHover), t.addEventListener(b.Axis.LABEL_BLUR, this.handleAxisMouseOut);
8586
8598
  }
8587
8599
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8588
8600
  // @ts-ignore
@@ -8644,11 +8656,11 @@ class Hm extends dt {
8644
8656
  t.parent.select("g.cell-highlight").attr(
8645
8657
  "transform",
8646
8658
  `translate(${f.x + t.translationUnits.x}, ${f.y + t.translationUnits.y})`
8647
- ).classed("highlighter-hidden", !1), t.services.events.dispatchEvent(T.Heatmap.HEATMAP_MOUSEOVER, {
8659
+ ).classed("highlighter-hidden", !1), t.services.events.dispatchEvent(b.Heatmap.HEATMAP_MOUSEOVER, {
8648
8660
  event: l,
8649
8661
  element: u,
8650
8662
  datum: h
8651
- }), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
8663
+ }), t.services.events.dispatchEvent(b.Tooltip.SHOW, {
8652
8664
  event: l,
8653
8665
  items: [
8654
8666
  {
@@ -8668,26 +8680,26 @@ class Hm extends dt {
8668
8680
  });
8669
8681
  }
8670
8682
  }).on("mousemove", function(l, h) {
8671
- t.services.events.dispatchEvent(T.Heatmap.HEATMAP_MOUSEMOVE, {
8683
+ t.services.events.dispatchEvent(b.Heatmap.HEATMAP_MOUSEMOVE, {
8672
8684
  event: l,
8673
8685
  element: D(this),
8674
8686
  datum: h
8675
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
8687
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
8676
8688
  event: l
8677
8689
  });
8678
8690
  }).on("click", function(l, h) {
8679
- t.services.events.dispatchEvent(T.Heatmap.HEATMAP_CLICK, {
8691
+ t.services.events.dispatchEvent(b.Heatmap.HEATMAP_CLICK, {
8680
8692
  event: l,
8681
8693
  element: D(this),
8682
8694
  datum: h
8683
8695
  });
8684
8696
  }).on("mouseout", function(l, h) {
8685
8697
  const u = D(this).select("rect.heat"), p = u.classed("null-state");
8686
- t.parent.select("g.cell-highlight").classed("highlighter-hidden", !0), p || (t.services.events.dispatchEvent(T.Heatmap.HEATMAP_MOUSEOUT, {
8698
+ t.parent.select("g.cell-highlight").classed("highlighter-hidden", !0), p || (t.services.events.dispatchEvent(b.Heatmap.HEATMAP_MOUSEOUT, {
8687
8699
  event: l,
8688
8700
  element: u,
8689
8701
  datum: h
8690
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
8702
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
8691
8703
  event: l,
8692
8704
  hoveredElement: u
8693
8705
  }));
@@ -8697,7 +8709,7 @@ class Hm extends dt {
8697
8709
  destroy() {
8698
8710
  this.parent.selectAll("rect.heat").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
8699
8711
  const t = this.services.events;
8700
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleAxisOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
8712
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleAxisOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
8701
8713
  }
8702
8714
  }
8703
8715
  class Bm extends dt {
@@ -8721,7 +8733,7 @@ class Bm extends dt {
8721
8733
  }
8722
8734
  init() {
8723
8735
  const t = this.services.events;
8724
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8736
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8725
8737
  }
8726
8738
  render(t) {
8727
8739
  const e = this.getComponentContainer({
@@ -8760,7 +8772,7 @@ class Bm extends dt {
8760
8772
  const c = D(this);
8761
8773
  c.classed("hovered", !0);
8762
8774
  const l = s(parseFloat(xt(o, "data.x0")), n), h = s(parseFloat(xt(o, "data.x1")), n), d = a.services.cartesianScales.getRangeAxisPosition(), u = a.services.cartesianScales.getScaleLabel(d);
8763
- a.services.events.dispatchEvent(T.Tooltip.SHOW, {
8775
+ a.services.events.dispatchEvent(b.Tooltip.SHOW, {
8764
8776
  event: r,
8765
8777
  hoveredElement: c,
8766
8778
  items: [
@@ -8783,17 +8795,17 @@ class Bm extends dt {
8783
8795
  ]
8784
8796
  });
8785
8797
  }).on("mousemove", function(r) {
8786
- a.services.events.dispatchEvent(T.Tooltip.MOVE, {
8798
+ a.services.events.dispatchEvent(b.Tooltip.MOVE, {
8787
8799
  event: r
8788
8800
  });
8789
8801
  }).on("mouseout", function() {
8790
- D(this).classed("hovered", !1), a.services.events.dispatchEvent(T.Tooltip.HIDE);
8802
+ D(this).classed("hovered", !1), a.services.events.dispatchEvent(b.Tooltip.HIDE);
8791
8803
  });
8792
8804
  }
8793
8805
  destroy() {
8794
8806
  this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
8795
8807
  const t = this.services.events;
8796
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8808
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8797
8809
  }
8798
8810
  }
8799
8811
  class zm extends Qi {
@@ -8822,48 +8834,48 @@ class zm extends Qi {
8822
8834
  }
8823
8835
  init() {
8824
8836
  const { events: t } = this.services;
8825
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8837
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8826
8838
  }
8827
8839
  render(t) {
8828
- const e = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: s } = n.data, { cartesianScales: a } = this.services, r = a.getMainXScale(), o = a.getMainYScale(), c = a.getDomainIdentifier(), l = (y) => a.getDomainValue(y), h = (y) => a.getRangeValue(y), d = a.getOrientation(), [u, p] = xe(
8840
+ const e = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: s } = n.data, { cartesianScales: a } = this.services, r = a.getMainXScale(), o = a.getMainYScale(), c = a.getDomainIdentifier(), l = (v) => a.getDomainValue(v), h = (v) => a.getRangeValue(v), d = a.getOrientation(), [u, p] = xe(
8829
8841
  l,
8830
8842
  h,
8831
8843
  d
8832
8844
  ), f = e.selectAll("line.line").data(
8833
8845
  this.getScatterData(),
8834
- (y) => `${y[s]}-${y[c]}`
8846
+ (v) => `${v[s]}-${v[c]}`
8835
8847
  );
8836
8848
  f.exit().attr("opacity", 0).remove();
8837
8849
  const m = f.enter().append("line").attr("opacity", 0).merge(f).classed("line", !0).attr(
8838
8850
  "class",
8839
- (y) => this.model.getColorClassName({
8851
+ (v) => this.model.getColorClassName({
8840
8852
  classNameTypes: [nt.STROKE],
8841
- dataGroupName: y[s],
8853
+ dataGroupName: v[s],
8842
8854
  originalClassName: "line"
8843
8855
  })
8844
8856
  ).transition().call(
8845
- (y) => this.services.transitions.setupTransition({
8846
- transition: y,
8857
+ (v) => this.services.transitions.setupTransition({
8858
+ transition: v,
8847
8859
  name: "lollipop-line-update-enter",
8848
8860
  animate: t
8849
8861
  })
8850
- ).style("stroke", (y) => this.model.getFillColor(y[s], y[c], y)).attr("opacity", 1);
8851
- d === Xt.HORIZONTAL ? m.attr("y1", p).attr("y2", p).attr("x1", r.range()[0]).attr("x2", (y) => u(y) - n.points.radius) : m.attr("x1", u).attr("x2", u).attr("y1", o.range()[0]).attr("y2", (y) => p(y) + n.points.radius), this.addScatterPointEventListeners();
8862
+ ).style("stroke", (v) => this.model.getFillColor(v[s], v[c], v)).attr("opacity", 1);
8863
+ d === Xt.HORIZONTAL ? m.attr("y1", p).attr("y2", p).attr("x1", r.range()[0]).attr("x2", (v) => u(v) - n.points.radius) : m.attr("x1", u).attr("x2", u).attr("y1", o.range()[0]).attr("y2", (v) => p(v) + n.points.radius), this.addScatterPointEventListeners();
8852
8864
  }
8853
8865
  // listen for when individual datapoints are hovered
8854
8866
  addScatterPointEventListeners() {
8855
8867
  this.services.events.addEventListener(
8856
- T.Scatter.SCATTER_MOUSEOVER,
8868
+ b.Scatter.SCATTER_MOUSEOVER,
8857
8869
  this.handleScatterOnHover
8858
8870
  ), this.services.events.addEventListener(
8859
- T.Scatter.SCATTER_MOUSEOUT,
8871
+ b.Scatter.SCATTER_MOUSEOUT,
8860
8872
  this.handleScatterOnMouseOut
8861
8873
  );
8862
8874
  }
8863
8875
  destroy() {
8864
8876
  const t = this.services.events;
8865
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(T.Scatter.SCATTER_MOUSEOVER, this.handleScatterOnHover), t.removeEventListener(
8866
- T.Scatter.SCATTER_MOUSEOUT,
8877
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(b.Scatter.SCATTER_MOUSEOVER, this.handleScatterOnHover), t.removeEventListener(
8878
+ b.Scatter.SCATTER_MOUSEOUT,
8867
8879
  this.handleScatterOnMouseOut
8868
8880
  );
8869
8881
  }
@@ -8894,8 +8906,8 @@ class Um extends dt {
8894
8906
  if (O(s, "meter", "proportional") === null)
8895
8907
  h = 100;
8896
8908
  else {
8897
- const v = O(s, "meter", "proportional", "total");
8898
- h = v || this.model.getMaximumDomain(this.model.getDisplayData());
8909
+ const y = O(s, "meter", "proportional", "total");
8910
+ h = y || this.model.getMaximumDomain(this.model.getDisplayData());
8899
8911
  }
8900
8912
  const d = Re().domain([0, h]).range([0, c]), u = this.getStackedBounds(r, d), p = O(s, "meter", "height");
8901
8913
  I.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", c).attr(
@@ -8906,42 +8918,42 @@ class Um extends dt {
8906
8918
  p || (a ? _t.height.proportional : _t.height.default)
8907
8919
  );
8908
8920
  const f = n.selectAll("rect.value").data(u), g = o != null && !e.model.isUserProvidedColorScaleValid() && !a ? `value status--${o}` : "value";
8909
- f.enter().append("rect").classed("value", !0).merge(f).attr("x", (v) => v.x).attr("y", 0).attr("height", () => p || (a ? _t.height.proportional : _t.height.default)).attr(
8921
+ f.enter().append("rect").classed("value", !0).merge(f).attr("x", (y) => y.x).attr("y", 0).attr("height", () => p || (a ? _t.height.proportional : _t.height.default)).attr(
8910
8922
  "class",
8911
- (v) => this.model.getColorClassName({
8923
+ (y) => this.model.getColorClassName({
8912
8924
  classNameTypes: [nt.FILL],
8913
- dataGroupName: v[l],
8925
+ dataGroupName: y[l],
8914
8926
  originalClassName: g
8915
8927
  })
8916
8928
  ).transition().call(
8917
- (v) => this.services.transitions.setupTransition({
8918
- transition: v,
8929
+ (y) => this.services.transitions.setupTransition({
8930
+ transition: y,
8919
8931
  name: "meter-bar-update",
8920
8932
  animate: t
8921
8933
  })
8922
- ).attr("width", (v) => v.value > h ? d(h) : Math.max(v.width, 2)).style("fill", (v) => e.model.getFillColor(v[l], null, v)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (v) => v.value), f.exit().remove();
8934
+ ).attr("width", (y) => y.value > h ? d(h) : Math.max(y.width, 2)).style("fill", (y) => e.model.getFillColor(y[l], null, y)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (y) => y.value), f.exit().remove();
8923
8935
  const m = O(s, "meter", "peak");
8924
- let y = m;
8925
- m !== null && (m > h ? y = h : m < 0 && (y = 0));
8926
- const S = n.selectAll("line.peak").data(y == null ? [] : [y]);
8936
+ let v = m;
8937
+ m !== null && (m > h ? v = h : m < 0 && (v = 0));
8938
+ const S = n.selectAll("line.peak").data(v == null ? [] : [v]);
8927
8939
  S.enter().append("line").classed("peak", !0).merge(S).attr("y1", 0).attr("y2", () => p || (a ? _t.height.proportional : _t.height.default)).transition().call(
8928
- (v) => this.services.transitions.setupTransition({
8929
- transition: v,
8940
+ (y) => this.services.transitions.setupTransition({
8941
+ transition: y,
8930
8942
  name: "peak-line-update",
8931
8943
  animate: t
8932
8944
  })
8933
- ).attr("x1", (v) => d(v)).attr("x2", (v) => d(v)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "peak").attr("aria-label", (v) => v), S.exit().remove(), this.services.domUtils.setSVGMaxHeight(), this.addEventListeners();
8945
+ ).attr("x1", (y) => d(y)).attr("x2", (y) => d(y)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "peak").attr("aria-label", (y) => y), S.exit().remove(), this.services.domUtils.setSVGMaxHeight(), this.addEventListeners();
8934
8946
  }
8935
8947
  // add event listeners for tooltips on proportional meter bars
8936
8948
  addEventListeners() {
8937
8949
  const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = O(t, "meter", "proportional");
8938
8950
  this.parent.selectAll("rect.value").on("mouseover", function(a, r) {
8939
8951
  const o = D(this);
8940
- n.services.events.dispatchEvent(T.Meter.METER_MOUSEOVER, {
8952
+ n.services.events.dispatchEvent(b.Meter.METER_MOUSEOVER, {
8941
8953
  event: a,
8942
8954
  element: o,
8943
8955
  datum: r
8944
- }), s && (o.classed("hovered", !0), n.services.events.dispatchEvent(T.Tooltip.SHOW, {
8956
+ }), s && (o.classed("hovered", !0), n.services.events.dispatchEvent(b.Tooltip.SHOW, {
8945
8957
  event: a,
8946
8958
  hoveredElement: o,
8947
8959
  items: [
@@ -8953,26 +8965,26 @@ class Um extends dt {
8953
8965
  }));
8954
8966
  }).on("mousemove", function(a, r) {
8955
8967
  const o = D(this);
8956
- n.services.events.dispatchEvent(T.Meter.METER_MOUSEMOVE, {
8968
+ n.services.events.dispatchEvent(b.Meter.METER_MOUSEMOVE, {
8957
8969
  event: a,
8958
8970
  element: o,
8959
8971
  datum: r
8960
- }), s && n.services.events.dispatchEvent(T.Tooltip.MOVE, {
8972
+ }), s && n.services.events.dispatchEvent(b.Tooltip.MOVE, {
8961
8973
  event: a
8962
8974
  });
8963
8975
  }).on("click", function(a, r) {
8964
- n.services.events.dispatchEvent(T.Meter.METER_CLICK, {
8976
+ n.services.events.dispatchEvent(b.Meter.METER_CLICK, {
8965
8977
  event: a,
8966
8978
  element: D(this),
8967
8979
  datum: r
8968
8980
  });
8969
8981
  }).on("mouseout", function(a, r) {
8970
8982
  const o = D(this);
8971
- n.services.events.dispatchEvent(T.Meter.METER_MOUSEOUT, {
8983
+ n.services.events.dispatchEvent(b.Meter.METER_MOUSEOUT, {
8972
8984
  event: a,
8973
8985
  element: o,
8974
8986
  datum: r
8975
- }), s && (o.classed("hovered", !1), n.services.events.dispatchEvent(T.Tooltip.HIDE, {
8987
+ }), s && (o.classed("hovered", !1), n.services.events.dispatchEvent(b.Tooltip.HIDE, {
8976
8988
  hoveredElement: o
8977
8989
  }));
8978
8990
  });
@@ -9024,7 +9036,7 @@ class Fm extends dt {
9024
9036
  }
9025
9037
  init() {
9026
9038
  const { events: t } = this.services;
9027
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9039
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9028
9040
  }
9029
9041
  render(t = !0) {
9030
9042
  const e = this.getComponentContainer({
@@ -9036,12 +9048,12 @@ class Fm extends dt {
9036
9048
  const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), x = (Math.min(n, s) - S) / 2;
9037
9049
  if (x <= 0)
9038
9050
  return;
9039
- const b = zi().domain(this.fullDataNormalized.map((z) => z[h])).range([0, 2 * Math.PI].map((z) => z - Math.PI / 2)), _ = pi(this.fullDataNormalized.map((z) => z[d])), k = Re().domain([
9040
- _ >= 0 ? 0 : _,
9051
+ const T = zi().domain(this.fullDataNormalized.map((z) => z[h])).range([0, 2 * Math.PI].map((z) => z - Math.PI / 2)), k = pi(this.fullDataNormalized.map((z) => z[d])), _ = Re().domain([
9052
+ k >= 0 ? 0 : k,
9041
9053
  Ta(this.fullDataNormalized.map((z) => z[d]))
9042
- ]).range([g, x]).nice(f), G = k.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = id().angle((z) => b(z[h]) + Math.PI / 2).radius((z) => k(z[d])).curve(Al), H = this.uniqueKeys.map((z) => {
9054
+ ]).range([g, x]).nice(f), G = _.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = id().angle((z) => T(z[h]) + Math.PI / 2).radius((z) => _(z[d])).curve(Al), H = this.uniqueKeys.map((z) => {
9043
9055
  const B = this.getLabelDimensions(z).width, U = Ml(
9044
- b(z),
9056
+ T(z),
9045
9057
  x
9046
9058
  );
9047
9059
  return B + U;
@@ -9078,14 +9090,14 @@ class Fm extends dt {
9078
9090
  ).attr("d", (U) => A($(U))).attr("opacity", 0).remove()
9079
9091
  )
9080
9092
  ), I.appendOrSelect(e, "g.x-axes").attr("role", lt.GROUP).selectAll("line").data(this.uniqueKeys, (z) => z).join(
9081
- (z) => z.append("line").attr("opacity", 0).attr("class", (B) => `x-axis-${Fe(B)}`).attr("stroke-dasharray", "0").attr("x1", (B) => bt(b(B), 0, M).x).attr("y1", (B) => bt(b(B), 0, M).y).attr("x2", (B) => bt(b(B), 0, M).x).attr("y2", (B) => bt(b(B), 0, M).y).call(
9093
+ (z) => z.append("line").attr("opacity", 0).attr("class", (B) => `x-axis-${Fe(B)}`).attr("stroke-dasharray", "0").attr("x1", (B) => bt(T(B), 0, M).x).attr("y1", (B) => bt(T(B), 0, M).y).attr("x2", (B) => bt(T(B), 0, M).x).attr("y2", (B) => bt(T(B), 0, M).y).call(
9082
9094
  (B) => B.transition().call(
9083
9095
  (U) => this.services.transitions.setupTransition({
9084
9096
  transition: U,
9085
9097
  name: "radar_x_axes_enter",
9086
9098
  animate: t
9087
9099
  })
9088
- ).attr("opacity", 1).attr("x1", (U) => bt(b(U), k.range()[0], M).x).attr("y1", (U) => bt(b(U), k.range()[0], M).y).attr("x2", (U) => bt(b(U), k.range()[1], M).x).attr("y2", (U) => bt(b(U), k.range()[1], M).y)
9100
+ ).attr("opacity", 1).attr("x1", (U) => bt(T(U), _.range()[0], M).x).attr("y1", (U) => bt(T(U), _.range()[0], M).y).attr("x2", (U) => bt(T(U), _.range()[1], M).x).attr("y2", (U) => bt(T(U), _.range()[1], M).y)
9089
9101
  ),
9090
9102
  (z) => z.call(
9091
9103
  (B) => B.transition().call(
@@ -9094,7 +9106,7 @@ class Fm extends dt {
9094
9106
  name: "radar_x_axes_update",
9095
9107
  animate: t
9096
9108
  })
9097
- ).attr("opacity", 1).attr("x1", (U) => bt(b(U), k.range()[0], M).x).attr("y1", (U) => bt(b(U), k.range()[0], M).y).attr("x2", (U) => bt(b(U), k.range()[1], M).x).attr("y2", (U) => bt(b(U), k.range()[1], M).y)
9109
+ ).attr("opacity", 1).attr("x1", (U) => bt(T(U), _.range()[0], M).x).attr("y1", (U) => bt(T(U), _.range()[0], M).y).attr("x2", (U) => bt(T(U), _.range()[1], M).x).attr("y2", (U) => bt(T(U), _.range()[1], M).y)
9098
9110
  ),
9099
9111
  (z) => z.call(
9100
9112
  (B) => B.transition().call(
@@ -9108,13 +9120,13 @@ class Fm extends dt {
9108
9120
  ), I.appendOrSelect(e, "g.x-labels").attr("role", lt.GROUP).selectAll("text").data(this.uniqueKeys).join(
9109
9121
  (z) => z.append("text").text((B) => B).attr("opacity", 0).attr(
9110
9122
  "x",
9111
- (B) => bt(b(B), k.range()[1] + u, M).x
9123
+ (B) => bt(T(B), _.range()[1] + u, M).x
9112
9124
  ).attr(
9113
9125
  "y",
9114
- (B) => bt(b(B), k.range()[1] + u, M).y
9115
- ).style("text-anchor", (B) => ka(b(B)).textAnchor).style(
9126
+ (B) => bt(T(B), _.range()[1] + u, M).y
9127
+ ).style("text-anchor", (B) => ka(T(B)).textAnchor).style(
9116
9128
  "dominant-baseline",
9117
- (B) => ka(b(B)).dominantBaseline
9129
+ (B) => ka(T(B)).dominantBaseline
9118
9130
  ).call(
9119
9131
  (B) => B.transition().call(
9120
9132
  (U) => this.services.transitions.setupTransition({
@@ -9133,10 +9145,10 @@ class Fm extends dt {
9133
9145
  })
9134
9146
  ).attr("opacity", 1).attr(
9135
9147
  "x",
9136
- (U) => bt(b(U), k.range()[1] + u, M).x
9148
+ (U) => bt(T(U), _.range()[1] + u, M).x
9137
9149
  ).attr(
9138
9150
  "y",
9139
- (U) => bt(b(U), k.range()[1] + u, M).y
9151
+ (U) => bt(T(U), _.range()[1] + u, M).y
9140
9152
  ).end().finally(() => {
9141
9153
  const U = O(o, "radar", "alignment"), wt = this.getAlignmentXOffset(U, e, this.getParent());
9142
9154
  e.attr("x", wt);
@@ -9212,17 +9224,17 @@ class Fm extends dt {
9212
9224
  dataGroupName: z[c],
9213
9225
  originalClassName: Fe(z[h])
9214
9226
  })
9215
- ).attr("cx", (z) => bt(b(z[h]), k(z[d]), M).x).attr("cy", (z) => bt(b(z[h]), k(z[d]), M).y).attr("r", 0).attr("opacity", 0).style("fill", (z) => R(z[c])), I.appendOrSelect(e, "g.x-axes-rect").attr("role", lt.GROUP).selectAll("rect").data(this.uniqueKeys).join(
9227
+ ).attr("cx", (z) => bt(T(z[h]), _(z[d]), M).x).attr("cy", (z) => bt(T(z[h]), _(z[d]), M).y).attr("r", 0).attr("opacity", 0).style("fill", (z) => R(z[c])), I.appendOrSelect(e, "g.x-axes-rect").attr("role", lt.GROUP).selectAll("rect").data(this.uniqueKeys).join(
9216
9228
  (z) => z.append("rect"),
9217
9229
  (z) => z,
9218
9230
  (z) => z.remove()
9219
- ).attr("x", M.x).attr("y", M.y - m / 2).attr("width", k.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (z) => `rotate(${wl(b(z))}, ${M.x}, ${M.y})`);
9231
+ ).attr("x", M.x).attr("y", M.y - m / 2).attr("width", _.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (z) => `rotate(${wl(T(z))}, ${M.x}, ${M.y})`);
9220
9232
  const { code: ot, number: ct } = O(o, "locale");
9221
9233
  I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Os(G)).join(
9222
9234
  (z) => z.append("text").attr("opacity", 0).text((B) => ct(B, ot)).attr(
9223
9235
  "x",
9224
- (B) => bt(-Math.PI / 2, k(B), M).x + p
9225
- ).attr("y", (B) => bt(-Math.PI / 2, k(B), M).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
9236
+ (B) => bt(-Math.PI / 2, _(B), M).x + p
9237
+ ).attr("y", (B) => bt(-Math.PI / 2, _(B), M).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
9226
9238
  (B) => B.transition().call(
9227
9239
  (U) => this.services.transitions.setupTransition({
9228
9240
  transition: U,
@@ -9240,8 +9252,8 @@ class Fm extends dt {
9240
9252
  })
9241
9253
  ).text((U) => U).attr("opacity", 1).attr(
9242
9254
  "x",
9243
- (U) => bt(-Math.PI / 2, k(U), M).x + p
9244
- ).attr("y", (U) => bt(-Math.PI / 2, k(U), M).y)
9255
+ (U) => bt(-Math.PI / 2, _(U), M).x + p
9256
+ ).attr("y", (U) => bt(-Math.PI / 2, _(U), M).y)
9245
9257
  ),
9246
9258
  (z) => z.call(
9247
9259
  (B) => B.transition().call(
@@ -9266,7 +9278,7 @@ class Fm extends dt {
9266
9278
  destroy() {
9267
9279
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", null).on("mousemove", null).on("mouseout", null);
9268
9280
  const t = this.services.events;
9269
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9281
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9270
9282
  }
9271
9283
  addEventListeners() {
9272
9284
  const t = this, {
@@ -9274,7 +9286,7 @@ class Fm extends dt {
9274
9286
  } = O(this.getOptions(), "radar");
9275
9287
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", function(n, s) {
9276
9288
  const a = D(this);
9277
- t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEOVER, {
9289
+ t.services.events.dispatchEvent(b.Radar.X_AXIS_MOUSEOVER, {
9278
9290
  event: n,
9279
9291
  element: a,
9280
9292
  datum: s
@@ -9287,7 +9299,7 @@ class Fm extends dt {
9287
9299
  const u = t.fullDataNormalized.filter(
9288
9300
  (p) => p[e] === s && c.indexOf(p[h]) !== -1
9289
9301
  );
9290
- t.services.events.dispatchEvent(T.Tooltip.SHOW, {
9302
+ t.services.events.dispatchEvent(b.Tooltip.SHOW, {
9291
9303
  event: n,
9292
9304
  hoveredElement: a,
9293
9305
  items: u.filter((p) => typeof p[d] == "number").map((p) => ({
@@ -9302,26 +9314,26 @@ class Fm extends dt {
9302
9314
  });
9303
9315
  }).on("mousemove", function(n, s) {
9304
9316
  const a = D(this);
9305
- t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEMOVE, {
9317
+ t.services.events.dispatchEvent(b.Radar.X_AXIS_MOUSEMOVE, {
9306
9318
  event: n,
9307
9319
  element: a,
9308
9320
  datum: s
9309
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
9321
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
9310
9322
  event: n
9311
9323
  });
9312
9324
  }).on("click", function(n, s) {
9313
- t.services.events.dispatchEvent(T.Radar.X_AXIS_CLICK, {
9325
+ t.services.events.dispatchEvent(b.Radar.X_AXIS_CLICK, {
9314
9326
  event: n,
9315
9327
  element: D(this),
9316
9328
  datum: s
9317
9329
  });
9318
9330
  }).on("mouseout", function(n, s) {
9319
9331
  const a = D(this), r = t.parent.select(`.x-axes .x-axis-${Fe(s)}`), o = t.parent.selectAll(`.dots circle.${Fe(s)}`);
9320
- r.classed("hovered", !1).attr("stroke-dasharray", "0"), o.classed("hovered", !1).attr("opacity", 0).attr("r", 0), t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEOUT, {
9332
+ r.classed("hovered", !1).attr("stroke-dasharray", "0"), o.classed("hovered", !1).attr("opacity", 0).attr("r", 0), t.services.events.dispatchEvent(b.Radar.X_AXIS_MOUSEOUT, {
9321
9333
  event: n,
9322
9334
  element: a,
9323
9335
  datum: s
9324
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE);
9336
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE);
9325
9337
  });
9326
9338
  }
9327
9339
  }
@@ -9346,7 +9358,7 @@ class Wm extends ea {
9346
9358
  }
9347
9359
  init() {
9348
9360
  const t = this.services.events;
9349
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9361
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9350
9362
  }
9351
9363
  render(t) {
9352
9364
  const e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.getComponentContainer({
@@ -9375,11 +9387,11 @@ class Wm extends ea {
9375
9387
  if (Array.isArray(u) && u.length === 2)
9376
9388
  g = this.services.cartesianScales.getRangeValue(u[0]), m = this.services.cartesianScales.getRangeValue(u[1]);
9377
9389
  else {
9378
- const v = this.services.cartesianScales.getRangeScale().domain()[0];
9379
- g = this.services.cartesianScales.getRangeValue(Math.max(0, v)), m = this.services.cartesianScales.getRangeValue(l);
9390
+ const y = this.services.cartesianScales.getRangeScale().domain()[0];
9391
+ g = this.services.cartesianScales.getRangeValue(Math.max(0, y)), m = this.services.cartesianScales.getRangeValue(l);
9380
9392
  }
9381
- const y = Math.abs(m - g);
9382
- if (y !== 0 && y < 2 && (u > 0 && r === Xt.VERTICAL || u < 0 && r === Xt.HORIZONTAL ? m = g - 2 : m = g + 2), !this.isOutsideZoomedDomain(p, f))
9393
+ const v = Math.abs(m - g);
9394
+ if (v !== 0 && v < 2 && (u > 0 && r === Xt.VERTICAL || u < 0 && r === Xt.HORIZONTAL ? m = g - 2 : m = g + 2), !this.isOutsideZoomedDomain(p, f))
9383
9395
  return Gt({ x0: p, x1: f, y0: g, y1: m }, r);
9384
9396
  }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (l) => l.value), this.addEventListeners();
9385
9397
  }
@@ -9387,36 +9399,36 @@ class Wm extends ea {
9387
9399
  const t = this;
9388
9400
  this.parent.selectAll("path.bar").on("mouseover", function(e, n) {
9389
9401
  const s = D(this);
9390
- s.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
9402
+ s.classed("hovered", !0), t.services.events.dispatchEvent(b.Bar.BAR_MOUSEOVER, {
9391
9403
  event: e,
9392
9404
  element: s,
9393
9405
  datum: n
9394
- }), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
9406
+ }), t.services.events.dispatchEvent(b.Tooltip.SHOW, {
9395
9407
  event: e,
9396
9408
  hoveredElement: s,
9397
9409
  data: [n]
9398
9410
  });
9399
9411
  }).on("mousemove", function(e, n) {
9400
- t.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
9412
+ t.services.events.dispatchEvent(b.Bar.BAR_MOUSEMOVE, {
9401
9413
  event: e,
9402
9414
  element: D(this),
9403
9415
  datum: n
9404
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
9416
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
9405
9417
  event: e
9406
9418
  });
9407
9419
  }).on("click", function(e, n) {
9408
- t.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
9420
+ t.services.events.dispatchEvent(b.Bar.BAR_CLICK, {
9409
9421
  event: e,
9410
9422
  element: D(this),
9411
9423
  datum: n
9412
9424
  });
9413
9425
  }).on("mouseout", function(e, n) {
9414
9426
  const s = D(this);
9415
- s.classed("hovered", !1), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
9427
+ s.classed("hovered", !1), t.services.events.dispatchEvent(b.Bar.BAR_MOUSEOUT, {
9416
9428
  event: e,
9417
9429
  element: s,
9418
9430
  datum: n
9419
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
9431
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
9420
9432
  hoveredElement: s
9421
9433
  });
9422
9434
  });
@@ -9424,7 +9436,7 @@ class Wm extends ea {
9424
9436
  destroy() {
9425
9437
  this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
9426
9438
  const t = this.services.events;
9427
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9439
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9428
9440
  }
9429
9441
  }
9430
9442
  class Xm extends ip {
@@ -9477,7 +9489,7 @@ class Ym extends dt {
9477
9489
  }
9478
9490
  init() {
9479
9491
  const t = this.services.events;
9480
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9492
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9481
9493
  }
9482
9494
  render(t = !0) {
9483
9495
  const e = this.getComponentContainer({
@@ -9529,7 +9541,7 @@ class Zm extends ea {
9529
9541
  }
9530
9542
  init() {
9531
9543
  const t = this.services.events;
9532
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9544
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9533
9545
  }
9534
9546
  render(t) {
9535
9547
  const e = this.getComponentContainer({ ariaLabel: "stacked bar graphs", withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getStackedData({
@@ -9576,7 +9588,7 @@ class Zm extends ea {
9576
9588
  const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this;
9577
9589
  this.parent.selectAll("path.bar").on("mouseover", function(s, a) {
9578
9590
  const r = D(this);
9579
- r.classed("hovered", !0), n.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
9591
+ r.classed("hovered", !0), n.services.events.dispatchEvent(b.Bar.BAR_MOUSEOVER, {
9580
9592
  event: s,
9581
9593
  element: r,
9582
9594
  datum: a
@@ -9593,33 +9605,33 @@ class Zm extends ea {
9593
9605
  [e]: a[e]
9594
9606
  };
9595
9607
  }
9596
- n.services.events.dispatchEvent(T.Tooltip.SHOW, {
9608
+ n.services.events.dispatchEvent(b.Tooltip.SHOW, {
9597
9609
  event: s,
9598
9610
  hoveredElement: r,
9599
9611
  data: [c]
9600
9612
  });
9601
9613
  }).on("mousemove", function(s, a) {
9602
9614
  const r = D(this);
9603
- n.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
9615
+ n.services.events.dispatchEvent(b.Bar.BAR_MOUSEMOVE, {
9604
9616
  event: s,
9605
9617
  element: r,
9606
9618
  datum: a
9607
- }), n.services.events.dispatchEvent(T.Tooltip.MOVE, {
9619
+ }), n.services.events.dispatchEvent(b.Tooltip.MOVE, {
9608
9620
  event: s
9609
9621
  });
9610
9622
  }).on("click", function(s, a) {
9611
- n.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
9623
+ n.services.events.dispatchEvent(b.Bar.BAR_CLICK, {
9612
9624
  event: s,
9613
9625
  element: D(this),
9614
9626
  datum: a
9615
9627
  });
9616
9628
  }).on("mouseout", function(s, a) {
9617
9629
  const r = D(this);
9618
- r.classed("hovered", !1), n.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
9630
+ r.classed("hovered", !1), n.services.events.dispatchEvent(b.Bar.BAR_MOUSEOUT, {
9619
9631
  event: s,
9620
9632
  element: r,
9621
9633
  datum: a
9622
- }), n.services.events.dispatchEvent(T.Tooltip.HIDE, {
9634
+ }), n.services.events.dispatchEvent(b.Tooltip.HIDE, {
9623
9635
  hoveredElement: r
9624
9636
  });
9625
9637
  });
@@ -9636,7 +9648,7 @@ class Zm extends ea {
9636
9648
  destroy() {
9637
9649
  this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
9638
9650
  const t = this.services.events;
9639
- t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9651
+ t.removeEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9640
9652
  }
9641
9653
  }
9642
9654
  class qm extends Qi {
@@ -9672,13 +9684,13 @@ class qm extends Qi {
9672
9684
  c.forEach((h, d) => {
9673
9685
  const u = h[s], p = h.data.sharedStackKey;
9674
9686
  let f = h.data[u];
9675
- const g = h[1], m = this.services.cartesianScales.getDomainIdentifier(h), y = this.services.cartesianScales.getRangeIdentifier(h);
9687
+ const g = h[1], m = this.services.cartesianScales.getDomainIdentifier(h), v = this.services.cartesianScales.getRangeIdentifier(h);
9676
9688
  f != null && t === this.services.cartesianScales.getDomainValue(p) && e === this.services.cartesianScales.getRangeValue(g) && (a && (f = this.model.getStackedData({
9677
9689
  groups: this.configs.groups
9678
9690
  })[l][d].data[u]), f !== null && o.push({
9679
9691
  [s]: u,
9680
9692
  [m]: p,
9681
- [y]: f
9693
+ [v]: f
9682
9694
  }));
9683
9695
  });
9684
9696
  }), this.model.getDisplayData(this.configs.groups).filter((c) => {
@@ -9723,8 +9735,8 @@ class jm extends dt {
9723
9735
  }, u = Dn({
9724
9736
  name: o,
9725
9737
  children: r
9726
- }), p = 10, f = n / 6, g = (b) => {
9727
- const _ = u.descendants().reverse(), k = u.links();
9738
+ }), p = 10, f = n / 6, g = (T) => {
9739
+ const k = u.descendants().reverse(), _ = u.links();
9728
9740
  let G = u, R = u;
9729
9741
  u.eachBefore((C) => {
9730
9742
  C.x < G.x && (G = C), C.x > R.x && (R = C);
@@ -9735,48 +9747,48 @@ class jm extends dt {
9735
9747
  name: "tree-update-viewbox",
9736
9748
  animate: !0
9737
9749
  })
9738
- ).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(_, (C) => C.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${b.y0},${b.x0})`).attr(
9750
+ ).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(k, (C) => C.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${T.y0},${T.x0})`).attr(
9739
9751
  "class",
9740
9752
  (C) => C.depth !== 0 && C.children && C.children.length > 0 ? "clickable" : null
9741
9753
  ).on("mouseover", function(C, V) {
9742
- M.services.events.dispatchEvent(T.Tree.NODE_MOUSEOVER, {
9754
+ M.services.events.dispatchEvent(b.Tree.NODE_MOUSEOVER, {
9743
9755
  event: C,
9744
9756
  element: D(this),
9745
9757
  datum: V
9746
9758
  });
9747
9759
  }).on("click", function(C, V) {
9748
- V.depth !== 0 && (V.children = V.children ? null : V._children, g(V)), M.services.events.dispatchEvent(T.Tree.NODE_CLICK, {
9760
+ V.depth !== 0 && (V.children = V.children ? null : V._children, g(V)), M.services.events.dispatchEvent(b.Tree.NODE_CLICK, {
9749
9761
  event: C,
9750
9762
  element: D(this),
9751
9763
  datum: V
9752
9764
  });
9753
9765
  }).on("mouseout", function(C, V) {
9754
- M.services.events.dispatchEvent(T.Tree.NODE_MOUSEOUT, {
9766
+ M.services.events.dispatchEvent(b.Tree.NODE_MOUSEOUT, {
9755
9767
  event: C,
9756
9768
  element: D(this),
9757
9769
  datum: V
9758
9770
  });
9759
9771
  });
9760
- L.append("circle").attr("r", 2.5).attr("class", (C) => C._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (C) => C._children ? -6 : vn).attr("text-anchor", (C) => C._children ? "end" : "start").text((C) => C.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (C) => `translate(${C.y},${C.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${b.y},${b.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
9761
- const P = E.selectAll("path").data(k, (C) => C.target.id), $ = P.enter().append("path").attr("d", () => {
9762
- const C = { x: b.x0, y: b.y0 };
9763
- return v({ source: C, target: C });
9772
+ L.append("circle").attr("r", 2.5).attr("class", (C) => C._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (C) => C._children ? -6 : vn).attr("text-anchor", (C) => C._children ? "end" : "start").text((C) => C.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (C) => `translate(${C.y},${C.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${T.y},${T.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
9773
+ const P = E.selectAll("path").data(_, (C) => C.target.id), $ = P.enter().append("path").attr("d", () => {
9774
+ const C = { x: T.x0, y: T.y0 };
9775
+ return y({ source: C, target: C });
9764
9776
  });
9765
- P.merge($).transition(H).attr("d", v), P.exit().transition(H).remove().attr("d", () => {
9766
- const C = { x: b.x, y: b.y };
9767
- return v({ source: C, target: C });
9777
+ P.merge($).transition(H).attr("d", y), P.exit().transition(H).remove().attr("d", () => {
9778
+ const C = { x: T.x, y: T.y };
9779
+ return y({ source: C, target: C });
9768
9780
  }), u.eachBefore((C) => {
9769
9781
  C.x0 = C.x, C.y0 = C.y;
9770
9782
  });
9771
- }, m = u.descendants(), y = m[m.length - 1].depth, S = O(a, "tree", "type") === Tl.DENDROGRAM ? th().size([
9783
+ }, m = u.descendants(), v = m[m.length - 1].depth, S = O(a, "tree", "type") === Tl.DENDROGRAM ? th().size([
9772
9784
  s,
9773
- n - h - y * vn - c
9785
+ n - h - v * vn - c
9774
9786
  ]) : Bh().nodeSize([p, f]).size([
9775
9787
  s,
9776
- n - h - y * vn - c
9777
- ]), v = ud().x((b) => b.y).y((b) => b.x);
9778
- u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((b, _) => {
9779
- b.id = _, b._children = b.children;
9788
+ n - h - v * vn - c
9789
+ ]), y = ud().x((T) => T.y).y((T) => T.x);
9790
+ u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((T, k) => {
9791
+ T.id = k, T._children = T.children;
9780
9792
  }), S(u), e.attr("viewBox", [-d.left, -0, n, p]).style("user-select", "none");
9781
9793
  const E = e.append("g").attr("class", "links"), x = e.append("g").attr("class", "nodes");
9782
9794
  g(u);
@@ -9978,7 +9990,7 @@ class Km extends dt {
9978
9990
  }
9979
9991
  init() {
9980
9992
  const { events: t } = this.services;
9981
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9993
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9982
9994
  }
9983
9995
  render(t = !0) {
9984
9996
  const e = this.getComponentContainer({
@@ -10030,8 +10042,8 @@ class Km extends dt {
10030
10042
  const m = D(this.parentNode).attr("data-uid");
10031
10043
  return `${s.style.prefix}-clip-${m}`;
10032
10044
  }).append("use").attr("xlink:href", function() {
10033
- const m = D(this.parentNode.parentNode).attr("data-uid"), y = `${s.style.prefix}-leaf-${m}`;
10034
- return new URL(`#${y}`, a) + "";
10045
+ const m = D(this.parentNode.parentNode).attr("data-uid"), v = `${s.style.prefix}-leaf-${m}`;
10046
+ return new URL(`#${v}`, a) + "";
10035
10047
  }),
10036
10048
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10037
10049
  // @ts-ignore
@@ -10054,9 +10066,9 @@ class Km extends dt {
10054
10066
  (g) => g
10055
10067
  ).join(
10056
10068
  (g) => {
10057
- const m = g.append("text").text((y) => y.text).style("fill", Vr).attr("x", 7).attr("y", 18);
10069
+ const m = g.append("text").text((v) => v.text).style("fill", Vr).attr("x", 7).attr("y", 18);
10058
10070
  return a && m.attr("clip-path", function() {
10059
- const y = D(this.parentNode).attr("data-uid"), S = `${s.style.prefix}-clip-${y}`;
10071
+ const v = D(this.parentNode).attr("data-uid"), S = `${s.style.prefix}-clip-${v}`;
10060
10072
  return `url(${new URL(`#${S}`, a) + ""})`;
10061
10073
  }), m;
10062
10074
  },
@@ -10078,7 +10090,7 @@ class Km extends dt {
10078
10090
  ).style("fill", (o) => {
10079
10091
  const c = t.model.getFillColor(o.parent.data.name, null, o.data);
10080
10092
  return c && (a = c), Yr(a).darker(0.7).toString();
10081
- }), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
10093
+ }), t.services.events.dispatchEvent(b.Tooltip.SHOW, {
10082
10094
  event: e,
10083
10095
  hoveredElement: s,
10084
10096
  items: [
@@ -10092,22 +10104,22 @@ class Km extends dt {
10092
10104
  value: n.data.value
10093
10105
  }
10094
10106
  ]
10095
- }), t.services.events.dispatchEvent(T.Treemap.LEAF_MOUSEOVER, {
10107
+ }), t.services.events.dispatchEvent(b.Treemap.LEAF_MOUSEOVER, {
10096
10108
  event: e,
10097
10109
  element: s,
10098
10110
  datum: n
10099
10111
  });
10100
10112
  }).on("mousemove", function(e, n) {
10101
10113
  const s = D(this);
10102
- t.services.events.dispatchEvent(T.Treemap.LEAF_MOUSEMOVE, {
10114
+ t.services.events.dispatchEvent(b.Treemap.LEAF_MOUSEMOVE, {
10103
10115
  event: e,
10104
10116
  element: s,
10105
10117
  datum: n
10106
- }), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
10118
+ }), t.services.events.dispatchEvent(b.Tooltip.MOVE, {
10107
10119
  event: e
10108
10120
  });
10109
10121
  }).on("click", function(e, n) {
10110
- t.services.events.dispatchEvent(T.Treemap.LEAF_CLICK, {
10122
+ t.services.events.dispatchEvent(b.Treemap.LEAF_CLICK, {
10111
10123
  event: e,
10112
10124
  element: D(this),
10113
10125
  datum: n
@@ -10122,11 +10134,11 @@ class Km extends dt {
10122
10134
  transition: r,
10123
10135
  name: "graph_element_mouseout_fill_update"
10124
10136
  })
10125
- ).style("fill", (r) => t.model.getFillColor(r.parent.data.name, null, r.data)), t.services.events.dispatchEvent(T.Treemap.LEAF_MOUSEOUT, {
10137
+ ).style("fill", (r) => t.model.getFillColor(r.parent.data.name, null, r.data)), t.services.events.dispatchEvent(b.Treemap.LEAF_MOUSEOUT, {
10126
10138
  event: e,
10127
10139
  element: s,
10128
10140
  datum: n
10129
- }), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
10141
+ }), t.services.events.dispatchEvent(b.Tooltip.HIDE, {
10130
10142
  hoveredElement: s
10131
10143
  });
10132
10144
  });
@@ -10228,12 +10240,12 @@ function Kg() {
10228
10240
  rectangular: m
10229
10241
  }, n = 64, s = 2048;
10230
10242
  ui = function() {
10231
- var E = [256, 256], x = a, b = r, _ = c, k = o, G = o, R = l, A = h, H = g, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, C = {}, V = S;
10243
+ var E = [256, 256], x = a, T = r, k = c, _ = o, G = o, R = l, A = h, H = g, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, C = {}, V = S;
10232
10244
  C.canvas = function(F) {
10233
- return arguments.length ? (V = v(F), C) : V;
10245
+ return arguments.length ? (V = y(F), C) : V;
10234
10246
  }, C.start = function() {
10235
- var F = q(V()), Z = y((E[0] >> 5) * E[1]), rt = null, j = N.length, Y = -1, K = [], ot = N.map(function(st, it) {
10236
- return st.text = x.call(this, st, it), st.font = b.call(this, st, it), st.style = k.call(this, st, it), st.weight = G.call(this, st, it), st.rotate = R.call(this, st, it), st.size = ~~_.call(this, st, it), st.padding = A.call(this, st, it), st;
10247
+ var F = q(V()), Z = v((E[0] >> 5) * E[1]), rt = null, j = N.length, Y = -1, K = [], ot = N.map(function(st, it) {
10248
+ return st.text = x.call(this, st, it), st.font = T.call(this, st, it), st.style = _.call(this, st, it), st.weight = G.call(this, st, it), st.rotate = R.call(this, st, it), st.size = ~~k.call(this, st, it), st.padding = A.call(this, st, it), st;
10237
10249
  }).sort(function(st, it) {
10238
10250
  return it.size - st.size;
10239
10251
  });
@@ -10278,21 +10290,21 @@ function Kg() {
10278
10290
  }, C.size = function(F) {
10279
10291
  return arguments.length ? (E = [+F[0], +F[1]], C) : E;
10280
10292
  }, C.font = function(F) {
10281
- return arguments.length ? (b = v(F), C) : b;
10293
+ return arguments.length ? (T = y(F), C) : T;
10282
10294
  }, C.fontStyle = function(F) {
10283
- return arguments.length ? (k = v(F), C) : k;
10295
+ return arguments.length ? (_ = y(F), C) : _;
10284
10296
  }, C.fontWeight = function(F) {
10285
- return arguments.length ? (G = v(F), C) : G;
10297
+ return arguments.length ? (G = y(F), C) : G;
10286
10298
  }, C.rotate = function(F) {
10287
- return arguments.length ? (R = v(F), C) : R;
10299
+ return arguments.length ? (R = y(F), C) : R;
10288
10300
  }, C.text = function(F) {
10289
- return arguments.length ? (x = v(F), C) : x;
10301
+ return arguments.length ? (x = y(F), C) : x;
10290
10302
  }, C.spiral = function(F) {
10291
10303
  return arguments.length ? (H = e[F] || F, C) : H;
10292
10304
  }, C.fontSize = function(F) {
10293
- return arguments.length ? (_ = v(F), C) : _;
10305
+ return arguments.length ? (k = y(F), C) : k;
10294
10306
  }, C.padding = function(F) {
10295
- return arguments.length ? (A = v(F), C) : A;
10307
+ return arguments.length ? (A = y(F), C) : A;
10296
10308
  }, C.random = function(F) {
10297
10309
  return arguments.length ? ($ = F, C) : $;
10298
10310
  }, C.on = function() {
@@ -10318,14 +10330,14 @@ function Kg() {
10318
10330
  function h() {
10319
10331
  return 1;
10320
10332
  }
10321
- function d(E, x, b, _) {
10333
+ function d(E, x, T, k) {
10322
10334
  if (!x.sprite) {
10323
- var k = E.context, G = E.ratio;
10324
- k.clearRect(0, 0, (n << 5) / G, s / G);
10325
- var R = 0, A = 0, H = 0, N = b.length;
10326
- for (--_; ++_ < N; ) {
10327
- x = b[_], k.save(), k.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / G) + "px " + x.font;
10328
- const it = k.measureText(x.text), z = -Math.floor(it.width / 2);
10335
+ var _ = E.context, G = E.ratio;
10336
+ _.clearRect(0, 0, (n << 5) / G, s / G);
10337
+ var R = 0, A = 0, H = 0, N = T.length;
10338
+ for (--k; ++k < N; ) {
10339
+ x = T[k], _.save(), _.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / G) + "px " + x.font;
10340
+ const it = _.measureText(x.text), z = -Math.floor(it.width / 2);
10329
10341
  let B = (it.width + 1) * G, U = x.size << 1;
10330
10342
  if (x.rotate) {
10331
10343
  var M = Math.sin(x.rotate * t), L = Math.cos(x.rotate * t), P = B * L, $ = B * M, C = U * L, V = U * M;
@@ -10333,10 +10345,10 @@ function Kg() {
10333
10345
  } else
10334
10346
  B = B + 31 >> 5 << 5;
10335
10347
  if (U > H && (H = U), R + B >= n << 5 && (R = 0, A += H, H = 0), A + U >= s) break;
10336
- k.translate((R + (B >> 1)) / G, (A + (U >> 1)) / G), x.rotate && k.rotate(x.rotate * t), k.fillText(x.text, z, 0), x.padding && (k.lineWidth = 2 * x.padding, k.strokeText(x.text, z, 0)), k.restore(), x.width = B, x.height = U, x.xoff = R, x.yoff = A, x.x1 = B >> 1, x.y1 = U >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += B;
10348
+ _.translate((R + (B >> 1)) / G, (A + (U >> 1)) / G), x.rotate && _.rotate(x.rotate * t), _.fillText(x.text, z, 0), x.padding && (_.lineWidth = 2 * x.padding, _.strokeText(x.text, z, 0)), _.restore(), x.width = B, x.height = U, x.xoff = R, x.yoff = A, x.x1 = B >> 1, x.y1 = U >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += B;
10337
10349
  }
10338
- for (var q = k.getImageData(0, 0, (n << 5) / G, s / G).data, X = []; --_ >= 0; )
10339
- if (x = b[_], !!x.hasText) {
10350
+ for (var q = _.getImageData(0, 0, (n << 5) / G, s / G).data, X = []; --k >= 0; )
10351
+ if (x = T[k], !!x.hasText) {
10340
10352
  for (var F = x.width, Z = F >> 5, rt = x.y1 - x.y0, j = 0; j < rt * Z; j++) X[j] = 0;
10341
10353
  if (R = x.xoff, R == null) return;
10342
10354
  A = x.yoff;
@@ -10351,58 +10363,58 @@ function Kg() {
10351
10363
  }
10352
10364
  }
10353
10365
  }
10354
- function u(E, x, b) {
10355
- b >>= 5;
10356
- for (var _ = E.sprite, k = E.width >> 5, G = E.x - (k << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * b + (G >> 5), M, L = 0; L < H; L++) {
10366
+ function u(E, x, T) {
10367
+ T >>= 5;
10368
+ for (var k = E.sprite, _ = E.width >> 5, G = E.x - (_ << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * T + (G >> 5), M, L = 0; L < H; L++) {
10357
10369
  M = 0;
10358
- for (var P = 0; P <= k; P++)
10359
- if ((M << A | (P < k ? (M = _[L * k + P]) >>> R : 0)) & x[N + P]) return !0;
10360
- N += b;
10370
+ for (var P = 0; P <= _; P++)
10371
+ if ((M << A | (P < _ ? (M = k[L * _ + P]) >>> R : 0)) & x[N + P]) return !0;
10372
+ N += T;
10361
10373
  }
10362
10374
  return !1;
10363
10375
  }
10364
10376
  function p(E, x) {
10365
- var b = E[0], _ = E[1];
10366
- x.x + x.x0 < b.x && (b.x = x.x + x.x0), x.y + x.y0 < b.y && (b.y = x.y + x.y0), x.x + x.x1 > _.x && (_.x = x.x + x.x1), x.y + x.y1 > _.y && (_.y = x.y + x.y1);
10377
+ var T = E[0], k = E[1];
10378
+ x.x + x.x0 < T.x && (T.x = x.x + x.x0), x.y + x.y0 < T.y && (T.y = x.y + x.y0), x.x + x.x1 > k.x && (k.x = x.x + x.x1), x.y + x.y1 > k.y && (k.y = x.y + x.y1);
10367
10379
  }
10368
10380
  function f(E, x) {
10369
10381
  return E.x + E.x1 > x[0].x && E.x + E.x0 < x[1].x && E.y + E.y1 > x[0].y && E.y + E.y0 < x[1].y;
10370
10382
  }
10371
10383
  function g(E) {
10372
10384
  var x = E[0] / E[1];
10373
- return function(b) {
10374
- return [x * (b *= 0.1) * Math.cos(b), b * Math.sin(b)];
10385
+ return function(T) {
10386
+ return [x * (T *= 0.1) * Math.cos(T), T * Math.sin(T)];
10375
10387
  };
10376
10388
  }
10377
10389
  function m(E) {
10378
- var x = 4, b = x * E[0] / E[1], _ = 0, k = 0;
10390
+ var x = 4, T = x * E[0] / E[1], k = 0, _ = 0;
10379
10391
  return function(G) {
10380
10392
  var R = G < 0 ? -1 : 1;
10381
10393
  switch (Math.sqrt(1 + 4 * R * G) - R & 3) {
10382
10394
  case 0:
10383
- _ += b;
10395
+ k += T;
10384
10396
  break;
10385
10397
  case 1:
10386
- k += x;
10398
+ _ += x;
10387
10399
  break;
10388
10400
  case 2:
10389
- _ -= b;
10401
+ k -= T;
10390
10402
  break;
10391
10403
  default:
10392
- k -= x;
10404
+ _ -= x;
10393
10405
  break;
10394
10406
  }
10395
- return [_, k];
10407
+ return [k, _];
10396
10408
  };
10397
10409
  }
10398
- function y(E) {
10399
- for (var x = [], b = -1; ++b < E; ) x[b] = 0;
10410
+ function v(E) {
10411
+ for (var x = [], T = -1; ++T < E; ) x[T] = 0;
10400
10412
  return x;
10401
10413
  }
10402
10414
  function S() {
10403
10415
  return document.createElement("canvas");
10404
10416
  }
10405
- function v(E) {
10417
+ function y(E) {
10406
10418
  return typeof E == "function" ? E : function() {
10407
10419
  return E;
10408
10420
  };
@@ -10432,7 +10444,7 @@ class Jm extends dt {
10432
10444
  }
10433
10445
  init() {
10434
10446
  const t = this.services.events;
10435
- t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
10447
+ t.addEventListener(b.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(b.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
10436
10448
  }
10437
10449
  render(t = !0) {
10438
10450
  const e = this, n = this.getComponentContainer({
@@ -10499,11 +10511,11 @@ class Jm extends dt {
10499
10511
  }, 6);
10500
10512
  this.parent.selectAll("text.word").on("mouseover", function(a, r) {
10501
10513
  const o = this;
10502
- s(o), n.services.events.dispatchEvent(T.WordCloud.WORD_MOUSEOVER, {
10514
+ s(o), n.services.events.dispatchEvent(b.WordCloud.WORD_MOUSEOVER, {
10503
10515
  event: a,
10504
10516
  element: D(this),
10505
10517
  datum: r
10506
- }), n.services.events.dispatchEvent(T.Tooltip.SHOW, {
10518
+ }), n.services.events.dispatchEvent(b.Tooltip.SHOW, {
10507
10519
  event: a,
10508
10520
  hoveredElement: o,
10509
10521
  items: [
@@ -10527,25 +10539,25 @@ class Jm extends dt {
10527
10539
  });
10528
10540
  }).on("mousemove", function(a, r) {
10529
10541
  const o = D(this);
10530
- n.services.events.dispatchEvent(T.WordCloud.WORD_MOUSEMOVE, {
10542
+ n.services.events.dispatchEvent(b.WordCloud.WORD_MOUSEMOVE, {
10531
10543
  element: o,
10532
10544
  datum: r
10533
- }), n.services.events.dispatchEvent(T.Tooltip.MOVE, {
10545
+ }), n.services.events.dispatchEvent(b.Tooltip.MOVE, {
10534
10546
  event: a
10535
10547
  });
10536
10548
  }).on("click", function(a, r) {
10537
- n.services.events.dispatchEvent(T.WordCloud.WORD_CLICK, {
10549
+ n.services.events.dispatchEvent(b.WordCloud.WORD_CLICK, {
10538
10550
  event: a,
10539
10551
  element: D(this),
10540
10552
  datum: r
10541
10553
  });
10542
10554
  }).on("mouseout", function(a, r) {
10543
10555
  const o = D(this);
10544
- s(null), n.services.events.dispatchEvent(T.WordCloud.WORD_MOUSEOUT, {
10556
+ s(null), n.services.events.dispatchEvent(b.WordCloud.WORD_MOUSEOUT, {
10545
10557
  event: a,
10546
10558
  element: o,
10547
10559
  datum: r
10548
- }), n.services.events.dispatchEvent(T.Tooltip.HIDE, {
10560
+ }), n.services.events.dispatchEvent(b.Tooltip.HIDE, {
10549
10561
  hoveredElement: o
10550
10562
  });
10551
10563
  });
@@ -10562,8 +10574,8 @@ class tm extends dt {
10562
10574
  if (e < 1 || n < 1)
10563
10575
  return;
10564
10576
  const s = this.getProjection(), a = O(this.getOptions(), "geoData"), r = this.model.getCombinedData(), o = {}, c = {};
10565
- Object.keys(r).forEach((y) => {
10566
- typeof r[y].value == "number" ? o[y] = r[y] : c[y] = r[y];
10577
+ Object.keys(r).forEach((v) => {
10578
+ typeof r[v].value == "number" ? o[v] = r[v] : c[v] = r[v];
10567
10579
  });
10568
10580
  const l = hp(a, Object.values(c)), h = lp(a, {
10569
10581
  // We need to specify that we are converting geometry collections
@@ -10753,4 +10765,4 @@ export {
10753
10765
  qm as y,
10754
10766
  Vm as z
10755
10767
  };
10756
- //# sourceMappingURL=choropleth-BWFHT_FC.mjs.map
10768
+ //# sourceMappingURL=choropleth-DJ5n2HvY.mjs.map