@carbon/charts 1.19.3 → 1.20.0

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,7 +1,7 @@
1
1
  import { t as go, $ as Gl, i as Hl, a0 as mo, a1 as vo, a2 as Ul, a3 as zl, a4 as Fl, a5 as Wl, a6 as Xl, a7 as yo, a8 as zr, a9 as en, g as T, p as qt, a as tn, C as Fr, aa as yt, w as wt, ab as Cn, H as Yt, E as Wr, ac as Eo, ad as ks, c as jl, ae as ye, I as yi, K as Ei, e as ee, af as mn, ag as fe, f as me, x as ge, ah as Yl, h as qe, O as ql, ai as ke, z as vt, l as jt, aj as $t, ak as Zl, M as Kl, al as So, y as _t, q as un, n as Gn, am as Us, an as Jl, ao as Ql, ap as Si, aq as Xr, A as Te, ar as jr, as as xo, at as bo } from "./color-scale-utils-Be_a2c4x.mjs";
2
2
  import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as zs, d as ec, F as Hn, n as Fs, H as Ws, C as Xs, p as Un, b as qr, D as js, U as nc, x as we, a0 as zn, O as Ys } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as it } from "./a11y-ePqvrObQ.mjs";
4
- import { t as es, s as I, c as Zr, e as Le, f as oe, h as Kr, g as Gt, i as ns, j as Ke, m as qs, k as Jr, l as kt, n as Qr, o as sc, q as ic, u as lr, D as _, v as rc, w as xi, G as ta, x as cr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-CkmwGwzz.mjs";
4
+ import { t as es, s as R, c as Zr, e as Le, f as oe, h as Kr, g as Gt, i as ns, j as Ke, m as qs, k as Jr, l as kt, n as Qr, o as sc, q as ic, u as lr, D as _, v as rc, w as xi, G as ta, x as cr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-CkmwGwzz.mjs";
5
5
  import { b as To, c as lt, a as ur, s as cc } from "./array-CpuOY0Tp.mjs";
6
6
  function uc(s, t, e, n) {
7
7
  for (var i = -1, r = s == null ? 0 : s.length; ++i < r; )
@@ -340,13 +340,13 @@ function gu() {
340
340
  function Rs(s, t) {
341
341
  var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s === ss || s === vn ? -1 : 1, h = s === vn || s === is ? "x" : "y", d = s === ss || s === bi ? hu : du;
342
342
  function u(p) {
343
- var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), R = b.selectAll(".tick").data(f, t).order(), k = R.exit(), G = R.enter().append("g").attr("class", "tick"), C = R.select("line"), L = R.select("text");
344
- O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), R = R.merge(G), C = C.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === ss ? "0em" : s === bi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), R = R.transition(p), C = C.transition(p), L = L.transition(p), k = k.transition(p).attr("opacity", aa).attr("transform", function(B) {
343
+ var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(), k = I.exit(), G = I.enter().append("g").attr("class", "tick"), C = I.select("line"), L = I.select("text");
344
+ O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G), C = C.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === ss ? "0em" : s === bi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), I = I.transition(p), C = C.transition(p), L = L.transition(p), k = k.transition(p).attr("opacity", aa).attr("transform", function(B) {
345
345
  return isFinite(B = S(B)) ? d(B + c) : this.getAttribute("transform");
346
346
  }), G.attr("opacity", aa).attr("transform", function(B) {
347
347
  var D = this.parentNode.__axis;
348
348
  return d((D && isFinite(D = D(B)) ? D : S(B)) + c);
349
- })), k.remove(), O.attr("d", s === vn || s === is ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), R.attr("opacity", 1).attr("transform", function(B) {
349
+ })), k.remove(), O.attr("d", s === vn || s === is ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), I.attr("opacity", 1).attr("transform", function(B) {
350
350
  return d(S(B) + c);
351
351
  }), C.attr(h + "2", l * r), L.attr(h, l * m).text(g), b.filter(gu).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", s === is ? "start" : s === vn ? "end" : "middle"), b.each(function() {
352
352
  this.__axis = S;
@@ -391,11 +391,11 @@ function Oi(s) {
391
391
  s.preventDefault(), s.stopImmediatePropagation();
392
392
  }
393
393
  function yu(s) {
394
- var t = s.document.documentElement, e = I(s).on("dragstart.drag", Oi, Ti);
394
+ var t = s.document.documentElement, e = R(s).on("dragstart.drag", Oi, Ti);
395
395
  "onselectstart" in t ? e.on("selectstart.drag", Oi, Ti) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
396
396
  }
397
397
  function Eu(s, t) {
398
- var e = s.document.documentElement, n = I(s).on("dragstart.drag", null);
398
+ var e = s.document.documentElement, n = R(s).on("dragstart.drag", null);
399
399
  t && (n.on("click.drag", Oi, Ti), setTimeout(function() {
400
400
  n.on("click.drag", null);
401
401
  }, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
@@ -530,7 +530,7 @@ function Cu(s) {
530
530
  var E = m.property("__brush", g).selectAll(".overlay").data([ds("overlay")]);
531
531
  E.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", pe.overlay).merge(E).each(function() {
532
532
  var v = ti(this).extent;
533
- I(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]);
533
+ R(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]);
534
534
  }), m.selectAll(".selection").data([ds("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", pe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
535
535
  var y = m.selectAll(".handle").data(s.handles, function(v) {
536
536
  return v.type;
@@ -547,20 +547,20 @@ function Cu(s) {
547
547
  }).on("interrupt.brush end.brush", function(v) {
548
548
  h(this, arguments).end(v);
549
549
  }).tween("brush", function() {
550
- var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, R = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), k = yo(O, R);
550
+ var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), k = yo(O, I);
551
551
  function G(C) {
552
- S.selection = C === 1 && R === null ? null : k(C), l.call(v), b.brush();
552
+ S.selection = C === 1 && I === null ? null : k(C), l.call(v), b.brush();
553
553
  }
554
- return O !== null && R !== null ? G : G(1);
554
+ return O !== null && I !== null ? G : G(1);
555
555
  }) : m.each(function() {
556
- var v = this, S = arguments, b = v.__brush, O = s.input(typeof E == "function" ? E.apply(v, S) : E, b.extent), R = h(v, S).beforestart();
557
- zr(v), b.selection = O === null ? null : O, l.call(v), R.start(y).brush(y).end(y);
556
+ var v = this, S = arguments, b = v.__brush, O = s.input(typeof E == "function" ? E.apply(v, S) : E, b.extent), I = h(v, S).beforestart();
557
+ zr(v), b.selection = O === null ? null : O, l.call(v), I.start(y).brush(y).end(y);
558
558
  });
559
559
  }, c.clear = function(m, E) {
560
560
  c.move(m, null, E);
561
561
  };
562
562
  function l() {
563
- var m = I(this), E = ti(this).selection;
563
+ var m = R(this), E = ti(this).selection;
564
564
  E ? (m.selectAll(".selection").style("display", null).attr("x", E[0][0]).attr("y", E[0][1]).attr("width", E[1][0] - E[0][0]).attr("height", E[1][1] - E[0][1]), m.selectAll(".handle").style("display", null).attr("x", function(y) {
565
565
  return y.type[y.type.length - 1] === "e" ? E[1][0] - a / 2 : E[0][0] - a / 2;
566
566
  }).attr("y", function(y) {
@@ -592,7 +592,7 @@ function Cu(s) {
592
592
  return --this.active === 0 && (delete this.state.emitter, this.emit("end", m, E)), this;
593
593
  },
594
594
  emit: function(m, E, y) {
595
- var v = I(this.that).datum();
595
+ var v = R(this.that).datum();
596
596
  r.call(
597
597
  m,
598
598
  this.that,
@@ -609,7 +609,7 @@ function Cu(s) {
609
609
  };
610
610
  function u(m) {
611
611
  if (o && !m.touches || !e.apply(this, arguments)) return;
612
- var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === Qs ? null : Ou[y], b = s === rs ? null : wu[y], O = ti(E), R = O.extent, k = O.selection, G = R[0][0], C, L, B = R[0][1], D, A, w = R[1][0], V, N, P = R[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, Z = Array.from(m.touches || [m], (nt) => {
612
+ var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === Qs ? null : Ou[y], b = s === rs ? null : wu[y], O = ti(E), I = O.extent, k = O.selection, G = I[0][0], C, L, B = I[0][1], D, A, w = I[1][0], V, N, P = I[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, Z = Array.from(m.touches || [m], (nt) => {
613
613
  const St = nt.identifier;
614
614
  return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier = St, nt;
615
615
  });
@@ -628,11 +628,11 @@ function Cu(s) {
628
628
  } else
629
629
  C = k[0][0], D = k[0][1], V = k[1][0], $ = k[1][1];
630
630
  L = C, A = D, N = V, X = $;
631
- var ht = I(E).attr("pointer-events", "none"), Et = ht.selectAll(".overlay").attr("cursor", pe[y]);
631
+ var ht = R(E).attr("pointer-events", "none"), Et = ht.selectAll(".overlay").attr("cursor", pe[y]);
632
632
  if (m.touches)
633
633
  ut.moved = H, ut.ended = W;
634
634
  else {
635
- var Ut = I(m.view).on("mousemove.brush", H, !0).on("mouseup.brush", W, !0);
635
+ var Ut = R(m.view).on("mousemove.brush", H, !0).on("mouseup.brush", W, !0);
636
636
  i && Ut.on("keydown.brush", zt, !0).on("keyup.brush", an, !0), yu(m.view);
637
637
  }
638
638
  l.call(E), ut.start(m, v.name);
@@ -1034,9 +1034,9 @@ function Bu(s, t) {
1034
1034
  i === 1 ? n = Ht + pt : i === -1 && (n = -Ht - pt);
1035
1035
  for (var l = 0, h = s.length; l < h; ++l)
1036
1036
  if (u = (d = s[l]).length)
1037
- for (var d, u, p = d[u - 1], f = ni(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = R, p = v) {
1038
- var v = d[y], S = ni(v), b = v[1] / 2 + pa, O = dt(b), R = gt(b), k = S - f, G = k >= 0 ? 1 : -1, C = G * k, L = C > at, B = m * O;
1039
- if (c.add(Ie(B * G * dt(C), E * R + B * gt(C))), a += L ? k + G * Wt : k, L ^ f >= e ^ S >= e) {
1037
+ for (var d, u, p = d[u - 1], f = ni(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = I, p = v) {
1038
+ var v = d[y], S = ni(v), b = v[1] / 2 + pa, O = dt(b), I = gt(b), k = S - f, G = k >= 0 ? 1 : -1, C = G * k, L = C > at, B = m * O;
1039
+ if (c.add(Ie(B * G * dt(C), E * I + B * gt(C))), a += L ? k + G * Wt : k, L ^ f >= e ^ S >= e) {
1040
1040
  var D = fs(nn(p), nn(v));
1041
1041
  _i(D);
1042
1042
  var A = fs(r, D);
@@ -1085,8 +1085,8 @@ function Yo(s, t, e, n) {
1085
1085
  }
1086
1086
  function v() {
1087
1087
  E(d[0][0], d[0][1]), o.lineEnd();
1088
- var S = o.clean(), b = a.result(), O, R = b.length, k, G, C;
1089
- if (d.pop(), l.push(d), d = null, !!R) {
1088
+ var S = o.clean(), b = a.result(), O, I = b.length, k, G, C;
1089
+ if (d.pop(), l.push(d), d = null, !!I) {
1090
1090
  if (S & 1) {
1091
1091
  if (G = b[0], (k = G.length - 1) > 0) {
1092
1092
  for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O < k; ++O) i.point((C = G[O])[0], C[1]);
@@ -1094,7 +1094,7 @@ function Yo(s, t, e, n) {
1094
1094
  }
1095
1095
  return;
1096
1096
  }
1097
- R > 1 && S & 2 && b.push(b.pop().concat(b.shift())), h.push(b.filter(Gu));
1097
+ I > 1 && S & 2 && b.push(b.pop().concat(b.shift())), h.push(b.filter(Gu));
1098
1098
  }
1099
1099
  }
1100
1100
  return u;
@@ -1183,18 +1183,18 @@ function Wu(s) {
1183
1183
  function c(h, d, u) {
1184
1184
  var p = nn(h), f = nn(d), g = [1, 0, 0], m = fs(p, f), E = Fn(m, m), y = m[0], v = E - y * y;
1185
1185
  if (!v) return !u && h;
1186
- var S = t * E / v, b = -t * y / v, O = fs(g, m), R = Wn(g, S), k = Wn(m, b);
1187
- ei(R, k);
1188
- var G = O, C = Fn(R, G), L = Fn(G, G), B = C * C - L * (Fn(R, R) - 1);
1186
+ var S = t * E / v, b = -t * y / v, O = fs(g, m), I = Wn(g, S), k = Wn(m, b);
1187
+ ei(I, k);
1188
+ var G = O, C = Fn(I, G), L = Fn(G, G), B = C * C - L * (Fn(I, I) - 1);
1189
1189
  if (!(B < 0)) {
1190
1190
  var D = se(B), A = Wn(G, (-C - D) / L);
1191
- if (ei(A, R), A = Mi(A), !u) return A;
1191
+ if (ei(A, I), A = Mi(A), !u) return A;
1192
1192
  var w = h[0], V = d[0], N = h[1], P = d[1], $;
1193
1193
  V < w && ($ = w, w = V, V = $);
1194
1194
  var X = V - w, F = ft(X - at) < pt, et = F || X < pt;
1195
1195
  if (!F && P < N && ($ = N, N = P, P = $), et ? F ? N + P > 0 ^ A[1] < (ft(A[0] - w) < pt ? N : P) : N <= A[1] && A[1] <= P : X > at ^ (w <= A[0] && A[0] <= V)) {
1196
1196
  var J = Wn(G, (-C + D) / L);
1197
- return ei(J, R), [A, Mi(J)];
1197
+ return ei(J, I), [A, Mi(J)];
1198
1198
  }
1199
1199
  }
1200
1200
  }
@@ -1269,7 +1269,7 @@ function ju(s, t, e, n) {
1269
1269
  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];
1270
1270
  }
1271
1271
  return function(l) {
1272
- var h = l, d = Xo(), u, p, f, g, m, E, y, v, S, b, O, R = {
1272
+ var h = l, d = Xo(), u, p, f, g, m, E, y, v, S, b, O, I = {
1273
1273
  point: k,
1274
1274
  lineStart: B,
1275
1275
  lineEnd: D,
@@ -1293,10 +1293,10 @@ function ju(s, t, e, n) {
1293
1293
  (V || N) && (l.polygonStart(), V && (l.lineStart(), r(null, null, 1, l), l.lineEnd()), N && jo(u, o, w, r, l), l.polygonEnd()), h = l, u = p = f = null;
1294
1294
  }
1295
1295
  function B() {
1296
- R.point = A, p && p.push(f = []), b = !0, S = !1, y = v = NaN;
1296
+ I.point = A, p && p.push(f = []), b = !0, S = !1, y = v = NaN;
1297
1297
  }
1298
1298
  function D() {
1299
- u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), R.point = k, S && h.lineEnd();
1299
+ u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point = k, S && h.lineEnd();
1300
1300
  }
1301
1301
  function A(w, V) {
1302
1302
  var N = i(w, V);
@@ -1309,7 +1309,7 @@ function ju(s, t, e, n) {
1309
1309
  }
1310
1310
  y = w, v = V, S = N;
1311
1311
  }
1312
- return R;
1312
+ return I;
1313
1313
  };
1314
1314
  }
1315
1315
  const Ri = (s) => s;
@@ -1627,8 +1627,8 @@ function hh(s, t) {
1627
1627
  function e(n, i, r, a, o, c, l, h, d, u, p, f, g, m) {
1628
1628
  var E = l - n, y = h - i, v = E * E + y * y;
1629
1629
  if (v > 4 * t && g--) {
1630
- var S = a + u, b = o + p, O = c + f, R = se(S * S + b * b + O * O), k = Ee(O /= R), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), C = s(G, k), L = C[0], B = C[1], D = L - n, A = B - i, w = y * D - E * A;
1631
- (w * w / v > t || ft((E * D + y * A) / v - 0.5) > 0.3 || a * u + o * p + c * f < ch) && (e(n, i, r, a, o, c, L, B, G, S /= R, b /= R, O, g, m), m.point(L, B), e(L, B, G, S, b, O, l, h, d, u, p, f, g, m));
1630
+ var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O), k = Ee(O /= I), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), C = s(G, k), L = C[0], B = C[1], D = L - n, A = B - i, w = y * D - E * A;
1631
+ (w * w / v > t || ft((E * D + y * A) / v - 0.5) > 0.3 || a * u + o * p + c * f < ch) && (e(n, i, r, a, o, c, L, B, G, S /= I, b /= I, O, g, m), m.point(L, B), e(L, B, G, S, b, O, l, h, d, u, p, f, g, m));
1632
1632
  }
1633
1633
  }
1634
1634
  return function(n) {
@@ -1657,12 +1657,12 @@ function hh(s, t) {
1657
1657
  m.point = E, n.lineEnd();
1658
1658
  }
1659
1659
  function b() {
1660
- y(), m.point = O, m.lineEnd = R;
1660
+ y(), m.point = O, m.lineEnd = I;
1661
1661
  }
1662
1662
  function O(k, G) {
1663
1663
  v(i = k, G), r = d, a = u, o = p, c = f, l = g, m.point = v;
1664
1664
  }
1665
- function R() {
1665
+ function I() {
1666
1666
  e(d, u, h, p, f, g, r, a, i, o, c, l, _a, n), m.lineEnd = S, S();
1667
1667
  }
1668
1668
  return m;
@@ -1705,7 +1705,7 @@ function Ds(s) {
1705
1705
  })();
1706
1706
  }
1707
1707
  function ol(s) {
1708
- var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Ri, b = 0.5, O, R, k, G, C;
1708
+ var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Ri, b = 0.5, O, I, k, G, C;
1709
1709
  function L(w) {
1710
1710
  return k(w[0] * Tt, w[1] * Tt);
1711
1711
  }
@@ -1737,7 +1737,7 @@ function ol(s) {
1737
1737
  }, L.reflectY = function(w) {
1738
1738
  return arguments.length ? (p = w ? -1 : 1, D()) : p < 0;
1739
1739
  }, L.precision = function(w) {
1740
- return arguments.length ? (O = Ca(R, b = w * w), A()) : se(b);
1740
+ return arguments.length ? (O = Ca(I, b = w * w), A()) : se(b);
1741
1741
  }, L.fitExtent = function(w, V) {
1742
1742
  return al(L, w, V);
1743
1743
  }, L.fitSize = function(w, V) {
@@ -1749,7 +1749,7 @@ function ol(s) {
1749
1749
  };
1750
1750
  function D() {
1751
1751
  var w = ka(e, 0, 0, u, p, d).apply(null, t(r, a)), V = ka(e, n - w[0], i - w[1], u, p, d);
1752
- return h = Wo(o, c, l), R = Ci(t, V), k = Ci(h, R), O = Ca(R, b), A();
1752
+ return h = Wo(o, c, l), I = Ci(t, V), k = Ci(h, I), O = Ca(I, b), A();
1753
1753
  }
1754
1754
  function A() {
1755
1755
  return G = C = null, L;
@@ -2149,9 +2149,9 @@ function Tn(s, t) {
2149
2149
  };
2150
2150
  }
2151
2151
  function fl(s, t, e) {
2152
- var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, R = (g * m - f * E) / b, k = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, C = R * R + G * G - 1, L = 2 * (r + O * R + k * G), B = O * O + k * k - r * r, D = -(Math.abs(C) > 1e-6 ? (L + Math.sqrt(L * L - 4 * C * B)) / (2 * C) : B / L);
2152
+ var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b, k = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, C = I * I + G * G - 1, L = 2 * (r + O * I + k * G), B = O * O + k * k - r * r, D = -(Math.abs(C) > 1e-6 ? (L + Math.sqrt(L * L - 4 * C * B)) / (2 * C) : B / L);
2153
2153
  return {
2154
- x: n + O + R * D,
2154
+ x: n + O + I * D,
2155
2155
  y: i + k + G * D,
2156
2156
  r: D
2157
2157
  };
@@ -2424,7 +2424,7 @@ function kd(s, t, e, n, i, r, a, o) {
2424
2424
  return u = (h * (t - r) - d * (s - i)) / u, [s + u * c, t + u * l];
2425
2425
  }
2426
2426
  function Zn(s, t, e, n, i, r, a) {
2427
- var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, R = (v < 0 ? -1 : 1) * Ke(ic(0, b * b * S - O * O)), k = (O * v - y * R) / S, G = (-O * y - v * R) / S, C = (O * v + y * R) / S, L = (-O * y + v * R) / S, B = k - m, D = G - E, A = C - m, w = L - E;
2427
+ var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(ic(0, b * b * S - O * O)), k = (O * v - y * I) / S, G = (-O * y - v * I) / S, C = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = k - m, D = G - E, A = C - m, w = L - E;
2428
2428
  return B * B + D * D > A * A + w * w && (k = C, G = L), {
2429
2429
  cx: k,
2430
2430
  cy: G,
@@ -2442,10 +2442,10 @@ function Dn() {
2442
2442
  else if (m > ns - Gt)
2443
2443
  o.moveTo(p * Le(f), p * oe(f)), o.arc(0, 0, p, f, g, !E), u > Gt && (o.moveTo(u * Le(g), u * oe(g)), o.arc(0, 0, u, g, f, E));
2444
2444
  else {
2445
- var y = f, v = g, S = f, b = g, O = m, R = m, k = a.apply(this, arguments) / 2, G = k > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), C = qs(Jr(p - u) / 2, +e.apply(this, arguments)), L = C, B = C, D, A;
2445
+ var y = f, v = g, S = f, b = g, O = m, I = m, k = a.apply(this, arguments) / 2, G = k > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), C = qs(Jr(p - u) / 2, +e.apply(this, arguments)), L = C, B = C, D, A;
2446
2446
  if (G > Gt) {
2447
2447
  var w = Qr(G / u * oe(k)), V = Qr(G / p * oe(k));
2448
- (O -= w * 2) > Gt ? (w *= E ? 1 : -1, S += w, b -= w) : (O = 0, S = b = (f + g) / 2), (R -= V * 2) > Gt ? (V *= E ? 1 : -1, y += V, v -= V) : (R = 0, y = v = (f + g) / 2);
2448
+ (O -= w * 2) > Gt ? (w *= E ? 1 : -1, S += w, b -= w) : (O = 0, S = b = (f + g) / 2), (I -= V * 2) > Gt ? (V *= E ? 1 : -1, y += V, v -= V) : (I = 0, y = v = (f + g) / 2);
2449
2449
  }
2450
2450
  var N = p * Le(y), P = p * oe(y), $ = u * Le(b), X = u * oe(b);
2451
2451
  if (C > Gt) {
@@ -2457,7 +2457,7 @@ function Dn() {
2457
2457
  } else
2458
2458
  L = B = 0;
2459
2459
  }
2460
- R > Gt ? B > Gt ? (D = Zn(J, ct, N, P, p, B, E), A = Zn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < C ? o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, p, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Zn($, X, F, et, u, -L, E), A = Zn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < C ? o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, u, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
2460
+ I > Gt ? B > Gt ? (D = Zn(J, ct, N, P, p, B, E), A = Zn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < C ? o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, p, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Zn($, X, F, et, u, -L, E), A = Zn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < C ? o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, u, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
2461
2461
  }
2462
2462
  if (o.closePath(), h) return o = null, h + "" || null;
2463
2463
  }
@@ -2703,7 +2703,7 @@ class ot {
2703
2703
  this.id = `${i}--${this.configs.id}`;
2704
2704
  }
2705
2705
  this.parent || this.setParent(
2706
- I(
2706
+ R(
2707
2707
  this.services.domUtils.getMainContainer()
2708
2708
  )
2709
2709
  );
@@ -2746,7 +2746,7 @@ class ot {
2746
2746
  if (t.withinChartClip) {
2747
2747
  const r = this.model.get("chartClipId");
2748
2748
  if (r) {
2749
- const o = I(`#${r}`).select("rect");
2749
+ const o = R(`#${r}`).select("rect");
2750
2750
  o.size() !== 0 && parseFloat(o.attr("height")) > 0 && i.attr("clip-path", `url(#${r})`);
2751
2751
  }
2752
2752
  }
@@ -2931,7 +2931,7 @@ function xl() {
2931
2931
  let S, b = "";
2932
2932
  const {
2933
2933
  implementation: O,
2934
- createNodeIterator: R,
2934
+ createNodeIterator: I,
2935
2935
  createDocumentFragment: k,
2936
2936
  getElementsByTagName: G
2937
2937
  } = e, {
@@ -3082,7 +3082,7 @@ function xl() {
3082
3082
  const Ct = z.body || z.documentElement;
3083
3083
  return M && q && Ct.insertBefore(e.createTextNode(q), Ct.childNodes[0] || null), $e === he ? G.call(z, W ? "html" : "body")[0] : W ? z.documentElement : Ct;
3084
3084
  }, Dr = function(M) {
3085
- return R.call(
3085
+ return I.call(
3086
3086
  M.ownerDocument || M,
3087
3087
  M,
3088
3088
  // eslint-disable-next-line no-bitwise
@@ -3334,8 +3334,8 @@ const Qn = (s) => Er.sanitize(s, {
3334
3334
  ${cp(l.iconSVG.content)}
3335
3335
  </svg>
3336
3336
  </button>`).each(function(l, h) {
3337
- I(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"), I(this).select("button").on("mouseover focus", function(d) {
3338
- const u = I(this);
3337
+ R(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"), R(this).select("button").on("mouseover focus", function(d) {
3338
+ const u = R(this);
3339
3339
  u.classed("hovered", !0), c.services.events.dispatchEvent(x.Toolbar.SHOW_TOOLTIP, {
3340
3340
  event: d,
3341
3341
  hoveredElement: u,
@@ -3368,7 +3368,7 @@ const Qn = (s) => Er.sanitize(s, {
3368
3368
  }
3369
3369
  // show/hide overflow menu
3370
3370
  updateOverflowMenu(t) {
3371
- this.overflowMenu && (this.overflowMenu.classed("is-open", t), this.overflowButton && (this.overflowButton.attr("aria-expanded", t), I(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open", t).classed("cds--overflow-menu--open", t)), t ? this.services.events.dispatchEvent(x.Toolbar.SHOW_OVERFLOW_MENU) : this.services.events.dispatchEvent(x.Toolbar.HIDE_OVERFLOW_MENU));
3371
+ this.overflowMenu && (this.overflowMenu.classed("is-open", t), this.overflowButton && (this.overflowButton.attr("aria-expanded", t), R(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open", t).classed("cds--overflow-menu--open", t)), t ? this.services.events.dispatchEvent(x.Toolbar.SHOW_OVERFLOW_MENU) : this.services.events.dispatchEvent(x.Toolbar.HIDE_OVERFLOW_MENU));
3372
3372
  }
3373
3373
  // Toolbar controllers
3374
3374
  focusOnPreviousEnabledToolbarItem(t) {
@@ -3380,7 +3380,7 @@ const Qn = (s) => Er.sanitize(s, {
3380
3380
  break;
3381
3381
  }
3382
3382
  if (n < e.length) {
3383
- const i = I(
3383
+ const i = R(
3384
3384
  `button#${this.services.domUtils.generateElementIDString(
3385
3385
  `control-${e[n].id}`
3386
3386
  )}`
@@ -3397,7 +3397,7 @@ const Qn = (s) => Er.sanitize(s, {
3397
3397
  break;
3398
3398
  }
3399
3399
  if (n > -1) {
3400
- const i = I(
3400
+ const i = R(
3401
3401
  `button#${this.services.domUtils.generateElementIDString(
3402
3402
  `control-${e[n].id}`
3403
3403
  )}`
@@ -3414,7 +3414,7 @@ const Qn = (s) => Er.sanitize(s, {
3414
3414
  break;
3415
3415
  }
3416
3416
  if (n < e.length) {
3417
- const i = I(
3417
+ const i = R(
3418
3418
  `#${this.services.domUtils.generateElementIDString(
3419
3419
  `control-${e[n].id}`
3420
3420
  )} button`
@@ -3431,7 +3431,7 @@ const Qn = (s) => Er.sanitize(s, {
3431
3431
  break;
3432
3432
  }
3433
3433
  if (n > -1) {
3434
- const i = I(
3434
+ const i = R(
3435
3435
  `#${this.services.domUtils.generateElementIDString(
3436
3436
  `control-${e[n].id}`
3437
3437
  )} button`
@@ -3446,7 +3446,7 @@ const Qn = (s) => Er.sanitize(s, {
3446
3446
  this.updateOverflowMenu(!0);
3447
3447
  const e = this;
3448
3448
  this.getOverflowMenuItems().forEach((i, r) => {
3449
- const a = I(
3449
+ const a = R(
3450
3450
  `#${this.services.domUtils.generateElementIDString(`control-${i.id}`)}`
3451
3451
  );
3452
3452
  a !== null && (a.on("click", () => {
@@ -3710,7 +3710,7 @@ const Cs = class Cs extends ot {
3710
3710
  ).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (h) => h.id);
3711
3711
  o.enter().append("div").merge(e.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (h) => `layout-child layout-child-${this._instanceID} ${h.id}`).each(function(h) {
3712
3712
  h.components.forEach((d) => {
3713
- const u = I(this), f = T(h, "renderType") === st.SVG;
3713
+ const u = R(this), f = T(h, "renderType") === st.SVG;
3714
3714
  d.setParent(
3715
3715
  f ? _.appendOrSelect(u, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : u
3716
3716
  );
@@ -3718,7 +3718,7 @@ const Cs = class Cs extends ot {
3718
3718
  (g === Se.PREFERRED || g === Se.FIXED) && d.render(t);
3719
3719
  });
3720
3720
  }), e.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(h) {
3721
- const d = T(h, "growth"), p = T(h, "renderType") === st.SVG ? _.getSVGElementSize(I(this).select("svg.layout-svg-wrapper"), {
3721
+ const d = T(h, "growth"), p = T(h, "renderType") === st.SVG ? _.getSVGElementSize(R(this).select("svg.layout-svg-wrapper"), {
3722
3722
  useBBox: !0
3723
3723
  }) : _.getHTMLElementSize(this);
3724
3724
  if (d === Se.PREFERRED) {
@@ -4897,7 +4897,7 @@ class d0 extends ot {
4897
4897
  render(t = !1) {
4898
4898
  const e = this.model.getOptions();
4899
4899
  if (!this.isEventListenerAdded) {
4900
- const n = I(this.services.domUtils.getHolder()), i = T(e, "style", "prefix");
4900
+ const n = R(this.services.domUtils.getHolder()), i = T(e, "style", "prefix");
4901
4901
  this.modal = _.appendOrSelect(n, `div.${qt}--${i}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0;
4902
4902
  }
4903
4903
  }
@@ -5023,15 +5023,15 @@ class Mf extends ot {
5023
5023
  v.exit().remove();
5024
5024
  const S = v.enter().append("div").merge(v).classed("legend-item", !0).classed("additional", !0).attr(
5025
5025
  "aria-labelledby",
5026
- (R, k) => this.services.domUtils.generateElementIDString(
5026
+ (I, k) => this.services.domUtils.generateElementIDString(
5027
5027
  `legend-datagroup-${m.size() + k}-title`
5028
5028
  )
5029
5029
  );
5030
5030
  S.selectAll("*").remove();
5031
5031
  let b, O = 1;
5032
- S.append("svg").classed("icon", !0).each(function(R) {
5033
- const k = I(this);
5034
- !b || b != R.type ? (b = R.type, O = 1) : O++, y.addAdditionalItem(k, R, O);
5032
+ S.append("svg").classed("icon", !0).each(function(I) {
5033
+ const k = R(this);
5034
+ !b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(k, I, O);
5035
5035
  }), S.append("p").merge(S.select("p")), this.truncateLegendText();
5036
5036
  }
5037
5037
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
@@ -5088,9 +5088,9 @@ class Mf extends ot {
5088
5088
  const t = this, e = this.getComponentContainer(), n = this.getOptions(), i = T(n, "legend"), r = T(i, "truncation");
5089
5089
  e.selectAll("div.legend-item").on("mouseover", function(a) {
5090
5090
  t.services.events.dispatchEvent(x.Legend.ITEM_HOVER, {
5091
- hoveredElement: I(this)
5091
+ hoveredElement: R(this)
5092
5092
  });
5093
- const o = I(this);
5093
+ const o = R(this);
5094
5094
  o.select("div.checkbox").classed("hovered", !0);
5095
5095
  const c = o.datum();
5096
5096
  c.name.length > r.threshold && r.numCharacter < c.name.length && r.type !== Ze.NONE && t.services.events.dispatchEvent(x.Tooltip.SHOW, {
@@ -5099,30 +5099,30 @@ class Mf extends ot {
5099
5099
  content: c.name
5100
5100
  });
5101
5101
  }).on("mousemove", function(a) {
5102
- I(this).datum().name.length > r.threshold && r.type !== Ze.NONE && t.services.events.dispatchEvent(x.Tooltip.MOVE, {
5102
+ R(this).datum().name.length > r.threshold && r.type !== Ze.NONE && t.services.events.dispatchEvent(x.Tooltip.MOVE, {
5103
5103
  event: a
5104
5104
  });
5105
5105
  }).on("click", function() {
5106
5106
  t.services.events.dispatchEvent(x.Legend.ITEM_CLICK, {
5107
- clickedElement: I(this)
5107
+ clickedElement: R(this)
5108
5108
  });
5109
- const o = I(this).datum();
5109
+ const o = R(this).datum();
5110
5110
  t.model.toggleDataLabel(o.name);
5111
5111
  }).on("mouseout", function() {
5112
- const a = I(this);
5112
+ const a = R(this);
5113
5113
  a.select("div.checkbox").classed("hovered", !1), a.datum().name.length > r.threshold && r.type !== Ze.NONE && t.services.events.dispatchEvent(x.Tooltip.HIDE), t.services.events.dispatchEvent(x.Legend.ITEM_MOUSEOUT, {
5114
5114
  hoveredElement: a
5115
5115
  });
5116
5116
  }), e.selectAll("div.legend-item div.checkbox").on("keyup", function(a) {
5117
5117
  a.key && a.key === "Tab" && t.services.events.dispatchEvent(x.Legend.ITEM_HOVER, {
5118
- hoveredElement: I(this)
5118
+ hoveredElement: R(this)
5119
5119
  });
5120
5120
  }), e.selectAll("div.legend-item div.checkbox").on("keydown", function(a, o) {
5121
5121
  a.key && a.key === " " ? (a.preventDefault(), t.model.toggleDataLabel(o.name)) : a.key && a.key === "Tab" && t.services.events.dispatchEvent(x.Legend.ITEM_MOUSEOUT, {
5122
- hoveredElement: I(this)
5122
+ hoveredElement: R(this)
5123
5123
  });
5124
5124
  }), e.selectAll("g.additional-item").on("mouseover", function(a) {
5125
- const o = I(this), c = o.datum();
5125
+ const o = R(this), c = o.datum();
5126
5126
  c.name.length > r.threshold && t.services.events.dispatchEvent(x.Tooltip.SHOW, {
5127
5127
  event: a,
5128
5128
  hoveredElement: o,
@@ -5295,28 +5295,28 @@ new Ns();
5295
5295
  class Cf extends ot {
5296
5296
  constructor(t, e, n) {
5297
5297
  super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Ns(), this.handleShowTooltip = (i) => {
5298
- const r = i.detail.data || i.detail.items;
5299
- let a;
5300
- const o = this.formatItems(this.getItems(i));
5301
- i.detail.content ? a = `<div class="title-tooltip"><p>${Qn(i.detail.content)}</p></div>` : a = Qn(this.getTooltipHTML(o));
5302
- const c = _.appendOrSelect(this.tooltip, "div.content-box");
5298
+ const r = i.detail.data || i.detail.items, a = R(i.detail.event.target).datum();
5299
+ let o;
5300
+ const c = this.formatItems(this.getItems(i));
5301
+ i.detail.content ? o = `<div class="title-tooltip"><p>${Qn(i.detail.content)}</p></div>` : o = Qn(this.getTooltipHTML(c));
5302
+ const l = _.appendOrSelect(this.tooltip, "div.content-box");
5303
5303
  if (T(this.getOptions(), "tooltip", "customHTML"))
5304
5304
  if (i.detail.content) {
5305
- const l = `<div class="title-tooltip"><p>${Qn(
5305
+ const h = `<div class="title-tooltip"><p>${Qn(
5306
5306
  i.detail.content
5307
5307
  )}</p></div>`;
5308
- c.html(l);
5308
+ l.html(h);
5309
5309
  } else
5310
- c.html(
5310
+ l.html(
5311
5311
  `<div class="title-tooltip"><p>${Qn(
5312
- this.model.getOptions().tooltip.customHTML(r, a)
5312
+ this.model.getOptions().tooltip.customHTML(r, o, a)
5313
5313
  )}</p></div>`
5314
5314
  );
5315
5315
  else
5316
- c.html(a);
5317
- c.selectAll(".datapoint-tooltip").each(function(l, h) {
5318
- const d = o[h];
5319
- o[h] && o[h].color && I(this).select(".tooltip-color").attr("class", "tooltip-color").style("background-color", d.color);
5316
+ l.html(o);
5317
+ l.selectAll(".datapoint-tooltip").each(function(h, d) {
5318
+ const u = c[d];
5319
+ c[d] && c[d].color && R(this).select(".tooltip-color").attr("class", "tooltip-color").style("background-color", u.color);
5320
5320
  }), this.positionTooltip(i), this.tooltip.classed("hidden", !1).attr("aria-hidden", !1), this.lastTriggeredEventType = i.type;
5321
5321
  }, this.handleHideTooltip = () => {
5322
5322
  this.tooltip.classed("hidden", !0).attr("aria-hidden", !0);
@@ -5386,7 +5386,7 @@ class Cf extends ot {
5386
5386
  render(t = !1) {
5387
5387
  const e = this.getOptions(), n = T(e, "tooltip", "enabled");
5388
5388
  if (n) {
5389
- const i = I(this.services.domUtils.getHolder()), r = T(e, "style", "prefix");
5389
+ const i = R(this.services.domUtils.getHolder()), r = T(e, "style", "prefix");
5390
5390
  this.tooltip = _.appendOrSelect(i, `div.${qt}--${r}--tooltip`), this.tooltip.style("max-width", null).attr("role", "tooltip"), this.isEventListenerAdded || (this.addTooltipEventListener(), this.isEventListenerAdded = !0), this.tooltip.classed("hidden", !0);
5391
5391
  } else !n && this.isEventListenerAdded && (this.removeTooltipEventListener(), this.isEventListenerAdded = !1);
5392
5392
  }
@@ -5478,17 +5478,17 @@ const Qe = class Qe extends ot {
5478
5478
  f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
5479
5479
  const g = (b) => {
5480
5480
  const O = b[1] - b[0];
5481
- let R = "0," + O.toString();
5481
+ let I = "0," + O.toString();
5482
5482
  const k = Math.floor(c / Qe.DASH_LENGTH), G = k * Qe.DASH_LENGTH;
5483
5483
  for (let C = 0; C < k; C++)
5484
- R += "," + Qe.DASH_LENGTH;
5485
- R += "," + (c - G), k % 2 === 1 && (R += ",0"), R += "," + O.toString(), R += "," + c.toString(), p.attr("stroke-dasharray", R);
5484
+ I += "," + Qe.DASH_LENGTH;
5485
+ I += "," + (c - G), k % 2 === 1 && (I += ",0"), I += "," + O.toString(), I += "," + c.toString(), p.attr("stroke-dasharray", I);
5486
5486
  }, m = (b) => {
5487
5487
  const O = b.selection;
5488
5488
  O === null || O[0] === O[1] || (p.attr("x", parseFloat(a.attr("x")) + parseFloat(i.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), g(O));
5489
5489
  }, E = (b, O) => {
5490
- const R = rc().range([0, o]).domain(f);
5491
- let k = [R.invert(b), R.invert(O)];
5490
+ const I = rc().range([0, o]).domain(f);
5491
+ let k = [I.invert(b), I.invert(O)];
5492
5492
  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);
5493
5493
  };
5494
5494
  let y;
@@ -5503,10 +5503,10 @@ const Qe = class Qe extends ot {
5503
5503
  const S = this.services.zoom.getZoomRatio();
5504
5504
  i.on("click", function(b) {
5505
5505
  if (b.shiftKey) {
5506
- const O = this.services.domUtils.getHolder(), R = en(r.node(), O)[0];
5507
- let k = R - o * S / 2;
5506
+ const O = this.services.domUtils.getHolder(), I = en(r.node(), O)[0];
5507
+ let k = I - o * S / 2;
5508
5508
  k < 0 && (k = 0);
5509
- let G = R + o * S / 2;
5509
+ let G = I + o * S / 2;
5510
5510
  G > o && (G = o), E(k, G);
5511
5511
  }
5512
5512
  });
@@ -5577,11 +5577,11 @@ class f0 extends ot {
5577
5577
  ), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ks(m, (O) => O.value));
5578
5578
  const S = this.model.get("zoomDomain");
5579
5579
  if (r === Ge.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), a)) {
5580
- const O = a.highlightStartMapsTo, R = a.highlightEndMapsTo, k = a.color, G = a.labelMapsTo;
5580
+ const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo, k = a.color, G = a.labelMapsTo;
5581
5581
  a.data.forEach((C, L) => {
5582
5582
  _.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(C[O])).attr(
5583
5583
  "width",
5584
- this.xScale(C[R]) - this.xScale(C[O])
5584
+ this.xScale(C[I]) - this.xScale(C[O])
5585
5585
  ).style(
5586
5586
  "fill",
5587
5587
  k && k.scale[C[G]] ? k.scale[C[G]] : null
@@ -5596,7 +5596,7 @@ class f0 extends ot {
5596
5596
  if (S !== void 0) if (S[0].valueOf() === S[1].valueOf())
5597
5597
  b.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
5598
5598
  else {
5599
- const O = S.map((R) => this.xScale(R));
5599
+ const O = S.map((I) => this.xScale(I));
5600
5600
  O[1] - O[0] < this.MIN_SELECTION_DIFF || (b.call(this.brush.move, O), this.updateBrushHandle(this.getComponentContainer(), O));
5601
5601
  }
5602
5602
  i && (this.brush.filter(() => !1), b.selectAll("rect").attr("cursor", "auto"));
@@ -5742,11 +5742,11 @@ class g0 extends ot {
5742
5742
  ), f = d.services.cartesianScales.getScaleTypeByPosition(u);
5743
5743
  let g = null, m = null;
5744
5744
  u === Y.LEFT || u === Y.RIGHT ? (m = p, g = d.services.cartesianScales.getMainXScale()) : (g = p, m = d.services.cartesianScales.getMainYScale());
5745
- const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, R = O.getOrientation(), k = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [C, L] = ye(
5745
+ const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(), k = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [C, L] = ye(
5746
5746
  k,
5747
5747
  G,
5748
- R
5749
- ), B = I(this);
5748
+ I
5749
+ ), B = R(this);
5750
5750
  u === Y.TOP || u === Y.BOTTOM ? (B.selectAll("line.threshold-line").transition().call(
5751
5751
  (D) => d.services.transitions.setupTransition({
5752
5752
  transition: D,
@@ -5790,7 +5790,7 @@ class g0 extends ot {
5790
5790
  return o(e, a);
5791
5791
  }
5792
5792
  appendThresholdLabel() {
5793
- const t = I(this.services.domUtils.getHolder()), e = T(this.getOptions(), "style", "prefix");
5793
+ const t = R(this.services.domUtils.getHolder()), e = T(this.getOptions(), "style", "prefix");
5794
5794
  this.label = _.appendOrSelect(
5795
5795
  t,
5796
5796
  `div.${qt}--${e}--threshold--label`
@@ -5832,16 +5832,16 @@ class g0 extends ot {
5832
5832
  addEventListeners() {
5833
5833
  const t = this;
5834
5834
  this.getComponentContainer({ withinChartClip: !0 }).selectAll("rect.threshold-hoverable-area").on("mouseover mousemove", function(n) {
5835
- I(this.parentNode).select("line.threshold-line").classed("active", !0), t.services.events.dispatchEvent(x.Threshold.SHOW, {
5835
+ R(this.parentNode).select("line.threshold-line").classed("active", !0), t.services.events.dispatchEvent(x.Threshold.SHOW, {
5836
5836
  event: n,
5837
- hoveredElement: I(this),
5838
- datum: I(this).datum()
5837
+ hoveredElement: R(this),
5838
+ datum: R(this).datum()
5839
5839
  });
5840
5840
  }).on("mouseout", function(n) {
5841
- I(this.parentNode).select("line.threshold-line").classed("active", !1), t.services.events.dispatchEvent(x.Threshold.HIDE, {
5841
+ R(this.parentNode).select("line.threshold-line").classed("active", !1), t.services.events.dispatchEvent(x.Threshold.HIDE, {
5842
5842
  event: n,
5843
- hoveredElement: I(this),
5844
- datum: I(this).datum()
5843
+ hoveredElement: R(this),
5844
+ datum: R(this).datum()
5845
5845
  });
5846
5846
  });
5847
5847
  }
@@ -5877,20 +5877,20 @@ class m0 extends ot {
5877
5877
  l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
5878
5878
  const d = this;
5879
5879
  o.each(function({ axisPosition: u }) {
5880
- const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (C) => v.getDomainValue(C), O = (C) => v.getRangeValue(C), [R, k] = ye(
5880
+ const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (C) => v.getDomainValue(C), O = (C) => v.getRangeValue(C), [I, k] = ye(
5881
5881
  b,
5882
5882
  O,
5883
5883
  S
5884
- ), G = I(this);
5884
+ ), G = R(this);
5885
5885
  u === Y.TOP || u === Y.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
5886
5886
  (C) => d.services.transitions.setupTransition({
5887
5887
  transition: C,
5888
5888
  name: "highlight-bar-update",
5889
5889
  animate: t
5890
5890
  })
5891
- ).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: C, ...L }) => R(L[C])).attr(
5891
+ ).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: C, ...L }) => I(L[C])).attr(
5892
5892
  "width",
5893
- ({ highlightStartMapsTo: C, highlightEndMapsTo: L, ...B }) => Math.max(R(B[L]) - R(B[C]), 0)
5893
+ ({ highlightStartMapsTo: C, highlightEndMapsTo: L, ...B }) => Math.max(I(B[L]) - I(B[C]), 0)
5894
5894
  ).style("stroke", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null) : G.selectAll("rect.highlight-bar").transition().call(
5895
5895
  (C) => d.services.transitions.setupTransition({
5896
5896
  transition: C,
@@ -6182,7 +6182,7 @@ function $f() {
6182
6182
  a = Math.min(r, (n - t) / (to(V, (N) => N.length) - 1)), S(V);
6183
6183
  for (let N = 0; N < p; ++N) {
6184
6184
  const P = Math.pow(0.99, N), $ = Math.max(1 - P, (N + 1) / p);
6185
- R(V, P, $), O(V, P, $);
6185
+ I(V, P, $), O(V, P, $);
6186
6186
  }
6187
6187
  }
6188
6188
  function O(w, V, N) {
@@ -6201,7 +6201,7 @@ function $f() {
6201
6201
  l === void 0 && X.sort(Ms), k(X, N);
6202
6202
  }
6203
6203
  }
6204
- function R(w, V, N) {
6204
+ function I(w, V, N) {
6205
6205
  for (let P = w.length, $ = P - 2; $ >= 0; --$) {
6206
6206
  const X = w[$];
6207
6207
  for (const F of X) {
@@ -6418,11 +6418,11 @@ class y0 extends ot {
6418
6418
  ).style("font-size", "14px").text((v) => u[v] ? u[v] : "").attr("y", 20).attr("x", (v, S) => {
6419
6419
  const b = this.services.domUtils.generateElementIDString(
6420
6420
  `alluvial-category-${S}`
6421
- ), { width: O } = _.getSVGElementSize(I(`text#${b}`), {
6421
+ ), { width: O } = _.getSVGElementSize(R(`text#${b}`), {
6422
6422
  useBBox: !0
6423
6423
  });
6424
- let R = 0;
6425
- return v + R >= O && (R = -O + 4), R;
6424
+ let I = 0;
6425
+ return v + I >= O && (I = -O + 4), I;
6426
6426
  });
6427
6427
  const f = e.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
6428
6428
  if (f.exit().remove(), o) {
@@ -6467,18 +6467,18 @@ class y0 extends ot {
6467
6467
  ).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} (${y(v.value, E)})`).attr("aria-label", (v) => `${v.name} (${v.value})`), m.append("rect").classed("node-text-bg", !0).attr("width", (v, S) => {
6468
6468
  const b = this.services.domUtils.generateElementIDString(
6469
6469
  `alluvial-node-text-${S}`
6470
- ), { width: O } = _.getSVGElementSize(I(`text#${b}`), {
6470
+ ), { width: O } = _.getSVGElementSize(R(`text#${b}`), {
6471
6471
  useBBox: !0
6472
6472
  });
6473
6473
  return O + 8;
6474
6474
  }).attr("height", 18).attr("stroke-width", 2).lower(), m.attr("transform", (v, S) => {
6475
6475
  const b = this.services.domUtils.generateElementIDString(
6476
6476
  `alluvial-node-text-${S}`
6477
- ), { width: O } = _.getSVGElementSize(I(`text#${b}`), {
6477
+ ), { width: O } = _.getSVGElementSize(R(`text#${b}`), {
6478
6478
  useBBox: !0
6479
- }), R = (v.y1 - v.y0) / 2 - 9;
6479
+ }), I = (v.y1 - v.y0) / 2 - 9;
6480
6480
  let k = v.x1 - v.x0;
6481
- return v.x1 >= O ? k = k - (O + 16) : k += 4, `translate(${k}, ${R})`;
6481
+ return v.x1 >= O ? k = k - (O + 16) : k += 4, `translate(${k}, ${I})`;
6482
6482
  }), this.addLineEventListener(), this.addNodeEventListener();
6483
6483
  }
6484
6484
  addLineEventListener() {
@@ -6489,12 +6489,12 @@ class y0 extends ot {
6489
6489
  name: "alluvial-links-mouse-highlight"
6490
6490
  })
6491
6491
  );
6492
- o === "mouseout" ? (I(a).lower(), c.style("stroke-opacity", ee.opacity.default)) : c.style("stroke-opacity", function() {
6493
- return a === this ? (I(this).raise(), ee.opacity.selected) : ee.opacity.unfocus;
6492
+ o === "mouseout" ? (R(a).lower(), c.style("stroke-opacity", ee.opacity.default)) : c.style("stroke-opacity", function() {
6493
+ return a === this ? (R(this).raise(), ee.opacity.selected) : ee.opacity.unfocus;
6494
6494
  });
6495
6495
  }, 33);
6496
6496
  this.parent.selectAll("path.link").on("mouseover", function(a, o) {
6497
- const c = I(this);
6497
+ const c = R(this);
6498
6498
  r(this, "mouseover"), c.classed("link-hovered", !0);
6499
6499
  const l = getComputedStyle(this).getPropertyValue("stroke");
6500
6500
  e.services.events.dispatchEvent(x.Alluvial.LINE_MOUSEOVER, {
@@ -6516,7 +6516,7 @@ class y0 extends ot {
6516
6516
  }).on("mousemove", function(a, o) {
6517
6517
  e.services.events.dispatchEvent(x.Alluvial.LINE_MOUSEMOVE, {
6518
6518
  event: a,
6519
- element: I(this),
6519
+ element: R(this),
6520
6520
  datum: o
6521
6521
  }), e.services.events.dispatchEvent(x.Tooltip.MOVE, {
6522
6522
  event: a
@@ -6524,11 +6524,11 @@ class y0 extends ot {
6524
6524
  }).on("click", function(a, o) {
6525
6525
  e.services.events.dispatchEvent(x.Alluvial.LINE_CLICK, {
6526
6526
  event: a,
6527
- element: I(this),
6527
+ element: R(this),
6528
6528
  datum: o
6529
6529
  });
6530
6530
  }).on("mouseout", function(a, o) {
6531
- const c = I(this);
6531
+ const c = R(this);
6532
6532
  r(this, "mouseout"), c.classed("link-hovered", !1), e.services.events.dispatchEvent(x.Alluvial.LINE_MOUSEOUT, {
6533
6533
  event: a,
6534
6534
  element: c,
@@ -6551,11 +6551,11 @@ class y0 extends ot {
6551
6551
  name: "alluvial-link-mouse-highlight"
6552
6552
  })
6553
6553
  ).style("stroke-opacity", function(a) {
6554
- return n.some((o) => o === a.index) ? (I(this).classed("link-hovered", !0).raise(), ee.opacity.selected) : ee.opacity.unfocus;
6554
+ return n.some((o) => o === a.index) ? (R(this).classed("link-hovered", !0).raise(), ee.opacity.selected) : ee.opacity.unfocus;
6555
6555
  });
6556
6556
  }, 66);
6557
6557
  t.parent.selectAll(".node-group").on("mouseover", function(n, i) {
6558
- const r = I(this), a = [];
6558
+ const r = R(this), a = [];
6559
6559
  if (t.traverse({ link: "sourceLinks", node: "target" }, i, a), t.traverse({ link: "targetLinks", node: "source" }, i, a), a.length) {
6560
6560
  const o = mn(r.attr("transform"));
6561
6561
  if (r.attr("transform", `translate(${o.x - 2}, ${o.y})`), r.classed("node-hovered", !0).selectAll("rect.node").attr("width", 8), i.x0 - 2 === 0) {
@@ -6576,7 +6576,7 @@ class y0 extends ot {
6576
6576
  }).on("mousemove", function(n, i) {
6577
6577
  t.services.events.dispatchEvent(x.Alluvial.NODE_MOUSEMOVE, {
6578
6578
  event: n,
6579
- element: I(this),
6579
+ element: R(this),
6580
6580
  datum: i
6581
6581
  }), t.services.events.dispatchEvent(x.Tooltip.MOVE, {
6582
6582
  event: n
@@ -6584,11 +6584,11 @@ class y0 extends ot {
6584
6584
  }).on("click", function(n, i) {
6585
6585
  t.services.events.dispatchEvent(x.Alluvial.NODE_CLICK, {
6586
6586
  event: n,
6587
- element: I(this),
6587
+ element: R(this),
6588
6588
  datum: i
6589
6589
  });
6590
6590
  }).on("mouseout", function(n, i) {
6591
- const r = I(this), a = mn(r.attr("transform"));
6591
+ const r = R(this), a = mn(r.attr("transform"));
6592
6592
  if (r.classed("node-hovered", !1).attr("transform", `translate(${a.x + 2}, ${a.y})`).select("rect.node").attr("width", ee.nodeWidth), i.x0 - 2 === 0) {
6593
6593
  const c = t.services.domUtils.generateElementIDString(
6594
6594
  `alluvial-node-title-${i.index}`
@@ -6746,8 +6746,8 @@ class S0 extends ot {
6746
6746
  const e = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions();
6747
6747
  let i = [0, 0];
6748
6748
  const { cartesianScales: r } = this.services, a = r.getOrientation(), o = yr().curve(this.services.curves.getD3Curve()).defined((b) => {
6749
- const O = r.getRangeIdentifier(), R = b[O];
6750
- return R != null;
6749
+ const O = r.getRangeIdentifier(), I = b[O];
6750
+ return I != null;
6751
6751
  }), c = this.model.getGroupedData(this.configs.groups), l = T(n, "bounds"), h = l && c && c.length === 1;
6752
6752
  !h && l && console.warn(
6753
6753
  `Bounds can only be shown when having 1 single datagroup, you've supplied ${c.length}`
@@ -6759,7 +6759,7 @@ class S0 extends ot {
6759
6759
  a === Ft.VERTICAL ? (i = r.getMainYScale().domain(), u(r.getMainYAxisPosition(), i), o.x((b) => r.getDomainValue(b)).y0((b) => p(b)).y1((b) => f(b))) : (i = r.getMainXScale().domain(), u(r.getMainXAxisPosition(), i), o.x0((b) => p(b)).x1((b) => f(b)).y((b) => r.getDomainValue(b)));
6760
6760
  const g = T(n, "color", "gradient", "enabled"), m = c && c.length === 1 && g;
6761
6761
  c.length > 1 && g && console.error("Gradients can only be enabled when having 1 single dataset");
6762
- const E = e.selectAll("path.area").data(c, (b) => b.name), y = I(this.services.domUtils.getMainContainer());
6762
+ const E = e.selectAll("path.area").data(c, (b) => b.name), y = R(this.services.domUtils.getMainContainer());
6763
6763
  if (E.exit().attr("opacity", 0).remove(), !c.length)
6764
6764
  return;
6765
6765
  if (m) {
@@ -6775,10 +6775,10 @@ class S0 extends ot {
6775
6775
  "stroke"
6776
6776
  );
6777
6777
  else {
6778
- const R = T(this.model.getOptions(), "color", "scale");
6779
- if (R !== null) {
6780
- const k = Object.keys(R);
6781
- O = R[k[0]];
6778
+ const I = T(this.model.getOptions(), "color", "scale");
6779
+ if (I !== null) {
6780
+ const k = Object.keys(I);
6781
+ O = I[k[0]];
6782
6782
  }
6783
6783
  }
6784
6784
  ta.appendOrUpdateLinearGradient({
@@ -6965,6 +6965,7 @@ class Ml extends ot {
6965
6965
  return E.includes(b);
6966
6966
  });
6967
6967
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Vo(this.elementsToHighlight, y) && this.hideRuler(), y.dispatch("mouseover"), this.elementsToHighlight = y, this.services.events.dispatchEvent(x.Tooltip.SHOW, {
6968
+ event: t,
6968
6969
  mousePosition: [e, n],
6969
6970
  hoveredElement: u,
6970
6971
  data: this.formatTooltipData(m)
@@ -7177,7 +7178,7 @@ class Sr extends ot {
7177
7178
  if (!this.parent) throw new Error("Parent not defined");
7178
7179
  this.parent.selectAll("circle").on("mouseover", function(n, i) {
7179
7180
  var a, o;
7180
- const r = I(this);
7181
+ const r = R(this);
7181
7182
  r.classed("hovered", !0).attr(
7182
7183
  "class",
7183
7184
  (c) => t.model.getColorClassName({
@@ -7201,7 +7202,7 @@ class Sr extends ot {
7201
7202
  });
7202
7203
  }).on("mousemove", function(n, i) {
7203
7204
  var a, o;
7204
- const r = I(this);
7205
+ const r = R(this);
7205
7206
  (a = t.services.events) == null || a.dispatchEvent(x.Scatter.SCATTER_MOUSEMOVE, {
7206
7207
  event: n,
7207
7208
  element: r,
@@ -7213,12 +7214,12 @@ class Sr extends ot {
7213
7214
  var r;
7214
7215
  (r = t.services.events) == null || r.dispatchEvent(x.Scatter.SCATTER_CLICK, {
7215
7216
  event: n,
7216
- element: I(this),
7217
+ element: R(this),
7217
7218
  datum: i
7218
7219
  });
7219
7220
  }).on("mouseout", function(n, i) {
7220
7221
  var a, o, c;
7221
- const r = I(this);
7222
+ const r = R(this);
7222
7223
  if (r.classed("hovered", !1), !t.configs.filled) {
7223
7224
  const { filled: l } = t.getOptions().points, h = (a = t.services.cartesianScales) == null ? void 0 : a.getDomainIdentifier(i), d = t.model.getIsFilled(
7224
7225
  i[e],
@@ -7289,7 +7290,7 @@ class _l extends ot {
7289
7290
  f.attr("aria-hidden", !0);
7290
7291
  return;
7291
7292
  }
7292
- const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), R = T(m, "ticks", "values"), k = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), C = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
7293
+ const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"), k = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), C = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
7293
7294
  useBBox: !0
7294
7295
  }).height;
7295
7296
  D.remove();
@@ -7333,19 +7334,19 @@ class _l extends ot {
7333
7334
  N.tickFormat(P);
7334
7335
  const [et, J] = this.services.cartesianScales.getScaleByPosition(e).domain();
7335
7336
  let ct;
7336
- if (R) {
7337
+ if (I) {
7337
7338
  if (E)
7338
- R.forEach((j, Z) => {
7339
- j.getTime === void 0 && (R[Z] = new Date(j));
7340
- }), ct = R.filter((j) => {
7339
+ I.forEach((j, Z) => {
7340
+ j.getTime === void 0 && (I[Z] = new Date(j));
7341
+ }), ct = I.filter((j) => {
7341
7342
  const Z = j.getTime();
7342
7343
  return Z >= new Date(et).getTime() && Z <= new Date(J).getTime();
7343
7344
  });
7344
7345
  else if (S === Mt.LABELS) {
7345
7346
  const j = this.services.cartesianScales.getScaleByPosition(e).domain();
7346
- ct = R.filter((Z) => j.includes(Z));
7347
+ ct = I.filter((Z) => j.includes(Z));
7347
7348
  } else
7348
- ct = R.filter(
7349
+ ct = I.filter(
7349
7350
  (j) => j >= et && j <= J
7350
7351
  );
7351
7352
  N.tickValues(ct);
@@ -7434,7 +7435,7 @@ class _l extends ot {
7434
7435
  }).width;
7435
7436
  let Et;
7436
7437
  g.selectAll("g.tick").each(function() {
7437
- const Ut = I(this), H = parseFloat(T(fe(this), "tx"));
7438
+ const Ut = R(this), H = parseFloat(T(fe(this), "tx"));
7438
7439
  H !== null && Et + Ut.text().length * ht * 0.8 >= H && (j = !0), Et = H;
7439
7440
  }), ut.remove();
7440
7441
  }
@@ -7442,7 +7443,7 @@ class _l extends ot {
7442
7443
  this.getNumberOfFittingTicks(a, w, qe.ticks.horizontalSpaceRatio)
7443
7444
  ), g.call(N), f.call(N)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === Y.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
7444
7445
  }
7445
- if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), k !== Ze.NONE && S === Mt.LABELS && !R) {
7446
+ if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), k !== Ze.NONE && S === Mt.LABELS && !I) {
7446
7447
  const j = this.services.cartesianScales.getScaleDomain(e);
7447
7448
  if (j.length > 0) {
7448
7449
  const Z = r.select(`g.axis.${e} g.ticks g.tick`).html();
@@ -7462,17 +7463,17 @@ class _l extends ot {
7462
7463
  n.selectAll("g.tick text").on("mouseover", function(l, h) {
7463
7464
  c.services.events.dispatchEvent(x.Axis.LABEL_MOUSEOVER, {
7464
7465
  event: l,
7465
- element: I(this),
7466
+ element: R(this),
7466
7467
  datum: h
7467
7468
  }), a === Mt.LABELS && h.length > o && c.services.events.dispatchEvent(x.Tooltip.SHOW, {
7468
7469
  event: l,
7469
- hoveredElement: I(this),
7470
+ hoveredElement: R(this),
7470
7471
  content: h
7471
7472
  });
7472
7473
  }).on("mousemove", function(l, h) {
7473
7474
  c.services.events.dispatchEvent(x.Axis.LABEL_MOUSEMOVE, {
7474
7475
  event: l,
7475
- element: I(this),
7476
+ element: R(this),
7476
7477
  datum: h
7477
7478
  }), a === Mt.LABELS && h.length > o && c.services.events.dispatchEvent(x.Tooltip.MOVE, {
7478
7479
  event: l
@@ -7480,13 +7481,13 @@ class _l extends ot {
7480
7481
  }).on("click", function(l, h) {
7481
7482
  c.services.events.dispatchEvent(x.Axis.LABEL_CLICK, {
7482
7483
  event: l,
7483
- element: I(this),
7484
+ element: R(this),
7484
7485
  datum: h
7485
7486
  });
7486
7487
  }).on("mouseout", function(l, h) {
7487
7488
  c.services.events.dispatchEvent(x.Axis.LABEL_MOUSEOUT, {
7488
7489
  event: l,
7489
- element: I(this),
7490
+ element: R(this),
7490
7491
  datum: h
7491
7492
  }), a === Mt.LABELS && c.services.events.dispatchEvent(x.Tooltip.HIDE);
7492
7493
  });
@@ -7516,7 +7517,7 @@ class Kf extends _l {
7516
7517
  super.render(t), super.destroy();
7517
7518
  const e = this.configs.position, n = this.getComponentContainer(), i = _.appendOrSelect(n, `g.axis.${e}`), r = this;
7518
7519
  i.selectAll("g.tick").each(function(a, o) {
7519
- const c = I(this);
7520
+ const c = R(this);
7520
7521
  c.classed("tick-hover", !0).attr("tabindex", o === 0 ? 0 : -1);
7521
7522
  const l = c.select("text"), { width: h, height: d } = _.getSVGElementSize(l, {
7522
7523
  useBBox: !0
@@ -7542,7 +7543,7 @@ class Kf extends _l {
7542
7543
  addEventListeners() {
7543
7544
  const t = this.getComponentContainer(), { position: e } = this.configs, n = _.appendOrSelect(t, `g.axis.${e}`), i = this.getOptions(), r = T(i, "axes", e), a = T(r, "scaleType"), o = T(r, "truncation", "threshold"), c = this;
7544
7545
  n.selectAll("g.tick.tick-hover").on("mouseover", function(l) {
7545
- const h = I(this).select("text"), d = h.datum();
7546
+ const h = R(this).select("text"), d = h.datum();
7546
7547
  c.services.events.dispatchEvent(x.Axis.LABEL_MOUSEOVER, {
7547
7548
  event: l,
7548
7549
  element: h,
@@ -7553,7 +7554,7 @@ class Kf extends _l {
7553
7554
  datum: d
7554
7555
  });
7555
7556
  }).on("mousemove", function(l) {
7556
- const h = I(this).select("text"), d = h.datum();
7557
+ const h = R(this).select("text"), d = h.datum();
7557
7558
  c.services.events.dispatchEvent(x.Axis.LABEL_MOUSEMOVE, {
7558
7559
  event: l,
7559
7560
  element: h,
@@ -7564,14 +7565,14 @@ class Kf extends _l {
7564
7565
  }).on("click", function(l) {
7565
7566
  c.services.events.dispatchEvent(x.Axis.LABEL_CLICK, {
7566
7567
  event: l,
7567
- element: I(this).select("text"),
7568
- datum: I(this).select("text").datum()
7568
+ element: R(this).select("text"),
7569
+ datum: R(this).select("text").datum()
7569
7570
  });
7570
7571
  }).on("mouseout", function(l) {
7571
7572
  c.services.events.dispatchEvent(x.Axis.LABEL_MOUSEOUT, {
7572
7573
  event: l,
7573
- element: I(this).select("text"),
7574
- datum: I(this).select("text").datum()
7574
+ element: R(this).select("text"),
7575
+ datum: R(this).select("text").datum()
7575
7576
  }), a === Mt.LABELS && c.services.events.dispatchEvent(x.Tooltip.HIDE);
7576
7577
  }).on("focus", function(l) {
7577
7578
  const h = { clientX: 0, clientY: 0 };
@@ -7582,20 +7583,20 @@ class Kf extends _l {
7582
7583
  }
7583
7584
  c.services.events.dispatchEvent(x.Axis.LABEL_FOCUS, {
7584
7585
  event: { ...l, ...h },
7585
- element: I(this),
7586
- datum: I(this).select("text").datum()
7586
+ element: R(this),
7587
+ datum: R(this).select("text").datum()
7587
7588
  });
7588
7589
  }).on("blur", function(l) {
7589
7590
  c.services.events.dispatchEvent(x.Axis.LABEL_BLUR, {
7590
7591
  event: l,
7591
- element: I(this),
7592
- datum: I(this).select("text").datum()
7592
+ element: R(this),
7593
+ datum: R(this).select("text").datum()
7593
7594
  });
7594
7595
  }).on("keydown", function(l) {
7595
7596
  l.key && l.key === "Escape" && (c.services.events.dispatchEvent(x.Tooltip.HIDE), c.services.events.dispatchEvent(x.Axis.LABEL_BLUR, {
7596
7597
  event: l,
7597
- element: I(this),
7598
- datum: I(this).select("text").datum()
7598
+ element: R(this),
7599
+ datum: R(this).select("text").datum()
7599
7600
  })), e === Y.LEFT || e === Y.RIGHT ? l.key && l.key === "ArrowUp" ? c.goNext(this, l) : l.key && l.key === "ArrowDown" && c.goPrevious(this, l) : l.key && l.key === "ArrowLeft" ? c.goPrevious(this, l) : l.key && l.key === "ArrowRight" && c.goNext(this, l);
7600
7601
  });
7601
7602
  }
@@ -7791,8 +7792,8 @@ class T0 extends ot {
7791
7792
  g
7792
7793
  ), v = Math.floor((m ? u : p) / r.length), S = Math.min(v / 2, 16), b = this.model.getBoxplotData(), O = e.selectAll(".box-group").data(b);
7793
7794
  O.exit().remove();
7794
- const R = O.enter().append("g").attr("class", "box-group"), k = O.merge(R);
7795
- R.append("path").merge(O.select("path.vertical-line.start")).attr(
7795
+ const I = O.enter().append("g").attr("class", "box-group"), k = O.merge(I);
7796
+ I.append("path").merge(O.select("path.vertical-line.start")).attr(
7796
7797
  "class",
7797
7798
  () => this.model.getColorClassName({
7798
7799
  classNameTypes: [tt.STROKE],
@@ -7807,7 +7808,7 @@ class T0 extends ot {
7807
7808
  ).attr("d", (L) => {
7808
7809
  const B = f.getDomainValue(L[i]), D = B, A = f.getRangeValue(L.whiskers.min), w = f.getRangeValue(L.quartiles.q_25);
7809
7810
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7810
- }), R.append("path").merge(O.select("path.vertical-line.end")).attr(
7811
+ }), I.append("path").merge(O.select("path.vertical-line.end")).attr(
7811
7812
  "class",
7812
7813
  () => this.model.getColorClassName({
7813
7814
  classNameTypes: [tt.STROKE],
@@ -7822,7 +7823,7 @@ class T0 extends ot {
7822
7823
  ).attr("d", (L) => {
7823
7824
  const B = f.getDomainValue(L[i]), D = B, A = f.getRangeValue(L.whiskers.max), w = f.getRangeValue(L.quartiles.q_75);
7824
7825
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7825
- }), R.append("path").merge(O.select("path.box")).attr(
7826
+ }), I.append("path").merge(O.select("path.box")).attr(
7826
7827
  "class",
7827
7828
  () => this.model.getColorClassName({
7828
7829
  classNameTypes: [tt.FILL, tt.STROKE],
@@ -7841,10 +7842,10 @@ class T0 extends ot {
7841
7842
  f.getRangeValue(L.quartiles.q_75) - f.getRangeValue(L.quartiles.q_25)
7842
7843
  );
7843
7844
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7844
- }), R.append("path").merge(O.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (L) => {
7845
+ }), I.append("path").merge(O.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (L) => {
7845
7846
  const B = f.getDomainValue(L[i]) - S / 2, D = B + S, A = f.getRangeValue(L.whiskers.min), w = f.getRangeValue(L.whiskers.max);
7846
7847
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7847
- }), R.append("path").merge(O.select("path.whisker.start")).attr(
7848
+ }), I.append("path").merge(O.select("path.whisker.start")).attr(
7848
7849
  "class",
7849
7850
  () => this.model.getColorClassName({
7850
7851
  classNameTypes: [tt.STROKE],
@@ -7859,7 +7860,7 @@ class T0 extends ot {
7859
7860
  ).attr("d", (L) => {
7860
7861
  const B = f.getDomainValue(L[i]) - S / 4, D = B + S / 2, A = f.getRangeValue(L.whiskers.min), w = f.getRangeValue(L.whiskers.min);
7861
7862
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7862
- }), R.append("path").merge(O.select("path.median")).attr("fill", "none").attr(
7863
+ }), I.append("path").merge(O.select("path.median")).attr("fill", "none").attr(
7863
7864
  "class",
7864
7865
  () => this.model.getColorClassName({
7865
7866
  classNameTypes: [tt.STROKE],
@@ -7874,7 +7875,7 @@ class T0 extends ot {
7874
7875
  ).attr("d", (L) => {
7875
7876
  const B = f.getDomainValue(L[i]) - S / 2, D = B + S, A = f.getRangeValue(L.quartiles.q_50);
7876
7877
  return $t({ x0: B, x1: D, y0: A, y1: A }, g);
7877
- }), R.append("path").merge(O.select("path.whisker.end")).attr(
7878
+ }), I.append("path").merge(O.select("path.whisker.end")).attr(
7878
7879
  "class",
7879
7880
  () => this.model.getColorClassName({
7880
7881
  classNameTypes: [tt.STROKE],
@@ -7917,8 +7918,8 @@ class T0 extends ot {
7917
7918
  addBoxEventListeners() {
7918
7919
  const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data;
7919
7920
  this.parent.selectAll("path.highlight-area").on("mouseover", function(i, r) {
7920
- const a = I(this);
7921
- I(this.parentNode).select("path.box").classed("hovered", !0).attr("fill-opacity", jt.box.opacity.hovered), t.services.events.dispatchEvent(x.Tooltip.SHOW, {
7921
+ const a = R(this);
7922
+ R(this.parentNode).select("path.box").classed("hovered", !0).attr("fill-opacity", jt.box.opacity.hovered), t.services.events.dispatchEvent(x.Tooltip.SHOW, {
7922
7923
  event: i,
7923
7924
  hoveredElement: a,
7924
7925
  items: [
@@ -7960,7 +7961,7 @@ class T0 extends ot {
7960
7961
  datum: r
7961
7962
  });
7962
7963
  }).on("mousemove", function(i, r) {
7963
- const a = I(this);
7964
+ const a = R(this);
7964
7965
  t.services.events.dispatchEvent(x.Boxplot.BOX_MOUSEMOVE, {
7965
7966
  event: i,
7966
7967
  element: a,
@@ -7971,12 +7972,12 @@ class T0 extends ot {
7971
7972
  }).on("click", function(i, r) {
7972
7973
  t.services.events.dispatchEvent(x.Boxplot.BOX_CLICK, {
7973
7974
  event: i,
7974
- element: I(this),
7975
+ element: R(this),
7975
7976
  datum: r
7976
7977
  });
7977
7978
  }).on("mouseout", function(i, r) {
7978
- const a = I(this);
7979
- I(this.parentNode).select("path.box").classed("hovered", !1).attr("fill-opacity", jt.box.opacity.default), t.services.events.dispatchEvent(x.Boxplot.BOX_MOUSEOUT, {
7979
+ const a = R(this);
7980
+ R(this.parentNode).select("path.box").classed("hovered", !1).attr("fill-opacity", jt.box.opacity.default), t.services.events.dispatchEvent(x.Boxplot.BOX_MOUSEOUT, {
7980
7981
  event: i,
7981
7982
  element: a,
7982
7983
  datum: r
@@ -7988,7 +7989,7 @@ class T0 extends ot {
7988
7989
  addCircleEventListeners() {
7989
7990
  const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, i = this.services.cartesianScales.getRangeIdentifier();
7990
7991
  this.parent.selectAll("circle").on("mouseover", function(r, a) {
7991
- const o = I(this);
7992
+ const o = R(this);
7992
7993
  o.classed("hovered", !0).attr("fill-opacity", jt.circle.opacity.hovered).classed("unfilled", !1), t.services.events.dispatchEvent(x.Tooltip.SHOW, {
7993
7994
  event: r,
7994
7995
  hoveredElement: o,
@@ -8011,7 +8012,7 @@ class T0 extends ot {
8011
8012
  datum: a
8012
8013
  });
8013
8014
  }).on("mousemove", function(r, a) {
8014
- const o = I(this);
8015
+ const o = R(this);
8015
8016
  t.services.events.dispatchEvent(x.Boxplot.OUTLIER_MOUSEMOVE, {
8016
8017
  event: r,
8017
8018
  element: o,
@@ -8022,11 +8023,11 @@ class T0 extends ot {
8022
8023
  }).on("click", function(r, a) {
8023
8024
  t.services.events.dispatchEvent(x.Boxplot.OUTLIER_CLICK, {
8024
8025
  event: r,
8025
- element: I(this),
8026
+ element: R(this),
8026
8027
  datum: a
8027
8028
  });
8028
8029
  }).on("mouseout", function(r, a) {
8029
- const o = I(this);
8030
+ const o = R(this);
8030
8031
  o.classed("hovered", !1).attr("fill-opacity", jt.circle.opacity.default), t.services.events.dispatchEvent(x.Boxplot.OUTLIER_MOUSEOUT, {
8031
8032
  event: r,
8032
8033
  element: o,
@@ -8164,9 +8165,9 @@ class L0 extends ot {
8164
8165
  animate: t
8165
8166
  })
8166
8167
  ).attr("d", (y) => {
8167
- let S, b, O, R;
8168
- return y.order === 1 ? (S = this.services.cartesianScales.getDomainValue(y.datum) - 16 / 2, b = S + 16, O = l - 2, R = c + 1) : (S = this.services.cartesianScales.getDomainValue(y.datum) - 16 / 2, b = S + 16, O = this.services.cartesianScales.getRangeValue(y.value), R = l), $t(
8169
- { x0: S, x1: b, y0: O, y1: R },
8168
+ let S, b, O, I;
8169
+ return y.order === 1 ? (S = this.services.cartesianScales.getDomainValue(y.datum) - 16 / 2, b = S + 16, O = l - 2, I = c + 1) : (S = this.services.cartesianScales.getDomainValue(y.datum) - 16 / 2, b = S + 16, O = this.services.cartesianScales.getRangeValue(y.value), I = l), $t(
8170
+ { x0: S, x1: b, y0: O, y1: I },
8170
8171
  this.services.cartesianScales.getOrientation()
8171
8172
  );
8172
8173
  }).attr("opacity", 1);
@@ -8233,9 +8234,9 @@ class L0 extends ot {
8233
8234
  ).attr("d", ({ datum: y, value: v }) => {
8234
8235
  let S = 4;
8235
8236
  y.ranges && y.ranges.indexOf(v) !== -1 && (S = 8);
8236
- const b = this.services.cartesianScales.getDomainValue(y) - S / 2, O = b + S, R = this.services.cartesianScales.getRangeValue(v);
8237
+ const b = this.services.cartesianScales.getDomainValue(y) - S / 2, O = b + S, I = this.services.cartesianScales.getRangeValue(v);
8237
8238
  return $t(
8238
- { x0: b, x1: O, y0: R, y1: R },
8239
+ { x0: b, x1: O, y0: I, y1: I },
8239
8240
  this.services.cartesianScales.getOrientation()
8240
8241
  );
8241
8242
  }).attr("opacity", 1);
@@ -8245,7 +8246,7 @@ class L0 extends ot {
8245
8246
  addEventListeners() {
8246
8247
  const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, i = this.services.cartesianScales.getRangeIdentifier(), { code: r, number: a } = T(e, "locale");
8247
8248
  this.parent.selectAll("path.bar").on("mouseover", function(o, c) {
8248
- const l = I(this);
8249
+ const l = R(this);
8249
8250
  l.classed("hovered", !0), t.services.events.dispatchEvent(x.Bar.BAR_MOUSEOVER, {
8250
8251
  event: o,
8251
8252
  element: l,
@@ -8285,7 +8286,7 @@ class L0 extends ot {
8285
8286
  }).on("mousemove", function(o, c) {
8286
8287
  t.services.events.dispatchEvent(x.Bar.BAR_MOUSEMOVE, {
8287
8288
  event: o,
8288
- element: I(this),
8289
+ element: R(this),
8289
8290
  datum: c
8290
8291
  }), t.services.events.dispatchEvent(x.Tooltip.MOVE, {
8291
8292
  event: o
@@ -8293,11 +8294,11 @@ class L0 extends ot {
8293
8294
  }).on("click", function(o, c) {
8294
8295
  t.services.events.dispatchEvent(x.Bar.BAR_CLICK, {
8295
8296
  event: o,
8296
- element: I(this),
8297
+ element: R(this),
8297
8298
  datum: c
8298
8299
  });
8299
8300
  }).on("mouseout", function(o, c) {
8300
- const l = I(this);
8301
+ const l = R(this);
8301
8302
  l.classed("hovered", !1), t.services.events.dispatchEvent(x.Bar.BAR_MOUSEOUT, {
8302
8303
  event: o,
8303
8304
  element: l,
@@ -8511,16 +8512,17 @@ class A0 extends Ml {
8511
8512
  });
8512
8513
  if (m.size() > 0) {
8513
8514
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Vo(this.elementsToHighlight, m) && this.hideRuler(), m.dispatch("mouseover"), this.elementsToHighlight = m;
8514
- const E = I(m.nodes()[0]).datum(), y = parseFloat(yt(E, "data.x0")), v = parseFloat(yt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((R) => ({
8515
- label: R,
8516
- value: yt(E, `data.${R}`),
8515
+ const E = R(m.nodes()[0]).datum(), y = parseFloat(yt(E, "data.x0")), v = parseFloat(yt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((I) => ({
8516
+ label: I,
8517
+ value: yt(E, `data.${I}`),
8517
8518
  class: this.model.getColorClassName({
8518
8519
  classNameTypes: [tt.TOOLTIP],
8519
- dataGroupName: R
8520
+ dataGroupName: I
8520
8521
  })
8521
- })).filter((R) => R.value !== 0);
8522
+ })).filter((I) => I.value !== 0);
8522
8523
  if (b.length > 0) {
8523
8524
  this.services.events.dispatchEvent(x.Tooltip.SHOW, {
8525
+ event: t,
8524
8526
  mousePosition: [e, n],
8525
8527
  hoveredElement: f,
8526
8528
  items: [
@@ -8540,8 +8542,8 @@ class A0 extends Ml {
8540
8542
  ] : []
8541
8543
  ]
8542
8544
  }), p.attr("opacity", 1);
8543
- const R = d((y + v) / 2);
8544
- o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", R).attr("y2", R) : f.attr("y1", h).attr("y2", l).attr("x1", R).attr("x2", R);
8545
+ const I = d((y + v) / 2);
8546
+ o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", I).attr("y2", I) : f.attr("y1", h).attr("y2", l).attr("x1", I).attr("x2", I);
8545
8547
  } else
8546
8548
  this.hideRuler();
8547
8549
  } else
@@ -8644,8 +8646,8 @@ class V0 extends Mf {
8644
8646
  E.push(
8645
8647
  a === Fs.LINEAR ? `stop-color-${m}-${o}-${C}` : `fill-${m}-${o}-${C}`
8646
8648
  );
8647
- const v = So(d[0], d[1]), S = Su(v, 3), b = ke().domain(d).range([0, p]), O = hr(b).tickSize(0).tickValues(S), { code: R, number: k } = T(e, "locale");
8648
- O.tickFormat((C) => k(C, R));
8649
+ const v = So(d[0], d[1]), S = Su(v, 3), b = ke().domain(d).range([0, p]), O = hr(b).tickSize(0).tickValues(S), { code: I, number: k } = T(e, "locale");
8650
+ O.tickFormat((C) => k(C, I));
8649
8651
  let G;
8650
8652
  switch (a) {
8651
8653
  case Fs.LINEAR:
@@ -8881,10 +8883,10 @@ class G0 extends ot {
8881
8883
  t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
8882
8884
  }
8883
8885
  removeBackgroundListeners() {
8884
- I(this.services.domUtils.getMainContainer()).on("click", () => null);
8886
+ R(this.services.domUtils.getMainContainer()).on("click", () => null);
8885
8887
  }
8886
8888
  setBackgroundListeners() {
8887
- const t = I(this.services.domUtils.getMainContainer()), e = this, n = this.parent.selectAll("circle.node");
8889
+ const t = R(this.services.domUtils.getMainContainer()), e = this, n = this.parent.selectAll("circle.node");
8888
8890
  t.on("click", () => {
8889
8891
  e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Gn);
8890
8892
  });
@@ -8901,7 +8903,7 @@ class G0 extends ot {
8901
8903
  addEventListeners() {
8902
8904
  const t = this;
8903
8905
  this.parent.selectAll("circle.node").on("mouseover", function(e, n) {
8904
- const i = I(this);
8906
+ const i = R(this);
8905
8907
  i.classed("hovered", !0);
8906
8908
  const r = t.model.getHierarchyLevel(), a = r > 2 && !i.classed("focal"), o = T(t.model.getOptions(), "canvasZoom", "enabled");
8907
8909
  let c = !1;
@@ -8951,7 +8953,7 @@ class G0 extends ot {
8951
8953
  datum: n
8952
8954
  });
8953
8955
  }).on("mousemove", function(e, n) {
8954
- const i = I(this);
8956
+ const i = R(this);
8955
8957
  t.services.events.dispatchEvent(x.CirclePack.CIRCLE_MOUSEMOVE, {
8956
8958
  event: e,
8957
8959
  element: i,
@@ -8960,7 +8962,7 @@ class G0 extends ot {
8960
8962
  event: e
8961
8963
  });
8962
8964
  }).on("mouseout", function(e, n) {
8963
- const i = I(this);
8965
+ const i = R(this);
8964
8966
  i.classed("hovered", !1), n.children && t.unhighlightChildren(n.children), t.services.events.dispatchEvent(x.CirclePack.CIRCLE_MOUSEOUT, {
8965
8967
  event: e,
8966
8968
  element: i,
@@ -8969,13 +8971,13 @@ class G0 extends ot {
8969
8971
  hoveredElement: i
8970
8972
  });
8971
8973
  }).on("click", function(e, n) {
8972
- const i = I(this), r = i.classed("non-focal"), a = T(t.model.getOptions(), "canvasZoom", "enabled");
8974
+ const i = R(this), r = i.classed("non-focal"), a = T(t.model.getOptions(), "canvasZoom", "enabled");
8973
8975
  if (a && t.model.getHierarchyLevel() > 2) {
8974
8976
  const o = t.parent.selectAll("circle.node");
8975
- I(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Gn);
8977
+ R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Gn);
8976
8978
  } else if (n.depth === 2 && n.children && !r && a) {
8977
8979
  const o = t.parent.selectAll("circle.node");
8978
- I(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Gn), e.stopPropagation();
8980
+ R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Gn), e.stopPropagation();
8979
8981
  }
8980
8982
  t.services.events.dispatchEvent(x.CirclePack.CIRCLE_CLICK, {
8981
8983
  event: e,
@@ -9075,7 +9077,7 @@ class lg extends ot {
9075
9077
  }
9076
9078
  return `translate(${A.xPosition}, ${A.yPosition})`;
9077
9079
  }), this.renderCallouts(O);
9078
- const R = T(i, "donut") ? "donut" : "pie", k = T(i, R, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
9080
+ const I = T(i, "donut") ? "donut" : "pie", k = T(i, I, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
9079
9081
  useAttrs: !0
9080
9082
  }), C = E ? vt.xOffset : 0, L = E ? vt.yOffset : 0;
9081
9083
  let B = c + C;
@@ -9103,15 +9105,15 @@ class lg extends ot {
9103
9105
  y: l - vt.callout.offsetY + o.textOffsetY
9104
9106
  }, o.intersectPointX = o.endPos.x + vt.callout.horizontalLineLength), o;
9105
9107
  }), i.append("line").classed("vertical-line", !0).merge(e.selectAll("line.vertical-line")).datum(function() {
9106
- return I(this.parentNode).datum();
9108
+ return R(this.parentNode).datum();
9107
9109
  }).style("stroke-width", "1px").attr("x1", (o) => o.startPos.x).attr("y1", (o) => o.startPos.y).attr("x2", (o) => o.intersectPointX).attr("y2", (o) => o.endPos.y), i.append("line").classed("horizontal-line", !0).merge(e.selectAll("line.horizontal-line")).datum(function() {
9108
- return I(this.parentNode).datum();
9110
+ return R(this.parentNode).datum();
9109
9111
  }).style("stroke-width", "1px").attr("x1", (o) => o.intersectPointX).attr("y1", (o) => o.endPos.y).attr("x2", (o) => o.endPos.x).attr("y2", (o) => o.endPos.y);
9110
9112
  }
9111
9113
  addEventListeners() {
9112
9114
  const t = this;
9113
9115
  this.parent.selectAll("path.slice").on("mouseover", function(e, n) {
9114
- const i = I(this);
9116
+ const i = R(this);
9115
9117
  t.isRendering || i.classed("hovered", !0).transition("pie_slice_mouseover").call(
9116
9118
  (o) => t.services.transitions.setupTransition({
9117
9119
  transition: o,
@@ -9119,7 +9121,7 @@ class lg extends ot {
9119
9121
  })
9120
9122
  ).attr("d", t.hoverArc), t.services.events.dispatchEvent(x.Pie.SLICE_MOUSEOVER, {
9121
9123
  event: e,
9122
- element: I(this),
9124
+ element: R(this),
9123
9125
  datum: n
9124
9126
  });
9125
9127
  const { groupMapsTo: r } = t.getOptions().data, { valueMapsTo: a } = t.getOptions().pie;
@@ -9134,7 +9136,7 @@ class lg extends ot {
9134
9136
  ]
9135
9137
  });
9136
9138
  }).on("mousemove", function(e, n) {
9137
- const i = I(this);
9139
+ const i = R(this);
9138
9140
  t.services.events.dispatchEvent(x.Pie.SLICE_MOUSEMOVE, {
9139
9141
  event: e,
9140
9142
  element: i,
@@ -9145,11 +9147,11 @@ class lg extends ot {
9145
9147
  }).on("click", function(e, n) {
9146
9148
  t.services.events.dispatchEvent(x.Pie.SLICE_CLICK, {
9147
9149
  event: e,
9148
- element: I(this),
9150
+ element: R(this),
9149
9151
  datum: n
9150
9152
  });
9151
9153
  }).on("mouseout", function(e, n) {
9152
- const i = I(this);
9154
+ const i = R(this);
9153
9155
  nu(() => {
9154
9156
  t.isRendering || i.classed("hovered", !1).transition("pie_slice_mouseout").call(
9155
9157
  (r) => t.services.transitions.setupTransition({
@@ -9193,7 +9195,7 @@ class H0 extends lg {
9193
9195
  animate: t
9194
9196
  })
9195
9197
  ).tween("text", function() {
9196
- return e.centerNumberTween(I(this));
9198
+ return e.centerNumberTween(R(this));
9197
9199
  }), a !== null && a !== "" && _.appendOrSelect(n, "text.donut-title").attr("text-anchor", "middle").style("font-size", () => i.donut.center.titleFontSize(r)).attr("y", i.donut.center.titleYPosition(r)).text(a);
9198
9200
  }
9199
9201
  getInnerRadius() {
@@ -9296,10 +9298,10 @@ class U0 extends ot {
9296
9298
  const { width: v } = _.getSVGElementSize(
9297
9299
  _.appendOrSelect(t, "text.gauge-value-number"),
9298
9300
  { useBBox: !0 }
9299
- ), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: R, height: k } = _.getSVGElementSize(O, {
9301
+ ), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height: k } = _.getSVGElementSize(O, {
9300
9302
  useBBox: !0
9301
9303
  });
9302
- O.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${R / 2}, 0)`);
9304
+ O.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${I / 2}, 0)`);
9303
9305
  }
9304
9306
  /**
9305
9307
  * adds the delta number for the gauge
@@ -9320,7 +9322,7 @@ class U0 extends ot {
9320
9322
  { useBBox: !0 }
9321
9323
  ), y = T(n, "gauge", "deltaArrow", "enabled"), v = f.selectAll("svg.gauge-delta-arrow").data(i !== null && y ? [i] : []);
9322
9324
  v.enter().append("svg").merge(v).attr("class", "gauge-delta-arrow").attr("x", -h(o) - E / 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() {
9323
- const S = I(this);
9325
+ const S = R(this);
9324
9326
  _.appendOrSelect(S, "rect.gauge-delta-arrow-backdrop").attr("width", "16").attr("height", "16").attr("fill", "none");
9325
9327
  const b = T(n, "gauge", "status");
9326
9328
  _.appendOrSelect(S, "polygon.gauge-delta-arrow").attr("class", b !== null ? `gauge-delta-arrow status--${b}` : "").attr("points", t.getArrow(i));
@@ -9339,11 +9341,11 @@ class U0 extends ot {
9339
9341
  this.parent.selectAll("path.arc-foreground").on("mouseover", function(e, n) {
9340
9342
  t.services.events.dispatchEvent(x.Gauge.ARC_MOUSEOVER, {
9341
9343
  event: e,
9342
- element: I(this),
9344
+ element: R(this),
9343
9345
  datum: n
9344
9346
  });
9345
9347
  }).on("mousemove", function(e, n) {
9346
- const i = I(this);
9348
+ const i = R(this);
9347
9349
  t.services.events.dispatchEvent(x.Gauge.ARC_MOUSEMOVE, {
9348
9350
  event: e,
9349
9351
  element: i,
@@ -9352,11 +9354,11 @@ class U0 extends ot {
9352
9354
  }).on("click", function(e, n) {
9353
9355
  t.services.events.dispatchEvent(x.Gauge.ARC_CLICK, {
9354
9356
  event: e,
9355
- element: I(this),
9357
+ element: R(this),
9356
9358
  datum: n
9357
9359
  });
9358
9360
  }).on("mouseout", function(e, n) {
9359
- const i = I(this);
9361
+ const i = R(this);
9360
9362
  t.services.events.dispatchEvent(x.Gauge.ARC_MOUSEOUT, {
9361
9363
  event: e,
9362
9364
  element: i,
@@ -9448,7 +9450,7 @@ class z0 extends br {
9448
9450
  addEventListeners() {
9449
9451
  const t = this;
9450
9452
  this.parent.selectAll("path.bar").on("mouseover", function(e, n) {
9451
- const i = I(this);
9453
+ const i = R(this);
9452
9454
  i.classed("hovered", !0), t.services.events.dispatchEvent(x.Bar.BAR_MOUSEOVER, {
9453
9455
  event: e,
9454
9456
  element: i,
@@ -9459,7 +9461,7 @@ class z0 extends br {
9459
9461
  data: [n]
9460
9462
  });
9461
9463
  }).on("mousemove", function(e, n) {
9462
- const i = I(this);
9464
+ const i = R(this);
9463
9465
  t.services.events.dispatchEvent(x.Bar.BAR_MOUSEMOVE, {
9464
9466
  event: e,
9465
9467
  element: i,
@@ -9470,11 +9472,11 @@ class z0 extends br {
9470
9472
  }).on("click", function(e, n) {
9471
9473
  t.services.events.dispatchEvent(x.Bar.BAR_CLICK, {
9472
9474
  event: e,
9473
- element: I(this),
9475
+ element: R(this),
9474
9476
  datum: n
9475
9477
  });
9476
9478
  }).on("mouseout", function(e, n) {
9477
- const i = I(this);
9479
+ const i = R(this);
9478
9480
  i.classed("hovered", !1), t.services.events.dispatchEvent(x.Bar.BAR_MOUSEOUT, {
9479
9481
  event: e,
9480
9482
  element: i,
@@ -9566,7 +9568,7 @@ class F0 extends ot {
9566
9568
  }
9567
9569
  })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${Si(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${Si(c.range())},${l(n)})`), this.services.events.dispatchEvent(x.Tooltip.SHOW, {
9568
9570
  event: e.event,
9569
- hoveredElement: I(t.detail.element),
9571
+ hoveredElement: R(t.detail.element),
9570
9572
  items: [
9571
9573
  {
9572
9574
  label: h,
@@ -9651,7 +9653,7 @@ class F0 extends ot {
9651
9653
  addEventListener() {
9652
9654
  const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i = yt(n, "locale.translations.total") || yt(n, "tooltip.totalLabel") || "Total", r = e.getDomainIdentifier(), a = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
9653
9655
  this.parent.selectAll("g.cell").on("mouseover", function(l, h) {
9654
- const d = I(this), u = d.select("rect.heat");
9656
+ const d = R(this), u = d.select("rect.heat");
9655
9657
  if (!u.classed("null-state")) {
9656
9658
  const f = mn(d.attr("transform"));
9657
9659
  t.parent.select("g.cell-highlight").attr(
@@ -9683,7 +9685,7 @@ class F0 extends ot {
9683
9685
  }).on("mousemove", function(l, h) {
9684
9686
  t.services.events.dispatchEvent(x.Heatmap.HEATMAP_MOUSEMOVE, {
9685
9687
  event: l,
9686
- element: I(this),
9688
+ element: R(this),
9687
9689
  datum: h
9688
9690
  }), t.services.events.dispatchEvent(x.Tooltip.MOVE, {
9689
9691
  event: l
@@ -9691,11 +9693,11 @@ class F0 extends ot {
9691
9693
  }).on("click", function(l, h) {
9692
9694
  t.services.events.dispatchEvent(x.Heatmap.HEATMAP_CLICK, {
9693
9695
  event: l,
9694
- element: I(this),
9696
+ element: R(this),
9695
9697
  datum: h
9696
9698
  });
9697
9699
  }).on("mouseout", function(l, h) {
9698
- const u = I(this).select("rect.heat"), p = u.classed("null-state");
9700
+ const u = R(this).select("rect.heat"), p = u.classed("null-state");
9699
9701
  t.parent.select("g.cell-highlight").classed("highlighter-hidden", !0), p || (t.services.events.dispatchEvent(x.Heatmap.HEATMAP_MOUSEOUT, {
9700
9702
  event: l,
9701
9703
  element: u,
@@ -9768,7 +9770,7 @@ class W0 extends ot {
9768
9770
  addEventListeners() {
9769
9771
  const t = this.model.getOptions(), { groupMapsTo: e } = t.data, { code: n, number: i } = T(t, "locale"), r = this;
9770
9772
  this.parent.selectAll("path.bar").on("mouseover", function(a, o) {
9771
- const c = I(this);
9773
+ const c = R(this);
9772
9774
  c.classed("hovered", !0);
9773
9775
  const l = i(parseFloat(yt(o, "data.x0")), n), h = i(parseFloat(yt(o, "data.x1")), n), d = r.services.cartesianScales.getRangeAxisPosition(), u = r.services.cartesianScales.getScaleLabel(d);
9774
9776
  r.services.events.dispatchEvent(x.Tooltip.SHOW, {
@@ -9798,7 +9800,7 @@ class W0 extends ot {
9798
9800
  event: a
9799
9801
  });
9800
9802
  }).on("mouseout", function() {
9801
- I(this).classed("hovered", !1), r.services.events.dispatchEvent(x.Tooltip.HIDE);
9803
+ R(this).classed("hovered", !1), r.services.events.dispatchEvent(x.Tooltip.HIDE);
9802
9804
  });
9803
9805
  }
9804
9806
  destroy() {
@@ -9945,7 +9947,7 @@ class j0 extends ot {
9945
9947
  addEventListeners() {
9946
9948
  const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i = T(t, "meter", "proportional");
9947
9949
  this.parent.selectAll("rect.value").on("mouseover", function(r, a) {
9948
- const o = I(this);
9950
+ const o = R(this);
9949
9951
  n.services.events.dispatchEvent(x.Meter.METER_MOUSEOVER, {
9950
9952
  event: r,
9951
9953
  element: o,
@@ -9961,7 +9963,7 @@ class j0 extends ot {
9961
9963
  ]
9962
9964
  }));
9963
9965
  }).on("mousemove", function(r, a) {
9964
- const o = I(this);
9966
+ const o = R(this);
9965
9967
  n.services.events.dispatchEvent(x.Meter.METER_MOUSEMOVE, {
9966
9968
  event: r,
9967
9969
  element: o,
@@ -9972,11 +9974,11 @@ class j0 extends ot {
9972
9974
  }).on("click", function(r, a) {
9973
9975
  n.services.events.dispatchEvent(x.Meter.METER_CLICK, {
9974
9976
  event: r,
9975
- element: I(this),
9977
+ element: R(this),
9976
9978
  datum: a
9977
9979
  });
9978
9980
  }).on("mouseout", function(r, a) {
9979
- const o = I(this);
9981
+ const o = R(this);
9980
9982
  n.services.events.dispatchEvent(x.Meter.METER_MOUSEOUT, {
9981
9983
  event: r,
9982
9984
  element: o,
@@ -10043,8 +10045,8 @@ class Y0 extends ot {
10043
10045
  const y = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), b = (Math.min(n, i) - y) / 2;
10044
10046
  if (b <= 0)
10045
10047
  return;
10046
- const O = cr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), R = Si(this.fullDataNormalized.map((H) => H[d])), k = ke().domain([
10047
- R >= 0 ? 0 : R,
10048
+ const O = cr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), I = Si(this.fullDataNormalized.map((H) => H[d])), k = ke().domain([
10049
+ I >= 0 ? 0 : I,
10048
10050
  jr(this.fullDataNormalized.map((H) => H[d]))
10049
10051
  ]).range([g, b]).nice(f), G = k.ticks(f), C = (H, U, W) => this.model.getFillColor(H, U, W), L = $d().angle((H) => O(H[h]) + Math.PI / 2).radius((H) => k(H[d])).curve(ac), B = this.uniqueKeys.map((H) => {
10050
10052
  const U = this.getLabelDimensions(H).width, W = oc(
@@ -10280,7 +10282,7 @@ class Y0 extends ot {
10280
10282
  axes: { angle: e }
10281
10283
  } = T(this.getOptions(), "radar");
10282
10284
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", function(n, i) {
10283
- const r = I(this);
10285
+ const r = R(this);
10284
10286
  t.services.events.dispatchEvent(x.Radar.X_AXIS_MOUSEOVER, {
10285
10287
  event: n,
10286
10288
  element: r,
@@ -10308,7 +10310,7 @@ class Y0 extends ot {
10308
10310
  }))
10309
10311
  });
10310
10312
  }).on("mousemove", function(n, i) {
10311
- const r = I(this);
10313
+ const r = R(this);
10312
10314
  t.services.events.dispatchEvent(x.Radar.X_AXIS_MOUSEMOVE, {
10313
10315
  event: n,
10314
10316
  element: r,
@@ -10319,11 +10321,11 @@ class Y0 extends ot {
10319
10321
  }).on("click", function(n, i) {
10320
10322
  t.services.events.dispatchEvent(x.Radar.X_AXIS_CLICK, {
10321
10323
  event: n,
10322
- element: I(this),
10324
+ element: R(this),
10323
10325
  datum: i
10324
10326
  });
10325
10327
  }).on("mouseout", function(n, i) {
10326
- const r = I(this), a = t.parent.select(`.x-axes .x-axis-${He(i)}`), o = t.parent.selectAll(`.dots circle.${He(i)}`);
10328
+ const r = R(this), a = t.parent.select(`.x-axes .x-axis-${He(i)}`), o = t.parent.selectAll(`.dots circle.${He(i)}`);
10327
10329
  a.classed("hovered", !1).attr("stroke-dasharray", "0"), o.classed("hovered", !1).attr("opacity", 0).attr("r", 0), t.services.events.dispatchEvent(x.Radar.X_AXIS_MOUSEOUT, {
10328
10330
  event: n,
10329
10331
  element: r,
@@ -10390,7 +10392,7 @@ class q0 extends br {
10390
10392
  addEventListeners() {
10391
10393
  const t = this;
10392
10394
  this.parent.selectAll("path.bar").on("mouseover", function(e, n) {
10393
- const i = I(this);
10395
+ const i = R(this);
10394
10396
  i.classed("hovered", !0), t.services.events.dispatchEvent(x.Bar.BAR_MOUSEOVER, {
10395
10397
  event: e,
10396
10398
  element: i,
@@ -10403,7 +10405,7 @@ class q0 extends br {
10403
10405
  }).on("mousemove", function(e, n) {
10404
10406
  t.services.events.dispatchEvent(x.Bar.BAR_MOUSEMOVE, {
10405
10407
  event: e,
10406
- element: I(this),
10408
+ element: R(this),
10407
10409
  datum: n
10408
10410
  }), t.services.events.dispatchEvent(x.Tooltip.MOVE, {
10409
10411
  event: e
@@ -10411,11 +10413,11 @@ class q0 extends br {
10411
10413
  }).on("click", function(e, n) {
10412
10414
  t.services.events.dispatchEvent(x.Bar.BAR_CLICK, {
10413
10415
  event: e,
10414
- element: I(this),
10416
+ element: R(this),
10415
10417
  datum: n
10416
10418
  });
10417
10419
  }).on("mouseout", function(e, n) {
10418
- const i = I(this);
10420
+ const i = R(this);
10419
10421
  i.classed("hovered", !1), t.services.events.dispatchEvent(x.Bar.BAR_MOUSEOUT, {
10420
10422
  event: e,
10421
10423
  element: i,
@@ -10573,7 +10575,7 @@ class J0 extends br {
10573
10575
  addEventListeners() {
10574
10576
  const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this;
10575
10577
  this.parent.selectAll("path.bar").on("mouseover", function(i, r) {
10576
- const a = I(this);
10578
+ const a = R(this);
10577
10579
  a.classed("hovered", !0), n.services.events.dispatchEvent(x.Bar.BAR_MOUSEOVER, {
10578
10580
  event: i,
10579
10581
  element: a,
@@ -10597,7 +10599,7 @@ class J0 extends br {
10597
10599
  data: [c]
10598
10600
  });
10599
10601
  }).on("mousemove", function(i, r) {
10600
- const a = I(this);
10602
+ const a = R(this);
10601
10603
  n.services.events.dispatchEvent(x.Bar.BAR_MOUSEMOVE, {
10602
10604
  event: i,
10603
10605
  element: a,
@@ -10608,11 +10610,11 @@ class J0 extends br {
10608
10610
  }).on("click", function(i, r) {
10609
10611
  n.services.events.dispatchEvent(x.Bar.BAR_CLICK, {
10610
10612
  event: i,
10611
- element: I(this),
10613
+ element: R(this),
10612
10614
  datum: r
10613
10615
  });
10614
10616
  }).on("mouseout", function(i, r) {
10615
- const a = I(this);
10617
+ const a = R(this);
10616
10618
  a.classed("hovered", !1), n.services.events.dispatchEvent(x.Bar.BAR_MOUSEOUT, {
10617
10619
  event: i,
10618
10620
  element: a,
@@ -10723,7 +10725,7 @@ class ty extends ot {
10723
10725
  name: o,
10724
10726
  children: a
10725
10727
  }), p = 10, f = n / 6, g = (O) => {
10726
- const R = u.descendants().reverse(), k = u.links();
10728
+ const I = u.descendants().reverse(), k = u.links();
10727
10729
  let G = u, C = u;
10728
10730
  u.eachBefore((P) => {
10729
10731
  P.x < G.x && (G = P), P.x > C.x && (C = P);
@@ -10734,25 +10736,25 @@ class ty extends ot {
10734
10736
  name: "tree-update-viewbox",
10735
10737
  animate: !0
10736
10738
  })
10737
- ).attr("viewBox", [-d.left, G.x, n, L].join(" ")), D = b.selectAll("g").data(R, (P) => P.id), A = this, w = D.enter().append("g").attr("transform", () => `translate(${O.y0},${O.x0})`).attr(
10739
+ ).attr("viewBox", [-d.left, G.x, n, L].join(" ")), D = b.selectAll("g").data(I, (P) => P.id), A = this, w = D.enter().append("g").attr("transform", () => `translate(${O.y0},${O.x0})`).attr(
10738
10740
  "class",
10739
10741
  (P) => P.depth !== 0 && P.children && P.children.length > 0 ? "clickable" : null
10740
10742
  ).on("mouseover", function(P, $) {
10741
10743
  A.services.events.dispatchEvent(x.Tree.NODE_MOUSEOVER, {
10742
10744
  event: P,
10743
- element: I(this),
10745
+ element: R(this),
10744
10746
  datum: $
10745
10747
  });
10746
10748
  }).on("click", function(P, $) {
10747
10749
  $.depth !== 0 && ($.children = $.children ? null : $._children, g($)), A.services.events.dispatchEvent(x.Tree.NODE_CLICK, {
10748
10750
  event: P,
10749
- element: I(this),
10751
+ element: R(this),
10750
10752
  datum: $
10751
10753
  });
10752
10754
  }).on("mouseout", function(P, $) {
10753
10755
  A.services.events.dispatchEvent(x.Tree.NODE_MOUSEOUT, {
10754
10756
  event: P,
10755
- element: I(this),
10757
+ element: R(this),
10756
10758
  datum: $
10757
10759
  });
10758
10760
  });
@@ -10774,8 +10776,8 @@ class ty extends ot {
10774
10776
  i,
10775
10777
  n - h - E * We - c
10776
10778
  ]), v = zd().x((O) => O.y).y((O) => O.x);
10777
- u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((O, R) => {
10778
- O.id = R, O._children = O.children;
10779
+ u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((O, I) => {
10780
+ O.id = I, O._children = O.children;
10779
10781
  }), y(u), e.attr("viewBox", [-d.left, -d.top, n, p]).style("user-select", "none");
10780
10782
  const S = e.append("g").attr("class", "links"), b = e.append("g").attr("class", "nodes");
10781
10783
  g(u);
@@ -10944,7 +10946,7 @@ const Pv = (s) => {
10944
10946
  }
10945
10947
  return null;
10946
10948
  }, ho = function() {
10947
- const s = I(this.parentNode).select("rect.leaf"), t = getComputedStyle(s.node(), null).getPropertyValue(
10949
+ const s = R(this.parentNode).select("rect.leaf"), t = getComputedStyle(s.node(), null).getPropertyValue(
10948
10950
  "fill"
10949
10951
  ), e = bo(t);
10950
10952
  let n;
@@ -11003,7 +11005,7 @@ class ey extends ot {
11003
11005
  ).attr("transform", (g) => `translate(${g.x0},${g.y0})`);
11004
11006
  const p = u.selectAll("rect.leaf").data((g) => [g]);
11005
11007
  p.exit().attr("width", 0).attr("height", 0).remove(), p.enter().append("rect").classed("leaf", !0).merge(p).attr("width", 0).attr("height", 0).attr("id", function() {
11006
- const g = I(this.parentNode).attr("data-uid");
11008
+ const g = R(this.parentNode).attr("data-uid");
11007
11009
  return `${i.style.prefix}-leaf-${g}`;
11008
11010
  }).attr("class", (g) => {
11009
11011
  for (; g.depth > 1; ) g = g.parent;
@@ -11026,10 +11028,10 @@ class ey extends ot {
11026
11028
  (g) => g
11027
11029
  ).join(
11028
11030
  (g) => g.append("clipPath").attr("id", function() {
11029
- const m = I(this.parentNode).attr("data-uid");
11031
+ const m = R(this.parentNode).attr("data-uid");
11030
11032
  return `${i.style.prefix}-clip-${m}`;
11031
11033
  }).append("use").attr("xlink:href", function() {
11032
- const m = I(this.parentNode.parentNode).attr("data-uid"), E = `${i.style.prefix}-leaf-${m}`;
11034
+ const m = R(this.parentNode.parentNode).attr("data-uid"), E = `${i.style.prefix}-leaf-${m}`;
11033
11035
  return new URL(`#${E}`, r) + "";
11034
11036
  }),
11035
11037
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11056,7 +11058,7 @@ class ey extends ot {
11056
11058
  (g) => {
11057
11059
  const m = g.append("text").text((E) => E.text).style("fill", ho).attr("x", 7).attr("y", 18);
11058
11060
  return r && m.attr("clip-path", function() {
11059
- const E = I(this.parentNode).attr("data-uid"), y = `${i.style.prefix}-clip-${E}`;
11061
+ const E = R(this.parentNode).attr("data-uid"), y = `${i.style.prefix}-clip-${E}`;
11060
11062
  return `url(${new URL(`#${y}`, r) + ""})`;
11061
11063
  }), m;
11062
11064
  },
@@ -11067,7 +11069,7 @@ class ey extends ot {
11067
11069
  addEventListeners() {
11068
11070
  const t = this;
11069
11071
  this.parent.selectAll("rect.leaf").on("mouseover", function(e, n) {
11070
- const i = I(this);
11072
+ const i = R(this);
11071
11073
  let r = getComputedStyle(this, null).getPropertyValue("fill"), a = n;
11072
11074
  for (; a.depth > 1; ) a = a.parent;
11073
11075
  i.transition("graph_element_mouseover_fill_update").call(
@@ -11098,7 +11100,7 @@ class ey extends ot {
11098
11100
  datum: n
11099
11101
  });
11100
11102
  }).on("mousemove", function(e, n) {
11101
- const i = I(this);
11103
+ const i = R(this);
11102
11104
  t.services.events.dispatchEvent(x.Treemap.LEAF_MOUSEMOVE, {
11103
11105
  event: e,
11104
11106
  element: i,
@@ -11109,11 +11111,11 @@ class ey extends ot {
11109
11111
  }).on("click", function(e, n) {
11110
11112
  t.services.events.dispatchEvent(x.Treemap.LEAF_CLICK, {
11111
11113
  event: e,
11112
- element: I(this),
11114
+ element: R(this),
11113
11115
  datum: n
11114
11116
  });
11115
11117
  }).on("mouseout", function(e, n) {
11116
- const i = I(this);
11118
+ const i = R(this);
11117
11119
  i.classed("hovered", !1);
11118
11120
  let r = n;
11119
11121
  for (; r.depth > 1; ) r = r.parent;
@@ -11205,7 +11207,7 @@ var Fv = function() {
11205
11207
  f.canvas = function(y) {
11206
11208
  return arguments.length ? (g = xe(y), f) : g;
11207
11209
  }, f.start = function() {
11208
- var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, R = [], k = l.map(function(C, L) {
11210
+ var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [], k = l.map(function(C, L) {
11209
11211
  return C.text = t.call(this, C, L), C.font = e.call(this, C, L), C.style = i.call(this, C, L), C.weight = r.call(this, C, L), C.rotate = a.call(this, C, L), C.size = ~~n.call(this, C, L), C.padding = o.call(this, C, L), C;
11210
11212
  }).sort(function(C, L) {
11211
11213
  return L.size - C.size;
@@ -11214,9 +11216,9 @@ var Fv = function() {
11214
11216
  function G() {
11215
11217
  for (var C = Date.now(); Date.now() - C < h && ++O < b && u; ) {
11216
11218
  var L = k[O];
11217
- L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, k, O), L.hasText && E(v, L, S) && (R.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
11219
+ L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, k, O), L.hasText && E(v, L, S) && (I.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
11218
11220
  }
11219
- O >= b && (f.stop(), d.call("end", f, R, S));
11221
+ O >= b && (f.stop(), d.call("end", f, I, S));
11220
11222
  }
11221
11223
  }, f.stop = function() {
11222
11224
  u && (clearInterval(u), u = null);
@@ -11232,7 +11234,7 @@ var Fv = function() {
11232
11234
  }
11233
11235
  function E(y, v, S) {
11234
11236
  s[0], s[1];
11235
- for (var b = v.x, O = v.y, R = Math.sqrt(s[0] * s[0] + s[1] * s[1]), k = c(s), G = p() < 0.5 ? 1 : -1, C = -G, L, B, D; (L = k(C += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= R)); )
11237
+ for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]), k = c(s), G = p() < 0.5 ? 1 : -1, C = -G, L, B, D; (L = k(C += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= I)); )
11236
11238
  if (v.x = b + B, v.y = O + D, !(v.x + v.x0 < 0 || v.y + v.y0 < 0 || v.x + v.x1 > s[0] || v.y + v.y1 > s[1]) && (!S || Qv(v, S)) && !Kv(v, y, s[0])) {
11237
11239
  for (var A = v.sprite, w = v.width >> 5, V = s[0] >> 5, N = v.x - (w << 4), P = N & 127, $ = 32 - P, X = v.y1 - v.y0, F = (v.y + v.y0) * V + (N >> 5), et, J = 0; J < X; J++) {
11238
11240
  et = 0;
@@ -11313,14 +11315,14 @@ function Zv(s, t, e, n) {
11313
11315
  for (var y = t.width, v = y >> 5, S = t.y1 - t.y0, b = 0; b < S * v; b++) E[b] = 0;
11314
11316
  if (a = t.xoff, a == null) return;
11315
11317
  o = t.yoff;
11316
- for (var O = 0, R = -1, k = 0; k < S; k++) {
11318
+ for (var O = 0, I = -1, k = 0; k < S; k++) {
11317
11319
  for (var b = 0; b < y; b++) {
11318
11320
  var G = v * k + (b >> 5), C = m[(o + k) * (wn << 5) + (a + b) << 2] ? 1 << 31 - b % 32 : 0;
11319
11321
  E[G] |= C, O |= C;
11320
11322
  }
11321
- O ? R = k : (t.y0++, S--, k--, o++);
11323
+ O ? I = k : (t.y0++, S--, k--, o++);
11322
11324
  }
11323
- t.y1 = t.y0 + R, t.sprite = E.slice(0, (t.y1 - t.y0) * v);
11325
+ t.y1 = t.y0 + I, t.sprite = E.slice(0, (t.y1 - t.y0) * v);
11324
11326
  }
11325
11327
  }
11326
11328
  }
@@ -11469,7 +11471,7 @@ class ny extends ot {
11469
11471
  const o = this;
11470
11472
  i(o), n.services.events.dispatchEvent(x.WordCloud.WORD_MOUSEOVER, {
11471
11473
  event: r,
11472
- element: I(this),
11474
+ element: R(this),
11473
11475
  datum: a
11474
11476
  }), n.services.events.dispatchEvent(x.Tooltip.SHOW, {
11475
11477
  event: r,
@@ -11494,7 +11496,7 @@ class ny extends ot {
11494
11496
  ]
11495
11497
  });
11496
11498
  }).on("mousemove", function(r, a) {
11497
- const o = I(this);
11499
+ const o = R(this);
11498
11500
  n.services.events.dispatchEvent(x.WordCloud.WORD_MOUSEMOVE, {
11499
11501
  element: o,
11500
11502
  datum: a
@@ -11504,11 +11506,11 @@ class ny extends ot {
11504
11506
  }).on("click", function(r, a) {
11505
11507
  n.services.events.dispatchEvent(x.WordCloud.WORD_CLICK, {
11506
11508
  event: r,
11507
- element: I(this),
11509
+ element: R(this),
11508
11510
  datum: a
11509
11511
  });
11510
11512
  }).on("mouseout", function(r, a) {
11511
- const o = I(this);
11513
+ const o = R(this);
11512
11514
  i(null), n.services.events.dispatchEvent(x.WordCloud.WORD_MOUSEOUT, {
11513
11515
  event: r,
11514
11516
  element: o,
@@ -11608,7 +11610,7 @@ class sy extends i0 {
11608
11610
  addCountryAreaEventListener() {
11609
11611
  const t = this, e = this.model.getCombinedData();
11610
11612
  this.parent.selectAll("path.border").on("mouseover", function(n, i) {
11611
- const r = I(this);
11613
+ const r = R(this);
11612
11614
  t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEOVER, {
11613
11615
  event: n,
11614
11616
  element: r,
@@ -11626,7 +11628,7 @@ class sy extends i0 {
11626
11628
  }).on("mousemove", function(n, i) {
11627
11629
  t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEMOVE, {
11628
11630
  event: n,
11629
- element: I(this),
11631
+ element: R(this),
11630
11632
  datum: e[i.properties.NAME]
11631
11633
  }), t.services.events.dispatchEvent(Ys.MOVE, {
11632
11634
  event: n
@@ -11634,11 +11636,11 @@ class sy extends i0 {
11634
11636
  }).on("click", function(n, i) {
11635
11637
  t.services.events.dispatchEvent(zn.CHOROPLETH_CLICK, {
11636
11638
  event: n,
11637
- element: I(this),
11639
+ element: R(this),
11638
11640
  datum: e[i.properties.NAME]
11639
11641
  });
11640
11642
  }).on("mouseout", function(n, i) {
11641
- const r = I(this);
11643
+ const r = R(this);
11642
11644
  t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEOUT, {
11643
11645
  event: n,
11644
11646
  element: r,
@@ -11716,4 +11718,4 @@ export {
11716
11718
  J0 as y,
11717
11719
  U0 as z
11718
11720
  };
11719
- //# sourceMappingURL=choropleth-CNsiu_Wj.mjs.map
11721
+ //# sourceMappingURL=choropleth-DQ5VXBbs.mjs.map