@carbon/charts 1.16.1 → 1.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -4
  3. package/dist/_baseEach-DHzZsRNB.mjs +20 -0
  4. package/dist/{_baseEach-Ch85zB0O.mjs.map → _baseEach-DHzZsRNB.mjs.map} +1 -1
  5. package/dist/{angle-utils-GQFx3vKM.mjs → angle-utils-D8sXyiIj.mjs} +84 -89
  6. package/dist/{angle-utils-GQFx3vKM.mjs.map → angle-utils-D8sXyiIj.mjs.map} +1 -1
  7. package/dist/axis-chart.d.ts +6 -6
  8. package/dist/chart.d.ts +6 -6
  9. package/dist/charts/alluvial.d.ts +4 -4
  10. package/dist/charts/area-stacked.d.ts +3 -3
  11. package/dist/charts/area.d.ts +3 -3
  12. package/dist/charts/bar-grouped.d.ts +3 -3
  13. package/dist/charts/bar-simple.d.ts +3 -3
  14. package/dist/charts/bar-stacked.d.ts +3 -3
  15. package/dist/charts/boxplot.d.ts +4 -4
  16. package/dist/charts/bubble.d.ts +3 -3
  17. package/dist/charts/bullet.d.ts +4 -4
  18. package/dist/charts/choropleth.d.ts +7 -7
  19. package/dist/charts/circle-pack.d.ts +4 -4
  20. package/dist/charts/combo.d.ts +3 -3
  21. package/dist/charts/donut.d.ts +3 -3
  22. package/dist/charts/gauge.d.ts +4 -4
  23. package/dist/charts/heatmap.d.ts +7 -7
  24. package/dist/charts/histogram.d.ts +4 -4
  25. package/dist/charts/index.d.ts +24 -24
  26. package/dist/charts/line.d.ts +3 -3
  27. package/dist/charts/lollipop.d.ts +3 -3
  28. package/dist/charts/meter.d.ts +4 -4
  29. package/dist/charts/pie.d.ts +4 -4
  30. package/dist/charts/radar.d.ts +4 -4
  31. package/dist/charts/scatter.d.ts +3 -3
  32. package/dist/charts/tree.d.ts +4 -4
  33. package/dist/charts/treemap.d.ts +4 -4
  34. package/dist/charts/wordcloud.d.ts +4 -4
  35. package/dist/{choropleth-DdBUe80H.mjs → choropleth-ChNZz853.mjs} +1130 -1122
  36. package/dist/choropleth-ChNZz853.mjs.map +1 -0
  37. package/dist/{color-scale-utils-CiW9fERh.mjs → color-scale-utils-C93P4hee.mjs} +1093 -1116
  38. package/dist/color-scale-utils-C93P4hee.mjs.map +1 -0
  39. package/dist/components/axes/axis.d.ts +3 -3
  40. package/dist/components/axes/chart-clip.d.ts +2 -2
  41. package/dist/components/axes/grid-brush.d.ts +1 -1
  42. package/dist/components/axes/grid.d.ts +1 -1
  43. package/dist/components/axes/hover-axis.d.ts +1 -1
  44. package/dist/components/axes/ruler-binned.d.ts +1 -1
  45. package/dist/components/axes/ruler.d.ts +2 -2
  46. package/dist/components/axes/toolbar.d.ts +1 -1
  47. package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
  48. package/dist/components/axes/zero-line.d.ts +1 -1
  49. package/dist/components/axes/zoom-bar.d.ts +2 -2
  50. package/dist/components/component.d.ts +3 -3
  51. package/dist/components/essentials/color-scale-legend.d.ts +2 -2
  52. package/dist/components/essentials/geo-projection.d.ts +1 -1
  53. package/dist/components/essentials/highlights.d.ts +3 -3
  54. package/dist/components/essentials/legend.d.ts +1 -1
  55. package/dist/components/essentials/modal.d.ts +1 -1
  56. package/dist/components/essentials/threshold.d.ts +3 -3
  57. package/dist/components/essentials/title-meter.d.ts +1 -1
  58. package/dist/components/essentials/title.d.ts +1 -1
  59. package/dist/components/essentials/tooltip.d.ts +3 -3
  60. package/dist/components/graphs/alluvial.d.ts +1 -1
  61. package/dist/components/graphs/area-stacked.d.ts +1 -1
  62. package/dist/components/graphs/area.d.ts +1 -1
  63. package/dist/components/graphs/bar-grouped.d.ts +2 -2
  64. package/dist/components/graphs/bar-simple.d.ts +1 -1
  65. package/dist/components/graphs/bar-stacked.d.ts +1 -1
  66. package/dist/components/graphs/boxplot.d.ts +1 -1
  67. package/dist/components/graphs/bubble.d.ts +2 -2
  68. package/dist/components/graphs/bullet.d.ts +1 -1
  69. package/dist/components/graphs/circle-pack.d.ts +1 -1
  70. package/dist/components/graphs/donut.d.ts +1 -1
  71. package/dist/components/graphs/gauge.d.ts +1 -1
  72. package/dist/components/graphs/heatmap.d.ts +1 -1
  73. package/dist/components/graphs/histogram.d.ts +1 -1
  74. package/dist/components/graphs/line.d.ts +1 -1
  75. package/dist/components/graphs/lollipop.d.ts +1 -1
  76. package/dist/components/graphs/meter.d.ts +1 -1
  77. package/dist/components/graphs/pie.d.ts +1 -1
  78. package/dist/components/graphs/radar.d.ts +1 -1
  79. package/dist/components/graphs/scatter-stacked.d.ts +1 -1
  80. package/dist/components/graphs/scatter.d.ts +2 -2
  81. package/dist/components/graphs/skeleton-lines.d.ts +1 -1
  82. package/dist/components/graphs/skeleton.d.ts +1 -1
  83. package/dist/components/graphs/tree.d.ts +1 -1
  84. package/dist/components/graphs/treemap.d.ts +1 -1
  85. package/dist/components/graphs/wordcloud.d.ts +1 -1
  86. package/dist/components/index.mjs +1 -1
  87. package/dist/components/layout/layout.d.ts +3 -3
  88. package/dist/configuration-non-customizable.d.ts +1 -1
  89. package/dist/configuration.d.ts +2 -2
  90. package/dist/demo/charts/index.d.ts +2 -2
  91. package/dist/demo/index.mjs +115 -108
  92. package/dist/demo/index.mjs.map +1 -1
  93. package/dist/demo/styles.css +226 -63
  94. package/dist/demo/styles.css.map +1 -1
  95. package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
  96. package/dist/demo/utils/stackblitz/react.d.ts +1 -1
  97. package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
  98. package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
  99. package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
  100. package/dist/enums-DwsxZqjR.mjs.map +1 -1
  101. package/dist/index.mjs +8 -8
  102. package/dist/interfaces/axis-scales.d.ts +4 -4
  103. package/dist/interfaces/charts.d.ts +2 -2
  104. package/dist/interfaces/components.d.ts +2 -2
  105. package/dist/interfaces/services.d.ts +8 -8
  106. package/dist/model/cartesian-charts.d.ts +1 -1
  107. package/dist/model/circle-pack.d.ts +1 -1
  108. package/dist/model/heatmap.d.ts +1 -1
  109. package/dist/model/index.mjs +1 -1
  110. package/dist/model/model.d.ts +1 -1
  111. package/dist/services/essentials/dom-utils.d.ts +2 -2
  112. package/dist/services/essentials/files.d.ts +1 -1
  113. package/dist/services/essentials/transitions.d.ts +1 -1
  114. package/dist/services/index.mjs +3 -3
  115. package/dist/services/scales-cartesian.d.ts +3 -3
  116. package/dist/services/service.d.ts +1 -1
  117. package/dist/services/time-series.d.ts +1 -1
  118. package/dist/services/zoom.d.ts +1 -1
  119. package/dist/styles.css +4 -0
  120. package/dist/styles.css.map +1 -1
  121. package/dist/styles.min.css +1 -1
  122. package/dist/styles.min.css.map +1 -1
  123. package/dist/tools.d.ts +1 -1
  124. package/dist/umd/bundle.umd.js +19 -19
  125. package/dist/umd/bundle.umd.js.map +1 -1
  126. package/dist/{wordcloud-DQKXuKDM.mjs → wordcloud-KxSjz0Gg.mjs} +5 -5
  127. package/dist/{wordcloud-DQKXuKDM.mjs.map → wordcloud-KxSjz0Gg.mjs.map} +1 -1
  128. package/dist/{zoom-DyHfBf_y.mjs → zoom-B7KfNcH9.mjs} +3 -3
  129. package/dist/{zoom-DyHfBf_y.mjs.map → zoom-B7KfNcH9.mjs.map} +1 -1
  130. package/package.json +21 -19
  131. package/styles.css +4 -0
  132. package/styles.min.css +1 -1
  133. package/telemetry.yml +1 -1
  134. package/dist/_baseEach-Ch85zB0O.mjs +0 -20
  135. package/dist/choropleth-DdBUe80H.mjs.map +0 -1
  136. package/dist/color-scale-utils-CiW9fERh.mjs.map +0 -1
@@ -1,23 +1,22 @@
1
- import { B as Js, af as Ua, h as Fa, o as Qs, p as ea, a6 as za, _ as Wa, ag as ja, ah as Xa, ai as Za, m as v, n as Me, x as ut, U as gs, A as ne, s as he, aj as xt, Z as we, W as Ya, z as ta, t as qa, ak as Ue, c as vn, b as yn, F as ke, al as Ot, am as Ge, G as $e, O as He, an as Ka, H as ct, i as Ja, Q as te, J as Ae, ao as Ee, ap as Qa, a as ei, P as ge, L as yt, K as _t, aq as sn, v as ti, ar as ms, R as je } from "./color-scale-utils-CiW9fERh.mjs";
2
- import { select as T, pointer as Zt, brushX as na, scaleTime as ni, extent as Yt, area as Bn, line as Gn, axisBottom as Hn, axisLeft as sa, axisTop as si, axisRight as ai, scaleLinear as qe, arc as Lt, easeLinear as ii, path as $n, interpolateNumber as aa, quantize as ri, scaleBand as Un, hierarchy as Fn, pack as oi, pie as li, interpolate as ci, interpolateRound as di, min as En, max as fs, lineRadial as hi, curveLinearClosed as ui, cluster as pi, tree as gi, linkHorizontal as mi, treemap as fi, hsl as ia, color as ra, geoPath as vi, geoNaturalEarth1 as yi, geoMercator as Ei, geoEquirectangular as bi, geoConicEquidistant as Si, geoConicEqualArea as Oi, geoAlbers as Ti, geoEqualEarth as xi } from "d3";
3
- import { t as Bt, D as S, c as bn, G as vs, a as Li, p as le, r as ys, b as Ai } from "./angle-utils-GQFx3vKM.mjs";
4
- import { y as j, _ as f, K as ie, r as ze, q as st, L as wi, A as Ce, m as z, s as Xe, V as dt, S as pe, e as B, Z as at, i as xe, f as Es, J as an, d as Mi, F as It, n as rn, H as on, C as ln, p as Rt, b as bs, D as cn, Q as Ci, x as Ze, $ as kt, N as dn } from "./enums-DwsxZqjR.mjs";
5
- import { sankey as _i, sankeyLinkHorizontal as Ii, sankeyJustify as Ri, sankeyLeft as ki, sankeyRight as Di } from "d3-sankey";
1
+ import { B as Ys, af as Ba, h as Ga, o as qs, p as Ks, a6 as Ha, _ as Ua, ag as $a, ah as Fa, m as v, n as Me, x as ut, U as fs, A as ne, s as he, ai as Lt, Z as we, W as za, z as Js, t as Wa, aj as Fe, c as yn, b as En, F as ke, ak as Tt, al as He, G as $e, O as Ue, am as ja, H as ct, i as Xa, Q as te, J as Ae, an as Se, ao as Za, a as Ya, P as me, L as yt, K as Rt, ap as an, v as qa, aq as vs, R as je } from "./color-scale-utils-C93P4hee.mjs";
2
+ import { select as T, pointer as qt, brushX as Qs, scaleTime as Ka, extent as Kt, area as Gn, line as Hn, axisBottom as Un, axisLeft as ea, axisTop as Ja, axisRight as Qa, scaleLinear as qe, arc as At, easeLinear as ei, path as $n, interpolateNumber as ta, quantize as ti, scaleBand as Fn, hierarchy as zn, pack as ni, pie as si, interpolate as ai, interpolateRound as ii, min as bn, max as ys, lineRadial as ri, curveLinearClosed as oi, cluster as li, tree as ci, linkHorizontal as di, treemap as hi, hsl as na, color as sa, geoPath as ui, geoNaturalEarth1 as pi, geoMercator as gi, geoEquirectangular as mi, geoConicEquidistant as fi, geoConicEqualArea as vi, geoAlbers as yi, geoEqualEarth as Ei } from "d3";
3
+ import { t as Ht, D as S, c as Sn, G as Es, a as bi, p as le, r as bs, b as Si } from "./angle-utils-D8sXyiIj.mjs";
4
+ import { y as j, _ as f, K as ie, r as We, q as st, L as Oi, A as Ce, m as z, s as Xe, V as dt, S as ge, e as B, Z as at, i as xe, f as Ss, J as rn, d as Ti, F as kt, n as on, H as ln, C as cn, p as Dt, b as Os, D as dn, Q as xi, x as Ze, $ as Pt, N as hn } from "./enums-DwsxZqjR.mjs";
5
+ import { sankey as Li, sankeyLinkHorizontal as Ai, sankeyJustify as wi, sankeyLeft as Mi, sankeyRight as Ci } from "d3-sankey";
6
6
  import { R as X } from "./a11y-ePqvrObQ.mjs";
7
- import { b as oa } from "./_baseEach-Ch85zB0O.mjs";
8
- import Pi from "d3-cloud";
9
- function Ni(o, e, t, n) {
10
- var s = -1, a = o == null ? 0 : o.length;
11
- for (n && a && (t = o[++s]); ++s < a; )
7
+ import { b as aa } from "./_baseEach-DHzZsRNB.mjs";
8
+ import _i from "d3-cloud";
9
+ function Ii(o, e, t, n) {
10
+ for (var s = -1, a = o == null ? 0 : o.length; ++s < a; )
12
11
  t = e(t, o[s], s, o);
13
12
  return t;
14
13
  }
15
- function Vi(o) {
14
+ function Ri(o) {
16
15
  return function(e) {
17
16
  return o == null ? void 0 : o[e];
18
17
  };
19
18
  }
20
- var Bi = {
19
+ var ki = {
21
20
  // Latin-1 Supplement block.
22
21
  À: "A",
23
22
  Á: "A",
@@ -210,88 +209,86 @@ var Bi = {
210
209
  œ: "oe",
211
210
  ʼn: "'n",
212
211
  ſ: "s"
213
- }, Gi = Vi(Bi);
214
- const Hi = Gi;
215
- var $i = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ui = "\\u0300-\\u036f", Fi = "\\ufe20-\\ufe2f", zi = "\\u20d0-\\u20ff", Wi = Ui + Fi + zi, ji = "[" + Wi + "]", Xi = RegExp(ji, "g");
216
- function Zi(o) {
217
- return o = Js(o), o && o.replace($i, Hi).replace(Xi, "");
218
- }
219
- var Yi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
220
- function qi(o) {
221
- return o.match(Yi) || [];
222
- }
223
- var Ki = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
224
- function Ji(o) {
225
- return Ki.test(o);
226
- }
227
- var la = "\\ud800-\\udfff", Qi = "\\u0300-\\u036f", er = "\\ufe20-\\ufe2f", tr = "\\u20d0-\\u20ff", nr = Qi + er + tr, ca = "\\u2700-\\u27bf", da = "a-z\\xdf-\\xf6\\xf8-\\xff", sr = "\\xac\\xb1\\xd7\\xf7", ar = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ir = "\\u2000-\\u206f", rr = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ha = "A-Z\\xc0-\\xd6\\xd8-\\xde", or = "\\ufe0e\\ufe0f", ua = sr + ar + ir + rr, pa = "['’]", Ss = "[" + ua + "]", lr = "[" + nr + "]", ga = "\\d+", cr = "[" + ca + "]", ma = "[" + da + "]", fa = "[^" + la + ua + ga + ca + da + ha + "]", dr = "\\ud83c[\\udffb-\\udfff]", hr = "(?:" + lr + "|" + dr + ")", ur = "[^" + la + "]", va = "(?:\\ud83c[\\udde6-\\uddff]){2}", ya = "[\\ud800-\\udbff][\\udc00-\\udfff]", lt = "[" + ha + "]", pr = "\\u200d", Os = "(?:" + ma + "|" + fa + ")", gr = "(?:" + lt + "|" + fa + ")", Ts = "(?:" + pa + "(?:d|ll|m|re|s|t|ve))?", xs = "(?:" + pa + "(?:D|LL|M|RE|S|T|VE))?", Ea = hr + "?", ba = "[" + or + "]?", mr = "(?:" + pr + "(?:" + [ur, va, ya].join("|") + ")" + ba + Ea + ")*", fr = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vr = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", yr = ba + Ea + mr, Er = "(?:" + [cr, va, ya].join("|") + ")" + yr, br = RegExp([
228
- lt + "?" + ma + "+" + Ts + "(?=" + [Ss, lt, "$"].join("|") + ")",
229
- gr + "+" + xs + "(?=" + [Ss, lt + Os, "$"].join("|") + ")",
230
- lt + "?" + Os + "+" + Ts,
231
- lt + "+" + xs,
232
- vr,
233
- fr,
234
- ga,
235
- Er
212
+ }, Di = Ri(ki), Pi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ni = "\\u0300-\\u036f", Vi = "\\ufe20-\\ufe2f", Bi = "\\u20d0-\\u20ff", Gi = Ni + Vi + Bi, Hi = "[" + Gi + "]", Ui = RegExp(Hi, "g");
213
+ function $i(o) {
214
+ return o = Ys(o), o && o.replace(Pi, Di).replace(Ui, "");
215
+ }
216
+ var Fi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
217
+ function zi(o) {
218
+ return o.match(Fi) || [];
219
+ }
220
+ var Wi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
221
+ function ji(o) {
222
+ return Wi.test(o);
223
+ }
224
+ var ia = "\\ud800-\\udfff", Xi = "\\u0300-\\u036f", Zi = "\\ufe20-\\ufe2f", Yi = "\\u20d0-\\u20ff", qi = Xi + Zi + Yi, ra = "\\u2700-\\u27bf", oa = "a-z\\xdf-\\xf6\\xf8-\\xff", Ki = "\\xac\\xb1\\xd7\\xf7", Ji = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Qi = "\\u2000-\\u206f", er = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", la = "A-Z\\xc0-\\xd6\\xd8-\\xde", tr = "\\ufe0e\\ufe0f", ca = Ki + Ji + Qi + er, da = "['’]", Ts = "[" + ca + "]", nr = "[" + qi + "]", ha = "\\d+", sr = "[" + ra + "]", ua = "[" + oa + "]", pa = "[^" + ia + ca + ha + ra + oa + la + "]", ar = "\\ud83c[\\udffb-\\udfff]", ir = "(?:" + nr + "|" + ar + ")", rr = "[^" + ia + "]", ga = "(?:\\ud83c[\\udde6-\\uddff]){2}", ma = "[\\ud800-\\udbff][\\udc00-\\udfff]", lt = "[" + la + "]", or = "\\u200d", xs = "(?:" + ua + "|" + pa + ")", lr = "(?:" + lt + "|" + pa + ")", Ls = "(?:" + da + "(?:d|ll|m|re|s|t|ve))?", As = "(?:" + da + "(?:D|LL|M|RE|S|T|VE))?", fa = ir + "?", va = "[" + tr + "]?", cr = "(?:" + or + "(?:" + [rr, ga, ma].join("|") + ")" + va + fa + ")*", dr = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", hr = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ur = va + fa + cr, pr = "(?:" + [sr, ga, ma].join("|") + ")" + ur, gr = RegExp([
225
+ lt + "?" + ua + "+" + Ls + "(?=" + [Ts, lt, "$"].join("|") + ")",
226
+ lr + "+" + As + "(?=" + [Ts, lt + xs, "$"].join("|") + ")",
227
+ lt + "?" + xs + "+" + Ls,
228
+ lt + "+" + As,
229
+ hr,
230
+ dr,
231
+ ha,
232
+ pr
236
233
  ].join("|"), "g");
237
- function Sr(o) {
238
- return o.match(br) || [];
234
+ function mr(o) {
235
+ return o.match(gr) || [];
239
236
  }
240
- function Or(o, e, t) {
241
- return o = Js(o), e = t ? void 0 : e, e === void 0 ? Ji(o) ? Sr(o) : qi(o) : o.match(e) || [];
237
+ function fr(o, e, t) {
238
+ return o = Ys(o), e = e, e === void 0 ? ji(o) ? mr(o) : zi(o) : o.match(e) || [];
242
239
  }
243
- var Tr = "['’]", xr = RegExp(Tr, "g");
244
- function Lr(o) {
240
+ var vr = "['’]", yr = RegExp(vr, "g");
241
+ function Er(o) {
245
242
  return function(e) {
246
- return Ni(Or(Zi(e).replace(xr, "")), o, "");
243
+ return Ii(fr($i(e).replace(yr, "")), o, "");
247
244
  };
248
245
  }
249
- function Ar(o, e, t) {
246
+ function br(o, e, t) {
250
247
  return o === o && (t !== void 0 && (o = o <= t ? o : t), e !== void 0 && (o = o >= e ? o : e)), o;
251
248
  }
252
- function Sa(o, e, t) {
253
- return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = Bt(t), t = t === t ? t : 0), e !== void 0 && (e = Bt(e), e = e === e ? e : 0), Ar(Bt(o), e, t);
249
+ function ya(o, e, t) {
250
+ return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = Ht(t), t = t === t ? t : 0), e !== void 0 && (e = Ht(e), e = e === e ? e : 0), br(Ht(o), e, t);
254
251
  }
255
- var wr = "Expected a function";
256
- function Mr(o, e, t) {
252
+ var Sr = "Expected a function";
253
+ function Or(o, e, t) {
257
254
  if (typeof o != "function")
258
- throw new TypeError(wr);
255
+ throw new TypeError(Sr);
259
256
  return setTimeout(function() {
260
257
  o.apply(void 0, t);
261
258
  }, e);
262
259
  }
263
- var Cr = Ua(function(o, e, t) {
264
- return Mr(o, Bt(e) || 0, t);
260
+ var Tr = Ba(function(o, e, t) {
261
+ return Or(o, Ht(e) || 0, t);
265
262
  });
266
- function _r(o, e) {
267
- var t = -1, n = Fa(o) ? Array(o.length) : [];
268
- return oa(o, function(s, a, i) {
263
+ function xr(o, e) {
264
+ var t = -1, n = Ga(o) ? Array(o.length) : [];
265
+ return aa(o, function(s, a, i) {
269
266
  n[++t] = e(s, a, i);
270
267
  }), n;
271
268
  }
272
- function Ir(o, e) {
273
- var t = ea(o) ? za : _r;
274
- return t(o, Qs(e));
269
+ function Lr(o, e) {
270
+ var t = Ks(o) ? Ha : xr;
271
+ return t(o, qs(e));
275
272
  }
276
- var Rr = 1 / 0;
277
- function kr(o, e) {
278
- return Wa(Ir(o, e), Rr);
273
+ var Ar = 1 / 0;
274
+ function wr(o, e) {
275
+ return Ua(Lr(o, e), Ar);
279
276
  }
280
- function Oa(o, e) {
281
- return ja(o, e);
277
+ function Ea(o, e) {
278
+ return $a(o, e);
282
279
  }
283
- var it = Lr(function(o, e, t) {
280
+ var it = Er(function(o, e, t) {
284
281
  return o + (t ? "-" : "") + e.toLowerCase();
285
282
  });
286
- function Dr(o, e) {
283
+ function Mr(o, e) {
287
284
  var t;
288
- return oa(o, function(n, s, a) {
285
+ return aa(o, function(n, s, a) {
289
286
  return t = e(n, s, a), !t;
290
287
  }), !!t;
291
288
  }
292
- function Pr(o, e, t) {
293
- var n = ea(o) ? Za : Dr;
294
- return t && Xa(o, e, t) && (e = void 0), n(o, Qs(e));
289
+ function Cr(o, e, t) {
290
+ var n = Ks(o) ? Fa : Mr;
291
+ return n(o, qs(e));
295
292
  }
296
293
  class Y {
297
294
  constructor(e, t, n) {
@@ -360,113 +357,129 @@ class Y {
360
357
  return this.configs.options ? ut({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
361
358
  }
362
359
  }
363
- /*! @license DOMPurify 3.1.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.0/LICENSE */
360
+ /*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
364
361
  const {
365
- entries: Ta,
366
- setPrototypeOf: Ls,
367
- isFrozen: Nr,
368
- getPrototypeOf: Vr,
369
- getOwnPropertyDescriptor: Br
362
+ entries: ba,
363
+ setPrototypeOf: ws,
364
+ isFrozen: _r,
365
+ getPrototypeOf: Ir,
366
+ getOwnPropertyDescriptor: Rr
370
367
  } = Object;
371
368
  let {
372
- freeze: be,
369
+ freeze: Oe,
373
370
  seal: _e,
374
- create: xa
371
+ create: Sa
375
372
  } = Object, {
376
- apply: Sn,
377
- construct: On
373
+ apply: On,
374
+ construct: Tn
378
375
  } = typeof Reflect < "u" && Reflect;
379
- be || (be = function(e) {
376
+ Oe || (Oe = function(e) {
380
377
  return e;
381
378
  });
382
379
  _e || (_e = function(e) {
383
380
  return e;
384
381
  });
385
- Sn || (Sn = function(e, t, n) {
382
+ On || (On = function(e, t, n) {
386
383
  return e.apply(t, n);
387
384
  });
388
- On || (On = function(e, t) {
385
+ Tn || (Tn = function(e, t) {
389
386
  return new e(...t);
390
387
  });
391
- const Dt = Le(Array.prototype.forEach), As = Le(Array.prototype.pop), Et = Le(Array.prototype.push), Gt = Le(String.prototype.toLowerCase), hn = Le(String.prototype.toString), ws = Le(String.prototype.match), bt = Le(String.prototype.replace), Gr = Le(String.prototype.indexOf), Hr = Le(String.prototype.trim), De = Le(Object.prototype.hasOwnProperty), Te = Le(RegExp.prototype.test), St = $r(TypeError);
388
+ const Nt = Le(Array.prototype.forEach), Ms = Le(Array.prototype.pop), Et = Le(Array.prototype.push), Ut = Le(String.prototype.toLowerCase), un = Le(String.prototype.toString), Cs = Le(String.prototype.match), bt = Le(String.prototype.replace), kr = Le(String.prototype.indexOf), Dr = Le(String.prototype.trim), De = Le(Object.prototype.hasOwnProperty), be = Le(RegExp.prototype.test), St = Pr(TypeError);
392
389
  function Le(o) {
393
390
  return function(e) {
394
391
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
395
392
  n[s - 1] = arguments[s];
396
- return Sn(o, e, n);
393
+ return On(o, e, n);
397
394
  };
398
395
  }
399
- function $r(o) {
396
+ function Pr(o) {
400
397
  return function() {
401
398
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
402
399
  t[n] = arguments[n];
403
- return On(o, t);
400
+ return Tn(o, t);
404
401
  };
405
402
  }
406
403
  function Z(o, e) {
407
- let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Gt;
408
- Ls && Ls(o, null);
404
+ let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ut;
405
+ ws && ws(o, null);
409
406
  let n = e.length;
410
407
  for (; n--; ) {
411
408
  let s = e[n];
412
409
  if (typeof s == "string") {
413
410
  const a = t(s);
414
- a !== s && (Nr(e) || (e[n] = a), s = a);
411
+ a !== s && (_r(e) || (e[n] = a), s = a);
415
412
  }
416
413
  o[s] = !0;
417
414
  }
418
415
  return o;
419
416
  }
420
- function Ur(o) {
417
+ function Nr(o) {
421
418
  for (let e = 0; e < o.length; e++)
422
419
  De(o, e) || (o[e] = null);
423
420
  return o;
424
421
  }
425
422
  function Ye(o) {
426
- const e = xa(null);
427
- for (const [t, n] of Ta(o))
428
- De(o, t) && (Array.isArray(n) ? e[t] = Ur(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Ye(n) : e[t] = n);
423
+ const e = Sa(null);
424
+ for (const [t, n] of ba(o))
425
+ De(o, t) && (Array.isArray(n) ? e[t] = Nr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Ye(n) : e[t] = n);
429
426
  return e;
430
427
  }
431
- function Pt(o, e) {
428
+ function Vt(o, e) {
432
429
  for (; o !== null; ) {
433
- const n = Br(o, e);
430
+ const n = Rr(o, e);
434
431
  if (n) {
435
432
  if (n.get)
436
433
  return Le(n.get);
437
434
  if (typeof n.value == "function")
438
435
  return Le(n.value);
439
436
  }
440
- o = Vr(o);
437
+ o = Ir(o);
441
438
  }
442
439
  function t() {
443
440
  return null;
444
441
  }
445
442
  return t;
446
443
  }
447
- const Ms = be(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), un = be(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pn = be(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Fr = be(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), gn = be(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), zr = be(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Cs = be(["#text"]), _s = be(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), mn = be(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Is = be(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Nt = be(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Wr = _e(/\{\{[\w\W]*|[\w\W]*\}\}/gm), jr = _e(/<%[\w\W]*|[\w\W]*%>/gm), Xr = _e(/\${[\w\W]*}/gm), Zr = _e(/^data-[\-\w.\u00B7-\uFFFF]/), Yr = _e(/^aria-[\-\w]+$/), La = _e(
444
+ const _s = Oe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), pn = Oe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), gn = Oe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Vr = Oe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mn = Oe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Br = Oe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Is = Oe(["#text"]), Rs = Oe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), fn = Oe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ks = Oe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Bt = Oe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Gr = _e(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = _e(/<%[\w\W]*|[\w\W]*%>/gm), Ur = _e(/\${[\w\W]*}/gm), $r = _e(/^data-[\-\w.\u00B7-\uFFFF]/), Fr = _e(/^aria-[\-\w]+$/), Oa = _e(
448
445
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
449
446
  // eslint-disable-line no-useless-escape
450
- ), qr = _e(/^(?:\w+script|data):/i), Kr = _e(
447
+ ), zr = _e(/^(?:\w+script|data):/i), Wr = _e(
451
448
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
452
449
  // eslint-disable-line no-control-regex
453
- ), Aa = _e(/^html$/i), Jr = _e(/^[a-z][.\w]*(-[.\w]+)+$/i);
454
- var Rs = /* @__PURE__ */ Object.freeze({
450
+ ), Ta = _e(/^html$/i), jr = _e(/^[a-z][.\w]*(-[.\w]+)+$/i);
451
+ var Ds = /* @__PURE__ */ Object.freeze({
455
452
  __proto__: null,
456
- MUSTACHE_EXPR: Wr,
457
- ERB_EXPR: jr,
458
- TMPLIT_EXPR: Xr,
459
- DATA_ATTR: Zr,
460
- ARIA_ATTR: Yr,
461
- IS_ALLOWED_URI: La,
462
- IS_SCRIPT_OR_DATA: qr,
463
- ATTR_WHITESPACE: Kr,
464
- DOCTYPE_NAME: Aa,
465
- CUSTOM_ELEMENT: Jr
453
+ MUSTACHE_EXPR: Gr,
454
+ ERB_EXPR: Hr,
455
+ TMPLIT_EXPR: Ur,
456
+ DATA_ATTR: $r,
457
+ ARIA_ATTR: Fr,
458
+ IS_ALLOWED_URI: Oa,
459
+ IS_SCRIPT_OR_DATA: zr,
460
+ ATTR_WHITESPACE: Wr,
461
+ DOCTYPE_NAME: Ta,
462
+ CUSTOM_ELEMENT: jr
466
463
  });
467
- const Qr = function() {
464
+ const Ot = {
465
+ element: 1,
466
+ attribute: 2,
467
+ text: 3,
468
+ cdataSection: 4,
469
+ entityReference: 5,
470
+ // Deprecated
471
+ entityNode: 6,
472
+ // Deprecated
473
+ progressingInstruction: 7,
474
+ comment: 8,
475
+ document: 9,
476
+ documentType: 10,
477
+ documentFragment: 11,
478
+ notation: 12
479
+ // Deprecated
480
+ }, Xr = function() {
468
481
  return typeof window > "u" ? null : window;
469
- }, eo = function(e, t) {
482
+ }, Zr = function(e, t) {
470
483
  if (typeof e != "object" || typeof e.createPolicy != "function")
471
484
  return null;
472
485
  let n = null;
@@ -486,10 +499,10 @@ const Qr = function() {
486
499
  return console.warn("TrustedTypes policy " + a + " could not be created."), null;
487
500
  }
488
501
  };
489
- function wa() {
490
- let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Qr();
491
- const e = (U) => wa(U);
492
- if (e.version = "3.1.0", e.removed = [], !o || !o.document || o.document.nodeType !== 9)
502
+ function xa() {
503
+ let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xr();
504
+ const e = ($) => xa($);
505
+ if (e.version = "3.1.5", e.removed = [], !o || !o.document || o.document.nodeType !== Ot.document)
493
506
  return e.isSupported = !1, e;
494
507
  let {
495
508
  document: t
@@ -504,10 +517,10 @@ function wa() {
504
517
  HTMLFormElement: p,
505
518
  DOMParser: h,
506
519
  trustedTypes: u
507
- } = o, g = l.prototype, m = Pt(g, "cloneNode"), E = Pt(g, "nextSibling"), O = Pt(g, "childNodes"), x = Pt(g, "parentNode");
520
+ } = o, g = l.prototype, m = Vt(g, "cloneNode"), E = Vt(g, "nextSibling"), O = Vt(g, "childNodes"), x = Vt(g, "parentNode");
508
521
  if (typeof i == "function") {
509
- const U = t.createElement("template");
510
- U.content && U.content.ownerDocument && (t = U.content.ownerDocument);
522
+ const $ = t.createElement("template");
523
+ $.content && $.content.ownerDocument && (t = $.content.ownerDocument);
511
524
  }
512
525
  let y, w = "";
513
526
  const {
@@ -519,24 +532,24 @@ function wa() {
519
532
  importNode: W
520
533
  } = n;
521
534
  let k = {};
522
- e.isSupported = typeof Ta == "function" && typeof x == "function" && A && A.createHTMLDocument !== void 0;
535
+ e.isSupported = typeof ba == "function" && typeof x == "function" && A && A.createHTMLDocument !== void 0;
523
536
  const {
524
537
  MUSTACHE_EXPR: C,
525
538
  ERB_EXPR: V,
526
539
  TMPLIT_EXPR: F,
527
540
  DATA_ATTR: M,
528
541
  ARIA_ATTR: J,
529
- IS_SCRIPT_OR_DATA: me,
542
+ IS_SCRIPT_OR_DATA: fe,
530
543
  ATTR_WHITESPACE: q,
531
544
  CUSTOM_ELEMENT: H
532
- } = Rs;
545
+ } = Ds;
533
546
  let {
534
547
  IS_ALLOWED_URI: ae
535
- } = Rs, ce = null;
536
- const gt = Z({}, [...Ms, ...un, ...pn, ...gn, ...Cs]);
548
+ } = Ds, ce = null;
549
+ const gt = Z({}, [..._s, ...pn, ...gn, ...mn, ...Is]);
537
550
  let re = null;
538
- const Ke = Z({}, [..._s, ...mn, ...Is, ...Nt]);
539
- let Q = Object.seal(xa(null, {
551
+ const Ke = Z({}, [...Rs, ...fn, ...ks, ...Bt]);
552
+ let Q = Object.seal(Sa(null, {
540
553
  tagNameCheck: {
541
554
  writable: !0,
542
555
  configurable: !1,
@@ -555,58 +568,58 @@ function wa() {
555
568
  enumerable: !0,
556
569
  value: !1
557
570
  }
558
- })), Fe = null, $ = null, K = !0, se = !0, oe = !1, fe = !0, Ie = !1, _ = !0, R = !1, N = !1, Re = !1, Je = !1, At = !1, wt = !1, Zn = !0, Yn = !1;
559
- const ka = "user-content-";
560
- let Kt = !0, mt = !1, Qe = {}, et = null;
561
- const qn = Z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
562
- let Kn = null;
563
- const Jn = Z({}, ["audio", "video", "img", "source", "image", "track"]);
564
- let Jt = null;
565
- const Qn = Z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Mt = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", Ne = "http://www.w3.org/1999/xhtml";
566
- let tt = Ne, Qt = !1, en = null;
567
- const Da = Z({}, [Mt, Ct, Ne], hn);
571
+ })), ze = null, U = null, K = !0, se = !0, oe = !1, ve = !0, Ie = !1, _ = !0, R = !1, N = !1, Re = !1, Je = !1, wt = !1, Mt = !1, Yn = !0, qn = !1;
572
+ const _a = "user-content-";
573
+ let Qt = !0, mt = !1, Qe = {}, et = null;
574
+ const Kn = Z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
575
+ let Jn = null;
576
+ const Qn = Z({}, ["audio", "video", "img", "source", "image", "track"]);
577
+ let en = null;
578
+ const es = Z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ct = "http://www.w3.org/1998/Math/MathML", _t = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
579
+ let tt = Be, tn = !1, nn = null;
580
+ const Ia = Z({}, [Ct, _t, Be], un);
568
581
  let ft = null;
569
- const Pa = ["application/xhtml+xml", "text/html"], Na = "text/html";
582
+ const Ra = ["application/xhtml+xml", "text/html"], ka = "text/html";
570
583
  let ue = null, nt = null;
571
- const Va = t.createElement("form"), es = function(b) {
584
+ const Da = t.createElement("form"), ts = function(b) {
572
585
  return b instanceof RegExp || b instanceof Function;
573
- }, tn = function() {
586
+ }, sn = function() {
574
587
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
575
588
  if (!(nt && nt === b)) {
576
589
  if ((!b || typeof b != "object") && (b = {}), b = Ye(b), ft = // eslint-disable-next-line unicorn/prefer-includes
577
- Pa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Na : b.PARSER_MEDIA_TYPE, ue = ft === "application/xhtml+xml" ? hn : Gt, ce = De(b, "ALLOWED_TAGS") ? Z({}, b.ALLOWED_TAGS, ue) : gt, re = De(b, "ALLOWED_ATTR") ? Z({}, b.ALLOWED_ATTR, ue) : Ke, en = De(b, "ALLOWED_NAMESPACES") ? Z({}, b.ALLOWED_NAMESPACES, hn) : Da, Jt = De(b, "ADD_URI_SAFE_ATTR") ? Z(
578
- Ye(Qn),
590
+ Ra.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? ka : b.PARSER_MEDIA_TYPE, ue = ft === "application/xhtml+xml" ? un : Ut, ce = De(b, "ALLOWED_TAGS") ? Z({}, b.ALLOWED_TAGS, ue) : gt, re = De(b, "ALLOWED_ATTR") ? Z({}, b.ALLOWED_ATTR, ue) : Ke, nn = De(b, "ALLOWED_NAMESPACES") ? Z({}, b.ALLOWED_NAMESPACES, un) : Ia, en = De(b, "ADD_URI_SAFE_ATTR") ? Z(
591
+ Ye(es),
579
592
  // eslint-disable-line indent
580
593
  b.ADD_URI_SAFE_ATTR,
581
594
  // eslint-disable-line indent
582
595
  ue
583
596
  // eslint-disable-line indent
584
- ) : Qn, Kn = De(b, "ADD_DATA_URI_TAGS") ? Z(
585
- Ye(Jn),
597
+ ) : es, Jn = De(b, "ADD_DATA_URI_TAGS") ? Z(
598
+ Ye(Qn),
586
599
  // eslint-disable-line indent
587
600
  b.ADD_DATA_URI_TAGS,
588
601
  // eslint-disable-line indent
589
602
  ue
590
603
  // eslint-disable-line indent
591
- ) : Jn, et = De(b, "FORBID_CONTENTS") ? Z({}, b.FORBID_CONTENTS, ue) : qn, Fe = De(b, "FORBID_TAGS") ? Z({}, b.FORBID_TAGS, ue) : {}, $ = De(b, "FORBID_ATTR") ? Z({}, b.FORBID_ATTR, ue) : {}, Qe = De(b, "USE_PROFILES") ? b.USE_PROFILES : !1, K = b.ALLOW_ARIA_ATTR !== !1, se = b.ALLOW_DATA_ATTR !== !1, oe = b.ALLOW_UNKNOWN_PROTOCOLS || !1, fe = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = b.SAFE_FOR_TEMPLATES || !1, _ = b.SAFE_FOR_XML !== !1, R = b.WHOLE_DOCUMENT || !1, Je = b.RETURN_DOM || !1, At = b.RETURN_DOM_FRAGMENT || !1, wt = b.RETURN_TRUSTED_TYPE || !1, Re = b.FORCE_BODY || !1, Zn = b.SANITIZE_DOM !== !1, Yn = b.SANITIZE_NAMED_PROPS || !1, Kt = b.KEEP_CONTENT !== !1, mt = b.IN_PLACE || !1, ae = b.ALLOWED_URI_REGEXP || La, tt = b.NAMESPACE || Ne, Q = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && es(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && es(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ie && (se = !1), At && (Je = !0), Qe && (ce = Z({}, Cs), re = [], Qe.html === !0 && (Z(ce, Ms), Z(re, _s)), Qe.svg === !0 && (Z(ce, un), Z(re, mn), Z(re, Nt)), Qe.svgFilters === !0 && (Z(ce, pn), Z(re, mn), Z(re, Nt)), Qe.mathMl === !0 && (Z(ce, gn), Z(re, Is), Z(re, Nt))), b.ADD_TAGS && (ce === gt && (ce = Ye(ce)), Z(ce, b.ADD_TAGS, ue)), b.ADD_ATTR && (re === Ke && (re = Ye(re)), Z(re, b.ADD_ATTR, ue)), b.ADD_URI_SAFE_ATTR && Z(Jt, b.ADD_URI_SAFE_ATTR, ue), b.FORBID_CONTENTS && (et === qn && (et = Ye(et)), Z(et, b.FORBID_CONTENTS, ue)), Kt && (ce["#text"] = !0), R && Z(ce, ["html", "head", "body"]), ce.table && (Z(ce, ["tbody"]), delete Fe.tbody), b.TRUSTED_TYPES_POLICY) {
604
+ ) : Qn, et = De(b, "FORBID_CONTENTS") ? Z({}, b.FORBID_CONTENTS, ue) : Kn, ze = De(b, "FORBID_TAGS") ? Z({}, b.FORBID_TAGS, ue) : {}, U = De(b, "FORBID_ATTR") ? Z({}, b.FORBID_ATTR, ue) : {}, Qe = De(b, "USE_PROFILES") ? b.USE_PROFILES : !1, K = b.ALLOW_ARIA_ATTR !== !1, se = b.ALLOW_DATA_ATTR !== !1, oe = b.ALLOW_UNKNOWN_PROTOCOLS || !1, ve = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = b.SAFE_FOR_TEMPLATES || !1, _ = b.SAFE_FOR_XML !== !1, R = b.WHOLE_DOCUMENT || !1, Je = b.RETURN_DOM || !1, wt = b.RETURN_DOM_FRAGMENT || !1, Mt = b.RETURN_TRUSTED_TYPE || !1, Re = b.FORCE_BODY || !1, Yn = b.SANITIZE_DOM !== !1, qn = b.SANITIZE_NAMED_PROPS || !1, Qt = b.KEEP_CONTENT !== !1, mt = b.IN_PLACE || !1, ae = b.ALLOWED_URI_REGEXP || Oa, tt = b.NAMESPACE || Be, Q = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && ts(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && ts(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ie && (se = !1), wt && (Je = !0), Qe && (ce = Z({}, Is), re = [], Qe.html === !0 && (Z(ce, _s), Z(re, Rs)), Qe.svg === !0 && (Z(ce, pn), Z(re, fn), Z(re, Bt)), Qe.svgFilters === !0 && (Z(ce, gn), Z(re, fn), Z(re, Bt)), Qe.mathMl === !0 && (Z(ce, mn), Z(re, ks), Z(re, Bt))), b.ADD_TAGS && (ce === gt && (ce = Ye(ce)), Z(ce, b.ADD_TAGS, ue)), b.ADD_ATTR && (re === Ke && (re = Ye(re)), Z(re, b.ADD_ATTR, ue)), b.ADD_URI_SAFE_ATTR && Z(en, b.ADD_URI_SAFE_ATTR, ue), b.FORBID_CONTENTS && (et === Kn && (et = Ye(et)), Z(et, b.FORBID_CONTENTS, ue)), Qt && (ce["#text"] = !0), R && Z(ce, ["html", "head", "body"]), ce.table && (Z(ce, ["tbody"]), delete ze.tbody), b.TRUSTED_TYPES_POLICY) {
592
605
  if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
593
606
  throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
594
607
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
595
608
  throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
596
609
  y = b.TRUSTED_TYPES_POLICY, w = y.createHTML("");
597
610
  } else
598
- y === void 0 && (y = eo(u, s)), y !== null && typeof w == "string" && (w = y.createHTML(""));
599
- be && be(b), nt = b;
611
+ y === void 0 && (y = Zr(u, s)), y !== null && typeof w == "string" && (w = y.createHTML(""));
612
+ Oe && Oe(b), nt = b;
600
613
  }
601
- }, ts = Z({}, ["mi", "mo", "mn", "ms", "mtext"]), ns = Z({}, ["foreignobject", "desc", "title", "annotation-xml"]), Ba = Z({}, ["title", "style", "font", "a", "script"]), ss = Z({}, [...un, ...pn, ...Fr]), as = Z({}, [...gn, ...zr]), Ga = function(b) {
614
+ }, ns = Z({}, ["mi", "mo", "mn", "ms", "mtext"]), ss = Z({}, ["foreignobject", "annotation-xml"]), Pa = Z({}, ["title", "style", "font", "a", "script"]), as = Z({}, [...pn, ...gn, ...Vr]), is = Z({}, [...mn, ...Br]), Na = function(b) {
602
615
  let D = x(b);
603
616
  (!D || !D.tagName) && (D = {
604
617
  namespaceURI: tt,
605
618
  tagName: "template"
606
619
  });
607
- const G = Gt(b.tagName), ee = Gt(D.tagName);
608
- return en[b.namespaceURI] ? b.namespaceURI === Ct ? D.namespaceURI === Ne ? G === "svg" : D.namespaceURI === Mt ? G === "svg" && (ee === "annotation-xml" || ts[ee]) : !!ss[G] : b.namespaceURI === Mt ? D.namespaceURI === Ne ? G === "math" : D.namespaceURI === Ct ? G === "math" && ns[ee] : !!as[G] : b.namespaceURI === Ne ? D.namespaceURI === Ct && !ns[ee] || D.namespaceURI === Mt && !ts[ee] ? !1 : !as[G] && (Ba[G] || !ss[G]) : !!(ft === "application/xhtml+xml" && en[b.namespaceURI]) : !1;
609
- }, Ve = function(b) {
620
+ const G = Ut(b.tagName), ee = Ut(D.tagName);
621
+ return nn[b.namespaceURI] ? b.namespaceURI === _t ? D.namespaceURI === Be ? G === "svg" : D.namespaceURI === Ct ? G === "svg" && (ee === "annotation-xml" || ns[ee]) : !!as[G] : b.namespaceURI === Ct ? D.namespaceURI === Be ? G === "math" : D.namespaceURI === _t ? G === "math" && ss[ee] : !!is[G] : b.namespaceURI === Be ? D.namespaceURI === _t && !ss[ee] || D.namespaceURI === Ct && !ns[ee] ? !1 : !is[G] && (Pa[G] || !as[G]) : !!(ft === "application/xhtml+xml" && nn[b.namespaceURI]) : !1;
622
+ }, Pe = function(b) {
610
623
  Et(e.removed, {
611
624
  element: b
612
625
  });
@@ -615,7 +628,7 @@ function wa() {
615
628
  } catch {
616
629
  b.remove();
617
630
  }
618
- }, nn = function(b, D) {
631
+ }, It = function(b, D) {
619
632
  try {
620
633
  Et(e.removed, {
621
634
  attribute: D.getAttributeNode(b),
@@ -628,9 +641,9 @@ function wa() {
628
641
  });
629
642
  }
630
643
  if (D.removeAttribute(b), b === "is" && !re[b])
631
- if (Je || At)
644
+ if (Je || wt)
632
645
  try {
633
- Ve(D);
646
+ Pe(D);
634
647
  } catch {
635
648
  }
636
649
  else
@@ -638,17 +651,17 @@ function wa() {
638
651
  D.setAttribute(b, "");
639
652
  } catch {
640
653
  }
641
- }, is = function(b) {
654
+ }, rs = function(b) {
642
655
  let D = null, G = null;
643
656
  if (Re)
644
657
  b = "<remove></remove>" + b;
645
658
  else {
646
- const ye = ws(b, /^[\r\n\t ]+/);
647
- G = ye && ye[0];
659
+ const pe = Cs(b, /^[\r\n\t ]+/);
660
+ G = pe && pe[0];
648
661
  }
649
- ft === "application/xhtml+xml" && tt === Ne && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
662
+ ft === "application/xhtml+xml" && tt === Be && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
650
663
  const ee = y ? y.createHTML(b) : b;
651
- if (tt === Ne)
664
+ if (tt === Be)
652
665
  try {
653
666
  D = new h().parseFromString(ee, ft);
654
667
  } catch {
@@ -656,13 +669,13 @@ function wa() {
656
669
  if (!D || !D.documentElement) {
657
670
  D = A.createDocument(tt, "template", null);
658
671
  try {
659
- D.documentElement.innerHTML = Qt ? w : ee;
672
+ D.documentElement.innerHTML = tn ? w : ee;
660
673
  } catch {
661
674
  }
662
675
  }
663
- const ve = D.body || D.documentElement;
664
- return b && G && ve.insertBefore(t.createTextNode(G), ve.childNodes[0] || null), tt === Ne ? P.call(D, R ? "html" : "body")[0] : R ? D.documentElement : ve;
665
- }, rs = function(b) {
676
+ const ye = D.body || D.documentElement;
677
+ return b && G && ye.insertBefore(t.createTextNode(G), ye.childNodes[0] || null), tt === Be ? P.call(D, R ? "html" : "body")[0] : R ? D.documentElement : ye;
678
+ }, os = function(b) {
666
679
  return L.call(
667
680
  b.ownerDocument || b,
668
681
  b,
@@ -670,61 +683,63 @@ function wa() {
670
683
  c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
671
684
  null
672
685
  );
673
- }, Ha = function(b) {
686
+ }, ls = function(b) {
674
687
  return b instanceof p && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof d) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
675
- }, os = function(b) {
688
+ }, cs = function(b) {
676
689
  return typeof r == "function" && b instanceof r;
677
- }, Be = function(b, D, G) {
678
- k[b] && Dt(k[b], (ee) => {
690
+ }, Ge = function(b, D, G) {
691
+ k[b] && Nt(k[b], (ee) => {
679
692
  ee.call(e, D, G, nt);
680
693
  });
681
- }, ls = function(b) {
694
+ }, ds = function(b) {
682
695
  let D = null;
683
- if (Be("beforeSanitizeElements", b, null), Ha(b))
684
- return Ve(b), !0;
696
+ if (Ge("beforeSanitizeElements", b, null), ls(b))
697
+ return Pe(b), !0;
685
698
  const G = ue(b.nodeName);
686
- if (Be("uponSanitizeElement", b, {
699
+ if (Ge("uponSanitizeElement", b, {
687
700
  tagName: G,
688
701
  allowedTags: ce
689
- }), b.hasChildNodes() && !os(b.firstElementChild) && Te(/<[/\w]/g, b.innerHTML) && Te(/<[/\w]/g, b.textContent) || b.nodeType === 7 || _ && b.nodeType === 8 && Te(/<[/\w]/g, b.data))
690
- return Ve(b), !0;
691
- if (!ce[G] || Fe[G]) {
692
- if (!Fe[G] && ds(G) && (Q.tagNameCheck instanceof RegExp && Te(Q.tagNameCheck, G) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(G)))
702
+ }), b.hasChildNodes() && !cs(b.firstElementChild) && be(/<[/\w]/g, b.innerHTML) && be(/<[/\w]/g, b.textContent) || b.nodeType === Ot.progressingInstruction || _ && b.nodeType === Ot.comment && be(/<[/\w]/g, b.data))
703
+ return Pe(b), !0;
704
+ if (!ce[G] || ze[G]) {
705
+ if (!ze[G] && us(G) && (Q.tagNameCheck instanceof RegExp && be(Q.tagNameCheck, G) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(G)))
693
706
  return !1;
694
- if (Kt && !et[G]) {
695
- const ee = x(b) || b.parentNode, ve = O(b) || b.childNodes;
696
- if (ve && ee) {
697
- const ye = ve.length;
698
- for (let Se = ye - 1; Se >= 0; --Se)
699
- ee.insertBefore(m(ve[Se], !0), E(b));
707
+ if (Qt && !et[G]) {
708
+ const ee = x(b) || b.parentNode, ye = O(b) || b.childNodes;
709
+ if (ye && ee) {
710
+ const pe = ye.length;
711
+ for (let Te = pe - 1; Te >= 0; --Te) {
712
+ const Ne = m(ye[Te], !0);
713
+ Ne.__removalCount = (b.__removalCount || 0) + 1, ee.insertBefore(Ne, E(b));
714
+ }
700
715
  }
701
716
  }
702
- return Ve(b), !0;
717
+ return Pe(b), !0;
703
718
  }
704
- return b instanceof l && !Ga(b) || (G === "noscript" || G === "noembed" || G === "noframes") && Te(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ve(b), !0) : (Ie && b.nodeType === 3 && (D = b.textContent, Dt([C, V, F], (ee) => {
719
+ return b instanceof l && !Na(b) || (G === "noscript" || G === "noembed" || G === "noframes") && be(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Pe(b), !0) : (Ie && b.nodeType === Ot.text && (D = b.textContent, Nt([C, V, F], (ee) => {
705
720
  D = bt(D, ee, " ");
706
721
  }), b.textContent !== D && (Et(e.removed, {
707
722
  element: b.cloneNode()
708
- }), b.textContent = D)), Be("afterSanitizeElements", b, null), !1);
709
- }, cs = function(b, D, G) {
710
- if (Zn && (D === "id" || D === "name") && (G in t || G in Va))
723
+ }), b.textContent = D)), Ge("afterSanitizeElements", b, null), !1);
724
+ }, hs = function(b, D, G) {
725
+ if (Yn && (D === "id" || D === "name") && (G in t || G in Da))
711
726
  return !1;
712
- if (!(se && !$[D] && Te(M, D))) {
713
- if (!(K && Te(J, D))) {
714
- if (!re[D] || $[D]) {
727
+ if (!(se && !U[D] && be(M, D))) {
728
+ if (!(K && be(J, D))) {
729
+ if (!re[D] || U[D]) {
715
730
  if (
716
731
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
717
732
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
718
733
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
719
- !(ds(b) && (Q.tagNameCheck instanceof RegExp && Te(Q.tagNameCheck, b) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(b)) && (Q.attributeNameCheck instanceof RegExp && Te(Q.attributeNameCheck, D) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(D)) || // Alternative, second condition checks if it's an `is`-attribute, AND
734
+ !(us(b) && (Q.tagNameCheck instanceof RegExp && be(Q.tagNameCheck, b) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(b)) && (Q.attributeNameCheck instanceof RegExp && be(Q.attributeNameCheck, D) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(D)) || // Alternative, second condition checks if it's an `is`-attribute, AND
720
735
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
721
- D === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && Te(Q.tagNameCheck, G) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(G)))
736
+ D === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && be(Q.tagNameCheck, G) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(G)))
722
737
  )
723
738
  return !1;
724
- } else if (!Jt[D]) {
725
- if (!Te(ae, bt(G, q, ""))) {
726
- if (!((D === "src" || D === "xlink:href" || D === "href") && b !== "script" && Gr(G, "data:") === 0 && Kn[b])) {
727
- if (!(oe && !Te(me, bt(G, q, "")))) {
739
+ } else if (!en[D]) {
740
+ if (!be(ae, bt(G, q, ""))) {
741
+ if (!((D === "src" || D === "xlink:href" || D === "href") && b !== "script" && kr(G, "data:") === 0 && Jn[b])) {
742
+ if (!(oe && !be(fe, bt(G, q, "")))) {
728
743
  if (G)
729
744
  return !1;
730
745
  }
@@ -734,10 +749,10 @@ function wa() {
734
749
  }
735
750
  }
736
751
  return !0;
737
- }, ds = function(b) {
738
- return b !== "annotation-xml" && ws(b, H);
739
- }, hs = function(b) {
740
- Be("beforeSanitizeAttributes", b, null);
752
+ }, us = function(b) {
753
+ return b !== "annotation-xml" && Cs(b, H);
754
+ }, ps = function(b) {
755
+ Ge("beforeSanitizeAttributes", b, null);
741
756
  const {
742
757
  attributes: D
743
758
  } = b;
@@ -751,127 +766,131 @@ function wa() {
751
766
  };
752
767
  let ee = D.length;
753
768
  for (; ee--; ) {
754
- const ve = D[ee], {
755
- name: ye,
756
- namespaceURI: Se,
757
- value: We
758
- } = ve, vt = ue(ye);
759
- let Oe = ye === "value" ? We : Hr(We);
760
- if (G.attrName = vt, G.attrValue = Oe, G.keepAttr = !0, G.forceKeepAttr = void 0, Be("uponSanitizeAttribute", b, G), Oe = G.attrValue, G.forceKeepAttr || (nn(ye, b), !G.keepAttr))
769
+ const ye = D[ee], {
770
+ name: pe,
771
+ namespaceURI: Te,
772
+ value: Ne
773
+ } = ye, vt = ue(pe);
774
+ let Ee = pe === "value" ? Ne : Dr(Ne);
775
+ if (G.attrName = vt, G.attrValue = Ee, G.keepAttr = !0, G.forceKeepAttr = void 0, Ge("uponSanitizeAttribute", b, G), Ee = G.attrValue, G.forceKeepAttr || (It(pe, b), !G.keepAttr))
761
776
  continue;
762
- if (!fe && Te(/\/>/i, Oe)) {
763
- nn(ye, b);
777
+ if (!ve && be(/\/>/i, Ee)) {
778
+ It(pe, b);
764
779
  continue;
765
780
  }
766
- Ie && Dt([C, V, F], (ps) => {
767
- Oe = bt(Oe, ps, " ");
781
+ if (_ && be(/((--!?|])>)|<\/(style|title)/i, Ee)) {
782
+ It(pe, b);
783
+ continue;
784
+ }
785
+ Ie && Nt([C, V, F], (ms) => {
786
+ Ee = bt(Ee, ms, " ");
768
787
  });
769
- const us = ue(b.nodeName);
770
- if (cs(us, vt, Oe)) {
771
- if (Yn && (vt === "id" || vt === "name") && (nn(ye, b), Oe = ka + Oe), y && typeof u == "object" && typeof u.getAttributeType == "function" && !Se)
772
- switch (u.getAttributeType(us, vt)) {
788
+ const gs = ue(b.nodeName);
789
+ if (hs(gs, vt, Ee)) {
790
+ if (qn && (vt === "id" || vt === "name") && (It(pe, b), Ee = _a + Ee), y && typeof u == "object" && typeof u.getAttributeType == "function" && !Te)
791
+ switch (u.getAttributeType(gs, vt)) {
773
792
  case "TrustedHTML": {
774
- Oe = y.createHTML(Oe);
793
+ Ee = y.createHTML(Ee);
775
794
  break;
776
795
  }
777
796
  case "TrustedScriptURL": {
778
- Oe = y.createScriptURL(Oe);
797
+ Ee = y.createScriptURL(Ee);
779
798
  break;
780
799
  }
781
800
  }
782
801
  try {
783
- Se ? b.setAttributeNS(Se, ye, Oe) : b.setAttribute(ye, Oe), As(e.removed);
802
+ Te ? b.setAttributeNS(Te, pe, Ee) : b.setAttribute(pe, Ee), ls(b) ? Pe(b) : Ms(e.removed);
784
803
  } catch {
785
804
  }
786
805
  }
787
806
  }
788
- Be("afterSanitizeAttributes", b, null);
789
- }, $a = function U(b) {
807
+ Ge("afterSanitizeAttributes", b, null);
808
+ }, Va = function $(b) {
790
809
  let D = null;
791
- const G = rs(b);
792
- for (Be("beforeSanitizeShadowDOM", b, null); D = G.nextNode(); )
793
- Be("uponSanitizeShadowNode", D, null), !ls(D) && (D.content instanceof a && U(D.content), hs(D));
794
- Be("afterSanitizeShadowDOM", b, null);
810
+ const G = os(b);
811
+ for (Ge("beforeSanitizeShadowDOM", b, null); D = G.nextNode(); )
812
+ Ge("uponSanitizeShadowNode", D, null), !ds(D) && (D.content instanceof a && $(D.content), ps(D));
813
+ Ge("afterSanitizeShadowDOM", b, null);
795
814
  };
796
- return e.sanitize = function(U) {
797
- let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, D = null, G = null, ee = null, ve = null;
798
- if (Qt = !U, Qt && (U = "<!-->"), typeof U != "string" && !os(U))
799
- if (typeof U.toString == "function") {
800
- if (U = U.toString(), typeof U != "string")
815
+ return e.sanitize = function($) {
816
+ let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, D = null, G = null, ee = null, ye = null;
817
+ if (tn = !$, tn && ($ = "<!-->"), typeof $ != "string" && !cs($))
818
+ if (typeof $.toString == "function") {
819
+ if ($ = $.toString(), typeof $ != "string")
801
820
  throw St("dirty is not a string, aborting");
802
821
  } else
803
822
  throw St("toString is not a function");
804
823
  if (!e.isSupported)
805
- return U;
806
- if (N || tn(b), e.removed = [], typeof U == "string" && (mt = !1), mt) {
807
- if (U.nodeName) {
808
- const We = ue(U.nodeName);
809
- if (!ce[We] || Fe[We])
824
+ return $;
825
+ if (N || sn(b), e.removed = [], typeof $ == "string" && (mt = !1), mt) {
826
+ if ($.nodeName) {
827
+ const Ne = ue($.nodeName);
828
+ if (!ce[Ne] || ze[Ne])
810
829
  throw St("root node is forbidden and cannot be sanitized in-place");
811
830
  }
812
- } else if (U instanceof r)
813
- D = is("<!---->"), G = D.ownerDocument.importNode(U, !0), G.nodeType === 1 && G.nodeName === "BODY" || G.nodeName === "HTML" ? D = G : D.appendChild(G);
831
+ } else if ($ instanceof r)
832
+ D = rs("<!---->"), G = D.ownerDocument.importNode($, !0), G.nodeType === Ot.element && G.nodeName === "BODY" || G.nodeName === "HTML" ? D = G : D.appendChild(G);
814
833
  else {
815
834
  if (!Je && !Ie && !R && // eslint-disable-next-line unicorn/prefer-includes
816
- U.indexOf("<") === -1)
817
- return y && wt ? y.createHTML(U) : U;
818
- if (D = is(U), !D)
819
- return Je ? null : wt ? w : "";
835
+ $.indexOf("<") === -1)
836
+ return y && Mt ? y.createHTML($) : $;
837
+ if (D = rs($), !D)
838
+ return Je ? null : Mt ? w : "";
820
839
  }
821
- D && Re && Ve(D.firstChild);
822
- const ye = rs(mt ? U : D);
823
- for (; ee = ye.nextNode(); )
824
- ls(ee) || (ee.content instanceof a && $a(ee.content), hs(ee));
840
+ D && Re && Pe(D.firstChild);
841
+ const pe = os(mt ? $ : D);
842
+ for (; ee = pe.nextNode(); )
843
+ ds(ee) || (ee.content instanceof a && Va(ee.content), ps(ee));
825
844
  if (mt)
826
- return U;
845
+ return $;
827
846
  if (Je) {
828
- if (At)
829
- for (ve = I.call(D.ownerDocument); D.firstChild; )
830
- ve.appendChild(D.firstChild);
847
+ if (wt)
848
+ for (ye = I.call(D.ownerDocument); D.firstChild; )
849
+ ye.appendChild(D.firstChild);
831
850
  else
832
- ve = D;
833
- return (re.shadowroot || re.shadowrootmode) && (ve = W.call(n, ve, !0)), ve;
851
+ ye = D;
852
+ return (re.shadowroot || re.shadowrootmode) && (ye = W.call(n, ye, !0)), ye;
834
853
  }
835
- let Se = R ? D.outerHTML : D.innerHTML;
836
- return R && ce["!doctype"] && D.ownerDocument && D.ownerDocument.doctype && D.ownerDocument.doctype.name && Te(Aa, D.ownerDocument.doctype.name) && (Se = "<!DOCTYPE " + D.ownerDocument.doctype.name + `>
837
- ` + Se), Ie && Dt([C, V, F], (We) => {
838
- Se = bt(Se, We, " ");
839
- }), y && wt ? y.createHTML(Se) : Se;
854
+ let Te = R ? D.outerHTML : D.innerHTML;
855
+ return R && ce["!doctype"] && D.ownerDocument && D.ownerDocument.doctype && D.ownerDocument.doctype.name && be(Ta, D.ownerDocument.doctype.name) && (Te = "<!DOCTYPE " + D.ownerDocument.doctype.name + `>
856
+ ` + Te), Ie && Nt([C, V, F], (Ne) => {
857
+ Te = bt(Te, Ne, " ");
858
+ }), y && Mt ? y.createHTML(Te) : Te;
840
859
  }, e.setConfig = function() {
841
- let U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
842
- tn(U), N = !0;
860
+ let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
861
+ sn($), N = !0;
843
862
  }, e.clearConfig = function() {
844
863
  nt = null, N = !1;
845
- }, e.isValidAttribute = function(U, b, D) {
846
- nt || tn({});
847
- const G = ue(U), ee = ue(b);
848
- return cs(G, ee, D);
849
- }, e.addHook = function(U, b) {
850
- typeof b == "function" && (k[U] = k[U] || [], Et(k[U], b));
851
- }, e.removeHook = function(U) {
852
- if (k[U])
853
- return As(k[U]);
854
- }, e.removeHooks = function(U) {
855
- k[U] && (k[U] = []);
864
+ }, e.isValidAttribute = function($, b, D) {
865
+ nt || sn({});
866
+ const G = ue($), ee = ue(b);
867
+ return hs(G, ee, D);
868
+ }, e.addHook = function($, b) {
869
+ typeof b == "function" && (k[$] = k[$] || [], Et(k[$], b));
870
+ }, e.removeHook = function($) {
871
+ if (k[$])
872
+ return Ms(k[$]);
873
+ }, e.removeHooks = function($) {
874
+ k[$] && (k[$] = []);
856
875
  }, e.removeAllHooks = function() {
857
876
  k = {};
858
877
  }, e;
859
878
  }
860
- var zn = wa();
861
- const Vt = (o) => zn.sanitize(o, {
879
+ var Wn = xa();
880
+ const Gt = (o) => Wn.sanitize(o, {
862
881
  USE_PROFILES: {
863
882
  html: !0,
864
883
  svg: !0,
865
884
  svgFilters: !0
866
885
  }
867
- }), to = (o) => zn.sanitize(o, {
886
+ }), Yr = (o) => Wn.sanitize(o, {
868
887
  NAMESPACE: "http://www.w3.org/2000/svg",
869
888
  USE_PROFILES: {
870
889
  html: !0,
871
890
  svg: !0,
872
891
  svgFilters: !0
873
892
  }
874
- }), Pe = (o) => zn.sanitize(o, { ALLOWED_TAGS: [] }), jt = class jt extends Y {
893
+ }), Ve = (o) => Wn.sanitize(o, { ALLOWED_TAGS: [] }), Zt = class Zt extends Y {
875
894
  constructor() {
876
895
  super(...arguments), this.type = "toolbar", this.renderType = j.HTML;
877
896
  }
@@ -904,10 +923,10 @@ const Vt = (o) => zn.sanitize(o, {
904
923
  <button
905
924
  class="cds--overflow-menu__trigger cds--overflow-menu__trigger"
906
925
  aria-haspopup="true" aria-expanded="false" id="${this.services.domUtils.generateElementIDString(
907
- `control-${Pe(c.id)}`
908
- )}" aria-label="${Pe(c.title)}">
926
+ `control-${Ve(c.id)}`
927
+ )}" aria-label="${Ve(c.title)}">
909
928
  <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" class="cds--overflow-menu__icon cds--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">
910
- ${to(c.iconSVG.content)}
929
+ ${Yr(c.iconSVG.content)}
911
930
  </svg>
912
931
  </button>`).each(function(c, d) {
913
932
  T(this).select("svg").style("pointer-events", "none").style("will-change", "transform").style("width", c.iconSVG.width !== void 0 ? c.iconSVG.width : "20px").style("height", c.iconSVG.height !== void 0 ? c.iconSVG.height : "20px"), T(this).select("button").on("mouseover focus", function(p) {
@@ -1047,7 +1066,7 @@ const Vt = (o) => zn.sanitize(o, {
1047
1066
  return t.forEach((i) => {
1048
1067
  let r = null;
1049
1068
  if (i.type === ie.CUSTOM)
1050
- v(i, "id") === null && (i.id = `toolbar-button-${jt.buttonID++}`), v(i, "shouldBeDisabled") === null && (i.shouldBeDisabled = () => !1), r = i;
1069
+ v(i, "id") === null && (i.id = `toolbar-button-${Zt.buttonID++}`), v(i, "shouldBeDisabled") === null && (i.shouldBeDisabled = () => !1), r = i;
1051
1070
  else {
1052
1071
  const l = this.services.domUtils.isFullScreenMode();
1053
1072
  i.type === ie.MAKE_FULLSCREEN && l ? i.type = ie.EXIT_FULLSCREEN : i.type === ie.EXIT_FULLSCREEN && !l && (i.type = ie.MAKE_FULLSCREEN), r = this.getControlConfigByType(i.type);
@@ -1070,7 +1089,12 @@ const Vt = (o) => zn.sanitize(o, {
1070
1089
  }
1071
1090
  // special button config for overflow button
1072
1091
  getOverflowButtonConfig() {
1073
- const { moreOptions: e } = v(this.model.getOptions(), "locale", "translations", "toolbar");
1092
+ const { moreOptions: e } = v(
1093
+ this.model.getOptions(),
1094
+ "locale",
1095
+ "translations",
1096
+ "toolbar"
1097
+ );
1074
1098
  return {
1075
1099
  id: "toolbar-overflow-menu",
1076
1100
  title: e,
@@ -1094,12 +1118,7 @@ const Vt = (o) => zn.sanitize(o, {
1094
1118
  makeFullScreen: p,
1095
1119
  exitFullScreen: h,
1096
1120
  showAsTable: u
1097
- } = v(
1098
- s,
1099
- "locale",
1100
- "translations",
1101
- "toolbar"
1102
- );
1121
+ } = v(s, "locale", "translations", "toolbar");
1103
1122
  let g;
1104
1123
  switch (e) {
1105
1124
  case ie.ZOOM_IN:
@@ -1241,11 +1260,11 @@ const Vt = (o) => zn.sanitize(o, {
1241
1260
  }
1242
1261
  }
1243
1262
  };
1244
- jt.buttonID = 0;
1245
- let ks = jt;
1246
- const Xt = class Xt extends Y {
1263
+ Zt.buttonID = 0;
1264
+ let Ps = Zt;
1265
+ const Yt = class Yt extends Y {
1247
1266
  constructor(e, t, n, s) {
1248
- super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Xt.instanceID++, this.init();
1267
+ super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Yt.instanceID++, this.init();
1249
1268
  }
1250
1269
  init() {
1251
1270
  this.children.forEach((e) => {
@@ -1259,13 +1278,13 @@ const Xt = class Xt extends Y {
1259
1278
  let t = 0;
1260
1279
  return e.selectAll(`div.layout-child-${this._instanceID}`).filter((n) => {
1261
1280
  const s = v(n, "growth");
1262
- return s === ze.PREFERRED || s === ze.FIXED;
1281
+ return s === We.PREFERRED || s === We.FIXED;
1263
1282
  }).each(function(n) {
1264
1283
  t += n.size;
1265
1284
  }), t;
1266
1285
  }
1267
1286
  getNumOfStretchChildren() {
1268
- return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((t) => v(t, "growth") === ze.STRETCH).size();
1287
+ return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((t) => v(t, "growth") === We.STRETCH).size();
1269
1288
  }
1270
1289
  render(e = !0) {
1271
1290
  const t = this.parent, { width: n, height: s } = S.getHTMLElementSize(t.node()), a = this.configs.direction === st.ROW || this.configs.direction === st.ROW_REVERSE, i = v(this.model.getOptions(), "style", "prefix"), r = t.classed(
@@ -1282,7 +1301,7 @@ const Xt = class Xt extends Y {
1282
1301
  this.configs.direction === st.COLUMN_REVERSE
1283
1302
  ).classed(
1284
1303
  `${Me}--${i}--layout-alignitems-center`,
1285
- this.configs.alignItems === wi.CENTER
1304
+ this.configs.alignItems === Oi.CENTER
1286
1305
  ).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
1287
1306
  r.enter().append("div").merge(t.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
1288
1307
  d.components.forEach((p) => {
@@ -1291,23 +1310,23 @@ const Xt = class Xt extends Y {
1291
1310
  g ? S.appendOrSelect(h, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : h
1292
1311
  );
1293
1312
  const m = v(d, "growth");
1294
- (m === ze.PREFERRED || m === ze.FIXED) && p.render(e);
1313
+ (m === We.PREFERRED || m === We.FIXED) && p.render(e);
1295
1314
  });
1296
1315
  }), t.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(d) {
1297
1316
  const p = v(d, "growth"), u = v(d, "renderType") === j.SVG ? S.getSVGElementSize(T(this).select("svg.layout-svg-wrapper"), {
1298
1317
  useBBox: !0
1299
1318
  }) : S.getHTMLElementSize(this);
1300
- if (p === ze.PREFERRED) {
1319
+ if (p === We.PREFERRED) {
1301
1320
  const g = a ? u.width : u.height, m = a ? n : s;
1302
1321
  d.size = g / m * 100;
1303
1322
  }
1304
- }), r.exit().remove(), this.children.filter((d) => v(d, "growth") === ze.STRETCH).forEach((d) => {
1323
+ }), r.exit().remove(), this.children.filter((d) => v(d, "growth") === We.STRETCH).forEach((d) => {
1305
1324
  d.size = (100 - +this.getPreferedAndFixedSizeSum()) / +this.getNumOfStretchChildren();
1306
1325
  });
1307
1326
  const c = t.selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
1308
1327
  a ? c.style("width", (d) => `${d.size / 100 * n}px`).style("height", "100%") : c.style("height", (d) => `${d.size / 100 * s}px`).style("width", "100%"), c.each(function(d) {
1309
1328
  d.components.forEach((p) => {
1310
- v(d, "growth") === ze.STRETCH && p.render(e);
1329
+ v(d, "growth") === We.STRETCH && p.render(e);
1311
1330
  });
1312
1331
  });
1313
1332
  }
@@ -1329,9 +1348,9 @@ const Xt = class Xt extends Y {
1329
1348
  });
1330
1349
  }
1331
1350
  };
1332
- Xt.instanceID = Math.floor(Math.random() * 99999999999);
1333
- let Ds = Xt;
1334
- class fh extends Y {
1351
+ Yt.instanceID = Math.floor(Math.random() * 99999999999);
1352
+ let Ns = Yt;
1353
+ class ph extends Y {
1335
1354
  constructor() {
1336
1355
  super(...arguments), this.type = "spacer";
1337
1356
  }
@@ -1339,10 +1358,10 @@ class fh extends Y {
1339
1358
  // @ts-ignore
1340
1359
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1341
1360
  render(e = !1) {
1342
- this.getComponentContainer().style("width", `${this.configs.size || gs.default.size}px`).style("height", `${this.configs.size || gs.default.size}px`).attr("opacity", 0);
1361
+ this.getComponentContainer().style("width", `${this.configs.size || fs.default.size}px`).style("height", `${this.configs.size || fs.default.size}px`).attr("opacity", 0);
1343
1362
  }
1344
1363
  }
1345
- var no = {
1364
+ var qr = {
1346
1365
  prefix: "bx",
1347
1366
  selectorTabbable: `
1348
1367
  a[href], area[href], input:not([disabled]):not([tabindex='-1']),
@@ -1356,95 +1375,89 @@ var no = {
1356
1375
  textarea:not([disabled]),
1357
1376
  iframe, object, embed, *[tabindex], *[contenteditable=true]
1358
1377
  `
1359
- }, fn = no;
1360
- function Ps(o, e) {
1361
- for (var t = 0; t < e.length; t++) {
1362
- var n = e[t];
1363
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1364
- }
1365
- }
1366
- function so(o, e, t) {
1367
- return e && Ps(o.prototype, e), t && Ps(o, t), Object.defineProperty(o, "prototype", {
1378
+ }, vn = qr;
1379
+ function Kr(o, e, t) {
1380
+ return Object.defineProperty(o, "prototype", {
1368
1381
  writable: !1
1369
1382
  }), o;
1370
1383
  }
1371
- function ao(o, e) {
1384
+ function Jr(o, e) {
1372
1385
  if (!(o instanceof e))
1373
1386
  throw new TypeError("Cannot call a class as a function");
1374
1387
  }
1375
- function io(o) {
1376
- return co(o) || lo(o) || oo(o) || ro();
1388
+ function Qr(o) {
1389
+ return so(o) || no(o) || to(o) || eo();
1377
1390
  }
1378
- function ro() {
1391
+ function eo() {
1379
1392
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1380
1393
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1381
1394
  }
1382
- function oo(o, e) {
1395
+ function to(o, e) {
1383
1396
  if (o) {
1384
1397
  if (typeof o == "string")
1385
- return Tn(o, e);
1398
+ return xn(o, e);
1386
1399
  var t = Object.prototype.toString.call(o).slice(8, -1);
1387
1400
  if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
1388
1401
  return Array.from(o);
1389
1402
  if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1390
- return Tn(o, e);
1403
+ return xn(o, e);
1391
1404
  }
1392
1405
  }
1393
- function lo(o) {
1406
+ function no(o) {
1394
1407
  if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
1395
1408
  return Array.from(o);
1396
1409
  }
1397
- function co(o) {
1410
+ function so(o) {
1398
1411
  if (Array.isArray(o))
1399
- return Tn(o);
1412
+ return xn(o);
1400
1413
  }
1401
- function Tn(o, e) {
1414
+ function xn(o, e) {
1402
1415
  (e == null || e > o.length) && (e = o.length);
1403
1416
  for (var t = 0, n = new Array(e); t < e; t++)
1404
1417
  n[t] = o[t];
1405
1418
  return n;
1406
1419
  }
1407
- function Ma(o) {
1420
+ function La(o) {
1408
1421
  return o.reduce(function(e, t) {
1409
- return Array.isArray(t) ? e.push.apply(e, io(Ma(t))) : e.push(t), e;
1422
+ return Array.isArray(t) ? e.push.apply(e, Qr(La(t))) : e.push(t), e;
1410
1423
  }, []);
1411
1424
  }
1412
- function ho() {
1425
+ function ao() {
1413
1426
  for (var o = arguments.length, e = new Array(o), t = 0; t < o; t++)
1414
1427
  e[t] = arguments[t];
1415
- return Ma(e).reduce(function(n, s) {
1428
+ return La(e).reduce(function(n, s) {
1416
1429
  return s(n);
1417
1430
  }, /* @__PURE__ */ function() {
1418
1431
  function n() {
1419
- ao(this, n);
1432
+ Jr(this, n);
1420
1433
  }
1421
- return so(n);
1434
+ return Kr(n);
1422
1435
  }());
1423
1436
  }
1424
- function xn(o) {
1437
+ function Ln(o) {
1425
1438
  "@babel/helpers - typeof";
1426
- return xn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1439
+ return Ln = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1427
1440
  return typeof e;
1428
1441
  } : function(e) {
1429
1442
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1430
- }, xn(o);
1443
+ }, Ln(o);
1431
1444
  }
1432
- function uo(o, e) {
1445
+ function io(o, e) {
1433
1446
  if (!(o instanceof e))
1434
1447
  throw new TypeError("Cannot call a class as a function");
1435
1448
  }
1436
- function Ns(o, e) {
1449
+ function Vs(o, e) {
1437
1450
  for (var t = 0; t < e.length; t++) {
1438
1451
  var n = e[t];
1439
1452
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1440
1453
  }
1441
1454
  }
1442
- function po(o, e, t) {
1443
- return e && Ns(o.prototype, e), t && Ns(o, t), Object.defineProperty(o, "prototype", {
1455
+ function ro(o, e, t) {
1456
+ return e && Vs(o.prototype, e), t && Vs(o, t), Object.defineProperty(o, "prototype", {
1444
1457
  writable: !1
1445
1458
  }), o;
1446
1459
  }
1447
- function go(o, e) {
1460
+ function oo(o, e) {
1448
1461
  if (typeof e != "function" && e !== null)
1449
1462
  throw new TypeError("Super expression must either be null or a function");
1450
1463
  o.prototype = Object.create(e && e.prototype, {
@@ -1455,38 +1468,38 @@ function go(o, e) {
1455
1468
  }
1456
1469
  }), Object.defineProperty(o, "prototype", {
1457
1470
  writable: !1
1458
- }), e && Ln(o, e);
1471
+ }), e && An(o, e);
1459
1472
  }
1460
- function Ln(o, e) {
1461
- return Ln = Object.setPrototypeOf || function(n, s) {
1473
+ function An(o, e) {
1474
+ return An = Object.setPrototypeOf || function(n, s) {
1462
1475
  return n.__proto__ = s, n;
1463
- }, Ln(o, e);
1476
+ }, An(o, e);
1464
1477
  }
1465
- function mo(o) {
1466
- var e = vo();
1478
+ function lo(o) {
1479
+ var e = ho();
1467
1480
  return function() {
1468
- var n = $t(o), s;
1481
+ var n = Ft(o), s;
1469
1482
  if (e) {
1470
- var a = $t(this).constructor;
1483
+ var a = Ft(this).constructor;
1471
1484
  s = Reflect.construct(n, arguments, a);
1472
1485
  } else
1473
1486
  s = n.apply(this, arguments);
1474
- return fo(this, s);
1487
+ return co(this, s);
1475
1488
  };
1476
1489
  }
1477
- function fo(o, e) {
1478
- if (e && (xn(e) === "object" || typeof e == "function"))
1490
+ function co(o, e) {
1491
+ if (e && (Ln(e) === "object" || typeof e == "function"))
1479
1492
  return e;
1480
1493
  if (e !== void 0)
1481
1494
  throw new TypeError("Derived constructors may only return object or undefined");
1482
- return Ca(o);
1495
+ return Aa(o);
1483
1496
  }
1484
- function Ca(o) {
1497
+ function Aa(o) {
1485
1498
  if (o === void 0)
1486
1499
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1487
1500
  return o;
1488
1501
  }
1489
- function vo() {
1502
+ function ho() {
1490
1503
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1491
1504
  return !1;
1492
1505
  if (typeof Proxy == "function")
@@ -1498,22 +1511,22 @@ function vo() {
1498
1511
  return !1;
1499
1512
  }
1500
1513
  }
1501
- function $t(o) {
1502
- return $t = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
1514
+ function Ft(o) {
1515
+ return Ft = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
1503
1516
  return t.__proto__ || Object.getPrototypeOf(t);
1504
- }, $t(o);
1517
+ }, Ft(o);
1505
1518
  }
1506
- function yo(o) {
1519
+ function uo(o) {
1507
1520
  var e = /* @__PURE__ */ function(t) {
1508
- go(s, t);
1509
- var n = mo(s);
1521
+ oo(s, t);
1522
+ var n = lo(s);
1510
1523
  function s(a) {
1511
1524
  var i, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1512
- if (uo(this, s), i = n.call(this, a, r), i.children = [], !a || a.nodeType !== Node.ELEMENT_NODE)
1525
+ if (io(this, s), i = n.call(this, a, r), i.children = [], !a || a.nodeType !== Node.ELEMENT_NODE)
1513
1526
  throw new TypeError("DOM element should be given to initialize this widget.");
1514
- return i.element = a, i.options = Object.assign(Object.create(i.constructor.options), r), i.constructor.components.set(i.element, Ca(i)), i;
1527
+ return i.element = a, i.options = Object.assign(Object.create(i.constructor.options), r), i.constructor.components.set(i.element, Aa(i)), i;
1515
1528
  }
1516
- return po(s, [{
1529
+ return ro(s, [{
1517
1530
  key: "release",
1518
1531
  value: (
1519
1532
  /**
@@ -1534,44 +1547,44 @@ function yo(o) {
1534
1547
  }(o);
1535
1548
  return e;
1536
1549
  }
1537
- function An(o) {
1550
+ function wn(o) {
1538
1551
  "@babel/helpers - typeof";
1539
- return An = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1552
+ return wn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1540
1553
  return typeof e;
1541
1554
  } : function(e) {
1542
1555
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1543
- }, An(o);
1556
+ }, wn(o);
1544
1557
  }
1545
- function Eo(o, e) {
1558
+ function po(o, e) {
1546
1559
  if (!(o instanceof e))
1547
1560
  throw new TypeError("Cannot call a class as a function");
1548
1561
  }
1549
- function Vs(o, e) {
1562
+ function go(o, e) {
1550
1563
  for (var t = 0; t < e.length; t++) {
1551
1564
  var n = e[t];
1552
1565
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1553
1566
  }
1554
1567
  }
1555
- function bo(o, e, t) {
1556
- return e && Vs(o.prototype, e), t && Vs(o, t), Object.defineProperty(o, "prototype", {
1568
+ function mo(o, e, t) {
1569
+ return e && go(o.prototype, e), Object.defineProperty(o, "prototype", {
1557
1570
  writable: !1
1558
1571
  }), o;
1559
1572
  }
1560
- function Ht() {
1561
- return typeof Reflect < "u" && Reflect.get ? Ht = Reflect.get : Ht = function(e, t, n) {
1562
- var s = So(e, t);
1573
+ function $t() {
1574
+ return typeof Reflect < "u" && Reflect.get ? $t = Reflect.get : $t = function(e, t, n) {
1575
+ var s = fo(e, t);
1563
1576
  if (s) {
1564
1577
  var a = Object.getOwnPropertyDescriptor(s, t);
1565
1578
  return a.get ? a.get.call(arguments.length < 3 ? e : n) : a.value;
1566
1579
  }
1567
- }, Ht.apply(this, arguments);
1580
+ }, $t.apply(this, arguments);
1568
1581
  }
1569
- function So(o, e) {
1582
+ function fo(o, e) {
1570
1583
  for (; !Object.prototype.hasOwnProperty.call(o, e) && (o = pt(o), o !== null); )
1571
1584
  ;
1572
1585
  return o;
1573
1586
  }
1574
- function Oo(o, e) {
1587
+ function vo(o, e) {
1575
1588
  if (typeof e != "function" && e !== null)
1576
1589
  throw new TypeError("Super expression must either be null or a function");
1577
1590
  o.prototype = Object.create(e && e.prototype, {
@@ -1582,15 +1595,15 @@ function Oo(o, e) {
1582
1595
  }
1583
1596
  }), Object.defineProperty(o, "prototype", {
1584
1597
  writable: !1
1585
- }), e && wn(o, e);
1598
+ }), e && Mn(o, e);
1586
1599
  }
1587
- function wn(o, e) {
1588
- return wn = Object.setPrototypeOf || function(n, s) {
1600
+ function Mn(o, e) {
1601
+ return Mn = Object.setPrototypeOf || function(n, s) {
1589
1602
  return n.__proto__ = s, n;
1590
- }, wn(o, e);
1603
+ }, Mn(o, e);
1591
1604
  }
1592
- function To(o) {
1593
- var e = Ao();
1605
+ function yo(o) {
1606
+ var e = So();
1594
1607
  return function() {
1595
1608
  var n = pt(o), s;
1596
1609
  if (e) {
@@ -1598,22 +1611,22 @@ function To(o) {
1598
1611
  s = Reflect.construct(n, arguments, a);
1599
1612
  } else
1600
1613
  s = n.apply(this, arguments);
1601
- return xo(this, s);
1614
+ return Eo(this, s);
1602
1615
  };
1603
1616
  }
1604
- function xo(o, e) {
1605
- if (e && (An(e) === "object" || typeof e == "function"))
1617
+ function Eo(o, e) {
1618
+ if (e && (wn(e) === "object" || typeof e == "function"))
1606
1619
  return e;
1607
1620
  if (e !== void 0)
1608
1621
  throw new TypeError("Derived constructors may only return object or undefined");
1609
- return Lo(o);
1622
+ return bo(o);
1610
1623
  }
1611
- function Lo(o) {
1624
+ function bo(o) {
1612
1625
  if (o === void 0)
1613
1626
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1614
1627
  return o;
1615
1628
  }
1616
- function Ao() {
1629
+ function So() {
1617
1630
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1618
1631
  return !1;
1619
1632
  if (typeof Proxy == "function")
@@ -1630,18 +1643,18 @@ function pt(o) {
1630
1643
  return t.__proto__ || Object.getPrototypeOf(t);
1631
1644
  }, pt(o);
1632
1645
  }
1633
- function wo(o) {
1646
+ function Oo(o) {
1634
1647
  var e = /* @__PURE__ */ function(t) {
1635
- Oo(s, t);
1636
- var n = To(s);
1648
+ vo(s, t);
1649
+ var n = yo(s);
1637
1650
  function s() {
1638
1651
  var a;
1639
- Eo(this, s);
1652
+ po(this, s);
1640
1653
  for (var i = arguments.length, r = new Array(i), l = 0; l < i; l++)
1641
1654
  r[l] = arguments[l];
1642
1655
  return a = n.call.apply(n, [this].concat(r)), a.handles = /* @__PURE__ */ new Set(), a;
1643
1656
  }
1644
- return bo(s, [{
1657
+ return mo(s, [{
1645
1658
  key: "manage",
1646
1659
  value: (
1647
1660
  /**
@@ -1669,13 +1682,13 @@ function wo(o) {
1669
1682
  var i = this;
1670
1683
  return this.handles.forEach(function(r) {
1671
1684
  r.release(), i.handles.delete(r);
1672
- }), Ht(pt(s.prototype), "release", this).call(this);
1685
+ }), $t(pt(s.prototype), "release", this).call(this);
1673
1686
  }
1674
1687
  }]), s;
1675
1688
  }(o);
1676
1689
  return e;
1677
1690
  }
1678
- function Tt(o) {
1691
+ function xt(o) {
1679
1692
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
1680
1693
  t[n - 1] = arguments[n];
1681
1694
  return o.addEventListener.apply(o, t), {
@@ -1684,62 +1697,62 @@ function Tt(o) {
1684
1697
  }
1685
1698
  };
1686
1699
  }
1687
- function Mn(o) {
1700
+ function Cn(o) {
1688
1701
  "@babel/helpers - typeof";
1689
- return Mn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1702
+ return Cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1690
1703
  return typeof e;
1691
1704
  } : function(e) {
1692
1705
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1693
- }, Mn(o);
1706
+ }, Cn(o);
1694
1707
  }
1695
- function Mo(o) {
1696
- return Ro(o) || Io(o) || _o(o) || Co();
1708
+ function To(o) {
1709
+ return wo(o) || Ao(o) || Lo(o) || xo();
1697
1710
  }
1698
- function Co() {
1711
+ function xo() {
1699
1712
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1700
1713
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1701
1714
  }
1702
- function _o(o, e) {
1715
+ function Lo(o, e) {
1703
1716
  if (o) {
1704
1717
  if (typeof o == "string")
1705
- return Cn(o, e);
1718
+ return _n(o, e);
1706
1719
  var t = Object.prototype.toString.call(o).slice(8, -1);
1707
1720
  if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
1708
1721
  return Array.from(o);
1709
1722
  if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1710
- return Cn(o, e);
1723
+ return _n(o, e);
1711
1724
  }
1712
1725
  }
1713
- function Io(o) {
1726
+ function Ao(o) {
1714
1727
  if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
1715
1728
  return Array.from(o);
1716
1729
  }
1717
- function Ro(o) {
1730
+ function wo(o) {
1718
1731
  if (Array.isArray(o))
1719
- return Cn(o);
1732
+ return _n(o);
1720
1733
  }
1721
- function Cn(o, e) {
1734
+ function _n(o, e) {
1722
1735
  (e == null || e > o.length) && (e = o.length);
1723
1736
  for (var t = 0, n = new Array(e); t < e; t++)
1724
1737
  n[t] = o[t];
1725
1738
  return n;
1726
1739
  }
1727
- function ko(o, e) {
1740
+ function Mo(o, e) {
1728
1741
  if (!(o instanceof e))
1729
1742
  throw new TypeError("Cannot call a class as a function");
1730
1743
  }
1731
- function Bs(o, e) {
1744
+ function Co(o, e) {
1732
1745
  for (var t = 0; t < e.length; t++) {
1733
1746
  var n = e[t];
1734
1747
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1735
1748
  }
1736
1749
  }
1737
- function Do(o, e, t) {
1738
- return e && Bs(o.prototype, e), t && Bs(o, t), Object.defineProperty(o, "prototype", {
1750
+ function _o(o, e, t) {
1751
+ return e && Co(o.prototype, e), Object.defineProperty(o, "prototype", {
1739
1752
  writable: !1
1740
1753
  }), o;
1741
1754
  }
1742
- function Po(o, e) {
1755
+ function Io(o, e) {
1743
1756
  if (typeof e != "function" && e !== null)
1744
1757
  throw new TypeError("Super expression must either be null or a function");
1745
1758
  o.prototype = Object.create(e && e.prototype, {
@@ -1750,38 +1763,38 @@ function Po(o, e) {
1750
1763
  }
1751
1764
  }), Object.defineProperty(o, "prototype", {
1752
1765
  writable: !1
1753
- }), e && _n(o, e);
1766
+ }), e && In(o, e);
1754
1767
  }
1755
- function _n(o, e) {
1756
- return _n = Object.setPrototypeOf || function(n, s) {
1768
+ function In(o, e) {
1769
+ return In = Object.setPrototypeOf || function(n, s) {
1757
1770
  return n.__proto__ = s, n;
1758
- }, _n(o, e);
1771
+ }, In(o, e);
1759
1772
  }
1760
- function No(o) {
1761
- var e = Go();
1773
+ function Ro(o) {
1774
+ var e = Po();
1762
1775
  return function() {
1763
- var n = Ut(o), s;
1776
+ var n = zt(o), s;
1764
1777
  if (e) {
1765
- var a = Ut(this).constructor;
1778
+ var a = zt(this).constructor;
1766
1779
  s = Reflect.construct(n, arguments, a);
1767
1780
  } else
1768
1781
  s = n.apply(this, arguments);
1769
- return Vo(this, s);
1782
+ return ko(this, s);
1770
1783
  };
1771
1784
  }
1772
- function Vo(o, e) {
1773
- if (e && (Mn(e) === "object" || typeof e == "function"))
1785
+ function ko(o, e) {
1786
+ if (e && (Cn(e) === "object" || typeof e == "function"))
1774
1787
  return e;
1775
1788
  if (e !== void 0)
1776
1789
  throw new TypeError("Derived constructors may only return object or undefined");
1777
- return Bo(o);
1790
+ return Do(o);
1778
1791
  }
1779
- function Bo(o) {
1792
+ function Do(o) {
1780
1793
  if (o === void 0)
1781
1794
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1782
1795
  return o;
1783
1796
  }
1784
- function Go() {
1797
+ function Po() {
1785
1798
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1786
1799
  return !1;
1787
1800
  if (typeof Proxy == "function")
@@ -1793,19 +1806,19 @@ function Go() {
1793
1806
  return !1;
1794
1807
  }
1795
1808
  }
1796
- function Ut(o) {
1797
- return Ut = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
1809
+ function zt(o) {
1810
+ return zt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
1798
1811
  return t.__proto__ || Object.getPrototypeOf(t);
1799
- }, Ut(o);
1812
+ }, zt(o);
1800
1813
  }
1801
- function Ho(o) {
1814
+ function No(o) {
1802
1815
  var e = /* @__PURE__ */ function(t) {
1803
- Po(s, t);
1804
- var n = No(s);
1816
+ Io(s, t);
1817
+ var n = Ro(s);
1805
1818
  function s() {
1806
- return ko(this, s), n.apply(this, arguments);
1819
+ return Mo(this, s), n.apply(this, arguments);
1807
1820
  }
1808
- return Do(s, [{
1821
+ return _o(s, [{
1809
1822
  key: "_changeState",
1810
1823
  value: (
1811
1824
  /* eslint-disable jsdoc/check-param-names */
@@ -1857,7 +1870,7 @@ function Ho(o) {
1857
1870
  }
1858
1871
  } else {
1859
1872
  var y = [d, p].filter(Boolean);
1860
- this._changeState.apply(this, Mo(y).concat([function() {
1873
+ this._changeState.apply(this, To(y).concat([function() {
1861
1874
  E.dispatchEvent(new CustomEvent(i.options["eventAfter".concat(g)], {
1862
1875
  bubbles: !0,
1863
1876
  cancelable: !0,
@@ -1882,7 +1895,7 @@ function Ho(o) {
1882
1895
  }(o);
1883
1896
  return e;
1884
1897
  }
1885
- function In(o, e) {
1898
+ function Rn(o, e) {
1886
1899
  var t = o.target, n = o.currentTarget;
1887
1900
  if (typeof t.matches == "function") {
1888
1901
  if (t.matches(e))
@@ -1894,7 +1907,7 @@ function In(o, e) {
1894
1907
  }
1895
1908
  }
1896
1909
  }
1897
- function Gs(o) {
1910
+ function Bs(o) {
1898
1911
  if (!o || typeof o == "function")
1899
1912
  return {
1900
1913
  launchingElement: null,
@@ -1910,30 +1923,30 @@ function Gs(o) {
1910
1923
  launchingEvent: t
1911
1924
  };
1912
1925
  }
1913
- function Rn(o) {
1926
+ function kn(o) {
1914
1927
  "@babel/helpers - typeof";
1915
- return Rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1928
+ return kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1916
1929
  return typeof e;
1917
1930
  } : function(e) {
1918
1931
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1919
- }, Rn(o);
1932
+ }, kn(o);
1920
1933
  }
1921
- function $o(o, e) {
1934
+ function Vo(o, e) {
1922
1935
  if (!(o instanceof e))
1923
1936
  throw new TypeError("Cannot call a class as a function");
1924
1937
  }
1925
- function Hs(o, e) {
1938
+ function Bo(o, e) {
1926
1939
  for (var t = 0; t < e.length; t++) {
1927
1940
  var n = e[t];
1928
1941
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1929
1942
  }
1930
1943
  }
1931
- function Uo(o, e, t) {
1932
- return e && Hs(o.prototype, e), t && Hs(o, t), Object.defineProperty(o, "prototype", {
1944
+ function Go(o, e, t) {
1945
+ return e && Bo(o.prototype, e), Object.defineProperty(o, "prototype", {
1933
1946
  writable: !1
1934
1947
  }), o;
1935
1948
  }
1936
- function Fo(o, e) {
1949
+ function Ho(o, e) {
1937
1950
  if (typeof e != "function" && e !== null)
1938
1951
  throw new TypeError("Super expression must either be null or a function");
1939
1952
  o.prototype = Object.create(e && e.prototype, {
@@ -1944,38 +1957,38 @@ function Fo(o, e) {
1944
1957
  }
1945
1958
  }), Object.defineProperty(o, "prototype", {
1946
1959
  writable: !1
1947
- }), e && kn(o, e);
1960
+ }), e && Dn(o, e);
1948
1961
  }
1949
- function kn(o, e) {
1950
- return kn = Object.setPrototypeOf || function(n, s) {
1962
+ function Dn(o, e) {
1963
+ return Dn = Object.setPrototypeOf || function(n, s) {
1951
1964
  return n.__proto__ = s, n;
1952
- }, kn(o, e);
1965
+ }, Dn(o, e);
1953
1966
  }
1954
- function zo(o) {
1955
- var e = Xo();
1967
+ function Uo(o) {
1968
+ var e = zo();
1956
1969
  return function() {
1957
- var n = Ft(o), s;
1970
+ var n = Wt(o), s;
1958
1971
  if (e) {
1959
- var a = Ft(this).constructor;
1972
+ var a = Wt(this).constructor;
1960
1973
  s = Reflect.construct(n, arguments, a);
1961
1974
  } else
1962
1975
  s = n.apply(this, arguments);
1963
- return Wo(this, s);
1976
+ return $o(this, s);
1964
1977
  };
1965
1978
  }
1966
- function Wo(o, e) {
1967
- if (e && (Rn(e) === "object" || typeof e == "function"))
1979
+ function $o(o, e) {
1980
+ if (e && (kn(e) === "object" || typeof e == "function"))
1968
1981
  return e;
1969
1982
  if (e !== void 0)
1970
1983
  throw new TypeError("Derived constructors may only return object or undefined");
1971
- return jo(o);
1984
+ return Fo(o);
1972
1985
  }
1973
- function jo(o) {
1986
+ function Fo(o) {
1974
1987
  if (o === void 0)
1975
1988
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1976
1989
  return o;
1977
1990
  }
1978
- function Xo() {
1991
+ function zo() {
1979
1992
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1980
1993
  return !1;
1981
1994
  if (typeof Proxy == "function")
@@ -1987,19 +2000,19 @@ function Xo() {
1987
2000
  return !1;
1988
2001
  }
1989
2002
  }
1990
- function Ft(o) {
1991
- return Ft = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
2003
+ function Wt(o) {
2004
+ return Wt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
1992
2005
  return t.__proto__ || Object.getPrototypeOf(t);
1993
- }, Ft(o);
2006
+ }, Wt(o);
1994
2007
  }
1995
- function Zo(o) {
2008
+ function Wo(o) {
1996
2009
  var e = /* @__PURE__ */ function(t) {
1997
- Fo(s, t);
1998
- var n = zo(s);
2010
+ Ho(s, t);
2011
+ var n = Uo(s);
1999
2012
  function s() {
2000
- return $o(this, s), n.apply(this, arguments);
2013
+ return Vo(this, s), n.apply(this, arguments);
2001
2014
  }
2002
- return Uo(s, [{
2015
+ return Go(s, [{
2003
2016
  key: "show",
2004
2017
  value: (
2005
2018
  /**
@@ -2010,7 +2023,7 @@ function Zo(o) {
2010
2023
  * @param {EventedState~changeStateCallback} [callback] The callback.
2011
2024
  */
2012
2025
  function(i, r) {
2013
- (!i || typeof i == "function") && (r = i), this.changeState("shown", Gs(i), r);
2026
+ (!i || typeof i == "function") && (r = i), this.changeState("shown", Bs(i), r);
2014
2027
  }
2015
2028
  )
2016
2029
  /**
@@ -2021,20 +2034,19 @@ function Zo(o) {
2021
2034
  }, {
2022
2035
  key: "hide",
2023
2036
  value: function(i, r) {
2024
- (!i || typeof i == "function") && (r = i), this.changeState("hidden", Gs(i), r);
2037
+ (!i || typeof i == "function") && (r = i), this.changeState("hidden", Bs(i), r);
2025
2038
  }
2026
2039
  }]), s;
2027
2040
  }(o);
2028
2041
  return e;
2029
2042
  }
2030
- var Yo = [Ho, Zo];
2031
- const qo = Yo;
2032
- function Ko(o) {
2043
+ var jo = [No, Wo];
2044
+ function Xo(o) {
2033
2045
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
2034
2046
  }
2035
- var _a = function() {
2047
+ var wa = function() {
2036
2048
  };
2037
- process.env.NODE_ENV !== "production" && (_a = function(o, e, t) {
2049
+ process.env.NODE_ENV !== "production" && (wa = function(o, e, t) {
2038
2050
  var n = arguments.length;
2039
2051
  t = new Array(n > 2 ? n - 2 : 0);
2040
2052
  for (var s = 2; s < n; s++)
@@ -2058,32 +2070,32 @@ process.env.NODE_ENV !== "production" && (_a = function(o, e, t) {
2058
2070
  }
2059
2071
  }
2060
2072
  });
2061
- var Jo = _a;
2062
- const Qo = /* @__PURE__ */ Ko(Jo);
2063
- function Dn(o) {
2073
+ var Zo = wa;
2074
+ const Yo = /* @__PURE__ */ Xo(Zo);
2075
+ function Pn(o) {
2064
2076
  "@babel/helpers - typeof";
2065
- return Dn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2077
+ return Pn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2066
2078
  return typeof e;
2067
2079
  } : function(e) {
2068
2080
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2069
- }, Dn(o);
2081
+ }, Pn(o);
2070
2082
  }
2071
- function el(o, e) {
2083
+ function qo(o, e) {
2072
2084
  if (!(o instanceof e))
2073
2085
  throw new TypeError("Cannot call a class as a function");
2074
2086
  }
2075
- function $s(o, e) {
2087
+ function Ko(o, e) {
2076
2088
  for (var t = 0; t < e.length; t++) {
2077
2089
  var n = e[t];
2078
2090
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
2079
2091
  }
2080
2092
  }
2081
- function tl(o, e, t) {
2082
- return e && $s(o.prototype, e), t && $s(o, t), Object.defineProperty(o, "prototype", {
2093
+ function Jo(o, e, t) {
2094
+ return t && Ko(o, t), Object.defineProperty(o, "prototype", {
2083
2095
  writable: !1
2084
2096
  }), o;
2085
2097
  }
2086
- function nl(o, e) {
2098
+ function Qo(o, e) {
2087
2099
  if (typeof e != "function" && e !== null)
2088
2100
  throw new TypeError("Super expression must either be null or a function");
2089
2101
  o.prototype = Object.create(e && e.prototype, {
@@ -2094,38 +2106,38 @@ function nl(o, e) {
2094
2106
  }
2095
2107
  }), Object.defineProperty(o, "prototype", {
2096
2108
  writable: !1
2097
- }), e && Pn(o, e);
2109
+ }), e && Nn(o, e);
2098
2110
  }
2099
- function Pn(o, e) {
2100
- return Pn = Object.setPrototypeOf || function(n, s) {
2111
+ function Nn(o, e) {
2112
+ return Nn = Object.setPrototypeOf || function(n, s) {
2101
2113
  return n.__proto__ = s, n;
2102
- }, Pn(o, e);
2114
+ }, Nn(o, e);
2103
2115
  }
2104
- function sl(o) {
2105
- var e = rl();
2116
+ function el(o) {
2117
+ var e = sl();
2106
2118
  return function() {
2107
- var n = zt(o), s;
2119
+ var n = jt(o), s;
2108
2120
  if (e) {
2109
- var a = zt(this).constructor;
2121
+ var a = jt(this).constructor;
2110
2122
  s = Reflect.construct(n, arguments, a);
2111
2123
  } else
2112
2124
  s = n.apply(this, arguments);
2113
- return al(this, s);
2125
+ return tl(this, s);
2114
2126
  };
2115
2127
  }
2116
- function al(o, e) {
2117
- if (e && (Dn(e) === "object" || typeof e == "function"))
2128
+ function tl(o, e) {
2129
+ if (e && (Pn(e) === "object" || typeof e == "function"))
2118
2130
  return e;
2119
2131
  if (e !== void 0)
2120
2132
  throw new TypeError("Derived constructors may only return object or undefined");
2121
- return il(o);
2133
+ return nl(o);
2122
2134
  }
2123
- function il(o) {
2135
+ function nl(o) {
2124
2136
  if (o === void 0)
2125
2137
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2126
2138
  return o;
2127
2139
  }
2128
- function rl() {
2140
+ function sl() {
2129
2141
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2130
2142
  return !1;
2131
2143
  if (typeof Proxy == "function")
@@ -2137,19 +2149,19 @@ function rl() {
2137
2149
  return !1;
2138
2150
  }
2139
2151
  }
2140
- function zt(o) {
2141
- return zt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
2152
+ function jt(o) {
2153
+ return jt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
2142
2154
  return t.__proto__ || Object.getPrototypeOf(t);
2143
- }, zt(o);
2155
+ }, jt(o);
2144
2156
  }
2145
- function ol(o) {
2157
+ function al(o) {
2146
2158
  var e = /* @__PURE__ */ function(t) {
2147
- nl(s, t);
2148
- var n = sl(s);
2159
+ Qo(s, t);
2160
+ var n = el(s);
2149
2161
  function s() {
2150
- return el(this, s), n.apply(this, arguments);
2162
+ return qo(this, s), n.apply(this, arguments);
2151
2163
  }
2152
- return tl(s, null, [{
2164
+ return Jo(s, null, [{
2153
2165
  key: "init",
2154
2166
  value: (
2155
2167
  /**
@@ -2175,8 +2187,8 @@ function ol(o) {
2175
2187
  this.create(r, l);
2176
2188
  else {
2177
2189
  var d = c.initEventNames.map(function(p) {
2178
- return Tt(r, p, function(h) {
2179
- var u = In(h, "[".concat(c.attribInitTarget, "]"));
2190
+ return xt(r, p, function(h) {
2191
+ var u = Rn(h, "[".concat(c.attribInitTarget, "]"));
2180
2192
  if (u) {
2181
2193
  h.delegateTarget = u;
2182
2194
  var g = u.ownerDocument.querySelectorAll(u.getAttribute(c.attribInitTarget));
@@ -2204,30 +2216,30 @@ function ol(o) {
2204
2216
  }(o);
2205
2217
  return e;
2206
2218
  }
2207
- function Nn(o) {
2219
+ function Vn(o) {
2208
2220
  "@babel/helpers - typeof";
2209
- return Nn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2221
+ return Vn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2210
2222
  return typeof e;
2211
2223
  } : function(e) {
2212
2224
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2213
- }, Nn(o);
2225
+ }, Vn(o);
2214
2226
  }
2215
- function ll(o, e) {
2227
+ function il(o, e) {
2216
2228
  if (!(o instanceof e))
2217
2229
  throw new TypeError("Cannot call a class as a function");
2218
2230
  }
2219
- function Us(o, e) {
2231
+ function Gs(o, e) {
2220
2232
  for (var t = 0; t < e.length; t++) {
2221
2233
  var n = e[t];
2222
2234
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
2223
2235
  }
2224
2236
  }
2225
- function cl(o, e, t) {
2226
- return e && Us(o.prototype, e), t && Us(o, t), Object.defineProperty(o, "prototype", {
2237
+ function rl(o, e, t) {
2238
+ return e && Gs(o.prototype, e), t && Gs(o, t), Object.defineProperty(o, "prototype", {
2227
2239
  writable: !1
2228
2240
  }), o;
2229
2241
  }
2230
- function dl(o, e) {
2242
+ function ol(o, e) {
2231
2243
  if (typeof e != "function" && e !== null)
2232
2244
  throw new TypeError("Super expression must either be null or a function");
2233
2245
  o.prototype = Object.create(e && e.prototype, {
@@ -2238,38 +2250,38 @@ function dl(o, e) {
2238
2250
  }
2239
2251
  }), Object.defineProperty(o, "prototype", {
2240
2252
  writable: !1
2241
- }), e && Vn(o, e);
2253
+ }), e && Bn(o, e);
2242
2254
  }
2243
- function Vn(o, e) {
2244
- return Vn = Object.setPrototypeOf || function(n, s) {
2255
+ function Bn(o, e) {
2256
+ return Bn = Object.setPrototypeOf || function(n, s) {
2245
2257
  return n.__proto__ = s, n;
2246
- }, Vn(o, e);
2258
+ }, Bn(o, e);
2247
2259
  }
2248
- function hl(o) {
2249
- var e = gl();
2260
+ function ll(o) {
2261
+ var e = hl();
2250
2262
  return function() {
2251
- var n = Wt(o), s;
2263
+ var n = Xt(o), s;
2252
2264
  if (e) {
2253
- var a = Wt(this).constructor;
2265
+ var a = Xt(this).constructor;
2254
2266
  s = Reflect.construct(n, arguments, a);
2255
2267
  } else
2256
2268
  s = n.apply(this, arguments);
2257
- return ul(this, s);
2269
+ return cl(this, s);
2258
2270
  };
2259
2271
  }
2260
- function ul(o, e) {
2261
- if (e && (Nn(e) === "object" || typeof e == "function"))
2272
+ function cl(o, e) {
2273
+ if (e && (Vn(e) === "object" || typeof e == "function"))
2262
2274
  return e;
2263
2275
  if (e !== void 0)
2264
2276
  throw new TypeError("Derived constructors may only return object or undefined");
2265
- return pl(o);
2277
+ return dl(o);
2266
2278
  }
2267
- function pl(o) {
2279
+ function dl(o) {
2268
2280
  if (o === void 0)
2269
2281
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2270
2282
  return o;
2271
2283
  }
2272
- function gl() {
2284
+ function hl() {
2273
2285
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2274
2286
  return !1;
2275
2287
  if (typeof Proxy == "function")
@@ -2281,24 +2293,24 @@ function gl() {
2281
2293
  return !1;
2282
2294
  }
2283
2295
  }
2284
- function Wt(o) {
2285
- return Wt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
2296
+ function Xt(o) {
2297
+ return Xt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
2286
2298
  return t.__proto__ || Object.getPrototypeOf(t);
2287
- }, Wt(o);
2299
+ }, Xt(o);
2288
2300
  }
2289
- var ml = /* @__PURE__ */ function(o) {
2290
- dl(t, o);
2291
- var e = hl(t);
2301
+ var ul = /* @__PURE__ */ function(o) {
2302
+ ol(t, o);
2303
+ var e = ll(t);
2292
2304
  function t(n, s) {
2293
2305
  var a;
2294
- return ll(this, t), a = e.call(this, n, s), a._handleFocusinListener = void 0, a._handleKeydownListener = void 0, a._handleFocusin = function(i) {
2306
+ return il(this, t), a = e.call(this, n, s), a._handleFocusinListener = void 0, a._handleKeydownListener = void 0, a._handleFocusin = function(i) {
2295
2307
  var r = a.element.querySelector(a.options.selectorModalContainer) || a.element;
2296
2308
  a.element.classList.contains(a.options.classVisible) && !r.contains(i.target) && a.options.selectorsFloatingMenus.every(function(l) {
2297
- return !In(i, l);
2298
- }) && a.element.querySelector(fn.selectorTabbable).focus();
2309
+ return !Rn(i, l);
2310
+ }) && a.element.querySelector(vn.selectorTabbable).focus();
2299
2311
  }, a._hookCloseActions(), a;
2300
2312
  }
2301
- return cl(t, [{
2313
+ return rl(t, [{
2302
2314
  key: "createdByLauncher",
2303
2315
  value: (
2304
2316
  /**
@@ -2332,25 +2344,25 @@ var ml = /* @__PURE__ */ function(o) {
2332
2344
  var r = this, l, c = function() {
2333
2345
  if (l && (l = r.unmanage(l).release()), s === "shown" && r.element.offsetWidth > 0 && r.element.offsetHeight > 0) {
2334
2346
  r.previouslyFocusedNode = r.element.ownerDocument.activeElement;
2335
- var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(fn.selectorTabbable);
2336
- u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Qo(u, "Modals need to contain a focusable element by either using " + "`".concat(r.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
2347
+ var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(vn.selectorTabbable);
2348
+ u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Yo(u, "Modals need to contain a focusable element by either using " + "`".concat(r.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
2337
2349
  }
2338
2350
  i();
2339
2351
  };
2340
2352
  if (this._handleFocusinListener && (this._handleFocusinListener = this.unmanage(this._handleFocusinListener).release()), s === "shown") {
2341
2353
  var d = "onfocusin" in this.element.ownerDocument.defaultView, p = d ? "focusin" : "focus";
2342
- this._handleFocusinListener = this.manage(Tt(this.element.ownerDocument, p, this._handleFocusin, !d));
2354
+ this._handleFocusinListener = this.manage(xt(this.element.ownerDocument, p, this._handleFocusin, !d));
2343
2355
  }
2344
- s === "hidden" ? (this.element.classList.toggle(this.options.classVisible, !1), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !1), (this.options.selectorFocusOnClose || this.previouslyFocusedNode) && (this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose) || this.previouslyFocusedNode).focus()) : s === "shown" && (this.element.classList.toggle(this.options.classVisible, !0), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !0)), l = this.manage(Tt(this.element, "transitionend", c));
2356
+ s === "hidden" ? (this.element.classList.toggle(this.options.classVisible, !1), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !1), (this.options.selectorFocusOnClose || this.previouslyFocusedNode) && (this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose) || this.previouslyFocusedNode).focus()) : s === "shown" && (this.element.classList.toggle(this.options.classVisible, !0), this.element.ownerDocument.body.classList.toggle(this.options.classBody, !0)), l = this.manage(xt(this.element, "transitionend", c));
2345
2357
  }
2346
2358
  }, {
2347
2359
  key: "_hookCloseActions",
2348
2360
  value: function() {
2349
2361
  var s = this;
2350
- this.manage(Tt(this.element, "click", function(a) {
2351
- var i = In(a, s.options.selectorModalClose);
2362
+ this.manage(xt(this.element, "click", function(a) {
2363
+ var i = Rn(a, s.options.selectorModalClose);
2352
2364
  i && (a.delegateTarget = i), (i || a.target === s.element) && s.hide(a);
2353
- })), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(Tt(this.element.ownerDocument.body, "keydown", function(a) {
2365
+ })), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(xt(this.element.ownerDocument.body, "keydown", function(a) {
2354
2366
  a.which === 27 && s.shouldStateBeChanged("hidden") && (a.stopPropagation(), s.hide(a));
2355
2367
  }));
2356
2368
  }
@@ -2395,7 +2407,7 @@ var ml = /* @__PURE__ */ function(o) {
2395
2407
  * without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
2396
2408
  */
2397
2409
  function() {
2398
- var s = fn.prefix;
2410
+ var s = vn.prefix;
2399
2411
  return {
2400
2412
  selectorInit: "[data-modal]",
2401
2413
  selectorModalClose: "[data-modal-close]",
@@ -2414,12 +2426,12 @@ var ml = /* @__PURE__ */ function(o) {
2414
2426
  }
2415
2427
  )
2416
2428
  }]), t.components = /* @__PURE__ */ new WeakMap(), t;
2417
- }(ho(yo, ol, qo, wo));
2418
- class vh extends Y {
2429
+ }(ao(uo, al, jo, Oo));
2430
+ class gh extends Y {
2419
2431
  constructor(e, t, n) {
2420
2432
  super(e, t, n), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
2421
2433
  const s = this.services.domUtils.getChartID();
2422
- this.modal.attr("data-modal", !0).attr("class", "cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", `${s}__modal-title`).attr("aria-describedby", `${s}__modal-description`).attr("tabindex", -1), this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), ml.create(this.modal.node()).show(), document.addEventListener("modal-hidden", this.handleHideModal);
2434
+ this.modal.attr("data-modal", !0).attr("class", "cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", `${s}__modal-title`).attr("aria-describedby", `${s}__modal-description`).attr("tabindex", -1), this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), ul.create(this.modal.node()).show(), document.addEventListener("modal-hidden", this.handleHideModal);
2423
2435
  }, this.handleHideModal = () => {
2424
2436
  this.modal.attr("role", null).attr("aria-modal", null).attr("aria-labelledby", null).attr("aria-describedby", null).attr("tabindex", null), document.removeEventListener("modal-hidden", this.handleHideModal);
2425
2437
  }, this.init();
@@ -2438,7 +2450,7 @@ class vh extends Y {
2438
2450
 
2439
2451
  <p class="cds--modal-header__label cds--type-delta" id="modal-title">${n}</p>
2440
2452
 
2441
- <p class="cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${Pe(
2453
+ <p class="cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${Ve(
2442
2454
  t.title
2443
2455
  )}</p>
2444
2456
 
@@ -2455,7 +2467,7 @@ class vh extends Y {
2455
2467
  <tr>
2456
2468
  ${ne(i, 0).map(
2457
2469
  (r) => `<th scope="col">
2458
- <div class="cds--table-header-label">${Pe(r)}</div>
2470
+ <div class="cds--table-header-label">${Ve(r)}</div>
2459
2471
  </th>`
2460
2472
  ).join("")}
2461
2473
  </tr>
@@ -2464,7 +2476,7 @@ class vh extends Y {
2464
2476
  <tbody>${i.slice(1).map(
2465
2477
  (r) => `
2466
2478
  <tr>
2467
- ${r.map((l) => `<td>${Pe(l)}</td>`).join("")}
2479
+ ${r.map((l) => `<td>${Ve(l)}</td>`).join("")}
2468
2480
  </tr>`
2469
2481
  ).join("")}
2470
2482
  </tbody>
@@ -2491,7 +2503,7 @@ class vh extends Y {
2491
2503
  this.removeEventListeners(), this.isEventListenerAdded = !1;
2492
2504
  }
2493
2505
  }
2494
- class fl extends Y {
2506
+ class pl extends Y {
2495
2507
  constructor() {
2496
2508
  super(...arguments), this.type = "title", this.renderType = j.HTML;
2497
2509
  }
@@ -2500,7 +2512,7 @@ class fl extends Y {
2500
2512
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2501
2513
  render(e = !1) {
2502
2514
  const t = this.getComponentContainer(), n = v(this.getOptions(), "title"), s = t.selectAll("p.title").data([n]);
2503
- if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) => Pe(a)), s.node() && s.node().offsetWidth < s.node().scrollWidth) {
2515
+ if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) => Ve(a)), s.node() && s.node().offsetWidth < s.node().scrollWidth) {
2504
2516
  const a = this;
2505
2517
  s.on("mouseover", function(i) {
2506
2518
  a.services.events.dispatchEvent(f.Tooltip.SHOW, {
@@ -2568,7 +2580,7 @@ class fl extends Y {
2568
2580
  return e.getSubStringLength(0, a) > s ? this.getSubstringIndex(e, t, a, s) : e.getSubStringLength(0, a) < s ? e.getSubStringLength(0, a + 1) > s ? a : this.getSubstringIndex(e, a, n, s) : a;
2569
2581
  }
2570
2582
  }
2571
- class vl extends Y {
2583
+ class gl extends Y {
2572
2584
  constructor() {
2573
2585
  super(...arguments), this.type = "legend", this.renderType = j.HTML;
2574
2586
  }
@@ -2666,9 +2678,9 @@ class vl extends Y {
2666
2678
  i.attr("id", function() {
2667
2679
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
2668
2680
  }), n !== dt.NONE ? i.html(function(r) {
2669
- const l = Pe(r.name);
2670
- return l.length > s && l.length !== a ? xt(l, n, a) : l;
2671
- }) : i.html((r) => Pe(r.name));
2681
+ const l = Ve(r.name);
2682
+ return l.length > s && l.length !== a ? Lt(l, n, a) : l;
2683
+ }) : i.html((r) => Ve(r.name));
2672
2684
  }
2673
2685
  addEventListeners() {
2674
2686
  const e = this, t = this.getComponentContainer(), n = this.getOptions(), s = v(n, "legend"), a = v(s, "truncation");
@@ -2717,7 +2729,7 @@ class vl extends Y {
2717
2729
  });
2718
2730
  }
2719
2731
  }
2720
- class yl extends Y {
2732
+ class ml extends Y {
2721
2733
  constructor(e, t, n) {
2722
2734
  super(e, t, n), this.type = "chart-clip", this.renderType = j.SVG, this.chartClipId = "chart-clip-id-" + Math.floor(Math.random() * 99999999999), this.init();
2723
2735
  }
@@ -2745,7 +2757,7 @@ class yl extends Y {
2745
2757
  i - a > 0 && c.attr("x", a).attr("y", l).attr("width", i - a).attr("height", r - l), this.chartClipPath.merge(c).lower();
2746
2758
  }
2747
2759
  }
2748
- class yh extends yl {
2760
+ class mh extends ml {
2749
2761
  constructor() {
2750
2762
  super(...arguments), this.type = "canvas-chart-clip", this.chartClipId = "canvas-chart-clip-id-" + Math.floor(Math.random() * 99999999999);
2751
2763
  }
@@ -2765,7 +2777,7 @@ var rt, de;
2765
2777
  (function(o) {
2766
2778
  o.LEFT = "left", o.RIGHT = "right", o.TOP = "top", o.BOTTOM = "bottom";
2767
2779
  })(de || (de = {}));
2768
- var Fs = (rt = {}, rt[de.LEFT] = function(o, e, t) {
2780
+ var Hs = (rt = {}, rt[de.LEFT] = function(o, e, t) {
2769
2781
  return {
2770
2782
  top: o.top - Math.round(e.offsetHeight / 2) + Math.round(t.height / 2),
2771
2783
  left: Math.round(o.left - e.offsetWidth)
@@ -2785,16 +2797,16 @@ var Fs = (rt = {}, rt[de.LEFT] = function(o, e, t) {
2785
2797
  top: Math.round(o.top + t.height),
2786
2798
  left: o.left - Math.round(e.offsetWidth / 2) + Math.round(t.width / 2)
2787
2799
  };
2788
- }, rt), zs = typeof window < "u" ? window : {
2800
+ }, rt), Us = typeof window < "u" ? window : {
2789
2801
  innerHeight: 0,
2790
2802
  scrollY: 0,
2791
2803
  innerWidth: 0,
2792
2804
  scrollX: 0
2793
- }, qt = (
2805
+ }, Jt = (
2794
2806
  /** @class */
2795
2807
  function() {
2796
2808
  function o(e) {
2797
- e === void 0 && (e = {}), this.positions = Fs, this.positions = Object.assign({}, Fs, e);
2809
+ e === void 0 && (e = {}), this.positions = Hs, this.positions = Object.assign({}, Hs, e);
2798
2810
  }
2799
2811
  return o.prototype.getRelativeOffset = function(e) {
2800
2812
  for (var t = {
@@ -2870,32 +2882,32 @@ var Fs = (rt = {}, rt[de.LEFT] = function(o, e, t) {
2870
2882
  // we go with window here, because that's going to be the simple/common case
2871
2883
  top: 0,
2872
2884
  left: 0,
2873
- height: zs.innerHeight,
2874
- width: zs.innerWidth
2885
+ height: Us.innerHeight,
2886
+ width: Us.innerWidth
2875
2887
  };
2876
2888
  }, o.prototype.calculatePosition = function(e, t, n, s) {
2877
2889
  return this.positions[s] ? this.positions[s](e, n, t) : (console.error("No function found for placement, defaulting to 0,0"), { left: 0, top: 0 });
2878
2890
  }, o;
2879
2891
  }()
2880
2892
  );
2881
- new qt();
2882
- class El extends Y {
2893
+ new Jt();
2894
+ class fl extends Y {
2883
2895
  constructor(e, t, n) {
2884
- super(e, t, n), this.type = "tooltip", this.renderType = j.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new qt(), this.handleShowTooltip = (s) => {
2896
+ super(e, t, n), this.type = "tooltip", this.renderType = j.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Jt(), this.handleShowTooltip = (s) => {
2885
2897
  const a = s.detail.data || s.detail.items;
2886
2898
  let i;
2887
2899
  const r = this.formatItems(this.getItems(s));
2888
- s.detail.content ? i = `<div class="title-tooltip"><p>${Vt(s.detail.content)}</p></div>` : i = Vt(this.getTooltipHTML(r));
2900
+ s.detail.content ? i = `<div class="title-tooltip"><p>${Gt(s.detail.content)}</p></div>` : i = Gt(this.getTooltipHTML(r));
2889
2901
  const l = S.appendOrSelect(this.tooltip, "div.content-box");
2890
2902
  if (v(this.getOptions(), "tooltip", "customHTML"))
2891
2903
  if (s.detail.content) {
2892
- const c = `<div class="title-tooltip"><p>${Vt(
2904
+ const c = `<div class="title-tooltip"><p>${Gt(
2893
2905
  s.detail.content
2894
2906
  )}</p></div>`;
2895
2907
  l.html(c);
2896
2908
  } else
2897
2909
  l.html(
2898
- `<div class="title-tooltip"><p>${Vt(
2910
+ `<div class="title-tooltip"><p>${Gt(
2899
2911
  this.model.getOptions().tooltip.customHTML(a, i)
2900
2912
  )}</p></div>`
2901
2913
  );
@@ -2924,7 +2936,7 @@ class El extends Y {
2924
2936
  const t = this.getOptions(), n = v(t, "tooltip", "truncation", "type"), s = v(t, "tooltip", "truncation", "threshold"), a = v(t, "tooltip", "truncation", "numCharacter");
2925
2937
  return n !== dt.NONE ? e.map((i) => {
2926
2938
  const r = i.labelIcon ? 12 : 0;
2927
- return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > s && (i.label = xt(i.label, n, a)), i.value && i.value.length > s && (i.value = xt(i.value, n, a)), i;
2939
+ return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > s && (i.label = Lt(i.label, n, a)), i.value && i.value.length > s && (i.value = Lt(i.value, n, a)), i;
2928
2940
  }) : e.map((i) => (i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i));
2929
2941
  }
2930
2942
  getTooltipHTML(e) {
@@ -2981,7 +2993,7 @@ class El extends Y {
2981
2993
  }
2982
2994
  positionTooltip(e) {
2983
2995
  const t = this.services.domUtils.getHolder(), n = t.offsetWidth, s = t.offsetHeight, a = this.tooltip.node(), i = this.getOptions(), r = v(i, "zoomBar", "top", "enabled"), l = !!v(e, "detail", "noWrap"), c = Array.isArray(v(e, "detail", "placements")), d = c ? v(e, "detail", "placements") : [de.RIGHT, de.LEFT, de.TOP, de.BOTTOM];
2984
- let p, { horizontalOffset: h, defaultOffset: u } = Ya;
2996
+ let p, { horizontalOffset: h, defaultOffset: u } = za;
2985
2997
  if (this.tooltip.select("div.title-tooltip").classed("title-tooltip-nowrap", l), c) {
2986
2998
  const E = v(e, "detail", "event", "target"), O = this.services.domUtils.getElementOffset(E, !0);
2987
2999
  p = this.positionService.findBestPlacementAt(
@@ -3001,16 +3013,12 @@ class El extends Y {
3001
3013
  p,
3002
3014
  () => this.services.domUtils.getElementOffset(E)
3003
3015
  );
3004
- x = this.addOffsetByPlacement(
3005
- x,
3006
- p,
3007
- u
3008
- ), this.positionService.setElement(a, x);
3016
+ x = this.addOffsetByPlacement(x, p, u), this.positionService.setElement(a, x);
3009
3017
  return;
3010
3018
  }
3011
3019
  let g = v(e, "detail", "mousePosition");
3012
3020
  if (!g)
3013
- g = Zt(v(e, "detail", "event"), t);
3021
+ g = qt(v(e, "detail", "event"), t);
3014
3022
  else {
3015
3023
  const E = v(i, "zoomBar", "top", "type"), O = we.height[E];
3016
3024
  r && (g[1] += O + we.spacerHeight);
@@ -3062,7 +3070,7 @@ const ht = class ht extends Y {
3062
3070
  }), { cartesianScales: c } = this.services, d = c.getMainXScaleType(), p = c.getMainXScale(), [h] = p.range();
3063
3071
  n.attr("transform", `translate(${h},0)`);
3064
3072
  const u = S.appendOrSelect(n, this.frontSelectionSelector);
3065
- if (p && d === pe.TIME) {
3073
+ if (p && d === ge.TIME) {
3066
3074
  let g = this.model.get("zoomDomain");
3067
3075
  g === void 0 && (g = this.services.zoom.getDefaultZoomBarDomain(), g && this.model.set({ zoomDomain: g }, { animate: !1 }));
3068
3076
  const m = (A) => {
@@ -3076,7 +3084,7 @@ const ht = class ht extends Y {
3076
3084
  const L = A.selection;
3077
3085
  L === null || L[0] === L[1] || (u.attr("x", parseFloat(i.attr("x")) + parseFloat(s.attr("x"))).attr("y", i.attr("y")).attr("width", i.attr("width")).attr("height", i.attr("height")).style("cursor", "pointer").style("display", null), m(L));
3078
3086
  }, O = (A, L) => {
3079
- const I = ni().range([0, r]).domain(g);
3087
+ const I = Ka().range([0, r]).domain(g);
3080
3088
  let P = [I.invert(A), I.invert(L)];
3081
3089
  P[0].valueOf() === P[1].valueOf() && (P = this.services.zoom.getDefaultZoomBarDomain()), (g[0].valueOf() !== P[0].valueOf() || g[1].valueOf() !== P[1].valueOf()) && this.services.zoom.handleDomainChange(P);
3082
3090
  };
@@ -3085,14 +3093,14 @@ const ht = class ht extends Y {
3085
3093
  const L = A.selection;
3086
3094
  L !== null && (O(L[0], L[1]), a.call(x.move, null), u.style("display", "none"));
3087
3095
  };
3088
- l != 0 && r != 0 && (x = na().extent([
3096
+ l != 0 && r != 0 && (x = Qs().extent([
3089
3097
  [0, 0],
3090
3098
  [r - 1, l]
3091
3099
  ]).on("start brush end", E).on("end.brushed", y), a.call(x));
3092
3100
  const w = this.services.zoom.getZoomRatio();
3093
3101
  s.on("click", function(A) {
3094
3102
  if (A.shiftKey) {
3095
- const L = this.services.domUtils.getHolder(), I = Zt(a.node(), L)[0];
3103
+ const L = this.services.domUtils.getHolder(), I = qt(a.node(), L)[0];
3096
3104
  let P = I - r * w / 2;
3097
3105
  P < 0 && (P = 0);
3098
3106
  let W = I + r * w / 2;
@@ -3103,10 +3111,10 @@ const ht = class ht extends Y {
3103
3111
  }
3104
3112
  };
3105
3113
  ht.DASH_LENGTH = 4;
3106
- let Ws = ht;
3107
- class Eh extends Y {
3114
+ let $s = ht;
3115
+ class fh extends Y {
3108
3116
  constructor() {
3109
- super(...arguments), this.type = "zoom-bar", this.renderType = j.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = na(), this.highlightStrokeWidth = 1;
3117
+ super(...arguments), this.type = "zoom-bar", this.renderType = j.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = Qs(), this.highlightStrokeWidth = 1;
3110
3118
  }
3111
3119
  init() {
3112
3120
  this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
@@ -3137,9 +3145,9 @@ class Eh extends Y {
3137
3145
  return;
3138
3146
  }
3139
3147
  const { cartesianScales: h } = this.services, u = h.getMainXScale(), g = h.getMainYScale(), m = h.getMainXScaleType();
3140
- if (u && m === pe.TIME) {
3148
+ if (u && m === ge.TIME) {
3141
3149
  let E = this.services.zoom.getZoomBarData();
3142
- if (ta(E) || E.length === 1)
3150
+ if (Js(E) || E.length === 1)
3143
3151
  return;
3144
3152
  this.xScale = u.copy(), this.yScale = g.copy();
3145
3153
  const O = this.services.zoom.getDefaultZoomBarDomain(E);
@@ -3163,7 +3171,7 @@ class Eh extends Y {
3163
3171
  zoomDomain: ut([], O)
3164
3172
  },
3165
3173
  { skipUpdate: !0 }
3166
- ), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Yt(E, (L) => L.value));
3174
+ ), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Kt(E, (L) => L.value));
3167
3175
  const w = this.model.get("zoomDomain");
3168
3176
  if (a === at.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", E, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", E, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
3169
3177
  const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, P = i.color, W = i.labelMapsTo;
@@ -3254,7 +3262,7 @@ class Eh extends Y {
3254
3262
  S.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", e[0]).attr("y", n / 2 - 1).attr("width", e[1] - e[0]).attr("height", 2);
3255
3263
  }
3256
3264
  renderZoomBarArea(e, t, n, s) {
3257
- const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (O, x, y) => (w) => a.getValueFromScale(O, x, y, w), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = v(this.getOptions(), "zoomBar", B.TOP, "type"), g = we.height[u], m = Bn().x((O) => p(O)).y0(g).y1((O) => g - h(O)), E = S.appendOrSelect(e, t).datum(n).attr("d", m);
3265
+ const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (O, x, y) => (w) => a.getValueFromScale(O, x, y, w), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = v(this.getOptions(), "zoomBar", B.TOP, "type"), g = we.height[u], m = Gn().x((O) => p(O)).y0(g).y1((O) => g - h(O)), E = S.appendOrSelect(e, t).datum(n).attr("d", m);
3258
3266
  s && E.attr("clip-path", `url(#${s})`);
3259
3267
  }
3260
3268
  updateClipPath(e, t, n, s, a, i) {
@@ -3265,7 +3273,7 @@ class Eh extends Y {
3265
3273
  compensateDataForDefaultDomain(e, t) {
3266
3274
  if (!e || e.length < 2)
3267
3275
  return;
3268
- const n = qa(e), s = this.services.cartesianScales.getDomainIdentifier(), a = this.services.cartesianScales.getRangeIdentifier();
3276
+ const n = Wa(e), s = this.services.cartesianScales.getDomainIdentifier(), a = this.services.cartesianScales.getRangeIdentifier();
3269
3277
  if (Number(t[0]) < Number(n[0][s])) {
3270
3278
  const i = {};
3271
3279
  i[s] = t[0], i[a] = 0, n.unshift(i);
@@ -3282,7 +3290,7 @@ class Eh extends Y {
3282
3290
  "zoomBar",
3283
3291
  B.TOP,
3284
3292
  "type"
3285
- ), i = we.height[a], r = Gn()([
3293
+ ), i = we.height[a], r = Hn()([
3286
3294
  [t, i],
3287
3295
  [n, i]
3288
3296
  ]);
@@ -3298,9 +3306,9 @@ class Eh extends Y {
3298
3306
  this.brush.on("start brush end", null), this.services.events.removeEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
3299
3307
  }
3300
3308
  }
3301
- class bh extends Y {
3309
+ class vh extends Y {
3302
3310
  constructor(e, t) {
3303
- super(e, t), this.type = "threshold", this.renderType = j.SVG, this.positionService = new qt();
3311
+ super(e, t), this.type = "threshold", this.renderType = j.SVG, this.positionService = new Jt();
3304
3312
  }
3305
3313
  render(e = !1) {
3306
3314
  const t = v(this.getOptions(), "axes"), n = [];
@@ -3332,7 +3340,7 @@ class bh extends Y {
3332
3340
  ), g = p.services.cartesianScales.getScaleTypeByPosition(h);
3333
3341
  let m = null, E = null;
3334
3342
  h === B.LEFT || h === B.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
3335
- const O = g === pe.LABELS, [x, y] = m.range(), [w, A] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), P = (F) => L.getDomainValue(F), W = (F) => L.getRangeValue(F), [k, C] = Ue(
3343
+ const O = g === ge.LABELS, [x, y] = m.range(), [w, A] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), P = (F) => L.getDomainValue(F), W = (F) => L.getRangeValue(F), [k, C] = Fe(
3336
3344
  P,
3337
3345
  W,
3338
3346
  I
@@ -3370,12 +3378,12 @@ class bh extends Y {
3370
3378
  }
3371
3379
  getFormattedValue(e) {
3372
3380
  const { value: t, axisPosition: n } = e, s = this.getOptions(), a = this.services.cartesianScales.getScaleTypeByPosition(n), { code: i, number: r } = v(s, "locale");
3373
- if (a === pe.TIME) {
3374
- const l = [B.LEFT, B.RIGHT].includes(n), c = this.services.cartesianScales.getMainXScale(), d = this.services.cartesianScales.getMainYScale(), p = l ? d : c, h = v(s, "timeScale"), u = vn(
3381
+ if (a === ge.TIME) {
3382
+ const l = [B.LEFT, B.RIGHT].includes(n), c = this.services.cartesianScales.getMainXScale(), d = this.services.cartesianScales.getMainYScale(), p = l ? d : c, h = v(s, "timeScale"), u = yn(
3375
3383
  p.ticks(),
3376
3384
  v(h, "timeInterval")
3377
3385
  );
3378
- return yn(t, 0, p.ticks(), u, h, s.locale);
3386
+ return En(t, 0, p.ticks(), u, h, s.locale);
3379
3387
  }
3380
3388
  return r(t, i);
3381
3389
  }
@@ -3387,8 +3395,8 @@ class bh extends Y {
3387
3395
  ).classed("hidden", !0);
3388
3396
  }
3389
3397
  setThresholdLabelPosition({ event: e, datum: t }) {
3390
- const n = this.services.domUtils.getHolder(), s = Zt(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
3391
- this.label.html(Pe(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
3398
+ const n = this.services.domUtils.getHolder(), s = qt(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
3399
+ this.label.html(Ve(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
3392
3400
  const i = this.label.node(), r = this.positionService.findBestPlacementAt(
3393
3401
  {
3394
3402
  left: s[0],
@@ -3436,9 +3444,9 @@ class bh extends Y {
3436
3444
  });
3437
3445
  }
3438
3446
  }
3439
- class Sh extends Y {
3447
+ class yh extends Y {
3440
3448
  constructor(e, t) {
3441
- super(e, t), this.type = "highlight", this.renderType = j.SVG, this.positionService = new qt(), this.highlightStrokeWidth = 1;
3449
+ super(e, t), this.type = "highlight", this.renderType = j.SVG, this.positionService = new Jt(), this.highlightStrokeWidth = 1;
3442
3450
  }
3443
3451
  render(e = !1) {
3444
3452
  const t = v(this.getOptions(), "axes"), n = [];
@@ -3467,7 +3475,7 @@ class Sh extends Y {
3467
3475
  c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
3468
3476
  const p = this;
3469
3477
  r.each(function({ axisPosition: h }) {
3470
- const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, x] = g.range(), { cartesianScales: y } = p.services, w = y.getOrientation(), A = (k) => y.getDomainValue(k), L = (k) => y.getRangeValue(k), [I, P] = Ue(
3478
+ const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, x] = g.range(), { cartesianScales: y } = p.services, w = y.getOrientation(), A = (k) => y.getDomainValue(k), L = (k) => y.getRangeValue(k), [I, P] = Fe(
3471
3479
  A,
3472
3480
  L,
3473
3481
  w
@@ -3494,7 +3502,7 @@ class Sh extends Y {
3494
3502
  });
3495
3503
  }
3496
3504
  }
3497
- class Oh extends El {
3505
+ class Eh extends fl {
3498
3506
  getItems(e) {
3499
3507
  if (e.detail.items)
3500
3508
  return e.detail.items;
@@ -3581,7 +3589,7 @@ class Oh extends El {
3581
3589
  return p;
3582
3590
  }
3583
3591
  }
3584
- class Th extends Y {
3592
+ class bh extends Y {
3585
3593
  constructor() {
3586
3594
  super(...arguments), this.type = "alluvial", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
3587
3595
  }
@@ -3605,9 +3613,9 @@ class Th extends Y {
3605
3613
  let l = ke.minNodePadding;
3606
3614
  a.alluvial.nodePadding > ke.minNodePadding && (l = a.alluvial.nodePadding);
3607
3615
  const c = v(a, "alluvial", "nodeAlignment");
3608
- let d = Ri;
3609
- c === Ce.LEFT ? d = ki : c === Ce.RIGHT && (d = Di);
3610
- const p = _i().nodeId((y) => y.name).nodeWidth(ke.nodeWidth).nodePadding(l).nodeAlign(d).extent([
3616
+ let d = wi;
3617
+ c === Ce.LEFT ? d = Mi : c === Ce.RIGHT && (d = Ci);
3618
+ const p = Li().nodeId((y) => y.name).nodeWidth(ke.nodeWidth).nodePadding(l).nodeAlign(d).extent([
3611
3619
  [2, 30],
3612
3620
  [n - 2, s]
3613
3621
  ]);
@@ -3640,7 +3648,7 @@ class Th extends Y {
3640
3648
  (w) => w.append("stop").attr("offset", "100%").attr("stop-color", (A) => y[A.target.name])
3641
3649
  ), g.exit().remove();
3642
3650
  }
3643
- g.enter().append("path").classed("link", !0).attr("d", Ii()).attr(
3651
+ g.enter().append("path").classed("link", !0).attr("d", Ai()).attr(
3644
3652
  "id",
3645
3653
  (y) => this.services.domUtils.generateElementIDString(`alluvial-line-${y.index}`)
3646
3654
  ).attr("class", (y) => a.alluvial.monochrome ? this.model.getColorClassName({
@@ -3689,7 +3697,7 @@ class Th extends Y {
3689
3697
  }), this.addLineEventListener(), this.addNodeEventListener();
3690
3698
  }
3691
3699
  addLineEventListener() {
3692
- const e = this.getOptions(), t = this, { number: n, code: s } = v(this.getOptions(), "locale"), a = bn((i, r = "mouseover") => {
3700
+ const e = this.getOptions(), t = this, { number: n, code: s } = v(this.getOptions(), "locale"), a = Sn((i, r = "mouseover") => {
3693
3701
  const l = t.parent.selectAll("path.link").transition().call(
3694
3702
  (c) => t.services.transitions.setupTransition({
3695
3703
  transition: c,
@@ -3747,7 +3755,7 @@ class Th extends Y {
3747
3755
  });
3748
3756
  }
3749
3757
  addNodeEventListener() {
3750
- const e = this, t = bn((n = [], s = "mouseover") => {
3758
+ const e = this, t = Sn((n = [], s = "mouseover") => {
3751
3759
  if (s === "mouseout" || n.length === 0) {
3752
3760
  e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", ke.opacity.default);
3753
3761
  return;
@@ -3764,11 +3772,11 @@ class Th extends Y {
3764
3772
  e.parent.selectAll(".node-group").on("mouseover", function(n, s) {
3765
3773
  const a = T(this), i = [];
3766
3774
  if (e.traverse({ link: "sourceLinks", node: "target" }, s, i), e.traverse({ link: "targetLinks", node: "source" }, s, i), i.length) {
3767
- const r = Ot(a.attr("transform"));
3775
+ const r = Tt(a.attr("transform"));
3768
3776
  if (a.attr("transform", `translate(${r.x - 2}, ${r.y})`), a.classed("node-hovered", !0).selectAll("rect.node").attr("width", 8), s.x0 - 2 === 0) {
3769
3777
  const c = e.services.domUtils.generateElementIDString(
3770
3778
  `alluvial-node-title-${s.index}`
3771
- ), d = e.parent.select(`g#${c}`), p = Ot(d.attr("transform"));
3779
+ ), d = e.parent.select(`g#${c}`), p = Tt(d.attr("transform"));
3772
3780
  d.attr("transform", `translate(${p.x + 4},${p.y})`);
3773
3781
  }
3774
3782
  const l = e.services.domUtils.generateElementIDString(
@@ -3795,11 +3803,11 @@ class Th extends Y {
3795
3803
  datum: s
3796
3804
  });
3797
3805
  }).on("mouseout", function(n, s) {
3798
- const a = T(this), i = Ot(a.attr("transform"));
3806
+ const a = T(this), i = Tt(a.attr("transform"));
3799
3807
  if (a.classed("node-hovered", !1).attr("transform", `translate(${i.x + 2}, ${i.y})`).select("rect.node").attr("width", ke.nodeWidth), s.x0 - 2 === 0) {
3800
3808
  const l = e.services.domUtils.generateElementIDString(
3801
3809
  `alluvial-node-title-${s.index}`
3802
- ), c = e.parent.select(`g#${l}`), d = Ot(c.attr("transform"));
3810
+ ), c = e.parent.select(`g#${l}`), d = Tt(c.attr("transform"));
3803
3811
  c.attr("transform", `translate(${d.x - 4},${d.y})`);
3804
3812
  }
3805
3813
  const r = e.services.domUtils.generateElementIDString(
@@ -3830,7 +3838,7 @@ class Th extends Y {
3830
3838
  this.parent.selectAll("path.line,.node-group").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
3831
3839
  }
3832
3840
  }
3833
- class xh extends Y {
3841
+ class Sh extends Y {
3834
3842
  constructor() {
3835
3843
  super(...arguments), this.type = "grid", this.renderType = j.SVG;
3836
3844
  }
@@ -3839,7 +3847,7 @@ class xh extends Y {
3839
3847
  this.drawBackdrop(t, n), !(!t && !n) && (t && (S.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(e)), n && (S.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(e)));
3840
3848
  }
3841
3849
  drawXGrid(e) {
3842
- const t = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a = Hn(s).tickSizeInner(-n).tickSizeOuter(0);
3850
+ const t = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a = Un(s).tickSizeInner(-n).tickSizeOuter(0);
3843
3851
  if (v(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
3844
3852
  const l = this.services.cartesianScales.getDomainAxisPosition(), c = v(this.getOptions(), "axes", l, "ticks", "values");
3845
3853
  c && a.tickValues(c);
@@ -3857,7 +3865,7 @@ class xh extends Y {
3857
3865
  ).call(a) : r.call(a), this.cleanGrid(r);
3858
3866
  }
3859
3867
  drawYGrid(e) {
3860
- const t = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a = sa(s).tickSizeInner(-n).tickSizeOuter(0);
3868
+ const t = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a = ea(s).tickSizeInner(-n).tickSizeOuter(0);
3861
3869
  if (v(this.getOptions(), "grid", "y", "alignWithAxisTicks")) {
3862
3870
  const l = this.services.cartesianScales.getRangeAxisPosition(), c = v(this.getOptions(), "axes", l, "ticks", "values");
3863
3871
  c && a.tickValues(c);
@@ -3879,22 +3887,22 @@ class xh extends Y {
3879
3887
  * Calculated based on the mouse position between the two closest gridlines or edges of chart.
3880
3888
  */
3881
3889
  getGridlineThreshold(e) {
3882
- const t = this.parent, n = t.selectAll(".x.grid .tick").nodes().sort((d, p) => Number(Ge(d).tx) - Number(Ge(p).tx));
3890
+ const t = this.parent, n = t.selectAll(".x.grid .tick").nodes().sort((d, p) => Number(He(d).tx) - Number(He(p).tx));
3883
3891
  let s = -1;
3884
3892
  if (!n.length)
3885
3893
  return;
3886
3894
  n.forEach((d) => {
3887
- e[0] >= +Ge(d).tx && s++;
3895
+ e[0] >= +He(d).tx && s++;
3888
3896
  });
3889
3897
  const a = s + 1 < n.length ? s + 1 : n.length, i = n[s], r = n[a];
3890
3898
  let l;
3891
3899
  if (!i)
3892
- l = +Ge(r).tx;
3900
+ l = +He(r).tx;
3893
3901
  else if (r)
3894
- l = +Ge(r).tx - +Ge(i).tx;
3902
+ l = +He(r).tx - +He(i).tx;
3895
3903
  else {
3896
3904
  const d = t.select("rect.chart-grid-backdrop").node();
3897
- l = S.getSVGElementSize(d).width - +Ge(i).tx;
3905
+ l = S.getSVGElementSize(d).width - +He(i).tx;
3898
3906
  }
3899
3907
  const { threshold: c } = this.getOptions().tooltip.gridline;
3900
3908
  return l * c;
@@ -3906,7 +3914,7 @@ class xh extends Y {
3906
3914
  getActiveGridline(e) {
3907
3915
  const t = v(this.getOptions, "tooltip", "gridline", "threshold"), n = t || this.getGridlineThreshold(e);
3908
3916
  return this.parent.selectAll(".x.grid .tick").filter(function() {
3909
- const i = Ge(this), r = {
3917
+ const i = He(this), r = {
3910
3918
  min: Number(i.tx) - n,
3911
3919
  max: Number(i.tx) + n
3912
3920
  };
@@ -3926,7 +3934,7 @@ class xh extends Y {
3926
3934
  e.selectAll("text").remove(), e.select(".domain").remove();
3927
3935
  }
3928
3936
  }
3929
- class Lh extends Y {
3937
+ class Oh extends Y {
3930
3938
  constructor() {
3931
3939
  super(...arguments), this.type = "area", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
3932
3940
  const { hoveredElement: t } = e.detail;
@@ -3952,7 +3960,7 @@ class Lh extends Y {
3952
3960
  render(e = !0) {
3953
3961
  const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions();
3954
3962
  let s = [0, 0];
3955
- const { cartesianScales: a } = this.services, i = a.getOrientation(), r = Bn().curve(this.services.curves.getD3Curve()).defined((A) => {
3963
+ const { cartesianScales: a } = this.services, i = a.getOrientation(), r = Gn().curve(this.services.curves.getD3Curve()).defined((A) => {
3956
3964
  const L = a.getRangeIdentifier(), I = A[L];
3957
3965
  return I != null;
3958
3966
  }), l = this.model.getGroupedData(this.configs.groups), c = v(n, "bounds"), d = c && l && l.length === 1;
@@ -3988,7 +3996,7 @@ class Lh extends Y {
3988
3996
  L = I[P[0]];
3989
3997
  }
3990
3998
  }
3991
- vs.appendOrUpdateLinearGradient({
3999
+ Es.appendOrUpdateLinearGradient({
3992
4000
  svg: this.parent,
3993
4001
  id: this.services.domUtils.generateElementIDString(
3994
4002
  `${l[0].name.replace(" ", "")}_${this.gradient_id}`
@@ -3997,7 +4005,7 @@ class Lh extends Y {
3997
4005
  x2: "0%",
3998
4006
  y1: "0%",
3999
4007
  y2: "100%",
4000
- stops: vs.getStops(s, L)
4008
+ stops: Es.getStops(s, L)
4001
4009
  });
4002
4010
  } else
4003
4011
  this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
@@ -4042,7 +4050,7 @@ class Lh extends Y {
4042
4050
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
4043
4051
  }
4044
4052
  }
4045
- class Ah extends Y {
4053
+ class Th extends Y {
4046
4054
  constructor() {
4047
4055
  super(...arguments), this.type = "line", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
4048
4056
  const { hoveredElement: t } = e.detail;
@@ -4051,14 +4059,14 @@ class Ah extends Y {
4051
4059
  transition: n,
4052
4060
  name: "legend-hover-line"
4053
4061
  })
4054
- ).attr("opacity", (n) => n.name !== t.datum().name ? He.opacity.unselected : He.opacity.selected);
4062
+ ).attr("opacity", (n) => n.name !== t.datum().name ? Ue.opacity.unselected : Ue.opacity.selected);
4055
4063
  }, this.handleLegendMouseOut = () => {
4056
4064
  this.parent.selectAll("path.line").transition("legend-mouseout-line").call(
4057
4065
  (e) => this.services.transitions.setupTransition({
4058
4066
  transition: e,
4059
4067
  name: "legend-mouseout-line"
4060
4068
  })
4061
- ).attr("opacity", He.opacity.selected);
4069
+ ).attr("opacity", Ue.opacity.selected);
4062
4070
  };
4063
4071
  }
4064
4072
  init() {
@@ -4066,11 +4074,11 @@ class Ah extends Y {
4066
4074
  e.addEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.addEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
4067
4075
  }
4068
4076
  render(e = !0) {
4069
- const t = this.getComponentContainer({ withinChartClip: !0 }), { cartesianScales: n, curves: s } = this.services, a = (g) => n.getDomainValue(g), i = (g) => n.getRangeValue(g), [r, l] = Ue(
4077
+ const t = this.getComponentContainer({ withinChartClip: !0 }), { cartesianScales: n, curves: s } = this.services, a = (g) => n.getDomainValue(g), i = (g) => n.getRangeValue(g), [r, l] = Fe(
4070
4078
  a,
4071
4079
  i,
4072
4080
  n.getOrientation()
4073
- ), c = this.getOptions(), d = Gn().x(r).y(l).curve(s.getD3Curve()).defined((g) => {
4081
+ ), c = this.getOptions(), d = Hn().x(r).y(l).curve(s.getD3Curve()).defined((g) => {
4074
4082
  const m = n.getRangeIdentifier(g), E = g[m];
4075
4083
  return E != null;
4076
4084
  });
@@ -4089,7 +4097,7 @@ class Ah extends Y {
4089
4097
  [m]: w[m],
4090
4098
  [y]: w[1]
4091
4099
  })),
4092
- hidden: !Pr(O, (w) => w[0] !== w[1])
4100
+ hidden: !Cr(O, (w) => w[0] !== w[1])
4093
4101
  };
4094
4102
  });
4095
4103
  } else
@@ -4124,11 +4132,11 @@ class Ah extends Y {
4124
4132
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
4125
4133
  }
4126
4134
  }
4127
- const js = 5;
4128
- function bl(o, e) {
4129
- return o > e - js && o < e + js;
4135
+ const Fs = 5;
4136
+ function vl(o, e) {
4137
+ return o > e - Fs && o < e + Fs;
4130
4138
  }
4131
- class Ia extends Y {
4139
+ class Ma extends Y {
4132
4140
  constructor() {
4133
4141
  super(...arguments), this.type = "ruler", this.renderType = j.SVG, this.isXGridEnabled = v(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = v(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
4134
4142
  }
@@ -4152,7 +4160,7 @@ class Ia extends Y {
4152
4160
  const s = this.parent, a = this.services.cartesianScales.getOrientation(), i = this.model.getDisplayData(), r = this.services.cartesianScales.getRangeScale(), [l, c] = r.range(), d = a === xe.HORIZONTAL ? n : t, p = S.appendOrSelect(s, "g.ruler").attr("aria-label", "ruler"), h = S.appendOrSelect(p, "line.ruler-line"), u = s.selectAll("[role=graphics-symbol]"), g = i.map((E) => ({
4153
4161
  domainValue: this.services.cartesianScales.getDomainValue(E),
4154
4162
  originalData: E
4155
- })).filter((E) => bl(E.domainValue, d));
4163
+ })).filter((E) => vl(E.domainValue, d));
4156
4164
  if (this.pointsWithinLine && g.length === this.pointsWithinLine.length && g.map((E) => E.domainValue).join() === this.pointsWithinLine.map((E) => E.domainValue).join())
4157
4165
  return this.pointsWithinLine = g, this.services.events.dispatchEvent(f.Tooltip.MOVE, {
4158
4166
  mousePosition: [t, n]
@@ -4174,7 +4182,7 @@ class Ia extends Y {
4174
4182
  const A = this.services.cartesianScales.getDomainValue(w);
4175
4183
  return O.includes(A);
4176
4184
  });
4177
- this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Oa(this.elementsToHighlight, x) && this.hideRuler(), x.dispatch("mouseover"), this.elementsToHighlight = x, this.services.events.dispatchEvent(f.Tooltip.SHOW, {
4185
+ this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Ea(this.elementsToHighlight, x) && this.hideRuler(), x.dispatch("mouseover"), this.elementsToHighlight = x, this.services.events.dispatchEvent(f.Tooltip.SHOW, {
4178
4186
  mousePosition: [t, n],
4179
4187
  hoveredElement: h,
4180
4188
  data: this.formatTooltipData(E)
@@ -4195,12 +4203,12 @@ class Ia extends Y {
4195
4203
  this.isEventListenerAdded = !0;
4196
4204
  const e = this, t = this.services.domUtils.getHolder(), n = this.model.getDisplayData();
4197
4205
  let s = function(a) {
4198
- const i = Zt(a, e.parent.node());
4206
+ const i = qt(a, e.parent.node());
4199
4207
  e.showRuler(a, i);
4200
4208
  };
4201
4209
  if (n.length > 100) {
4202
4210
  const a = n.length % 50 * 12.5;
4203
- s = Ka(
4211
+ s = ja(
4204
4212
  function(i) {
4205
4213
  const { mousePosition: r } = this;
4206
4214
  e.showRuler(i, r);
@@ -4216,7 +4224,7 @@ class Ia extends Y {
4216
4224
  this.backdrop = S.appendOrSelect(e, "svg.chart-grid-backdrop");
4217
4225
  }
4218
4226
  }
4219
- class Wn extends Y {
4227
+ class jn extends Y {
4220
4228
  constructor() {
4221
4229
  super(...arguments), this.type = "scatter", this.renderType = j.SVG, this.handleChartHolderOnHover = () => {
4222
4230
  if (!this.parent)
@@ -4331,11 +4339,11 @@ class Wn extends Y {
4331
4339
  const { cartesianScales: n } = this.services;
4332
4340
  if (!n)
4333
4341
  throw new Error("Cartesian scales service is undefined");
4334
- const s = n.getOrientation(), [a, i] = Ue(
4342
+ const s = n.getOrientation(), [a, i] = Fe(
4335
4343
  n.getHighestDomainThreshold(),
4336
4344
  n.getHighestRangeThreshold(),
4337
4345
  s
4338
- ), [r, l] = Ue(
4346
+ ), [r, l] = Fe(
4339
4347
  (p) => n.getDomainValue(p),
4340
4348
  (p) => n.getRangeValue(p),
4341
4349
  s
@@ -4346,7 +4354,7 @@ class Wn extends Y {
4346
4354
  const n = this.getOptions(), { filled: s, fillOpacity: a } = n.points, { cartesianScales: i } = this.services;
4347
4355
  if (!i)
4348
4356
  throw new Error("Cartesian scales service is undefined");
4349
- const { groupMapsTo: r } = n.data, l = (u) => i.getDomainValue(u), c = (u) => i.getRangeValue(u), [d, p] = Ue(
4357
+ const { groupMapsTo: r } = n.data, l = (u) => i.getDomainValue(u), c = (u) => i.getRangeValue(u), [d, p] = Fe(
4350
4358
  l,
4351
4359
  c,
4352
4360
  i.getOrientation()
@@ -4470,7 +4478,7 @@ class Wn extends Y {
4470
4478
  ), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), e.removeEventListener(f.Chart.MOUSEOVER, this.handleChartHolderOnHover), e.removeEventListener(f.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
4471
4479
  }
4472
4480
  }
4473
- class Ra extends Y {
4481
+ class Ca extends Y {
4474
4482
  constructor(e, t, n) {
4475
4483
  super(e, t, n), this.type = "axes", this.renderType = j.SVG, this.truncation = {
4476
4484
  [B.LEFT]: !1,
@@ -4487,27 +4495,27 @@ class Ra extends Y {
4487
4495
  if (t === B.BOTTOM || t === B.TOP ? (c = this.configs.axes[B.LEFT] ? this.margins.left : 0, d = this.configs.axes[B.RIGHT] ? i - this.margins.right : i) : (c = r - this.margins.bottom, d = this.margins.top), !this.services.cartesianScales)
4488
4496
  throw new Error("Services cartesianScales undefined");
4489
4497
  const p = this.services.cartesianScales.getScaleByPosition(t);
4490
- this.scaleType === pe.LABELS || this.scaleType === pe.LABELS_RATIO ? p.rangeRound([c, d]) : p.range([c, d]);
4498
+ this.scaleType === ge.LABELS || this.scaleType === ge.LABELS_RATIO ? p.rangeRound([c, d]) : p.range([c, d]);
4491
4499
  let h;
4492
4500
  switch (t) {
4493
4501
  case B.LEFT:
4494
- h = sa;
4502
+ h = ea;
4495
4503
  break;
4496
4504
  case B.BOTTOM:
4497
- h = Hn;
4505
+ h = Un;
4498
4506
  break;
4499
4507
  case B.RIGHT:
4500
- h = ai;
4508
+ h = Qa;
4501
4509
  break;
4502
4510
  case B.TOP:
4503
- h = si;
4511
+ h = Ja;
4504
4512
  break;
4505
4513
  }
4506
4514
  l.attr("aria-label", `${t} axis`);
4507
4515
  const u = !l.select("g.ticks").empty();
4508
4516
  let g = S.appendOrSelect(l, "g.ticks");
4509
4517
  u || (g.attr("role", `${X.GRAPHICS_OBJECT} ${X.GROUP}`), g.attr("aria-label", `${t} ticks`));
4510
- const m = S.appendOrSelect(l, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${t} ticks`), E = v(n, "axes", t), O = this.scaleType === pe.TIME || E.scaleType === pe.TIME, x = t === B.LEFT || t === B.RIGHT, y = this.model.get("zoomDomain");
4518
+ const m = S.appendOrSelect(l, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${t} ticks`), E = v(n, "axes", t), O = this.scaleType === ge.TIME || E.scaleType === ge.TIME, x = t === B.LEFT || t === B.RIGHT, y = this.model.get("zoomDomain");
4511
4519
  if (y && O && !x && p.domain(y), !s) {
4512
4520
  g.attr("aria-hidden", !0);
4513
4521
  return;
@@ -4516,60 +4524,60 @@ class Ra extends Y {
4516
4524
  useBBox: !0
4517
4525
  }).height;
4518
4526
  F.remove();
4519
- const me = this.scaleType || E.scaleType || pe.LINEAR, q = h(p).tickSizeOuter(0);
4527
+ const fe = this.scaleType || E.scaleType || ge.LINEAR, q = h(p).tickSizeOuter(0);
4520
4528
  if (p.ticks) {
4521
- let $;
4522
- if (C ? $ = L : ($ = ct.ticks.number, x && ($ = this.getNumberOfFittingTicks(
4529
+ let U;
4530
+ if (C ? U = L : (U = ct.ticks.number, x && (U = this.getNumberOfFittingTicks(
4523
4531
  r,
4524
4532
  J,
4525
4533
  ct.ticks.verticalSpaceRatio
4526
- ))), p.ticks().length === 1 && p.ticks()[0] === 0 && ($ = 0), q.ticks($), O)
4527
- if (!p.ticks($).length)
4534
+ ))), p.ticks().length === 1 && p.ticks()[0] === 0 && (U = 0), q.ticks(U), O)
4535
+ if (!p.ticks(U).length)
4528
4536
  q.tickValues([]);
4529
4537
  else {
4530
4538
  const K = v(n, "timeScale", "addSpaceOnEdges"), se = v(n, "axes", t, "domain"), oe = p.copy();
4531
- K && !se && oe.nice($);
4532
- const fe = oe.ticks($);
4533
- K && fe.length > 2 && !se && (fe.splice(fe.length - 1, 1), fe.splice(0, 1)), q.tickValues(fe);
4539
+ K && !se && oe.nice(U);
4540
+ const ve = oe.ticks(U);
4541
+ K && ve.length > 2 && !se && (ve.splice(ve.length - 1, 1), ve.splice(0, 1)), q.tickValues(ve);
4534
4542
  }
4535
4543
  }
4536
4544
  let H;
4537
4545
  const ae = v(E, "ticks", "formatter"), { code: ce, number: gt } = v(n, "locale");
4538
4546
  if (O) {
4539
- const $ = vn(
4547
+ const U = yn(
4540
4548
  q.tickValues(),
4541
4549
  v(n, "timeScale", "timeInterval")
4542
4550
  );
4543
- ae === null ? H = (K, se) => yn(K, se, q.tickValues(), $, V, n.locale) : H = (K, se) => {
4544
- const oe = yn(
4551
+ ae === null ? H = (K, se) => En(K, se, q.tickValues(), U, V, n.locale) : H = (K, se) => {
4552
+ const oe = En(
4545
4553
  K,
4546
4554
  se,
4547
4555
  q.tickValues(),
4548
- $,
4556
+ U,
4549
4557
  V,
4550
4558
  n.locale
4551
4559
  );
4552
4560
  return ae(K, se, oe);
4553
4561
  };
4554
4562
  } else
4555
- ae === null ? me === pe.LINEAR && (H = ($) => gt($, ce)) : H = ae;
4563
+ ae === null ? fe === ge.LINEAR && (H = (U) => gt(U, ce)) : H = ae;
4556
4564
  q.tickFormat(H);
4557
4565
  const [re, Ke] = this.services.cartesianScales.getScaleByPosition(t).domain();
4558
4566
  let Q;
4559
4567
  if (I) {
4560
4568
  if (O)
4561
- I.forEach(($, K) => {
4562
- $.getTime === void 0 && (I[K] = new Date($));
4563
- }), Q = I.filter(($) => {
4564
- const K = $.getTime();
4569
+ I.forEach((U, K) => {
4570
+ U.getTime === void 0 && (I[K] = new Date(U));
4571
+ }), Q = I.filter((U) => {
4572
+ const K = U.getTime();
4565
4573
  return K >= new Date(re).getTime() && K <= new Date(Ke).getTime();
4566
4574
  });
4567
- else if (w === pe.LABELS) {
4568
- const $ = this.services.cartesianScales.getScaleByPosition(t).domain();
4569
- Q = I.filter((K) => $.includes(K));
4575
+ else if (w === ge.LABELS) {
4576
+ const U = this.services.cartesianScales.getScaleByPosition(t).domain();
4577
+ Q = I.filter((K) => U.includes(K));
4570
4578
  } else
4571
4579
  Q = I.filter(
4572
- ($) => $ >= re && $ <= Ke
4580
+ (U) => U >= re && U <= Ke
4573
4581
  );
4574
4582
  q.tickValues(Q);
4575
4583
  }
@@ -4587,29 +4595,29 @@ class Ra extends Y {
4587
4595
  g.attr("transform", `translate(0, ${this.margins.top})`);
4588
4596
  break;
4589
4597
  }
4590
- const Fe = this.model.isDataEmpty();
4598
+ const ze = this.model.isDataEmpty();
4591
4599
  if (E.title) {
4592
- const $ = S.appendOrSelect(l, "text.axis-title").html(
4593
- Fe || A ? "" : Pe(E.title)
4600
+ const U = S.appendOrSelect(l, "text.axis-title").html(
4601
+ ze || A ? "" : Ve(E.title)
4594
4602
  ), K = v(E, "titleOrientation");
4595
4603
  let se;
4596
4604
  switch (t) {
4597
4605
  case B.LEFT:
4598
- K === Es.RIGHT ? $.attr("transform", "rotate(90)").attr("y", 0).attr("x", p.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : $.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(p.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
4606
+ K === Ss.RIGHT ? U.attr("transform", "rotate(90)").attr("y", 0).attr("x", p.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : U.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(p.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
4599
4607
  break;
4600
4608
  case B.BOTTOM:
4601
- $.attr(
4609
+ U.attr(
4602
4610
  "transform",
4603
4611
  `translate(${this.margins.left / 2 + p.range()[1] / 2}, ${r + 4})`
4604
4612
  ).style("text-anchor", "middle");
4605
4613
  break;
4606
4614
  case B.RIGHT:
4607
- K === Es.LEFT ? $.attr("transform", "rotate(-90)").attr("y", i).attr("x", -(p.range()[0] / 2)).style("text-anchor", "middle") : $.attr("transform", "rotate(90)").attr("y", -i).attr("x", p.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
4615
+ K === Ss.LEFT ? U.attr("transform", "rotate(-90)").attr("y", i).attr("x", -(p.range()[0] / 2)).style("text-anchor", "middle") : U.attr("transform", "rotate(90)").attr("y", -i).attr("x", p.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
4608
4616
  break;
4609
4617
  case B.TOP:
4610
- se = S.getSVGElementSize($, {
4618
+ se = S.getSVGElementSize(U, {
4611
4619
  useBBox: !0
4612
- }).height, $.attr(
4620
+ }).height, U.attr(
4613
4621
  "transform",
4614
4622
  `translate(${this.margins.left / 2 + p.range()[1] / 2}, ${se / 2})`
4615
4623
  ).style("text-anchor", "middle");
@@ -4617,65 +4625,65 @@ class Ra extends Y {
4617
4625
  }
4618
4626
  }
4619
4627
  if (O) {
4620
- const $ = vn(
4628
+ const U = yn(
4621
4629
  q.tickValues(),
4622
4630
  v(n, "timeScale", "timeInterval")
4623
4631
  ), K = V.showDayName, se = g;
4624
4632
  e && (g = g.transition().call(
4625
- (fe) => this.services.transitions.setupTransition({
4626
- transition: fe,
4633
+ (ve) => this.services.transitions.setupTransition({
4634
+ transition: ve,
4627
4635
  name: "axis-update",
4628
4636
  animate: e
4629
4637
  })
4630
- )), g = g.call(q), se.selectAll(".tick").data(q.tickValues(), p).order().select("text").style("font-weight", (fe, Ie) => Ja(fe, Ie, q.tickValues(), $, K) ? "bold" : "normal");
4638
+ )), g = g.call(q), se.selectAll(".tick").data(q.tickValues(), p).order().select("text").style("font-weight", (ve, Ie) => Xa(ve, Ie, q.tickValues(), U, K) ? "bold" : "normal");
4631
4639
  } else
4632
4640
  !e || !u ? g = g.call(q) : g = g.transition().call(
4633
- ($) => this.services.transitions.setupTransition({
4634
- transition: $,
4641
+ (U) => this.services.transitions.setupTransition({
4642
+ transition: U,
4635
4643
  name: "axis-update",
4636
4644
  animate: e
4637
4645
  })
4638
4646
  ).call(q);
4639
4647
  if (m.call(q), t === B.BOTTOM || t === B.TOP) {
4640
- let $ = !1;
4648
+ let U = !1;
4641
4649
  const K = v(E, "ticks", "rotation");
4642
- if (K === an.ALWAYS)
4643
- $ = !0;
4644
- else if (K === an.NEVER)
4645
- $ = !1;
4646
- else if (!K || K === an.AUTO)
4650
+ if (K === rn.ALWAYS)
4651
+ U = !0;
4652
+ else if (K === rn.NEVER)
4653
+ U = !1;
4654
+ else if (!K || K === rn.AUTO)
4647
4655
  if (p.step)
4648
- $ = m.selectAll("g.tick text").nodes().some(
4656
+ U = m.selectAll("g.tick text").nodes().some(
4649
4657
  (oe) => S.getSVGElementSize(oe, {
4650
4658
  useBBox: !0
4651
4659
  }).width >= p.step()
4652
4660
  );
4653
4661
  else {
4654
- $ = !1;
4662
+ U = !1;
4655
4663
  const se = m.append("text").text("A"), oe = S.getSVGElementSize(se.node(), {
4656
4664
  useBBox: !0
4657
4665
  }).width;
4658
- let fe;
4666
+ let ve;
4659
4667
  m.selectAll("g.tick").each(function() {
4660
- const Ie = T(this), _ = parseFloat(v(Ge(this), "tx"));
4661
- _ !== null && fe + Ie.text().length * oe * 0.8 >= _ && ($ = !0), fe = _;
4668
+ const Ie = T(this), _ = parseFloat(v(He(this), "tx"));
4669
+ _ !== null && ve + Ie.text().length * oe * 0.8 >= _ && (U = !0), ve = _;
4662
4670
  }), se.remove();
4663
4671
  }
4664
- $ ? (C || (q.ticks(
4672
+ U ? (C || (q.ticks(
4665
4673
  this.getNumberOfFittingTicks(i, J, ct.ticks.horizontalSpaceRatio)
4666
4674
  ), m.call(q), g.call(q)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === B.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
4667
4675
  }
4668
- if (A ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", ($) => $), m.selectAll("g.tick").attr("aria-label", ($) => $), P !== dt.NONE && w === pe.LABELS && !I) {
4669
- const $ = this.services.cartesianScales.getScaleDomain(t);
4670
- if ($.length > 0) {
4676
+ if (A ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), P !== dt.NONE && w === ge.LABELS && !I) {
4677
+ const U = this.services.cartesianScales.getScaleDomain(t);
4678
+ if (U.length > 0) {
4671
4679
  const K = a.select(`g.axis.${t} g.ticks g.tick`).html();
4672
4680
  l.selectAll("g.ticks g.tick").html(K);
4673
4681
  const se = this;
4674
- l.selectAll("g.tick text").data($).text(function(oe) {
4675
- return oe.length > W ? (se.truncation[t] = !0, xt(oe, P, k)) : oe;
4676
- }), this.getInvisibleAxisRef().selectAll("g.tick text").data($).text(function(oe) {
4677
- return oe.length > W ? xt(oe, P, k) : oe;
4678
- }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data($);
4682
+ l.selectAll("g.tick text").data(U).text(function(oe) {
4683
+ return oe.length > W ? (se.truncation[t] = !0, Lt(oe, P, k)) : oe;
4684
+ }), this.getInvisibleAxisRef().selectAll("g.tick text").data(U).text(function(oe) {
4685
+ return oe.length > W ? Lt(oe, P, k) : oe;
4686
+ }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(U);
4679
4687
  }
4680
4688
  }
4681
4689
  this.addEventListeners();
@@ -4687,7 +4695,7 @@ class Ra extends Y {
4687
4695
  event: c,
4688
4696
  element: T(this),
4689
4697
  datum: d
4690
- }), i === pe.LABELS && d.length > r && l.services.events.dispatchEvent(f.Tooltip.SHOW, {
4698
+ }), i === ge.LABELS && d.length > r && l.services.events.dispatchEvent(f.Tooltip.SHOW, {
4691
4699
  event: c,
4692
4700
  hoveredElement: T(this),
4693
4701
  content: d
@@ -4697,7 +4705,7 @@ class Ra extends Y {
4697
4705
  event: c,
4698
4706
  element: T(this),
4699
4707
  datum: d
4700
- }), i === pe.LABELS && d.length > r && l.services.events.dispatchEvent(f.Tooltip.MOVE, {
4708
+ }), i === ge.LABELS && d.length > r && l.services.events.dispatchEvent(f.Tooltip.MOVE, {
4701
4709
  event: c
4702
4710
  });
4703
4711
  }).on("click", function(c, d) {
@@ -4711,7 +4719,7 @@ class Ra extends Y {
4711
4719
  event: c,
4712
4720
  element: T(this),
4713
4721
  datum: d
4714
- }), i === pe.LABELS && l.services.events.dispatchEvent(f.Tooltip.HIDE);
4722
+ }), i === ge.LABELS && l.services.events.dispatchEvent(f.Tooltip.HIDE);
4715
4723
  });
4716
4724
  }
4717
4725
  getInvisibleAxisRef() {
@@ -4724,14 +4732,14 @@ class Ra extends Y {
4724
4732
  }
4725
4733
  getNumberOfFittingTicks(e, t, n) {
4726
4734
  const s = Math.floor(e / (t * n));
4727
- return Sa(s, 2, ct.ticks.number);
4735
+ return ya(s, 2, ct.ticks.number);
4728
4736
  }
4729
4737
  destroy() {
4730
4738
  const e = this.getComponentContainer(), { position: t } = this.configs;
4731
4739
  S.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick text").on("mouseover", null).on("mousemove", null).on("mouseout", null);
4732
4740
  }
4733
4741
  }
4734
- class Sl extends Ra {
4742
+ class yl extends Ca {
4735
4743
  constructor(e, t, n) {
4736
4744
  super(e, t, n);
4737
4745
  }
@@ -4770,7 +4778,7 @@ class Sl extends Ra {
4770
4778
  event: c,
4771
4779
  element: d,
4772
4780
  datum: p
4773
- }), i === pe.LABELS && p.length > r && l.services.events.dispatchEvent(f.Tooltip.SHOW, {
4781
+ }), i === ge.LABELS && p.length > r && l.services.events.dispatchEvent(f.Tooltip.SHOW, {
4774
4782
  event: c,
4775
4783
  element: d,
4776
4784
  datum: p
@@ -4795,7 +4803,7 @@ class Sl extends Ra {
4795
4803
  event: c,
4796
4804
  element: T(this).select("text"),
4797
4805
  datum: T(this).select("text").datum()
4798
- }), i === pe.LABELS && l.services.events.dispatchEvent(f.Tooltip.HIDE);
4806
+ }), i === ge.LABELS && l.services.events.dispatchEvent(f.Tooltip.HIDE);
4799
4807
  }).on("focus", function(c) {
4800
4808
  const d = { clientX: 0, clientY: 0 };
4801
4809
  if (c.target) {
@@ -4835,7 +4843,7 @@ class Sl extends Ra {
4835
4843
  S.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick.tick-hover").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("focus", null).on("blur", null);
4836
4844
  }
4837
4845
  }
4838
- class wh extends Y {
4846
+ class xh extends Y {
4839
4847
  constructor() {
4840
4848
  super(...arguments), this.type = "2D-axes", this.renderType = j.SVG, this.children = {}, this.thresholds = [], this.margins = {
4841
4849
  top: 0,
@@ -4855,7 +4863,7 @@ class wh extends Y {
4855
4863
  position: l,
4856
4864
  axes: this.configs.axes,
4857
4865
  margins: this.margins
4858
- }, d = this.model.axisFlavor === Mi.DEFAULT ? new Ra(this.model, this.services, c) : new Sl(this.model, this.services, c);
4866
+ }, d = this.model.axisFlavor === Ti.DEFAULT ? new Ca(this.model, this.services, c) : new yl(this.model, this.services, c);
4859
4867
  d.setModel(this.model), d.setServices(this.services), d.setParent(this.parent), this.children[l] = d;
4860
4868
  }
4861
4869
  }), Object.keys(this.children).forEach((r) => {
@@ -4889,7 +4897,7 @@ class wh extends Y {
4889
4897
  }), this.render(!0));
4890
4898
  }
4891
4899
  }
4892
- class Ol extends Y {
4900
+ class El extends Y {
4893
4901
  constructor() {
4894
4902
  super(...arguments), this.type = "skeleton";
4895
4903
  }
@@ -4901,13 +4909,13 @@ class Ol extends Y {
4901
4909
  t ? this.renderSkeleton(t) : this.removeSkeleton();
4902
4910
  }
4903
4911
  renderSkeleton(e) {
4904
- if (this.configs.skeleton === It.GRID)
4912
+ if (this.configs.skeleton === kt.GRID)
4905
4913
  this.renderGridSkeleton(e);
4906
- else if (this.configs.skeleton === It.VERT_OR_HORIZ)
4914
+ else if (this.configs.skeleton === kt.VERT_OR_HORIZ)
4907
4915
  this.renderVertOrHorizSkeleton(e);
4908
- else if (this.configs.skeleton === It.PIE)
4916
+ else if (this.configs.skeleton === kt.PIE)
4909
4917
  this.renderPieSkeleton(e);
4910
- else if (this.configs.skeleton === It.DONUT)
4918
+ else if (this.configs.skeleton === kt.DONUT)
4911
4919
  this.renderDonutSkeleton(e);
4912
4920
  else
4913
4921
  throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
@@ -4963,7 +4971,7 @@ class Ol extends Y {
4963
4971
  useAttrs: !0
4964
4972
  }), r = S.appendOrSelect(s, "svg.chart-skeleton").attr("width", a).attr("height", i), l = t === 0 ? "pie" : "donut", c = v(this.getOptions(), l, "alignment");
4965
4973
  S.appendOrSelect(r, "rect.chart-skeleton-area-container").attr("width", a).attr("height", i).attr("fill", "none");
4966
- const d = Lt().innerRadius(t).outerRadius(e).startAngle(0).endAngle(Math.PI * 2), p = e + Math.abs(te.radiusOffset), h = e + (Math.min(a, i) - e * 2) / 2, u = S.appendOrSelect(r, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${p}, ${h})`).attr("d", d).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
4974
+ const d = At().innerRadius(t).outerRadius(e).startAngle(0).endAngle(Math.PI * 2), p = e + Math.abs(te.radiusOffset), h = e + (Math.min(a, i) - e * 2) / 2, u = S.appendOrSelect(r, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${p}, ${h})`).attr("d", d).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
4967
4975
  "fill",
4968
4976
  n ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
4969
4977
  );
@@ -4993,14 +5001,14 @@ class Ol extends Y {
4993
5001
  `;
4994
5002
  h.html(u), g();
4995
5003
  function g() {
4996
- h.attr("gradientTransform", `translate(${c - 3 * 0.2 * l}, 0)`).transition().duration(2e3).delay(1e3).ease(ii).attr("gradientTransform", `translate(${d + 3 * 0.2 * l}, 0)`).on("end", g);
5004
+ h.attr("gradientTransform", `translate(${c - 3 * 0.2 * l}, 0)`).transition().duration(2e3).delay(1e3).ease(ei).attr("gradientTransform", `translate(${d + 3 * 0.2 * l}, 0)`).on("end", g);
4997
5005
  }
4998
5006
  }
4999
5007
  removeSkeleton() {
5000
5008
  this.parent.select(".chart-skeleton").remove();
5001
5009
  }
5002
5010
  }
5003
- class Mh extends Y {
5011
+ class Lh extends Y {
5004
5012
  constructor() {
5005
5013
  super(...arguments), this.type = "boxplot", this.renderType = j.SVG;
5006
5014
  }
@@ -5008,7 +5016,7 @@ class Mh extends Y {
5008
5016
  const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getDataGroupNames(), i = this.services.cartesianScales.getMainXScale(), r = this.services.cartesianScales.getMainYScale(), [l, c] = i.range(), [d, p] = r.range(), h = c - l, u = d - p;
5009
5017
  if (h === 0)
5010
5018
  return;
5011
- const { cartesianScales: g } = this.services, m = g.getOrientation(), E = m === xe.VERTICAL, [O, x] = Ue(
5019
+ const { cartesianScales: g } = this.services, m = g.getOrientation(), E = m === xe.VERTICAL, [O, x] = Fe(
5012
5020
  (C) => this.services.cartesianScales.getDomainValue(C),
5013
5021
  (C) => this.services.cartesianScales.getRangeValue(C),
5014
5022
  m
@@ -5029,7 +5037,7 @@ class Mh extends Y {
5029
5037
  })
5030
5038
  ).attr("d", (C) => {
5031
5039
  const V = g.getDomainValue(C[s]), F = V, M = g.getRangeValue(C.whiskers.min), J = g.getRangeValue(C.quartiles.q_25);
5032
- return Ee({ x0: V, x1: F, y0: M, y1: J }, m);
5040
+ return Se({ x0: V, x1: F, y0: M, y1: J }, m);
5033
5041
  }), I.append("path").merge(L.select("path.vertical-line.end")).attr(
5034
5042
  "class",
5035
5043
  () => this.model.getColorClassName({
@@ -5044,7 +5052,7 @@ class Mh extends Y {
5044
5052
  })
5045
5053
  ).attr("d", (C) => {
5046
5054
  const V = g.getDomainValue(C[s]), F = V, M = g.getRangeValue(C.whiskers.max), J = g.getRangeValue(C.quartiles.q_75);
5047
- return Ee({ x0: V, x1: F, y0: M, y1: J }, m);
5055
+ return Se({ x0: V, x1: F, y0: M, y1: J }, m);
5048
5056
  }), I.append("path").merge(L.select("path.box")).attr(
5049
5057
  "class",
5050
5058
  () => this.model.getColorClassName({
@@ -5063,10 +5071,10 @@ class Mh extends Y {
5063
5071
  ), J = M + Math.abs(
5064
5072
  g.getRangeValue(C.quartiles.q_75) - g.getRangeValue(C.quartiles.q_25)
5065
5073
  );
5066
- return Ee({ x0: V, x1: F, y0: M, y1: J }, m);
5074
+ return Se({ x0: V, x1: F, y0: M, y1: J }, m);
5067
5075
  }), I.append("path").merge(L.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (C) => {
5068
5076
  const V = g.getDomainValue(C[s]) - w / 2, F = V + w, M = g.getRangeValue(C.whiskers.min), J = g.getRangeValue(C.whiskers.max);
5069
- return Ee({ x0: V, x1: F, y0: M, y1: J }, m);
5077
+ return Se({ x0: V, x1: F, y0: M, y1: J }, m);
5070
5078
  }), I.append("path").merge(L.select("path.whisker.start")).attr(
5071
5079
  "class",
5072
5080
  () => this.model.getColorClassName({
@@ -5081,7 +5089,7 @@ class Mh extends Y {
5081
5089
  })
5082
5090
  ).attr("d", (C) => {
5083
5091
  const V = g.getDomainValue(C[s]) - w / 4, F = V + w / 2, M = g.getRangeValue(C.whiskers.min), J = g.getRangeValue(C.whiskers.min);
5084
- return Ee({ x0: V, x1: F, y0: M, y1: J }, m);
5092
+ return Se({ x0: V, x1: F, y0: M, y1: J }, m);
5085
5093
  }), I.append("path").merge(L.select("path.median")).attr("fill", "none").attr(
5086
5094
  "class",
5087
5095
  () => this.model.getColorClassName({
@@ -5096,7 +5104,7 @@ class Mh extends Y {
5096
5104
  })
5097
5105
  ).attr("d", (C) => {
5098
5106
  const V = g.getDomainValue(C[s]) - w / 2, F = V + w, M = g.getRangeValue(C.quartiles.q_50);
5099
- return Ee({ x0: V, x1: F, y0: M, y1: M }, m);
5107
+ return Se({ x0: V, x1: F, y0: M, y1: M }, m);
5100
5108
  }), I.append("path").merge(L.select("path.whisker.end")).attr(
5101
5109
  "class",
5102
5110
  () => this.model.getColorClassName({
@@ -5111,7 +5119,7 @@ class Mh extends Y {
5111
5119
  })
5112
5120
  ).attr("d", (C) => {
5113
5121
  const V = g.getDomainValue(C[s]) - w / 4, F = V + w / 2, M = g.getRangeValue(C.whiskers.max), J = g.getRangeValue(C.whiskers.max);
5114
- return Ee({ x0: V, x1: F, y0: M, y1: J }, m);
5122
+ return Se({ x0: V, x1: F, y0: M, y1: J }, m);
5115
5123
  });
5116
5124
  const W = P.selectAll("circle.outlier").data(
5117
5125
  (C) => C.outliers.map((V) => ({
@@ -5260,7 +5268,7 @@ class Mh extends Y {
5260
5268
  });
5261
5269
  }
5262
5270
  }
5263
- class Ch extends Y {
5271
+ class Ah extends Y {
5264
5272
  constructor() {
5265
5273
  super(...arguments), this.type = "zero-line", this.renderType = j.SVG;
5266
5274
  }
@@ -5275,7 +5283,7 @@ class Ch extends Y {
5275
5283
  const [l, c] = this.services.cartesianScales.getDomainScale().range();
5276
5284
  let d = +n(0) + 0.5;
5277
5285
  d || (d = n.range()[0]);
5278
- const p = Qa(
5286
+ const p = Za(
5279
5287
  {
5280
5288
  x0: l,
5281
5289
  x1: c,
@@ -5293,16 +5301,16 @@ class Ch extends Y {
5293
5301
  ).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
5294
5302
  }
5295
5303
  }
5296
- class _h extends Wn {
5304
+ class wh extends jn {
5297
5305
  constructor() {
5298
5306
  super(...arguments), this.type = "bubble", this.renderType = j.SVG;
5299
5307
  }
5300
5308
  getRadiusScale(e) {
5301
- const t = this.getOptions(), { radiusMapsTo: n } = t.bubble, s = e.data(), a = s.map((c) => c[n]).filter((c) => c), i = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = a.length > 0, l = r ? Yt(a) : [1, 1];
5309
+ const t = this.getOptions(), { radiusMapsTo: n } = t.bubble, s = e.data(), a = s.map((c) => c[n]).filter((c) => c), i = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = a.length > 0, l = r ? Kt(a) : [1, 1];
5302
5310
  return qe().domain(l).range(r ? t.bubble.radiusRange(i, s) : [4, 4]);
5303
5311
  }
5304
5312
  styleCircles(e, t) {
5305
- const n = this.getOptions(), { radiusMapsTo: s } = n.bubble, a = this.getRadiusScale(e), { groupMapsTo: i } = n.data, { cartesianScales: r } = this.services, l = (h) => r.getDomainValue(h), c = (h) => r.getRangeValue(h), [d, p] = Ue(
5313
+ const n = this.getOptions(), { radiusMapsTo: s } = n.bubble, a = this.getRadiusScale(e), { groupMapsTo: i } = n.data, { cartesianScales: r } = this.services, l = (h) => r.getDomainValue(h), c = (h) => r.getRangeValue(h), [d, p] = Fe(
5306
5314
  l,
5307
5315
  c,
5308
5316
  r.getOrientation()
@@ -5341,7 +5349,7 @@ class _h extends Wn {
5341
5349
  ];
5342
5350
  }
5343
5351
  }
5344
- class Ih extends Y {
5352
+ class Mh extends Y {
5345
5353
  constructor() {
5346
5354
  super(...arguments), this.type = "bullet", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
5347
5355
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -5388,7 +5396,7 @@ class Ih extends Y {
5388
5396
  })
5389
5397
  ).attr("d", (x) => {
5390
5398
  let w, A, L, I;
5391
- return x.order === 1 ? (w = this.services.cartesianScales.getDomainValue(x.datum) - 16 / 2, A = w + 16, L = c - 2, I = l + 1) : (w = this.services.cartesianScales.getDomainValue(x.datum) - 16 / 2, A = w + 16, L = this.services.cartesianScales.getRangeValue(x.value), I = c), Ee(
5399
+ return x.order === 1 ? (w = this.services.cartesianScales.getDomainValue(x.datum) - 16 / 2, A = w + 16, L = c - 2, I = l + 1) : (w = this.services.cartesianScales.getDomainValue(x.datum) - 16 / 2, A = w + 16, L = this.services.cartesianScales.getRangeValue(x.value), I = c), Se(
5392
5400
  { x0: w, x1: A, y0: L, y1: I },
5393
5401
  this.services.cartesianScales.getOrientation()
5394
5402
  );
@@ -5413,7 +5421,7 @@ class Ih extends Y {
5413
5421
  return this.model.getFillColor(O[n], O[x], O);
5414
5422
  }).attr("d", (O) => {
5415
5423
  const y = this.services.cartesianScales.getDomainValue(O) - 4, w = y + 8, A = this.services.cartesianScales.getRangeValue(0) + 1, L = this.services.cartesianScales.getRangeValue(O);
5416
- return Ee(
5424
+ return Se(
5417
5425
  { x0: y, x1: w, y0: A, y1: L },
5418
5426
  this.services.cartesianScales.getOrientation()
5419
5427
  );
@@ -5431,7 +5439,7 @@ class Ih extends Y {
5431
5439
  })
5432
5440
  ).attr("d", (O) => {
5433
5441
  const y = this.services.cartesianScales.getDomainValue(O) - 12, w = y + 24, A = this.services.cartesianScales.getRangeValue(O.marker);
5434
- return Ee(
5442
+ return Se(
5435
5443
  { x0: y, x1: w, y0: A, y1: A },
5436
5444
  this.services.cartesianScales.getOrientation()
5437
5445
  );
@@ -5457,7 +5465,7 @@ class Ih extends Y {
5457
5465
  let w = 4;
5458
5466
  x.ranges && x.ranges.indexOf(y) !== -1 && (w = 8);
5459
5467
  const A = this.services.cartesianScales.getDomainValue(x) - w / 2, L = A + w, I = this.services.cartesianScales.getRangeValue(y);
5460
- return Ee(
5468
+ return Se(
5461
5469
  { x0: A, x1: L, y0: I, y1: I },
5462
5470
  this.services.cartesianScales.getOrientation()
5463
5471
  );
@@ -5536,12 +5544,12 @@ class Ih extends Y {
5536
5544
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
5537
5545
  }
5538
5546
  }
5539
- function Tl(o) {
5547
+ function bl(o) {
5540
5548
  return o;
5541
5549
  }
5542
- function xl(o) {
5550
+ function Sl(o) {
5543
5551
  if (o == null)
5544
- return Tl;
5552
+ return bl;
5545
5553
  var e, t, n = o.scale[0], s = o.scale[1], a = o.translate[0], i = o.translate[1];
5546
5554
  return function(r, l) {
5547
5555
  l || (e = t = 0);
@@ -5551,26 +5559,26 @@ function xl(o) {
5551
5559
  return p;
5552
5560
  };
5553
5561
  }
5554
- function Ll(o, e) {
5562
+ function Ol(o, e) {
5555
5563
  for (var t, n = o.length, s = n - e; s < --n; )
5556
5564
  t = o[s], o[s++] = o[n], o[n] = t;
5557
5565
  }
5558
- function Al(o, e) {
5566
+ function Tl(o, e) {
5559
5567
  return typeof e == "string" && (e = o.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
5560
- return Xs(o, t);
5561
- }) } : Xs(o, e);
5568
+ return zs(o, t);
5569
+ }) } : zs(o, e);
5562
5570
  }
5563
- function Xs(o, e) {
5564
- var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = jn(o, e);
5571
+ function zs(o, e) {
5572
+ var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = Xn(o, e);
5565
5573
  return t == null && n == null ? { type: "Feature", properties: s, geometry: a } : n == null ? { type: "Feature", id: t, properties: s, geometry: a } : { type: "Feature", id: t, bbox: n, properties: s, geometry: a };
5566
5574
  }
5567
- function jn(o, e) {
5568
- var t = xl(o.transform), n = o.arcs;
5575
+ function Xn(o, e) {
5576
+ var t = Sl(o.transform), n = o.arcs;
5569
5577
  function s(d, p) {
5570
5578
  p.length && p.pop();
5571
5579
  for (var h = n[d < 0 ? ~d : d], u = 0, g = h.length; u < g; ++u)
5572
5580
  p.push(t(h[u], u));
5573
- d < 0 && Ll(p, g);
5581
+ d < 0 && Ol(p, g);
5574
5582
  }
5575
5583
  function a(d) {
5576
5584
  return t(d);
@@ -5618,7 +5626,7 @@ function jn(o, e) {
5618
5626
  }
5619
5627
  return c(e);
5620
5628
  }
5621
- function wl(o, e) {
5629
+ function xl(o, e) {
5622
5630
  var t = {}, n = {}, s = {}, a = [], i = -1;
5623
5631
  e.forEach(function(c, d) {
5624
5632
  var p = o.arcs[c < 0 ? ~c : c], h;
@@ -5660,15 +5668,15 @@ function wl(o, e) {
5660
5668
  t[c < 0 ? ~c : c] || a.push([c]);
5661
5669
  }), a;
5662
5670
  }
5663
- function Ml(o) {
5671
+ function Ll(o) {
5664
5672
  for (var e = -1, t = o.length, n, s = o[t - 1], a = 0; ++e < t; )
5665
5673
  n = s, s = o[e], a += n[0] * s[1] - n[1] * s[0];
5666
5674
  return Math.abs(a);
5667
5675
  }
5668
- function Cl(o) {
5669
- return jn(o, _l.apply(this, arguments));
5676
+ function Al(o) {
5677
+ return Xn(o, wl.apply(this, arguments));
5670
5678
  }
5671
- function _l(o, e) {
5679
+ function wl(o, e) {
5672
5680
  var t = {}, n = [], s = [];
5673
5681
  e.forEach(a);
5674
5682
  function a(l) {
@@ -5692,7 +5700,7 @@ function _l(o, e) {
5692
5700
  }), n.push(l);
5693
5701
  }
5694
5702
  function r(l) {
5695
- return Ml(jn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
5703
+ return Ll(Xn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
5696
5704
  }
5697
5705
  return n.forEach(function(l) {
5698
5706
  if (!l._) {
@@ -5718,7 +5726,7 @@ function _l(o, e) {
5718
5726
  t[O < 0 ? ~O : O].length < 2 && c.push(O);
5719
5727
  });
5720
5728
  });
5721
- }), c = wl(o, c), (d = c.length) > 1)
5729
+ }), c = xl(o, c), (d = c.length) > 1)
5722
5730
  for (var p = 1, h = r(c[0]), u, g; p < d; ++p)
5723
5731
  (u = r(c[p])) > h && (g = c[0], c[0] = c[p], c[p] = g, h = u);
5724
5732
  return c;
@@ -5727,7 +5735,7 @@ function _l(o, e) {
5727
5735
  })
5728
5736
  };
5729
5737
  }
5730
- class Rh extends Ia {
5738
+ class Ch extends Ma {
5731
5739
  constructor() {
5732
5740
  super(...arguments), this.type = "ruler-binned", this.renderType = j.SVG;
5733
5741
  }
@@ -5742,7 +5750,7 @@ class Rh extends Ia {
5742
5750
  return !0;
5743
5751
  });
5744
5752
  if (E.size() > 0) {
5745
- this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Oa(this.elementsToHighlight, E) && this.hideRuler(), E.dispatch("mouseover"), this.elementsToHighlight = E;
5753
+ this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Ea(this.elementsToHighlight, E) && this.hideRuler(), E.dispatch("mouseover"), this.elementsToHighlight = E;
5746
5754
  const O = T(E.nodes()[0]).datum(), x = parseFloat(ne(O, "data.x0")), y = parseFloat(ne(O, "data.x1")), w = this.model.getActiveDataGroupNames(), A = w.reverse().map((I) => ({
5747
5755
  label: I,
5748
5756
  value: ne(O, `data.${I}`),
@@ -5780,52 +5788,52 @@ class Rh extends Ia {
5780
5788
  this.hideRuler();
5781
5789
  }
5782
5790
  }
5783
- class kh extends Ia {
5791
+ class _h extends Ma {
5784
5792
  formatTooltipData(e) {
5785
5793
  return e.reverse();
5786
5794
  }
5787
5795
  }
5788
- const Dh = (o, e) => {
5796
+ const Ih = (o, e) => {
5789
5797
  const t = o.x, n = o.y, s = e.x, a = e.y, i = $n();
5790
5798
  return i.moveTo(t, n), i.lineTo(s, a), i.toString();
5791
- }, Ph = (o, e, t = 0.5) => {
5799
+ }, Rh = (o, e, t = 0.5) => {
5792
5800
  const n = o.x, s = o.y, a = e.x, i = e.y, r = $n();
5793
5801
  return r.moveTo(n, s), r.lineTo(n + (a - n) * t, s), r.lineTo(n + (a - n) * t, i), r.lineTo(a, i), r.toString();
5794
- }, Nh = (o, e, t, n, s, a) => {
5802
+ }, kh = (o, e, t, n, s, a) => {
5795
5803
  const i = o.x, r = o.y, l = e.x, c = e.y, d = $n();
5796
5804
  return d.moveTo(i, r), d.bezierCurveTo(t, n, s, a, l, c), d.toString();
5797
- }, Vh = {
5805
+ }, Dh = {
5798
5806
  d: "M7 0v8L0 4z",
5799
5807
  height: 8,
5800
5808
  width: 7.5,
5801
5809
  id: "arrowLeft"
5802
- }, Bh = {
5810
+ }, Ph = {
5803
5811
  d: "M0 0v8l7-4z",
5804
5812
  height: 8,
5805
5813
  width: 7.5,
5806
5814
  id: "arrowRight"
5807
- }, Gh = {
5815
+ }, Nh = {
5808
5816
  d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
5809
5817
  height: 10,
5810
5818
  width: 10,
5811
5819
  id: "circle"
5812
- }, Hh = {
5820
+ }, Vh = {
5813
5821
  d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z",
5814
5822
  height: 10,
5815
5823
  width: 10,
5816
5824
  id: "diamond"
5817
- }, $h = {
5825
+ }, Bh = {
5818
5826
  d: "M0 .44974747h8v8H0v-3.6830331z",
5819
5827
  height: 9,
5820
5828
  width: 8,
5821
5829
  id: "square"
5822
- }, Uh = {
5830
+ }, Gh = {
5823
5831
  d: "M0 0h1.5v8H0z",
5824
5832
  height: 8,
5825
5833
  width: 2,
5826
5834
  id: "tee"
5827
5835
  };
5828
- class Fh extends vl {
5836
+ class Hh extends gl {
5829
5837
  constructor(e, t, n) {
5830
5838
  super(e, t, n), this.type = "color-legend", this.renderType = j.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
5831
5839
  const s = this.getComponentContainer(), { width: a } = S.getSVGElementSize(s, {
@@ -5860,7 +5868,7 @@ class Fh extends vl {
5860
5868
  n.html("");
5861
5869
  return;
5862
5870
  }
5863
- const d = !ta(a), p = ei(this.model.getDisplayData()), h = !(s <= he.color.barWidth), u = h ? he.color.barWidth : s, g = S.appendOrSelect(n, "g.legend"), m = S.appendOrSelect(g, "g.legend-axis");
5871
+ const d = !Js(a), p = Ya(this.model.getDisplayData()), h = !(s <= he.color.barWidth), u = h ? he.color.barWidth : s, g = S.appendOrSelect(n, "g.legend"), m = S.appendOrSelect(g, "g.legend-axis");
5864
5872
  if (l) {
5865
5873
  const k = S.appendOrSelect(n, "g.legend-title");
5866
5874
  S.appendOrSelect(k, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
@@ -5874,16 +5882,16 @@ class Fh extends vl {
5874
5882
  else
5875
5883
  for (let k = 1; k < x + 1; k++)
5876
5884
  O.push(
5877
- i === rn.LINEAR ? `stop-color-${E}-${r}-${k}` : `fill-${E}-${r}-${k}`
5885
+ i === on.LINEAR ? `stop-color-${E}-${r}-${k}` : `fill-${E}-${r}-${k}`
5878
5886
  );
5879
- const y = aa(p[0], p[1]), w = ri(y, 3), A = qe().domain(p).range([0, u]), L = Hn(A).tickSize(0).tickValues(w), { code: I, number: P } = v(t, "locale");
5887
+ const y = ta(p[0], p[1]), w = ti(y, 3), A = qe().domain(p).range([0, u]), L = Un(A).tickSize(0).tickValues(w), { code: I, number: P } = v(t, "locale");
5880
5888
  L.tickFormat((k) => P(k, I));
5881
5889
  let W;
5882
5890
  switch (i) {
5883
- case rn.LINEAR:
5891
+ case on.LINEAR:
5884
5892
  this.drawLinear(O, g, u);
5885
5893
  break;
5886
- case rn.QUANTIZE:
5894
+ case on.QUANTIZE:
5887
5895
  W = this.drawQuantize(
5888
5896
  O,
5889
5897
  E,
@@ -5911,14 +5919,14 @@ class Fh extends vl {
5911
5919
  */
5912
5920
  drawQuantize(e, t, n, s, a) {
5913
5921
  !n && t === "diverge" && e.splice(e.length / 2, 1);
5914
- const i = Un().domain(e).range([0, a]);
5922
+ const i = Fn().domain(e).range([0, a]);
5915
5923
  return S.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height", he.color.barHeight).attr("class", (l) => l).attr("fill", (l) => l), (!n && t) === "mono" ? i.bandwidth() - 1 : 0;
5916
5924
  }
5917
5925
  destroy() {
5918
5926
  this.chartType === "heatmap" && this.services.events.removeEventListener(f.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
5919
5927
  }
5920
5928
  }
5921
- class zh extends fl {
5929
+ class Uh extends pl {
5922
5930
  constructor() {
5923
5931
  super(...arguments), this.type = "meter-title", this.renderType = j.SVG;
5924
5932
  }
@@ -5961,14 +5969,14 @@ class zh extends fl {
5961
5969
  const e = this.getComponentContainer(), t = this.getOptions(), n = v(t, "meter", "proportional", "total"), s = n ? v(t, "meter", "proportional", "total") : this.model.getMaximumDomain(this.model.getDisplayData()), a = v(t, "meter", "proportional", "unit") ? v(t, "meter", "proportional", "unit") : "", i = v(t, "meter", "proportional", "totalFormatter"), { code: r, number: l } = v(t, "locale"), c = i !== null ? i(s) : `${l(n, r)} ${a} total`, d = S.getHTMLElementSize(this.parent.node()).width, p = e.selectAll("text.proportional-meter-total").data([c]);
5962
5970
  p.enter().append("text").classed("proportional-meter-total", !0).merge(p).attr(
5963
5971
  "x",
5964
- this.model.getStatus() && typeof d != "string" ? d - ge.total.paddingRight : d
5972
+ this.model.getStatus() && typeof d != "string" ? d - me.total.paddingRight : d
5965
5973
  ).attr("y", "1em").attr("text-anchor", "end").text((h) => h), p.exit().remove();
5966
5974
  }
5967
5975
  /**
5968
5976
  * Appends the corresponding status based on the value and the peak.
5969
5977
  */
5970
5978
  displayStatus() {
5971
- const e = this, t = this.getComponentContainer(), n = S.getHTMLElementSize(this.parent.node()).width || 0, s = this.model.getStatus(), a = ge.status.indicatorSize / 2, i = S.appendOrSelect(t, "g.status-indicator").attr("class", s !== null ? `status-indicator status--${s}` : "").attr("transform", `translate(${n - a}, 0)`), r = s ? [s] : [], l = i.selectAll("circle.status").data(r);
5979
+ const e = this, t = this.getComponentContainer(), n = S.getHTMLElementSize(this.parent.node()).width || 0, s = this.model.getStatus(), a = me.status.indicatorSize / 2, i = S.appendOrSelect(t, "g.status-indicator").attr("class", s !== null ? `status-indicator status--${s}` : "").attr("transform", `translate(${n - a}, 0)`), r = s ? [s] : [], l = i.selectAll("circle.status").data(r);
5972
5980
  l.enter().append("circle").merge(l).attr("class", "status").attr("r", a).attr("cx", 0).attr("cy", 8);
5973
5981
  const c = i.selectAll("path.innerFill").data(r);
5974
5982
  c.enter().append("path").merge(c).attr("d", e.getStatusIconPathString(s)).attr("transform", `translate(-${a}, 0)`).attr("class", "innerFill"), c.exit().remove(), l.exit().remove();
@@ -5977,7 +5985,7 @@ class zh extends fl {
5977
5985
  * Appends the associated percentage to the end of the title
5978
5986
  */
5979
5987
  appendPercentage() {
5980
- const e = v(this.model.getDisplayData(), 0, "value"), { code: t, number: n } = v(this.getOptions(), "locale"), s = this.getComponentContainer(), a = S.appendOrSelect(s, "text.meter-title"), i = v(this.getOptions(), "meter", "statusBar", "percentageIndicator", "enabled") === !0 ? [e] : [], r = s.selectAll("text.percent-value").data(i), l = ge.statusBar.paddingRight;
5988
+ const e = v(this.model.getDisplayData(), 0, "value"), { code: t, number: n } = v(this.getOptions(), "locale"), s = this.getComponentContainer(), a = S.appendOrSelect(s, "text.meter-title"), i = v(this.getOptions(), "meter", "statusBar", "percentageIndicator", "enabled") === !0 ? [e] : [], r = s.selectAll("text.percent-value").data(i), l = me.statusBar.paddingRight;
5981
5989
  r.enter().append("text").classed("percent-value", !0).merge(r).text((c) => `${c != null ? n(c, t) : 0}%`).attr("x", +a.attr("x") + a.node().getComputedTextLength() + l).attr("y", a.attr("y")), r.exit().remove();
5982
5990
  }
5983
5991
  /**
@@ -5988,7 +5996,7 @@ class zh extends fl {
5988
5996
  */
5989
5997
  truncateTitle(e, t) {
5990
5998
  super.truncateTitle(e, t);
5991
- const n = S.appendOrSelect(this.parent, "tspan"), s = ge.statusBar.paddingRight, a = Math.ceil(n.node().getComputedTextLength());
5999
+ const n = S.appendOrSelect(this.parent, "tspan"), s = me.statusBar.paddingRight, a = Math.ceil(n.node().getComputedTextLength());
5992
6000
  S.appendOrSelect(this.parent, "text.percent-value").attr(
5993
6001
  "x",
5994
6002
  +e.attr("x") + e.node().getComputedTextLength() + a + s
@@ -6001,9 +6009,9 @@ class zh extends fl {
6001
6009
  const n = S.appendOrSelect(this.parent, "text.proportional-meter-total").node(), s = S.getSVGElementSize(n, {
6002
6010
  useBBox: !0
6003
6011
  }).width;
6004
- return t - s - ge.total.paddingLeft;
6012
+ return t - s - me.total.paddingLeft;
6005
6013
  } else {
6006
- const n = S.appendOrSelect(this.parent, "text.percent-value"), s = ge.statusBar.paddingRight, a = n.node().getComputedTextLength(), i = S.appendOrSelect(this.parent, "g.status-indicator").node(), r = S.getSVGElementSize(i, { useBBox: !0 }).width + ge.status.paddingLeft;
6014
+ const n = S.appendOrSelect(this.parent, "text.percent-value"), s = me.statusBar.paddingRight, a = n.node().getComputedTextLength(), i = S.appendOrSelect(this.parent, "g.status-indicator").node(), r = S.getSVGElementSize(i, { useBBox: !0 }).width + me.status.paddingLeft;
6007
6015
  return t - a - s - r;
6008
6016
  }
6009
6017
  }
@@ -6013,16 +6021,16 @@ class zh extends fl {
6013
6021
  */
6014
6022
  getStatusIconPathString(e) {
6015
6023
  switch (e) {
6016
- case on.SUCCESS:
6024
+ case ln.SUCCESS:
6017
6025
  return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
6018
- case on.DANGER:
6026
+ case ln.DANGER:
6019
6027
  return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
6020
- case on.WARNING:
6028
+ case ln.WARNING:
6021
6029
  return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
6022
6030
  }
6023
6031
  }
6024
6032
  }
6025
- class Xn extends Y {
6033
+ class Zn extends Y {
6026
6034
  // Gets the correct width for bars based on options & configurations
6027
6035
  getBarWidth() {
6028
6036
  const e = this.getOptions();
@@ -6048,7 +6056,7 @@ class Xn extends Y {
6048
6056
  return !1;
6049
6057
  }
6050
6058
  }
6051
- class Wh extends Y {
6059
+ class $h extends Y {
6052
6060
  constructor() {
6053
6061
  super(...arguments), this.type = "circle-pack", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
6054
6062
  const { hoveredElement: t } = e.detail;
@@ -6079,7 +6087,7 @@ class Wh extends Y {
6079
6087
  let a = this.model.getDisplayData();
6080
6088
  const i = this.model.hasParentNode(), r = this.model.getHierarchyLevel(), l = this.getOptions(), c = v(l, "canvasZoom", "enabled");
6081
6089
  i && v(a, 0, "children") && (a = v(a, 0, "children"));
6082
- const d = Fn({ children: a }).sum((m) => m.value).sort((m, E) => E.value - m.value), h = oi().size([n, s]).padding((m) => m.depth >= 1 ? yt.padding.children + 3 : yt.padding.mainGroup + 3)(d).descendants().splice(1).filter((m) => m.depth <= r), u = t.selectAll("circle.node").data(h);
6090
+ const d = zn({ children: a }).sum((m) => m.value).sort((m, E) => E.value - m.value), h = ni().size([n, s]).padding((m) => m.depth >= 1 ? yt.padding.children + 3 : yt.padding.mainGroup + 3)(d).descendants().splice(1).filter((m) => m.depth <= r), u = t.selectAll("circle.node").data(h);
6083
6091
  u.exit().attr("width", 0).attr("height", 0).remove();
6084
6092
  const g = u.enter().append("circle").classed("node", !0);
6085
6093
  g.merge(u).attr("class", (m) => {
@@ -6094,7 +6102,7 @@ class Wh extends Y {
6094
6102
  transition: m,
6095
6103
  name: "circlepack-leaf-update-enter"
6096
6104
  })
6097
- ).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity", yt.circles.fillOpacity), c === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, g, _t), this.setBackgroundListeners()), i || this.addLegendListeners(), this.addEventListeners();
6105
+ ).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity", yt.circles.fillOpacity), c === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, g, Rt), this.setBackgroundListeners()), i || this.addLegendListeners(), this.addEventListeners();
6098
6106
  }
6099
6107
  // turn off the highlight class on children circles
6100
6108
  unhighlightChildren(e) {
@@ -6119,7 +6127,7 @@ class Wh extends Y {
6119
6127
  setBackgroundListeners() {
6120
6128
  const e = T(this.services.domUtils.getMainContainer()), t = this, n = this.parent.selectAll("circle.node");
6121
6129
  e.on("click", () => {
6122
- t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(n, _t);
6130
+ t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(n, Rt);
6123
6131
  });
6124
6132
  }
6125
6133
  // Zoom icon to be appended to the label in the tooltip
@@ -6205,10 +6213,10 @@ class Wh extends Y {
6205
6213
  const s = T(this), a = s.classed("non-focal"), i = v(e.model.getOptions(), "canvasZoom", "enabled");
6206
6214
  if (i && e.model.getHierarchyLevel() > 2) {
6207
6215
  const r = e.parent.selectAll("circle.node");
6208
- T(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r, _t);
6216
+ T(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r, Rt);
6209
6217
  } else if (n.depth === 2 && n.children && !a && i) {
6210
6218
  const r = e.parent.selectAll("circle.node");
6211
- T(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = n, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(n, r, _t), t.stopPropagation();
6219
+ T(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = n, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(n, r, Rt), t.stopPropagation();
6212
6220
  }
6213
6221
  e.services.events.dispatchEvent(f.CirclePack.CIRCLE_CLICK, {
6214
6222
  event: t,
@@ -6223,11 +6231,11 @@ class Wh extends Y {
6223
6231
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
6224
6232
  }
6225
6233
  }
6226
- function Il(o, e) {
6227
- const t = ci(this._current, o);
6234
+ function Ml(o, e) {
6235
+ const t = ai(this._current, o);
6228
6236
  return (n) => (this._current = t(n), e(this._current));
6229
6237
  }
6230
- class Rl extends Y {
6238
+ class Cl extends Y {
6231
6239
  constructor() {
6232
6240
  super(...arguments), this.type = "pie", this.renderType = j.SVG, this.isRendering = !1, this.handleLegendOnHover = (e) => {
6233
6241
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -6260,8 +6268,8 @@ class Rl extends Y {
6260
6268
  const t = this, n = this.getComponentContainer(), s = this.getOptions(), { groupMapsTo: a } = s.data, { valueMapsTo: i } = s.pie;
6261
6269
  this.isRendering = !0;
6262
6270
  const r = this.model.getDisplayData().filter((M) => M[i] > 0), l = this.computeRadius();
6263
- this.arc = Lt().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = Lt().innerRadius(this.getInnerRadius()).outerRadius(l + te.hoverArc.outerRadiusOffset);
6264
- const d = li().value((M) => M[i]).sort(v(s, "pie", "sortFunction")).padAngle(te.padAngle)(r), h = S.appendOrSelect(n, "g.slices").attr("role", X.GROUP).attr("data-name", "slices").selectAll("path.slice").data(d, (M) => M.data[a]);
6271
+ this.arc = At().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = At().innerRadius(this.getInnerRadius()).outerRadius(l + te.hoverArc.outerRadiusOffset);
6272
+ const d = si().value((M) => M[i]).sort(v(s, "pie", "sortFunction")).padAngle(te.padAngle)(r), h = S.appendOrSelect(n, "g.slices").attr("role", X.GROUP).attr("data-name", "slices").selectAll("path.slice").data(d, (M) => M.data[a]);
6265
6273
  h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
6266
6274
  "class",
6267
6275
  (M) => this.model.getColorClassName({
@@ -6277,9 +6285,9 @@ class Rl extends Y {
6277
6285
  })
6278
6286
  ).attr("opacity", 1).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
6279
6287
  "aria-label",
6280
- (M) => `${M[i]}, ${sn(M.data[i], r, i) + "%"}`
6288
+ (M) => `${M[i]}, ${an(M.data[i], r, i) + "%"}`
6281
6289
  ).attrTween("d", function(M) {
6282
- return Il.bind(this)(M, t.arc);
6290
+ return Ml.bind(this)(M, t.arc);
6283
6291
  }).on("end", () => {
6284
6292
  t.isRendering = !1;
6285
6293
  });
@@ -6288,23 +6296,23 @@ class Rl extends Y {
6288
6296
  const A = w.enter().append("text").classed("pie-label", !0), L = [];
6289
6297
  A.merge(w).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
6290
6298
  ...M,
6291
- percentageValue: sn(
6299
+ percentageValue: an(
6292
6300
  M.data[i],
6293
6301
  r,
6294
6302
  i,
6295
6303
  !0
6296
6304
  )
6297
6305
  }) : E(
6298
- sn(M.data[i], r, i),
6306
+ an(M.data[i], r, i),
6299
6307
  m
6300
6308
  ) + "%").datum(function(M) {
6301
- const J = l + 7, me = (M.endAngle - M.startAngle) / 2 + M.startAngle, q = me / Math.PI * 180, H = this.getComputedTextLength();
6302
- return M.textOffsetX = H / 2, M.textOffsetY = q > 90 && q < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + J) * Math.sin(me), M.yPosition = (M.textOffsetY + J) * -Math.cos(me), M;
6309
+ const J = l + 7, fe = (M.endAngle - M.startAngle) / 2 + M.startAngle, q = fe / Math.PI * 180, H = this.getComputedTextLength();
6310
+ return M.textOffsetX = H / 2, M.textOffsetY = q > 90 && q < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + J) * Math.sin(fe), M.yPosition = (M.textOffsetY + J) * -Math.cos(fe), M;
6303
6311
  }).attr("transform", function(M, J) {
6304
- const me = x.length, q = (M.endAngle - M.startAngle) * (180 / Math.PI);
6305
- if (J >= me - 2 && q < te.callout.minSliceDegree) {
6312
+ const fe = x.length, q = (M.endAngle - M.startAngle) * (180 / Math.PI);
6313
+ if (J >= fe - 2 && q < te.callout.minSliceDegree) {
6306
6314
  let H, ae;
6307
- return M.index === me - 1 ? (H = M.xPosition + te.callout.offsetX + te.callout.textMargin + M.textOffsetX, ae = M.yPosition - te.callout.offsetY, M.direction = ln.RIGHT, L.push(M)) : (H = M.xPosition - te.callout.offsetX - M.textOffsetX - te.callout.textMargin, ae = M.yPosition - te.callout.offsetY, M.direction = ln.LEFT, L.push(M)), `translate(${H}, ${ae})`;
6315
+ return M.index === fe - 1 ? (H = M.xPosition + te.callout.offsetX + te.callout.textMargin + M.textOffsetX, ae = M.yPosition - te.callout.offsetY, M.direction = cn.RIGHT, L.push(M)) : (H = M.xPosition - te.callout.offsetX - M.textOffsetX - te.callout.textMargin, ae = M.yPosition - te.callout.offsetY, M.direction = cn.LEFT, L.push(M)), `translate(${H}, ${ae})`;
6308
6316
  }
6309
6317
  return `translate(${M.xPosition}, ${M.yPosition})`;
6310
6318
  }), this.renderCallouts(L);
@@ -6322,7 +6330,7 @@ class Rl extends Y {
6322
6330
  const s = n.enter().append("g").classed("callout", !0).attr("role", X.GROUP).attr("aria-roledescription", "label callout");
6323
6331
  s.merge(n).datum(function(r) {
6324
6332
  const { xPosition: l, yPosition: c, direction: d } = r;
6325
- return d === ln.RIGHT ? (r.startPos = {
6333
+ return d === cn.RIGHT ? (r.startPos = {
6326
6334
  x: l,
6327
6335
  y: c + r.textOffsetY
6328
6336
  }, r.endPos = {
@@ -6383,7 +6391,7 @@ class Rl extends Y {
6383
6391
  });
6384
6392
  }).on("mouseout", function(t, n) {
6385
6393
  const s = T(this);
6386
- Cr(() => {
6394
+ Tr(() => {
6387
6395
  e.isRendering || s.classed("hovered", !1).transition("pie_slice_mouseout").call(
6388
6396
  (a) => e.services.transitions.setupTransition({
6389
6397
  transition: a,
@@ -6407,7 +6415,7 @@ class Rl extends Y {
6407
6415
  return n.pie.labels.enabled ? s + te.radiusOffset : s;
6408
6416
  }
6409
6417
  }
6410
- class jh extends Rl {
6418
+ class Fh extends Cl {
6411
6419
  constructor() {
6412
6420
  super(...arguments), this.type = "donut", this.renderType = j.SVG;
6413
6421
  }
@@ -6438,7 +6446,7 @@ class jh extends Rl {
6438
6446
  n === null && (n = this.model.getDisplayData().reduce((r, l) => r + l[t.pie.valueMapsTo], 0));
6439
6447
  const s = parseInt(e.text().replace(/[, ]+/g, ""), 10) || 0;
6440
6448
  let a;
6441
- s % 1 === 0 && n % 1 === 0 ? a = di : a = aa;
6449
+ s % 1 === 0 && n % 1 === 0 ? a = ii : a = ta;
6442
6450
  const i = a(s, n);
6443
6451
  return (r) => {
6444
6452
  const { numberFormatter: l } = t.donut.center;
@@ -6451,8 +6459,8 @@ class jh extends Rl {
6451
6459
  };
6452
6460
  }
6453
6461
  }
6454
- const Zs = "4,10 8,6 12,10", Ys = "12,6 8,10 4,6";
6455
- class Xh extends Y {
6462
+ const Ws = "4,10 8,6 12,10", js = "12,6 8,10 4,6";
6463
+ class zh extends Y {
6456
6464
  constructor() {
6457
6465
  super(...arguments), this.type = "gauge", this.renderType = j.SVG;
6458
6466
  }
@@ -6461,7 +6469,7 @@ class Xh extends Y {
6461
6469
  return ((n = this.model.getData().find((s) => s.group === "value")) == null ? void 0 : n.value) ?? null;
6462
6470
  }
6463
6471
  getValueRatio() {
6464
- return Sa(this.getValue(), 0, 100) / 100;
6472
+ return ya(this.getValue(), 0, 100) / 100;
6465
6473
  }
6466
6474
  getDelta() {
6467
6475
  var n;
@@ -6469,7 +6477,7 @@ class Xh extends Y {
6469
6477
  }
6470
6478
  getArcRatio() {
6471
6479
  const e = this.getOptions();
6472
- return v(e, "gauge", "type") === Rt.FULL ? 1 : 0.5;
6480
+ return v(e, "gauge", "type") === Dt.FULL ? 1 : 0.5;
6473
6481
  }
6474
6482
  getArcSize() {
6475
6483
  return this.getArcRatio() * Math.PI * 2;
@@ -6482,12 +6490,12 @@ class Xh extends Y {
6482
6490
  getArrow(e) {
6483
6491
  const t = this.getOptions();
6484
6492
  switch (v(t, "gauge", "deltaArrow", "direction")) {
6485
- case bs.UP:
6486
- return Zs;
6487
- case bs.DOWN:
6488
- return Ys;
6493
+ case Os.UP:
6494
+ return Ws;
6495
+ case Os.DOWN:
6496
+ return js;
6489
6497
  default:
6490
- return e > 0 ? Zs : Ys;
6498
+ return e > 0 ? Ws : js;
6491
6499
  }
6492
6500
  }
6493
6501
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -6495,7 +6503,7 @@ class Xh extends Y {
6495
6503
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6496
6504
  render(e = !0) {
6497
6505
  const t = this.getComponentContainer().attr("width", "100%").attr("height", "100%"), n = this.getOptions(), s = this.getValue(), a = this.getValueRatio(), i = this.getArcSize(), r = this.getStartAngle(), l = a * i, c = r + l, d = r + i, p = this.computeRadius(), h = this.getInnerRadius();
6498
- this.backgroundArc = Lt().innerRadius(h).outerRadius(p).startAngle(c).endAngle(d), this.arc = Lt().innerRadius(h).outerRadius(p).startAngle(r).endAngle(c), S.appendOrSelect(t, "path.arc-background").attr("d", this.backgroundArc);
6506
+ this.backgroundArc = At().innerRadius(h).outerRadius(p).startAngle(c).endAngle(d), this.arc = At().innerRadius(h).outerRadius(p).startAngle(r).endAngle(c), S.appendOrSelect(t, "path.arc-background").attr("d", this.backgroundArc);
6499
6507
  const u = t.selectAll("path.arc-foreground").data([s]);
6500
6508
  u.enter().append("path").merge(u).attr(
6501
6509
  "class",
@@ -6517,7 +6525,7 @@ class Xh extends Y {
6517
6525
  drawValueNumber() {
6518
6526
  const e = this.getComponentContainer(), t = this.getOptions(), n = v(t, "gauge", "type"), s = this.getValue(), a = this.getDelta(), i = this.computeRadius(), r = v(t, "gauge", "valueFontSize"), l = v(t, "gauge", "deltaFontSize"), c = v(t, "gauge", "numberSpacing"), d = v(t, "gauge", "showPercentageSymbol");
6519
6527
  let p = 0;
6520
- n === Rt.FULL && !a ? p = l(i) : n === Rt.SEMI && a && (p = -(l(i) + c));
6528
+ n === Dt.FULL && !a ? p = l(i) : n === Dt.SEMI && a && (p = -(l(i) + c));
6521
6529
  const h = S.appendOrSelect(e, "g.gauge-numbers").attr(
6522
6530
  "transform",
6523
6531
  `translate(0, ${p})`
@@ -6602,10 +6610,10 @@ class Xh extends Y {
6602
6610
  const e = this.getOptions(), t = v(e, "gauge", "type"), { width: n, height: s } = S.getSVGElementSize(this.parent, {
6603
6611
  useAttrs: !0
6604
6612
  });
6605
- return t === Rt.SEMI ? Math.min(n / 2, s) : Math.min(n / 2, s / 2);
6613
+ return t === Dt.SEMI ? Math.min(n / 2, s) : Math.min(n / 2, s / 2);
6606
6614
  }
6607
6615
  }
6608
- class Zh extends Xn {
6616
+ class Wh extends Zn {
6609
6617
  constructor() {
6610
6618
  super(...arguments), this.type = "grouped-bar", this.renderType = j.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
6611
6619
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -6631,7 +6639,7 @@ class Zh extends Xn {
6631
6639
  render(e) {
6632
6640
  const t = this.model.getDisplayData(this.configs.groups), n = this.getOptions(), { groupMapsTo: s } = n.data;
6633
6641
  this.setGroupScale();
6634
- const a = this.getComponentContainer({ withinChartClip: !0 }), i = ti(
6642
+ const a = this.getComponentContainer({ withinChartClip: !0 }), i = qa(
6635
6643
  t.map((h) => {
6636
6644
  const u = this.services.cartesianScales.getDomainIdentifier(h);
6637
6645
  return h[u] && typeof h[u].toString == "function" ? h[u].toString() : h[u];
@@ -6672,7 +6680,7 @@ class Zh extends Xn {
6672
6680
  }).attr("d", (h) => {
6673
6681
  const u = this.groupScale(h[s]), g = this.getBarWidth(), m = u, E = u + g, O = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), x = this.services.cartesianScales.getDomainLowerBound(O), y = this.services.cartesianScales.getValueThroughAxisPosition(O, x), w = this.services.cartesianScales.getRangeValue(h), A = this.services.cartesianScales.getDomainValue(h) - g / 2, L = A + g;
6674
6682
  if (!this.isOutsideZoomedDomain(A, L))
6675
- return Ee(
6683
+ return Se(
6676
6684
  { x0: m, x1: E, y0: y, y1: w },
6677
6685
  this.services.cartesianScales.getOrientation()
6678
6686
  );
@@ -6768,10 +6776,10 @@ class Zh extends Xn {
6768
6776
  }
6769
6777
  setGroupScale() {
6770
6778
  const e = this.model.getActiveDataGroupNames(this.configs.groups);
6771
- this.groupScale = Un().domain(e).rangeRound([0, this.getGroupWidth()]);
6779
+ this.groupScale = Fn().domain(e).rangeRound([0, this.getGroupWidth()]);
6772
6780
  }
6773
6781
  }
6774
- class Yh extends Y {
6782
+ class jh extends Y {
6775
6783
  constructor() {
6776
6784
  super(...arguments), this.type = "heatmap", this.renderType = j.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
6777
6785
  x: 0,
@@ -6797,7 +6805,7 @@ class Yh extends Y {
6797
6805
  }
6798
6806
  p += m, h = m < h ? m : h, u = m > u ? m : u;
6799
6807
  }
6800
- })), l(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(n)}, ${En(c.range())})`) : c(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${En(l.range())},${c(n)})`), this.services.events.dispatchEvent(f.Tooltip.SHOW, {
6808
+ })), l(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(n)}, ${bn(c.range())})`) : c(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${bn(l.range())},${c(n)})`), this.services.events.dispatchEvent(f.Tooltip.SHOW, {
6801
6809
  event: t.event,
6802
6810
  hoveredElement: T(e.detail.element),
6803
6811
  items: [
@@ -6879,14 +6887,14 @@ class Yh extends Y {
6879
6887
  }
6880
6888
  determineDividerStatus() {
6881
6889
  const e = v(this.getOptions(), "heatmap", "divider", "state");
6882
- return e !== cn.OFF && (e === cn.AUTO && ms.minCellDividerDimension <= this.xBandwidth && ms.minCellDividerDimension <= this.yBandwidth || e === cn.ON);
6890
+ return e !== dn.OFF && (e === dn.AUTO && vs.minCellDividerDimension <= this.xBandwidth && vs.minCellDividerDimension <= this.yBandwidth || e === dn.ON);
6883
6891
  }
6884
6892
  addEventListener() {
6885
6893
  const e = this, { cartesianScales: t } = this.services, n = this.getOptions(), s = ne(n, "locale.translations.total") || ne(n, "tooltip.totalLabel") || "Total", a = t.getDomainIdentifier(), i = t.getRangeIdentifier(), r = t.getDomainLabel(), l = t.getRangeLabel();
6886
6894
  this.parent.selectAll("g.cell").on("mouseover", function(c, d) {
6887
6895
  const p = T(this), h = p.select("rect.heat");
6888
6896
  if (!h.classed("null-state")) {
6889
- const g = Ot(p.attr("transform"));
6897
+ const g = Tt(p.attr("transform"));
6890
6898
  e.parent.select("g.cell-highlight").attr(
6891
6899
  "transform",
6892
6900
  `translate(${g.x + e.translationUnits.x}, ${g.y + e.translationUnits.y})`
@@ -6946,7 +6954,7 @@ class Yh extends Y {
6946
6954
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
6947
6955
  }
6948
6956
  }
6949
- class qh extends Y {
6957
+ class Xh extends Y {
6950
6958
  constructor() {
6951
6959
  super(...arguments), this.type = "histogram", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
6952
6960
  const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
@@ -6992,7 +7000,7 @@ class qh extends Y {
6992
7000
  return;
6993
7001
  const h = r(p.x1) - r(p.x0) - 1, u = this.services.cartesianScales.getDomainValue(p.x0), g = u + h, m = this.services.cartesianScales.getRangeValue(d[0]);
6994
7002
  let E = this.services.cartesianScales.getRangeValue(d[1]);
6995
- return Math.abs(E - m) > 0 && Math.abs(E - m) > n.bars.dividerSize && (this.services.cartesianScales.getOrientation() === xe.VERTICAL ? E += 1 : E -= 1), Ee(
7003
+ return Math.abs(E - m) > 0 && Math.abs(E - m) > n.bars.dividerSize && (this.services.cartesianScales.getOrientation() === xe.VERTICAL ? E += 1 : E -= 1), Se(
6996
7004
  { x0: u, x1: g, y0: m, y1: E },
6997
7005
  this.services.cartesianScales.getOrientation()
6998
7006
  );
@@ -7040,13 +7048,13 @@ class qh extends Y {
7040
7048
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7041
7049
  }
7042
7050
  }
7043
- class Kh extends Wn {
7051
+ class Zh extends jn {
7044
7052
  constructor() {
7045
7053
  super(...arguments), this.type = "lollipop", this.renderType = j.SVG, this.handleScatterOnHover = (e) => {
7046
7054
  const t = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
7047
- this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ? He.weight.unselected : He.weight.selected);
7055
+ this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ? Ue.weight.unselected : Ue.weight.selected);
7048
7056
  }, this.handleScatterOnMouseOut = () => {
7049
- this.parent.selectAll("line.line").attr("stroke-width", He.weight.unselected);
7057
+ this.parent.selectAll("line.line").attr("stroke-width", Ue.weight.unselected);
7050
7058
  }, this.handleLegendOnHover = (e) => {
7051
7059
  const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
7052
7060
  this.parent.selectAll("line.line").transition("legend-hover-line").call(
@@ -7054,14 +7062,14 @@ class Kh extends Wn {
7054
7062
  transition: a,
7055
7063
  name: "legend-hover-line"
7056
7064
  })
7057
- ).attr("opacity", (a) => a[s] !== t.datum().name ? He.opacity.unselected : He.opacity.selected);
7065
+ ).attr("opacity", (a) => a[s] !== t.datum().name ? Ue.opacity.unselected : Ue.opacity.selected);
7058
7066
  }, this.handleLegendMouseOut = () => {
7059
7067
  this.parent.selectAll("line.line").transition("legend-mouseout-line").call(
7060
7068
  (e) => this.services.transitions.setupTransition({
7061
7069
  transition: e,
7062
7070
  name: "legend-mouseout-line"
7063
7071
  })
7064
- ).attr("opacity", He.opacity.selected);
7072
+ ).attr("opacity", Ue.opacity.selected);
7065
7073
  };
7066
7074
  }
7067
7075
  init() {
@@ -7069,7 +7077,7 @@ class Kh extends Wn {
7069
7077
  e.addEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.addEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7070
7078
  }
7071
7079
  render(e) {
7072
- const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: s } = n.data, { cartesianScales: a } = this.services, i = a.getMainXScale(), r = a.getMainYScale(), l = a.getDomainIdentifier(), c = (O) => a.getDomainValue(O), d = (O) => a.getRangeValue(O), p = a.getOrientation(), [h, u] = Ue(
7080
+ const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: s } = n.data, { cartesianScales: a } = this.services, i = a.getMainXScale(), r = a.getMainYScale(), l = a.getDomainIdentifier(), c = (O) => a.getDomainValue(O), d = (O) => a.getRangeValue(O), p = a.getOrientation(), [h, u] = Fe(
7073
7081
  c,
7074
7082
  d,
7075
7083
  p
@@ -7112,7 +7120,7 @@ class Kh extends Wn {
7112
7120
  );
7113
7121
  }
7114
7122
  }
7115
- class Jh extends Y {
7123
+ class Yh extends Y {
7116
7124
  constructor() {
7117
7125
  super(...arguments), this.type = "meter", this.renderType = j.SVG;
7118
7126
  }
@@ -7120,11 +7128,11 @@ class Jh extends Y {
7120
7128
  let n = 0;
7121
7129
  return e.map((a, i) => i !== 0 ? (n += t(a.value), {
7122
7130
  ...a,
7123
- width: Math.abs(t(a.value) - ge.dividerWidth),
7131
+ width: Math.abs(t(a.value) - me.dividerWidth),
7124
7132
  x: n - t(a.value)
7125
7133
  }) : (n = t(a.value), {
7126
7134
  ...a,
7127
- width: Math.abs(t(a.value) - ge.dividerWidth),
7135
+ width: Math.abs(t(a.value) - me.dividerWidth),
7128
7136
  x: 0
7129
7137
  }));
7130
7138
  }
@@ -7142,13 +7150,13 @@ class Jh extends Y {
7142
7150
  const p = qe().domain([0, d]).range([0, l]), h = this.getStackedBounds(i, p), u = v(s, "meter", "height");
7143
7151
  S.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", l).attr(
7144
7152
  "height",
7145
- u || (a ? ge.height.proportional : ge.height.default)
7153
+ u || (a ? me.height.proportional : me.height.default)
7146
7154
  ), S.appendOrSelect(n, "line.rangeIndicator").attr("x1", l).attr("x2", l).attr("y1", 0).attr(
7147
7155
  "y2",
7148
- u || (a ? ge.height.proportional : ge.height.default)
7156
+ u || (a ? me.height.proportional : me.height.default)
7149
7157
  );
7150
7158
  const g = n.selectAll("rect.value").data(h), m = r != null && !t.model.isUserProvidedColorScaleValid() && !a ? `value status--${r}` : "value";
7151
- g.enter().append("rect").classed("value", !0).merge(g).attr("x", (y) => y.x).attr("y", 0).attr("height", () => u || (a ? ge.height.proportional : ge.height.default)).attr(
7159
+ g.enter().append("rect").classed("value", !0).merge(g).attr("x", (y) => y.x).attr("y", 0).attr("height", () => u || (a ? me.height.proportional : me.height.default)).attr(
7152
7160
  "class",
7153
7161
  (y) => this.model.getColorClassName({
7154
7162
  classNameTypes: [z.FILL],
@@ -7166,7 +7174,7 @@ class Jh extends Y {
7166
7174
  let O = E;
7167
7175
  E !== null && (E > d ? O = d : E < i[0].value && (O = i[0].value > d ? d : i[0].value));
7168
7176
  const x = n.selectAll("line.peak").data(O == null ? [] : [O]);
7169
- x.enter().append("line").classed("peak", !0).merge(x).attr("y1", 0).attr("y2", () => u || (a ? ge.height.proportional : ge.height.default)).transition().call(
7177
+ x.enter().append("line").classed("peak", !0).merge(x).attr("y1", 0).attr("y2", () => u || (a ? me.height.proportional : me.height.default)).transition().call(
7170
7178
  (y) => this.services.transitions.setupTransition({
7171
7179
  transition: y,
7172
7180
  name: "peak-line-update",
@@ -7223,13 +7231,13 @@ class Jh extends Y {
7223
7231
  this.parent.selectAll("rect.value").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
7224
7232
  }
7225
7233
  }
7226
- class Qh extends Y {
7234
+ class qh extends Y {
7227
7235
  constructor() {
7228
7236
  super(...arguments), this.type = "radar", this.renderType = j.SVG, this.getLabelDimensions = (e) => {
7229
7237
  const t = S.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), n = S.appendOrSelect(t, "text").text(e), { width: s, height: a } = S.getSVGElementSize(n.node(), { useBBox: !0 });
7230
7238
  return t.remove(), { width: s, height: a };
7231
7239
  }, this.normalizeFlatData = (e) => {
7232
- const t = this.getOptions(), { angle: n, value: s } = v(t, "radar", "axes"), a = v(t, "data", "groupMapsTo"), i = kr(
7240
+ const t = this.getOptions(), { angle: n, value: s } = v(t, "radar", "axes"), a = v(t, "data", "groupMapsTo"), i = wr(
7233
7241
  this.uniqueKeys.map((r) => this.uniqueGroups.map((l) => ({
7234
7242
  [n]: r,
7235
7243
  [a]: l,
@@ -7276,20 +7284,20 @@ class Qh extends Y {
7276
7284
  const x = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), A = (Math.min(n, s) - x) / 2;
7277
7285
  if (A <= 0)
7278
7286
  return;
7279
- const L = Un().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = En(this.fullDataNormalized.map((_) => _[p])), P = qe().domain([
7287
+ const L = Fn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = bn(this.fullDataNormalized.map((_) => _[p])), P = qe().domain([
7280
7288
  I >= 0 ? 0 : I,
7281
- fs(this.fullDataNormalized.map((_) => _[p]))
7282
- ]).range([m, A]).nice(g), W = P.ticks(g), k = (_, R, N) => this.model.getFillColor(_, R, N), C = hi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => P(_[p])).curve(ui), V = this.uniqueKeys.map((_) => {
7283
- const R = this.getLabelDimensions(_).width, N = Li(
7289
+ ys(this.fullDataNormalized.map((_) => _[p]))
7290
+ ]).range([m, A]).nice(g), W = P.ticks(g), k = (_, R, N) => this.model.getFillColor(_, R, N), C = ri().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => P(_[p])).curve(oi), V = this.uniqueKeys.map((_) => {
7291
+ const R = this.getLabelDimensions(_).width, N = bi(
7284
7292
  L(_),
7285
7293
  A
7286
7294
  );
7287
7295
  return R + N;
7288
7296
  }), M = {
7289
- x: fs(V) + h,
7297
+ x: ys(V) + h,
7290
7298
  y: s / 2
7291
- }, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(W, (_) => _), q = (_) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: _ }));
7292
- me.join(
7299
+ }, fe = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(W, (_) => _), q = (_) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: _ }));
7300
+ fe.join(
7293
7301
  (_) => _.append("path").attr("opacity", 0).attr("transform", `translate(${M.x}, ${M.y})`).attr("fill", "none").call(
7294
7302
  (R) => R.transition().call(
7295
7303
  (N) => this.services.transitions.setupTransition({
@@ -7352,9 +7360,9 @@ class Qh extends Y {
7352
7360
  ).attr(
7353
7361
  "y",
7354
7362
  (R) => le(L(R), P.range()[1] + h, M).y
7355
- ).style("text-anchor", (R) => ys(L(R)).textAnchor).style(
7363
+ ).style("text-anchor", (R) => bs(L(R)).textAnchor).style(
7356
7364
  "dominant-baseline",
7357
- (R) => ys(L(R)).dominantBaseline
7365
+ (R) => bs(L(R)).dominantBaseline
7358
7366
  ).call(
7359
7367
  (R) => R.transition().call(
7360
7368
  (N) => this.services.transitions.setupTransition({
@@ -7456,9 +7464,9 @@ class Qh extends Y {
7456
7464
  (_) => _.append("rect"),
7457
7465
  (_) => _,
7458
7466
  (_) => _.remove()
7459
- ).attr("x", M.x).attr("y", M.y - E / 2).attr("width", P.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Ai(L(_))}, ${M.x}, ${M.y})`);
7467
+ ).attr("x", M.x).attr("y", M.y - E / 2).attr("width", P.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Si(L(_))}, ${M.x}, ${M.y})`);
7460
7468
  const { code: se, number: oe } = v(r, "locale");
7461
- S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Yt(W)).join(
7469
+ S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Kt(W)).join(
7462
7470
  (_) => _.append("text").attr("opacity", 0).text((R) => oe(R, se)).attr(
7463
7471
  "x",
7464
7472
  (R) => le(-Math.PI / 2, P(R), M).x + u
@@ -7565,7 +7573,7 @@ class Qh extends Y {
7565
7573
  });
7566
7574
  }
7567
7575
  }
7568
- class eu extends Xn {
7576
+ class Kh extends Zn {
7569
7577
  constructor() {
7570
7578
  super(...arguments), this.type = "simple-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
7571
7579
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -7617,7 +7625,7 @@ class eu extends Xn {
7617
7625
  }
7618
7626
  const O = Math.abs(E - m);
7619
7627
  if (O !== 0 && O < 2 && (h > 0 && i === xe.VERTICAL || h < 0 && i === xe.HORIZONTAL ? E = m - 2 : E = m + 2), !this.isOutsideZoomedDomain(u, g))
7620
- return Ee({ x0: u, x1: g, y0: m, y1: E }, i);
7628
+ return Se({ x0: u, x1: g, y0: m, y1: E }, i);
7621
7629
  }).attr("opacity", 1).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (c) => c.value), this.addEventListeners();
7622
7630
  }
7623
7631
  addEventListeners() {
@@ -7664,7 +7672,7 @@ class eu extends Xn {
7664
7672
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7665
7673
  }
7666
7674
  }
7667
- class tu extends Ol {
7675
+ class Jh extends El {
7668
7676
  constructor() {
7669
7677
  super(...arguments), this.type = "skeleton-lines";
7670
7678
  }
@@ -7690,7 +7698,7 @@ class tu extends Ol {
7690
7698
  this.backdrop = S.appendOrSelect(e, "svg.chart-skeleton.DAII"), S.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
7691
7699
  }
7692
7700
  }
7693
- class nu extends Y {
7701
+ class Qh extends Y {
7694
7702
  constructor() {
7695
7703
  super(...arguments), this.type = "area-stacked", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
7696
7704
  const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
@@ -7718,7 +7726,7 @@ class nu extends Y {
7718
7726
  percentage: i,
7719
7727
  groups: this.configs.groups
7720
7728
  }), l = v(r, 0, 0), c = this.services.cartesianScales.getDomainAxisPosition({ datum: l }), d = this.services.cartesianScales.getRangeAxisPosition({ datum: l }), p = this.services.cartesianScales.getScaleByPosition(d), h = t.selectAll("path.area").data(r, (g) => v(g, 0, a));
7721
- this.areaGenerator = Bn().x(
7729
+ this.areaGenerator = Gn().x(
7722
7730
  (g) => this.services.cartesianScales.getValueThroughAxisPosition(
7723
7731
  c,
7724
7732
  g.data.sharedStackKey
@@ -7739,7 +7747,7 @@ class nu extends Y {
7739
7747
  ).attr("opacity", $e.opacity.selected).attr("d", this.areaGenerator);
7740
7748
  }
7741
7749
  }
7742
- class su extends Xn {
7750
+ class eu extends Zn {
7743
7751
  constructor() {
7744
7752
  super(...arguments), this.type = "stacked-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
7745
7753
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.model.getOptions().data;
@@ -7796,7 +7804,7 @@ class su extends Xn {
7796
7804
  const E = c[0] < 0 && c[1] <= 0;
7797
7805
  E && i.length > 1 ? this.services.cartesianScales.getOrientation() === xe.VERTICAL ? m += c[1] === 0 ? 2 : 1 : m -= 1 : E || (this.services.cartesianScales.getOrientation() === xe.VERTICAL ? m += 1 : m -= 1);
7798
7806
  }
7799
- return Ee(
7807
+ return Se(
7800
7808
  { x0: h, x1: u, y0: g, y1: m },
7801
7809
  this.services.cartesianScales.getOrientation()
7802
7810
  );
@@ -7870,7 +7878,7 @@ class su extends Xn {
7870
7878
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7871
7879
  }
7872
7880
  }
7873
- class au extends Wn {
7881
+ class tu extends jn {
7874
7882
  constructor() {
7875
7883
  super(...arguments), this.type = "scatter-stacked", this.renderType = j.SVG;
7876
7884
  }
@@ -7919,7 +7927,7 @@ class au extends Wn {
7919
7927
  }
7920
7928
  }
7921
7929
  const ot = 6;
7922
- class iu extends Y {
7930
+ class nu extends Y {
7923
7931
  constructor() {
7924
7932
  super(...arguments), this.type = "tree", this.renderType = j.SVG;
7925
7933
  }
@@ -7952,7 +7960,7 @@ class iu extends Y {
7952
7960
  right: 0,
7953
7961
  bottom: 0,
7954
7962
  left: l > 0 ? l + ot : 30 - ot
7955
- }, h = Fn({
7963
+ }, h = zn({
7956
7964
  name: r,
7957
7965
  children: i
7958
7966
  }), u = 10, g = n / 6, m = (L) => {
@@ -7990,23 +7998,23 @@ class iu extends Y {
7990
7998
  });
7991
7999
  });
7992
8000
  J.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), J.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -ot : ot).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(), F.merge(J).transition(V).attr("transform", (H) => `translate(${H.y},${H.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), F.exit().transition(V).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
7993
- const me = w.selectAll("path").data(P, (H) => H.target.id), q = me.enter().append("path").attr("d", () => {
8001
+ const fe = w.selectAll("path").data(P, (H) => H.target.id), q = fe.enter().append("path").attr("d", () => {
7994
8002
  const H = { x: L.x0, y: L.y0 };
7995
8003
  return y({ source: H, target: H });
7996
8004
  });
7997
- me.merge(q).transition(V).attr("d", y), me.exit().transition(V).remove().attr("d", () => {
8005
+ fe.merge(q).transition(V).attr("d", y), fe.exit().transition(V).remove().attr("d", () => {
7998
8006
  const H = { x: L.x, y: L.y };
7999
8007
  return y({ source: H, target: H });
8000
8008
  }), h.eachBefore((H) => {
8001
8009
  H.x0 = H.x, H.y0 = H.y;
8002
8010
  });
8003
- }, E = h.descendants(), O = E[E.length - 1].depth, x = v(a, "tree", "type") === Ci.DENDROGRAM ? pi().size([
8011
+ }, E = h.descendants(), O = E[E.length - 1].depth, x = v(a, "tree", "type") === xi.DENDROGRAM ? li().size([
8004
8012
  s,
8005
8013
  n - d - O * ot - l
8006
- ]) : gi().nodeSize([u, g]).size([
8014
+ ]) : ci().nodeSize([u, g]).size([
8007
8015
  s,
8008
8016
  n - d - O * ot - l
8009
- ]), y = mi().x((L) => L.y).y((L) => L.x);
8017
+ ]), y = di().x((L) => L.y).y((L) => L.x);
8010
8018
  h.x0 = g / 2, h.y0 = 0, h.descendants().forEach((L, I) => {
8011
8019
  L.id = I, L._children = L.children;
8012
8020
  }), x(h), t.attr("viewBox", [-p.left, -p.top, n, u]).style("user-select", "none");
@@ -8014,181 +8022,181 @@ class iu extends Y {
8014
8022
  m(h);
8015
8023
  }
8016
8024
  }
8017
- var kl = "#000000", Dl = "#ffffff", Pl = "#fcf4d6", Nl = "#fddc69", Vl = "#f1c21b", Bl = "#d2a106", Gl = "#b28600", Hl = "#8e6a00", $l = "#684e00", Ul = "#483700", Fl = "#302400", zl = "#1c1500", Wl = {
8018
- 10: Pl,
8019
- 20: Nl,
8020
- 30: Vl,
8021
- 40: Bl,
8022
- 50: Gl,
8023
- 60: Hl,
8024
- 70: $l,
8025
- 80: Ul,
8026
- 90: Fl,
8027
- 100: zl
8028
- }, jl = "#fff2e8", Xl = "#ffd9be", Zl = "#ffb784", Yl = "#ff832b", ql = "#eb6200", Kl = "#ba4e00", Jl = "#8a3800", Ql = "#5e2900", ec = "#3e1a00", tc = "#231000", nc = {
8029
- 10: jl,
8030
- 20: Xl,
8031
- 30: Zl,
8032
- 40: Yl,
8033
- 50: ql,
8034
- 60: Kl,
8035
- 70: Jl,
8036
- 80: Ql,
8037
- 90: ec,
8038
- 100: tc
8039
- }, sc = "#fff1f1", ac = "#ffd7d9", ic = "#ffb3b8", rc = "#ff8389", oc = "#fa4d56", lc = "#da1e28", cc = "#a2191f", dc = "#750e13", hc = "#520408", uc = "#2d0709", pc = {
8040
- 10: sc,
8041
- 20: ac,
8042
- 30: ic,
8043
- 40: rc,
8044
- 50: oc,
8045
- 60: lc,
8046
- 70: cc,
8047
- 80: dc,
8048
- 90: hc,
8049
- 100: uc
8050
- }, gc = "#fff0f7", mc = "#ffd6e8", fc = "#ffafd2", vc = "#ff7eb6", yc = "#ee5396", Ec = "#d02670", bc = "#9f1853", Sc = "#740937", Oc = "#510224", Tc = "#2a0a18", xc = {
8051
- 10: gc,
8052
- 20: mc,
8053
- 30: fc,
8054
- 40: vc,
8055
- 50: yc,
8056
- 60: Ec,
8057
- 70: bc,
8058
- 80: Sc,
8059
- 90: Oc,
8060
- 100: Tc
8061
- }, Lc = "#f6f2ff", Ac = "#e8daff", wc = "#d4bbff", Mc = "#be95ff", Cc = "#a56eff", _c = "#8a3ffc", Ic = "#6929c4", Rc = "#491d8b", kc = "#31135e", Dc = "#1c0f30", Pc = {
8062
- 10: Lc,
8063
- 20: Ac,
8064
- 30: wc,
8065
- 40: Mc,
8066
- 50: Cc,
8067
- 60: _c,
8068
- 70: Ic,
8069
- 80: Rc,
8070
- 90: kc,
8071
- 100: Dc
8072
- }, Nc = "#edf5ff", Vc = "#d0e2ff", Bc = "#a6c8ff", Gc = "#78a9ff", Hc = "#4589ff", $c = "#0f62fe", Uc = "#0043ce", Fc = "#002d9c", zc = "#001d6c", Wc = "#001141", jc = {
8073
- 10: Nc,
8074
- 20: Vc,
8075
- 30: Bc,
8076
- 40: Gc,
8077
- 50: Hc,
8078
- 60: $c,
8079
- 70: Uc,
8080
- 80: Fc,
8081
- 90: zc,
8082
- 100: Wc
8083
- }, Xc = "#e5f6ff", Zc = "#bae6ff", Yc = "#82cfff", qc = "#33b1ff", Kc = "#1192e8", Jc = "#0072c3", Qc = "#00539a", ed = "#003a6d", td = "#012749", nd = "#061727", sd = {
8084
- 10: Xc,
8085
- 20: Zc,
8086
- 30: Yc,
8087
- 40: qc,
8088
- 50: Kc,
8089
- 60: Jc,
8090
- 70: Qc,
8091
- 80: ed,
8092
- 90: td,
8093
- 100: nd
8094
- }, ad = "#d9fbfb", id = "#9ef0f0", rd = "#3ddbd9", od = "#08bdba", ld = "#009d9a", cd = "#007d79", dd = "#005d5d", hd = "#004144", ud = "#022b30", pd = "#081a1c", gd = {
8095
- 10: ad,
8096
- 20: id,
8097
- 30: rd,
8098
- 40: od,
8099
- 50: ld,
8100
- 60: cd,
8101
- 70: dd,
8102
- 80: hd,
8103
- 90: ud,
8104
- 100: pd
8105
- }, md = "#defbe6", fd = "#a7f0ba", vd = "#6fdc8c", yd = "#42be65", Ed = "#24a148", bd = "#198038", Sd = "#0e6027", Od = "#044317", Td = "#022d0d", xd = "#071908", Ld = {
8106
- 10: md,
8107
- 20: fd,
8108
- 30: vd,
8109
- 40: yd,
8110
- 50: Ed,
8111
- 60: bd,
8112
- 70: Sd,
8113
- 80: Od,
8114
- 90: Td,
8115
- 100: xd
8116
- }, Ad = "#f2f4f8", wd = "#dde1e6", Md = "#c1c7cd", Cd = "#a2a9b0", _d = "#878d96", Id = "#697077", Rd = "#4d5358", kd = "#343a3f", Dd = "#21272a", Pd = "#121619", Nd = {
8117
- 10: Ad,
8118
- 20: wd,
8119
- 30: Md,
8120
- 40: Cd,
8121
- 50: _d,
8122
- 60: Id,
8123
- 70: Rd,
8124
- 80: kd,
8125
- 90: Dd,
8126
- 100: Pd
8127
- }, Vd = "#f4f4f4", Bd = "#e0e0e0", Gd = "#c6c6c6", Hd = "#a8a8a8", $d = "#8d8d8d", Ud = "#6f6f6f", Fd = "#525252", zd = "#393939", Wd = "#262626", jd = "#161616", Xd = {
8128
- 10: Vd,
8129
- 20: Bd,
8130
- 30: Gd,
8131
- 40: Hd,
8132
- 50: $d,
8133
- 60: Ud,
8134
- 70: Fd,
8135
- 80: zd,
8136
- 90: Wd,
8137
- 100: jd
8138
- }, Zd = "#f7f3f2", Yd = "#e5e0df", qd = "#cac5c4", Kd = "#ada8a8", Jd = "#8f8b8b", Qd = "#726e6e", eh = "#565151", th = "#3c3838", nh = "#272525", sh = "#171414", ah = {
8139
- 10: Zd,
8140
- 20: Yd,
8141
- 30: qd,
8142
- 40: Kd,
8143
- 50: Jd,
8144
- 60: Qd,
8145
- 70: eh,
8146
- 80: th,
8147
- 90: nh,
8148
- 100: sh
8149
- }, qs = {
8025
+ var _l = "#000000", Il = "#ffffff", Rl = "#fcf4d6", kl = "#fddc69", Dl = "#f1c21b", Pl = "#d2a106", Nl = "#b28600", Vl = "#8e6a00", Bl = "#684e00", Gl = "#483700", Hl = "#302400", Ul = "#1c1500", $l = {
8026
+ 10: Rl,
8027
+ 20: kl,
8028
+ 30: Dl,
8029
+ 40: Pl,
8030
+ 50: Nl,
8031
+ 60: Vl,
8032
+ 70: Bl,
8033
+ 80: Gl,
8034
+ 90: Hl,
8035
+ 100: Ul
8036
+ }, Fl = "#fff2e8", zl = "#ffd9be", Wl = "#ffb784", jl = "#ff832b", Xl = "#eb6200", Zl = "#ba4e00", Yl = "#8a3800", ql = "#5e2900", Kl = "#3e1a00", Jl = "#231000", Ql = {
8037
+ 10: Fl,
8038
+ 20: zl,
8039
+ 30: Wl,
8040
+ 40: jl,
8041
+ 50: Xl,
8042
+ 60: Zl,
8043
+ 70: Yl,
8044
+ 80: ql,
8045
+ 90: Kl,
8046
+ 100: Jl
8047
+ }, ec = "#fff1f1", tc = "#ffd7d9", nc = "#ffb3b8", sc = "#ff8389", ac = "#fa4d56", ic = "#da1e28", rc = "#a2191f", oc = "#750e13", lc = "#520408", cc = "#2d0709", dc = {
8048
+ 10: ec,
8049
+ 20: tc,
8050
+ 30: nc,
8051
+ 40: sc,
8052
+ 50: ac,
8053
+ 60: ic,
8054
+ 70: rc,
8055
+ 80: oc,
8056
+ 90: lc,
8057
+ 100: cc
8058
+ }, hc = "#fff0f7", uc = "#ffd6e8", pc = "#ffafd2", gc = "#ff7eb6", mc = "#ee5396", fc = "#d02670", vc = "#9f1853", yc = "#740937", Ec = "#510224", bc = "#2a0a18", Sc = {
8059
+ 10: hc,
8060
+ 20: uc,
8061
+ 30: pc,
8062
+ 40: gc,
8063
+ 50: mc,
8064
+ 60: fc,
8065
+ 70: vc,
8066
+ 80: yc,
8067
+ 90: Ec,
8068
+ 100: bc
8069
+ }, Oc = "#f6f2ff", Tc = "#e8daff", xc = "#d4bbff", Lc = "#be95ff", Ac = "#a56eff", wc = "#8a3ffc", Mc = "#6929c4", Cc = "#491d8b", _c = "#31135e", Ic = "#1c0f30", Rc = {
8070
+ 10: Oc,
8071
+ 20: Tc,
8072
+ 30: xc,
8073
+ 40: Lc,
8074
+ 50: Ac,
8075
+ 60: wc,
8076
+ 70: Mc,
8077
+ 80: Cc,
8078
+ 90: _c,
8079
+ 100: Ic
8080
+ }, kc = "#edf5ff", Dc = "#d0e2ff", Pc = "#a6c8ff", Nc = "#78a9ff", Vc = "#4589ff", Bc = "#0f62fe", Gc = "#0043ce", Hc = "#002d9c", Uc = "#001d6c", $c = "#001141", Fc = {
8081
+ 10: kc,
8082
+ 20: Dc,
8083
+ 30: Pc,
8084
+ 40: Nc,
8085
+ 50: Vc,
8086
+ 60: Bc,
8087
+ 70: Gc,
8088
+ 80: Hc,
8089
+ 90: Uc,
8090
+ 100: $c
8091
+ }, zc = "#e5f6ff", Wc = "#bae6ff", jc = "#82cfff", Xc = "#33b1ff", Zc = "#1192e8", Yc = "#0072c3", qc = "#00539a", Kc = "#003a6d", Jc = "#012749", Qc = "#061727", ed = {
8092
+ 10: zc,
8093
+ 20: Wc,
8094
+ 30: jc,
8095
+ 40: Xc,
8096
+ 50: Zc,
8097
+ 60: Yc,
8098
+ 70: qc,
8099
+ 80: Kc,
8100
+ 90: Jc,
8101
+ 100: Qc
8102
+ }, td = "#d9fbfb", nd = "#9ef0f0", sd = "#3ddbd9", ad = "#08bdba", id = "#009d9a", rd = "#007d79", od = "#005d5d", ld = "#004144", cd = "#022b30", dd = "#081a1c", hd = {
8103
+ 10: td,
8104
+ 20: nd,
8105
+ 30: sd,
8106
+ 40: ad,
8107
+ 50: id,
8108
+ 60: rd,
8109
+ 70: od,
8110
+ 80: ld,
8111
+ 90: cd,
8112
+ 100: dd
8113
+ }, ud = "#defbe6", pd = "#a7f0ba", gd = "#6fdc8c", md = "#42be65", fd = "#24a148", vd = "#198038", yd = "#0e6027", Ed = "#044317", bd = "#022d0d", Sd = "#071908", Od = {
8114
+ 10: ud,
8115
+ 20: pd,
8116
+ 30: gd,
8117
+ 40: md,
8118
+ 50: fd,
8119
+ 60: vd,
8120
+ 70: yd,
8121
+ 80: Ed,
8122
+ 90: bd,
8123
+ 100: Sd
8124
+ }, Td = "#f2f4f8", xd = "#dde1e6", Ld = "#c1c7cd", Ad = "#a2a9b0", wd = "#878d96", Md = "#697077", Cd = "#4d5358", _d = "#343a3f", Id = "#21272a", Rd = "#121619", kd = {
8125
+ 10: Td,
8126
+ 20: xd,
8127
+ 30: Ld,
8128
+ 40: Ad,
8129
+ 50: wd,
8130
+ 60: Md,
8131
+ 70: Cd,
8132
+ 80: _d,
8133
+ 90: Id,
8134
+ 100: Rd
8135
+ }, Dd = "#f4f4f4", Pd = "#e0e0e0", Nd = "#c6c6c6", Vd = "#a8a8a8", Bd = "#8d8d8d", Gd = "#6f6f6f", Hd = "#525252", Ud = "#393939", $d = "#262626", Fd = "#161616", zd = {
8136
+ 10: Dd,
8137
+ 20: Pd,
8138
+ 30: Nd,
8139
+ 40: Vd,
8140
+ 50: Bd,
8141
+ 60: Gd,
8142
+ 70: Hd,
8143
+ 80: Ud,
8144
+ 90: $d,
8145
+ 100: Fd
8146
+ }, Wd = "#f7f3f2", jd = "#e5e0df", Xd = "#cac5c4", Zd = "#ada8a8", Yd = "#8f8b8b", qd = "#726e6e", Kd = "#565151", Jd = "#3c3838", Qd = "#272525", eh = "#171414", th = {
8147
+ 10: Wd,
8148
+ 20: jd,
8149
+ 30: Xd,
8150
+ 40: Zd,
8151
+ 50: Yd,
8152
+ 60: qd,
8153
+ 70: Kd,
8154
+ 80: Jd,
8155
+ 90: Qd,
8156
+ 100: eh
8157
+ }, Xs = {
8150
8158
  black: {
8151
- 100: kl
8159
+ 100: _l
8152
8160
  },
8153
- blue: jc,
8154
- coolGray: Nd,
8155
- cyan: sd,
8156
- gray: Xd,
8157
- green: Ld,
8158
- magenta: xc,
8159
- orange: nc,
8160
- purple: Pc,
8161
- red: pc,
8162
- teal: gd,
8163
- warmGray: ah,
8161
+ blue: Fc,
8162
+ coolGray: kd,
8163
+ cyan: ed,
8164
+ gray: zd,
8165
+ green: Od,
8166
+ magenta: Sc,
8167
+ orange: Ql,
8168
+ purple: Rc,
8169
+ red: dc,
8170
+ teal: hd,
8171
+ warmGray: th,
8164
8172
  white: {
8165
- 0: Dl
8173
+ 0: Il
8166
8174
  },
8167
- yellow: Wl
8175
+ yellow: $l
8168
8176
  };
8169
- const ih = (o) => {
8177
+ const nh = (o) => {
8170
8178
  if (!o)
8171
8179
  return null;
8172
- for (const e of Object.keys(qs)) {
8173
- const t = qs[e];
8180
+ for (const e of Object.keys(Xs)) {
8181
+ const t = Xs[e];
8174
8182
  for (const n of Object.keys(t))
8175
8183
  if (t[+n] === o)
8176
8184
  return n;
8177
8185
  }
8178
8186
  return null;
8179
- }, Ks = function() {
8187
+ }, Zs = function() {
8180
8188
  const o = T(this.parentNode).select("rect.leaf"), e = getComputedStyle(o.node(), null).getPropertyValue(
8181
8189
  "fill"
8182
- ), t = ra(e);
8190
+ ), t = sa(e);
8183
8191
  let n;
8184
- if (t && (n = ih(t ? t.hex() : null)), n == null) {
8185
- const s = ia(t).l;
8192
+ if (t && (n = nh(t ? t.hex() : null)), n == null) {
8193
+ const s = na(t).l;
8186
8194
  n = Math.abs(s * 100 - 100);
8187
8195
  }
8188
8196
  return n > 50 ? "white" : "black";
8189
8197
  };
8190
- let rh = 0;
8191
- class ru extends Y {
8198
+ let sh = 0;
8199
+ class su extends Y {
8192
8200
  constructor() {
8193
8201
  super(...arguments), this.type = "treemap", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
8194
8202
  const { hoveredElement: t } = e.detail;
@@ -8219,14 +8227,14 @@ class ru extends Y {
8219
8227
  this.model.getData();
8220
8228
  const n = this.model.getDisplayData(), s = this.model.getOptions(), a = v(window, "location"), { width: i, height: r } = S.getSVGElementSize(t, {
8221
8229
  useAttrs: !0
8222
- }), l = Fn({
8230
+ }), l = zn({
8223
8231
  name: s.title || "Treemap",
8224
8232
  children: n
8225
- }).sum((m) => m.value).sort((m, E) => E.value - m.value), c = fi().size([i, r]).paddingInner(1).paddingOuter(0).round(!0)(
8233
+ }).sum((m) => m.value).sort((m, E) => E.value - m.value), c = hi().size([i, r]).paddingInner(1).paddingOuter(0).round(!0)(
8226
8234
  l
8227
8235
  ), d = t.selectAll("g[data-name='leaf']").data(c.leaves(), (m) => m.data.name);
8228
8236
  d.exit().attr("opacity", 0).remove();
8229
- const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () => rh++).merge(d);
8237
+ const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () => sh++).merge(d);
8230
8238
  h.attr("data-name", "leaf").transition().call(
8231
8239
  (m) => this.services.transitions.setupTransition({
8232
8240
  transition: m,
@@ -8279,7 +8287,7 @@ class ru extends Y {
8279
8287
  let E = m;
8280
8288
  for (; E.depth > 1; )
8281
8289
  E = E.parent;
8282
- const O = ia(this.model.getFillColor(E.data.name));
8290
+ const O = na(this.model.getFillColor(E.data.name));
8283
8291
  return [
8284
8292
  {
8285
8293
  text: m.data.name,
@@ -8290,13 +8298,13 @@ class ru extends Y {
8290
8298
  (m) => m
8291
8299
  ).join(
8292
8300
  (m) => {
8293
- const E = m.append("text").text((O) => O.text).style("fill", Ks).attr("x", 7).attr("y", 18);
8301
+ const E = m.append("text").text((O) => O.text).style("fill", Zs).attr("x", 7).attr("y", 18);
8294
8302
  return a && E.attr("clip-path", function() {
8295
8303
  const O = T(this.parentNode).attr("data-uid"), x = `${s.style.prefix}-clip-${O}`;
8296
8304
  return `url(${new URL(`#${x}`, a) + ""})`;
8297
8305
  }), E;
8298
8306
  },
8299
- (m) => m.text((E) => E.text).style("fill", Ks),
8307
+ (m) => m.text((E) => E.text).style("fill", Zs),
8300
8308
  (m) => m.remove()
8301
8309
  ), this.addEventListeners();
8302
8310
  }
@@ -8314,7 +8322,7 @@ class ru extends Y {
8314
8322
  })
8315
8323
  ).style("fill", (r) => {
8316
8324
  const l = e.model.getFillColor(r.parent.data.name, null, r.data);
8317
- return l && (a = l), ra(a).darker(0.7).toString();
8325
+ return l && (a = l), sa(a).darker(0.7).toString();
8318
8326
  }), e.services.events.dispatchEvent(f.Tooltip.SHOW, {
8319
8327
  event: t,
8320
8328
  hoveredElement: s,
@@ -8370,7 +8378,7 @@ class ru extends Y {
8370
8378
  });
8371
8379
  }
8372
8380
  }
8373
- class ou extends Y {
8381
+ class au extends Y {
8374
8382
  constructor() {
8375
8383
  super(...arguments), this.type = "wordcloud", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
8376
8384
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -8399,7 +8407,7 @@ class ou extends Y {
8399
8407
  });
8400
8408
  if (d === 0 || p === 0)
8401
8409
  return;
8402
- const h = Pi().size([d, p]).words(
8410
+ const h = _i().size([d, p]).words(
8403
8411
  s.map(function(g) {
8404
8412
  const m = g[r];
8405
8413
  if (typeof g[r] != "number")
@@ -8439,11 +8447,11 @@ class ou extends Y {
8439
8447
  this.addEventListeners();
8440
8448
  }
8441
8449
  getFontSizeScale(e) {
8442
- const t = this.getOptions(), { fontSizeMapsTo: n } = t.wordCloud, s = e.map((l) => l[n]).filter((l) => l), a = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), i = s.length > 0, r = i ? Yt(s) : [1, 1];
8450
+ const t = this.getOptions(), { fontSizeMapsTo: n } = t.wordCloud, s = e.map((l) => l[n]).filter((l) => l), a = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), i = s.length > 0, r = i ? Kt(s) : [1, 1];
8443
8451
  return qe().domain(r).range(i ? t.wordCloud.fontSizeRange(a, e) : [4, 4]);
8444
8452
  }
8445
8453
  addEventListeners() {
8446
- const e = this.getOptions(), { groupMapsTo: t } = e.data, n = this, s = bn((a) => {
8454
+ const e = this.getOptions(), { groupMapsTo: t } = e.data, n = this, s = Sn((a) => {
8447
8455
  const i = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
8448
8456
  (r) => n.services.transitions.setupTransition({
8449
8457
  transition: r,
@@ -8508,7 +8516,7 @@ class ou extends Y {
8508
8516
  });
8509
8517
  }
8510
8518
  }
8511
- class oh extends Y {
8519
+ class ah extends Y {
8512
8520
  constructor() {
8513
8521
  super(...arguments), this.type = "geo", this.renderType = j.SVG;
8514
8522
  }
@@ -8522,16 +8530,16 @@ class oh extends Y {
8522
8530
  Object.keys(i).forEach((O) => {
8523
8531
  typeof i[O].value == "number" ? r[O] = i[O] : l[O] = i[O];
8524
8532
  });
8525
- const c = Cl(a, Object.values(l)), d = Al(a, {
8533
+ const c = Al(a, Object.values(l)), d = Tl(a, {
8526
8534
  // We need to specify that we are converting geometry collections
8527
8535
  type: "GeometryCollection",
8528
8536
  geometries: Object.values(r)
8529
- }), p = s.fitSize([t, n], d), h = vi().projection(p);
8537
+ }), p = s.fitSize([t, n], d), h = ui().projection(p);
8530
8538
  S.appendOrSelect(e, "g.geo").selectAll("path").data(d.features).join("path").attr("d", h);
8531
8539
  const g = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), m = S.appendOrSelect(e, "defs");
8532
8540
  S.appendOrSelect(m, "pattern").attr("id", g).attr("width", 5).attr("height", 10).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("path").classed("pattern-fill", !0).attr(
8533
8541
  "d",
8534
- Gn()([
8542
+ Hn()([
8535
8543
  [0, 0],
8536
8544
  [0, 10]
8537
8545
  ])
@@ -8551,25 +8559,25 @@ class oh extends Y {
8551
8559
  let e = null;
8552
8560
  switch (v(this.getOptions(), "thematic", "projection")) {
8553
8561
  case Ze.geoEqualEarth:
8554
- e = xi();
8562
+ e = Ei();
8555
8563
  break;
8556
8564
  case Ze.geoAlbers:
8557
- e = Ti();
8565
+ e = yi();
8558
8566
  break;
8559
8567
  case Ze.geoConicEqualArea:
8560
- e = Oi();
8568
+ e = vi();
8561
8569
  break;
8562
8570
  case Ze.geoConicEquidistant:
8563
- e = Si();
8571
+ e = fi();
8564
8572
  break;
8565
8573
  case Ze.geoEquirectangular:
8566
- e = bi();
8574
+ e = mi();
8567
8575
  break;
8568
8576
  case Ze.geoMercator:
8569
- e = Ei();
8577
+ e = gi();
8570
8578
  break;
8571
8579
  case Ze.geoNaturalEarth1:
8572
- e = yi();
8580
+ e = pi();
8573
8581
  break;
8574
8582
  default:
8575
8583
  throw new Error("Projection is not supported.");
@@ -8577,7 +8585,7 @@ class oh extends Y {
8577
8585
  return e;
8578
8586
  }
8579
8587
  }
8580
- class lu extends oh {
8588
+ class iu extends ah {
8581
8589
  constructor() {
8582
8590
  super(...arguments), this.type = "choropleth";
8583
8591
  }
@@ -8596,11 +8604,11 @@ class lu extends oh {
8596
8604
  const e = this, t = this.model.getCombinedData();
8597
8605
  this.parent.selectAll("path.border").on("mouseover", function(n, s) {
8598
8606
  const a = T(this);
8599
- e.services.events.dispatchEvent(kt.CHOROPLETH_MOUSEOVER, {
8607
+ e.services.events.dispatchEvent(Pt.CHOROPLETH_MOUSEOVER, {
8600
8608
  event: n,
8601
8609
  element: a,
8602
8610
  datum: t[s.properties.NAME]
8603
- }), e.services.events.dispatchEvent(dn.SHOW, {
8611
+ }), e.services.events.dispatchEvent(hn.SHOW, {
8604
8612
  event: n,
8605
8613
  hoveredElement: a,
8606
8614
  items: [
@@ -8611,26 +8619,26 @@ class lu extends oh {
8611
8619
  ]
8612
8620
  });
8613
8621
  }).on("mousemove", function(n, s) {
8614
- e.services.events.dispatchEvent(kt.CHOROPLETH_MOUSEMOVE, {
8622
+ e.services.events.dispatchEvent(Pt.CHOROPLETH_MOUSEMOVE, {
8615
8623
  event: n,
8616
8624
  element: T(this),
8617
8625
  datum: t[s.properties.NAME]
8618
- }), e.services.events.dispatchEvent(dn.MOVE, {
8626
+ }), e.services.events.dispatchEvent(hn.MOVE, {
8619
8627
  event: n
8620
8628
  });
8621
8629
  }).on("click", function(n, s) {
8622
- e.services.events.dispatchEvent(kt.CHOROPLETH_CLICK, {
8630
+ e.services.events.dispatchEvent(Pt.CHOROPLETH_CLICK, {
8623
8631
  event: n,
8624
8632
  element: T(this),
8625
8633
  datum: t[s.properties.NAME]
8626
8634
  });
8627
8635
  }).on("mouseout", function(n, s) {
8628
8636
  const a = T(this);
8629
- e.services.events.dispatchEvent(kt.CHOROPLETH_MOUSEOUT, {
8637
+ e.services.events.dispatchEvent(Pt.CHOROPLETH_MOUSEOUT, {
8630
8638
  event: n,
8631
8639
  element: a,
8632
8640
  datum: t[s.properties.NAME]
8633
- }), e.services.events.dispatchEvent(dn.HIDE, {
8641
+ }), e.services.events.dispatchEvent(hn.HIDE, {
8634
8642
  event: n,
8635
8643
  hoveredElement: a
8636
8644
  });
@@ -8638,69 +8646,69 @@ class lu extends oh {
8638
8646
  }
8639
8647
  }
8640
8648
  export {
8641
- tu as $,
8642
- Ra as A,
8643
- Rh as B,
8644
- yl as C,
8645
- Ih as D,
8646
- lu as E,
8647
- Wh as F,
8648
- xh as G,
8649
- Sl as H,
8650
- jh as I,
8651
- Xh as J,
8652
- Zh as K,
8653
- vl as L,
8654
- zh as M,
8655
- Yh as N,
8656
- qh as O,
8657
- Ah as P,
8658
- Kh as Q,
8659
- Ia as R,
8660
- kh as S,
8661
- ks as T,
8662
- Jh as U,
8663
- Rl as V,
8664
- Qh as W,
8665
- Wn as X,
8666
- eu as Y,
8667
- Ch as Z,
8668
- Ol as _,
8669
- Ws as a,
8670
- nu as a0,
8671
- su as a1,
8672
- au as a2,
8673
- iu as a3,
8674
- ru as a4,
8675
- ou as a5,
8676
- Ds as a6,
8677
- fh as a7,
8649
+ Jh as $,
8650
+ Ca as A,
8651
+ Ch as B,
8652
+ ml as C,
8653
+ Mh as D,
8654
+ iu as E,
8655
+ $h as F,
8656
+ Sh as G,
8657
+ yl as H,
8658
+ Fh as I,
8659
+ zh as J,
8660
+ Wh as K,
8661
+ gl as L,
8662
+ Uh as M,
8663
+ jh as N,
8664
+ Xh as O,
8665
+ Th as P,
8666
+ Zh as Q,
8667
+ Ma as R,
8668
+ _h as S,
8669
+ Ps as T,
8670
+ Yh as U,
8671
+ Cl as V,
8672
+ qh as W,
8673
+ jn as X,
8674
+ Kh as Y,
8675
+ Ah as Z,
8676
+ El as _,
8677
+ $s as a,
8678
+ Qh as a0,
8679
+ eu as a1,
8680
+ tu as a2,
8681
+ nu as a3,
8682
+ su as a4,
8683
+ au as a5,
8684
+ Ns as a6,
8685
+ ph as a7,
8678
8686
  Y as a8,
8679
- Lr as a9,
8680
- wh as b,
8681
- Eh as c,
8682
- Vh as d,
8683
- Bh as e,
8684
- Nh as f,
8685
- Ph as g,
8686
- Dh as h,
8687
- Gh as i,
8688
- Hh as j,
8689
- Oh as k,
8690
- yh as l,
8691
- Fh as m,
8692
- oh as n,
8693
- Sh as o,
8694
- vh as p,
8695
- bh as q,
8696
- fl as r,
8697
- $h as s,
8698
- Uh as t,
8699
- El as u,
8700
- Th as v,
8701
- Lh as w,
8702
- Xn as x,
8703
- Mh as y,
8704
- _h as z
8687
+ Er as a9,
8688
+ xh as b,
8689
+ fh as c,
8690
+ Dh as d,
8691
+ Ph as e,
8692
+ kh as f,
8693
+ Rh as g,
8694
+ Ih as h,
8695
+ Nh as i,
8696
+ Vh as j,
8697
+ Eh as k,
8698
+ mh as l,
8699
+ Hh as m,
8700
+ ah as n,
8701
+ yh as o,
8702
+ gh as p,
8703
+ vh as q,
8704
+ pl as r,
8705
+ Bh as s,
8706
+ Gh as t,
8707
+ fl as u,
8708
+ bh as v,
8709
+ Oh as w,
8710
+ Zn as x,
8711
+ Lh as y,
8712
+ wh as z
8705
8713
  };
8706
- //# sourceMappingURL=choropleth-DdBUe80H.mjs.map
8714
+ //# sourceMappingURL=choropleth-ChNZz853.mjs.map