@carbon/charts 1.16.1 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/_baseEach-DHzZsRNB.mjs +20 -0
- package/dist/{_baseEach-Ch85zB0O.mjs.map → _baseEach-DHzZsRNB.mjs.map} +1 -1
- package/dist/{angle-utils-GQFx3vKM.mjs → angle-utils-D8sXyiIj.mjs} +84 -89
- package/dist/{angle-utils-GQFx3vKM.mjs.map → angle-utils-D8sXyiIj.mjs.map} +1 -1
- package/dist/axis-chart.d.ts +6 -6
- package/dist/chart.d.ts +6 -6
- package/dist/charts/alluvial.d.ts +4 -4
- package/dist/charts/area-stacked.d.ts +3 -3
- package/dist/charts/area.d.ts +3 -3
- package/dist/charts/bar-grouped.d.ts +3 -3
- package/dist/charts/bar-simple.d.ts +3 -3
- package/dist/charts/bar-stacked.d.ts +3 -3
- package/dist/charts/boxplot.d.ts +4 -4
- package/dist/charts/bubble.d.ts +3 -3
- package/dist/charts/bullet.d.ts +4 -4
- package/dist/charts/choropleth.d.ts +7 -7
- package/dist/charts/circle-pack.d.ts +4 -4
- package/dist/charts/combo.d.ts +3 -3
- package/dist/charts/donut.d.ts +3 -3
- package/dist/charts/gauge.d.ts +4 -4
- package/dist/charts/heatmap.d.ts +7 -7
- package/dist/charts/histogram.d.ts +4 -4
- package/dist/charts/index.d.ts +24 -24
- package/dist/charts/line.d.ts +3 -3
- package/dist/charts/lollipop.d.ts +3 -3
- package/dist/charts/meter.d.ts +4 -4
- package/dist/charts/pie.d.ts +4 -4
- package/dist/charts/radar.d.ts +4 -4
- package/dist/charts/scatter.d.ts +3 -3
- package/dist/charts/tree.d.ts +4 -4
- package/dist/charts/treemap.d.ts +4 -4
- package/dist/charts/wordcloud.d.ts +4 -4
- package/dist/{choropleth-DdBUe80H.mjs → choropleth-C6lDAtOg.mjs} +1122 -1110
- package/dist/choropleth-C6lDAtOg.mjs.map +1 -0
- package/dist/{color-scale-utils-CiW9fERh.mjs → color-scale-utils-C93P4hee.mjs} +1093 -1116
- package/dist/color-scale-utils-C93P4hee.mjs.map +1 -0
- package/dist/components/axes/axis.d.ts +3 -3
- package/dist/components/axes/chart-clip.d.ts +2 -2
- package/dist/components/axes/grid-brush.d.ts +1 -1
- package/dist/components/axes/grid.d.ts +1 -1
- package/dist/components/axes/hover-axis.d.ts +1 -1
- package/dist/components/axes/ruler-binned.d.ts +1 -1
- package/dist/components/axes/ruler.d.ts +2 -2
- package/dist/components/axes/toolbar.d.ts +1 -1
- package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
- package/dist/components/axes/zero-line.d.ts +1 -1
- package/dist/components/axes/zoom-bar.d.ts +2 -2
- package/dist/components/component.d.ts +3 -3
- package/dist/components/essentials/color-scale-legend.d.ts +2 -2
- package/dist/components/essentials/geo-projection.d.ts +1 -1
- package/dist/components/essentials/highlights.d.ts +3 -3
- package/dist/components/essentials/legend.d.ts +1 -1
- package/dist/components/essentials/modal.d.ts +1 -1
- package/dist/components/essentials/threshold.d.ts +3 -3
- package/dist/components/essentials/title-meter.d.ts +1 -1
- package/dist/components/essentials/title.d.ts +1 -1
- package/dist/components/essentials/tooltip.d.ts +3 -3
- package/dist/components/graphs/alluvial.d.ts +1 -1
- package/dist/components/graphs/area-stacked.d.ts +1 -1
- package/dist/components/graphs/area.d.ts +1 -1
- package/dist/components/graphs/bar-grouped.d.ts +2 -2
- package/dist/components/graphs/bar-simple.d.ts +1 -1
- package/dist/components/graphs/bar-stacked.d.ts +1 -1
- package/dist/components/graphs/boxplot.d.ts +1 -1
- package/dist/components/graphs/bubble.d.ts +2 -2
- package/dist/components/graphs/bullet.d.ts +1 -1
- package/dist/components/graphs/circle-pack.d.ts +1 -1
- package/dist/components/graphs/donut.d.ts +1 -1
- package/dist/components/graphs/gauge.d.ts +1 -1
- package/dist/components/graphs/heatmap.d.ts +1 -1
- package/dist/components/graphs/histogram.d.ts +1 -1
- package/dist/components/graphs/line.d.ts +1 -1
- package/dist/components/graphs/lollipop.d.ts +1 -1
- package/dist/components/graphs/meter.d.ts +1 -1
- package/dist/components/graphs/pie.d.ts +1 -1
- package/dist/components/graphs/radar.d.ts +1 -1
- package/dist/components/graphs/scatter-stacked.d.ts +1 -1
- package/dist/components/graphs/scatter.d.ts +2 -2
- package/dist/components/graphs/skeleton-lines.d.ts +1 -1
- package/dist/components/graphs/skeleton.d.ts +1 -1
- package/dist/components/graphs/tree.d.ts +1 -1
- package/dist/components/graphs/treemap.d.ts +1 -1
- package/dist/components/graphs/wordcloud.d.ts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/layout/layout.d.ts +3 -3
- package/dist/configuration-non-customizable.d.ts +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/demo/charts/index.d.ts +2 -2
- package/dist/demo/index.mjs +115 -108
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +226 -63
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
- package/dist/demo/utils/stackblitz/react.d.ts +1 -1
- package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
- package/dist/index.mjs +8 -8
- package/dist/interfaces/axis-scales.d.ts +4 -4
- package/dist/interfaces/charts.d.ts +2 -2
- package/dist/interfaces/components.d.ts +2 -2
- package/dist/interfaces/services.d.ts +8 -8
- package/dist/model/cartesian-charts.d.ts +1 -1
- package/dist/model/circle-pack.d.ts +1 -1
- package/dist/model/heatmap.d.ts +1 -1
- package/dist/model/index.mjs +1 -1
- package/dist/model/model.d.ts +1 -1
- package/dist/services/essentials/dom-utils.d.ts +2 -2
- package/dist/services/essentials/files.d.ts +1 -1
- package/dist/services/essentials/transitions.d.ts +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/services/scales-cartesian.d.ts +3 -3
- package/dist/services/service.d.ts +1 -1
- package/dist/services/time-series.d.ts +1 -1
- package/dist/services/zoom.d.ts +1 -1
- package/dist/styles.css +4 -0
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/umd/bundle.umd.js +19 -19
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-DQKXuKDM.mjs → wordcloud-KxSjz0Gg.mjs} +5 -5
- package/dist/{wordcloud-DQKXuKDM.mjs.map → wordcloud-KxSjz0Gg.mjs.map} +1 -1
- package/dist/{zoom-DyHfBf_y.mjs → zoom-B7KfNcH9.mjs} +3 -3
- package/dist/{zoom-DyHfBf_y.mjs.map → zoom-B7KfNcH9.mjs.map} +1 -1
- package/package.json +21 -19
- package/styles.css +4 -0
- package/styles.min.css +1 -1
- package/dist/_baseEach-Ch85zB0O.mjs +0 -20
- package/dist/choropleth-DdBUe80H.mjs.map +0 -1
- package/dist/color-scale-utils-CiW9fERh.mjs.map +0 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { select as T, pointer as
|
|
3
|
-
import { t as
|
|
4
|
-
import { y as j, _ as f, K as ie, r as
|
|
5
|
-
import { sankey as
|
|
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
|
|
8
|
-
import
|
|
9
|
-
function
|
|
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
|
|
14
|
+
function Ri(o) {
|
|
16
15
|
return function(e) {
|
|
17
16
|
return o == null ? void 0 : o[e];
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
|
-
var
|
|
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(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
lt + "?" +
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
|
238
|
-
return o.match(
|
|
234
|
+
function mr(o) {
|
|
235
|
+
return o.match(gr) || [];
|
|
239
236
|
}
|
|
240
|
-
function
|
|
241
|
-
return o =
|
|
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
|
|
244
|
-
function
|
|
240
|
+
var vr = "['’]", yr = RegExp(vr, "g");
|
|
241
|
+
function Er(o) {
|
|
245
242
|
return function(e) {
|
|
246
|
-
return
|
|
243
|
+
return Ii(fr($i(e).replace(yr, "")), o, "");
|
|
247
244
|
};
|
|
248
245
|
}
|
|
249
|
-
function
|
|
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
|
|
253
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (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
|
|
256
|
-
function
|
|
252
|
+
var Sr = "Expected a function";
|
|
253
|
+
function Or(o, e, t) {
|
|
257
254
|
if (typeof o != "function")
|
|
258
|
-
throw new TypeError(
|
|
255
|
+
throw new TypeError(Sr);
|
|
259
256
|
return setTimeout(function() {
|
|
260
257
|
o.apply(void 0, t);
|
|
261
258
|
}, e);
|
|
262
259
|
}
|
|
263
|
-
var
|
|
264
|
-
return
|
|
260
|
+
var Tr = Ba(function(o, e, t) {
|
|
261
|
+
return Or(o, Ht(e) || 0, t);
|
|
265
262
|
});
|
|
266
|
-
function
|
|
267
|
-
var t = -1, n =
|
|
268
|
-
return
|
|
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
|
|
273
|
-
var t =
|
|
274
|
-
return t(o,
|
|
269
|
+
function Lr(o, e) {
|
|
270
|
+
var t = Ks(o) ? Ha : xr;
|
|
271
|
+
return t(o, qs(e));
|
|
275
272
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
273
|
+
var Ar = 1 / 0;
|
|
274
|
+
function wr(o, e) {
|
|
275
|
+
return Ua(Lr(o, e), Ar);
|
|
279
276
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
277
|
+
function Ea(o, e) {
|
|
278
|
+
return $a(o, e);
|
|
282
279
|
}
|
|
283
|
-
var it =
|
|
280
|
+
var it = Er(function(o, e, t) {
|
|
284
281
|
return o + (t ? "-" : "") + e.toLowerCase();
|
|
285
282
|
});
|
|
286
|
-
function
|
|
283
|
+
function Mr(o, e) {
|
|
287
284
|
var t;
|
|
288
|
-
return
|
|
285
|
+
return aa(o, function(n, s, a) {
|
|
289
286
|
return t = e(n, s, a), !t;
|
|
290
287
|
}), !!t;
|
|
291
288
|
}
|
|
292
|
-
function
|
|
293
|
-
var n =
|
|
294
|
-
return
|
|
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.
|
|
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:
|
|
366
|
-
setPrototypeOf:
|
|
367
|
-
isFrozen:
|
|
368
|
-
getPrototypeOf:
|
|
369
|
-
getOwnPropertyDescriptor:
|
|
362
|
+
entries: ba,
|
|
363
|
+
setPrototypeOf: ws,
|
|
364
|
+
isFrozen: _r,
|
|
365
|
+
getPrototypeOf: Ir,
|
|
366
|
+
getOwnPropertyDescriptor: Rr
|
|
370
367
|
} = Object;
|
|
371
368
|
let {
|
|
372
|
-
freeze:
|
|
369
|
+
freeze: Oe,
|
|
373
370
|
seal: _e,
|
|
374
|
-
create:
|
|
371
|
+
create: Sa
|
|
375
372
|
} = Object, {
|
|
376
|
-
apply:
|
|
377
|
-
construct:
|
|
373
|
+
apply: On,
|
|
374
|
+
construct: Tn
|
|
378
375
|
} = typeof Reflect < "u" && Reflect;
|
|
379
|
-
|
|
376
|
+
Oe || (Oe = function(e) {
|
|
380
377
|
return e;
|
|
381
378
|
});
|
|
382
379
|
_e || (_e = function(e) {
|
|
383
380
|
return e;
|
|
384
381
|
});
|
|
385
|
-
|
|
382
|
+
On || (On = function(e, t, n) {
|
|
386
383
|
return e.apply(t, n);
|
|
387
384
|
});
|
|
388
|
-
|
|
385
|
+
Tn || (Tn = function(e, t) {
|
|
389
386
|
return new e(...t);
|
|
390
387
|
});
|
|
391
|
-
const
|
|
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
|
|
393
|
+
return On(o, e, n);
|
|
397
394
|
};
|
|
398
395
|
}
|
|
399
|
-
function
|
|
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
|
|
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] :
|
|
408
|
-
|
|
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 && (
|
|
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
|
|
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 =
|
|
427
|
-
for (const [t, n] of
|
|
428
|
-
De(o, t) && (Array.isArray(n) ? e[t] =
|
|
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
|
|
428
|
+
function Vt(o, e) {
|
|
432
429
|
for (; o !== null; ) {
|
|
433
|
-
const n =
|
|
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 =
|
|
437
|
+
o = Ir(o);
|
|
441
438
|
}
|
|
442
439
|
function t() {
|
|
443
440
|
return null;
|
|
444
441
|
}
|
|
445
442
|
return t;
|
|
446
443
|
}
|
|
447
|
-
const
|
|
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
|
-
),
|
|
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
|
-
),
|
|
454
|
-
var
|
|
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:
|
|
457
|
-
ERB_EXPR:
|
|
458
|
-
TMPLIT_EXPR:
|
|
459
|
-
DATA_ATTR:
|
|
460
|
-
ARIA_ATTR:
|
|
461
|
-
IS_ALLOWED_URI:
|
|
462
|
-
IS_SCRIPT_OR_DATA:
|
|
463
|
-
ATTR_WHITESPACE:
|
|
464
|
-
DOCTYPE_NAME:
|
|
465
|
-
CUSTOM_ELEMENT:
|
|
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
|
|
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
|
-
},
|
|
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
|
|
490
|
-
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
491
|
-
const e = (
|
|
492
|
-
if (e.version = "3.1.
|
|
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 =
|
|
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
|
|
510
|
-
|
|
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
|
|
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:
|
|
542
|
+
IS_SCRIPT_OR_DATA: fe,
|
|
530
543
|
ATTR_WHITESPACE: q,
|
|
531
544
|
CUSTOM_ELEMENT: H
|
|
532
|
-
} =
|
|
545
|
+
} = Ds;
|
|
533
546
|
let {
|
|
534
547
|
IS_ALLOWED_URI: ae
|
|
535
|
-
} =
|
|
536
|
-
const gt = Z({}, [...
|
|
548
|
+
} = Ds, ce = null;
|
|
549
|
+
const gt = Z({}, [..._s, ...pn, ...gn, ...mn, ...Is]);
|
|
537
550
|
let re = null;
|
|
538
|
-
const Ke = Z({}, [...
|
|
539
|
-
let Q = Object.seal(
|
|
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
|
-
})),
|
|
559
|
-
const
|
|
560
|
-
let
|
|
561
|
-
const
|
|
562
|
-
let
|
|
563
|
-
const
|
|
564
|
-
let
|
|
565
|
-
const
|
|
566
|
-
let tt =
|
|
567
|
-
const
|
|
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
|
|
582
|
+
const Ra = ["application/xhtml+xml", "text/html"], ka = "text/html";
|
|
570
583
|
let ue = null, nt = null;
|
|
571
|
-
const
|
|
584
|
+
const Da = t.createElement("form"), ts = function(b) {
|
|
572
585
|
return b instanceof RegExp || b instanceof Function;
|
|
573
|
-
},
|
|
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
|
-
|
|
578
|
-
Ye(
|
|
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
|
-
) :
|
|
585
|
-
Ye(
|
|
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
|
-
) :
|
|
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 =
|
|
599
|
-
|
|
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
|
-
},
|
|
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 =
|
|
608
|
-
return
|
|
609
|
-
},
|
|
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
|
-
},
|
|
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 ||
|
|
644
|
+
if (Je || wt)
|
|
632
645
|
try {
|
|
633
|
-
|
|
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
|
-
},
|
|
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
|
|
647
|
-
G =
|
|
659
|
+
const pe = Cs(b, /^[\r\n\t ]+/);
|
|
660
|
+
G = pe && pe[0];
|
|
648
661
|
}
|
|
649
|
-
ft === "application/xhtml+xml" && tt ===
|
|
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 ===
|
|
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 =
|
|
672
|
+
D.documentElement.innerHTML = tn ? w : ee;
|
|
660
673
|
} catch {
|
|
661
674
|
}
|
|
662
675
|
}
|
|
663
|
-
const
|
|
664
|
-
return b && G &&
|
|
665
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
688
|
+
}, cs = function(b) {
|
|
676
689
|
return typeof r == "function" && b instanceof r;
|
|
677
|
-
},
|
|
678
|
-
k[b] &&
|
|
690
|
+
}, Ge = function(b, D, G) {
|
|
691
|
+
k[b] && Nt(k[b], (ee) => {
|
|
679
692
|
ee.call(e, D, G, nt);
|
|
680
693
|
});
|
|
681
|
-
},
|
|
694
|
+
}, ds = function(b) {
|
|
682
695
|
let D = null;
|
|
683
|
-
if (
|
|
684
|
-
return
|
|
696
|
+
if (Ge("beforeSanitizeElements", b, null), ls(b))
|
|
697
|
+
return Pe(b), !0;
|
|
685
698
|
const G = ue(b.nodeName);
|
|
686
|
-
if (
|
|
699
|
+
if (Ge("uponSanitizeElement", b, {
|
|
687
700
|
tagName: G,
|
|
688
701
|
allowedTags: ce
|
|
689
|
-
}), b.hasChildNodes() && !
|
|
690
|
-
return
|
|
691
|
-
if (!ce[G] ||
|
|
692
|
-
if (!
|
|
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 (
|
|
695
|
-
const ee = x(b) || b.parentNode,
|
|
696
|
-
if (
|
|
697
|
-
const
|
|
698
|
-
for (let
|
|
699
|
-
|
|
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
|
|
717
|
+
return Pe(b), !0;
|
|
703
718
|
}
|
|
704
|
-
return b instanceof l && !
|
|
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)),
|
|
709
|
-
},
|
|
710
|
-
if (
|
|
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 &&
|
|
713
|
-
if (!(K &&
|
|
714
|
-
if (!re[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
|
-
!(
|
|
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 &&
|
|
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 (!
|
|
725
|
-
if (!
|
|
726
|
-
if (!((D === "src" || D === "xlink:href" || D === "href") && b !== "script" &&
|
|
727
|
-
if (!(oe && !
|
|
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
|
-
},
|
|
738
|
-
return b !== "annotation-xml" &&
|
|
739
|
-
},
|
|
740
|
-
|
|
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
|
|
755
|
-
name:
|
|
756
|
-
namespaceURI:
|
|
757
|
-
value:
|
|
758
|
-
} =
|
|
759
|
-
let
|
|
760
|
-
if (G.attrName = vt, G.attrValue =
|
|
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 (!
|
|
763
|
-
|
|
777
|
+
if (!ve && be(/\/>/i, Ee)) {
|
|
778
|
+
It(pe, b);
|
|
764
779
|
continue;
|
|
765
780
|
}
|
|
766
|
-
|
|
767
|
-
|
|
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
|
|
770
|
-
if (
|
|
771
|
-
if (
|
|
772
|
-
switch (u.getAttributeType(
|
|
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
|
-
|
|
793
|
+
Ee = y.createHTML(Ee);
|
|
775
794
|
break;
|
|
776
795
|
}
|
|
777
796
|
case "TrustedScriptURL": {
|
|
778
|
-
|
|
797
|
+
Ee = y.createScriptURL(Ee);
|
|
779
798
|
break;
|
|
780
799
|
}
|
|
781
800
|
}
|
|
782
801
|
try {
|
|
783
|
-
|
|
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
|
-
|
|
789
|
-
},
|
|
807
|
+
Ge("afterSanitizeAttributes", b, null);
|
|
808
|
+
}, Va = function $(b) {
|
|
790
809
|
let D = null;
|
|
791
|
-
const G =
|
|
792
|
-
for (
|
|
793
|
-
|
|
794
|
-
|
|
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(
|
|
797
|
-
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, D = null, G = null, ee = null,
|
|
798
|
-
if (
|
|
799
|
-
if (typeof
|
|
800
|
-
if (
|
|
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
|
|
806
|
-
if (N ||
|
|
807
|
-
if (
|
|
808
|
-
const
|
|
809
|
-
if (!ce[
|
|
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 (
|
|
813
|
-
D =
|
|
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
|
-
|
|
817
|
-
return y &&
|
|
818
|
-
if (D =
|
|
819
|
-
return Je ? null :
|
|
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 &&
|
|
822
|
-
const
|
|
823
|
-
for (; ee =
|
|
824
|
-
|
|
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
|
|
845
|
+
return $;
|
|
827
846
|
if (Je) {
|
|
828
|
-
if (
|
|
829
|
-
for (
|
|
830
|
-
|
|
847
|
+
if (wt)
|
|
848
|
+
for (ye = I.call(D.ownerDocument); D.firstChild; )
|
|
849
|
+
ye.appendChild(D.firstChild);
|
|
831
850
|
else
|
|
832
|
-
|
|
833
|
-
return (re.shadowroot || re.shadowrootmode) && (
|
|
851
|
+
ye = D;
|
|
852
|
+
return (re.shadowroot || re.shadowrootmode) && (ye = W.call(n, ye, !0)), ye;
|
|
834
853
|
}
|
|
835
|
-
let
|
|
836
|
-
return R && ce["!doctype"] && D.ownerDocument && D.ownerDocument.doctype && D.ownerDocument.doctype.name &&
|
|
837
|
-
` +
|
|
838
|
-
|
|
839
|
-
}), y &&
|
|
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
|
|
842
|
-
|
|
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(
|
|
846
|
-
nt ||
|
|
847
|
-
const G = ue(
|
|
848
|
-
return
|
|
849
|
-
}, e.addHook = function(
|
|
850
|
-
typeof b == "function" && (k[
|
|
851
|
-
}, e.removeHook = function(
|
|
852
|
-
if (k[
|
|
853
|
-
return
|
|
854
|
-
}, e.removeHooks = function(
|
|
855
|
-
k[
|
|
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
|
|
861
|
-
const
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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-${
|
|
908
|
-
)}" aria-label="${
|
|
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
|
-
${
|
|
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-${
|
|
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);
|
|
@@ -1241,11 +1260,11 @@ const Vt = (o) => zn.sanitize(o, {
|
|
|
1241
1260
|
}
|
|
1242
1261
|
}
|
|
1243
1262
|
};
|
|
1244
|
-
|
|
1245
|
-
let
|
|
1246
|
-
const
|
|
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 =
|
|
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 ===
|
|
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") ===
|
|
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 ===
|
|
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 ===
|
|
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 ===
|
|
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") ===
|
|
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") ===
|
|
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
|
-
|
|
1333
|
-
let
|
|
1334
|
-
class
|
|
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 ||
|
|
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
|
|
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
|
-
},
|
|
1360
|
-
function
|
|
1361
|
-
|
|
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
|
|
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
|
|
1376
|
-
return
|
|
1388
|
+
function Qr(o) {
|
|
1389
|
+
return so(o) || no(o) || to(o) || eo();
|
|
1377
1390
|
}
|
|
1378
|
-
function
|
|
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
|
|
1395
|
+
function to(o, e) {
|
|
1383
1396
|
if (o) {
|
|
1384
1397
|
if (typeof o == "string")
|
|
1385
|
-
return
|
|
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
|
|
1403
|
+
return xn(o, e);
|
|
1391
1404
|
}
|
|
1392
1405
|
}
|
|
1393
|
-
function
|
|
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
|
|
1410
|
+
function so(o) {
|
|
1398
1411
|
if (Array.isArray(o))
|
|
1399
|
-
return
|
|
1412
|
+
return xn(o);
|
|
1400
1413
|
}
|
|
1401
|
-
function
|
|
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
|
|
1420
|
+
function La(o) {
|
|
1408
1421
|
return o.reduce(function(e, t) {
|
|
1409
|
-
return Array.isArray(t) ? e.push.apply(e,
|
|
1422
|
+
return Array.isArray(t) ? e.push.apply(e, Qr(La(t))) : e.push(t), e;
|
|
1410
1423
|
}, []);
|
|
1411
1424
|
}
|
|
1412
|
-
function
|
|
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
|
|
1428
|
+
return La(e).reduce(function(n, s) {
|
|
1416
1429
|
return s(n);
|
|
1417
1430
|
}, /* @__PURE__ */ function() {
|
|
1418
1431
|
function n() {
|
|
1419
|
-
|
|
1432
|
+
Jr(this, n);
|
|
1420
1433
|
}
|
|
1421
|
-
return
|
|
1434
|
+
return Kr(n);
|
|
1422
1435
|
}());
|
|
1423
1436
|
}
|
|
1424
|
-
function
|
|
1437
|
+
function Ln(o) {
|
|
1425
1438
|
"@babel/helpers - typeof";
|
|
1426
|
-
return
|
|
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
|
-
},
|
|
1443
|
+
}, Ln(o);
|
|
1431
1444
|
}
|
|
1432
|
-
function
|
|
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
|
|
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
|
|
1443
|
-
return e &&
|
|
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
|
|
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 &&
|
|
1471
|
+
}), e && An(o, e);
|
|
1459
1472
|
}
|
|
1460
|
-
function
|
|
1461
|
-
return
|
|
1473
|
+
function An(o, e) {
|
|
1474
|
+
return An = Object.setPrototypeOf || function(n, s) {
|
|
1462
1475
|
return n.__proto__ = s, n;
|
|
1463
|
-
},
|
|
1476
|
+
}, An(o, e);
|
|
1464
1477
|
}
|
|
1465
|
-
function
|
|
1466
|
-
var e =
|
|
1478
|
+
function lo(o) {
|
|
1479
|
+
var e = ho();
|
|
1467
1480
|
return function() {
|
|
1468
|
-
var n =
|
|
1481
|
+
var n = Ft(o), s;
|
|
1469
1482
|
if (e) {
|
|
1470
|
-
var a =
|
|
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
|
|
1487
|
+
return co(this, s);
|
|
1475
1488
|
};
|
|
1476
1489
|
}
|
|
1477
|
-
function
|
|
1478
|
-
if (e && (
|
|
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
|
|
1495
|
+
return Aa(o);
|
|
1483
1496
|
}
|
|
1484
|
-
function
|
|
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
|
|
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
|
|
1502
|
-
return
|
|
1514
|
+
function Ft(o) {
|
|
1515
|
+
return Ft = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1503
1516
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1504
|
-
},
|
|
1517
|
+
}, Ft(o);
|
|
1505
1518
|
}
|
|
1506
|
-
function
|
|
1519
|
+
function uo(o) {
|
|
1507
1520
|
var e = /* @__PURE__ */ function(t) {
|
|
1508
|
-
|
|
1509
|
-
var n =
|
|
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 (
|
|
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,
|
|
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
|
|
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
|
|
1550
|
+
function wn(o) {
|
|
1538
1551
|
"@babel/helpers - typeof";
|
|
1539
|
-
return
|
|
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
|
-
},
|
|
1556
|
+
}, wn(o);
|
|
1544
1557
|
}
|
|
1545
|
-
function
|
|
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
|
|
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
|
|
1556
|
-
return e &&
|
|
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
|
|
1561
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
1562
|
-
var s =
|
|
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
|
-
},
|
|
1580
|
+
}, $t.apply(this, arguments);
|
|
1568
1581
|
}
|
|
1569
|
-
function
|
|
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
|
|
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 &&
|
|
1598
|
+
}), e && Mn(o, e);
|
|
1586
1599
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1600
|
+
function Mn(o, e) {
|
|
1601
|
+
return Mn = Object.setPrototypeOf || function(n, s) {
|
|
1589
1602
|
return n.__proto__ = s, n;
|
|
1590
|
-
},
|
|
1603
|
+
}, Mn(o, e);
|
|
1591
1604
|
}
|
|
1592
|
-
function
|
|
1593
|
-
var e =
|
|
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
|
|
1614
|
+
return Eo(this, s);
|
|
1602
1615
|
};
|
|
1603
1616
|
}
|
|
1604
|
-
function
|
|
1605
|
-
if (e && (
|
|
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
|
|
1622
|
+
return bo(o);
|
|
1610
1623
|
}
|
|
1611
|
-
function
|
|
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
|
|
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
|
|
1646
|
+
function Oo(o) {
|
|
1634
1647
|
var e = /* @__PURE__ */ function(t) {
|
|
1635
|
-
|
|
1636
|
-
var n =
|
|
1648
|
+
vo(s, t);
|
|
1649
|
+
var n = yo(s);
|
|
1637
1650
|
function s() {
|
|
1638
1651
|
var a;
|
|
1639
|
-
|
|
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
|
|
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
|
-
}),
|
|
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
|
|
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
|
|
1700
|
+
function Cn(o) {
|
|
1688
1701
|
"@babel/helpers - typeof";
|
|
1689
|
-
return
|
|
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
|
-
},
|
|
1706
|
+
}, Cn(o);
|
|
1694
1707
|
}
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1708
|
+
function To(o) {
|
|
1709
|
+
return wo(o) || Ao(o) || Lo(o) || xo();
|
|
1697
1710
|
}
|
|
1698
|
-
function
|
|
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
|
|
1715
|
+
function Lo(o, e) {
|
|
1703
1716
|
if (o) {
|
|
1704
1717
|
if (typeof o == "string")
|
|
1705
|
-
return
|
|
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
|
|
1723
|
+
return _n(o, e);
|
|
1711
1724
|
}
|
|
1712
1725
|
}
|
|
1713
|
-
function
|
|
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
|
|
1730
|
+
function wo(o) {
|
|
1718
1731
|
if (Array.isArray(o))
|
|
1719
|
-
return
|
|
1732
|
+
return _n(o);
|
|
1720
1733
|
}
|
|
1721
|
-
function
|
|
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
|
|
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
|
|
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
|
|
1738
|
-
return e &&
|
|
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
|
|
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 &&
|
|
1766
|
+
}), e && In(o, e);
|
|
1754
1767
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return
|
|
1768
|
+
function In(o, e) {
|
|
1769
|
+
return In = Object.setPrototypeOf || function(n, s) {
|
|
1757
1770
|
return n.__proto__ = s, n;
|
|
1758
|
-
},
|
|
1771
|
+
}, In(o, e);
|
|
1759
1772
|
}
|
|
1760
|
-
function
|
|
1761
|
-
var e =
|
|
1773
|
+
function Ro(o) {
|
|
1774
|
+
var e = Po();
|
|
1762
1775
|
return function() {
|
|
1763
|
-
var n =
|
|
1776
|
+
var n = zt(o), s;
|
|
1764
1777
|
if (e) {
|
|
1765
|
-
var a =
|
|
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
|
|
1782
|
+
return ko(this, s);
|
|
1770
1783
|
};
|
|
1771
1784
|
}
|
|
1772
|
-
function
|
|
1773
|
-
if (e && (
|
|
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
|
|
1790
|
+
return Do(o);
|
|
1778
1791
|
}
|
|
1779
|
-
function
|
|
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
|
|
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
|
|
1797
|
-
return
|
|
1809
|
+
function zt(o) {
|
|
1810
|
+
return zt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1798
1811
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1799
|
-
},
|
|
1812
|
+
}, zt(o);
|
|
1800
1813
|
}
|
|
1801
|
-
function
|
|
1814
|
+
function No(o) {
|
|
1802
1815
|
var e = /* @__PURE__ */ function(t) {
|
|
1803
|
-
|
|
1804
|
-
var n =
|
|
1816
|
+
Io(s, t);
|
|
1817
|
+
var n = Ro(s);
|
|
1805
1818
|
function s() {
|
|
1806
|
-
return
|
|
1819
|
+
return Mo(this, s), n.apply(this, arguments);
|
|
1807
1820
|
}
|
|
1808
|
-
return
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
1926
|
+
function kn(o) {
|
|
1914
1927
|
"@babel/helpers - typeof";
|
|
1915
|
-
return
|
|
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
|
-
},
|
|
1932
|
+
}, kn(o);
|
|
1920
1933
|
}
|
|
1921
|
-
function
|
|
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
|
|
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
|
|
1932
|
-
return e &&
|
|
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
|
|
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 &&
|
|
1960
|
+
}), e && Dn(o, e);
|
|
1948
1961
|
}
|
|
1949
|
-
function
|
|
1950
|
-
return
|
|
1962
|
+
function Dn(o, e) {
|
|
1963
|
+
return Dn = Object.setPrototypeOf || function(n, s) {
|
|
1951
1964
|
return n.__proto__ = s, n;
|
|
1952
|
-
},
|
|
1965
|
+
}, Dn(o, e);
|
|
1953
1966
|
}
|
|
1954
|
-
function
|
|
1955
|
-
var e =
|
|
1967
|
+
function Uo(o) {
|
|
1968
|
+
var e = zo();
|
|
1956
1969
|
return function() {
|
|
1957
|
-
var n =
|
|
1970
|
+
var n = Wt(o), s;
|
|
1958
1971
|
if (e) {
|
|
1959
|
-
var a =
|
|
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
|
|
1976
|
+
return $o(this, s);
|
|
1964
1977
|
};
|
|
1965
1978
|
}
|
|
1966
|
-
function
|
|
1967
|
-
if (e && (
|
|
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
|
|
1984
|
+
return Fo(o);
|
|
1972
1985
|
}
|
|
1973
|
-
function
|
|
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
|
|
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
|
|
1991
|
-
return
|
|
2003
|
+
function Wt(o) {
|
|
2004
|
+
return Wt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1992
2005
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1993
|
-
},
|
|
2006
|
+
}, Wt(o);
|
|
1994
2007
|
}
|
|
1995
|
-
function
|
|
2008
|
+
function Wo(o) {
|
|
1996
2009
|
var e = /* @__PURE__ */ function(t) {
|
|
1997
|
-
|
|
1998
|
-
var n =
|
|
2010
|
+
Ho(s, t);
|
|
2011
|
+
var n = Uo(s);
|
|
1999
2012
|
function s() {
|
|
2000
|
-
return
|
|
2013
|
+
return Vo(this, s), n.apply(this, arguments);
|
|
2001
2014
|
}
|
|
2002
|
-
return
|
|
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",
|
|
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",
|
|
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
|
|
2031
|
-
|
|
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
|
|
2047
|
+
var wa = function() {
|
|
2036
2048
|
};
|
|
2037
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
2062
|
-
const
|
|
2063
|
-
function
|
|
2073
|
+
var Zo = wa;
|
|
2074
|
+
const Yo = /* @__PURE__ */ Xo(Zo);
|
|
2075
|
+
function Pn(o) {
|
|
2064
2076
|
"@babel/helpers - typeof";
|
|
2065
|
-
return
|
|
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
|
-
},
|
|
2081
|
+
}, Pn(o);
|
|
2070
2082
|
}
|
|
2071
|
-
function
|
|
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
|
|
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
|
|
2082
|
-
return
|
|
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
|
|
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 &&
|
|
2109
|
+
}), e && Nn(o, e);
|
|
2098
2110
|
}
|
|
2099
|
-
function
|
|
2100
|
-
return
|
|
2111
|
+
function Nn(o, e) {
|
|
2112
|
+
return Nn = Object.setPrototypeOf || function(n, s) {
|
|
2101
2113
|
return n.__proto__ = s, n;
|
|
2102
|
-
},
|
|
2114
|
+
}, Nn(o, e);
|
|
2103
2115
|
}
|
|
2104
|
-
function
|
|
2105
|
-
var e =
|
|
2116
|
+
function el(o) {
|
|
2117
|
+
var e = sl();
|
|
2106
2118
|
return function() {
|
|
2107
|
-
var n =
|
|
2119
|
+
var n = jt(o), s;
|
|
2108
2120
|
if (e) {
|
|
2109
|
-
var a =
|
|
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
|
|
2125
|
+
return tl(this, s);
|
|
2114
2126
|
};
|
|
2115
2127
|
}
|
|
2116
|
-
function
|
|
2117
|
-
if (e && (
|
|
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
|
|
2133
|
+
return nl(o);
|
|
2122
2134
|
}
|
|
2123
|
-
function
|
|
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
|
|
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
|
|
2141
|
-
return
|
|
2152
|
+
function jt(o) {
|
|
2153
|
+
return jt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
2142
2154
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2143
|
-
},
|
|
2155
|
+
}, jt(o);
|
|
2144
2156
|
}
|
|
2145
|
-
function
|
|
2157
|
+
function al(o) {
|
|
2146
2158
|
var e = /* @__PURE__ */ function(t) {
|
|
2147
|
-
|
|
2148
|
-
var n =
|
|
2159
|
+
Qo(s, t);
|
|
2160
|
+
var n = el(s);
|
|
2149
2161
|
function s() {
|
|
2150
|
-
return
|
|
2162
|
+
return qo(this, s), n.apply(this, arguments);
|
|
2151
2163
|
}
|
|
2152
|
-
return
|
|
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
|
|
2179
|
-
var u =
|
|
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
|
|
2219
|
+
function Vn(o) {
|
|
2208
2220
|
"@babel/helpers - typeof";
|
|
2209
|
-
return
|
|
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
|
-
},
|
|
2225
|
+
}, Vn(o);
|
|
2214
2226
|
}
|
|
2215
|
-
function
|
|
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
|
|
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
|
|
2226
|
-
return e &&
|
|
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
|
|
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 &&
|
|
2253
|
+
}), e && Bn(o, e);
|
|
2242
2254
|
}
|
|
2243
|
-
function
|
|
2244
|
-
return
|
|
2255
|
+
function Bn(o, e) {
|
|
2256
|
+
return Bn = Object.setPrototypeOf || function(n, s) {
|
|
2245
2257
|
return n.__proto__ = s, n;
|
|
2246
|
-
},
|
|
2258
|
+
}, Bn(o, e);
|
|
2247
2259
|
}
|
|
2248
|
-
function
|
|
2249
|
-
var e =
|
|
2260
|
+
function ll(o) {
|
|
2261
|
+
var e = hl();
|
|
2250
2262
|
return function() {
|
|
2251
|
-
var n =
|
|
2263
|
+
var n = Xt(o), s;
|
|
2252
2264
|
if (e) {
|
|
2253
|
-
var a =
|
|
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
|
|
2269
|
+
return cl(this, s);
|
|
2258
2270
|
};
|
|
2259
2271
|
}
|
|
2260
|
-
function
|
|
2261
|
-
if (e && (
|
|
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
|
|
2277
|
+
return dl(o);
|
|
2266
2278
|
}
|
|
2267
|
-
function
|
|
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
|
|
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
|
|
2285
|
-
return
|
|
2296
|
+
function Xt(o) {
|
|
2297
|
+
return Xt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
2286
2298
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2287
|
-
},
|
|
2299
|
+
}, Xt(o);
|
|
2288
2300
|
}
|
|
2289
|
-
var
|
|
2290
|
-
|
|
2291
|
-
var e =
|
|
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
|
|
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 !
|
|
2298
|
-
}) && a.element.querySelector(
|
|
2309
|
+
return !Rn(i, l);
|
|
2310
|
+
}) && a.element.querySelector(vn.selectorTabbable).focus();
|
|
2299
2311
|
}, a._hookCloseActions(), a;
|
|
2300
2312
|
}
|
|
2301
|
-
return
|
|
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(
|
|
2336
|
-
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" &&
|
|
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(
|
|
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(
|
|
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(
|
|
2351
|
-
var i =
|
|
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(
|
|
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 =
|
|
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
|
-
}(
|
|
2418
|
-
class
|
|
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()),
|
|
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">${
|
|
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">${
|
|
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>${
|
|
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
|
|
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) =>
|
|
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
|
|
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 =
|
|
2670
|
-
return l.length > s && l.length !== a ?
|
|
2671
|
-
}) : i.html((r) =>
|
|
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
|
|
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
|
|
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
|
|
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),
|
|
2800
|
+
}, rt), Us = typeof window < "u" ? window : {
|
|
2789
2801
|
innerHeight: 0,
|
|
2790
2802
|
scrollY: 0,
|
|
2791
2803
|
innerWidth: 0,
|
|
2792
2804
|
scrollX: 0
|
|
2793
|
-
},
|
|
2805
|
+
}, Jt = (
|
|
2794
2806
|
/** @class */
|
|
2795
2807
|
function() {
|
|
2796
2808
|
function o(e) {
|
|
2797
|
-
e === void 0 && (e = {}), this.positions =
|
|
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:
|
|
2874
|
-
width:
|
|
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
|
|
2882
|
-
class
|
|
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
|
|
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>${
|
|
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>${
|
|
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>${
|
|
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 =
|
|
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 } =
|
|
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(
|
|
@@ -3010,7 +3022,7 @@ class El extends Y {
|
|
|
3010
3022
|
}
|
|
3011
3023
|
let g = v(e, "detail", "mousePosition");
|
|
3012
3024
|
if (!g)
|
|
3013
|
-
g =
|
|
3025
|
+
g = qt(v(e, "detail", "event"), t);
|
|
3014
3026
|
else {
|
|
3015
3027
|
const E = v(i, "zoomBar", "top", "type"), O = we.height[E];
|
|
3016
3028
|
r && (g[1] += O + we.spacerHeight);
|
|
@@ -3062,7 +3074,7 @@ const ht = class ht extends Y {
|
|
|
3062
3074
|
}), { cartesianScales: c } = this.services, d = c.getMainXScaleType(), p = c.getMainXScale(), [h] = p.range();
|
|
3063
3075
|
n.attr("transform", `translate(${h},0)`);
|
|
3064
3076
|
const u = S.appendOrSelect(n, this.frontSelectionSelector);
|
|
3065
|
-
if (p && d ===
|
|
3077
|
+
if (p && d === ge.TIME) {
|
|
3066
3078
|
let g = this.model.get("zoomDomain");
|
|
3067
3079
|
g === void 0 && (g = this.services.zoom.getDefaultZoomBarDomain(), g && this.model.set({ zoomDomain: g }, { animate: !1 }));
|
|
3068
3080
|
const m = (A) => {
|
|
@@ -3076,7 +3088,7 @@ const ht = class ht extends Y {
|
|
|
3076
3088
|
const L = A.selection;
|
|
3077
3089
|
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
3090
|
}, O = (A, L) => {
|
|
3079
|
-
const I =
|
|
3091
|
+
const I = Ka().range([0, r]).domain(g);
|
|
3080
3092
|
let P = [I.invert(A), I.invert(L)];
|
|
3081
3093
|
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
3094
|
};
|
|
@@ -3085,14 +3097,14 @@ const ht = class ht extends Y {
|
|
|
3085
3097
|
const L = A.selection;
|
|
3086
3098
|
L !== null && (O(L[0], L[1]), a.call(x.move, null), u.style("display", "none"));
|
|
3087
3099
|
};
|
|
3088
|
-
l != 0 && r != 0 && (x =
|
|
3100
|
+
l != 0 && r != 0 && (x = Qs().extent([
|
|
3089
3101
|
[0, 0],
|
|
3090
3102
|
[r - 1, l]
|
|
3091
3103
|
]).on("start brush end", E).on("end.brushed", y), a.call(x));
|
|
3092
3104
|
const w = this.services.zoom.getZoomRatio();
|
|
3093
3105
|
s.on("click", function(A) {
|
|
3094
3106
|
if (A.shiftKey) {
|
|
3095
|
-
const L = this.services.domUtils.getHolder(), I =
|
|
3107
|
+
const L = this.services.domUtils.getHolder(), I = qt(a.node(), L)[0];
|
|
3096
3108
|
let P = I - r * w / 2;
|
|
3097
3109
|
P < 0 && (P = 0);
|
|
3098
3110
|
let W = I + r * w / 2;
|
|
@@ -3103,10 +3115,10 @@ const ht = class ht extends Y {
|
|
|
3103
3115
|
}
|
|
3104
3116
|
};
|
|
3105
3117
|
ht.DASH_LENGTH = 4;
|
|
3106
|
-
let
|
|
3107
|
-
class
|
|
3118
|
+
let $s = ht;
|
|
3119
|
+
class fh extends Y {
|
|
3108
3120
|
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 =
|
|
3121
|
+
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
3122
|
}
|
|
3111
3123
|
init() {
|
|
3112
3124
|
this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
@@ -3137,9 +3149,9 @@ class Eh extends Y {
|
|
|
3137
3149
|
return;
|
|
3138
3150
|
}
|
|
3139
3151
|
const { cartesianScales: h } = this.services, u = h.getMainXScale(), g = h.getMainYScale(), m = h.getMainXScaleType();
|
|
3140
|
-
if (u && m ===
|
|
3152
|
+
if (u && m === ge.TIME) {
|
|
3141
3153
|
let E = this.services.zoom.getZoomBarData();
|
|
3142
|
-
if (
|
|
3154
|
+
if (Js(E) || E.length === 1)
|
|
3143
3155
|
return;
|
|
3144
3156
|
this.xScale = u.copy(), this.yScale = g.copy();
|
|
3145
3157
|
const O = this.services.zoom.getDefaultZoomBarDomain(E);
|
|
@@ -3163,7 +3175,7 @@ class Eh extends Y {
|
|
|
3163
3175
|
zoomDomain: ut([], O)
|
|
3164
3176
|
},
|
|
3165
3177
|
{ skipUpdate: !0 }
|
|
3166
|
-
), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(
|
|
3178
|
+
), 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
3179
|
const w = this.model.get("zoomDomain");
|
|
3168
3180
|
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
3181
|
const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, P = i.color, W = i.labelMapsTo;
|
|
@@ -3254,7 +3266,7 @@ class Eh extends Y {
|
|
|
3254
3266
|
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
3267
|
}
|
|
3256
3268
|
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 =
|
|
3269
|
+
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
3270
|
s && E.attr("clip-path", `url(#${s})`);
|
|
3259
3271
|
}
|
|
3260
3272
|
updateClipPath(e, t, n, s, a, i) {
|
|
@@ -3265,7 +3277,7 @@ class Eh extends Y {
|
|
|
3265
3277
|
compensateDataForDefaultDomain(e, t) {
|
|
3266
3278
|
if (!e || e.length < 2)
|
|
3267
3279
|
return;
|
|
3268
|
-
const n =
|
|
3280
|
+
const n = Wa(e), s = this.services.cartesianScales.getDomainIdentifier(), a = this.services.cartesianScales.getRangeIdentifier();
|
|
3269
3281
|
if (Number(t[0]) < Number(n[0][s])) {
|
|
3270
3282
|
const i = {};
|
|
3271
3283
|
i[s] = t[0], i[a] = 0, n.unshift(i);
|
|
@@ -3282,7 +3294,7 @@ class Eh extends Y {
|
|
|
3282
3294
|
"zoomBar",
|
|
3283
3295
|
B.TOP,
|
|
3284
3296
|
"type"
|
|
3285
|
-
), i = we.height[a], r =
|
|
3297
|
+
), i = we.height[a], r = Hn()([
|
|
3286
3298
|
[t, i],
|
|
3287
3299
|
[n, i]
|
|
3288
3300
|
]);
|
|
@@ -3298,9 +3310,9 @@ class Eh extends Y {
|
|
|
3298
3310
|
this.brush.on("start brush end", null), this.services.events.removeEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
3299
3311
|
}
|
|
3300
3312
|
}
|
|
3301
|
-
class
|
|
3313
|
+
class vh extends Y {
|
|
3302
3314
|
constructor(e, t) {
|
|
3303
|
-
super(e, t), this.type = "threshold", this.renderType = j.SVG, this.positionService = new
|
|
3315
|
+
super(e, t), this.type = "threshold", this.renderType = j.SVG, this.positionService = new Jt();
|
|
3304
3316
|
}
|
|
3305
3317
|
render(e = !1) {
|
|
3306
3318
|
const t = v(this.getOptions(), "axes"), n = [];
|
|
@@ -3332,7 +3344,7 @@ class bh extends Y {
|
|
|
3332
3344
|
), g = p.services.cartesianScales.getScaleTypeByPosition(h);
|
|
3333
3345
|
let m = null, E = null;
|
|
3334
3346
|
h === B.LEFT || h === B.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
|
|
3335
|
-
const O = g ===
|
|
3347
|
+
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
3348
|
P,
|
|
3337
3349
|
W,
|
|
3338
3350
|
I
|
|
@@ -3370,12 +3382,12 @@ class bh extends Y {
|
|
|
3370
3382
|
}
|
|
3371
3383
|
getFormattedValue(e) {
|
|
3372
3384
|
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 ===
|
|
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 =
|
|
3385
|
+
if (a === ge.TIME) {
|
|
3386
|
+
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
3387
|
p.ticks(),
|
|
3376
3388
|
v(h, "timeInterval")
|
|
3377
3389
|
);
|
|
3378
|
-
return
|
|
3390
|
+
return En(t, 0, p.ticks(), u, h, s.locale);
|
|
3379
3391
|
}
|
|
3380
3392
|
return r(t, i);
|
|
3381
3393
|
}
|
|
@@ -3387,8 +3399,8 @@ class bh extends Y {
|
|
|
3387
3399
|
).classed("hidden", !0);
|
|
3388
3400
|
}
|
|
3389
3401
|
setThresholdLabelPosition({ event: e, datum: t }) {
|
|
3390
|
-
const n = this.services.domUtils.getHolder(), s =
|
|
3391
|
-
this.label.html(
|
|
3402
|
+
const n = this.services.domUtils.getHolder(), s = qt(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
|
|
3403
|
+
this.label.html(Ve(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
|
|
3392
3404
|
const i = this.label.node(), r = this.positionService.findBestPlacementAt(
|
|
3393
3405
|
{
|
|
3394
3406
|
left: s[0],
|
|
@@ -3436,9 +3448,9 @@ class bh extends Y {
|
|
|
3436
3448
|
});
|
|
3437
3449
|
}
|
|
3438
3450
|
}
|
|
3439
|
-
class
|
|
3451
|
+
class yh extends Y {
|
|
3440
3452
|
constructor(e, t) {
|
|
3441
|
-
super(e, t), this.type = "highlight", this.renderType = j.SVG, this.positionService = new
|
|
3453
|
+
super(e, t), this.type = "highlight", this.renderType = j.SVG, this.positionService = new Jt(), this.highlightStrokeWidth = 1;
|
|
3442
3454
|
}
|
|
3443
3455
|
render(e = !1) {
|
|
3444
3456
|
const t = v(this.getOptions(), "axes"), n = [];
|
|
@@ -3467,7 +3479,7 @@ class Sh extends Y {
|
|
|
3467
3479
|
c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
|
|
3468
3480
|
const p = this;
|
|
3469
3481
|
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] =
|
|
3482
|
+
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
3483
|
A,
|
|
3472
3484
|
L,
|
|
3473
3485
|
w
|
|
@@ -3494,7 +3506,7 @@ class Sh extends Y {
|
|
|
3494
3506
|
});
|
|
3495
3507
|
}
|
|
3496
3508
|
}
|
|
3497
|
-
class
|
|
3509
|
+
class Eh extends fl {
|
|
3498
3510
|
getItems(e) {
|
|
3499
3511
|
if (e.detail.items)
|
|
3500
3512
|
return e.detail.items;
|
|
@@ -3581,7 +3593,7 @@ class Oh extends El {
|
|
|
3581
3593
|
return p;
|
|
3582
3594
|
}
|
|
3583
3595
|
}
|
|
3584
|
-
class
|
|
3596
|
+
class bh extends Y {
|
|
3585
3597
|
constructor() {
|
|
3586
3598
|
super(...arguments), this.type = "alluvial", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
|
|
3587
3599
|
}
|
|
@@ -3605,9 +3617,9 @@ class Th extends Y {
|
|
|
3605
3617
|
let l = ke.minNodePadding;
|
|
3606
3618
|
a.alluvial.nodePadding > ke.minNodePadding && (l = a.alluvial.nodePadding);
|
|
3607
3619
|
const c = v(a, "alluvial", "nodeAlignment");
|
|
3608
|
-
let d =
|
|
3609
|
-
c === Ce.LEFT ? d =
|
|
3610
|
-
const p =
|
|
3620
|
+
let d = wi;
|
|
3621
|
+
c === Ce.LEFT ? d = Mi : c === Ce.RIGHT && (d = Ci);
|
|
3622
|
+
const p = Li().nodeId((y) => y.name).nodeWidth(ke.nodeWidth).nodePadding(l).nodeAlign(d).extent([
|
|
3611
3623
|
[2, 30],
|
|
3612
3624
|
[n - 2, s]
|
|
3613
3625
|
]);
|
|
@@ -3640,7 +3652,7 @@ class Th extends Y {
|
|
|
3640
3652
|
(w) => w.append("stop").attr("offset", "100%").attr("stop-color", (A) => y[A.target.name])
|
|
3641
3653
|
), g.exit().remove();
|
|
3642
3654
|
}
|
|
3643
|
-
g.enter().append("path").classed("link", !0).attr("d",
|
|
3655
|
+
g.enter().append("path").classed("link", !0).attr("d", Ai()).attr(
|
|
3644
3656
|
"id",
|
|
3645
3657
|
(y) => this.services.domUtils.generateElementIDString(`alluvial-line-${y.index}`)
|
|
3646
3658
|
).attr("class", (y) => a.alluvial.monochrome ? this.model.getColorClassName({
|
|
@@ -3689,7 +3701,7 @@ class Th extends Y {
|
|
|
3689
3701
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
3690
3702
|
}
|
|
3691
3703
|
addLineEventListener() {
|
|
3692
|
-
const e = this.getOptions(), t = this, { number: n, code: s } = v(this.getOptions(), "locale"), a =
|
|
3704
|
+
const e = this.getOptions(), t = this, { number: n, code: s } = v(this.getOptions(), "locale"), a = Sn((i, r = "mouseover") => {
|
|
3693
3705
|
const l = t.parent.selectAll("path.link").transition().call(
|
|
3694
3706
|
(c) => t.services.transitions.setupTransition({
|
|
3695
3707
|
transition: c,
|
|
@@ -3747,7 +3759,7 @@ class Th extends Y {
|
|
|
3747
3759
|
});
|
|
3748
3760
|
}
|
|
3749
3761
|
addNodeEventListener() {
|
|
3750
|
-
const e = this, t =
|
|
3762
|
+
const e = this, t = Sn((n = [], s = "mouseover") => {
|
|
3751
3763
|
if (s === "mouseout" || n.length === 0) {
|
|
3752
3764
|
e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", ke.opacity.default);
|
|
3753
3765
|
return;
|
|
@@ -3764,11 +3776,11 @@ class Th extends Y {
|
|
|
3764
3776
|
e.parent.selectAll(".node-group").on("mouseover", function(n, s) {
|
|
3765
3777
|
const a = T(this), i = [];
|
|
3766
3778
|
if (e.traverse({ link: "sourceLinks", node: "target" }, s, i), e.traverse({ link: "targetLinks", node: "source" }, s, i), i.length) {
|
|
3767
|
-
const r =
|
|
3779
|
+
const r = Tt(a.attr("transform"));
|
|
3768
3780
|
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
3781
|
const c = e.services.domUtils.generateElementIDString(
|
|
3770
3782
|
`alluvial-node-title-${s.index}`
|
|
3771
|
-
), d = e.parent.select(`g#${c}`), p =
|
|
3783
|
+
), d = e.parent.select(`g#${c}`), p = Tt(d.attr("transform"));
|
|
3772
3784
|
d.attr("transform", `translate(${p.x + 4},${p.y})`);
|
|
3773
3785
|
}
|
|
3774
3786
|
const l = e.services.domUtils.generateElementIDString(
|
|
@@ -3795,11 +3807,11 @@ class Th extends Y {
|
|
|
3795
3807
|
datum: s
|
|
3796
3808
|
});
|
|
3797
3809
|
}).on("mouseout", function(n, s) {
|
|
3798
|
-
const a = T(this), i =
|
|
3810
|
+
const a = T(this), i = Tt(a.attr("transform"));
|
|
3799
3811
|
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
3812
|
const l = e.services.domUtils.generateElementIDString(
|
|
3801
3813
|
`alluvial-node-title-${s.index}`
|
|
3802
|
-
), c = e.parent.select(`g#${l}`), d =
|
|
3814
|
+
), c = e.parent.select(`g#${l}`), d = Tt(c.attr("transform"));
|
|
3803
3815
|
c.attr("transform", `translate(${d.x - 4},${d.y})`);
|
|
3804
3816
|
}
|
|
3805
3817
|
const r = e.services.domUtils.generateElementIDString(
|
|
@@ -3830,7 +3842,7 @@ class Th extends Y {
|
|
|
3830
3842
|
this.parent.selectAll("path.line,.node-group").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
|
|
3831
3843
|
}
|
|
3832
3844
|
}
|
|
3833
|
-
class
|
|
3845
|
+
class Sh extends Y {
|
|
3834
3846
|
constructor() {
|
|
3835
3847
|
super(...arguments), this.type = "grid", this.renderType = j.SVG;
|
|
3836
3848
|
}
|
|
@@ -3839,7 +3851,7 @@ class xh extends Y {
|
|
|
3839
3851
|
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
3852
|
}
|
|
3841
3853
|
drawXGrid(e) {
|
|
3842
|
-
const t = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a =
|
|
3854
|
+
const t = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a = Un(s).tickSizeInner(-n).tickSizeOuter(0);
|
|
3843
3855
|
if (v(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
|
|
3844
3856
|
const l = this.services.cartesianScales.getDomainAxisPosition(), c = v(this.getOptions(), "axes", l, "ticks", "values");
|
|
3845
3857
|
c && a.tickValues(c);
|
|
@@ -3857,7 +3869,7 @@ class xh extends Y {
|
|
|
3857
3869
|
).call(a) : r.call(a), this.cleanGrid(r);
|
|
3858
3870
|
}
|
|
3859
3871
|
drawYGrid(e) {
|
|
3860
|
-
const t = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a =
|
|
3872
|
+
const t = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a = ea(s).tickSizeInner(-n).tickSizeOuter(0);
|
|
3861
3873
|
if (v(this.getOptions(), "grid", "y", "alignWithAxisTicks")) {
|
|
3862
3874
|
const l = this.services.cartesianScales.getRangeAxisPosition(), c = v(this.getOptions(), "axes", l, "ticks", "values");
|
|
3863
3875
|
c && a.tickValues(c);
|
|
@@ -3879,22 +3891,22 @@ class xh extends Y {
|
|
|
3879
3891
|
* Calculated based on the mouse position between the two closest gridlines or edges of chart.
|
|
3880
3892
|
*/
|
|
3881
3893
|
getGridlineThreshold(e) {
|
|
3882
|
-
const t = this.parent, n = t.selectAll(".x.grid .tick").nodes().sort((d, p) => Number(
|
|
3894
|
+
const t = this.parent, n = t.selectAll(".x.grid .tick").nodes().sort((d, p) => Number(He(d).tx) - Number(He(p).tx));
|
|
3883
3895
|
let s = -1;
|
|
3884
3896
|
if (!n.length)
|
|
3885
3897
|
return;
|
|
3886
3898
|
n.forEach((d) => {
|
|
3887
|
-
e[0] >= +
|
|
3899
|
+
e[0] >= +He(d).tx && s++;
|
|
3888
3900
|
});
|
|
3889
3901
|
const a = s + 1 < n.length ? s + 1 : n.length, i = n[s], r = n[a];
|
|
3890
3902
|
let l;
|
|
3891
3903
|
if (!i)
|
|
3892
|
-
l = +
|
|
3904
|
+
l = +He(r).tx;
|
|
3893
3905
|
else if (r)
|
|
3894
|
-
l = +
|
|
3906
|
+
l = +He(r).tx - +He(i).tx;
|
|
3895
3907
|
else {
|
|
3896
3908
|
const d = t.select("rect.chart-grid-backdrop").node();
|
|
3897
|
-
l = S.getSVGElementSize(d).width - +
|
|
3909
|
+
l = S.getSVGElementSize(d).width - +He(i).tx;
|
|
3898
3910
|
}
|
|
3899
3911
|
const { threshold: c } = this.getOptions().tooltip.gridline;
|
|
3900
3912
|
return l * c;
|
|
@@ -3906,7 +3918,7 @@ class xh extends Y {
|
|
|
3906
3918
|
getActiveGridline(e) {
|
|
3907
3919
|
const t = v(this.getOptions, "tooltip", "gridline", "threshold"), n = t || this.getGridlineThreshold(e);
|
|
3908
3920
|
return this.parent.selectAll(".x.grid .tick").filter(function() {
|
|
3909
|
-
const i =
|
|
3921
|
+
const i = He(this), r = {
|
|
3910
3922
|
min: Number(i.tx) - n,
|
|
3911
3923
|
max: Number(i.tx) + n
|
|
3912
3924
|
};
|
|
@@ -3926,7 +3938,7 @@ class xh extends Y {
|
|
|
3926
3938
|
e.selectAll("text").remove(), e.select(".domain").remove();
|
|
3927
3939
|
}
|
|
3928
3940
|
}
|
|
3929
|
-
class
|
|
3941
|
+
class Oh extends Y {
|
|
3930
3942
|
constructor() {
|
|
3931
3943
|
super(...arguments), this.type = "area", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
|
|
3932
3944
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3952,7 +3964,7 @@ class Lh extends Y {
|
|
|
3952
3964
|
render(e = !0) {
|
|
3953
3965
|
const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions();
|
|
3954
3966
|
let s = [0, 0];
|
|
3955
|
-
const { cartesianScales: a } = this.services, i = a.getOrientation(), r =
|
|
3967
|
+
const { cartesianScales: a } = this.services, i = a.getOrientation(), r = Gn().curve(this.services.curves.getD3Curve()).defined((A) => {
|
|
3956
3968
|
const L = a.getRangeIdentifier(), I = A[L];
|
|
3957
3969
|
return I != null;
|
|
3958
3970
|
}), l = this.model.getGroupedData(this.configs.groups), c = v(n, "bounds"), d = c && l && l.length === 1;
|
|
@@ -3988,7 +4000,7 @@ class Lh extends Y {
|
|
|
3988
4000
|
L = I[P[0]];
|
|
3989
4001
|
}
|
|
3990
4002
|
}
|
|
3991
|
-
|
|
4003
|
+
Es.appendOrUpdateLinearGradient({
|
|
3992
4004
|
svg: this.parent,
|
|
3993
4005
|
id: this.services.domUtils.generateElementIDString(
|
|
3994
4006
|
`${l[0].name.replace(" ", "")}_${this.gradient_id}`
|
|
@@ -3997,7 +4009,7 @@ class Lh extends Y {
|
|
|
3997
4009
|
x2: "0%",
|
|
3998
4010
|
y1: "0%",
|
|
3999
4011
|
y2: "100%",
|
|
4000
|
-
stops:
|
|
4012
|
+
stops: Es.getStops(s, L)
|
|
4001
4013
|
});
|
|
4002
4014
|
} else
|
|
4003
4015
|
this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
|
|
@@ -4042,7 +4054,7 @@ class Lh extends Y {
|
|
|
4042
4054
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
4043
4055
|
}
|
|
4044
4056
|
}
|
|
4045
|
-
class
|
|
4057
|
+
class Th extends Y {
|
|
4046
4058
|
constructor() {
|
|
4047
4059
|
super(...arguments), this.type = "line", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
4048
4060
|
const { hoveredElement: t } = e.detail;
|
|
@@ -4051,14 +4063,14 @@ class Ah extends Y {
|
|
|
4051
4063
|
transition: n,
|
|
4052
4064
|
name: "legend-hover-line"
|
|
4053
4065
|
})
|
|
4054
|
-
).attr("opacity", (n) => n.name !== t.datum().name ?
|
|
4066
|
+
).attr("opacity", (n) => n.name !== t.datum().name ? Ue.opacity.unselected : Ue.opacity.selected);
|
|
4055
4067
|
}, this.handleLegendMouseOut = () => {
|
|
4056
4068
|
this.parent.selectAll("path.line").transition("legend-mouseout-line").call(
|
|
4057
4069
|
(e) => this.services.transitions.setupTransition({
|
|
4058
4070
|
transition: e,
|
|
4059
4071
|
name: "legend-mouseout-line"
|
|
4060
4072
|
})
|
|
4061
|
-
).attr("opacity",
|
|
4073
|
+
).attr("opacity", Ue.opacity.selected);
|
|
4062
4074
|
};
|
|
4063
4075
|
}
|
|
4064
4076
|
init() {
|
|
@@ -4066,11 +4078,11 @@ class Ah extends Y {
|
|
|
4066
4078
|
e.addEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.addEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
4067
4079
|
}
|
|
4068
4080
|
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] =
|
|
4081
|
+
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
4082
|
a,
|
|
4071
4083
|
i,
|
|
4072
4084
|
n.getOrientation()
|
|
4073
|
-
), c = this.getOptions(), d =
|
|
4085
|
+
), c = this.getOptions(), d = Hn().x(r).y(l).curve(s.getD3Curve()).defined((g) => {
|
|
4074
4086
|
const m = n.getRangeIdentifier(g), E = g[m];
|
|
4075
4087
|
return E != null;
|
|
4076
4088
|
});
|
|
@@ -4089,7 +4101,7 @@ class Ah extends Y {
|
|
|
4089
4101
|
[m]: w[m],
|
|
4090
4102
|
[y]: w[1]
|
|
4091
4103
|
})),
|
|
4092
|
-
hidden: !
|
|
4104
|
+
hidden: !Cr(O, (w) => w[0] !== w[1])
|
|
4093
4105
|
};
|
|
4094
4106
|
});
|
|
4095
4107
|
} else
|
|
@@ -4124,11 +4136,11 @@ class Ah extends Y {
|
|
|
4124
4136
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
4125
4137
|
}
|
|
4126
4138
|
}
|
|
4127
|
-
const
|
|
4128
|
-
function
|
|
4129
|
-
return o > e -
|
|
4139
|
+
const Fs = 5;
|
|
4140
|
+
function vl(o, e) {
|
|
4141
|
+
return o > e - Fs && o < e + Fs;
|
|
4130
4142
|
}
|
|
4131
|
-
class
|
|
4143
|
+
class Ma extends Y {
|
|
4132
4144
|
constructor() {
|
|
4133
4145
|
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
4146
|
}
|
|
@@ -4152,7 +4164,7 @@ class Ia extends Y {
|
|
|
4152
4164
|
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
4165
|
domainValue: this.services.cartesianScales.getDomainValue(E),
|
|
4154
4166
|
originalData: E
|
|
4155
|
-
})).filter((E) =>
|
|
4167
|
+
})).filter((E) => vl(E.domainValue, d));
|
|
4156
4168
|
if (this.pointsWithinLine && g.length === this.pointsWithinLine.length && g.map((E) => E.domainValue).join() === this.pointsWithinLine.map((E) => E.domainValue).join())
|
|
4157
4169
|
return this.pointsWithinLine = g, this.services.events.dispatchEvent(f.Tooltip.MOVE, {
|
|
4158
4170
|
mousePosition: [t, n]
|
|
@@ -4174,7 +4186,7 @@ class Ia extends Y {
|
|
|
4174
4186
|
const A = this.services.cartesianScales.getDomainValue(w);
|
|
4175
4187
|
return O.includes(A);
|
|
4176
4188
|
});
|
|
4177
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
4189
|
+
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
4190
|
mousePosition: [t, n],
|
|
4179
4191
|
hoveredElement: h,
|
|
4180
4192
|
data: this.formatTooltipData(E)
|
|
@@ -4195,12 +4207,12 @@ class Ia extends Y {
|
|
|
4195
4207
|
this.isEventListenerAdded = !0;
|
|
4196
4208
|
const e = this, t = this.services.domUtils.getHolder(), n = this.model.getDisplayData();
|
|
4197
4209
|
let s = function(a) {
|
|
4198
|
-
const i =
|
|
4210
|
+
const i = qt(a, e.parent.node());
|
|
4199
4211
|
e.showRuler(a, i);
|
|
4200
4212
|
};
|
|
4201
4213
|
if (n.length > 100) {
|
|
4202
4214
|
const a = n.length % 50 * 12.5;
|
|
4203
|
-
s =
|
|
4215
|
+
s = ja(
|
|
4204
4216
|
function(i) {
|
|
4205
4217
|
const { mousePosition: r } = this;
|
|
4206
4218
|
e.showRuler(i, r);
|
|
@@ -4216,7 +4228,7 @@ class Ia extends Y {
|
|
|
4216
4228
|
this.backdrop = S.appendOrSelect(e, "svg.chart-grid-backdrop");
|
|
4217
4229
|
}
|
|
4218
4230
|
}
|
|
4219
|
-
class
|
|
4231
|
+
class jn extends Y {
|
|
4220
4232
|
constructor() {
|
|
4221
4233
|
super(...arguments), this.type = "scatter", this.renderType = j.SVG, this.handleChartHolderOnHover = () => {
|
|
4222
4234
|
if (!this.parent)
|
|
@@ -4331,11 +4343,11 @@ class Wn extends Y {
|
|
|
4331
4343
|
const { cartesianScales: n } = this.services;
|
|
4332
4344
|
if (!n)
|
|
4333
4345
|
throw new Error("Cartesian scales service is undefined");
|
|
4334
|
-
const s = n.getOrientation(), [a, i] =
|
|
4346
|
+
const s = n.getOrientation(), [a, i] = Fe(
|
|
4335
4347
|
n.getHighestDomainThreshold(),
|
|
4336
4348
|
n.getHighestRangeThreshold(),
|
|
4337
4349
|
s
|
|
4338
|
-
), [r, l] =
|
|
4350
|
+
), [r, l] = Fe(
|
|
4339
4351
|
(p) => n.getDomainValue(p),
|
|
4340
4352
|
(p) => n.getRangeValue(p),
|
|
4341
4353
|
s
|
|
@@ -4346,7 +4358,7 @@ class Wn extends Y {
|
|
|
4346
4358
|
const n = this.getOptions(), { filled: s, fillOpacity: a } = n.points, { cartesianScales: i } = this.services;
|
|
4347
4359
|
if (!i)
|
|
4348
4360
|
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] =
|
|
4361
|
+
const { groupMapsTo: r } = n.data, l = (u) => i.getDomainValue(u), c = (u) => i.getRangeValue(u), [d, p] = Fe(
|
|
4350
4362
|
l,
|
|
4351
4363
|
c,
|
|
4352
4364
|
i.getOrientation()
|
|
@@ -4470,7 +4482,7 @@ class Wn extends Y {
|
|
|
4470
4482
|
), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), e.removeEventListener(f.Chart.MOUSEOVER, this.handleChartHolderOnHover), e.removeEventListener(f.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
|
|
4471
4483
|
}
|
|
4472
4484
|
}
|
|
4473
|
-
class
|
|
4485
|
+
class Ca extends Y {
|
|
4474
4486
|
constructor(e, t, n) {
|
|
4475
4487
|
super(e, t, n), this.type = "axes", this.renderType = j.SVG, this.truncation = {
|
|
4476
4488
|
[B.LEFT]: !1,
|
|
@@ -4487,27 +4499,27 @@ class Ra extends Y {
|
|
|
4487
4499
|
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
4500
|
throw new Error("Services cartesianScales undefined");
|
|
4489
4501
|
const p = this.services.cartesianScales.getScaleByPosition(t);
|
|
4490
|
-
this.scaleType ===
|
|
4502
|
+
this.scaleType === ge.LABELS || this.scaleType === ge.LABELS_RATIO ? p.rangeRound([c, d]) : p.range([c, d]);
|
|
4491
4503
|
let h;
|
|
4492
4504
|
switch (t) {
|
|
4493
4505
|
case B.LEFT:
|
|
4494
|
-
h =
|
|
4506
|
+
h = ea;
|
|
4495
4507
|
break;
|
|
4496
4508
|
case B.BOTTOM:
|
|
4497
|
-
h =
|
|
4509
|
+
h = Un;
|
|
4498
4510
|
break;
|
|
4499
4511
|
case B.RIGHT:
|
|
4500
|
-
h =
|
|
4512
|
+
h = Qa;
|
|
4501
4513
|
break;
|
|
4502
4514
|
case B.TOP:
|
|
4503
|
-
h =
|
|
4515
|
+
h = Ja;
|
|
4504
4516
|
break;
|
|
4505
4517
|
}
|
|
4506
4518
|
l.attr("aria-label", `${t} axis`);
|
|
4507
4519
|
const u = !l.select("g.ticks").empty();
|
|
4508
4520
|
let g = S.appendOrSelect(l, "g.ticks");
|
|
4509
4521
|
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 ===
|
|
4522
|
+
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
4523
|
if (y && O && !x && p.domain(y), !s) {
|
|
4512
4524
|
g.attr("aria-hidden", !0);
|
|
4513
4525
|
return;
|
|
@@ -4516,60 +4528,60 @@ class Ra extends Y {
|
|
|
4516
4528
|
useBBox: !0
|
|
4517
4529
|
}).height;
|
|
4518
4530
|
F.remove();
|
|
4519
|
-
const
|
|
4531
|
+
const fe = this.scaleType || E.scaleType || ge.LINEAR, q = h(p).tickSizeOuter(0);
|
|
4520
4532
|
if (p.ticks) {
|
|
4521
|
-
let
|
|
4522
|
-
if (C ?
|
|
4533
|
+
let U;
|
|
4534
|
+
if (C ? U = L : (U = ct.ticks.number, x && (U = this.getNumberOfFittingTicks(
|
|
4523
4535
|
r,
|
|
4524
4536
|
J,
|
|
4525
4537
|
ct.ticks.verticalSpaceRatio
|
|
4526
|
-
))), p.ticks().length === 1 && p.ticks()[0] === 0 && (
|
|
4527
|
-
if (!p.ticks(
|
|
4538
|
+
))), p.ticks().length === 1 && p.ticks()[0] === 0 && (U = 0), q.ticks(U), O)
|
|
4539
|
+
if (!p.ticks(U).length)
|
|
4528
4540
|
q.tickValues([]);
|
|
4529
4541
|
else {
|
|
4530
4542
|
const K = v(n, "timeScale", "addSpaceOnEdges"), se = v(n, "axes", t, "domain"), oe = p.copy();
|
|
4531
|
-
K && !se && oe.nice(
|
|
4532
|
-
const
|
|
4533
|
-
K &&
|
|
4543
|
+
K && !se && oe.nice(U);
|
|
4544
|
+
const ve = oe.ticks(U);
|
|
4545
|
+
K && ve.length > 2 && !se && (ve.splice(ve.length - 1, 1), ve.splice(0, 1)), q.tickValues(ve);
|
|
4534
4546
|
}
|
|
4535
4547
|
}
|
|
4536
4548
|
let H;
|
|
4537
4549
|
const ae = v(E, "ticks", "formatter"), { code: ce, number: gt } = v(n, "locale");
|
|
4538
4550
|
if (O) {
|
|
4539
|
-
const
|
|
4551
|
+
const U = yn(
|
|
4540
4552
|
q.tickValues(),
|
|
4541
4553
|
v(n, "timeScale", "timeInterval")
|
|
4542
4554
|
);
|
|
4543
|
-
ae === null ? H = (K, se) =>
|
|
4544
|
-
const oe =
|
|
4555
|
+
ae === null ? H = (K, se) => En(K, se, q.tickValues(), U, V, n.locale) : H = (K, se) => {
|
|
4556
|
+
const oe = En(
|
|
4545
4557
|
K,
|
|
4546
4558
|
se,
|
|
4547
4559
|
q.tickValues(),
|
|
4548
|
-
|
|
4560
|
+
U,
|
|
4549
4561
|
V,
|
|
4550
4562
|
n.locale
|
|
4551
4563
|
);
|
|
4552
4564
|
return ae(K, se, oe);
|
|
4553
4565
|
};
|
|
4554
4566
|
} else
|
|
4555
|
-
ae === null ?
|
|
4567
|
+
ae === null ? fe === ge.LINEAR && (H = (U) => gt(U, ce)) : H = ae;
|
|
4556
4568
|
q.tickFormat(H);
|
|
4557
4569
|
const [re, Ke] = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
4558
4570
|
let Q;
|
|
4559
4571
|
if (I) {
|
|
4560
4572
|
if (O)
|
|
4561
|
-
I.forEach((
|
|
4562
|
-
|
|
4563
|
-
}), Q = I.filter((
|
|
4564
|
-
const K =
|
|
4573
|
+
I.forEach((U, K) => {
|
|
4574
|
+
U.getTime === void 0 && (I[K] = new Date(U));
|
|
4575
|
+
}), Q = I.filter((U) => {
|
|
4576
|
+
const K = U.getTime();
|
|
4565
4577
|
return K >= new Date(re).getTime() && K <= new Date(Ke).getTime();
|
|
4566
4578
|
});
|
|
4567
|
-
else if (w ===
|
|
4568
|
-
const
|
|
4569
|
-
Q = I.filter((K) =>
|
|
4579
|
+
else if (w === ge.LABELS) {
|
|
4580
|
+
const U = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
4581
|
+
Q = I.filter((K) => U.includes(K));
|
|
4570
4582
|
} else
|
|
4571
4583
|
Q = I.filter(
|
|
4572
|
-
(
|
|
4584
|
+
(U) => U >= re && U <= Ke
|
|
4573
4585
|
);
|
|
4574
4586
|
q.tickValues(Q);
|
|
4575
4587
|
}
|
|
@@ -4587,29 +4599,29 @@ class Ra extends Y {
|
|
|
4587
4599
|
g.attr("transform", `translate(0, ${this.margins.top})`);
|
|
4588
4600
|
break;
|
|
4589
4601
|
}
|
|
4590
|
-
const
|
|
4602
|
+
const ze = this.model.isDataEmpty();
|
|
4591
4603
|
if (E.title) {
|
|
4592
|
-
const
|
|
4593
|
-
|
|
4604
|
+
const U = S.appendOrSelect(l, "text.axis-title").html(
|
|
4605
|
+
ze || A ? "" : Ve(E.title)
|
|
4594
4606
|
), K = v(E, "titleOrientation");
|
|
4595
4607
|
let se;
|
|
4596
4608
|
switch (t) {
|
|
4597
4609
|
case B.LEFT:
|
|
4598
|
-
K ===
|
|
4610
|
+
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
4611
|
break;
|
|
4600
4612
|
case B.BOTTOM:
|
|
4601
|
-
|
|
4613
|
+
U.attr(
|
|
4602
4614
|
"transform",
|
|
4603
4615
|
`translate(${this.margins.left / 2 + p.range()[1] / 2}, ${r + 4})`
|
|
4604
4616
|
).style("text-anchor", "middle");
|
|
4605
4617
|
break;
|
|
4606
4618
|
case B.RIGHT:
|
|
4607
|
-
K ===
|
|
4619
|
+
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
4620
|
break;
|
|
4609
4621
|
case B.TOP:
|
|
4610
|
-
se = S.getSVGElementSize(
|
|
4622
|
+
se = S.getSVGElementSize(U, {
|
|
4611
4623
|
useBBox: !0
|
|
4612
|
-
}).height,
|
|
4624
|
+
}).height, U.attr(
|
|
4613
4625
|
"transform",
|
|
4614
4626
|
`translate(${this.margins.left / 2 + p.range()[1] / 2}, ${se / 2})`
|
|
4615
4627
|
).style("text-anchor", "middle");
|
|
@@ -4617,65 +4629,65 @@ class Ra extends Y {
|
|
|
4617
4629
|
}
|
|
4618
4630
|
}
|
|
4619
4631
|
if (O) {
|
|
4620
|
-
const
|
|
4632
|
+
const U = yn(
|
|
4621
4633
|
q.tickValues(),
|
|
4622
4634
|
v(n, "timeScale", "timeInterval")
|
|
4623
4635
|
), K = V.showDayName, se = g;
|
|
4624
4636
|
e && (g = g.transition().call(
|
|
4625
|
-
(
|
|
4626
|
-
transition:
|
|
4637
|
+
(ve) => this.services.transitions.setupTransition({
|
|
4638
|
+
transition: ve,
|
|
4627
4639
|
name: "axis-update",
|
|
4628
4640
|
animate: e
|
|
4629
4641
|
})
|
|
4630
|
-
)), g = g.call(q), se.selectAll(".tick").data(q.tickValues(), p).order().select("text").style("font-weight", (
|
|
4642
|
+
)), 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
4643
|
} else
|
|
4632
4644
|
!e || !u ? g = g.call(q) : g = g.transition().call(
|
|
4633
|
-
(
|
|
4634
|
-
transition:
|
|
4645
|
+
(U) => this.services.transitions.setupTransition({
|
|
4646
|
+
transition: U,
|
|
4635
4647
|
name: "axis-update",
|
|
4636
4648
|
animate: e
|
|
4637
4649
|
})
|
|
4638
4650
|
).call(q);
|
|
4639
4651
|
if (m.call(q), t === B.BOTTOM || t === B.TOP) {
|
|
4640
|
-
let
|
|
4652
|
+
let U = !1;
|
|
4641
4653
|
const K = v(E, "ticks", "rotation");
|
|
4642
|
-
if (K ===
|
|
4643
|
-
|
|
4644
|
-
else if (K ===
|
|
4645
|
-
|
|
4646
|
-
else if (!K || K ===
|
|
4654
|
+
if (K === rn.ALWAYS)
|
|
4655
|
+
U = !0;
|
|
4656
|
+
else if (K === rn.NEVER)
|
|
4657
|
+
U = !1;
|
|
4658
|
+
else if (!K || K === rn.AUTO)
|
|
4647
4659
|
if (p.step)
|
|
4648
|
-
|
|
4660
|
+
U = m.selectAll("g.tick text").nodes().some(
|
|
4649
4661
|
(oe) => S.getSVGElementSize(oe, {
|
|
4650
4662
|
useBBox: !0
|
|
4651
4663
|
}).width >= p.step()
|
|
4652
4664
|
);
|
|
4653
4665
|
else {
|
|
4654
|
-
|
|
4666
|
+
U = !1;
|
|
4655
4667
|
const se = m.append("text").text("A"), oe = S.getSVGElementSize(se.node(), {
|
|
4656
4668
|
useBBox: !0
|
|
4657
4669
|
}).width;
|
|
4658
|
-
let
|
|
4670
|
+
let ve;
|
|
4659
4671
|
m.selectAll("g.tick").each(function() {
|
|
4660
|
-
const Ie = T(this), _ = parseFloat(v(
|
|
4661
|
-
_ !== null &&
|
|
4672
|
+
const Ie = T(this), _ = parseFloat(v(He(this), "tx"));
|
|
4673
|
+
_ !== null && ve + Ie.text().length * oe * 0.8 >= _ && (U = !0), ve = _;
|
|
4662
4674
|
}), se.remove();
|
|
4663
4675
|
}
|
|
4664
|
-
|
|
4676
|
+
U ? (C || (q.ticks(
|
|
4665
4677
|
this.getNumberOfFittingTicks(i, J, ct.ticks.horizontalSpaceRatio)
|
|
4666
4678
|
), 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
4679
|
}
|
|
4668
|
-
if (A ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (
|
|
4669
|
-
const
|
|
4670
|
-
if (
|
|
4680
|
+
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) {
|
|
4681
|
+
const U = this.services.cartesianScales.getScaleDomain(t);
|
|
4682
|
+
if (U.length > 0) {
|
|
4671
4683
|
const K = a.select(`g.axis.${t} g.ticks g.tick`).html();
|
|
4672
4684
|
l.selectAll("g.ticks g.tick").html(K);
|
|
4673
4685
|
const se = this;
|
|
4674
|
-
l.selectAll("g.tick text").data(
|
|
4675
|
-
return oe.length > W ? (se.truncation[t] = !0,
|
|
4676
|
-
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(
|
|
4677
|
-
return oe.length > W ?
|
|
4678
|
-
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(
|
|
4686
|
+
l.selectAll("g.tick text").data(U).text(function(oe) {
|
|
4687
|
+
return oe.length > W ? (se.truncation[t] = !0, Lt(oe, P, k)) : oe;
|
|
4688
|
+
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(U).text(function(oe) {
|
|
4689
|
+
return oe.length > W ? Lt(oe, P, k) : oe;
|
|
4690
|
+
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(U);
|
|
4679
4691
|
}
|
|
4680
4692
|
}
|
|
4681
4693
|
this.addEventListeners();
|
|
@@ -4687,7 +4699,7 @@ class Ra extends Y {
|
|
|
4687
4699
|
event: c,
|
|
4688
4700
|
element: T(this),
|
|
4689
4701
|
datum: d
|
|
4690
|
-
}), i ===
|
|
4702
|
+
}), i === ge.LABELS && d.length > r && l.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
4691
4703
|
event: c,
|
|
4692
4704
|
hoveredElement: T(this),
|
|
4693
4705
|
content: d
|
|
@@ -4697,7 +4709,7 @@ class Ra extends Y {
|
|
|
4697
4709
|
event: c,
|
|
4698
4710
|
element: T(this),
|
|
4699
4711
|
datum: d
|
|
4700
|
-
}), i ===
|
|
4712
|
+
}), i === ge.LABELS && d.length > r && l.services.events.dispatchEvent(f.Tooltip.MOVE, {
|
|
4701
4713
|
event: c
|
|
4702
4714
|
});
|
|
4703
4715
|
}).on("click", function(c, d) {
|
|
@@ -4711,7 +4723,7 @@ class Ra extends Y {
|
|
|
4711
4723
|
event: c,
|
|
4712
4724
|
element: T(this),
|
|
4713
4725
|
datum: d
|
|
4714
|
-
}), i ===
|
|
4726
|
+
}), i === ge.LABELS && l.services.events.dispatchEvent(f.Tooltip.HIDE);
|
|
4715
4727
|
});
|
|
4716
4728
|
}
|
|
4717
4729
|
getInvisibleAxisRef() {
|
|
@@ -4724,14 +4736,14 @@ class Ra extends Y {
|
|
|
4724
4736
|
}
|
|
4725
4737
|
getNumberOfFittingTicks(e, t, n) {
|
|
4726
4738
|
const s = Math.floor(e / (t * n));
|
|
4727
|
-
return
|
|
4739
|
+
return ya(s, 2, ct.ticks.number);
|
|
4728
4740
|
}
|
|
4729
4741
|
destroy() {
|
|
4730
4742
|
const e = this.getComponentContainer(), { position: t } = this.configs;
|
|
4731
4743
|
S.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick text").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
4732
4744
|
}
|
|
4733
4745
|
}
|
|
4734
|
-
class
|
|
4746
|
+
class yl extends Ca {
|
|
4735
4747
|
constructor(e, t, n) {
|
|
4736
4748
|
super(e, t, n);
|
|
4737
4749
|
}
|
|
@@ -4770,7 +4782,7 @@ class Sl extends Ra {
|
|
|
4770
4782
|
event: c,
|
|
4771
4783
|
element: d,
|
|
4772
4784
|
datum: p
|
|
4773
|
-
}), i ===
|
|
4785
|
+
}), i === ge.LABELS && p.length > r && l.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
4774
4786
|
event: c,
|
|
4775
4787
|
element: d,
|
|
4776
4788
|
datum: p
|
|
@@ -4795,7 +4807,7 @@ class Sl extends Ra {
|
|
|
4795
4807
|
event: c,
|
|
4796
4808
|
element: T(this).select("text"),
|
|
4797
4809
|
datum: T(this).select("text").datum()
|
|
4798
|
-
}), i ===
|
|
4810
|
+
}), i === ge.LABELS && l.services.events.dispatchEvent(f.Tooltip.HIDE);
|
|
4799
4811
|
}).on("focus", function(c) {
|
|
4800
4812
|
const d = { clientX: 0, clientY: 0 };
|
|
4801
4813
|
if (c.target) {
|
|
@@ -4835,7 +4847,7 @@ class Sl extends Ra {
|
|
|
4835
4847
|
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
4848
|
}
|
|
4837
4849
|
}
|
|
4838
|
-
class
|
|
4850
|
+
class xh extends Y {
|
|
4839
4851
|
constructor() {
|
|
4840
4852
|
super(...arguments), this.type = "2D-axes", this.renderType = j.SVG, this.children = {}, this.thresholds = [], this.margins = {
|
|
4841
4853
|
top: 0,
|
|
@@ -4855,7 +4867,7 @@ class wh extends Y {
|
|
|
4855
4867
|
position: l,
|
|
4856
4868
|
axes: this.configs.axes,
|
|
4857
4869
|
margins: this.margins
|
|
4858
|
-
}, d = this.model.axisFlavor ===
|
|
4870
|
+
}, d = this.model.axisFlavor === Ti.DEFAULT ? new Ca(this.model, this.services, c) : new yl(this.model, this.services, c);
|
|
4859
4871
|
d.setModel(this.model), d.setServices(this.services), d.setParent(this.parent), this.children[l] = d;
|
|
4860
4872
|
}
|
|
4861
4873
|
}), Object.keys(this.children).forEach((r) => {
|
|
@@ -4889,7 +4901,7 @@ class wh extends Y {
|
|
|
4889
4901
|
}), this.render(!0));
|
|
4890
4902
|
}
|
|
4891
4903
|
}
|
|
4892
|
-
class
|
|
4904
|
+
class El extends Y {
|
|
4893
4905
|
constructor() {
|
|
4894
4906
|
super(...arguments), this.type = "skeleton";
|
|
4895
4907
|
}
|
|
@@ -4901,13 +4913,13 @@ class Ol extends Y {
|
|
|
4901
4913
|
t ? this.renderSkeleton(t) : this.removeSkeleton();
|
|
4902
4914
|
}
|
|
4903
4915
|
renderSkeleton(e) {
|
|
4904
|
-
if (this.configs.skeleton ===
|
|
4916
|
+
if (this.configs.skeleton === kt.GRID)
|
|
4905
4917
|
this.renderGridSkeleton(e);
|
|
4906
|
-
else if (this.configs.skeleton ===
|
|
4918
|
+
else if (this.configs.skeleton === kt.VERT_OR_HORIZ)
|
|
4907
4919
|
this.renderVertOrHorizSkeleton(e);
|
|
4908
|
-
else if (this.configs.skeleton ===
|
|
4920
|
+
else if (this.configs.skeleton === kt.PIE)
|
|
4909
4921
|
this.renderPieSkeleton(e);
|
|
4910
|
-
else if (this.configs.skeleton ===
|
|
4922
|
+
else if (this.configs.skeleton === kt.DONUT)
|
|
4911
4923
|
this.renderDonutSkeleton(e);
|
|
4912
4924
|
else
|
|
4913
4925
|
throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
|
|
@@ -4963,7 +4975,7 @@ class Ol extends Y {
|
|
|
4963
4975
|
useAttrs: !0
|
|
4964
4976
|
}), 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
4977
|
S.appendOrSelect(r, "rect.chart-skeleton-area-container").attr("width", a).attr("height", i).attr("fill", "none");
|
|
4966
|
-
const d =
|
|
4978
|
+
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
4979
|
"fill",
|
|
4968
4980
|
n ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
|
|
4969
4981
|
);
|
|
@@ -4993,14 +5005,14 @@ class Ol extends Y {
|
|
|
4993
5005
|
`;
|
|
4994
5006
|
h.html(u), g();
|
|
4995
5007
|
function g() {
|
|
4996
|
-
h.attr("gradientTransform", `translate(${c - 3 * 0.2 * l}, 0)`).transition().duration(2e3).delay(1e3).ease(
|
|
5008
|
+
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
5009
|
}
|
|
4998
5010
|
}
|
|
4999
5011
|
removeSkeleton() {
|
|
5000
5012
|
this.parent.select(".chart-skeleton").remove();
|
|
5001
5013
|
}
|
|
5002
5014
|
}
|
|
5003
|
-
class
|
|
5015
|
+
class Lh extends Y {
|
|
5004
5016
|
constructor() {
|
|
5005
5017
|
super(...arguments), this.type = "boxplot", this.renderType = j.SVG;
|
|
5006
5018
|
}
|
|
@@ -5008,7 +5020,7 @@ class Mh extends Y {
|
|
|
5008
5020
|
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
5021
|
if (h === 0)
|
|
5010
5022
|
return;
|
|
5011
|
-
const { cartesianScales: g } = this.services, m = g.getOrientation(), E = m === xe.VERTICAL, [O, x] =
|
|
5023
|
+
const { cartesianScales: g } = this.services, m = g.getOrientation(), E = m === xe.VERTICAL, [O, x] = Fe(
|
|
5012
5024
|
(C) => this.services.cartesianScales.getDomainValue(C),
|
|
5013
5025
|
(C) => this.services.cartesianScales.getRangeValue(C),
|
|
5014
5026
|
m
|
|
@@ -5029,7 +5041,7 @@ class Mh extends Y {
|
|
|
5029
5041
|
})
|
|
5030
5042
|
).attr("d", (C) => {
|
|
5031
5043
|
const V = g.getDomainValue(C[s]), F = V, M = g.getRangeValue(C.whiskers.min), J = g.getRangeValue(C.quartiles.q_25);
|
|
5032
|
-
return
|
|
5044
|
+
return Se({ x0: V, x1: F, y0: M, y1: J }, m);
|
|
5033
5045
|
}), I.append("path").merge(L.select("path.vertical-line.end")).attr(
|
|
5034
5046
|
"class",
|
|
5035
5047
|
() => this.model.getColorClassName({
|
|
@@ -5044,7 +5056,7 @@ class Mh extends Y {
|
|
|
5044
5056
|
})
|
|
5045
5057
|
).attr("d", (C) => {
|
|
5046
5058
|
const V = g.getDomainValue(C[s]), F = V, M = g.getRangeValue(C.whiskers.max), J = g.getRangeValue(C.quartiles.q_75);
|
|
5047
|
-
return
|
|
5059
|
+
return Se({ x0: V, x1: F, y0: M, y1: J }, m);
|
|
5048
5060
|
}), I.append("path").merge(L.select("path.box")).attr(
|
|
5049
5061
|
"class",
|
|
5050
5062
|
() => this.model.getColorClassName({
|
|
@@ -5063,10 +5075,10 @@ class Mh extends Y {
|
|
|
5063
5075
|
), J = M + Math.abs(
|
|
5064
5076
|
g.getRangeValue(C.quartiles.q_75) - g.getRangeValue(C.quartiles.q_25)
|
|
5065
5077
|
);
|
|
5066
|
-
return
|
|
5078
|
+
return Se({ x0: V, x1: F, y0: M, y1: J }, m);
|
|
5067
5079
|
}), I.append("path").merge(L.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (C) => {
|
|
5068
5080
|
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
|
|
5081
|
+
return Se({ x0: V, x1: F, y0: M, y1: J }, m);
|
|
5070
5082
|
}), I.append("path").merge(L.select("path.whisker.start")).attr(
|
|
5071
5083
|
"class",
|
|
5072
5084
|
() => this.model.getColorClassName({
|
|
@@ -5081,7 +5093,7 @@ class Mh extends Y {
|
|
|
5081
5093
|
})
|
|
5082
5094
|
).attr("d", (C) => {
|
|
5083
5095
|
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
|
|
5096
|
+
return Se({ x0: V, x1: F, y0: M, y1: J }, m);
|
|
5085
5097
|
}), I.append("path").merge(L.select("path.median")).attr("fill", "none").attr(
|
|
5086
5098
|
"class",
|
|
5087
5099
|
() => this.model.getColorClassName({
|
|
@@ -5096,7 +5108,7 @@ class Mh extends Y {
|
|
|
5096
5108
|
})
|
|
5097
5109
|
).attr("d", (C) => {
|
|
5098
5110
|
const V = g.getDomainValue(C[s]) - w / 2, F = V + w, M = g.getRangeValue(C.quartiles.q_50);
|
|
5099
|
-
return
|
|
5111
|
+
return Se({ x0: V, x1: F, y0: M, y1: M }, m);
|
|
5100
5112
|
}), I.append("path").merge(L.select("path.whisker.end")).attr(
|
|
5101
5113
|
"class",
|
|
5102
5114
|
() => this.model.getColorClassName({
|
|
@@ -5111,7 +5123,7 @@ class Mh extends Y {
|
|
|
5111
5123
|
})
|
|
5112
5124
|
).attr("d", (C) => {
|
|
5113
5125
|
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
|
|
5126
|
+
return Se({ x0: V, x1: F, y0: M, y1: J }, m);
|
|
5115
5127
|
});
|
|
5116
5128
|
const W = P.selectAll("circle.outlier").data(
|
|
5117
5129
|
(C) => C.outliers.map((V) => ({
|
|
@@ -5260,7 +5272,7 @@ class Mh extends Y {
|
|
|
5260
5272
|
});
|
|
5261
5273
|
}
|
|
5262
5274
|
}
|
|
5263
|
-
class
|
|
5275
|
+
class Ah extends Y {
|
|
5264
5276
|
constructor() {
|
|
5265
5277
|
super(...arguments), this.type = "zero-line", this.renderType = j.SVG;
|
|
5266
5278
|
}
|
|
@@ -5275,7 +5287,7 @@ class Ch extends Y {
|
|
|
5275
5287
|
const [l, c] = this.services.cartesianScales.getDomainScale().range();
|
|
5276
5288
|
let d = +n(0) + 0.5;
|
|
5277
5289
|
d || (d = n.range()[0]);
|
|
5278
|
-
const p =
|
|
5290
|
+
const p = Za(
|
|
5279
5291
|
{
|
|
5280
5292
|
x0: l,
|
|
5281
5293
|
x1: c,
|
|
@@ -5293,16 +5305,16 @@ class Ch extends Y {
|
|
|
5293
5305
|
).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
|
|
5294
5306
|
}
|
|
5295
5307
|
}
|
|
5296
|
-
class
|
|
5308
|
+
class wh extends jn {
|
|
5297
5309
|
constructor() {
|
|
5298
5310
|
super(...arguments), this.type = "bubble", this.renderType = j.SVG;
|
|
5299
5311
|
}
|
|
5300
5312
|
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 ?
|
|
5313
|
+
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
5314
|
return qe().domain(l).range(r ? t.bubble.radiusRange(i, s) : [4, 4]);
|
|
5303
5315
|
}
|
|
5304
5316
|
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] =
|
|
5317
|
+
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
5318
|
l,
|
|
5307
5319
|
c,
|
|
5308
5320
|
r.getOrientation()
|
|
@@ -5341,7 +5353,7 @@ class _h extends Wn {
|
|
|
5341
5353
|
];
|
|
5342
5354
|
}
|
|
5343
5355
|
}
|
|
5344
|
-
class
|
|
5356
|
+
class Mh extends Y {
|
|
5345
5357
|
constructor() {
|
|
5346
5358
|
super(...arguments), this.type = "bullet", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
5347
5359
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -5388,7 +5400,7 @@ class Ih extends Y {
|
|
|
5388
5400
|
})
|
|
5389
5401
|
).attr("d", (x) => {
|
|
5390
5402
|
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),
|
|
5403
|
+
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
5404
|
{ x0: w, x1: A, y0: L, y1: I },
|
|
5393
5405
|
this.services.cartesianScales.getOrientation()
|
|
5394
5406
|
);
|
|
@@ -5413,7 +5425,7 @@ class Ih extends Y {
|
|
|
5413
5425
|
return this.model.getFillColor(O[n], O[x], O);
|
|
5414
5426
|
}).attr("d", (O) => {
|
|
5415
5427
|
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
|
|
5428
|
+
return Se(
|
|
5417
5429
|
{ x0: y, x1: w, y0: A, y1: L },
|
|
5418
5430
|
this.services.cartesianScales.getOrientation()
|
|
5419
5431
|
);
|
|
@@ -5431,7 +5443,7 @@ class Ih extends Y {
|
|
|
5431
5443
|
})
|
|
5432
5444
|
).attr("d", (O) => {
|
|
5433
5445
|
const y = this.services.cartesianScales.getDomainValue(O) - 12, w = y + 24, A = this.services.cartesianScales.getRangeValue(O.marker);
|
|
5434
|
-
return
|
|
5446
|
+
return Se(
|
|
5435
5447
|
{ x0: y, x1: w, y0: A, y1: A },
|
|
5436
5448
|
this.services.cartesianScales.getOrientation()
|
|
5437
5449
|
);
|
|
@@ -5457,7 +5469,7 @@ class Ih extends Y {
|
|
|
5457
5469
|
let w = 4;
|
|
5458
5470
|
x.ranges && x.ranges.indexOf(y) !== -1 && (w = 8);
|
|
5459
5471
|
const A = this.services.cartesianScales.getDomainValue(x) - w / 2, L = A + w, I = this.services.cartesianScales.getRangeValue(y);
|
|
5460
|
-
return
|
|
5472
|
+
return Se(
|
|
5461
5473
|
{ x0: A, x1: L, y0: I, y1: I },
|
|
5462
5474
|
this.services.cartesianScales.getOrientation()
|
|
5463
5475
|
);
|
|
@@ -5536,12 +5548,12 @@ class Ih extends Y {
|
|
|
5536
5548
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
5537
5549
|
}
|
|
5538
5550
|
}
|
|
5539
|
-
function
|
|
5551
|
+
function bl(o) {
|
|
5540
5552
|
return o;
|
|
5541
5553
|
}
|
|
5542
|
-
function
|
|
5554
|
+
function Sl(o) {
|
|
5543
5555
|
if (o == null)
|
|
5544
|
-
return
|
|
5556
|
+
return bl;
|
|
5545
5557
|
var e, t, n = o.scale[0], s = o.scale[1], a = o.translate[0], i = o.translate[1];
|
|
5546
5558
|
return function(r, l) {
|
|
5547
5559
|
l || (e = t = 0);
|
|
@@ -5551,26 +5563,26 @@ function xl(o) {
|
|
|
5551
5563
|
return p;
|
|
5552
5564
|
};
|
|
5553
5565
|
}
|
|
5554
|
-
function
|
|
5566
|
+
function Ol(o, e) {
|
|
5555
5567
|
for (var t, n = o.length, s = n - e; s < --n; )
|
|
5556
5568
|
t = o[s], o[s++] = o[n], o[n] = t;
|
|
5557
5569
|
}
|
|
5558
|
-
function
|
|
5570
|
+
function Tl(o, e) {
|
|
5559
5571
|
return typeof e == "string" && (e = o.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
|
|
5560
|
-
return
|
|
5561
|
-
}) } :
|
|
5572
|
+
return zs(o, t);
|
|
5573
|
+
}) } : zs(o, e);
|
|
5562
5574
|
}
|
|
5563
|
-
function
|
|
5564
|
-
var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a =
|
|
5575
|
+
function zs(o, e) {
|
|
5576
|
+
var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = Xn(o, e);
|
|
5565
5577
|
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
5578
|
}
|
|
5567
|
-
function
|
|
5568
|
-
var t =
|
|
5579
|
+
function Xn(o, e) {
|
|
5580
|
+
var t = Sl(o.transform), n = o.arcs;
|
|
5569
5581
|
function s(d, p) {
|
|
5570
5582
|
p.length && p.pop();
|
|
5571
5583
|
for (var h = n[d < 0 ? ~d : d], u = 0, g = h.length; u < g; ++u)
|
|
5572
5584
|
p.push(t(h[u], u));
|
|
5573
|
-
d < 0 &&
|
|
5585
|
+
d < 0 && Ol(p, g);
|
|
5574
5586
|
}
|
|
5575
5587
|
function a(d) {
|
|
5576
5588
|
return t(d);
|
|
@@ -5618,7 +5630,7 @@ function jn(o, e) {
|
|
|
5618
5630
|
}
|
|
5619
5631
|
return c(e);
|
|
5620
5632
|
}
|
|
5621
|
-
function
|
|
5633
|
+
function xl(o, e) {
|
|
5622
5634
|
var t = {}, n = {}, s = {}, a = [], i = -1;
|
|
5623
5635
|
e.forEach(function(c, d) {
|
|
5624
5636
|
var p = o.arcs[c < 0 ? ~c : c], h;
|
|
@@ -5660,15 +5672,15 @@ function wl(o, e) {
|
|
|
5660
5672
|
t[c < 0 ? ~c : c] || a.push([c]);
|
|
5661
5673
|
}), a;
|
|
5662
5674
|
}
|
|
5663
|
-
function
|
|
5675
|
+
function Ll(o) {
|
|
5664
5676
|
for (var e = -1, t = o.length, n, s = o[t - 1], a = 0; ++e < t; )
|
|
5665
5677
|
n = s, s = o[e], a += n[0] * s[1] - n[1] * s[0];
|
|
5666
5678
|
return Math.abs(a);
|
|
5667
5679
|
}
|
|
5668
|
-
function
|
|
5669
|
-
return
|
|
5680
|
+
function Al(o) {
|
|
5681
|
+
return Xn(o, wl.apply(this, arguments));
|
|
5670
5682
|
}
|
|
5671
|
-
function
|
|
5683
|
+
function wl(o, e) {
|
|
5672
5684
|
var t = {}, n = [], s = [];
|
|
5673
5685
|
e.forEach(a);
|
|
5674
5686
|
function a(l) {
|
|
@@ -5692,7 +5704,7 @@ function _l(o, e) {
|
|
|
5692
5704
|
}), n.push(l);
|
|
5693
5705
|
}
|
|
5694
5706
|
function r(l) {
|
|
5695
|
-
return
|
|
5707
|
+
return Ll(Xn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
|
|
5696
5708
|
}
|
|
5697
5709
|
return n.forEach(function(l) {
|
|
5698
5710
|
if (!l._) {
|
|
@@ -5718,7 +5730,7 @@ function _l(o, e) {
|
|
|
5718
5730
|
t[O < 0 ? ~O : O].length < 2 && c.push(O);
|
|
5719
5731
|
});
|
|
5720
5732
|
});
|
|
5721
|
-
}), c =
|
|
5733
|
+
}), c = xl(o, c), (d = c.length) > 1)
|
|
5722
5734
|
for (var p = 1, h = r(c[0]), u, g; p < d; ++p)
|
|
5723
5735
|
(u = r(c[p])) > h && (g = c[0], c[0] = c[p], c[p] = g, h = u);
|
|
5724
5736
|
return c;
|
|
@@ -5727,7 +5739,7 @@ function _l(o, e) {
|
|
|
5727
5739
|
})
|
|
5728
5740
|
};
|
|
5729
5741
|
}
|
|
5730
|
-
class
|
|
5742
|
+
class Ch extends Ma {
|
|
5731
5743
|
constructor() {
|
|
5732
5744
|
super(...arguments), this.type = "ruler-binned", this.renderType = j.SVG;
|
|
5733
5745
|
}
|
|
@@ -5742,7 +5754,7 @@ class Rh extends Ia {
|
|
|
5742
5754
|
return !0;
|
|
5743
5755
|
});
|
|
5744
5756
|
if (E.size() > 0) {
|
|
5745
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
5757
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Ea(this.elementsToHighlight, E) && this.hideRuler(), E.dispatch("mouseover"), this.elementsToHighlight = E;
|
|
5746
5758
|
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
5759
|
label: I,
|
|
5748
5760
|
value: ne(O, `data.${I}`),
|
|
@@ -5780,52 +5792,52 @@ class Rh extends Ia {
|
|
|
5780
5792
|
this.hideRuler();
|
|
5781
5793
|
}
|
|
5782
5794
|
}
|
|
5783
|
-
class
|
|
5795
|
+
class _h extends Ma {
|
|
5784
5796
|
formatTooltipData(e) {
|
|
5785
5797
|
return e.reverse();
|
|
5786
5798
|
}
|
|
5787
5799
|
}
|
|
5788
|
-
const
|
|
5800
|
+
const Ih = (o, e) => {
|
|
5789
5801
|
const t = o.x, n = o.y, s = e.x, a = e.y, i = $n();
|
|
5790
5802
|
return i.moveTo(t, n), i.lineTo(s, a), i.toString();
|
|
5791
|
-
},
|
|
5803
|
+
}, Rh = (o, e, t = 0.5) => {
|
|
5792
5804
|
const n = o.x, s = o.y, a = e.x, i = e.y, r = $n();
|
|
5793
5805
|
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
|
-
},
|
|
5806
|
+
}, kh = (o, e, t, n, s, a) => {
|
|
5795
5807
|
const i = o.x, r = o.y, l = e.x, c = e.y, d = $n();
|
|
5796
5808
|
return d.moveTo(i, r), d.bezierCurveTo(t, n, s, a, l, c), d.toString();
|
|
5797
|
-
},
|
|
5809
|
+
}, Dh = {
|
|
5798
5810
|
d: "M7 0v8L0 4z",
|
|
5799
5811
|
height: 8,
|
|
5800
5812
|
width: 7.5,
|
|
5801
5813
|
id: "arrowLeft"
|
|
5802
|
-
},
|
|
5814
|
+
}, Ph = {
|
|
5803
5815
|
d: "M0 0v8l7-4z",
|
|
5804
5816
|
height: 8,
|
|
5805
5817
|
width: 7.5,
|
|
5806
5818
|
id: "arrowRight"
|
|
5807
|
-
},
|
|
5819
|
+
}, Nh = {
|
|
5808
5820
|
d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
|
|
5809
5821
|
height: 10,
|
|
5810
5822
|
width: 10,
|
|
5811
5823
|
id: "circle"
|
|
5812
|
-
},
|
|
5824
|
+
}, Vh = {
|
|
5813
5825
|
d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z",
|
|
5814
5826
|
height: 10,
|
|
5815
5827
|
width: 10,
|
|
5816
5828
|
id: "diamond"
|
|
5817
|
-
},
|
|
5829
|
+
}, Bh = {
|
|
5818
5830
|
d: "M0 .44974747h8v8H0v-3.6830331z",
|
|
5819
5831
|
height: 9,
|
|
5820
5832
|
width: 8,
|
|
5821
5833
|
id: "square"
|
|
5822
|
-
},
|
|
5834
|
+
}, Gh = {
|
|
5823
5835
|
d: "M0 0h1.5v8H0z",
|
|
5824
5836
|
height: 8,
|
|
5825
5837
|
width: 2,
|
|
5826
5838
|
id: "tee"
|
|
5827
5839
|
};
|
|
5828
|
-
class
|
|
5840
|
+
class Hh extends gl {
|
|
5829
5841
|
constructor(e, t, n) {
|
|
5830
5842
|
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
5843
|
const s = this.getComponentContainer(), { width: a } = S.getSVGElementSize(s, {
|
|
@@ -5860,7 +5872,7 @@ class Fh extends vl {
|
|
|
5860
5872
|
n.html("");
|
|
5861
5873
|
return;
|
|
5862
5874
|
}
|
|
5863
|
-
const d = !
|
|
5875
|
+
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
5876
|
if (l) {
|
|
5865
5877
|
const k = S.appendOrSelect(n, "g.legend-title");
|
|
5866
5878
|
S.appendOrSelect(k, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
|
|
@@ -5874,16 +5886,16 @@ class Fh extends vl {
|
|
|
5874
5886
|
else
|
|
5875
5887
|
for (let k = 1; k < x + 1; k++)
|
|
5876
5888
|
O.push(
|
|
5877
|
-
i ===
|
|
5889
|
+
i === on.LINEAR ? `stop-color-${E}-${r}-${k}` : `fill-${E}-${r}-${k}`
|
|
5878
5890
|
);
|
|
5879
|
-
const y =
|
|
5891
|
+
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
5892
|
L.tickFormat((k) => P(k, I));
|
|
5881
5893
|
let W;
|
|
5882
5894
|
switch (i) {
|
|
5883
|
-
case
|
|
5895
|
+
case on.LINEAR:
|
|
5884
5896
|
this.drawLinear(O, g, u);
|
|
5885
5897
|
break;
|
|
5886
|
-
case
|
|
5898
|
+
case on.QUANTIZE:
|
|
5887
5899
|
W = this.drawQuantize(
|
|
5888
5900
|
O,
|
|
5889
5901
|
E,
|
|
@@ -5911,14 +5923,14 @@ class Fh extends vl {
|
|
|
5911
5923
|
*/
|
|
5912
5924
|
drawQuantize(e, t, n, s, a) {
|
|
5913
5925
|
!n && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5914
|
-
const i =
|
|
5926
|
+
const i = Fn().domain(e).range([0, a]);
|
|
5915
5927
|
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
5928
|
}
|
|
5917
5929
|
destroy() {
|
|
5918
5930
|
this.chartType === "heatmap" && this.services.events.removeEventListener(f.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
|
|
5919
5931
|
}
|
|
5920
5932
|
}
|
|
5921
|
-
class
|
|
5933
|
+
class Uh extends pl {
|
|
5922
5934
|
constructor() {
|
|
5923
5935
|
super(...arguments), this.type = "meter-title", this.renderType = j.SVG;
|
|
5924
5936
|
}
|
|
@@ -5961,14 +5973,14 @@ class zh extends fl {
|
|
|
5961
5973
|
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
5974
|
p.enter().append("text").classed("proportional-meter-total", !0).merge(p).attr(
|
|
5963
5975
|
"x",
|
|
5964
|
-
this.model.getStatus() && typeof d != "string" ? d -
|
|
5976
|
+
this.model.getStatus() && typeof d != "string" ? d - me.total.paddingRight : d
|
|
5965
5977
|
).attr("y", "1em").attr("text-anchor", "end").text((h) => h), p.exit().remove();
|
|
5966
5978
|
}
|
|
5967
5979
|
/**
|
|
5968
5980
|
* Appends the corresponding status based on the value and the peak.
|
|
5969
5981
|
*/
|
|
5970
5982
|
displayStatus() {
|
|
5971
|
-
const e = this, t = this.getComponentContainer(), n = S.getHTMLElementSize(this.parent.node()).width || 0, s = this.model.getStatus(), a =
|
|
5983
|
+
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
5984
|
l.enter().append("circle").merge(l).attr("class", "status").attr("r", a).attr("cx", 0).attr("cy", 8);
|
|
5973
5985
|
const c = i.selectAll("path.innerFill").data(r);
|
|
5974
5986
|
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 +5989,7 @@ class zh extends fl {
|
|
|
5977
5989
|
* Appends the associated percentage to the end of the title
|
|
5978
5990
|
*/
|
|
5979
5991
|
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 =
|
|
5992
|
+
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
5993
|
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
5994
|
}
|
|
5983
5995
|
/**
|
|
@@ -5988,7 +6000,7 @@ class zh extends fl {
|
|
|
5988
6000
|
*/
|
|
5989
6001
|
truncateTitle(e, t) {
|
|
5990
6002
|
super.truncateTitle(e, t);
|
|
5991
|
-
const n = S.appendOrSelect(this.parent, "tspan"), s =
|
|
6003
|
+
const n = S.appendOrSelect(this.parent, "tspan"), s = me.statusBar.paddingRight, a = Math.ceil(n.node().getComputedTextLength());
|
|
5992
6004
|
S.appendOrSelect(this.parent, "text.percent-value").attr(
|
|
5993
6005
|
"x",
|
|
5994
6006
|
+e.attr("x") + e.node().getComputedTextLength() + a + s
|
|
@@ -6001,9 +6013,9 @@ class zh extends fl {
|
|
|
6001
6013
|
const n = S.appendOrSelect(this.parent, "text.proportional-meter-total").node(), s = S.getSVGElementSize(n, {
|
|
6002
6014
|
useBBox: !0
|
|
6003
6015
|
}).width;
|
|
6004
|
-
return t - s -
|
|
6016
|
+
return t - s - me.total.paddingLeft;
|
|
6005
6017
|
} else {
|
|
6006
|
-
const n = S.appendOrSelect(this.parent, "text.percent-value"), s =
|
|
6018
|
+
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
6019
|
return t - a - s - r;
|
|
6008
6020
|
}
|
|
6009
6021
|
}
|
|
@@ -6013,16 +6025,16 @@ class zh extends fl {
|
|
|
6013
6025
|
*/
|
|
6014
6026
|
getStatusIconPathString(e) {
|
|
6015
6027
|
switch (e) {
|
|
6016
|
-
case
|
|
6028
|
+
case ln.SUCCESS:
|
|
6017
6029
|
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
|
|
6030
|
+
case ln.DANGER:
|
|
6019
6031
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
6020
|
-
case
|
|
6032
|
+
case ln.WARNING:
|
|
6021
6033
|
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
6034
|
}
|
|
6023
6035
|
}
|
|
6024
6036
|
}
|
|
6025
|
-
class
|
|
6037
|
+
class Zn extends Y {
|
|
6026
6038
|
// Gets the correct width for bars based on options & configurations
|
|
6027
6039
|
getBarWidth() {
|
|
6028
6040
|
const e = this.getOptions();
|
|
@@ -6048,7 +6060,7 @@ class Xn extends Y {
|
|
|
6048
6060
|
return !1;
|
|
6049
6061
|
}
|
|
6050
6062
|
}
|
|
6051
|
-
class
|
|
6063
|
+
class $h extends Y {
|
|
6052
6064
|
constructor() {
|
|
6053
6065
|
super(...arguments), this.type = "circle-pack", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
6054
6066
|
const { hoveredElement: t } = e.detail;
|
|
@@ -6079,7 +6091,7 @@ class Wh extends Y {
|
|
|
6079
6091
|
let a = this.model.getDisplayData();
|
|
6080
6092
|
const i = this.model.hasParentNode(), r = this.model.getHierarchyLevel(), l = this.getOptions(), c = v(l, "canvasZoom", "enabled");
|
|
6081
6093
|
i && v(a, 0, "children") && (a = v(a, 0, "children"));
|
|
6082
|
-
const d =
|
|
6094
|
+
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
6095
|
u.exit().attr("width", 0).attr("height", 0).remove();
|
|
6084
6096
|
const g = u.enter().append("circle").classed("node", !0);
|
|
6085
6097
|
g.merge(u).attr("class", (m) => {
|
|
@@ -6094,7 +6106,7 @@ class Wh extends Y {
|
|
|
6094
6106
|
transition: m,
|
|
6095
6107
|
name: "circlepack-leaf-update-enter"
|
|
6096
6108
|
})
|
|
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,
|
|
6109
|
+
).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
6110
|
}
|
|
6099
6111
|
// turn off the highlight class on children circles
|
|
6100
6112
|
unhighlightChildren(e) {
|
|
@@ -6119,7 +6131,7 @@ class Wh extends Y {
|
|
|
6119
6131
|
setBackgroundListeners() {
|
|
6120
6132
|
const e = T(this.services.domUtils.getMainContainer()), t = this, n = this.parent.selectAll("circle.node");
|
|
6121
6133
|
e.on("click", () => {
|
|
6122
|
-
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(n,
|
|
6134
|
+
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(n, Rt);
|
|
6123
6135
|
});
|
|
6124
6136
|
}
|
|
6125
6137
|
// Zoom icon to be appended to the label in the tooltip
|
|
@@ -6205,10 +6217,10 @@ class Wh extends Y {
|
|
|
6205
6217
|
const s = T(this), a = s.classed("non-focal"), i = v(e.model.getOptions(), "canvasZoom", "enabled");
|
|
6206
6218
|
if (i && e.model.getHierarchyLevel() > 2) {
|
|
6207
6219
|
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,
|
|
6220
|
+
T(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r, Rt);
|
|
6209
6221
|
} else if (n.depth === 2 && n.children && !a && i) {
|
|
6210
6222
|
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,
|
|
6223
|
+
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
6224
|
}
|
|
6213
6225
|
e.services.events.dispatchEvent(f.CirclePack.CIRCLE_CLICK, {
|
|
6214
6226
|
event: t,
|
|
@@ -6223,11 +6235,11 @@ class Wh extends Y {
|
|
|
6223
6235
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
|
|
6224
6236
|
}
|
|
6225
6237
|
}
|
|
6226
|
-
function
|
|
6227
|
-
const t =
|
|
6238
|
+
function Ml(o, e) {
|
|
6239
|
+
const t = ai(this._current, o);
|
|
6228
6240
|
return (n) => (this._current = t(n), e(this._current));
|
|
6229
6241
|
}
|
|
6230
|
-
class
|
|
6242
|
+
class Cl extends Y {
|
|
6231
6243
|
constructor() {
|
|
6232
6244
|
super(...arguments), this.type = "pie", this.renderType = j.SVG, this.isRendering = !1, this.handleLegendOnHover = (e) => {
|
|
6233
6245
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -6260,8 +6272,8 @@ class Rl extends Y {
|
|
|
6260
6272
|
const t = this, n = this.getComponentContainer(), s = this.getOptions(), { groupMapsTo: a } = s.data, { valueMapsTo: i } = s.pie;
|
|
6261
6273
|
this.isRendering = !0;
|
|
6262
6274
|
const r = this.model.getDisplayData().filter((M) => M[i] > 0), l = this.computeRadius();
|
|
6263
|
-
this.arc =
|
|
6264
|
-
const d =
|
|
6275
|
+
this.arc = At().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = At().innerRadius(this.getInnerRadius()).outerRadius(l + te.hoverArc.outerRadiusOffset);
|
|
6276
|
+
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
6277
|
h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
|
|
6266
6278
|
"class",
|
|
6267
6279
|
(M) => this.model.getColorClassName({
|
|
@@ -6277,9 +6289,9 @@ class Rl extends Y {
|
|
|
6277
6289
|
})
|
|
6278
6290
|
).attr("opacity", 1).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
|
|
6279
6291
|
"aria-label",
|
|
6280
|
-
(M) => `${M[i]}, ${
|
|
6292
|
+
(M) => `${M[i]}, ${an(M.data[i], r, i) + "%"}`
|
|
6281
6293
|
).attrTween("d", function(M) {
|
|
6282
|
-
return
|
|
6294
|
+
return Ml.bind(this)(M, t.arc);
|
|
6283
6295
|
}).on("end", () => {
|
|
6284
6296
|
t.isRendering = !1;
|
|
6285
6297
|
});
|
|
@@ -6288,23 +6300,23 @@ class Rl extends Y {
|
|
|
6288
6300
|
const A = w.enter().append("text").classed("pie-label", !0), L = [];
|
|
6289
6301
|
A.merge(w).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
|
|
6290
6302
|
...M,
|
|
6291
|
-
percentageValue:
|
|
6303
|
+
percentageValue: an(
|
|
6292
6304
|
M.data[i],
|
|
6293
6305
|
r,
|
|
6294
6306
|
i,
|
|
6295
6307
|
!0
|
|
6296
6308
|
)
|
|
6297
6309
|
}) : E(
|
|
6298
|
-
|
|
6310
|
+
an(M.data[i], r, i),
|
|
6299
6311
|
m
|
|
6300
6312
|
) + "%").datum(function(M) {
|
|
6301
|
-
const J = l + 7,
|
|
6302
|
-
return M.textOffsetX = H / 2, M.textOffsetY = q > 90 && q < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + J) * Math.sin(
|
|
6313
|
+
const J = l + 7, fe = (M.endAngle - M.startAngle) / 2 + M.startAngle, q = fe / Math.PI * 180, H = this.getComputedTextLength();
|
|
6314
|
+
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
6315
|
}).attr("transform", function(M, J) {
|
|
6304
|
-
const
|
|
6305
|
-
if (J >=
|
|
6316
|
+
const fe = x.length, q = (M.endAngle - M.startAngle) * (180 / Math.PI);
|
|
6317
|
+
if (J >= fe - 2 && q < te.callout.minSliceDegree) {
|
|
6306
6318
|
let H, ae;
|
|
6307
|
-
return M.index ===
|
|
6319
|
+
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
6320
|
}
|
|
6309
6321
|
return `translate(${M.xPosition}, ${M.yPosition})`;
|
|
6310
6322
|
}), this.renderCallouts(L);
|
|
@@ -6322,7 +6334,7 @@ class Rl extends Y {
|
|
|
6322
6334
|
const s = n.enter().append("g").classed("callout", !0).attr("role", X.GROUP).attr("aria-roledescription", "label callout");
|
|
6323
6335
|
s.merge(n).datum(function(r) {
|
|
6324
6336
|
const { xPosition: l, yPosition: c, direction: d } = r;
|
|
6325
|
-
return d ===
|
|
6337
|
+
return d === cn.RIGHT ? (r.startPos = {
|
|
6326
6338
|
x: l,
|
|
6327
6339
|
y: c + r.textOffsetY
|
|
6328
6340
|
}, r.endPos = {
|
|
@@ -6383,7 +6395,7 @@ class Rl extends Y {
|
|
|
6383
6395
|
});
|
|
6384
6396
|
}).on("mouseout", function(t, n) {
|
|
6385
6397
|
const s = T(this);
|
|
6386
|
-
|
|
6398
|
+
Tr(() => {
|
|
6387
6399
|
e.isRendering || s.classed("hovered", !1).transition("pie_slice_mouseout").call(
|
|
6388
6400
|
(a) => e.services.transitions.setupTransition({
|
|
6389
6401
|
transition: a,
|
|
@@ -6407,7 +6419,7 @@ class Rl extends Y {
|
|
|
6407
6419
|
return n.pie.labels.enabled ? s + te.radiusOffset : s;
|
|
6408
6420
|
}
|
|
6409
6421
|
}
|
|
6410
|
-
class
|
|
6422
|
+
class Fh extends Cl {
|
|
6411
6423
|
constructor() {
|
|
6412
6424
|
super(...arguments), this.type = "donut", this.renderType = j.SVG;
|
|
6413
6425
|
}
|
|
@@ -6438,7 +6450,7 @@ class jh extends Rl {
|
|
|
6438
6450
|
n === null && (n = this.model.getDisplayData().reduce((r, l) => r + l[t.pie.valueMapsTo], 0));
|
|
6439
6451
|
const s = parseInt(e.text().replace(/[, ]+/g, ""), 10) || 0;
|
|
6440
6452
|
let a;
|
|
6441
|
-
s % 1 === 0 && n % 1 === 0 ? a =
|
|
6453
|
+
s % 1 === 0 && n % 1 === 0 ? a = ii : a = ta;
|
|
6442
6454
|
const i = a(s, n);
|
|
6443
6455
|
return (r) => {
|
|
6444
6456
|
const { numberFormatter: l } = t.donut.center;
|
|
@@ -6451,8 +6463,8 @@ class jh extends Rl {
|
|
|
6451
6463
|
};
|
|
6452
6464
|
}
|
|
6453
6465
|
}
|
|
6454
|
-
const
|
|
6455
|
-
class
|
|
6466
|
+
const Ws = "4,10 8,6 12,10", js = "12,6 8,10 4,6";
|
|
6467
|
+
class zh extends Y {
|
|
6456
6468
|
constructor() {
|
|
6457
6469
|
super(...arguments), this.type = "gauge", this.renderType = j.SVG;
|
|
6458
6470
|
}
|
|
@@ -6461,7 +6473,7 @@ class Xh extends Y {
|
|
|
6461
6473
|
return ((n = this.model.getData().find((s) => s.group === "value")) == null ? void 0 : n.value) ?? null;
|
|
6462
6474
|
}
|
|
6463
6475
|
getValueRatio() {
|
|
6464
|
-
return
|
|
6476
|
+
return ya(this.getValue(), 0, 100) / 100;
|
|
6465
6477
|
}
|
|
6466
6478
|
getDelta() {
|
|
6467
6479
|
var n;
|
|
@@ -6469,7 +6481,7 @@ class Xh extends Y {
|
|
|
6469
6481
|
}
|
|
6470
6482
|
getArcRatio() {
|
|
6471
6483
|
const e = this.getOptions();
|
|
6472
|
-
return v(e, "gauge", "type") ===
|
|
6484
|
+
return v(e, "gauge", "type") === Dt.FULL ? 1 : 0.5;
|
|
6473
6485
|
}
|
|
6474
6486
|
getArcSize() {
|
|
6475
6487
|
return this.getArcRatio() * Math.PI * 2;
|
|
@@ -6482,12 +6494,12 @@ class Xh extends Y {
|
|
|
6482
6494
|
getArrow(e) {
|
|
6483
6495
|
const t = this.getOptions();
|
|
6484
6496
|
switch (v(t, "gauge", "deltaArrow", "direction")) {
|
|
6485
|
-
case
|
|
6486
|
-
return
|
|
6487
|
-
case
|
|
6488
|
-
return
|
|
6497
|
+
case Os.UP:
|
|
6498
|
+
return Ws;
|
|
6499
|
+
case Os.DOWN:
|
|
6500
|
+
return js;
|
|
6489
6501
|
default:
|
|
6490
|
-
return e > 0 ?
|
|
6502
|
+
return e > 0 ? Ws : js;
|
|
6491
6503
|
}
|
|
6492
6504
|
}
|
|
6493
6505
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -6495,7 +6507,7 @@ class Xh extends Y {
|
|
|
6495
6507
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6496
6508
|
render(e = !0) {
|
|
6497
6509
|
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 =
|
|
6510
|
+
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
6511
|
const u = t.selectAll("path.arc-foreground").data([s]);
|
|
6500
6512
|
u.enter().append("path").merge(u).attr(
|
|
6501
6513
|
"class",
|
|
@@ -6517,7 +6529,7 @@ class Xh extends Y {
|
|
|
6517
6529
|
drawValueNumber() {
|
|
6518
6530
|
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
6531
|
let p = 0;
|
|
6520
|
-
n ===
|
|
6532
|
+
n === Dt.FULL && !a ? p = l(i) : n === Dt.SEMI && a && (p = -(l(i) + c));
|
|
6521
6533
|
const h = S.appendOrSelect(e, "g.gauge-numbers").attr(
|
|
6522
6534
|
"transform",
|
|
6523
6535
|
`translate(0, ${p})`
|
|
@@ -6602,10 +6614,10 @@ class Xh extends Y {
|
|
|
6602
6614
|
const e = this.getOptions(), t = v(e, "gauge", "type"), { width: n, height: s } = S.getSVGElementSize(this.parent, {
|
|
6603
6615
|
useAttrs: !0
|
|
6604
6616
|
});
|
|
6605
|
-
return t ===
|
|
6617
|
+
return t === Dt.SEMI ? Math.min(n / 2, s) : Math.min(n / 2, s / 2);
|
|
6606
6618
|
}
|
|
6607
6619
|
}
|
|
6608
|
-
class
|
|
6620
|
+
class Wh extends Zn {
|
|
6609
6621
|
constructor() {
|
|
6610
6622
|
super(...arguments), this.type = "grouped-bar", this.renderType = j.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
|
|
6611
6623
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -6631,7 +6643,7 @@ class Zh extends Xn {
|
|
|
6631
6643
|
render(e) {
|
|
6632
6644
|
const t = this.model.getDisplayData(this.configs.groups), n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
6633
6645
|
this.setGroupScale();
|
|
6634
|
-
const a = this.getComponentContainer({ withinChartClip: !0 }), i =
|
|
6646
|
+
const a = this.getComponentContainer({ withinChartClip: !0 }), i = qa(
|
|
6635
6647
|
t.map((h) => {
|
|
6636
6648
|
const u = this.services.cartesianScales.getDomainIdentifier(h);
|
|
6637
6649
|
return h[u] && typeof h[u].toString == "function" ? h[u].toString() : h[u];
|
|
@@ -6672,7 +6684,7 @@ class Zh extends Xn {
|
|
|
6672
6684
|
}).attr("d", (h) => {
|
|
6673
6685
|
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
6686
|
if (!this.isOutsideZoomedDomain(A, L))
|
|
6675
|
-
return
|
|
6687
|
+
return Se(
|
|
6676
6688
|
{ x0: m, x1: E, y0: y, y1: w },
|
|
6677
6689
|
this.services.cartesianScales.getOrientation()
|
|
6678
6690
|
);
|
|
@@ -6768,10 +6780,10 @@ class Zh extends Xn {
|
|
|
6768
6780
|
}
|
|
6769
6781
|
setGroupScale() {
|
|
6770
6782
|
const e = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
6771
|
-
this.groupScale =
|
|
6783
|
+
this.groupScale = Fn().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6772
6784
|
}
|
|
6773
6785
|
}
|
|
6774
|
-
class
|
|
6786
|
+
class jh extends Y {
|
|
6775
6787
|
constructor() {
|
|
6776
6788
|
super(...arguments), this.type = "heatmap", this.renderType = j.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
|
|
6777
6789
|
x: 0,
|
|
@@ -6797,7 +6809,7 @@ class Yh extends Y {
|
|
|
6797
6809
|
}
|
|
6798
6810
|
p += m, h = m < h ? m : h, u = m > u ? m : u;
|
|
6799
6811
|
}
|
|
6800
|
-
})), l(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(n)}, ${
|
|
6812
|
+
})), 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
6813
|
event: t.event,
|
|
6802
6814
|
hoveredElement: T(e.detail.element),
|
|
6803
6815
|
items: [
|
|
@@ -6879,14 +6891,14 @@ class Yh extends Y {
|
|
|
6879
6891
|
}
|
|
6880
6892
|
determineDividerStatus() {
|
|
6881
6893
|
const e = v(this.getOptions(), "heatmap", "divider", "state");
|
|
6882
|
-
return e !==
|
|
6894
|
+
return e !== dn.OFF && (e === dn.AUTO && vs.minCellDividerDimension <= this.xBandwidth && vs.minCellDividerDimension <= this.yBandwidth || e === dn.ON);
|
|
6883
6895
|
}
|
|
6884
6896
|
addEventListener() {
|
|
6885
6897
|
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
6898
|
this.parent.selectAll("g.cell").on("mouseover", function(c, d) {
|
|
6887
6899
|
const p = T(this), h = p.select("rect.heat");
|
|
6888
6900
|
if (!h.classed("null-state")) {
|
|
6889
|
-
const g =
|
|
6901
|
+
const g = Tt(p.attr("transform"));
|
|
6890
6902
|
e.parent.select("g.cell-highlight").attr(
|
|
6891
6903
|
"transform",
|
|
6892
6904
|
`translate(${g.x + e.translationUnits.x}, ${g.y + e.translationUnits.y})`
|
|
@@ -6946,7 +6958,7 @@ class Yh extends Y {
|
|
|
6946
6958
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
|
|
6947
6959
|
}
|
|
6948
6960
|
}
|
|
6949
|
-
class
|
|
6961
|
+
class Xh extends Y {
|
|
6950
6962
|
constructor() {
|
|
6951
6963
|
super(...arguments), this.type = "histogram", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
6952
6964
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
@@ -6992,7 +7004,7 @@ class qh extends Y {
|
|
|
6992
7004
|
return;
|
|
6993
7005
|
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
7006
|
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),
|
|
7007
|
+
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
7008
|
{ x0: u, x1: g, y0: m, y1: E },
|
|
6997
7009
|
this.services.cartesianScales.getOrientation()
|
|
6998
7010
|
);
|
|
@@ -7040,13 +7052,13 @@ class qh extends Y {
|
|
|
7040
7052
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7041
7053
|
}
|
|
7042
7054
|
}
|
|
7043
|
-
class
|
|
7055
|
+
class Zh extends jn {
|
|
7044
7056
|
constructor() {
|
|
7045
7057
|
super(...arguments), this.type = "lollipop", this.renderType = j.SVG, this.handleScatterOnHover = (e) => {
|
|
7046
7058
|
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] ?
|
|
7059
|
+
this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ? Ue.weight.unselected : Ue.weight.selected);
|
|
7048
7060
|
}, this.handleScatterOnMouseOut = () => {
|
|
7049
|
-
this.parent.selectAll("line.line").attr("stroke-width",
|
|
7061
|
+
this.parent.selectAll("line.line").attr("stroke-width", Ue.weight.unselected);
|
|
7050
7062
|
}, this.handleLegendOnHover = (e) => {
|
|
7051
7063
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
7052
7064
|
this.parent.selectAll("line.line").transition("legend-hover-line").call(
|
|
@@ -7054,14 +7066,14 @@ class Kh extends Wn {
|
|
|
7054
7066
|
transition: a,
|
|
7055
7067
|
name: "legend-hover-line"
|
|
7056
7068
|
})
|
|
7057
|
-
).attr("opacity", (a) => a[s] !== t.datum().name ?
|
|
7069
|
+
).attr("opacity", (a) => a[s] !== t.datum().name ? Ue.opacity.unselected : Ue.opacity.selected);
|
|
7058
7070
|
}, this.handleLegendMouseOut = () => {
|
|
7059
7071
|
this.parent.selectAll("line.line").transition("legend-mouseout-line").call(
|
|
7060
7072
|
(e) => this.services.transitions.setupTransition({
|
|
7061
7073
|
transition: e,
|
|
7062
7074
|
name: "legend-mouseout-line"
|
|
7063
7075
|
})
|
|
7064
|
-
).attr("opacity",
|
|
7076
|
+
).attr("opacity", Ue.opacity.selected);
|
|
7065
7077
|
};
|
|
7066
7078
|
}
|
|
7067
7079
|
init() {
|
|
@@ -7069,7 +7081,7 @@ class Kh extends Wn {
|
|
|
7069
7081
|
e.addEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.addEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7070
7082
|
}
|
|
7071
7083
|
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] =
|
|
7084
|
+
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
7085
|
c,
|
|
7074
7086
|
d,
|
|
7075
7087
|
p
|
|
@@ -7112,7 +7124,7 @@ class Kh extends Wn {
|
|
|
7112
7124
|
);
|
|
7113
7125
|
}
|
|
7114
7126
|
}
|
|
7115
|
-
class
|
|
7127
|
+
class Yh extends Y {
|
|
7116
7128
|
constructor() {
|
|
7117
7129
|
super(...arguments), this.type = "meter", this.renderType = j.SVG;
|
|
7118
7130
|
}
|
|
@@ -7120,11 +7132,11 @@ class Jh extends Y {
|
|
|
7120
7132
|
let n = 0;
|
|
7121
7133
|
return e.map((a, i) => i !== 0 ? (n += t(a.value), {
|
|
7122
7134
|
...a,
|
|
7123
|
-
width: Math.abs(t(a.value) -
|
|
7135
|
+
width: Math.abs(t(a.value) - me.dividerWidth),
|
|
7124
7136
|
x: n - t(a.value)
|
|
7125
7137
|
}) : (n = t(a.value), {
|
|
7126
7138
|
...a,
|
|
7127
|
-
width: Math.abs(t(a.value) -
|
|
7139
|
+
width: Math.abs(t(a.value) - me.dividerWidth),
|
|
7128
7140
|
x: 0
|
|
7129
7141
|
}));
|
|
7130
7142
|
}
|
|
@@ -7142,13 +7154,13 @@ class Jh extends Y {
|
|
|
7142
7154
|
const p = qe().domain([0, d]).range([0, l]), h = this.getStackedBounds(i, p), u = v(s, "meter", "height");
|
|
7143
7155
|
S.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", l).attr(
|
|
7144
7156
|
"height",
|
|
7145
|
-
u || (a ?
|
|
7157
|
+
u || (a ? me.height.proportional : me.height.default)
|
|
7146
7158
|
), S.appendOrSelect(n, "line.rangeIndicator").attr("x1", l).attr("x2", l).attr("y1", 0).attr(
|
|
7147
7159
|
"y2",
|
|
7148
|
-
u || (a ?
|
|
7160
|
+
u || (a ? me.height.proportional : me.height.default)
|
|
7149
7161
|
);
|
|
7150
7162
|
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 ?
|
|
7163
|
+
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
7164
|
"class",
|
|
7153
7165
|
(y) => this.model.getColorClassName({
|
|
7154
7166
|
classNameTypes: [z.FILL],
|
|
@@ -7166,7 +7178,7 @@ class Jh extends Y {
|
|
|
7166
7178
|
let O = E;
|
|
7167
7179
|
E !== null && (E > d ? O = d : E < i[0].value && (O = i[0].value > d ? d : i[0].value));
|
|
7168
7180
|
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 ?
|
|
7181
|
+
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
7182
|
(y) => this.services.transitions.setupTransition({
|
|
7171
7183
|
transition: y,
|
|
7172
7184
|
name: "peak-line-update",
|
|
@@ -7223,13 +7235,13 @@ class Jh extends Y {
|
|
|
7223
7235
|
this.parent.selectAll("rect.value").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
|
|
7224
7236
|
}
|
|
7225
7237
|
}
|
|
7226
|
-
class
|
|
7238
|
+
class qh extends Y {
|
|
7227
7239
|
constructor() {
|
|
7228
7240
|
super(...arguments), this.type = "radar", this.renderType = j.SVG, this.getLabelDimensions = (e) => {
|
|
7229
7241
|
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
7242
|
return t.remove(), { width: s, height: a };
|
|
7231
7243
|
}, this.normalizeFlatData = (e) => {
|
|
7232
|
-
const t = this.getOptions(), { angle: n, value: s } = v(t, "radar", "axes"), a = v(t, "data", "groupMapsTo"), i =
|
|
7244
|
+
const t = this.getOptions(), { angle: n, value: s } = v(t, "radar", "axes"), a = v(t, "data", "groupMapsTo"), i = wr(
|
|
7233
7245
|
this.uniqueKeys.map((r) => this.uniqueGroups.map((l) => ({
|
|
7234
7246
|
[n]: r,
|
|
7235
7247
|
[a]: l,
|
|
@@ -7276,20 +7288,20 @@ class Qh extends Y {
|
|
|
7276
7288
|
const x = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), A = (Math.min(n, s) - x) / 2;
|
|
7277
7289
|
if (A <= 0)
|
|
7278
7290
|
return;
|
|
7279
|
-
const L =
|
|
7291
|
+
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
7292
|
I >= 0 ? 0 : I,
|
|
7281
|
-
|
|
7282
|
-
]).range([m, A]).nice(g), W = P.ticks(g), k = (_, R, N) => this.model.getFillColor(_, R, N), C =
|
|
7283
|
-
const R = this.getLabelDimensions(_).width, N =
|
|
7293
|
+
ys(this.fullDataNormalized.map((_) => _[p]))
|
|
7294
|
+
]).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((_) => {
|
|
7295
|
+
const R = this.getLabelDimensions(_).width, N = bi(
|
|
7284
7296
|
L(_),
|
|
7285
7297
|
A
|
|
7286
7298
|
);
|
|
7287
7299
|
return R + N;
|
|
7288
7300
|
}), M = {
|
|
7289
|
-
x:
|
|
7301
|
+
x: ys(V) + h,
|
|
7290
7302
|
y: s / 2
|
|
7291
|
-
},
|
|
7292
|
-
|
|
7303
|
+
}, fe = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(W, (_) => _), q = (_) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: _ }));
|
|
7304
|
+
fe.join(
|
|
7293
7305
|
(_) => _.append("path").attr("opacity", 0).attr("transform", `translate(${M.x}, ${M.y})`).attr("fill", "none").call(
|
|
7294
7306
|
(R) => R.transition().call(
|
|
7295
7307
|
(N) => this.services.transitions.setupTransition({
|
|
@@ -7352,9 +7364,9 @@ class Qh extends Y {
|
|
|
7352
7364
|
).attr(
|
|
7353
7365
|
"y",
|
|
7354
7366
|
(R) => le(L(R), P.range()[1] + h, M).y
|
|
7355
|
-
).style("text-anchor", (R) =>
|
|
7367
|
+
).style("text-anchor", (R) => bs(L(R)).textAnchor).style(
|
|
7356
7368
|
"dominant-baseline",
|
|
7357
|
-
(R) =>
|
|
7369
|
+
(R) => bs(L(R)).dominantBaseline
|
|
7358
7370
|
).call(
|
|
7359
7371
|
(R) => R.transition().call(
|
|
7360
7372
|
(N) => this.services.transitions.setupTransition({
|
|
@@ -7456,9 +7468,9 @@ class Qh extends Y {
|
|
|
7456
7468
|
(_) => _.append("rect"),
|
|
7457
7469
|
(_) => _,
|
|
7458
7470
|
(_) => _.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(${
|
|
7471
|
+
).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
7472
|
const { code: se, number: oe } = v(r, "locale");
|
|
7461
|
-
S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(
|
|
7473
|
+
S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Kt(W)).join(
|
|
7462
7474
|
(_) => _.append("text").attr("opacity", 0).text((R) => oe(R, se)).attr(
|
|
7463
7475
|
"x",
|
|
7464
7476
|
(R) => le(-Math.PI / 2, P(R), M).x + u
|
|
@@ -7565,7 +7577,7 @@ class Qh extends Y {
|
|
|
7565
7577
|
});
|
|
7566
7578
|
}
|
|
7567
7579
|
}
|
|
7568
|
-
class
|
|
7580
|
+
class Kh extends Zn {
|
|
7569
7581
|
constructor() {
|
|
7570
7582
|
super(...arguments), this.type = "simple-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
7571
7583
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -7617,7 +7629,7 @@ class eu extends Xn {
|
|
|
7617
7629
|
}
|
|
7618
7630
|
const O = Math.abs(E - m);
|
|
7619
7631
|
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
|
|
7632
|
+
return Se({ x0: u, x1: g, y0: m, y1: E }, i);
|
|
7621
7633
|
}).attr("opacity", 1).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (c) => c.value), this.addEventListeners();
|
|
7622
7634
|
}
|
|
7623
7635
|
addEventListeners() {
|
|
@@ -7664,7 +7676,7 @@ class eu extends Xn {
|
|
|
7664
7676
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7665
7677
|
}
|
|
7666
7678
|
}
|
|
7667
|
-
class
|
|
7679
|
+
class Jh extends El {
|
|
7668
7680
|
constructor() {
|
|
7669
7681
|
super(...arguments), this.type = "skeleton-lines";
|
|
7670
7682
|
}
|
|
@@ -7690,7 +7702,7 @@ class tu extends Ol {
|
|
|
7690
7702
|
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
7703
|
}
|
|
7692
7704
|
}
|
|
7693
|
-
class
|
|
7705
|
+
class Qh extends Y {
|
|
7694
7706
|
constructor() {
|
|
7695
7707
|
super(...arguments), this.type = "area-stacked", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
7696
7708
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
@@ -7718,7 +7730,7 @@ class nu extends Y {
|
|
|
7718
7730
|
percentage: i,
|
|
7719
7731
|
groups: this.configs.groups
|
|
7720
7732
|
}), 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 =
|
|
7733
|
+
this.areaGenerator = Gn().x(
|
|
7722
7734
|
(g) => this.services.cartesianScales.getValueThroughAxisPosition(
|
|
7723
7735
|
c,
|
|
7724
7736
|
g.data.sharedStackKey
|
|
@@ -7739,7 +7751,7 @@ class nu extends Y {
|
|
|
7739
7751
|
).attr("opacity", $e.opacity.selected).attr("d", this.areaGenerator);
|
|
7740
7752
|
}
|
|
7741
7753
|
}
|
|
7742
|
-
class
|
|
7754
|
+
class eu extends Zn {
|
|
7743
7755
|
constructor() {
|
|
7744
7756
|
super(...arguments), this.type = "stacked-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
7745
7757
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.model.getOptions().data;
|
|
@@ -7796,7 +7808,7 @@ class su extends Xn {
|
|
|
7796
7808
|
const E = c[0] < 0 && c[1] <= 0;
|
|
7797
7809
|
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
7810
|
}
|
|
7799
|
-
return
|
|
7811
|
+
return Se(
|
|
7800
7812
|
{ x0: h, x1: u, y0: g, y1: m },
|
|
7801
7813
|
this.services.cartesianScales.getOrientation()
|
|
7802
7814
|
);
|
|
@@ -7870,7 +7882,7 @@ class su extends Xn {
|
|
|
7870
7882
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7871
7883
|
}
|
|
7872
7884
|
}
|
|
7873
|
-
class
|
|
7885
|
+
class tu extends jn {
|
|
7874
7886
|
constructor() {
|
|
7875
7887
|
super(...arguments), this.type = "scatter-stacked", this.renderType = j.SVG;
|
|
7876
7888
|
}
|
|
@@ -7919,7 +7931,7 @@ class au extends Wn {
|
|
|
7919
7931
|
}
|
|
7920
7932
|
}
|
|
7921
7933
|
const ot = 6;
|
|
7922
|
-
class
|
|
7934
|
+
class nu extends Y {
|
|
7923
7935
|
constructor() {
|
|
7924
7936
|
super(...arguments), this.type = "tree", this.renderType = j.SVG;
|
|
7925
7937
|
}
|
|
@@ -7952,7 +7964,7 @@ class iu extends Y {
|
|
|
7952
7964
|
right: 0,
|
|
7953
7965
|
bottom: 0,
|
|
7954
7966
|
left: l > 0 ? l + ot : 30 - ot
|
|
7955
|
-
}, h =
|
|
7967
|
+
}, h = zn({
|
|
7956
7968
|
name: r,
|
|
7957
7969
|
children: i
|
|
7958
7970
|
}), u = 10, g = n / 6, m = (L) => {
|
|
@@ -7990,23 +8002,23 @@ class iu extends Y {
|
|
|
7990
8002
|
});
|
|
7991
8003
|
});
|
|
7992
8004
|
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
|
|
8005
|
+
const fe = w.selectAll("path").data(P, (H) => H.target.id), q = fe.enter().append("path").attr("d", () => {
|
|
7994
8006
|
const H = { x: L.x0, y: L.y0 };
|
|
7995
8007
|
return y({ source: H, target: H });
|
|
7996
8008
|
});
|
|
7997
|
-
|
|
8009
|
+
fe.merge(q).transition(V).attr("d", y), fe.exit().transition(V).remove().attr("d", () => {
|
|
7998
8010
|
const H = { x: L.x, y: L.y };
|
|
7999
8011
|
return y({ source: H, target: H });
|
|
8000
8012
|
}), h.eachBefore((H) => {
|
|
8001
8013
|
H.x0 = H.x, H.y0 = H.y;
|
|
8002
8014
|
});
|
|
8003
|
-
}, E = h.descendants(), O = E[E.length - 1].depth, x = v(a, "tree", "type") ===
|
|
8015
|
+
}, E = h.descendants(), O = E[E.length - 1].depth, x = v(a, "tree", "type") === xi.DENDROGRAM ? li().size([
|
|
8004
8016
|
s,
|
|
8005
8017
|
n - d - O * ot - l
|
|
8006
|
-
]) :
|
|
8018
|
+
]) : ci().nodeSize([u, g]).size([
|
|
8007
8019
|
s,
|
|
8008
8020
|
n - d - O * ot - l
|
|
8009
|
-
]), y =
|
|
8021
|
+
]), y = di().x((L) => L.y).y((L) => L.x);
|
|
8010
8022
|
h.x0 = g / 2, h.y0 = 0, h.descendants().forEach((L, I) => {
|
|
8011
8023
|
L.id = I, L._children = L.children;
|
|
8012
8024
|
}), x(h), t.attr("viewBox", [-p.left, -p.top, n, u]).style("user-select", "none");
|
|
@@ -8014,181 +8026,181 @@ class iu extends Y {
|
|
|
8014
8026
|
m(h);
|
|
8015
8027
|
}
|
|
8016
8028
|
}
|
|
8017
|
-
var
|
|
8018
|
-
10:
|
|
8019
|
-
20:
|
|
8020
|
-
30:
|
|
8021
|
-
40:
|
|
8022
|
-
50:
|
|
8023
|
-
60:
|
|
8024
|
-
70:
|
|
8025
|
-
80:
|
|
8026
|
-
90:
|
|
8027
|
-
100:
|
|
8028
|
-
},
|
|
8029
|
-
10:
|
|
8030
|
-
20:
|
|
8031
|
-
30:
|
|
8032
|
-
40:
|
|
8033
|
-
50:
|
|
8034
|
-
60:
|
|
8035
|
-
70:
|
|
8036
|
-
80:
|
|
8037
|
-
90:
|
|
8038
|
-
100:
|
|
8039
|
-
},
|
|
8040
|
-
10:
|
|
8041
|
-
20:
|
|
8042
|
-
30:
|
|
8043
|
-
40:
|
|
8044
|
-
50:
|
|
8045
|
-
60:
|
|
8046
|
-
70:
|
|
8047
|
-
80:
|
|
8048
|
-
90:
|
|
8049
|
-
100:
|
|
8050
|
-
},
|
|
8051
|
-
10:
|
|
8052
|
-
20:
|
|
8053
|
-
30:
|
|
8054
|
-
40:
|
|
8055
|
-
50:
|
|
8056
|
-
60:
|
|
8057
|
-
70:
|
|
8058
|
-
80:
|
|
8059
|
-
90:
|
|
8060
|
-
100:
|
|
8061
|
-
},
|
|
8062
|
-
10:
|
|
8063
|
-
20:
|
|
8064
|
-
30:
|
|
8065
|
-
40:
|
|
8066
|
-
50:
|
|
8067
|
-
60:
|
|
8068
|
-
70:
|
|
8069
|
-
80:
|
|
8070
|
-
90:
|
|
8071
|
-
100:
|
|
8072
|
-
},
|
|
8073
|
-
10:
|
|
8074
|
-
20:
|
|
8075
|
-
30:
|
|
8076
|
-
40:
|
|
8077
|
-
50:
|
|
8078
|
-
60:
|
|
8079
|
-
70:
|
|
8080
|
-
80:
|
|
8081
|
-
90:
|
|
8082
|
-
100:
|
|
8083
|
-
},
|
|
8084
|
-
10:
|
|
8085
|
-
20:
|
|
8086
|
-
30:
|
|
8087
|
-
40:
|
|
8088
|
-
50:
|
|
8089
|
-
60:
|
|
8090
|
-
70:
|
|
8091
|
-
80:
|
|
8092
|
-
90:
|
|
8093
|
-
100:
|
|
8094
|
-
},
|
|
8095
|
-
10:
|
|
8096
|
-
20:
|
|
8097
|
-
30:
|
|
8098
|
-
40:
|
|
8099
|
-
50:
|
|
8100
|
-
60:
|
|
8101
|
-
70:
|
|
8102
|
-
80:
|
|
8103
|
-
90:
|
|
8104
|
-
100:
|
|
8105
|
-
},
|
|
8106
|
-
10:
|
|
8107
|
-
20:
|
|
8108
|
-
30:
|
|
8109
|
-
40:
|
|
8110
|
-
50:
|
|
8111
|
-
60:
|
|
8112
|
-
70:
|
|
8113
|
-
80:
|
|
8114
|
-
90:
|
|
8115
|
-
100:
|
|
8116
|
-
},
|
|
8117
|
-
10:
|
|
8118
|
-
20:
|
|
8119
|
-
30:
|
|
8120
|
-
40:
|
|
8121
|
-
50:
|
|
8122
|
-
60:
|
|
8123
|
-
70:
|
|
8124
|
-
80:
|
|
8125
|
-
90:
|
|
8126
|
-
100:
|
|
8127
|
-
},
|
|
8128
|
-
10:
|
|
8129
|
-
20:
|
|
8130
|
-
30:
|
|
8131
|
-
40:
|
|
8132
|
-
50:
|
|
8133
|
-
60:
|
|
8134
|
-
70:
|
|
8135
|
-
80:
|
|
8136
|
-
90:
|
|
8137
|
-
100:
|
|
8138
|
-
},
|
|
8139
|
-
10:
|
|
8140
|
-
20:
|
|
8141
|
-
30:
|
|
8142
|
-
40:
|
|
8143
|
-
50:
|
|
8144
|
-
60:
|
|
8145
|
-
70:
|
|
8146
|
-
80:
|
|
8147
|
-
90:
|
|
8148
|
-
100:
|
|
8149
|
-
},
|
|
8029
|
+
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 = {
|
|
8030
|
+
10: Rl,
|
|
8031
|
+
20: kl,
|
|
8032
|
+
30: Dl,
|
|
8033
|
+
40: Pl,
|
|
8034
|
+
50: Nl,
|
|
8035
|
+
60: Vl,
|
|
8036
|
+
70: Bl,
|
|
8037
|
+
80: Gl,
|
|
8038
|
+
90: Hl,
|
|
8039
|
+
100: Ul
|
|
8040
|
+
}, Fl = "#fff2e8", zl = "#ffd9be", Wl = "#ffb784", jl = "#ff832b", Xl = "#eb6200", Zl = "#ba4e00", Yl = "#8a3800", ql = "#5e2900", Kl = "#3e1a00", Jl = "#231000", Ql = {
|
|
8041
|
+
10: Fl,
|
|
8042
|
+
20: zl,
|
|
8043
|
+
30: Wl,
|
|
8044
|
+
40: jl,
|
|
8045
|
+
50: Xl,
|
|
8046
|
+
60: Zl,
|
|
8047
|
+
70: Yl,
|
|
8048
|
+
80: ql,
|
|
8049
|
+
90: Kl,
|
|
8050
|
+
100: Jl
|
|
8051
|
+
}, ec = "#fff1f1", tc = "#ffd7d9", nc = "#ffb3b8", sc = "#ff8389", ac = "#fa4d56", ic = "#da1e28", rc = "#a2191f", oc = "#750e13", lc = "#520408", cc = "#2d0709", dc = {
|
|
8052
|
+
10: ec,
|
|
8053
|
+
20: tc,
|
|
8054
|
+
30: nc,
|
|
8055
|
+
40: sc,
|
|
8056
|
+
50: ac,
|
|
8057
|
+
60: ic,
|
|
8058
|
+
70: rc,
|
|
8059
|
+
80: oc,
|
|
8060
|
+
90: lc,
|
|
8061
|
+
100: cc
|
|
8062
|
+
}, hc = "#fff0f7", uc = "#ffd6e8", pc = "#ffafd2", gc = "#ff7eb6", mc = "#ee5396", fc = "#d02670", vc = "#9f1853", yc = "#740937", Ec = "#510224", bc = "#2a0a18", Sc = {
|
|
8063
|
+
10: hc,
|
|
8064
|
+
20: uc,
|
|
8065
|
+
30: pc,
|
|
8066
|
+
40: gc,
|
|
8067
|
+
50: mc,
|
|
8068
|
+
60: fc,
|
|
8069
|
+
70: vc,
|
|
8070
|
+
80: yc,
|
|
8071
|
+
90: Ec,
|
|
8072
|
+
100: bc
|
|
8073
|
+
}, Oc = "#f6f2ff", Tc = "#e8daff", xc = "#d4bbff", Lc = "#be95ff", Ac = "#a56eff", wc = "#8a3ffc", Mc = "#6929c4", Cc = "#491d8b", _c = "#31135e", Ic = "#1c0f30", Rc = {
|
|
8074
|
+
10: Oc,
|
|
8075
|
+
20: Tc,
|
|
8076
|
+
30: xc,
|
|
8077
|
+
40: Lc,
|
|
8078
|
+
50: Ac,
|
|
8079
|
+
60: wc,
|
|
8080
|
+
70: Mc,
|
|
8081
|
+
80: Cc,
|
|
8082
|
+
90: _c,
|
|
8083
|
+
100: Ic
|
|
8084
|
+
}, kc = "#edf5ff", Dc = "#d0e2ff", Pc = "#a6c8ff", Nc = "#78a9ff", Vc = "#4589ff", Bc = "#0f62fe", Gc = "#0043ce", Hc = "#002d9c", Uc = "#001d6c", $c = "#001141", Fc = {
|
|
8085
|
+
10: kc,
|
|
8086
|
+
20: Dc,
|
|
8087
|
+
30: Pc,
|
|
8088
|
+
40: Nc,
|
|
8089
|
+
50: Vc,
|
|
8090
|
+
60: Bc,
|
|
8091
|
+
70: Gc,
|
|
8092
|
+
80: Hc,
|
|
8093
|
+
90: Uc,
|
|
8094
|
+
100: $c
|
|
8095
|
+
}, zc = "#e5f6ff", Wc = "#bae6ff", jc = "#82cfff", Xc = "#33b1ff", Zc = "#1192e8", Yc = "#0072c3", qc = "#00539a", Kc = "#003a6d", Jc = "#012749", Qc = "#061727", ed = {
|
|
8096
|
+
10: zc,
|
|
8097
|
+
20: Wc,
|
|
8098
|
+
30: jc,
|
|
8099
|
+
40: Xc,
|
|
8100
|
+
50: Zc,
|
|
8101
|
+
60: Yc,
|
|
8102
|
+
70: qc,
|
|
8103
|
+
80: Kc,
|
|
8104
|
+
90: Jc,
|
|
8105
|
+
100: Qc
|
|
8106
|
+
}, td = "#d9fbfb", nd = "#9ef0f0", sd = "#3ddbd9", ad = "#08bdba", id = "#009d9a", rd = "#007d79", od = "#005d5d", ld = "#004144", cd = "#022b30", dd = "#081a1c", hd = {
|
|
8107
|
+
10: td,
|
|
8108
|
+
20: nd,
|
|
8109
|
+
30: sd,
|
|
8110
|
+
40: ad,
|
|
8111
|
+
50: id,
|
|
8112
|
+
60: rd,
|
|
8113
|
+
70: od,
|
|
8114
|
+
80: ld,
|
|
8115
|
+
90: cd,
|
|
8116
|
+
100: dd
|
|
8117
|
+
}, ud = "#defbe6", pd = "#a7f0ba", gd = "#6fdc8c", md = "#42be65", fd = "#24a148", vd = "#198038", yd = "#0e6027", Ed = "#044317", bd = "#022d0d", Sd = "#071908", Od = {
|
|
8118
|
+
10: ud,
|
|
8119
|
+
20: pd,
|
|
8120
|
+
30: gd,
|
|
8121
|
+
40: md,
|
|
8122
|
+
50: fd,
|
|
8123
|
+
60: vd,
|
|
8124
|
+
70: yd,
|
|
8125
|
+
80: Ed,
|
|
8126
|
+
90: bd,
|
|
8127
|
+
100: Sd
|
|
8128
|
+
}, Td = "#f2f4f8", xd = "#dde1e6", Ld = "#c1c7cd", Ad = "#a2a9b0", wd = "#878d96", Md = "#697077", Cd = "#4d5358", _d = "#343a3f", Id = "#21272a", Rd = "#121619", kd = {
|
|
8129
|
+
10: Td,
|
|
8130
|
+
20: xd,
|
|
8131
|
+
30: Ld,
|
|
8132
|
+
40: Ad,
|
|
8133
|
+
50: wd,
|
|
8134
|
+
60: Md,
|
|
8135
|
+
70: Cd,
|
|
8136
|
+
80: _d,
|
|
8137
|
+
90: Id,
|
|
8138
|
+
100: Rd
|
|
8139
|
+
}, Dd = "#f4f4f4", Pd = "#e0e0e0", Nd = "#c6c6c6", Vd = "#a8a8a8", Bd = "#8d8d8d", Gd = "#6f6f6f", Hd = "#525252", Ud = "#393939", $d = "#262626", Fd = "#161616", zd = {
|
|
8140
|
+
10: Dd,
|
|
8141
|
+
20: Pd,
|
|
8142
|
+
30: Nd,
|
|
8143
|
+
40: Vd,
|
|
8144
|
+
50: Bd,
|
|
8145
|
+
60: Gd,
|
|
8146
|
+
70: Hd,
|
|
8147
|
+
80: Ud,
|
|
8148
|
+
90: $d,
|
|
8149
|
+
100: Fd
|
|
8150
|
+
}, Wd = "#f7f3f2", jd = "#e5e0df", Xd = "#cac5c4", Zd = "#ada8a8", Yd = "#8f8b8b", qd = "#726e6e", Kd = "#565151", Jd = "#3c3838", Qd = "#272525", eh = "#171414", th = {
|
|
8151
|
+
10: Wd,
|
|
8152
|
+
20: jd,
|
|
8153
|
+
30: Xd,
|
|
8154
|
+
40: Zd,
|
|
8155
|
+
50: Yd,
|
|
8156
|
+
60: qd,
|
|
8157
|
+
70: Kd,
|
|
8158
|
+
80: Jd,
|
|
8159
|
+
90: Qd,
|
|
8160
|
+
100: eh
|
|
8161
|
+
}, Xs = {
|
|
8150
8162
|
black: {
|
|
8151
|
-
100:
|
|
8163
|
+
100: _l
|
|
8152
8164
|
},
|
|
8153
|
-
blue:
|
|
8154
|
-
coolGray:
|
|
8155
|
-
cyan:
|
|
8156
|
-
gray:
|
|
8157
|
-
green:
|
|
8158
|
-
magenta:
|
|
8159
|
-
orange:
|
|
8160
|
-
purple:
|
|
8161
|
-
red:
|
|
8162
|
-
teal:
|
|
8163
|
-
warmGray:
|
|
8165
|
+
blue: Fc,
|
|
8166
|
+
coolGray: kd,
|
|
8167
|
+
cyan: ed,
|
|
8168
|
+
gray: zd,
|
|
8169
|
+
green: Od,
|
|
8170
|
+
magenta: Sc,
|
|
8171
|
+
orange: Ql,
|
|
8172
|
+
purple: Rc,
|
|
8173
|
+
red: dc,
|
|
8174
|
+
teal: hd,
|
|
8175
|
+
warmGray: th,
|
|
8164
8176
|
white: {
|
|
8165
|
-
0:
|
|
8177
|
+
0: Il
|
|
8166
8178
|
},
|
|
8167
|
-
yellow:
|
|
8179
|
+
yellow: $l
|
|
8168
8180
|
};
|
|
8169
|
-
const
|
|
8181
|
+
const nh = (o) => {
|
|
8170
8182
|
if (!o)
|
|
8171
8183
|
return null;
|
|
8172
|
-
for (const e of Object.keys(
|
|
8173
|
-
const t =
|
|
8184
|
+
for (const e of Object.keys(Xs)) {
|
|
8185
|
+
const t = Xs[e];
|
|
8174
8186
|
for (const n of Object.keys(t))
|
|
8175
8187
|
if (t[+n] === o)
|
|
8176
8188
|
return n;
|
|
8177
8189
|
}
|
|
8178
8190
|
return null;
|
|
8179
|
-
},
|
|
8191
|
+
}, Zs = function() {
|
|
8180
8192
|
const o = T(this.parentNode).select("rect.leaf"), e = getComputedStyle(o.node(), null).getPropertyValue(
|
|
8181
8193
|
"fill"
|
|
8182
|
-
), t =
|
|
8194
|
+
), t = sa(e);
|
|
8183
8195
|
let n;
|
|
8184
|
-
if (t && (n =
|
|
8185
|
-
const s =
|
|
8196
|
+
if (t && (n = nh(t ? t.hex() : null)), n == null) {
|
|
8197
|
+
const s = na(t).l;
|
|
8186
8198
|
n = Math.abs(s * 100 - 100);
|
|
8187
8199
|
}
|
|
8188
8200
|
return n > 50 ? "white" : "black";
|
|
8189
8201
|
};
|
|
8190
|
-
let
|
|
8191
|
-
class
|
|
8202
|
+
let sh = 0;
|
|
8203
|
+
class su extends Y {
|
|
8192
8204
|
constructor() {
|
|
8193
8205
|
super(...arguments), this.type = "treemap", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
8194
8206
|
const { hoveredElement: t } = e.detail;
|
|
@@ -8219,14 +8231,14 @@ class ru extends Y {
|
|
|
8219
8231
|
this.model.getData();
|
|
8220
8232
|
const n = this.model.getDisplayData(), s = this.model.getOptions(), a = v(window, "location"), { width: i, height: r } = S.getSVGElementSize(t, {
|
|
8221
8233
|
useAttrs: !0
|
|
8222
|
-
}), l =
|
|
8234
|
+
}), l = zn({
|
|
8223
8235
|
name: s.title || "Treemap",
|
|
8224
8236
|
children: n
|
|
8225
|
-
}).sum((m) => m.value).sort((m, E) => E.value - m.value), c =
|
|
8237
|
+
}).sum((m) => m.value).sort((m, E) => E.value - m.value), c = hi().size([i, r]).paddingInner(1).paddingOuter(0).round(!0)(
|
|
8226
8238
|
l
|
|
8227
8239
|
), d = t.selectAll("g[data-name='leaf']").data(c.leaves(), (m) => m.data.name);
|
|
8228
8240
|
d.exit().attr("opacity", 0).remove();
|
|
8229
|
-
const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () =>
|
|
8241
|
+
const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () => sh++).merge(d);
|
|
8230
8242
|
h.attr("data-name", "leaf").transition().call(
|
|
8231
8243
|
(m) => this.services.transitions.setupTransition({
|
|
8232
8244
|
transition: m,
|
|
@@ -8279,7 +8291,7 @@ class ru extends Y {
|
|
|
8279
8291
|
let E = m;
|
|
8280
8292
|
for (; E.depth > 1; )
|
|
8281
8293
|
E = E.parent;
|
|
8282
|
-
const O =
|
|
8294
|
+
const O = na(this.model.getFillColor(E.data.name));
|
|
8283
8295
|
return [
|
|
8284
8296
|
{
|
|
8285
8297
|
text: m.data.name,
|
|
@@ -8290,13 +8302,13 @@ class ru extends Y {
|
|
|
8290
8302
|
(m) => m
|
|
8291
8303
|
).join(
|
|
8292
8304
|
(m) => {
|
|
8293
|
-
const E = m.append("text").text((O) => O.text).style("fill",
|
|
8305
|
+
const E = m.append("text").text((O) => O.text).style("fill", Zs).attr("x", 7).attr("y", 18);
|
|
8294
8306
|
return a && E.attr("clip-path", function() {
|
|
8295
8307
|
const O = T(this.parentNode).attr("data-uid"), x = `${s.style.prefix}-clip-${O}`;
|
|
8296
8308
|
return `url(${new URL(`#${x}`, a) + ""})`;
|
|
8297
8309
|
}), E;
|
|
8298
8310
|
},
|
|
8299
|
-
(m) => m.text((E) => E.text).style("fill",
|
|
8311
|
+
(m) => m.text((E) => E.text).style("fill", Zs),
|
|
8300
8312
|
(m) => m.remove()
|
|
8301
8313
|
), this.addEventListeners();
|
|
8302
8314
|
}
|
|
@@ -8314,7 +8326,7 @@ class ru extends Y {
|
|
|
8314
8326
|
})
|
|
8315
8327
|
).style("fill", (r) => {
|
|
8316
8328
|
const l = e.model.getFillColor(r.parent.data.name, null, r.data);
|
|
8317
|
-
return l && (a = l),
|
|
8329
|
+
return l && (a = l), sa(a).darker(0.7).toString();
|
|
8318
8330
|
}), e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
8319
8331
|
event: t,
|
|
8320
8332
|
hoveredElement: s,
|
|
@@ -8370,7 +8382,7 @@ class ru extends Y {
|
|
|
8370
8382
|
});
|
|
8371
8383
|
}
|
|
8372
8384
|
}
|
|
8373
|
-
class
|
|
8385
|
+
class au extends Y {
|
|
8374
8386
|
constructor() {
|
|
8375
8387
|
super(...arguments), this.type = "wordcloud", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
8376
8388
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -8399,7 +8411,7 @@ class ou extends Y {
|
|
|
8399
8411
|
});
|
|
8400
8412
|
if (d === 0 || p === 0)
|
|
8401
8413
|
return;
|
|
8402
|
-
const h =
|
|
8414
|
+
const h = _i().size([d, p]).words(
|
|
8403
8415
|
s.map(function(g) {
|
|
8404
8416
|
const m = g[r];
|
|
8405
8417
|
if (typeof g[r] != "number")
|
|
@@ -8439,11 +8451,11 @@ class ou extends Y {
|
|
|
8439
8451
|
this.addEventListeners();
|
|
8440
8452
|
}
|
|
8441
8453
|
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 ?
|
|
8454
|
+
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
8455
|
return qe().domain(r).range(i ? t.wordCloud.fontSizeRange(a, e) : [4, 4]);
|
|
8444
8456
|
}
|
|
8445
8457
|
addEventListeners() {
|
|
8446
|
-
const e = this.getOptions(), { groupMapsTo: t } = e.data, n = this, s =
|
|
8458
|
+
const e = this.getOptions(), { groupMapsTo: t } = e.data, n = this, s = Sn((a) => {
|
|
8447
8459
|
const i = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
|
|
8448
8460
|
(r) => n.services.transitions.setupTransition({
|
|
8449
8461
|
transition: r,
|
|
@@ -8508,7 +8520,7 @@ class ou extends Y {
|
|
|
8508
8520
|
});
|
|
8509
8521
|
}
|
|
8510
8522
|
}
|
|
8511
|
-
class
|
|
8523
|
+
class ah extends Y {
|
|
8512
8524
|
constructor() {
|
|
8513
8525
|
super(...arguments), this.type = "geo", this.renderType = j.SVG;
|
|
8514
8526
|
}
|
|
@@ -8522,16 +8534,16 @@ class oh extends Y {
|
|
|
8522
8534
|
Object.keys(i).forEach((O) => {
|
|
8523
8535
|
typeof i[O].value == "number" ? r[O] = i[O] : l[O] = i[O];
|
|
8524
8536
|
});
|
|
8525
|
-
const c =
|
|
8537
|
+
const c = Al(a, Object.values(l)), d = Tl(a, {
|
|
8526
8538
|
// We need to specify that we are converting geometry collections
|
|
8527
8539
|
type: "GeometryCollection",
|
|
8528
8540
|
geometries: Object.values(r)
|
|
8529
|
-
}), p = s.fitSize([t, n], d), h =
|
|
8541
|
+
}), p = s.fitSize([t, n], d), h = ui().projection(p);
|
|
8530
8542
|
S.appendOrSelect(e, "g.geo").selectAll("path").data(d.features).join("path").attr("d", h);
|
|
8531
8543
|
const g = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), m = S.appendOrSelect(e, "defs");
|
|
8532
8544
|
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
8545
|
"d",
|
|
8534
|
-
|
|
8546
|
+
Hn()([
|
|
8535
8547
|
[0, 0],
|
|
8536
8548
|
[0, 10]
|
|
8537
8549
|
])
|
|
@@ -8551,25 +8563,25 @@ class oh extends Y {
|
|
|
8551
8563
|
let e = null;
|
|
8552
8564
|
switch (v(this.getOptions(), "thematic", "projection")) {
|
|
8553
8565
|
case Ze.geoEqualEarth:
|
|
8554
|
-
e =
|
|
8566
|
+
e = Ei();
|
|
8555
8567
|
break;
|
|
8556
8568
|
case Ze.geoAlbers:
|
|
8557
|
-
e =
|
|
8569
|
+
e = yi();
|
|
8558
8570
|
break;
|
|
8559
8571
|
case Ze.geoConicEqualArea:
|
|
8560
|
-
e =
|
|
8572
|
+
e = vi();
|
|
8561
8573
|
break;
|
|
8562
8574
|
case Ze.geoConicEquidistant:
|
|
8563
|
-
e =
|
|
8575
|
+
e = fi();
|
|
8564
8576
|
break;
|
|
8565
8577
|
case Ze.geoEquirectangular:
|
|
8566
|
-
e =
|
|
8578
|
+
e = mi();
|
|
8567
8579
|
break;
|
|
8568
8580
|
case Ze.geoMercator:
|
|
8569
|
-
e =
|
|
8581
|
+
e = gi();
|
|
8570
8582
|
break;
|
|
8571
8583
|
case Ze.geoNaturalEarth1:
|
|
8572
|
-
e =
|
|
8584
|
+
e = pi();
|
|
8573
8585
|
break;
|
|
8574
8586
|
default:
|
|
8575
8587
|
throw new Error("Projection is not supported.");
|
|
@@ -8577,7 +8589,7 @@ class oh extends Y {
|
|
|
8577
8589
|
return e;
|
|
8578
8590
|
}
|
|
8579
8591
|
}
|
|
8580
|
-
class
|
|
8592
|
+
class iu extends ah {
|
|
8581
8593
|
constructor() {
|
|
8582
8594
|
super(...arguments), this.type = "choropleth";
|
|
8583
8595
|
}
|
|
@@ -8596,11 +8608,11 @@ class lu extends oh {
|
|
|
8596
8608
|
const e = this, t = this.model.getCombinedData();
|
|
8597
8609
|
this.parent.selectAll("path.border").on("mouseover", function(n, s) {
|
|
8598
8610
|
const a = T(this);
|
|
8599
|
-
e.services.events.dispatchEvent(
|
|
8611
|
+
e.services.events.dispatchEvent(Pt.CHOROPLETH_MOUSEOVER, {
|
|
8600
8612
|
event: n,
|
|
8601
8613
|
element: a,
|
|
8602
8614
|
datum: t[s.properties.NAME]
|
|
8603
|
-
}), e.services.events.dispatchEvent(
|
|
8615
|
+
}), e.services.events.dispatchEvent(hn.SHOW, {
|
|
8604
8616
|
event: n,
|
|
8605
8617
|
hoveredElement: a,
|
|
8606
8618
|
items: [
|
|
@@ -8611,26 +8623,26 @@ class lu extends oh {
|
|
|
8611
8623
|
]
|
|
8612
8624
|
});
|
|
8613
8625
|
}).on("mousemove", function(n, s) {
|
|
8614
|
-
e.services.events.dispatchEvent(
|
|
8626
|
+
e.services.events.dispatchEvent(Pt.CHOROPLETH_MOUSEMOVE, {
|
|
8615
8627
|
event: n,
|
|
8616
8628
|
element: T(this),
|
|
8617
8629
|
datum: t[s.properties.NAME]
|
|
8618
|
-
}), e.services.events.dispatchEvent(
|
|
8630
|
+
}), e.services.events.dispatchEvent(hn.MOVE, {
|
|
8619
8631
|
event: n
|
|
8620
8632
|
});
|
|
8621
8633
|
}).on("click", function(n, s) {
|
|
8622
|
-
e.services.events.dispatchEvent(
|
|
8634
|
+
e.services.events.dispatchEvent(Pt.CHOROPLETH_CLICK, {
|
|
8623
8635
|
event: n,
|
|
8624
8636
|
element: T(this),
|
|
8625
8637
|
datum: t[s.properties.NAME]
|
|
8626
8638
|
});
|
|
8627
8639
|
}).on("mouseout", function(n, s) {
|
|
8628
8640
|
const a = T(this);
|
|
8629
|
-
e.services.events.dispatchEvent(
|
|
8641
|
+
e.services.events.dispatchEvent(Pt.CHOROPLETH_MOUSEOUT, {
|
|
8630
8642
|
event: n,
|
|
8631
8643
|
element: a,
|
|
8632
8644
|
datum: t[s.properties.NAME]
|
|
8633
|
-
}), e.services.events.dispatchEvent(
|
|
8645
|
+
}), e.services.events.dispatchEvent(hn.HIDE, {
|
|
8634
8646
|
event: n,
|
|
8635
8647
|
hoveredElement: a
|
|
8636
8648
|
});
|
|
@@ -8638,69 +8650,69 @@ class lu extends oh {
|
|
|
8638
8650
|
}
|
|
8639
8651
|
}
|
|
8640
8652
|
export {
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8653
|
+
Jh as $,
|
|
8654
|
+
Ca as A,
|
|
8655
|
+
Ch as B,
|
|
8656
|
+
ml as C,
|
|
8657
|
+
Mh as D,
|
|
8658
|
+
iu as E,
|
|
8659
|
+
$h as F,
|
|
8660
|
+
Sh as G,
|
|
8661
|
+
yl as H,
|
|
8662
|
+
Fh as I,
|
|
8663
|
+
zh as J,
|
|
8664
|
+
Wh as K,
|
|
8665
|
+
gl as L,
|
|
8666
|
+
Uh as M,
|
|
8667
|
+
jh as N,
|
|
8668
|
+
Xh as O,
|
|
8669
|
+
Th as P,
|
|
8670
|
+
Zh as Q,
|
|
8671
|
+
Ma as R,
|
|
8672
|
+
_h as S,
|
|
8673
|
+
Ps as T,
|
|
8674
|
+
Yh as U,
|
|
8675
|
+
Cl as V,
|
|
8676
|
+
qh as W,
|
|
8677
|
+
jn as X,
|
|
8678
|
+
Kh as Y,
|
|
8679
|
+
Ah as Z,
|
|
8680
|
+
El as _,
|
|
8681
|
+
$s as a,
|
|
8682
|
+
Qh as a0,
|
|
8683
|
+
eu as a1,
|
|
8684
|
+
tu as a2,
|
|
8685
|
+
nu as a3,
|
|
8686
|
+
su as a4,
|
|
8687
|
+
au as a5,
|
|
8688
|
+
Ns as a6,
|
|
8689
|
+
ph as a7,
|
|
8678
8690
|
Y as a8,
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8691
|
+
Er as a9,
|
|
8692
|
+
xh as b,
|
|
8693
|
+
fh as c,
|
|
8694
|
+
Dh as d,
|
|
8695
|
+
Ph as e,
|
|
8696
|
+
kh as f,
|
|
8697
|
+
Rh as g,
|
|
8698
|
+
Ih as h,
|
|
8699
|
+
Nh as i,
|
|
8700
|
+
Vh as j,
|
|
8701
|
+
Eh as k,
|
|
8702
|
+
mh as l,
|
|
8703
|
+
Hh as m,
|
|
8704
|
+
ah as n,
|
|
8705
|
+
yh as o,
|
|
8706
|
+
gh as p,
|
|
8707
|
+
vh as q,
|
|
8708
|
+
pl as r,
|
|
8709
|
+
Bh as s,
|
|
8710
|
+
Gh as t,
|
|
8711
|
+
fl as u,
|
|
8712
|
+
bh as v,
|
|
8713
|
+
Oh as w,
|
|
8714
|
+
Zn as x,
|
|
8715
|
+
Lh as y,
|
|
8716
|
+
wh as z
|
|
8705
8717
|
};
|
|
8706
|
-
//# sourceMappingURL=choropleth-
|
|
8718
|
+
//# sourceMappingURL=choropleth-C6lDAtOg.mjs.map
|