@carbon/charts 1.22.14 → 1.22.15
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/{angle-utils-oUqMSPUJ.mjs → angle-utils-1yDCWVo3.mjs} +62 -62
- package/dist/{angle-utils-oUqMSPUJ.mjs.map → angle-utils-1yDCWVo3.mjs.map} +1 -1
- package/dist/{array-CpT8VxH2.mjs → array-74GCZNYz.mjs} +2 -2
- package/dist/{array-CpT8VxH2.mjs.map → array-74GCZNYz.mjs.map} +1 -1
- package/dist/{choropleth-DveQIPGG.mjs → choropleth-G6hhqYGx.mjs} +433 -433
- package/dist/{choropleth-DveQIPGG.mjs.map → choropleth-G6hhqYGx.mjs.map} +1 -1
- package/dist/{color-scale-utils-BfTM18gQ.mjs → color-scale-utils-BW_t5gbK.mjs} +967 -966
- package/dist/{color-scale-utils-BfTM18gQ.mjs.map → color-scale-utils-BW_t5gbK.mjs.map} +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{index-fH71cv3F.mjs → index-DgnXvTcC.mjs} +42 -42
- package/dist/{index-fH71cv3F.mjs.map → index-DgnXvTcC.mjs.map} +1 -1
- package/dist/index.mjs +35 -35
- package/dist/model/index.mjs +2 -2
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.cjs +11 -11
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +11 -11
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as Hr, $ as
|
|
2
|
-
import { y as at, $ as T, N as Tt, r as Te, q as Be, L as
|
|
1
|
+
import { t as Hr, $ as al, i as rl, a0 as Br, a1 as zr, a2 as ol, a3 as ll, a4 as cl, a5 as ul, a6 as hl, a7 as Ur, a8 as va, a9 as sn, g as L, p as Kt, a as nn, C as ya, aa as xt, w as At, ab as kn, H as jt, E as Ea, ac as Fr, ad as Ls, c as dl, ae as Ee, I as hi, K as di, e as se, af as vn, ag as ge, f as ve, x as me, ah as pl, h as Ke, O as fl, ai as Re, z as Et, l as qt, aj as Gt, ak as gl, M as ml, al as Wr, y as _t, q as hn, n as Bn, am as Ps, an as vl, ao as yl, ap as pi, aq as xa, A as Le, ar as Sa, as as Xr, at as El } from "./color-scale-utils-BW_t5gbK.mjs";
|
|
2
|
+
import { y as at, $ as T, N as Tt, r as Te, q as Be, L as xl, A as te, m as nt, s as Ae, W as Je, S as Ct, e as J, Z as ze, i as Wt, f as Ta, J as $s, d as Sl, F as zn, n as Vs, H as Gs, C as Hs, p as Un, b as ba, D as Bs, U as Tl, x as Me, a0 as Fn, O as zs } from "./axis-scales-CPuwbFQf.mjs";
|
|
3
3
|
import { R as lt } from "./a11y-ePqvrObQ.mjs";
|
|
4
|
-
import { t as ns, s as D, c as Oa, e as we, f as le, h as La, g as zt, i as ss, j as
|
|
5
|
-
import { b as Yr, c as pt, a as zi, s as
|
|
6
|
-
function
|
|
4
|
+
import { t as ns, s as D, c as Oa, e as we, f as le, h as La, g as zt, i as ss, j as Qe, m as Us, k as Aa, l as Rt, n as Ma, o as bl, q as Ol, u as Hi, D as I, v as Ll, w as fi, G as wa, x as Bi, y as Al, a as Ml, p as bt, r as ka, b as wl } from "./angle-utils-1yDCWVo3.mjs";
|
|
5
|
+
import { b as Yr, c as pt, a as zi, s as kl } from "./array-74GCZNYz.mjs";
|
|
6
|
+
function Cl(i, t, e, n) {
|
|
7
7
|
for (var s = -1, a = i == null ? 0 : i.length; ++s < a; )
|
|
8
8
|
e = t(e, i[s], s, i);
|
|
9
9
|
return e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function _l(i) {
|
|
12
12
|
return function(t) {
|
|
13
13
|
return i == null ? void 0 : i[t];
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var Il = {
|
|
17
17
|
// Latin-1 Supplement block.
|
|
18
18
|
À: "A",
|
|
19
19
|
Á: "A",
|
|
@@ -206,85 +206,85 @@ var _l = {
|
|
|
206
206
|
œ: "oe",
|
|
207
207
|
ʼn: "'n",
|
|
208
208
|
ſ: "s"
|
|
209
|
-
},
|
|
210
|
-
function
|
|
211
|
-
return i = Hr(i), i && i.replace(
|
|
212
|
-
}
|
|
213
|
-
var
|
|
214
|
-
function
|
|
215
|
-
return i.match(
|
|
216
|
-
}
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
return
|
|
220
|
-
}
|
|
221
|
-
var Zr = "\\ud800-\\udfff",
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
209
|
+
}, Rl = _l(Il), Dl = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Nl = "\\u0300-\\u036f", Pl = "\\ufe20-\\ufe2f", $l = "\\u20d0-\\u20ff", Vl = Nl + Pl + $l, Gl = "[" + Vl + "]", Hl = RegExp(Gl, "g");
|
|
210
|
+
function Bl(i) {
|
|
211
|
+
return i = Hr(i), i && i.replace(Dl, Rl).replace(Hl, "");
|
|
212
|
+
}
|
|
213
|
+
var zl = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
214
|
+
function Ul(i) {
|
|
215
|
+
return i.match(zl) || [];
|
|
216
|
+
}
|
|
217
|
+
var Fl = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
218
|
+
function Wl(i) {
|
|
219
|
+
return Fl.test(i);
|
|
220
|
+
}
|
|
221
|
+
var Zr = "\\ud800-\\udfff", Xl = "\\u0300-\\u036f", Yl = "\\ufe20-\\ufe2f", Zl = "\\u20d0-\\u20ff", ql = Xl + Yl + Zl, qr = "\\u2700-\\u27bf", jr = "a-z\\xdf-\\xf6\\xf8-\\xff", jl = "\\xac\\xb1\\xd7\\xf7", Kl = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Jl = "\\u2000-\\u206f", Ql = " \\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", Kr = "A-Z\\xc0-\\xd6\\xd8-\\xde", tc = "\\ufe0e\\ufe0f", Jr = jl + Kl + Jl + Ql, Qr = "['’]", Ca = "[" + Jr + "]", ec = "[" + ql + "]", to = "\\d+", nc = "[" + qr + "]", eo = "[" + jr + "]", no = "[^" + Zr + Jr + to + qr + jr + Kr + "]", sc = "\\ud83c[\\udffb-\\udfff]", ic = "(?:" + ec + "|" + sc + ")", ac = "[^" + Zr + "]", so = "(?:\\ud83c[\\udde6-\\uddff]){2}", io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ze = "[" + Kr + "]", rc = "\\u200d", _a = "(?:" + eo + "|" + no + ")", oc = "(?:" + Ze + "|" + no + ")", Ia = "(?:" + Qr + "(?:d|ll|m|re|s|t|ve))?", Ra = "(?:" + Qr + "(?:D|LL|M|RE|S|T|VE))?", ao = ic + "?", ro = "[" + tc + "]?", lc = "(?:" + rc + "(?:" + [ac, so, io].join("|") + ")" + ro + ao + ")*", cc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", uc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", hc = ro + ao + lc, dc = "(?:" + [nc, so, io].join("|") + ")" + hc, pc = RegExp([
|
|
222
|
+
Ze + "?" + eo + "+" + Ia + "(?=" + [Ca, Ze, "$"].join("|") + ")",
|
|
223
|
+
oc + "+" + Ra + "(?=" + [Ca, Ze + _a, "$"].join("|") + ")",
|
|
224
|
+
Ze + "?" + _a + "+" + Ia,
|
|
225
|
+
Ze + "+" + Ra,
|
|
226
|
+
uc,
|
|
226
227
|
cc,
|
|
227
|
-
lc,
|
|
228
228
|
to,
|
|
229
|
-
|
|
229
|
+
dc
|
|
230
230
|
].join("|"), "g");
|
|
231
|
-
function
|
|
232
|
-
return i.match(
|
|
231
|
+
function fc(i) {
|
|
232
|
+
return i.match(pc) || [];
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
return i = Hr(i), t = t, t === void 0 ?
|
|
234
|
+
function gc(i, t, e) {
|
|
235
|
+
return i = Hr(i), t = t, t === void 0 ? Wl(i) ? fc(i) : Ul(i) : i.match(t) || [];
|
|
236
236
|
}
|
|
237
|
-
var
|
|
238
|
-
function
|
|
237
|
+
var mc = "['’]", vc = RegExp(mc, "g");
|
|
238
|
+
function yc(i) {
|
|
239
239
|
return function(t) {
|
|
240
|
-
return
|
|
240
|
+
return Cl(gc(Bl(t).replace(vc, "")), i, "");
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ec(i, t, e) {
|
|
244
244
|
return i === i && (e !== void 0 && (i = i <= e ? i : e), t !== void 0 && (i = i >= t ? i : t)), i;
|
|
245
245
|
}
|
|
246
246
|
function oo(i, t, e) {
|
|
247
|
-
return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = ns(e), e = e === e ? e : 0), t !== void 0 && (t = ns(t), t = t === t ? t : 0),
|
|
247
|
+
return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = ns(e), e = e === e ? e : 0), t !== void 0 && (t = ns(t), t = t === t ? t : 0), Ec(ns(i), t, e);
|
|
248
248
|
}
|
|
249
|
-
var
|
|
250
|
-
function
|
|
249
|
+
var xc = "Expected a function";
|
|
250
|
+
function Sc(i, t, e) {
|
|
251
251
|
if (typeof i != "function")
|
|
252
|
-
throw new TypeError(
|
|
252
|
+
throw new TypeError(xc);
|
|
253
253
|
return setTimeout(function() {
|
|
254
254
|
i.apply(void 0, e);
|
|
255
255
|
}, t);
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
return
|
|
257
|
+
var Tc = al(function(i, t, e) {
|
|
258
|
+
return Sc(i, ns(t) || 0, e);
|
|
259
259
|
});
|
|
260
|
-
function
|
|
261
|
-
var e = -1, n =
|
|
260
|
+
function bc(i, t) {
|
|
261
|
+
var e = -1, n = rl(i) ? Array(i.length) : [];
|
|
262
262
|
return Yr(i, function(s, a, r) {
|
|
263
263
|
n[++e] = t(s, a, r);
|
|
264
264
|
}), n;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
var e = zr(i) ?
|
|
266
|
+
function Oc(i, t) {
|
|
267
|
+
var e = zr(i) ? ol : bc;
|
|
268
268
|
return e(i, Br(t));
|
|
269
269
|
}
|
|
270
|
-
var
|
|
271
|
-
function
|
|
272
|
-
return
|
|
270
|
+
var Lc = 1 / 0;
|
|
271
|
+
function Ac(i, t) {
|
|
272
|
+
return ll(Oc(i, t), Lc);
|
|
273
273
|
}
|
|
274
274
|
function lo(i, t) {
|
|
275
|
-
return
|
|
275
|
+
return cl(i, t);
|
|
276
276
|
}
|
|
277
|
-
var Ue =
|
|
277
|
+
var Ue = yc(function(i, t, e) {
|
|
278
278
|
return i + (e ? "-" : "") + t.toLowerCase();
|
|
279
279
|
});
|
|
280
|
-
function
|
|
280
|
+
function Mc(i, t) {
|
|
281
281
|
var e;
|
|
282
282
|
return Yr(i, function(n, s, a) {
|
|
283
283
|
return e = t(n, s, a), !e;
|
|
284
284
|
}), !!e;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
var n = zr(i) ?
|
|
286
|
+
function wc(i, t, e) {
|
|
287
|
+
var n = zr(i) ? ul : Mc;
|
|
288
288
|
return n(i, Br(t));
|
|
289
289
|
}
|
|
290
290
|
class De {
|
|
@@ -311,36 +311,36 @@ class De {
|
|
|
311
311
|
return r;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
function*
|
|
314
|
+
function* kc(i) {
|
|
315
315
|
for (const t of i)
|
|
316
316
|
yield* t;
|
|
317
317
|
}
|
|
318
318
|
function co(i) {
|
|
319
|
-
return Array.from(
|
|
319
|
+
return Array.from(kc(i));
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Cc(i) {
|
|
322
322
|
return i;
|
|
323
323
|
}
|
|
324
324
|
var is = 1, as = 2, gi = 3, yn = 4, Da = 1e-6;
|
|
325
|
-
function
|
|
325
|
+
function _c(i) {
|
|
326
326
|
return "translate(" + i + ",0)";
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ic(i) {
|
|
329
329
|
return "translate(0," + i + ")";
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Rc(i) {
|
|
332
332
|
return (t) => +i(t);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Dc(i, t) {
|
|
335
335
|
return t = Math.max(0, i.bandwidth() - t * 2) / 2, i.round() && (t = Math.round(t)), (e) => +i(e) + t;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Nc() {
|
|
338
338
|
return !this.__axis;
|
|
339
339
|
}
|
|
340
340
|
function As(i, t) {
|
|
341
|
-
var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === yn ? -1 : 1, h = i === yn || i === as ? "x" : "y", d = i === is || i === gi ?
|
|
341
|
+
var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === yn ? -1 : 1, h = i === yn || i === as ? "x" : "y", d = i === is || i === gi ? _c : Ic;
|
|
342
342
|
function u(p) {
|
|
343
|
-
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) :
|
|
343
|
+
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : Cc), m = Math.max(a, 0) + o, y = t.range(), S = +y[0] + c, v = +y[y.length - 1] + c, E = (t.bandwidth ? Dc : Rc)(t.copy(), c), x = p.selection ? p.selection() : p, b = x.selectAll(".domain").data([null]), _ = x.selectAll(".tick").data(f, t).order(), C = _.exit(), G = _.enter().append("g").attr("class", "tick"), R = _.select("line"), A = _.select("text");
|
|
344
344
|
b = b.merge(b.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), _ = _.merge(G), R = R.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", i === is ? "0em" : i === gi ? "0.71em" : "0.32em")), p !== x && (b = b.transition(p), _ = _.transition(p), R = R.transition(p), A = A.transition(p), C = C.transition(p).attr("opacity", Da).attr("transform", function(H) {
|
|
345
345
|
return isFinite(H = E(H)) ? d(H + c) : this.getAttribute("transform");
|
|
346
346
|
}), G.attr("opacity", Da).attr("transform", function(H) {
|
|
@@ -348,7 +348,7 @@ function As(i, t) {
|
|
|
348
348
|
return d((N && isFinite(N = N(H)) ? N : E(H)) + c);
|
|
349
349
|
})), C.remove(), b.attr("d", i === yn || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + v + "H" + l * r : "M" + c + "," + S + "V" + v : r ? "M" + S + "," + l * r + "V" + c + "H" + v + "V" + l * r : "M" + S + "," + c + "H" + v), _.attr("opacity", 1).attr("transform", function(H) {
|
|
350
350
|
return d(E(H) + c);
|
|
351
|
-
}), R.attr(h + "2", l * a), A.attr(h, l * m).text(g), x.filter(
|
|
351
|
+
}), R.attr(h + "2", l * a), A.attr(h, l * m).text(g), x.filter(Nc).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", i === as ? "start" : i === yn ? "end" : "middle"), x.each(function() {
|
|
352
352
|
this.__axis = E;
|
|
353
353
|
});
|
|
354
354
|
}
|
|
@@ -374,10 +374,10 @@ function As(i, t) {
|
|
|
374
374
|
return arguments.length ? (c = +p, u) : c;
|
|
375
375
|
}, u;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Pc(i) {
|
|
378
378
|
return As(is, i);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function $c(i) {
|
|
381
381
|
return As(as, i);
|
|
382
382
|
}
|
|
383
383
|
function Ui(i) {
|
|
@@ -390,22 +390,22 @@ const mi = { capture: !0, passive: !1 };
|
|
|
390
390
|
function vi(i) {
|
|
391
391
|
i.preventDefault(), i.stopImmediatePropagation();
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Vc(i) {
|
|
394
394
|
var t = i.document.documentElement, e = D(i).on("dragstart.drag", vi, mi);
|
|
395
395
|
"onselectstart" in t ? e.on("selectstart.drag", vi, mi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Gc(i, t) {
|
|
398
398
|
var e = i.document.documentElement, n = D(i).on("dragstart.drag", null);
|
|
399
399
|
t && (n.on("click.drag", vi, mi), setTimeout(function() {
|
|
400
400
|
n.on("click.drag", null);
|
|
401
401
|
}, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Hc(i, t) {
|
|
404
404
|
for (var e = new Array(t), n = 0; n < t; ++n) e[n] = i(n / (t - 1));
|
|
405
405
|
return e;
|
|
406
406
|
}
|
|
407
|
-
const
|
|
408
|
-
function
|
|
407
|
+
const Bc = (i) => +i, Fs = (i) => () => i;
|
|
408
|
+
function zc(i, {
|
|
409
409
|
sourceEvent: t,
|
|
410
410
|
target: e,
|
|
411
411
|
selection: n,
|
|
@@ -421,7 +421,7 @@ function Bc(i, {
|
|
|
421
421
|
_: { value: a }
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Uc(i) {
|
|
425
425
|
i.stopImmediatePropagation();
|
|
426
426
|
}
|
|
427
427
|
function Ws(i) {
|
|
@@ -478,7 +478,7 @@ var rs = {
|
|
|
478
478
|
ne: "se",
|
|
479
479
|
se: "ne",
|
|
480
480
|
sw: "nw"
|
|
481
|
-
},
|
|
481
|
+
}, Fc = {
|
|
482
482
|
overlay: 1,
|
|
483
483
|
selection: 1,
|
|
484
484
|
n: null,
|
|
@@ -489,7 +489,7 @@ var rs = {
|
|
|
489
489
|
ne: 1,
|
|
490
490
|
se: 1,
|
|
491
491
|
sw: -1
|
|
492
|
-
},
|
|
492
|
+
}, Wc = {
|
|
493
493
|
overlay: 1,
|
|
494
494
|
selection: 1,
|
|
495
495
|
n: -1,
|
|
@@ -504,28 +504,28 @@ var rs = {
|
|
|
504
504
|
function hs(i) {
|
|
505
505
|
return { type: i };
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Xc(i) {
|
|
508
508
|
return !i.ctrlKey && !i.button;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Yc() {
|
|
511
511
|
var i = this.ownerSVGElement || this;
|
|
512
512
|
return i.hasAttribute("viewBox") ? (i = i.viewBox.baseVal, [[i.x, i.y], [i.x + i.width, i.y + i.height]]) : [[0, 0], [i.width.baseVal.value, i.height.baseVal.value]];
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Zc() {
|
|
515
515
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
516
516
|
}
|
|
517
517
|
function Zs(i) {
|
|
518
518
|
for (; !i.__brush; ) if (!(i = i.parentNode)) return;
|
|
519
519
|
return i.__brush;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function qc(i) {
|
|
522
522
|
return i[0][0] === i[1][0] || i[0][1] === i[1][1];
|
|
523
523
|
}
|
|
524
524
|
function ho() {
|
|
525
|
-
return
|
|
525
|
+
return jc(rs);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
var t =
|
|
527
|
+
function jc(i) {
|
|
528
|
+
var t = Yc, e = Xc, n = Zc, s = !0, a = hl("start", "brush", "end"), r = 6, o;
|
|
529
529
|
function c(m) {
|
|
530
530
|
var y = m.property("__brush", g).selectAll(".overlay").data([hs("overlay")]);
|
|
531
531
|
y.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", fe.overlay).merge(y).each(function() {
|
|
@@ -596,7 +596,7 @@ function qc(i) {
|
|
|
596
596
|
a.call(
|
|
597
597
|
m,
|
|
598
598
|
this.that,
|
|
599
|
-
new
|
|
599
|
+
new zc(m, {
|
|
600
600
|
sourceEvent: y,
|
|
601
601
|
target: c,
|
|
602
602
|
selection: i.output(this.state.selection),
|
|
@@ -609,9 +609,9 @@ function qc(i) {
|
|
|
609
609
|
};
|
|
610
610
|
function u(m) {
|
|
611
611
|
if (o && !m.touches || !e.apply(this, arguments)) return;
|
|
612
|
-
var y = this, S = m.target.__data__.type, v = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Na : s && m.altKey ? We : Fe, E = i === Ys ? null :
|
|
612
|
+
var y = this, S = m.target.__data__.type, v = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Na : s && m.altKey ? We : Fe, E = i === Ys ? null : Fc[S], x = i === rs ? null : Wc[S], b = Zs(y), _ = b.extent, C = b.selection, G = _[0][0], R, A, H = _[0][1], N, M, O = _[1][0], P, $, k = _[1][1], V, q, W = 0, F = 0, Z, rt = E && x && s && m.shiftKey, j, Y, K = Array.from(m.touches || [m], (et) => {
|
|
613
613
|
const yt = et.identifier;
|
|
614
|
-
return et =
|
|
614
|
+
return et = sn(et, y), et.point0 = et.slice(), et.identifier = yt, et;
|
|
615
615
|
});
|
|
616
616
|
va(y);
|
|
617
617
|
var ot = h(y, arguments, !0).beforestart();
|
|
@@ -633,13 +633,13 @@ function qc(i) {
|
|
|
633
633
|
ot.moved = B, ot.ended = U;
|
|
634
634
|
else {
|
|
635
635
|
var it = D(m.view).on("mousemove.brush", B, !0).on("mouseup.brush", U, !0);
|
|
636
|
-
s && it.on("keydown.brush", Mt, !0).on("keyup.brush", Se, !0),
|
|
636
|
+
s && it.on("keydown.brush", Mt, !0).on("keyup.brush", Se, !0), Vc(m.view);
|
|
637
637
|
}
|
|
638
638
|
l.call(y), ot.start(m, v.name);
|
|
639
639
|
function B(et) {
|
|
640
640
|
for (const yt of et.changedTouches || [et])
|
|
641
641
|
for (const Zt of K)
|
|
642
|
-
Zt.identifier === yt.identifier && (Zt.cur =
|
|
642
|
+
Zt.identifier === yt.identifier && (Zt.cur = sn(yt, y));
|
|
643
643
|
if (rt && !j && !Y && K.length === 1) {
|
|
644
644
|
const yt = K[0];
|
|
645
645
|
Pa(yt.cur[0] - yt[0]) > Pa(yt.cur[1] - yt[1]) ? Y = !0 : j = !0;
|
|
@@ -669,14 +669,14 @@ function qc(i) {
|
|
|
669
669
|
$ < A && (E *= -1, Ft = R, R = P, P = Ft, Ft = A, A = $, $ = Ft, S in Ga && st.attr("cursor", fe[S = Ga[S]])), q < M && (x *= -1, Ft = N, N = V, V = Ft, Ft = M, M = q, q = Ft, S in Ha && st.attr("cursor", fe[S = Ha[S]])), b.selection && (C = b.selection), j && (A = C[0][0], $ = C[1][0]), Y && (M = C[0][1], q = C[1][1]), (C[0][0] !== A || C[0][1] !== M || C[1][0] !== $ || C[1][1] !== q) && (b.selection = [[A, M], [$, q]], l.call(y), ot.brush(et, v.name));
|
|
670
670
|
}
|
|
671
671
|
function U(et) {
|
|
672
|
-
if (
|
|
672
|
+
if (Uc(et), et.touches) {
|
|
673
673
|
if (et.touches.length) return;
|
|
674
674
|
o && clearTimeout(o), o = setTimeout(function() {
|
|
675
675
|
o = null;
|
|
676
676
|
}, 500);
|
|
677
677
|
} else
|
|
678
|
-
|
|
679
|
-
ct.attr("pointer-events", "all"), st.attr("cursor", fe.overlay), b.selection && (C = b.selection),
|
|
678
|
+
Gc(et.view, Z), it.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
|
|
679
|
+
ct.attr("pointer-events", "all"), st.attr("cursor", fe.overlay), b.selection && (C = b.selection), qc(C) && (b.selection = null, l.call(y)), ot.end(et, v.name);
|
|
680
680
|
}
|
|
681
681
|
function Mt(et) {
|
|
682
682
|
switch (et.keyCode) {
|
|
@@ -742,13 +742,13 @@ function qc(i) {
|
|
|
742
742
|
return m === a ? c : m;
|
|
743
743
|
}, c;
|
|
744
744
|
}
|
|
745
|
-
const yi = Math.PI, Ei = 2 * yi, ke = 1e-6,
|
|
745
|
+
const yi = Math.PI, Ei = 2 * yi, ke = 1e-6, Kc = Ei - ke;
|
|
746
746
|
function po(i) {
|
|
747
747
|
this._ += i[0];
|
|
748
748
|
for (let t = 1, e = i.length; t < e; ++t)
|
|
749
749
|
this._ += arguments[t] + i[t];
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Jc(i) {
|
|
752
752
|
let t = Math.floor(i);
|
|
753
753
|
if (!(t >= 0)) throw new Error(`invalid digits: ${i}`);
|
|
754
754
|
if (t > 15) return po;
|
|
@@ -762,7 +762,7 @@ function Kc(i) {
|
|
|
762
762
|
let Fi = class {
|
|
763
763
|
constructor(t) {
|
|
764
764
|
this._x0 = this._y0 = // start of current subpath
|
|
765
|
-
this._x1 = this._y1 = null, this._ = "", this._append = t == null ? po :
|
|
765
|
+
this._x1 = this._y1 = null, this._ = "", this._append = t == null ? po : Jc(t);
|
|
766
766
|
}
|
|
767
767
|
moveTo(t, e) {
|
|
768
768
|
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}`;
|
|
@@ -794,7 +794,7 @@ let Fi = class {
|
|
|
794
794
|
arc(t, e, n, s, a, r) {
|
|
795
795
|
if (t = +t, e = +e, n = +n, r = !!r, n < 0) throw new Error(`negative radius: ${n}`);
|
|
796
796
|
let o = n * Math.cos(s), c = n * Math.sin(s), l = t + o, h = e + c, d = 1 ^ r, u = r ? s - a : a - s;
|
|
797
|
-
this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > ke || Math.abs(this._y1 - h) > ke) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Ei + Ei), u >
|
|
797
|
+
this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > ke || Math.abs(this._y1 - h) > ke) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Ei + Ei), u > Kc ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > ke && this._append`A${n},${n},0,${+(u >= yi)},${d},${this._x1 = t + n * Math.cos(a)},${this._y1 = e + n * Math.sin(a)}`);
|
|
798
798
|
}
|
|
799
799
|
rect(t, e, n, s) {
|
|
800
800
|
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}h${n = +n}v${+s}h${-n}Z`;
|
|
@@ -807,7 +807,7 @@ function Ms() {
|
|
|
807
807
|
return new Fi();
|
|
808
808
|
}
|
|
809
809
|
Ms.prototype = Fi.prototype;
|
|
810
|
-
var
|
|
810
|
+
var gt = 1e-6, fo = 1e-12, ht = Math.PI, Ut = ht / 2, Ba = ht / 4, Xt = ht * 2, Vt = 180 / ht, Ot = ht / 180, mt = Math.abs, go = Math.atan, Ne = Math.atan2, vt = Math.cos, Qc = Math.exp, tu = Math.log, ft = Math.sin, be = Math.sign || function(i) {
|
|
811
811
|
return i > 0 ? 1 : i < 0 ? -1 : 0;
|
|
812
812
|
}, ae = Math.sqrt, eu = Math.tan;
|
|
813
813
|
function nu(i) {
|
|
@@ -864,17 +864,17 @@ function Fa(i, t) {
|
|
|
864
864
|
for (t.polygonStart(); ++e < n; ) xi(i[e], t, 1);
|
|
865
865
|
t.polygonEnd();
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function qe(i, t) {
|
|
868
868
|
i && za.hasOwnProperty(i.type) ? za[i.type](i, t) : ds(i, t);
|
|
869
869
|
}
|
|
870
870
|
function Si(i) {
|
|
871
871
|
return [Ne(i[1], i[0]), xe(i[2])];
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
var t = i[0], e = i[1], n =
|
|
875
|
-
return [n *
|
|
873
|
+
function an(i) {
|
|
874
|
+
var t = i[0], e = i[1], n = vt(e);
|
|
875
|
+
return [n * vt(t), n * ft(t), ft(e)];
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Wn(i, t) {
|
|
878
878
|
return i[0] * t[0] + i[1] * t[1] + i[2] * t[2];
|
|
879
879
|
}
|
|
880
880
|
function ps(i, t) {
|
|
@@ -883,7 +883,7 @@ function ps(i, t) {
|
|
|
883
883
|
function qs(i, t) {
|
|
884
884
|
i[0] += t[0], i[1] += t[1], i[2] += t[2];
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function Xn(i, t) {
|
|
887
887
|
return [i[0] * t, i[1] * t, i[2] * t];
|
|
888
888
|
}
|
|
889
889
|
function Ti(i) {
|
|
@@ -899,15 +899,15 @@ function bi(i, t) {
|
|
|
899
899
|
}), e;
|
|
900
900
|
}
|
|
901
901
|
function Oi(i, t) {
|
|
902
|
-
return
|
|
902
|
+
return mt(i) > ht && (i -= Math.round(i / Xt) * Xt), [i, t];
|
|
903
903
|
}
|
|
904
904
|
Oi.invert = Oi;
|
|
905
|
-
function
|
|
905
|
+
function mo(i, t, e) {
|
|
906
906
|
return (i %= Xt) ? t || e ? bi(Xa(i), Ya(t, e)) : Xa(i) : t || e ? Ya(t, e) : Oi;
|
|
907
907
|
}
|
|
908
908
|
function Wa(i) {
|
|
909
909
|
return function(t, e) {
|
|
910
|
-
return t += i,
|
|
910
|
+
return t += i, mt(t) > ht && (t -= Math.round(t / Xt) * Xt), [t, e];
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
913
|
function Xa(i) {
|
|
@@ -915,16 +915,16 @@ function Xa(i) {
|
|
|
915
915
|
return t.invert = Wa(-i), t;
|
|
916
916
|
}
|
|
917
917
|
function Ya(i, t) {
|
|
918
|
-
var e =
|
|
918
|
+
var e = vt(i), n = ft(i), s = vt(t), a = ft(t);
|
|
919
919
|
function r(o, c) {
|
|
920
|
-
var l =
|
|
920
|
+
var l = vt(c), h = vt(o) * l, d = ft(o) * l, u = ft(c), p = u * e + h * n;
|
|
921
921
|
return [
|
|
922
922
|
Ne(d * s - p * a, h * e - u * n),
|
|
923
923
|
xe(p * s + d * a)
|
|
924
924
|
];
|
|
925
925
|
}
|
|
926
926
|
return r.invert = function(o, c) {
|
|
927
|
-
var l =
|
|
927
|
+
var l = vt(c), h = vt(o) * l, d = ft(o) * l, u = ft(c), p = u * s - d * a;
|
|
928
928
|
return [
|
|
929
929
|
Ne(d * s + u * a, h * e + p * n),
|
|
930
930
|
xe(p * e - h * n)
|
|
@@ -932,7 +932,7 @@ function Ya(i, t) {
|
|
|
932
932
|
}, r;
|
|
933
933
|
}
|
|
934
934
|
function su(i) {
|
|
935
|
-
i =
|
|
935
|
+
i = mo(i[0] * Ot, i[1] * Ot, i.length > 2 ? i[2] * Ot : 0);
|
|
936
936
|
function t(e) {
|
|
937
937
|
return e = i(e[0] * Ot, e[1] * Ot), e[0] *= Vt, e[1] *= Vt, e;
|
|
938
938
|
}
|
|
@@ -942,18 +942,18 @@ function su(i) {
|
|
|
942
942
|
}
|
|
943
943
|
function iu(i, t, e, n, s, a) {
|
|
944
944
|
if (e) {
|
|
945
|
-
var r =
|
|
945
|
+
var r = vt(t), o = ft(t), c = n * e;
|
|
946
946
|
s == null ? (s = t + n * Xt, a = t - c / 2) : (s = Za(r, s), a = Za(r, a), (n > 0 ? s < a : s > a) && (s += n * Xt));
|
|
947
947
|
for (var l, h = s; n > 0 ? h > a : h < a; h -= c)
|
|
948
|
-
l = Si([r, -o *
|
|
948
|
+
l = Si([r, -o * vt(h), -o * ft(h)]), i.point(l[0], l[1]);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
function Za(i, t) {
|
|
952
|
-
t =
|
|
952
|
+
t = an(t), t[0] -= i, Ti(t);
|
|
953
953
|
var e = nu(-t[1]);
|
|
954
|
-
return ((-t[2] < 0 ? -e : e) + Xt -
|
|
954
|
+
return ((-t[2] < 0 ? -e : e) + Xt - gt) % Xt;
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function vo() {
|
|
957
957
|
var i = [], t;
|
|
958
958
|
return {
|
|
959
959
|
point: function(e, n, s) {
|
|
@@ -973,12 +973,12 @@ function mo() {
|
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
975
|
function os(i, t) {
|
|
976
|
-
return
|
|
976
|
+
return mt(i[0] - t[0]) < gt && mt(i[1] - t[1]) < gt;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Yn(i, t, e, n) {
|
|
979
979
|
this.x = i, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function yo(i, t, e, n, s) {
|
|
982
982
|
var a = [], r = [], o, c;
|
|
983
983
|
if (i.forEach(function(f) {
|
|
984
984
|
if (!((g = f.length - 1) <= 0)) {
|
|
@@ -989,9 +989,9 @@ function vo(i, t, e, n, s) {
|
|
|
989
989
|
s.lineEnd();
|
|
990
990
|
return;
|
|
991
991
|
}
|
|
992
|
-
y[0] += 2 *
|
|
992
|
+
y[0] += 2 * gt;
|
|
993
993
|
}
|
|
994
|
-
a.push(S = new
|
|
994
|
+
a.push(S = new Yn(m, f, null, !0)), r.push(S.o = new Yn(m, null, S, !1)), a.push(S = new Yn(y, f, null, !1)), r.push(S.o = new Yn(y, null, S, !0));
|
|
995
995
|
}
|
|
996
996
|
}), !!a.length) {
|
|
997
997
|
for (r.sort(t), qa(a), qa(r), o = 0, c = r.length; o < c; ++o)
|
|
@@ -1027,17 +1027,17 @@ function qa(i) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
function js(i) {
|
|
1030
|
-
return
|
|
1030
|
+
return mt(i[0]) <= ht ? i[0] : be(i[0]) * ((mt(i[0]) + ht) % Xt - ht);
|
|
1031
1031
|
}
|
|
1032
1032
|
function au(i, t) {
|
|
1033
|
-
var e = js(t), n = t[1], s = ft(n), a = [ft(e), -
|
|
1034
|
-
s === 1 ? n = Ut +
|
|
1033
|
+
var e = js(t), n = t[1], s = ft(n), a = [ft(e), -vt(e), 0], r = 0, o = 0, c = new De();
|
|
1034
|
+
s === 1 ? n = Ut + gt : s === -1 && (n = -Ut - gt);
|
|
1035
1035
|
for (var l = 0, h = i.length; l < h; ++l)
|
|
1036
1036
|
if (u = (d = i[l]).length)
|
|
1037
|
-
for (var d, u, p = d[u - 1], f = js(p), g = p[1] / 2 + Ba, m = ft(g), y =
|
|
1038
|
-
var v = d[S], E = js(v), x = v[1] / 2 + Ba, b = ft(x), _ =
|
|
1039
|
-
if (c.add(Ne(H * G * ft(R), y * _ + H *
|
|
1040
|
-
var N = ps(
|
|
1037
|
+
for (var d, u, p = d[u - 1], f = js(p), g = p[1] / 2 + Ba, m = ft(g), y = vt(g), S = 0; S < u; ++S, f = E, m = b, y = _, p = v) {
|
|
1038
|
+
var v = d[S], E = js(v), x = v[1] / 2 + Ba, b = ft(x), _ = vt(x), C = E - f, G = C >= 0 ? 1 : -1, R = G * C, A = R > ht, H = m * b;
|
|
1039
|
+
if (c.add(Ne(H * G * ft(R), y * _ + H * vt(R))), r += A ? C + G * Xt : C, A ^ f >= e ^ E >= e) {
|
|
1040
|
+
var N = ps(an(p), an(v));
|
|
1041
1041
|
Ti(N);
|
|
1042
1042
|
var M = ps(a, N);
|
|
1043
1043
|
Ti(M);
|
|
@@ -1045,11 +1045,11 @@ function au(i, t) {
|
|
|
1045
1045
|
(n > O || n === O && (N[0] || N[1])) && (o += A ^ C >= 0 ? 1 : -1);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
return (r < -
|
|
1048
|
+
return (r < -gt || r < gt && c < -fo) ^ o & 1;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Eo(i, t, e, n) {
|
|
1051
1051
|
return function(s) {
|
|
1052
|
-
var a = t(s), r =
|
|
1052
|
+
var a = t(s), r = vo(), o = t(r), c = !1, l, h, d, u = {
|
|
1053
1053
|
point: p,
|
|
1054
1054
|
lineStart: g,
|
|
1055
1055
|
lineEnd: m,
|
|
@@ -1059,7 +1059,7 @@ function yo(i, t, e, n) {
|
|
|
1059
1059
|
polygonEnd: function() {
|
|
1060
1060
|
u.point = p, u.lineStart = g, u.lineEnd = m, h = co(h);
|
|
1061
1061
|
var E = au(l, n);
|
|
1062
|
-
h.length ? (c || (s.polygonStart(), c = !0),
|
|
1062
|
+
h.length ? (c || (s.polygonStart(), c = !0), yo(h, ou, E, e, s)) : E && (c || (s.polygonStart(), c = !0), s.lineStart(), e(null, null, 1, s), s.lineEnd()), c && (s.polygonEnd(), c = !1), h = l = null;
|
|
1063
1063
|
},
|
|
1064
1064
|
sphere: function() {
|
|
1065
1065
|
s.polygonStart(), s.lineStart(), e(null, null, 1, s), s.lineEnd(), s.polygonEnd();
|
|
@@ -1104,9 +1104,9 @@ function ru(i) {
|
|
|
1104
1104
|
return i.length > 1;
|
|
1105
1105
|
}
|
|
1106
1106
|
function ou(i, t) {
|
|
1107
|
-
return ((i = i.x)[0] < 0 ? i[1] - Ut -
|
|
1107
|
+
return ((i = i.x)[0] < 0 ? i[1] - Ut - gt : Ut - i[1]) - ((t = t.x)[0] < 0 ? t[1] - Ut - gt : Ut - t[1]);
|
|
1108
1108
|
}
|
|
1109
|
-
const ja =
|
|
1109
|
+
const ja = Eo(
|
|
1110
1110
|
function() {
|
|
1111
1111
|
return !0;
|
|
1112
1112
|
},
|
|
@@ -1121,8 +1121,8 @@ function lu(i) {
|
|
|
1121
1121
|
i.lineStart(), s = 1;
|
|
1122
1122
|
},
|
|
1123
1123
|
point: function(a, r) {
|
|
1124
|
-
var o = a > 0 ? ht : -ht, c =
|
|
1125
|
-
|
|
1124
|
+
var o = a > 0 ? ht : -ht, c = mt(a - t);
|
|
1125
|
+
mt(c - ht) < gt ? (i.point(t, e = (e + r) / 2 > 0 ? Ut : -Ut), i.point(n, e), i.lineEnd(), i.lineStart(), i.point(o, e), i.point(a, e), s = 0) : n !== o && c >= ht && (mt(t - n) < gt && (t -= n * gt), mt(a - o) < gt && (a -= o * gt), e = cu(t, e, a, r), i.point(n, e), i.lineEnd(), i.lineStart(), i.point(o, e), s = 0), i.point(t = a, e = r), n = o;
|
|
1126
1126
|
},
|
|
1127
1127
|
lineEnd: function() {
|
|
1128
1128
|
i.lineEnd(), t = e = NaN;
|
|
@@ -1134,25 +1134,25 @@ function lu(i) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
function cu(i, t, e, n) {
|
|
1136
1136
|
var s, a, r = ft(i - e);
|
|
1137
|
-
return
|
|
1137
|
+
return mt(r) > gt ? go((ft(t) * (a = vt(n)) * ft(e) - ft(n) * (s = vt(t)) * ft(i)) / (s * a * r)) : (t + n) / 2;
|
|
1138
1138
|
}
|
|
1139
1139
|
function uu(i, t, e, n) {
|
|
1140
1140
|
var s;
|
|
1141
1141
|
if (i == null)
|
|
1142
1142
|
s = e * Ut, n.point(-ht, s), n.point(0, s), n.point(ht, s), n.point(ht, 0), n.point(ht, -s), n.point(0, -s), n.point(-ht, -s), n.point(-ht, 0), n.point(-ht, s);
|
|
1143
|
-
else if (
|
|
1143
|
+
else if (mt(i[0] - t[0]) > gt) {
|
|
1144
1144
|
var a = i[0] < t[0] ? ht : -ht;
|
|
1145
1145
|
s = e * a / 2, n.point(-a, s), n.point(0, s), n.point(a, s);
|
|
1146
1146
|
} else
|
|
1147
1147
|
n.point(t[0], t[1]);
|
|
1148
1148
|
}
|
|
1149
1149
|
function hu(i) {
|
|
1150
|
-
var t =
|
|
1150
|
+
var t = vt(i), e = 2 * Ot, n = t > 0, s = mt(t) > gt;
|
|
1151
1151
|
function a(h, d, u, p) {
|
|
1152
1152
|
iu(p, i, e, u, h, d);
|
|
1153
1153
|
}
|
|
1154
1154
|
function r(h, d) {
|
|
1155
|
-
return
|
|
1155
|
+
return vt(h) * vt(d) > t;
|
|
1156
1156
|
}
|
|
1157
1157
|
function o(h) {
|
|
1158
1158
|
var d, u, p, f, g;
|
|
@@ -1181,19 +1181,19 @@ function hu(i) {
|
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
function c(h, d, u) {
|
|
1184
|
-
var p =
|
|
1184
|
+
var p = an(h), f = an(d), g = [1, 0, 0], m = ps(p, f), y = Wn(m, m), S = m[0], v = y - S * S;
|
|
1185
1185
|
if (!v) return !u && h;
|
|
1186
|
-
var E = t * y / v, x = -t * S / v, b = ps(g, m), _ =
|
|
1186
|
+
var E = t * y / v, x = -t * S / v, b = ps(g, m), _ = Xn(g, E), C = Xn(m, x);
|
|
1187
1187
|
qs(_, C);
|
|
1188
|
-
var G = b, R =
|
|
1188
|
+
var G = b, R = Wn(_, G), A = Wn(G, G), H = R * R - A * (Wn(_, _) - 1);
|
|
1189
1189
|
if (!(H < 0)) {
|
|
1190
|
-
var N = ae(H), M =
|
|
1190
|
+
var N = ae(H), M = Xn(G, (-R - N) / A);
|
|
1191
1191
|
if (qs(M, _), M = Si(M), !u) return M;
|
|
1192
1192
|
var O = h[0], P = d[0], $ = h[1], k = d[1], V;
|
|
1193
1193
|
P < O && (V = O, O = P, P = V);
|
|
1194
|
-
var q = P - O, W =
|
|
1195
|
-
if (!W && k < $ && (V = $, $ = k, k = V), F ? W ? $ + k > 0 ^ M[1] < (
|
|
1196
|
-
var Z =
|
|
1194
|
+
var q = P - O, W = mt(q - ht) < gt, F = W || q < gt;
|
|
1195
|
+
if (!W && k < $ && (V = $, $ = k, k = V), F ? W ? $ + k > 0 ^ M[1] < (mt(M[0] - O) < gt ? $ : k) : $ <= M[1] && M[1] <= k : q > ht ^ (O <= M[0] && M[0] <= P)) {
|
|
1196
|
+
var Z = Xn(G, (-R + N) / A);
|
|
1197
1197
|
return qs(Z, _), [M, Si(Z)];
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
@@ -1202,7 +1202,7 @@ function hu(i) {
|
|
|
1202
1202
|
var u = n ? i : ht - i, p = 0;
|
|
1203
1203
|
return h < -u ? p |= 1 : h > u && (p |= 2), d < -u ? p |= 4 : d > u && (p |= 8), p;
|
|
1204
1204
|
}
|
|
1205
|
-
return
|
|
1205
|
+
return Eo(r, o, a, n ? [0, -i] : [-ht, i - ht]);
|
|
1206
1206
|
}
|
|
1207
1207
|
function du(i, t, e, n, s, a) {
|
|
1208
1208
|
var r = i[0], o = i[1], c = t[0], l = t[1], h = 0, d = 1, u = c - r, p = l - o, f;
|
|
@@ -1244,7 +1244,7 @@ function du(i, t, e, n, s, a) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
var
|
|
1247
|
+
var En = 1e9, Zn = -En;
|
|
1248
1248
|
function pu(i, t, e, n) {
|
|
1249
1249
|
function s(l, h) {
|
|
1250
1250
|
return i <= l && l <= e && t <= h && h <= n;
|
|
@@ -1259,7 +1259,7 @@ function pu(i, t, e, n) {
|
|
|
1259
1259
|
u.point(h[0], h[1]);
|
|
1260
1260
|
}
|
|
1261
1261
|
function r(l, h) {
|
|
1262
|
-
return
|
|
1262
|
+
return mt(l[0] - i) < gt ? h > 0 ? 0 : 3 : mt(l[0] - e) < gt ? h > 0 ? 2 : 1 : mt(l[1] - t) < gt ? h > 0 ? 1 : 0 : h > 0 ? 3 : 2;
|
|
1263
1263
|
}
|
|
1264
1264
|
function o(l, h) {
|
|
1265
1265
|
return c(l.x, h.x);
|
|
@@ -1269,7 +1269,7 @@ function pu(i, t, e, n) {
|
|
|
1269
1269
|
return d !== u ? d - u : d === 0 ? h[1] - l[1] : d === 1 ? l[0] - h[0] : d === 2 ? l[1] - h[1] : h[0] - l[0];
|
|
1270
1270
|
}
|
|
1271
1271
|
return function(l) {
|
|
1272
|
-
var h = l, d =
|
|
1272
|
+
var h = l, d = vo(), u, p, f, g, m, y, S, v, E, x, b, _ = {
|
|
1273
1273
|
point: C,
|
|
1274
1274
|
lineStart: H,
|
|
1275
1275
|
lineEnd: N,
|
|
@@ -1290,7 +1290,7 @@ function pu(i, t, e, n) {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
function A() {
|
|
1292
1292
|
var O = G(), P = b && O, $ = (u = co(u)).length;
|
|
1293
|
-
(P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ &&
|
|
1293
|
+
(P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && yo(u, o, O, a, l), l.polygonEnd()), h = l, u = p = f = null;
|
|
1294
1294
|
}
|
|
1295
1295
|
function H() {
|
|
1296
1296
|
_.point = M, p && p.push(f = []), x = !0, E = !1, S = v = NaN;
|
|
@@ -1304,7 +1304,7 @@ function pu(i, t, e, n) {
|
|
|
1304
1304
|
g = O, m = P, y = $, x = !1, $ && (h.lineStart(), h.point(O, P));
|
|
1305
1305
|
else if ($ && E) h.point(O, P);
|
|
1306
1306
|
else {
|
|
1307
|
-
var k = [S = Math.max(Zn, Math.min(
|
|
1307
|
+
var k = [S = Math.max(Zn, Math.min(En, S)), v = Math.max(Zn, Math.min(En, v))], V = [O = Math.max(Zn, Math.min(En, O)), P = Math.max(Zn, Math.min(En, P))];
|
|
1308
1308
|
du(k, V, i, t, e, n) ? (E || (h.lineStart(), h.point(k[0], k[1])), h.point(V[0], V[1]), $ || h.lineEnd(), b = !1) : $ && (h.lineStart(), h.point(O, P), b = !1);
|
|
1309
1309
|
}
|
|
1310
1310
|
S = O, v = P, E = $;
|
|
@@ -1313,7 +1313,7 @@ function pu(i, t, e, n) {
|
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
1315
|
const Li = (i) => i;
|
|
1316
|
-
var Ks = new De(), Ai = new De(),
|
|
1316
|
+
var Ks = new De(), Ai = new De(), xo, So, Mi, wi, ye = {
|
|
1317
1317
|
point: Qt,
|
|
1318
1318
|
lineStart: Qt,
|
|
1319
1319
|
lineEnd: Qt,
|
|
@@ -1321,7 +1321,7 @@ var Ks = new De(), Ai = new De(), Eo, xo, Mi, wi, ye = {
|
|
|
1321
1321
|
ye.lineStart = fu, ye.lineEnd = mu;
|
|
1322
1322
|
},
|
|
1323
1323
|
polygonEnd: function() {
|
|
1324
|
-
ye.lineStart = ye.lineEnd = ye.point = Qt, Ks.add(
|
|
1324
|
+
ye.lineStart = ye.lineEnd = ye.point = Qt, Ks.add(mt(Ai)), Ai = new De();
|
|
1325
1325
|
},
|
|
1326
1326
|
result: function() {
|
|
1327
1327
|
var i = Ks / 2;
|
|
@@ -1332,29 +1332,29 @@ function fu() {
|
|
|
1332
1332
|
ye.point = gu;
|
|
1333
1333
|
}
|
|
1334
1334
|
function gu(i, t) {
|
|
1335
|
-
ye.point =
|
|
1335
|
+
ye.point = To, xo = Mi = i, So = wi = t;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function To(i, t) {
|
|
1338
1338
|
Ai.add(wi * i - Mi * t), Mi = i, wi = t;
|
|
1339
1339
|
}
|
|
1340
1340
|
function mu() {
|
|
1341
|
-
|
|
1341
|
+
To(xo, So);
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1343
|
+
var rn = 1 / 0, fs = rn, Cn = -rn, gs = Cn, ms = {
|
|
1344
1344
|
point: vu,
|
|
1345
1345
|
lineStart: Qt,
|
|
1346
1346
|
lineEnd: Qt,
|
|
1347
1347
|
polygonStart: Qt,
|
|
1348
1348
|
polygonEnd: Qt,
|
|
1349
1349
|
result: function() {
|
|
1350
|
-
var i = [[
|
|
1351
|
-
return
|
|
1350
|
+
var i = [[rn, fs], [Cn, gs]];
|
|
1351
|
+
return Cn = gs = -(fs = rn = 1 / 0), i;
|
|
1352
1352
|
}
|
|
1353
1353
|
};
|
|
1354
1354
|
function vu(i, t) {
|
|
1355
|
-
i <
|
|
1355
|
+
i < rn && (rn = i), i > Cn && (Cn = i), t < fs && (fs = t), t > gs && (gs = t);
|
|
1356
1356
|
}
|
|
1357
|
-
var ki = 0, Ci = 0,
|
|
1357
|
+
var ki = 0, Ci = 0, xn = 0, vs = 0, ys = 0, tn = 0, _i = 0, Ii = 0, Sn = 0, bo, Oo, ce, ue, Jt = {
|
|
1358
1358
|
point: Pe,
|
|
1359
1359
|
lineStart: Ka,
|
|
1360
1360
|
lineEnd: Ja,
|
|
@@ -1365,12 +1365,12 @@ var ki = 0, Ci = 0, En = 0, vs = 0, ys = 0, Qe = 0, _i = 0, Ii = 0, xn = 0, To,
|
|
|
1365
1365
|
Jt.point = Pe, Jt.lineStart = Ka, Jt.lineEnd = Ja;
|
|
1366
1366
|
},
|
|
1367
1367
|
result: function() {
|
|
1368
|
-
var i =
|
|
1369
|
-
return ki = Ci =
|
|
1368
|
+
var i = Sn ? [_i / Sn, Ii / Sn] : tn ? [vs / tn, ys / tn] : xn ? [ki / xn, Ci / xn] : [NaN, NaN];
|
|
1369
|
+
return ki = Ci = xn = vs = ys = tn = _i = Ii = Sn = 0, i;
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
1372
|
function Pe(i, t) {
|
|
1373
|
-
ki += i, Ci += t, ++
|
|
1373
|
+
ki += i, Ci += t, ++xn;
|
|
1374
1374
|
}
|
|
1375
1375
|
function Ka() {
|
|
1376
1376
|
Jt.point = yu;
|
|
@@ -1380,7 +1380,7 @@ function yu(i, t) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
function Eu(i, t) {
|
|
1382
1382
|
var e = i - ce, n = t - ue, s = ae(e * e + n * n);
|
|
1383
|
-
vs += s * (ce + i) / 2, ys += s * (ue + t) / 2,
|
|
1383
|
+
vs += s * (ce + i) / 2, ys += s * (ue + t) / 2, tn += s, Pe(ce = i, ue = t);
|
|
1384
1384
|
}
|
|
1385
1385
|
function Ja() {
|
|
1386
1386
|
Jt.point = Pe;
|
|
@@ -1389,19 +1389,19 @@ function xu() {
|
|
|
1389
1389
|
Jt.point = Tu;
|
|
1390
1390
|
}
|
|
1391
1391
|
function Su() {
|
|
1392
|
-
|
|
1392
|
+
Lo(bo, Oo);
|
|
1393
1393
|
}
|
|
1394
1394
|
function Tu(i, t) {
|
|
1395
|
-
Jt.point =
|
|
1395
|
+
Jt.point = Lo, Pe(bo = ce = i, Oo = ue = t);
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Lo(i, t) {
|
|
1398
1398
|
var e = i - ce, n = t - ue, s = ae(e * e + n * n);
|
|
1399
|
-
vs += s * (ce + i) / 2, ys += s * (ue + t) / 2,
|
|
1399
|
+
vs += s * (ce + i) / 2, ys += s * (ue + t) / 2, tn += s, s = ue * i - ce * t, _i += s * (ce + i), Ii += s * (ue + t), Sn += s * 3, Pe(ce = i, ue = t);
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Ao(i) {
|
|
1402
1402
|
this._context = i;
|
|
1403
1403
|
}
|
|
1404
|
-
|
|
1404
|
+
Ao.prototype = {
|
|
1405
1405
|
_radius: 4.5,
|
|
1406
1406
|
pointRadius: function(i) {
|
|
1407
1407
|
return this._radius = i, this;
|
|
@@ -1436,13 +1436,13 @@ Lo.prototype = {
|
|
|
1436
1436
|
},
|
|
1437
1437
|
result: Qt
|
|
1438
1438
|
};
|
|
1439
|
-
var Ri = new De(), Js,
|
|
1439
|
+
var Ri = new De(), Js, Mo, wo, Tn, bn, _n = {
|
|
1440
1440
|
point: Qt,
|
|
1441
1441
|
lineStart: function() {
|
|
1442
|
-
|
|
1442
|
+
_n.point = bu;
|
|
1443
1443
|
},
|
|
1444
1444
|
lineEnd: function() {
|
|
1445
|
-
Js &&
|
|
1445
|
+
Js && ko(Mo, wo), _n.point = Qt;
|
|
1446
1446
|
},
|
|
1447
1447
|
polygonStart: function() {
|
|
1448
1448
|
Js = !0;
|
|
@@ -1456,15 +1456,15 @@ var Ri = new De(), Js, Ao, Mo, Sn, Tn, Cn = {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
};
|
|
1458
1458
|
function bu(i, t) {
|
|
1459
|
-
|
|
1459
|
+
_n.point = ko, Mo = Tn = i, wo = bn = t;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
|
|
1461
|
+
function ko(i, t) {
|
|
1462
|
+
Tn -= i, bn -= t, Ri.add(ae(Tn * Tn + bn * bn)), Tn = i, bn = t;
|
|
1463
1463
|
}
|
|
1464
1464
|
let Qa, Es, tr, er;
|
|
1465
1465
|
class nr {
|
|
1466
1466
|
constructor(t) {
|
|
1467
|
-
this._append = t == null ?
|
|
1467
|
+
this._append = t == null ? Co : Ou(t), this._radius = 4.5, this._ = "";
|
|
1468
1468
|
}
|
|
1469
1469
|
pointRadius(t) {
|
|
1470
1470
|
return this._radius = +t, this;
|
|
@@ -1506,7 +1506,7 @@ class nr {
|
|
|
1506
1506
|
return this._ = "", t.length ? t : null;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Co(i) {
|
|
1510
1510
|
let t = 1;
|
|
1511
1511
|
this._ += i[0];
|
|
1512
1512
|
for (const e = i.length; t < e; ++t)
|
|
@@ -1515,7 +1515,7 @@ function ko(i) {
|
|
|
1515
1515
|
function Ou(i) {
|
|
1516
1516
|
const t = Math.floor(i);
|
|
1517
1517
|
if (!(t >= 0)) throw new RangeError(`invalid digits: ${i}`);
|
|
1518
|
-
if (t > 15) return
|
|
1518
|
+
if (t > 15) return Co;
|
|
1519
1519
|
if (t !== Qa) {
|
|
1520
1520
|
const e = 10 ** t;
|
|
1521
1521
|
Qa = t, Es = function(s) {
|
|
@@ -1530,20 +1530,20 @@ function Ou(i) {
|
|
|
1530
1530
|
function Lu(i, t) {
|
|
1531
1531
|
let e = 3, n = 4.5, s, a;
|
|
1532
1532
|
function r(o) {
|
|
1533
|
-
return o && (typeof n == "function" && a.pointRadius(+n.apply(this, arguments)),
|
|
1533
|
+
return o && (typeof n == "function" && a.pointRadius(+n.apply(this, arguments)), qe(o, s(a))), a.result();
|
|
1534
1534
|
}
|
|
1535
1535
|
return r.area = function(o) {
|
|
1536
|
-
return
|
|
1536
|
+
return qe(o, s(ye)), ye.result();
|
|
1537
1537
|
}, r.measure = function(o) {
|
|
1538
|
-
return
|
|
1538
|
+
return qe(o, s(_n)), _n.result();
|
|
1539
1539
|
}, r.bounds = function(o) {
|
|
1540
|
-
return
|
|
1540
|
+
return qe(o, s(ms)), ms.result();
|
|
1541
1541
|
}, r.centroid = function(o) {
|
|
1542
|
-
return
|
|
1542
|
+
return qe(o, s(Jt)), Jt.result();
|
|
1543
1543
|
}, r.projection = function(o) {
|
|
1544
1544
|
return arguments.length ? (s = o == null ? (i = null, Li) : (i = o).stream, r) : i;
|
|
1545
1545
|
}, r.context = function(o) {
|
|
1546
|
-
return arguments.length ? (a = o == null ? (t = null, new nr(e)) : new
|
|
1546
|
+
return arguments.length ? (a = o == null ? (t = null, new nr(e)) : new Ao(t = o), typeof n != "function" && a.pointRadius(n), r) : t;
|
|
1547
1547
|
}, r.pointRadius = function(o) {
|
|
1548
1548
|
return arguments.length ? (n = typeof o == "function" ? o : (a.pointRadius(+o), +o), r) : n;
|
|
1549
1549
|
}, r.digits = function(o) {
|
|
@@ -1589,16 +1589,16 @@ Di.prototype = {
|
|
|
1589
1589
|
};
|
|
1590
1590
|
function Xi(i, t, e) {
|
|
1591
1591
|
var n = i.clipExtent && i.clipExtent();
|
|
1592
|
-
return i.scale(150).translate([0, 0]), n != null && i.clipExtent(null),
|
|
1592
|
+
return i.scale(150).translate([0, 0]), n != null && i.clipExtent(null), qe(e, i.stream(ms)), t(ms.result()), n != null && i.clipExtent(n), i;
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function _o(i, t, e) {
|
|
1595
1595
|
return Xi(i, function(n) {
|
|
1596
1596
|
var s = t[1][0] - t[0][0], a = t[1][1] - t[0][1], r = Math.min(s / (n[1][0] - n[0][0]), a / (n[1][1] - n[0][1])), o = +t[0][0] + (s - r * (n[1][0] + n[0][0])) / 2, c = +t[0][1] + (a - r * (n[1][1] + n[0][1])) / 2;
|
|
1597
1597
|
i.scale(150 * r).translate([o, c]);
|
|
1598
1598
|
}, e);
|
|
1599
1599
|
}
|
|
1600
1600
|
function Au(i, t, e) {
|
|
1601
|
-
return
|
|
1601
|
+
return _o(i, [[0, 0], t], e);
|
|
1602
1602
|
}
|
|
1603
1603
|
function Mu(i, t, e) {
|
|
1604
1604
|
return Xi(i, function(n) {
|
|
@@ -1612,7 +1612,7 @@ function wu(i, t, e) {
|
|
|
1612
1612
|
i.scale(150 * a).translate([r, o]);
|
|
1613
1613
|
}, e);
|
|
1614
1614
|
}
|
|
1615
|
-
var sr = 16, ku =
|
|
1615
|
+
var sr = 16, ku = vt(30 * Ot);
|
|
1616
1616
|
function ir(i, t) {
|
|
1617
1617
|
return +t ? _u(i, t) : Cu(i);
|
|
1618
1618
|
}
|
|
@@ -1627,8 +1627,8 @@ function _u(i, t) {
|
|
|
1627
1627
|
function e(n, s, a, r, o, c, l, h, d, u, p, f, g, m) {
|
|
1628
1628
|
var y = l - n, S = h - s, v = y * y + S * S;
|
|
1629
1629
|
if (v > 4 * t && g--) {
|
|
1630
|
-
var E = r + u, x = o + p, b = c + f, _ = ae(E * E + x * x + b * b), C = xe(b /= _), G =
|
|
1631
|
-
(O * O / v > t ||
|
|
1630
|
+
var E = r + u, x = o + p, b = c + f, _ = ae(E * E + x * x + b * b), C = xe(b /= _), G = mt(mt(b) - 1) < gt || mt(a - d) < gt ? (a + d) / 2 : Ne(x, E), R = i(G, C), A = R[0], H = R[1], N = A - n, M = H - s, O = S * N - y * M;
|
|
1631
|
+
(O * O / v > t || mt((y * N + S * M) / v - 0.5) > 0.3 || r * u + o * p + c * f < ku) && (e(n, s, a, r, o, c, A, H, G, E /= _, x /= _, b, g, m), m.point(A, H), e(A, H, G, E, x, b, l, h, d, u, p, f, g, m));
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
return function(n) {
|
|
@@ -1650,7 +1650,7 @@ function _u(i, t) {
|
|
|
1650
1650
|
d = NaN, m.point = v, n.lineStart();
|
|
1651
1651
|
}
|
|
1652
1652
|
function v(C, G) {
|
|
1653
|
-
var R =
|
|
1653
|
+
var R = an([C, G]), A = i(C, G);
|
|
1654
1654
|
e(d, u, h, p, f, g, d = A[0], u = A[1], h = C, p = R[0], f = R[1], g = R[2], sr, n), n.point(d, u);
|
|
1655
1655
|
}
|
|
1656
1656
|
function E() {
|
|
@@ -1691,7 +1691,7 @@ function Du(i, t, e, n, s) {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
function ar(i, t, e, n, s, a) {
|
|
1693
1693
|
if (!a) return Du(i, t, e, n, s);
|
|
1694
|
-
var r =
|
|
1694
|
+
var r = vt(a), o = ft(a), c = r * i, l = o * i, h = r / i, d = o / i, u = (o * e - r * t) / i, p = (o * t + r * e) / i;
|
|
1695
1695
|
function f(g, m) {
|
|
1696
1696
|
return g *= n, m *= s, [c * g - l * m + t, e - l * g - c * m];
|
|
1697
1697
|
}
|
|
@@ -1700,11 +1700,11 @@ function ar(i, t, e, n, s, a) {
|
|
|
1700
1700
|
}, f;
|
|
1701
1701
|
}
|
|
1702
1702
|
function ws(i) {
|
|
1703
|
-
return
|
|
1703
|
+
return Io(function() {
|
|
1704
1704
|
return i;
|
|
1705
1705
|
})();
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function Io(i) {
|
|
1708
1708
|
var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ja, m = null, y, S, v, E = Li, x = 0.5, b, _, C, G, R;
|
|
1709
1709
|
function A(O) {
|
|
1710
1710
|
return C(O[0] * Ot, O[1] * Ot);
|
|
@@ -1739,7 +1739,7 @@ function _o(i) {
|
|
|
1739
1739
|
}, A.precision = function(O) {
|
|
1740
1740
|
return arguments.length ? (b = ir(_, x = O * O), M()) : ae(x);
|
|
1741
1741
|
}, A.fitExtent = function(O, P) {
|
|
1742
|
-
return
|
|
1742
|
+
return _o(A, O, P);
|
|
1743
1743
|
}, A.fitSize = function(O, P) {
|
|
1744
1744
|
return Au(A, O, P);
|
|
1745
1745
|
}, A.fitWidth = function(O, P) {
|
|
@@ -1749,7 +1749,7 @@ function _o(i) {
|
|
|
1749
1749
|
};
|
|
1750
1750
|
function N() {
|
|
1751
1751
|
var O = ar(e, 0, 0, u, p, d).apply(null, t(a, r)), P = ar(e, n - O[0], s - O[1], u, p, d);
|
|
1752
|
-
return h =
|
|
1752
|
+
return h = mo(o, c, l), _ = bi(t, P), C = bi(h, _), b = ir(_, x), M();
|
|
1753
1753
|
}
|
|
1754
1754
|
function M() {
|
|
1755
1755
|
return G = R = null, A;
|
|
@@ -1758,14 +1758,14 @@ function _o(i) {
|
|
|
1758
1758
|
return t = i.apply(this, arguments), A.invert = t.invert && H, N();
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
var t = 0, e = ht / 3, n =
|
|
1761
|
+
function Ro(i) {
|
|
1762
|
+
var t = 0, e = ht / 3, n = Io(i), s = n(t, e);
|
|
1763
1763
|
return s.parallels = function(a) {
|
|
1764
1764
|
return arguments.length ? n(t = a[0] * Ot, e = a[1] * Ot) : [t * Vt, e * Vt];
|
|
1765
1765
|
}, s;
|
|
1766
1766
|
}
|
|
1767
1767
|
function Nu(i) {
|
|
1768
|
-
var t =
|
|
1768
|
+
var t = vt(i);
|
|
1769
1769
|
function e(n, s) {
|
|
1770
1770
|
return [n * t, ft(s) / t];
|
|
1771
1771
|
}
|
|
@@ -1775,28 +1775,28 @@ function Nu(i) {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
function Pu(i, t) {
|
|
1777
1777
|
var e = ft(i), n = (e + ft(t)) / 2;
|
|
1778
|
-
if (
|
|
1778
|
+
if (mt(n) < gt) return Nu(i);
|
|
1779
1779
|
var s = 1 + e * (2 * n - e), a = ae(s) / n;
|
|
1780
1780
|
function r(o, c) {
|
|
1781
1781
|
var l = ae(s - 2 * n * ft(c)) / n;
|
|
1782
|
-
return [l * ft(o *= n), a - l *
|
|
1782
|
+
return [l * ft(o *= n), a - l * vt(o)];
|
|
1783
1783
|
}
|
|
1784
1784
|
return r.invert = function(o, c) {
|
|
1785
|
-
var l = a - c, h = Ne(o,
|
|
1785
|
+
var l = a - c, h = Ne(o, mt(l)) * be(l);
|
|
1786
1786
|
return l * n < 0 && (h -= ht * be(o) * be(l)), [h / n, xe((s - (o * o + l * l) * n * n) / (2 * n))];
|
|
1787
1787
|
}, r;
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
return
|
|
1789
|
+
function Do() {
|
|
1790
|
+
return Ro(Pu).scale(155.424).center([0, 33.6442]);
|
|
1791
1791
|
}
|
|
1792
1792
|
function $u() {
|
|
1793
|
-
return
|
|
1793
|
+
return Do().parallels([29.5, 45.5]).scale(1070).translate([480, 250]).rotate([96, 0]).center([-0.6, 38.7]);
|
|
1794
1794
|
}
|
|
1795
1795
|
function Yi(i, t) {
|
|
1796
1796
|
return [i, tu(eu((Ut + t) / 2))];
|
|
1797
1797
|
}
|
|
1798
1798
|
Yi.invert = function(i, t) {
|
|
1799
|
-
return [i, 2 *
|
|
1799
|
+
return [i, 2 * go(Qc(t)) - Ut];
|
|
1800
1800
|
};
|
|
1801
1801
|
function Vu() {
|
|
1802
1802
|
return Gu(Yi).scale(961 / Xt);
|
|
@@ -1826,59 +1826,59 @@ function Hu() {
|
|
|
1826
1826
|
return ws(xs).scale(152.63);
|
|
1827
1827
|
}
|
|
1828
1828
|
function Bu(i, t) {
|
|
1829
|
-
var e =
|
|
1830
|
-
if (
|
|
1829
|
+
var e = vt(i), n = i === t ? ft(i) : (e - vt(t)) / (t - i), s = e / n + i;
|
|
1830
|
+
if (mt(n) < gt) return xs;
|
|
1831
1831
|
function a(r, o) {
|
|
1832
1832
|
var c = s - o, l = n * r;
|
|
1833
|
-
return [c * ft(l), s - c *
|
|
1833
|
+
return [c * ft(l), s - c * vt(l)];
|
|
1834
1834
|
}
|
|
1835
1835
|
return a.invert = function(r, o) {
|
|
1836
|
-
var c = s - o, l = Ne(r,
|
|
1836
|
+
var c = s - o, l = Ne(r, mt(c)) * be(c);
|
|
1837
1837
|
return c * n < 0 && (l -= ht * be(r) * be(c)), [l / n, s - be(n) * ae(r * r + c * c)];
|
|
1838
1838
|
}, a;
|
|
1839
1839
|
}
|
|
1840
1840
|
function zu() {
|
|
1841
|
-
return
|
|
1841
|
+
return Ro(Bu).scale(131.154).center([0, 13.9389]);
|
|
1842
1842
|
}
|
|
1843
|
-
var
|
|
1844
|
-
function
|
|
1843
|
+
var Ln = 1.340264, An = -0.081106, Mn = 893e-6, wn = 3796e-6, Ss = ae(3) / 2, Uu = 12;
|
|
1844
|
+
function No(i, t) {
|
|
1845
1845
|
var e = xe(Ss * ft(t)), n = e * e, s = n * n * n;
|
|
1846
1846
|
return [
|
|
1847
|
-
i *
|
|
1848
|
-
e * (
|
|
1847
|
+
i * vt(e) / (Ss * (Ln + 3 * An * n + s * (7 * Mn + 9 * wn * n))),
|
|
1848
|
+
e * (Ln + An * n + s * (Mn + wn * n))
|
|
1849
1849
|
];
|
|
1850
1850
|
}
|
|
1851
|
-
|
|
1852
|
-
for (var e = t, n = e * e, s = n * n * n, a = 0, r, o, c; a < Uu && (o = e * (
|
|
1851
|
+
No.invert = function(i, t) {
|
|
1852
|
+
for (var e = t, n = e * e, s = n * n * n, a = 0, r, o, c; a < Uu && (o = e * (Ln + An * n + s * (Mn + wn * n)) - t, c = Ln + 3 * An * n + s * (7 * Mn + 9 * wn * n), e -= r = o / c, n = e * e, s = n * n * n, !(mt(r) < fo)); ++a)
|
|
1853
1853
|
;
|
|
1854
1854
|
return [
|
|
1855
|
-
Ss * i * (
|
|
1855
|
+
Ss * i * (Ln + 3 * An * n + s * (7 * Mn + 9 * wn * n)) / vt(e),
|
|
1856
1856
|
xe(ft(e) / Ss)
|
|
1857
1857
|
];
|
|
1858
1858
|
};
|
|
1859
1859
|
function Fu() {
|
|
1860
|
-
return ws(
|
|
1860
|
+
return ws(No).scale(177.158);
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function Po(i, t) {
|
|
1863
1863
|
var e = t * t, n = e * e;
|
|
1864
1864
|
return [
|
|
1865
1865
|
i * (0.8707 - 0.131979 * e + n * (-0.013791 + n * (3971e-6 * e - 1529e-6 * n))),
|
|
1866
1866
|
t * (1.007226 + e * (0.015085 + n * (-0.044475 + 0.028874 * e - 5916e-6 * n)))
|
|
1867
1867
|
];
|
|
1868
1868
|
}
|
|
1869
|
-
|
|
1869
|
+
Po.invert = function(i, t) {
|
|
1870
1870
|
var e = t, n = 25, s;
|
|
1871
1871
|
do {
|
|
1872
1872
|
var a = e * e, r = a * a;
|
|
1873
1873
|
e -= s = (e * (1.007226 + a * (0.015085 + r * (-0.044475 + 0.028874 * a - 5916e-6 * r))) - t) / (1.007226 + a * (0.015085 * 3 + r * (-0.044475 * 7 + 0.028874 * 9 * a - 5916e-6 * 11 * r)));
|
|
1874
|
-
} while (
|
|
1874
|
+
} while (mt(s) > gt && --n > 0);
|
|
1875
1875
|
return [
|
|
1876
1876
|
i / (0.8707 + (a = e * e) * (-0.131979 + a * (-0.013791 + a * a * a * (3971e-6 - 1529e-6 * a)))),
|
|
1877
1877
|
e
|
|
1878
1878
|
];
|
|
1879
1879
|
};
|
|
1880
1880
|
function Wu() {
|
|
1881
|
-
return ws(
|
|
1881
|
+
return ws(Po).scale(175.295);
|
|
1882
1882
|
}
|
|
1883
1883
|
function Xu(i, t) {
|
|
1884
1884
|
return i.parent === t.parent ? 1 : 2;
|
|
@@ -2017,16 +2017,16 @@ function* fh() {
|
|
|
2017
2017
|
e.push(n[s]);
|
|
2018
2018
|
while (e.length);
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function Dn(i, t) {
|
|
2021
2021
|
i instanceof Map ? (i = [void 0, i], t === void 0 && (t = vh)) : t === void 0 && (t = mh);
|
|
2022
|
-
for (var e = new
|
|
2022
|
+
for (var e = new In(i), n, s = [e], a, r, o, c; n = s.pop(); )
|
|
2023
2023
|
if ((r = t(n.data)) && (c = (r = Array.from(r)).length))
|
|
2024
2024
|
for (n.children = r, o = c - 1; o >= 0; --o)
|
|
2025
|
-
s.push(a = r[o] = new
|
|
2025
|
+
s.push(a = r[o] = new In(r[o])), a.parent = n, a.depth = n.depth + 1;
|
|
2026
2026
|
return e.eachBefore(Eh);
|
|
2027
2027
|
}
|
|
2028
2028
|
function gh() {
|
|
2029
|
-
return
|
|
2029
|
+
return Dn(this).eachBefore(yh);
|
|
2030
2030
|
}
|
|
2031
2031
|
function mh(i) {
|
|
2032
2032
|
return i.children;
|
|
@@ -2043,11 +2043,11 @@ function Eh(i) {
|
|
|
2043
2043
|
i.height = t;
|
|
2044
2044
|
while ((i = i.parent) && i.height < ++t);
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function In(i) {
|
|
2047
2047
|
this.data = i, this.depth = this.height = 0, this.parent = null;
|
|
2048
2048
|
}
|
|
2049
|
-
|
|
2050
|
-
constructor:
|
|
2049
|
+
In.prototype = Dn.prototype = {
|
|
2050
|
+
constructor: In,
|
|
2051
2051
|
count: eh,
|
|
2052
2052
|
each: nh,
|
|
2053
2053
|
eachAfter: ih,
|
|
@@ -2064,16 +2064,16 @@ _n.prototype = Rn.prototype = {
|
|
|
2064
2064
|
[Symbol.iterator]: fh
|
|
2065
2065
|
};
|
|
2066
2066
|
function xh(i) {
|
|
2067
|
-
return i == null ? null :
|
|
2067
|
+
return i == null ? null : $o(i);
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function $o(i) {
|
|
2070
2070
|
if (typeof i != "function") throw new Error();
|
|
2071
2071
|
return i;
|
|
2072
2072
|
}
|
|
2073
2073
|
function Ie() {
|
|
2074
2074
|
return 0;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function je(i) {
|
|
2077
2077
|
return function() {
|
|
2078
2078
|
return i;
|
|
2079
2079
|
};
|
|
@@ -2094,18 +2094,18 @@ function Lh(i, t) {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
function Ah(i, t) {
|
|
2096
2096
|
for (var e = 0, n = (i = Lh(Array.from(i), t)).length, s = [], a, r; e < n; )
|
|
2097
|
-
a = i[e], r &&
|
|
2097
|
+
a = i[e], r && Vo(r, a) ? ++e : (r = wh(s = Mh(s, a)), e = 0);
|
|
2098
2098
|
return r;
|
|
2099
2099
|
}
|
|
2100
2100
|
function Mh(i, t) {
|
|
2101
2101
|
var e, n;
|
|
2102
2102
|
if (Qs(t, i)) return [t];
|
|
2103
2103
|
for (e = 0; e < i.length; ++e)
|
|
2104
|
-
if (qn(t, i[e]) && Qs(
|
|
2104
|
+
if (qn(t, i[e]) && Qs(On(i[e], t), i))
|
|
2105
2105
|
return [i[e], t];
|
|
2106
2106
|
for (e = 0; e < i.length - 1; ++e)
|
|
2107
2107
|
for (n = e + 1; n < i.length; ++n)
|
|
2108
|
-
if (qn(
|
|
2108
|
+
if (qn(On(i[e], i[n]), t) && qn(On(i[e], t), i[n]) && qn(On(i[n], t), i[e]) && Qs(Go(i[e], i[n], t), i))
|
|
2109
2109
|
return [i[e], i[n], t];
|
|
2110
2110
|
throw new Error();
|
|
2111
2111
|
}
|
|
@@ -2113,13 +2113,13 @@ function qn(i, t) {
|
|
|
2113
2113
|
var e = i.r - t.r, n = t.x - i.x, s = t.y - i.y;
|
|
2114
2114
|
return e < 0 || e * e < n * n + s * s;
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function Vo(i, t) {
|
|
2117
2117
|
var e = i.r - t.r + Math.max(i.r, t.r, 1) * 1e-9, n = t.x - i.x, s = t.y - i.y;
|
|
2118
2118
|
return e > 0 && e * e > n * n + s * s;
|
|
2119
2119
|
}
|
|
2120
2120
|
function Qs(i, t) {
|
|
2121
2121
|
for (var e = 0; e < t.length; ++e)
|
|
2122
|
-
if (
|
|
2122
|
+
if (!Vo(i, t[e]))
|
|
2123
2123
|
return !1;
|
|
2124
2124
|
return !0;
|
|
2125
2125
|
}
|
|
@@ -2128,9 +2128,9 @@ function wh(i) {
|
|
|
2128
2128
|
case 1:
|
|
2129
2129
|
return kh(i[0]);
|
|
2130
2130
|
case 2:
|
|
2131
|
-
return
|
|
2131
|
+
return On(i[0], i[1]);
|
|
2132
2132
|
case 3:
|
|
2133
|
-
return
|
|
2133
|
+
return Go(i[0], i[1], i[2]);
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
2136
|
function kh(i) {
|
|
@@ -2140,7 +2140,7 @@ function kh(i) {
|
|
|
2140
2140
|
r: i.r
|
|
2141
2141
|
};
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function On(i, t) {
|
|
2144
2144
|
var e = i.x, n = i.y, s = i.r, a = t.x, r = t.y, o = t.r, c = a - e, l = r - n, h = o - s, d = Math.sqrt(c * c + l * l);
|
|
2145
2145
|
return {
|
|
2146
2146
|
x: (e + a + c / d * h) / 2,
|
|
@@ -2148,7 +2148,7 @@ function bn(i, t) {
|
|
|
2148
2148
|
r: (d + s + o) / 2
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function Go(i, t, e) {
|
|
2152
2152
|
var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, g = s - h, m = c - a, y = d - a, S = n * n + s * s - a * a, v = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * g, b = (f * E - g * v) / (x * 2) - n, _ = (g * m - f * y) / x, C = (p * v - u * E) / (x * 2) - s, G = (u * y - p * m) / x, R = _ * _ + G * G - 1, A = 2 * (a + b * _ + C * G), H = b * b + C * C - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
|
|
2153
2153
|
return {
|
|
2154
2154
|
x: n + b + _ * N,
|
|
@@ -2216,7 +2216,7 @@ function Ih() {
|
|
|
2216
2216
|
}, s.size = function(a) {
|
|
2217
2217
|
return arguments.length ? (t = +a[0], e = +a[1], s) : [t, e];
|
|
2218
2218
|
}, s.padding = function(a) {
|
|
2219
|
-
return arguments.length ? (n = typeof a == "function" ? a :
|
|
2219
|
+
return arguments.length ? (n = typeof a == "function" ? a : je(+a), s) : n;
|
|
2220
2220
|
}, s;
|
|
2221
2221
|
}
|
|
2222
2222
|
function ur(i) {
|
|
@@ -2272,7 +2272,7 @@ function Vh(i, t, e) {
|
|
|
2272
2272
|
function ls(i, t) {
|
|
2273
2273
|
this._ = i, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
|
|
2274
2274
|
}
|
|
2275
|
-
ls.prototype = Object.create(
|
|
2275
|
+
ls.prototype = Object.create(In.prototype);
|
|
2276
2276
|
function Gh(i) {
|
|
2277
2277
|
for (var t = new ls(i, 0), e, n = [t], s, a, r, o; e = n.pop(); )
|
|
2278
2278
|
if (a = e._.children)
|
|
@@ -2372,21 +2372,21 @@ function Wh() {
|
|
|
2372
2372
|
}, h.size = function(u) {
|
|
2373
2373
|
return arguments.length ? (e = +u[0], n = +u[1], h) : [e, n];
|
|
2374
2374
|
}, h.tile = function(u) {
|
|
2375
|
-
return arguments.length ? (i =
|
|
2375
|
+
return arguments.length ? (i = $o(u), h) : i;
|
|
2376
2376
|
}, h.padding = function(u) {
|
|
2377
2377
|
return arguments.length ? h.paddingInner(u).paddingOuter(u) : h.paddingInner();
|
|
2378
2378
|
}, h.paddingInner = function(u) {
|
|
2379
|
-
return arguments.length ? (a = typeof u == "function" ? u :
|
|
2379
|
+
return arguments.length ? (a = typeof u == "function" ? u : je(+u), h) : a;
|
|
2380
2380
|
}, h.paddingOuter = function(u) {
|
|
2381
2381
|
return arguments.length ? h.paddingTop(u).paddingRight(u).paddingBottom(u).paddingLeft(u) : h.paddingTop();
|
|
2382
2382
|
}, h.paddingTop = function(u) {
|
|
2383
|
-
return arguments.length ? (r = typeof u == "function" ? u :
|
|
2383
|
+
return arguments.length ? (r = typeof u == "function" ? u : je(+u), h) : r;
|
|
2384
2384
|
}, h.paddingRight = function(u) {
|
|
2385
|
-
return arguments.length ? (o = typeof u == "function" ? u :
|
|
2385
|
+
return arguments.length ? (o = typeof u == "function" ? u : je(+u), h) : o;
|
|
2386
2386
|
}, h.paddingBottom = function(u) {
|
|
2387
|
-
return arguments.length ? (c = typeof u == "function" ? u :
|
|
2387
|
+
return arguments.length ? (c = typeof u == "function" ? u : je(+u), h) : c;
|
|
2388
2388
|
}, h.paddingLeft = function(u) {
|
|
2389
|
-
return arguments.length ? (l = typeof u == "function" ? u :
|
|
2389
|
+
return arguments.length ? (l = typeof u == "function" ? u : je(+u), h) : l;
|
|
2390
2390
|
}, h;
|
|
2391
2391
|
}
|
|
2392
2392
|
function ks(i) {
|
|
@@ -2424,7 +2424,7 @@ function Kh(i, t, e, n, s, a, r, o) {
|
|
|
2424
2424
|
return u = (h * (t - a) - d * (i - s)) / u, [i + u * c, t + u * l];
|
|
2425
2425
|
}
|
|
2426
2426
|
function Kn(i, t, e, n, s, a, r) {
|
|
2427
|
-
var o = i - e, c = t - n, l = (r ? a : -a) /
|
|
2427
|
+
var o = i - e, c = t - n, l = (r ? a : -a) / Qe(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, y = (p + g) / 2, S = f - u, v = g - p, E = S * S + v * v, x = s - a, b = u * g - f * p, _ = (v < 0 ? -1 : 1) * Qe(Ol(0, x * x * E - b * b)), C = (b * v - S * _) / E, G = (-b * S - v * _) / E, R = (b * v + S * _) / E, A = (-b * S + v * _) / E, H = C - m, N = G - y, M = R - m, O = A - y;
|
|
2428
2428
|
return H * H + N * N > M * M + O * O && (C = R, G = A), {
|
|
2429
2429
|
cx: C,
|
|
2430
2430
|
cy: G,
|
|
@@ -2434,7 +2434,7 @@ function Kn(i, t, e, n, s, a, r) {
|
|
|
2434
2434
|
y11: G * (s / x - 1)
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function Rn() {
|
|
2438
2438
|
var i = Xh, t = Yh, e = pt(0), n = null, s = Zh, a = qh, r = jh, o = null, c = ks(l);
|
|
2439
2439
|
function l() {
|
|
2440
2440
|
var h, d, u = +i.apply(this, arguments), p = +t.apply(this, arguments), f = s.apply(this, arguments) - La, g = a.apply(this, arguments) - La, m = Aa(g - f), y = g > f;
|
|
@@ -2442,7 +2442,7 @@ function In() {
|
|
|
2442
2442
|
else if (m > ss - zt)
|
|
2443
2443
|
o.moveTo(p * we(f), p * le(f)), o.arc(0, 0, p, f, g, !y), u > zt && (o.moveTo(u * we(g), u * le(g)), o.arc(0, 0, u, g, f, y));
|
|
2444
2444
|
else {
|
|
2445
|
-
var S = f, v = g, E = f, x = g, b = m, _ = m, C = r.apply(this, arguments) / 2, G = C > zt && (n ? +n.apply(this, arguments) :
|
|
2445
|
+
var S = f, v = g, E = f, x = g, b = m, _ = m, C = r.apply(this, arguments) / 2, G = C > zt && (n ? +n.apply(this, arguments) : Qe(u * u + p * p)), R = Us(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
|
|
2446
2446
|
if (G > zt) {
|
|
2447
2447
|
var O = Ma(G / u * le(C)), P = Ma(G / p * le(C));
|
|
2448
2448
|
(b -= O * 2) > zt ? (O *= y ? 1 : -1, E += O, x -= O) : (b = 0, E = x = (f + g) / 2), (_ -= P * 2) > zt ? (P *= y ? 1 : -1, S += P, v -= P) : (_ = 0, S = v = (f + g) / 2);
|
|
@@ -2452,7 +2452,7 @@ function In() {
|
|
|
2452
2452
|
var W = p * we(v), F = p * le(v), Z = u * we(E), rt = u * le(E), j;
|
|
2453
2453
|
if (m < Oa)
|
|
2454
2454
|
if (j = Kh($, k, Z, rt, W, F, V, q)) {
|
|
2455
|
-
var Y = $ - j[0], K = k - j[1], ot = W - j[0], ct = F - j[1], st = 1 / le(
|
|
2455
|
+
var Y = $ - j[0], K = k - j[1], ot = W - j[0], ct = F - j[1], st = 1 / le(bl((Y * ot + K * ct) / (Qe(Y * Y + K * K) * Qe(ot * ot + ct * ct))) / 2), it = Qe(j[0] * j[0] + j[1] * j[1]);
|
|
2456
2456
|
A = Us(R, (u - it) / (st - 1)), H = Us(R, (p - it) / (st + 1));
|
|
2457
2457
|
} else
|
|
2458
2458
|
A = H = 0;
|
|
@@ -2488,7 +2488,7 @@ function Zi(i) {
|
|
|
2488
2488
|
function qi(i) {
|
|
2489
2489
|
return i[1];
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function Nn(i, t) {
|
|
2492
2492
|
var e = pt(!0), n = null, s = Hi, a = null, r = ks(o);
|
|
2493
2493
|
i = typeof i == "function" ? i : i === void 0 ? Zi : pt(i), t = typeof t == "function" ? t : t === void 0 ? qi : pt(t);
|
|
2494
2494
|
function o(c) {
|
|
@@ -2528,7 +2528,7 @@ function ji(i, t, e) {
|
|
|
2528
2528
|
if (S) return o = null, S + "" || null;
|
|
2529
2529
|
}
|
|
2530
2530
|
function h() {
|
|
2531
|
-
return
|
|
2531
|
+
return Nn().defined(s).curve(r).context(a);
|
|
2532
2532
|
}
|
|
2533
2533
|
return l.x = function(d) {
|
|
2534
2534
|
return arguments.length ? (i = typeof d == "function" ? d : pt(+d), n = null, l) : i;
|
|
@@ -2597,11 +2597,11 @@ function td() {
|
|
|
2597
2597
|
return arguments.length ? (a = typeof o == "function" ? o : pt(+o), r) : a;
|
|
2598
2598
|
}, r;
|
|
2599
2599
|
}
|
|
2600
|
-
var ed =
|
|
2601
|
-
function
|
|
2600
|
+
var ed = Bo(Hi);
|
|
2601
|
+
function Ho(i) {
|
|
2602
2602
|
this._curve = i;
|
|
2603
2603
|
}
|
|
2604
|
-
|
|
2604
|
+
Ho.prototype = {
|
|
2605
2605
|
areaStart: function() {
|
|
2606
2606
|
this._curve.areaStart();
|
|
2607
2607
|
},
|
|
@@ -2618,20 +2618,20 @@ Go.prototype = {
|
|
|
2618
2618
|
this._curve.point(t * Math.sin(i), t * -Math.cos(i));
|
|
2619
2619
|
}
|
|
2620
2620
|
};
|
|
2621
|
-
function
|
|
2621
|
+
function Bo(i) {
|
|
2622
2622
|
function t(e) {
|
|
2623
|
-
return new
|
|
2623
|
+
return new Ho(i(e));
|
|
2624
2624
|
}
|
|
2625
2625
|
return t._curve = i, t;
|
|
2626
2626
|
}
|
|
2627
2627
|
function nd(i) {
|
|
2628
2628
|
var t = i.curve;
|
|
2629
2629
|
return i.angle = i.x, delete i.x, i.radius = i.y, delete i.y, i.curve = function(e) {
|
|
2630
|
-
return arguments.length ? t(
|
|
2630
|
+
return arguments.length ? t(Bo(e)) : t()._curve;
|
|
2631
2631
|
}, i;
|
|
2632
2632
|
}
|
|
2633
2633
|
function sd() {
|
|
2634
|
-
return nd(
|
|
2634
|
+
return nd(Nn().curve(ed));
|
|
2635
2635
|
}
|
|
2636
2636
|
class id {
|
|
2637
2637
|
constructor(t, e) {
|
|
@@ -2679,7 +2679,7 @@ function ld(i) {
|
|
|
2679
2679
|
let t = rd, e = od, n = Zi, s = qi, a = null, r = null, o = ks(c);
|
|
2680
2680
|
function c() {
|
|
2681
2681
|
let l;
|
|
2682
|
-
const h =
|
|
2682
|
+
const h = kl.call(arguments), d = t.apply(this, h), u = e.apply(this, h);
|
|
2683
2683
|
if (a == null && (r = i(l = o())), r.lineStart(), h[0] = d, r.point(+n.apply(this, h), +s.apply(this, h)), h[0] = u, r.point(+n.apply(this, h), +s.apply(this, h)), r.lineEnd(), l) return r = null, l + "" || null;
|
|
2684
2684
|
}
|
|
2685
2685
|
return c.source = function(l) {
|
|
@@ -2761,12 +2761,12 @@ class dt {
|
|
|
2761
2761
|
* component's config.options object.
|
|
2762
2762
|
*/
|
|
2763
2763
|
getOptions() {
|
|
2764
|
-
return this.configs.options ?
|
|
2764
|
+
return this.configs.options ? nn({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
2767
|
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */
|
|
2768
2768
|
const {
|
|
2769
|
-
entries:
|
|
2769
|
+
entries: zo,
|
|
2770
2770
|
setPrototypeOf: dr,
|
|
2771
2771
|
isFrozen: ud,
|
|
2772
2772
|
getPrototypeOf: hd,
|
|
@@ -2775,7 +2775,7 @@ const {
|
|
|
2775
2775
|
let {
|
|
2776
2776
|
freeze: Ht,
|
|
2777
2777
|
seal: ee,
|
|
2778
|
-
create:
|
|
2778
|
+
create: Uo
|
|
2779
2779
|
} = Object, {
|
|
2780
2780
|
apply: Ni,
|
|
2781
2781
|
construct: Pi
|
|
@@ -2792,7 +2792,7 @@ Ni || (Ni = function(t, e, n) {
|
|
|
2792
2792
|
Pi || (Pi = function(t, e) {
|
|
2793
2793
|
return new t(...e);
|
|
2794
2794
|
});
|
|
2795
|
-
const Jn = Yt(Array.prototype.forEach), pr = Yt(Array.prototype.pop),
|
|
2795
|
+
const Jn = Yt(Array.prototype.forEach), pr = Yt(Array.prototype.pop), dn = Yt(Array.prototype.push), cs = Yt(String.prototype.toLowerCase), si = Yt(String.prototype.toString), fr = Yt(String.prototype.match), pn = Yt(String.prototype.replace), pd = Yt(String.prototype.indexOf), fd = Yt(String.prototype.trim), ie = Yt(Object.prototype.hasOwnProperty), $t = Yt(RegExp.prototype.test), fn = gd(TypeError);
|
|
2796
2796
|
function Yt(i) {
|
|
2797
2797
|
return function(t) {
|
|
2798
2798
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
|
|
@@ -2827,12 +2827,12 @@ function md(i) {
|
|
|
2827
2827
|
return i;
|
|
2828
2828
|
}
|
|
2829
2829
|
function Ce(i) {
|
|
2830
|
-
const t =
|
|
2831
|
-
for (const [e, n] of
|
|
2830
|
+
const t = Uo(null);
|
|
2831
|
+
for (const [e, n] of zo(i))
|
|
2832
2832
|
ie(i, e) && (Array.isArray(n) ? t[e] = md(n) : n && typeof n == "object" && n.constructor === Object ? t[e] = Ce(n) : t[e] = n);
|
|
2833
2833
|
return t;
|
|
2834
2834
|
}
|
|
2835
|
-
function
|
|
2835
|
+
function gn(i, t) {
|
|
2836
2836
|
for (; i !== null; ) {
|
|
2837
2837
|
const n = dd(i, t);
|
|
2838
2838
|
if (n) {
|
|
@@ -2848,27 +2848,27 @@ function fn(i, t) {
|
|
|
2848
2848
|
}
|
|
2849
2849
|
return e;
|
|
2850
2850
|
}
|
|
2851
|
-
const gr = Ht(["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"]), ii = Ht(["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"]), ai = Ht(["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"]), vd = Ht(["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"]), ri = Ht(["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"]), yd = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mr = Ht(["#text"]), vr = Ht(["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"]), oi = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "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", "exponent", "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", "intercept", "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", "slope", "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", "tablevalues", "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"]), yr = Ht(["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"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ed = ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xd = ee(/<%[\w\W]*|[\w\W]*%>/gm), Sd = ee(/\$\{[\w\W]*}/gm), Td = ee(/^data-[\-\w.\u00B7-\uFFFF]+$/), bd = ee(/^aria-[\-\w]+$/),
|
|
2851
|
+
const gr = Ht(["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"]), ii = Ht(["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"]), ai = Ht(["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"]), vd = Ht(["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"]), ri = Ht(["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"]), yd = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mr = Ht(["#text"]), vr = Ht(["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"]), oi = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "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", "exponent", "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", "intercept", "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", "slope", "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", "tablevalues", "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"]), yr = Ht(["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"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ed = ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xd = ee(/<%[\w\W]*|[\w\W]*%>/gm), Sd = ee(/\$\{[\w\W]*}/gm), Td = ee(/^data-[\-\w.\u00B7-\uFFFF]+$/), bd = ee(/^aria-[\-\w]+$/), Fo = ee(
|
|
2852
2852
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2853
2853
|
// eslint-disable-line no-useless-escape
|
|
2854
2854
|
), Od = ee(/^(?:\w+script|data):/i), Ld = ee(
|
|
2855
2855
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2856
2856
|
// eslint-disable-line no-control-regex
|
|
2857
|
-
),
|
|
2857
|
+
), Wo = ee(/^html$/i), Ad = ee(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2858
2858
|
var Er = /* @__PURE__ */ Object.freeze({
|
|
2859
2859
|
__proto__: null,
|
|
2860
2860
|
ARIA_ATTR: bd,
|
|
2861
2861
|
ATTR_WHITESPACE: Ld,
|
|
2862
2862
|
CUSTOM_ELEMENT: Ad,
|
|
2863
2863
|
DATA_ATTR: Td,
|
|
2864
|
-
DOCTYPE_NAME:
|
|
2864
|
+
DOCTYPE_NAME: Wo,
|
|
2865
2865
|
ERB_EXPR: xd,
|
|
2866
|
-
IS_ALLOWED_URI:
|
|
2866
|
+
IS_ALLOWED_URI: Fo,
|
|
2867
2867
|
IS_SCRIPT_OR_DATA: Od,
|
|
2868
2868
|
MUSTACHE_EXPR: Ed,
|
|
2869
2869
|
TMPLIT_EXPR: Sd
|
|
2870
2870
|
});
|
|
2871
|
-
const
|
|
2871
|
+
const mn = {
|
|
2872
2872
|
element: 1,
|
|
2873
2873
|
attribute: 2,
|
|
2874
2874
|
text: 3,
|
|
@@ -2918,10 +2918,10 @@ const gn = {
|
|
|
2918
2918
|
uponSanitizeShadowNode: []
|
|
2919
2919
|
};
|
|
2920
2920
|
};
|
|
2921
|
-
function
|
|
2921
|
+
function Xo() {
|
|
2922
2922
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Md();
|
|
2923
|
-
const t = (tt) =>
|
|
2924
|
-
if (t.version = "3.2.3", t.removed = [], !i || !i.document || i.document.nodeType !==
|
|
2923
|
+
const t = (tt) => Xo(tt);
|
|
2924
|
+
if (t.version = "3.2.3", t.removed = [], !i || !i.document || i.document.nodeType !== mn.document)
|
|
2925
2925
|
return t.isSupported = !1, t;
|
|
2926
2926
|
let {
|
|
2927
2927
|
document: e
|
|
@@ -2936,7 +2936,7 @@ function Wo() {
|
|
|
2936
2936
|
HTMLFormElement: d,
|
|
2937
2937
|
DOMParser: u,
|
|
2938
2938
|
trustedTypes: p
|
|
2939
|
-
} = i, f = c.prototype, g =
|
|
2939
|
+
} = i, f = c.prototype, g = gn(f, "cloneNode"), m = gn(f, "remove"), y = gn(f, "nextSibling"), S = gn(f, "childNodes"), v = gn(f, "parentNode");
|
|
2940
2940
|
if (typeof r == "function") {
|
|
2941
2941
|
const tt = e.createElement("template");
|
|
2942
2942
|
tt.content && tt.content.ownerDocument && (e = tt.content.ownerDocument);
|
|
@@ -2951,7 +2951,7 @@ function Wo() {
|
|
|
2951
2951
|
importNode: R
|
|
2952
2952
|
} = n;
|
|
2953
2953
|
let A = xr();
|
|
2954
|
-
t.isSupported = typeof
|
|
2954
|
+
t.isSupported = typeof zo == "function" && typeof v == "function" && b && b.createHTMLDocument !== void 0;
|
|
2955
2955
|
const {
|
|
2956
2956
|
MUSTACHE_EXPR: H,
|
|
2957
2957
|
ERB_EXPR: N,
|
|
@@ -2968,7 +2968,7 @@ function Wo() {
|
|
|
2968
2968
|
const F = ut({}, [...gr, ...ii, ...ai, ...ri, ...mr]);
|
|
2969
2969
|
let Z = null;
|
|
2970
2970
|
const rt = ut({}, [...vr, ...oi, ...yr, ...Qn]);
|
|
2971
|
-
let j = Object.seal(
|
|
2971
|
+
let j = Object.seal(Uo(null, {
|
|
2972
2972
|
tagNameCheck: {
|
|
2973
2973
|
writable: !0,
|
|
2974
2974
|
configurable: !1,
|
|
@@ -2987,47 +2987,47 @@ function Wo() {
|
|
|
2987
2987
|
enumerable: !0,
|
|
2988
2988
|
value: !1
|
|
2989
2989
|
}
|
|
2990
|
-
})), Y = null, K = null, ot = !0, ct = !0, st = !1, it = !0, B = !1, z = !0, U = !1, Mt = !1, Se = !1, et = !1, yt = !1, Zt = !1, Ft = !0,
|
|
2991
|
-
const
|
|
2990
|
+
})), Y = null, K = null, ot = !0, ct = !0, st = !1, it = !0, B = !1, z = !0, U = !1, Mt = !1, Se = !1, et = !1, yt = !1, Zt = !1, Ft = !0, on = !1;
|
|
2991
|
+
const ln = "user-content-";
|
|
2992
2992
|
let Oe = !0, ne = !1, $e = {}, Ve = null;
|
|
2993
2993
|
const ea = ut({}, ["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"]);
|
|
2994
2994
|
let na = null;
|
|
2995
2995
|
const sa = ut({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2996
2996
|
let _s = null;
|
|
2997
|
-
const ia = ut({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
2997
|
+
const ia = ut({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Pn = "http://www.w3.org/1998/Math/MathML", $n = "http://www.w3.org/2000/svg", de = "http://www.w3.org/1999/xhtml";
|
|
2998
2998
|
let Ge = de, Is = !1, Rs = null;
|
|
2999
|
-
const
|
|
3000
|
-
let
|
|
3001
|
-
const
|
|
3002
|
-
let
|
|
3003
|
-
const
|
|
2999
|
+
const Jo = ut({}, [Pn, $n, de], si);
|
|
3000
|
+
let Vn = ut({}, ["mi", "mo", "mn", "ms", "mtext"]), Gn = ut({}, ["annotation-xml"]);
|
|
3001
|
+
const Qo = ut({}, ["title", "style", "font", "a", "script"]);
|
|
3002
|
+
let cn = null;
|
|
3003
|
+
const tl = ["application/xhtml+xml", "text/html"], el = "text/html";
|
|
3004
3004
|
let wt = null, He = null;
|
|
3005
|
-
const
|
|
3005
|
+
const nl = e.createElement("form"), aa = function(w) {
|
|
3006
3006
|
return w instanceof RegExp || w instanceof Function;
|
|
3007
3007
|
}, Ds = function() {
|
|
3008
3008
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3009
3009
|
if (!(He && He === w)) {
|
|
3010
|
-
if ((!w || typeof w != "object") && (w = {}), w = Ce(w),
|
|
3011
|
-
|
|
3010
|
+
if ((!w || typeof w != "object") && (w = {}), w = Ce(w), cn = // eslint-disable-next-line unicorn/prefer-includes
|
|
3011
|
+
tl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? el : w.PARSER_MEDIA_TYPE, wt = cn === "application/xhtml+xml" ? si : cs, W = ie(w, "ALLOWED_TAGS") ? ut({}, w.ALLOWED_TAGS, wt) : F, Z = ie(w, "ALLOWED_ATTR") ? ut({}, w.ALLOWED_ATTR, wt) : rt, Rs = ie(w, "ALLOWED_NAMESPACES") ? ut({}, w.ALLOWED_NAMESPACES, si) : Jo, _s = ie(w, "ADD_URI_SAFE_ATTR") ? ut(Ce(ia), w.ADD_URI_SAFE_ATTR, wt) : ia, na = ie(w, "ADD_DATA_URI_TAGS") ? ut(Ce(sa), w.ADD_DATA_URI_TAGS, wt) : sa, Ve = ie(w, "FORBID_CONTENTS") ? ut({}, w.FORBID_CONTENTS, wt) : ea, Y = ie(w, "FORBID_TAGS") ? ut({}, w.FORBID_TAGS, wt) : {}, K = ie(w, "FORBID_ATTR") ? ut({}, w.FORBID_ATTR, wt) : {}, $e = ie(w, "USE_PROFILES") ? w.USE_PROFILES : !1, ot = w.ALLOW_ARIA_ATTR !== !1, ct = w.ALLOW_DATA_ATTR !== !1, st = w.ALLOW_UNKNOWN_PROTOCOLS || !1, it = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = w.SAFE_FOR_TEMPLATES || !1, z = w.SAFE_FOR_XML !== !1, U = w.WHOLE_DOCUMENT || !1, et = w.RETURN_DOM || !1, yt = w.RETURN_DOM_FRAGMENT || !1, Zt = w.RETURN_TRUSTED_TYPE || !1, Se = w.FORCE_BODY || !1, Ft = w.SANITIZE_DOM !== !1, on = w.SANITIZE_NAMED_PROPS || !1, Oe = w.KEEP_CONTENT !== !1, ne = w.IN_PLACE || !1, q = w.ALLOWED_URI_REGEXP || Fo, Ge = w.NAMESPACE || de, Vn = w.MATHML_TEXT_INTEGRATION_POINTS || Vn, Gn = w.HTML_INTEGRATION_POINTS || Gn, j = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING && aa(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), w.CUSTOM_ELEMENT_HANDLING && aa(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), B && (ct = !1), yt && (et = !0), $e && (W = ut({}, mr), Z = [], $e.html === !0 && (ut(W, gr), ut(Z, vr)), $e.svg === !0 && (ut(W, ii), ut(Z, oi), ut(Z, Qn)), $e.svgFilters === !0 && (ut(W, ai), ut(Z, oi), ut(Z, Qn)), $e.mathMl === !0 && (ut(W, ri), ut(Z, yr), ut(Z, Qn))), w.ADD_TAGS && (W === F && (W = Ce(W)), ut(W, w.ADD_TAGS, wt)), w.ADD_ATTR && (Z === rt && (Z = Ce(Z)), ut(Z, w.ADD_ATTR, wt)), w.ADD_URI_SAFE_ATTR && ut(_s, w.ADD_URI_SAFE_ATTR, wt), w.FORBID_CONTENTS && (Ve === ea && (Ve = Ce(Ve)), ut(Ve, w.FORBID_CONTENTS, wt)), Oe && (W["#text"] = !0), U && ut(W, ["html", "head", "body"]), W.table && (ut(W, ["tbody"]), delete Y.tbody), w.TRUSTED_TYPES_POLICY) {
|
|
3012
3012
|
if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3013
|
-
throw
|
|
3013
|
+
throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3014
3014
|
if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
3015
|
-
throw
|
|
3015
|
+
throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
3016
3016
|
E = w.TRUSTED_TYPES_POLICY, x = E.createHTML("");
|
|
3017
3017
|
} else
|
|
3018
3018
|
E === void 0 && (E = wd(p, s)), E !== null && typeof x == "string" && (x = E.createHTML(""));
|
|
3019
3019
|
Ht && Ht(w), He = w;
|
|
3020
3020
|
}
|
|
3021
|
-
}, ra = ut({}, [...ii, ...ai, ...vd]), oa = ut({}, [...ri, ...yd]),
|
|
3021
|
+
}, ra = ut({}, [...ii, ...ai, ...vd]), oa = ut({}, [...ri, ...yd]), sl = function(w) {
|
|
3022
3022
|
let X = v(w);
|
|
3023
3023
|
(!X || !X.tagName) && (X = {
|
|
3024
3024
|
namespaceURI: Ge,
|
|
3025
3025
|
tagName: "template"
|
|
3026
3026
|
});
|
|
3027
3027
|
const Q = cs(w.tagName), St = cs(X.tagName);
|
|
3028
|
-
return Rs[w.namespaceURI] ? w.namespaceURI ===
|
|
3028
|
+
return Rs[w.namespaceURI] ? w.namespaceURI === $n ? X.namespaceURI === de ? Q === "svg" : X.namespaceURI === Pn ? Q === "svg" && (St === "annotation-xml" || Vn[St]) : !!ra[Q] : w.namespaceURI === Pn ? X.namespaceURI === de ? Q === "math" : X.namespaceURI === $n ? Q === "math" && Gn[St] : !!oa[Q] : w.namespaceURI === de ? X.namespaceURI === $n && !Gn[St] || X.namespaceURI === Pn && !Vn[St] ? !1 : !oa[Q] && (Qo[Q] || !ra[Q]) : !!(cn === "application/xhtml+xml" && Rs[w.namespaceURI]) : !1;
|
|
3029
3029
|
}, re = function(w) {
|
|
3030
|
-
|
|
3030
|
+
dn(t.removed, {
|
|
3031
3031
|
element: w
|
|
3032
3032
|
});
|
|
3033
3033
|
try {
|
|
@@ -3035,14 +3035,14 @@ function Wo() {
|
|
|
3035
3035
|
} catch {
|
|
3036
3036
|
m(w);
|
|
3037
3037
|
}
|
|
3038
|
-
},
|
|
3038
|
+
}, Hn = function(w, X) {
|
|
3039
3039
|
try {
|
|
3040
|
-
|
|
3040
|
+
dn(t.removed, {
|
|
3041
3041
|
attribute: X.getAttributeNode(w),
|
|
3042
3042
|
from: X
|
|
3043
3043
|
});
|
|
3044
3044
|
} catch {
|
|
3045
|
-
|
|
3045
|
+
dn(t.removed, {
|
|
3046
3046
|
attribute: null,
|
|
3047
3047
|
from: X
|
|
3048
3048
|
});
|
|
@@ -3066,11 +3066,11 @@ function Wo() {
|
|
|
3066
3066
|
const kt = fr(w, /^[\r\n\t ]+/);
|
|
3067
3067
|
Q = kt && kt[0];
|
|
3068
3068
|
}
|
|
3069
|
-
|
|
3069
|
+
cn === "application/xhtml+xml" && Ge === de && (w = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + w + "</body></html>");
|
|
3070
3070
|
const St = E ? E.createHTML(w) : w;
|
|
3071
3071
|
if (Ge === de)
|
|
3072
3072
|
try {
|
|
3073
|
-
X = new u().parseFromString(St,
|
|
3073
|
+
X = new u().parseFromString(St, cn);
|
|
3074
3074
|
} catch {
|
|
3075
3075
|
}
|
|
3076
3076
|
if (!X || !X.documentElement) {
|
|
@@ -3108,7 +3108,7 @@ function Wo() {
|
|
|
3108
3108
|
if (pe(A.uponSanitizeElement, w, {
|
|
3109
3109
|
tagName: Q,
|
|
3110
3110
|
allowedTags: W
|
|
3111
|
-
}), w.hasChildNodes() && !ua(w.firstElementChild) && $t(/<[/\w]/g, w.innerHTML) && $t(/<[/\w]/g, w.textContent) || w.nodeType ===
|
|
3111
|
+
}), w.hasChildNodes() && !ua(w.firstElementChild) && $t(/<[/\w]/g, w.innerHTML) && $t(/<[/\w]/g, w.textContent) || w.nodeType === mn.progressingInstruction || z && w.nodeType === mn.comment && $t(/<[/\w]/g, w.data))
|
|
3112
3112
|
return re(w), !0;
|
|
3113
3113
|
if (!W[Q] || Y[Q]) {
|
|
3114
3114
|
if (!Y[Q] && pa(Q) && (j.tagNameCheck instanceof RegExp && $t(j.tagNameCheck, Q) || j.tagNameCheck instanceof Function && j.tagNameCheck(Q)))
|
|
@@ -3125,13 +3125,13 @@ function Wo() {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
return re(w), !0;
|
|
3127
3127
|
}
|
|
3128
|
-
return w instanceof c && !
|
|
3129
|
-
X =
|
|
3130
|
-
}), w.textContent !== X && (
|
|
3128
|
+
return w instanceof c && !sl(w) || (Q === "noscript" || Q === "noembed" || Q === "noframes") && $t(/<\/no(script|embed|frames)/i, w.innerHTML) ? (re(w), !0) : (B && w.nodeType === mn.text && (X = w.textContent, Jn([H, N, M], (St) => {
|
|
3129
|
+
X = pn(X, St, " ");
|
|
3130
|
+
}), w.textContent !== X && (dn(t.removed, {
|
|
3131
3131
|
element: w.cloneNode()
|
|
3132
3132
|
}), w.textContent = X)), pe(A.afterSanitizeElements, w, null), !1);
|
|
3133
3133
|
}, da = function(w, X, Q) {
|
|
3134
|
-
if (Ft && (X === "id" || X === "name") && (Q in e || Q in
|
|
3134
|
+
if (Ft && (X === "id" || X === "name") && (Q in e || Q in nl))
|
|
3135
3135
|
return !1;
|
|
3136
3136
|
if (!(ct && !K[X] && $t(O, X))) {
|
|
3137
3137
|
if (!(ot && $t(P, X))) {
|
|
@@ -3145,9 +3145,9 @@ function Wo() {
|
|
|
3145
3145
|
X === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && $t(j.tagNameCheck, Q) || j.tagNameCheck instanceof Function && j.tagNameCheck(Q)))
|
|
3146
3146
|
) return !1;
|
|
3147
3147
|
} else if (!_s[X]) {
|
|
3148
|
-
if (!$t(q,
|
|
3148
|
+
if (!$t(q, pn(Q, k, ""))) {
|
|
3149
3149
|
if (!((X === "src" || X === "xlink:href" || X === "href") && w !== "script" && pd(Q, "data:") === 0 && na[w])) {
|
|
3150
|
-
if (!(st && !$t($,
|
|
3150
|
+
if (!(st && !$t($, pn(Q, k, "")))) {
|
|
3151
3151
|
if (Q)
|
|
3152
3152
|
return !1;
|
|
3153
3153
|
}
|
|
@@ -3179,25 +3179,25 @@ function Wo() {
|
|
|
3179
3179
|
name: kt,
|
|
3180
3180
|
namespaceURI: Bt,
|
|
3181
3181
|
value: oe
|
|
3182
|
-
} = It,
|
|
3182
|
+
} = It, un = wt(kt);
|
|
3183
3183
|
let Pt = kt === "value" ? oe : fd(oe);
|
|
3184
|
-
if (Q.attrName =
|
|
3185
|
-
|
|
3184
|
+
if (Q.attrName = un, Q.attrValue = Pt, Q.keepAttr = !0, Q.forceKeepAttr = void 0, pe(A.uponSanitizeAttribute, w, Q), Pt = Q.attrValue, on && (un === "id" || un === "name") && (Hn(kt, w), Pt = ln + Pt), z && $t(/((--!?|])>)|<\/(style|title)/i, Pt)) {
|
|
3185
|
+
Hn(kt, w);
|
|
3186
3186
|
continue;
|
|
3187
3187
|
}
|
|
3188
|
-
if (Q.forceKeepAttr || (
|
|
3188
|
+
if (Q.forceKeepAttr || (Hn(kt, w), !Q.keepAttr))
|
|
3189
3189
|
continue;
|
|
3190
3190
|
if (!it && $t(/\/>/i, Pt)) {
|
|
3191
|
-
|
|
3191
|
+
Hn(kt, w);
|
|
3192
3192
|
continue;
|
|
3193
3193
|
}
|
|
3194
3194
|
B && Jn([H, N, M], (ma) => {
|
|
3195
|
-
Pt =
|
|
3195
|
+
Pt = pn(Pt, ma, " ");
|
|
3196
3196
|
});
|
|
3197
3197
|
const ga = wt(w.nodeName);
|
|
3198
|
-
if (da(ga,
|
|
3198
|
+
if (da(ga, un, Pt)) {
|
|
3199
3199
|
if (E && typeof p == "object" && typeof p.getAttributeType == "function" && !Bt)
|
|
3200
|
-
switch (p.getAttributeType(ga,
|
|
3200
|
+
switch (p.getAttributeType(ga, un)) {
|
|
3201
3201
|
case "TrustedHTML": {
|
|
3202
3202
|
Pt = E.createHTML(Pt);
|
|
3203
3203
|
break;
|
|
@@ -3214,7 +3214,7 @@ function Wo() {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
}
|
|
3216
3216
|
pe(A.afterSanitizeAttributes, w, null);
|
|
3217
|
-
},
|
|
3217
|
+
}, il = function tt(w) {
|
|
3218
3218
|
let X = null;
|
|
3219
3219
|
const Q = ca(w);
|
|
3220
3220
|
for (pe(A.beforeSanitizeShadowDOM, w, null); X = Q.nextNode(); )
|
|
@@ -3226,19 +3226,19 @@ function Wo() {
|
|
|
3226
3226
|
if (Is = !tt, Is && (tt = "<!-->"), typeof tt != "string" && !ua(tt))
|
|
3227
3227
|
if (typeof tt.toString == "function") {
|
|
3228
3228
|
if (tt = tt.toString(), typeof tt != "string")
|
|
3229
|
-
throw
|
|
3229
|
+
throw fn("dirty is not a string, aborting");
|
|
3230
3230
|
} else
|
|
3231
|
-
throw
|
|
3231
|
+
throw fn("toString is not a function");
|
|
3232
3232
|
if (!t.isSupported)
|
|
3233
3233
|
return tt;
|
|
3234
3234
|
if (Mt || Ds(w), t.removed = [], typeof tt == "string" && (ne = !1), ne) {
|
|
3235
3235
|
if (tt.nodeName) {
|
|
3236
3236
|
const oe = wt(tt.nodeName);
|
|
3237
3237
|
if (!W[oe] || Y[oe])
|
|
3238
|
-
throw
|
|
3238
|
+
throw fn("root node is forbidden and cannot be sanitized in-place");
|
|
3239
3239
|
}
|
|
3240
3240
|
} else if (tt instanceof o)
|
|
3241
|
-
X = la("<!---->"), Q = X.ownerDocument.importNode(tt, !0), Q.nodeType ===
|
|
3241
|
+
X = la("<!---->"), Q = X.ownerDocument.importNode(tt, !0), Q.nodeType === mn.element && Q.nodeName === "BODY" || Q.nodeName === "HTML" ? X = Q : X.appendChild(Q);
|
|
3242
3242
|
else {
|
|
3243
3243
|
if (!et && !B && !U && // eslint-disable-next-line unicorn/prefer-includes
|
|
3244
3244
|
tt.indexOf("<") === -1)
|
|
@@ -3249,7 +3249,7 @@ function Wo() {
|
|
|
3249
3249
|
X && Se && re(X.firstChild);
|
|
3250
3250
|
const kt = ca(ne ? tt : X);
|
|
3251
3251
|
for (; St = kt.nextNode(); )
|
|
3252
|
-
ha(St), fa(St), St.content instanceof a &&
|
|
3252
|
+
ha(St), fa(St), St.content instanceof a && il(St.content);
|
|
3253
3253
|
if (ne)
|
|
3254
3254
|
return tt;
|
|
3255
3255
|
if (et) {
|
|
@@ -3261,9 +3261,9 @@ function Wo() {
|
|
|
3261
3261
|
return (Z.shadowroot || Z.shadowrootmode) && (It = R.call(n, It, !0)), It;
|
|
3262
3262
|
}
|
|
3263
3263
|
let Bt = U ? X.outerHTML : X.innerHTML;
|
|
3264
|
-
return U && W["!doctype"] && X.ownerDocument && X.ownerDocument.doctype && X.ownerDocument.doctype.name && $t(
|
|
3264
|
+
return U && W["!doctype"] && X.ownerDocument && X.ownerDocument.doctype && X.ownerDocument.doctype.name && $t(Wo, X.ownerDocument.doctype.name) && (Bt = "<!DOCTYPE " + X.ownerDocument.doctype.name + `>
|
|
3265
3265
|
` + Bt), B && Jn([H, N, M], (oe) => {
|
|
3266
|
-
Bt =
|
|
3266
|
+
Bt = pn(Bt, oe, " ");
|
|
3267
3267
|
}), E && Zt ? E.createHTML(Bt) : Bt;
|
|
3268
3268
|
}, t.setConfig = function() {
|
|
3269
3269
|
let tt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3275,7 +3275,7 @@ function Wo() {
|
|
|
3275
3275
|
const Q = wt(tt), St = wt(w);
|
|
3276
3276
|
return da(Q, St, X);
|
|
3277
3277
|
}, t.addHook = function(tt, w) {
|
|
3278
|
-
typeof w == "function" &&
|
|
3278
|
+
typeof w == "function" && dn(A[tt], w);
|
|
3279
3279
|
}, t.removeHook = function(tt) {
|
|
3280
3280
|
return pr(A[tt]);
|
|
3281
3281
|
}, t.removeHooks = function(tt) {
|
|
@@ -3284,7 +3284,7 @@ function Wo() {
|
|
|
3284
3284
|
A = xr();
|
|
3285
3285
|
}, t;
|
|
3286
3286
|
}
|
|
3287
|
-
var Ki =
|
|
3287
|
+
var Ki = Xo();
|
|
3288
3288
|
const ts = (i) => Ki.sanitize(i, {
|
|
3289
3289
|
USE_PROFILES: {
|
|
3290
3290
|
html: !0,
|
|
@@ -3714,7 +3714,7 @@ const Os = class Os extends dt {
|
|
|
3714
3714
|
this.configs.direction === Be.COLUMN_REVERSE
|
|
3715
3715
|
).classed(
|
|
3716
3716
|
`${Kt}--${o}--layout-alignitems-center`,
|
|
3717
|
-
this.configs.alignItems ===
|
|
3717
|
+
this.configs.alignItems === xl.CENTER
|
|
3718
3718
|
).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
|
|
3719
3719
|
c.enter().append("div").merge(n.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
|
|
3720
3720
|
d.components.forEach((u) => {
|
|
@@ -4031,9 +4031,9 @@ class _d extends dt {
|
|
|
4031
4031
|
const t = this.getComponentContainer(), e = L(this.getOptions(), "legend", "truncation"), n = L(e, "type"), s = L(e, "threshold"), a = L(e, "numCharacter"), r = t.selectAll("div.legend-item p");
|
|
4032
4032
|
r.attr("id", function() {
|
|
4033
4033
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
4034
|
-
}), n !==
|
|
4034
|
+
}), n !== Je.NONE ? r.html(function(o) {
|
|
4035
4035
|
const c = he(o.name);
|
|
4036
|
-
return c.length > s && c.length !== a ?
|
|
4036
|
+
return c.length > s && c.length !== a ? kn(c, n, a) : c;
|
|
4037
4037
|
}) : r.html((o) => he(o.name));
|
|
4038
4038
|
}
|
|
4039
4039
|
addEventListeners() {
|
|
@@ -4045,13 +4045,13 @@ class _d extends dt {
|
|
|
4045
4045
|
const o = D(this);
|
|
4046
4046
|
o.select("div.checkbox").classed("hovered", !0);
|
|
4047
4047
|
const c = o.datum();
|
|
4048
|
-
c.name.length > a.threshold && a.numCharacter < c.name.length && a.type !==
|
|
4048
|
+
c.name.length > a.threshold && a.numCharacter < c.name.length && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
4049
4049
|
event: r,
|
|
4050
4050
|
hoveredElement: o,
|
|
4051
4051
|
content: c.name
|
|
4052
4052
|
});
|
|
4053
4053
|
}).on("mousemove", function(r) {
|
|
4054
|
-
D(this).datum().name.length > a.threshold && a.type !==
|
|
4054
|
+
D(this).datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
4055
4055
|
event: r
|
|
4056
4056
|
});
|
|
4057
4057
|
}).on("click", function() {
|
|
@@ -4062,7 +4062,7 @@ class _d extends dt {
|
|
|
4062
4062
|
t.model.toggleDataLabel(o.name);
|
|
4063
4063
|
}).on("mouseout", function() {
|
|
4064
4064
|
const r = D(this);
|
|
4065
|
-
r.select("div.checkbox").classed("hovered", !1), r.datum().name.length > a.threshold && a.type !==
|
|
4065
|
+
r.select("div.checkbox").classed("hovered", !1), r.datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.HIDE), t.services.events.dispatchEvent(T.Legend.ITEM_MOUSEOUT, {
|
|
4066
4066
|
hoveredElement: r
|
|
4067
4067
|
});
|
|
4068
4068
|
}), e.selectAll("div.legend-item div.checkbox").on("keyup", function(r) {
|
|
@@ -4287,9 +4287,9 @@ class Rd extends dt {
|
|
|
4287
4287
|
}
|
|
4288
4288
|
formatItems(t) {
|
|
4289
4289
|
const e = this.getOptions(), n = L(e, "tooltip", "truncation", "type"), s = L(e, "tooltip", "truncation", "threshold"), a = L(e, "tooltip", "truncation", "numCharacter");
|
|
4290
|
-
return n !==
|
|
4290
|
+
return n !== Je.NONE ? t.map((r) => {
|
|
4291
4291
|
const o = r.labelIcon ? 12 : 0;
|
|
4292
|
-
return r.value = r.value ? this.valueFormatter(r.value, r.label) : r.value, r.label && r.label.length + o > s && (r.label =
|
|
4292
|
+
return r.value = r.value ? this.valueFormatter(r.value, r.label) : r.value, r.label && r.label.length + o > s && (r.label = kn(r.label, n, a)), r.value && r.value.length > s && (r.value = kn(r.value, n, a)), r;
|
|
4293
4293
|
}) : t.map((r) => (r.value = r.value ? this.valueFormatter(r.value, r.label) : r.value, r));
|
|
4294
4294
|
}
|
|
4295
4295
|
getTooltipHTML(t) {
|
|
@@ -4374,7 +4374,7 @@ class Rd extends dt {
|
|
|
4374
4374
|
}
|
|
4375
4375
|
let f = L(t, "detail", "mousePosition");
|
|
4376
4376
|
if (!f)
|
|
4377
|
-
f =
|
|
4377
|
+
f = sn(L(t, "detail", "event"), e);
|
|
4378
4378
|
else {
|
|
4379
4379
|
const m = L(r, "zoomBar", "top", "type"), y = jt.height[m];
|
|
4380
4380
|
o && (f[1] += y + jt.spacerHeight);
|
|
@@ -4406,7 +4406,7 @@ class Rd extends dt {
|
|
|
4406
4406
|
this.positionService.setElement(a, g);
|
|
4407
4407
|
}
|
|
4408
4408
|
}
|
|
4409
|
-
const
|
|
4409
|
+
const en = class en extends dt {
|
|
4410
4410
|
constructor() {
|
|
4411
4411
|
super(...arguments), this.type = "grid-brush", this.renderType = at.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
|
|
4412
4412
|
}
|
|
@@ -4433,15 +4433,15 @@ const tn = class tn extends dt {
|
|
|
4433
4433
|
const g = (x) => {
|
|
4434
4434
|
const b = x[1] - x[0];
|
|
4435
4435
|
let _ = "0," + b.toString();
|
|
4436
|
-
const C = Math.floor(c /
|
|
4436
|
+
const C = Math.floor(c / en.DASH_LENGTH), G = C * en.DASH_LENGTH;
|
|
4437
4437
|
for (let R = 0; R < C; R++)
|
|
4438
|
-
_ += "," +
|
|
4438
|
+
_ += "," + en.DASH_LENGTH;
|
|
4439
4439
|
_ += "," + (c - G), C % 2 === 1 && (_ += ",0"), _ += "," + b.toString(), _ += "," + c.toString(), p.attr("stroke-dasharray", _);
|
|
4440
4440
|
}, m = (x) => {
|
|
4441
4441
|
const b = x.selection;
|
|
4442
4442
|
b === null || b[0] === b[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), g(b));
|
|
4443
4443
|
}, y = (x, b) => {
|
|
4444
|
-
const _ =
|
|
4444
|
+
const _ = Ll().range([0, o]).domain(f);
|
|
4445
4445
|
let C = [_.invert(x), _.invert(b)];
|
|
4446
4446
|
C[0].valueOf() === C[1].valueOf() && (C = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== C[0].valueOf() || f[1].valueOf() !== C[1].valueOf()) && this.services.zoom.handleDomainChange(C);
|
|
4447
4447
|
};
|
|
@@ -4457,7 +4457,7 @@ const tn = class tn extends dt {
|
|
|
4457
4457
|
const E = this.services.zoom.getZoomRatio();
|
|
4458
4458
|
s.on("click", function(x) {
|
|
4459
4459
|
if (x.shiftKey) {
|
|
4460
|
-
const b = this.services.domUtils.getHolder(), _ =
|
|
4460
|
+
const b = this.services.domUtils.getHolder(), _ = sn(a.node(), b)[0];
|
|
4461
4461
|
let C = _ - o * E / 2;
|
|
4462
4462
|
C < 0 && (C = 0);
|
|
4463
4463
|
let G = _ + o * E / 2;
|
|
@@ -4467,8 +4467,8 @@ const tn = class tn extends dt {
|
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
4469
|
};
|
|
4470
|
-
|
|
4471
|
-
let Lr =
|
|
4470
|
+
en.DASH_LENGTH = 4;
|
|
4471
|
+
let Lr = en;
|
|
4472
4472
|
class om extends dt {
|
|
4473
4473
|
constructor() {
|
|
4474
4474
|
super(...arguments), this.type = "zoom-bar", this.renderType = at.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = ho(), this.highlightStrokeWidth = 1;
|
|
@@ -4520,14 +4520,14 @@ class om extends dt {
|
|
|
4520
4520
|
v && v[0] && v[1] && (v[0] = new Date(v[0]), v[1] = new Date(v[1])), v && !(S && S[0].valueOf() === v[0].valueOf() && S[1].valueOf() === v[1].valueOf()) ? this.model.set(
|
|
4521
4521
|
{
|
|
4522
4522
|
// use a new object instead of newInitialZoomDomain
|
|
4523
|
-
initialZoomDomain:
|
|
4524
|
-
zoomDomain: v ?
|
|
4523
|
+
initialZoomDomain: nn([], v),
|
|
4524
|
+
zoomDomain: v ? nn([], v) : y
|
|
4525
4525
|
},
|
|
4526
4526
|
{ skipUpdate: !0 }
|
|
4527
4527
|
) : v === null && S !== null && this.model.set(
|
|
4528
4528
|
{
|
|
4529
4529
|
initialZoomDomain: null,
|
|
4530
|
-
zoomDomain:
|
|
4530
|
+
zoomDomain: nn([], y)
|
|
4531
4531
|
},
|
|
4532
4532
|
{ skipUpdate: !0 }
|
|
4533
4533
|
), this.xScale.range([l, c]).domain(y), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Ls(m, (b) => b.value));
|
|
@@ -4631,7 +4631,7 @@ class om extends dt {
|
|
|
4631
4631
|
compensateDataForDefaultDomain(t, e) {
|
|
4632
4632
|
if (!t || t.length < 2)
|
|
4633
4633
|
return;
|
|
4634
|
-
const n =
|
|
4634
|
+
const n = dl(t), s = this.services.cartesianScales.getDomainIdentifier(), a = this.services.cartesianScales.getRangeIdentifier();
|
|
4635
4635
|
if (Number(e[0]) < Number(n[0][s])) {
|
|
4636
4636
|
const r = {};
|
|
4637
4637
|
r[s] = e[0], r[a] = 0, n.unshift(r);
|
|
@@ -4648,7 +4648,7 @@ class om extends dt {
|
|
|
4648
4648
|
"zoomBar",
|
|
4649
4649
|
J.TOP,
|
|
4650
4650
|
"type"
|
|
4651
|
-
), r = jt.height[a], o =
|
|
4651
|
+
), r = jt.height[a], o = Nn()([
|
|
4652
4652
|
[e, r],
|
|
4653
4653
|
[n, r]
|
|
4654
4654
|
]);
|
|
@@ -4756,7 +4756,7 @@ class lm extends dt {
|
|
|
4756
4756
|
).classed("hidden", !0);
|
|
4757
4757
|
}
|
|
4758
4758
|
setThresholdLabelPosition({ event: t, datum: e }) {
|
|
4759
|
-
const n = this.services.domUtils.getHolder(), s =
|
|
4759
|
+
const n = this.services.domUtils.getHolder(), s = sn(t, n), a = e.valueFormatter ? e.valueFormatter(e.value) : this.getFormattedValue(e);
|
|
4760
4760
|
this.label.html(he(`${e.label || "Threshold"}: ${a}`)).style("background-color", e.fillColor);
|
|
4761
4761
|
const r = this.label.node(), o = this.positionService.findBestPlacementAt(
|
|
4762
4762
|
{
|
|
@@ -4995,7 +4995,7 @@ function Nd(i) {
|
|
|
4995
4995
|
function Pd(i, t) {
|
|
4996
4996
|
return t - 1 - i.height;
|
|
4997
4997
|
}
|
|
4998
|
-
function
|
|
4998
|
+
function Yo(i, t) {
|
|
4999
4999
|
return i.sourceLinks.length ? i.depth : t - 1;
|
|
5000
5000
|
}
|
|
5001
5001
|
function es(i) {
|
|
@@ -5039,7 +5039,7 @@ function Cr({ nodes: i }) {
|
|
|
5039
5039
|
}
|
|
5040
5040
|
}
|
|
5041
5041
|
function Hd() {
|
|
5042
|
-
let i = 0, t = 0, e = 1, n = 1, s = 24, a = 8, r, o = $d, c =
|
|
5042
|
+
let i = 0, t = 0, e = 1, n = 1, s = 24, a = 8, r, o = $d, c = Yo, l, h, d = Vd, u = Gd, p = 6;
|
|
5043
5043
|
function f() {
|
|
5044
5044
|
const O = { nodes: d.apply(null, arguments), links: u.apply(null, arguments) };
|
|
5045
5045
|
return g(O), m(O), y(O), S(O), x(O), Cr(O), O;
|
|
@@ -5239,10 +5239,10 @@ function Gi() {
|
|
|
5239
5239
|
this._x0 = this._y0 = // start of current subpath
|
|
5240
5240
|
this._x1 = this._y1 = null, this._ = "";
|
|
5241
5241
|
}
|
|
5242
|
-
function
|
|
5242
|
+
function Zo() {
|
|
5243
5243
|
return new Gi();
|
|
5244
5244
|
}
|
|
5245
|
-
Gi.prototype =
|
|
5245
|
+
Gi.prototype = Zo.prototype = {
|
|
5246
5246
|
constructor: Gi,
|
|
5247
5247
|
moveTo: function(i, t) {
|
|
5248
5248
|
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +t);
|
|
@@ -5307,7 +5307,7 @@ function Yd(i) {
|
|
|
5307
5307
|
var t = Wd, e = Xd, n = zd, s = Ud, a = null;
|
|
5308
5308
|
function r() {
|
|
5309
5309
|
var o, c = Fd.call(arguments), l = t.apply(this, c), h = e.apply(this, c);
|
|
5310
|
-
if (a || (a = o =
|
|
5310
|
+
if (a || (a = o = Zo()), i(a, +n.apply(this, (c[0] = l, c)), +s.apply(this, c), +n.apply(this, (c[0] = h, c)), +s.apply(this, c)), o) return a = null, o + "" || null;
|
|
5311
5311
|
}
|
|
5312
5312
|
return r.source = function(o) {
|
|
5313
5313
|
return arguments.length ? (t = o, r) : t;
|
|
@@ -5360,7 +5360,7 @@ class hm extends dt {
|
|
|
5360
5360
|
let c = se.minNodePadding;
|
|
5361
5361
|
a.alluvial.nodePadding > se.minNodePadding && (c = a.alluvial.nodePadding);
|
|
5362
5362
|
const l = L(a, "alluvial", "nodeAlignment");
|
|
5363
|
-
let h =
|
|
5363
|
+
let h = Yo;
|
|
5364
5364
|
l === te.LEFT ? h = Nd : l === te.RIGHT && (h = Pd);
|
|
5365
5365
|
const d = Hd().nodeId((v) => v.name).nodeWidth(se.nodeWidth).nodePadding(c).nodeAlign(h).extent([
|
|
5366
5366
|
[2, 30],
|
|
@@ -5828,7 +5828,7 @@ class fm extends dt {
|
|
|
5828
5828
|
a,
|
|
5829
5829
|
r,
|
|
5830
5830
|
n.getOrientation()
|
|
5831
|
-
), l = this.getOptions(), h =
|
|
5831
|
+
), l = this.getOptions(), h = Nn().x(o).y(c).curve(s.getD3Curve()).defined((f) => {
|
|
5832
5832
|
const g = n.getRangeIdentifier(f), m = f[g];
|
|
5833
5833
|
return m != null;
|
|
5834
5834
|
});
|
|
@@ -5847,7 +5847,7 @@ class fm extends dt {
|
|
|
5847
5847
|
[g]: E[g],
|
|
5848
5848
|
[v]: E[1]
|
|
5849
5849
|
})),
|
|
5850
|
-
hidden: !
|
|
5850
|
+
hidden: !wc(y, (E) => E[0] !== E[1])
|
|
5851
5851
|
};
|
|
5852
5852
|
});
|
|
5853
5853
|
} else
|
|
@@ -5886,7 +5886,7 @@ const Ir = 5;
|
|
|
5886
5886
|
function Qd(i, t) {
|
|
5887
5887
|
return i > t - Ir && i < t + Ir;
|
|
5888
5888
|
}
|
|
5889
|
-
class
|
|
5889
|
+
class qo extends dt {
|
|
5890
5890
|
constructor() {
|
|
5891
5891
|
super(...arguments), this.type = "ruler", this.renderType = at.SVG, this.isXGridEnabled = L(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = L(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
|
|
5892
5892
|
}
|
|
@@ -5951,12 +5951,12 @@ class Zo extends dt {
|
|
|
5951
5951
|
this.isEventListenerAdded = !0;
|
|
5952
5952
|
const t = this, e = this.services.domUtils.getHolder(), n = this.model.getDisplayData();
|
|
5953
5953
|
let s = function(a) {
|
|
5954
|
-
const r =
|
|
5954
|
+
const r = sn(a, t.parent.node());
|
|
5955
5955
|
t.showRuler(a, r);
|
|
5956
5956
|
};
|
|
5957
5957
|
if (n.length > 100) {
|
|
5958
5958
|
const a = n.length % 50 * 12.5;
|
|
5959
|
-
s =
|
|
5959
|
+
s = pl(
|
|
5960
5960
|
function(r) {
|
|
5961
5961
|
const { mousePosition: o } = this;
|
|
5962
5962
|
t.showRuler(r, o);
|
|
@@ -6214,7 +6214,7 @@ class Ji extends dt {
|
|
|
6214
6214
|
), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(T.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.removeEventListener(T.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
|
|
6215
6215
|
}
|
|
6216
6216
|
}
|
|
6217
|
-
class
|
|
6217
|
+
class jo extends dt {
|
|
6218
6218
|
constructor(t, e, n) {
|
|
6219
6219
|
super(t, e, n), this.type = "axes", this.renderType = at.SVG, this.truncation = {
|
|
6220
6220
|
[J.LEFT]: !1,
|
|
@@ -6242,10 +6242,10 @@ class qo extends dt {
|
|
|
6242
6242
|
u = Ui;
|
|
6243
6243
|
break;
|
|
6244
6244
|
case J.RIGHT:
|
|
6245
|
-
u =
|
|
6245
|
+
u = $c;
|
|
6246
6246
|
break;
|
|
6247
6247
|
case J.TOP:
|
|
6248
|
-
u =
|
|
6248
|
+
u = Pc;
|
|
6249
6249
|
break;
|
|
6250
6250
|
}
|
|
6251
6251
|
c.attr("aria-label", `${e} axis`);
|
|
@@ -6264,10 +6264,10 @@ class qo extends dt {
|
|
|
6264
6264
|
const P = this.scaleType || m.scaleType || Ct.LINEAR, $ = u(d).tickSizeOuter(0);
|
|
6265
6265
|
if (d.ticks) {
|
|
6266
6266
|
let Y;
|
|
6267
|
-
if (A ? Y = b : (Y =
|
|
6267
|
+
if (A ? Y = b : (Y = Ke.ticks.number, S && (Y = this.getNumberOfFittingTicks(
|
|
6268
6268
|
o,
|
|
6269
6269
|
O,
|
|
6270
|
-
|
|
6270
|
+
Ke.ticks.verticalSpaceRatio
|
|
6271
6271
|
))), d.ticks().length === 1 && d.ticks()[0] === 0 && (Y = 0), $.ticks(Y), y)
|
|
6272
6272
|
if (!d.ticks(Y).length)
|
|
6273
6273
|
$.tickValues([]);
|
|
@@ -6374,7 +6374,7 @@ class qo extends dt {
|
|
|
6374
6374
|
})
|
|
6375
6375
|
)), f = f.call($), ot.selectAll(".tick").data($.tickValues(), d).order().select("text").attr(
|
|
6376
6376
|
"class",
|
|
6377
|
-
(st, it) =>
|
|
6377
|
+
(st, it) => fl(st, it, $.tickValues(), Y, K) ? "tick-label--primary" : "tick-label"
|
|
6378
6378
|
);
|
|
6379
6379
|
} else
|
|
6380
6380
|
!t || !p ? f = f.call($) : f = f.transition().call(
|
|
@@ -6410,19 +6410,19 @@ class qo extends dt {
|
|
|
6410
6410
|
}), ot.remove();
|
|
6411
6411
|
}
|
|
6412
6412
|
Y ? (A || ($.ticks(
|
|
6413
|
-
this.getNumberOfFittingTicks(r, O,
|
|
6413
|
+
this.getNumberOfFittingTicks(r, O, Ke.ticks.horizontalSpaceRatio)
|
|
6414
6414
|
), g.call($), f.call($)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === J.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
6415
6415
|
}
|
|
6416
|
-
if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), g.selectAll("g.tick").attr("aria-label", (Y) => Y), C !==
|
|
6416
|
+
if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), g.selectAll("g.tick").attr("aria-label", (Y) => Y), C !== Je.NONE && E === Ct.LABELS && !_) {
|
|
6417
6417
|
const Y = this.services.cartesianScales.getScaleDomain(e);
|
|
6418
6418
|
if (Y.length > 0) {
|
|
6419
6419
|
const K = a.select(`g.axis.${e} g.ticks g.tick`).html();
|
|
6420
6420
|
c.selectAll("g.ticks g.tick").html(K);
|
|
6421
6421
|
const ot = this;
|
|
6422
6422
|
c.selectAll("g.tick text").data(Y).text(function(ct) {
|
|
6423
|
-
return ct.length > G ? (ot.truncation[e] = !0,
|
|
6423
|
+
return ct.length > G ? (ot.truncation[e] = !0, kn(ct, C, R)) : ct;
|
|
6424
6424
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(Y).text(function(ct) {
|
|
6425
|
-
return ct.length > G ?
|
|
6425
|
+
return ct.length > G ? kn(ct, C, R) : ct;
|
|
6426
6426
|
}), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(Y);
|
|
6427
6427
|
}
|
|
6428
6428
|
}
|
|
@@ -6472,14 +6472,14 @@ class qo extends dt {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
getNumberOfFittingTicks(t, e, n) {
|
|
6474
6474
|
const s = Math.floor(t / (e * n));
|
|
6475
|
-
return oo(s, 2,
|
|
6475
|
+
return oo(s, 2, Ke.ticks.number);
|
|
6476
6476
|
}
|
|
6477
6477
|
destroy() {
|
|
6478
6478
|
const t = this.getComponentContainer(), { position: e } = this.configs;
|
|
6479
6479
|
I.appendOrSelect(t, `g.axis.${e}`).selectAll("g.tick text").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
class tp extends
|
|
6482
|
+
class tp extends jo {
|
|
6483
6483
|
constructor(t, e, n) {
|
|
6484
6484
|
super(t, e, n);
|
|
6485
6485
|
}
|
|
@@ -6509,7 +6509,7 @@ class tp extends qo {
|
|
|
6509
6509
|
p = -(h / 2), f = d / 2 - 2, a.truncation[e] && (p = -h, u.attr("transform", "rotate(-45)"));
|
|
6510
6510
|
break;
|
|
6511
6511
|
}
|
|
6512
|
-
u.attr("x", p -
|
|
6512
|
+
u.attr("x", p - Ke.hover.rectanglePadding).attr("y", f).attr("width", h + Ke.hover.rectanglePadding * 2).attr("height", d).lower();
|
|
6513
6513
|
}), this.addEventListeners();
|
|
6514
6514
|
}
|
|
6515
6515
|
addEventListeners() {
|
|
@@ -6605,7 +6605,7 @@ class gm extends dt {
|
|
|
6605
6605
|
position: c,
|
|
6606
6606
|
axes: this.configs.axes,
|
|
6607
6607
|
margins: this.margins
|
|
6608
|
-
}, h = this.model.axisFlavor ===
|
|
6608
|
+
}, h = this.model.axisFlavor === Sl.DEFAULT ? new jo(this.model, this.services, l) : new tp(this.model, this.services, l);
|
|
6609
6609
|
h.setModel(this.model), h.setServices(this.services), h.setParent(this.parent), this.children[c] = h;
|
|
6610
6610
|
}
|
|
6611
6611
|
}), Object.keys(this.children).forEach((o) => {
|
|
@@ -6651,13 +6651,13 @@ class ep extends dt {
|
|
|
6651
6651
|
e ? this.renderSkeleton(e) : this.removeSkeleton();
|
|
6652
6652
|
}
|
|
6653
6653
|
renderSkeleton(t) {
|
|
6654
|
-
if (this.configs.skeleton ===
|
|
6654
|
+
if (this.configs.skeleton === zn.GRID)
|
|
6655
6655
|
this.renderGridSkeleton(t);
|
|
6656
|
-
else if (this.configs.skeleton ===
|
|
6656
|
+
else if (this.configs.skeleton === zn.VERT_OR_HORIZ)
|
|
6657
6657
|
this.renderVertOrHorizSkeleton(t);
|
|
6658
|
-
else if (this.configs.skeleton ===
|
|
6658
|
+
else if (this.configs.skeleton === zn.PIE)
|
|
6659
6659
|
this.renderPieSkeleton(t);
|
|
6660
|
-
else if (this.configs.skeleton ===
|
|
6660
|
+
else if (this.configs.skeleton === zn.DONUT)
|
|
6661
6661
|
this.renderDonutSkeleton(t);
|
|
6662
6662
|
else
|
|
6663
6663
|
throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
|
|
@@ -6713,7 +6713,7 @@ class ep extends dt {
|
|
|
6713
6713
|
useAttrs: !0
|
|
6714
6714
|
}), o = I.appendOrSelect(s, "svg.chart-skeleton").attr("width", a).attr("height", r), c = e === 0 ? "pie" : "donut", l = L(this.getOptions(), c, "alignment");
|
|
6715
6715
|
I.appendOrSelect(o, "rect.chart-skeleton-area-container").attr("width", a).attr("height", r).attr("fill", "none");
|
|
6716
|
-
const h =
|
|
6716
|
+
const h = Rn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(Et.radiusOffset), u = t + (Math.min(a, r) - t * 2) / 2, p = I.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
|
|
6717
6717
|
"fill",
|
|
6718
6718
|
n ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
|
|
6719
6719
|
);
|
|
@@ -6743,7 +6743,7 @@ class ep extends dt {
|
|
|
6743
6743
|
`;
|
|
6744
6744
|
u.html(p), f();
|
|
6745
6745
|
function f() {
|
|
6746
|
-
u.attr("gradientTransform", `translate(${l - 3 * 0.2 * c}, 0)`).transition().duration(2e3).delay(1e3).ease(
|
|
6746
|
+
u.attr("gradientTransform", `translate(${l - 3 * 0.2 * c}, 0)`).transition().duration(2e3).delay(1e3).ease(Bc).attr("gradientTransform", `translate(${h + 3 * 0.2 * c}, 0)`).on("end", f);
|
|
6747
6747
|
}
|
|
6748
6748
|
}
|
|
6749
6749
|
removeSkeleton() {
|
|
@@ -7027,7 +7027,7 @@ class vm extends dt {
|
|
|
7027
7027
|
const [c, l] = this.services.cartesianScales.getDomainScale().range();
|
|
7028
7028
|
let h = +n(0) + 0.5;
|
|
7029
7029
|
h || (h = n.range()[0]);
|
|
7030
|
-
const d =
|
|
7030
|
+
const d = gl(
|
|
7031
7031
|
{
|
|
7032
7032
|
x0: c,
|
|
7033
7033
|
x1: l,
|
|
@@ -7473,7 +7473,7 @@ function cp(i, t) {
|
|
|
7473
7473
|
})
|
|
7474
7474
|
};
|
|
7475
7475
|
}
|
|
7476
|
-
class xm extends
|
|
7476
|
+
class xm extends qo {
|
|
7477
7477
|
constructor() {
|
|
7478
7478
|
super(...arguments), this.type = "ruler-binned", this.renderType = at.SVG;
|
|
7479
7479
|
}
|
|
@@ -7524,7 +7524,7 @@ class xm extends Zo {
|
|
|
7524
7524
|
this.hideRuler();
|
|
7525
7525
|
}
|
|
7526
7526
|
}
|
|
7527
|
-
class Sm extends
|
|
7527
|
+
class Sm extends qo {
|
|
7528
7528
|
formatTooltipData(t) {
|
|
7529
7529
|
return t.reverse();
|
|
7530
7530
|
}
|
|
@@ -7606,7 +7606,7 @@ class _m extends _d {
|
|
|
7606
7606
|
n.html("");
|
|
7607
7607
|
return;
|
|
7608
7608
|
}
|
|
7609
|
-
const h = !Fr(a), d =
|
|
7609
|
+
const h = !Fr(a), d = ml(this.model.getDisplayData()), u = !(s <= At.color.barWidth), p = u ? At.color.barWidth : s, f = I.appendOrSelect(n, "g.legend"), g = I.appendOrSelect(f, "g.legend-axis");
|
|
7610
7610
|
if (c) {
|
|
7611
7611
|
const R = I.appendOrSelect(n, "g.legend-title");
|
|
7612
7612
|
I.appendOrSelect(R, "text").text(c).attr("dy", "0.7em"), f.attr("transform", "translate(0, 16)");
|
|
@@ -7622,7 +7622,7 @@ class _m extends _d {
|
|
|
7622
7622
|
y.push(
|
|
7623
7623
|
r === Vs.LINEAR ? `stop-color-${m}-${o}-${R}` : `fill-${m}-${o}-${R}`
|
|
7624
7624
|
);
|
|
7625
|
-
const v = Wr(d[0], d[1]), E =
|
|
7625
|
+
const v = Wr(d[0], d[1]), E = Hc(v, 3), x = Re().domain(d).range([0, p]), b = Ui(x).tickSize(0).tickValues(E), { code: _, number: C } = L(e, "locale");
|
|
7626
7626
|
b.tickFormat((R) => C(R, _));
|
|
7627
7627
|
let G;
|
|
7628
7628
|
switch (r) {
|
|
@@ -7804,7 +7804,7 @@ class Rm extends dt {
|
|
|
7804
7804
|
transition: n,
|
|
7805
7805
|
name: "legend-hover-circlepack"
|
|
7806
7806
|
})
|
|
7807
|
-
).attr("opacity", (n) => n.data.dataGroupName === e.datum().name ? 1 :
|
|
7807
|
+
).attr("opacity", (n) => n.data.dataGroupName === e.datum().name ? 1 : hn.circles.fillOpacity);
|
|
7808
7808
|
}, this.handleLegendMouseOut = () => {
|
|
7809
7809
|
this.parent.selectAll("circle.node").transition("legend-mouseout-circlepack").call(
|
|
7810
7810
|
(t) => this.services.transitions.setupTransition({
|
|
@@ -7829,7 +7829,7 @@ class Rm extends dt {
|
|
|
7829
7829
|
let a = this.model.getDisplayData();
|
|
7830
7830
|
const r = this.model.hasParentNode(), o = this.model.getHierarchyLevel(), c = this.getOptions(), l = L(c, "canvasZoom", "enabled");
|
|
7831
7831
|
r && L(a, 0, "children") && (a = L(a, 0, "children"));
|
|
7832
|
-
const h =
|
|
7832
|
+
const h = Dn({ children: a }).sum((g) => g.value).sort((g, m) => m.value - g.value), u = Ih().size([n, s]).padding((g) => g.depth >= 1 ? hn.padding.children + 3 : hn.padding.mainGroup + 3)(h).descendants().splice(1).filter((g) => g.depth <= o), p = e.selectAll("circle.node").data(u);
|
|
7833
7833
|
p.exit().attr("width", 0).attr("height", 0).remove();
|
|
7834
7834
|
const f = p.enter().append("circle").classed("node", !0);
|
|
7835
7835
|
f.merge(p).attr("class", (g) => {
|
|
@@ -7844,7 +7844,7 @@ class Rm extends dt {
|
|
|
7844
7844
|
transition: g,
|
|
7845
7845
|
name: "circlepack-leaf-update-enter"
|
|
7846
7846
|
})
|
|
7847
|
-
).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity",
|
|
7847
|
+
).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", hn.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f, Bn), this.setBackgroundListeners()), r || this.addLegendListeners(), this.addEventListeners();
|
|
7848
7848
|
}
|
|
7849
7849
|
// turn off the highlight class on children circles
|
|
7850
7850
|
unhighlightChildren(t) {
|
|
@@ -7854,7 +7854,7 @@ class Rm extends dt {
|
|
|
7854
7854
|
// highlight the children circles with a stroke
|
|
7855
7855
|
highlightChildren(t) {
|
|
7856
7856
|
const e = t.map((n) => n.data);
|
|
7857
|
-
this.parent.selectAll("circle.node").filter((n) => e.some((s) => s === n.data) && n.depth > 1).style("stroke",
|
|
7857
|
+
this.parent.selectAll("circle.node").filter((n) => e.some((s) => s === n.data) && n.depth > 1).style("stroke", hn.circles.hover.stroke);
|
|
7858
7858
|
}
|
|
7859
7859
|
getZoomClass(t) {
|
|
7860
7860
|
return this.model.getHierarchyLevel() === 3 && this.focal && (t.data === this.focal.data || this.focal.children.some((e) => e.data === t.data)) ? "focal" : "non-focal";
|
|
@@ -7869,7 +7869,7 @@ class Rm extends dt {
|
|
|
7869
7869
|
setBackgroundListeners() {
|
|
7870
7870
|
const t = D(this.services.domUtils.getMainContainer()), e = this, n = this.parent.selectAll("circle.node");
|
|
7871
7871
|
t.on("click", () => {
|
|
7872
|
-
e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n,
|
|
7872
|
+
e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Bn);
|
|
7873
7873
|
});
|
|
7874
7874
|
}
|
|
7875
7875
|
// Zoom icon to be appended to the label in the tooltip
|
|
@@ -7955,10 +7955,10 @@ class Rm extends dt {
|
|
|
7955
7955
|
const s = D(this), a = s.classed("non-focal"), r = L(t.model.getOptions(), "canvasZoom", "enabled");
|
|
7956
7956
|
if (r && t.model.getHierarchyLevel() > 2) {
|
|
7957
7957
|
const o = t.parent.selectAll("circle.node");
|
|
7958
|
-
D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o,
|
|
7958
|
+
D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Bn);
|
|
7959
7959
|
} else if (n.depth === 2 && n.children && !a && r) {
|
|
7960
7960
|
const o = t.parent.selectAll("circle.node");
|
|
7961
|
-
D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o,
|
|
7961
|
+
D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Bn), e.stopPropagation();
|
|
7962
7962
|
}
|
|
7963
7963
|
t.services.events.dispatchEvent(T.CirclePack.CIRCLE_CLICK, {
|
|
7964
7964
|
event: e,
|
|
@@ -8012,7 +8012,7 @@ class hp extends dt {
|
|
|
8012
8012
|
}), s = this.getOptions(), { groupMapsTo: a } = s.data, { valueMapsTo: r } = s.pie;
|
|
8013
8013
|
this.isRendering = !0;
|
|
8014
8014
|
const o = this.model.getDisplayData().filter((M) => M[r] > 0), c = this.computeRadius();
|
|
8015
|
-
this.arc =
|
|
8015
|
+
this.arc = Rn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Rn().innerRadius(this.getInnerRadius()).outerRadius(c + Et.hoverArc.outerRadiusOffset);
|
|
8016
8016
|
const h = td().value((M) => M[r]).sort(L(s, "pie", "sortFunction")).padAngle(Et.padAngle)(o), u = I.appendOrSelect(n, "g.slices").attr("role", lt.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (M) => M.data[a]);
|
|
8017
8017
|
u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
|
|
8018
8018
|
"class",
|
|
@@ -8135,7 +8135,7 @@ class hp extends dt {
|
|
|
8135
8135
|
});
|
|
8136
8136
|
}).on("mouseout", function(e, n) {
|
|
8137
8137
|
const s = D(this);
|
|
8138
|
-
|
|
8138
|
+
Tc(() => {
|
|
8139
8139
|
t.isRendering || s.classed("hovered", !1).transition("pie_slice_mouseout").call(
|
|
8140
8140
|
(a) => t.services.transitions.setupTransition({
|
|
8141
8141
|
transition: a,
|
|
@@ -8197,7 +8197,7 @@ class Dm extends hp {
|
|
|
8197
8197
|
n === null && (n = this.model.getDisplayData().reduce((o, c) => o + c[e.pie.valueMapsTo], 0));
|
|
8198
8198
|
const s = parseInt(t.text().replace(/[, ]+/g, ""), 10) || 0;
|
|
8199
8199
|
let a;
|
|
8200
|
-
s % 1 === 0 && n % 1 === 0 ? a =
|
|
8200
|
+
s % 1 === 0 && n % 1 === 0 ? a = vl : a = Wr;
|
|
8201
8201
|
const r = a(s, n);
|
|
8202
8202
|
return (o) => {
|
|
8203
8203
|
const { numberFormatter: c } = e.donut.center;
|
|
@@ -8228,7 +8228,7 @@ class Nm extends dt {
|
|
|
8228
8228
|
}
|
|
8229
8229
|
getArcRatio() {
|
|
8230
8230
|
const t = this.getOptions();
|
|
8231
|
-
return L(t, "gauge", "type") ===
|
|
8231
|
+
return L(t, "gauge", "type") === Un.FULL ? 1 : 0.5;
|
|
8232
8232
|
}
|
|
8233
8233
|
getArcSize() {
|
|
8234
8234
|
return this.getArcRatio() * Math.PI * 2;
|
|
@@ -8256,7 +8256,7 @@ class Nm extends dt {
|
|
|
8256
8256
|
const e = this.getComponentContainer({
|
|
8257
8257
|
ariaLabel: "gauge graph"
|
|
8258
8258
|
}).attr("width", "100%").attr("height", "100%"), n = this.getOptions(), s = this.getValue(), a = this.getValueRatio(), r = this.getArcSize(), o = this.getStartAngle(), c = a * r, l = o + c, h = o + r, d = this.computeRadius(), u = this.getInnerRadius();
|
|
8259
|
-
this.backgroundArc =
|
|
8259
|
+
this.backgroundArc = Rn().innerRadius(u).outerRadius(d).startAngle(l).endAngle(h), this.arc = Rn().innerRadius(u).outerRadius(d).startAngle(o).endAngle(l), I.appendOrSelect(e, "path.arc-background").attr("d", this.backgroundArc);
|
|
8260
8260
|
const p = e.selectAll("path.arc-foreground").data([s]);
|
|
8261
8261
|
p.enter().append("path").merge(p).attr(
|
|
8262
8262
|
"class",
|
|
@@ -8278,7 +8278,7 @@ class Nm extends dt {
|
|
|
8278
8278
|
drawValueNumber() {
|
|
8279
8279
|
const t = this.getComponentContainer(), e = this.getOptions(), n = L(e, "gauge", "type"), s = this.getValue(), a = this.getDelta(), r = this.computeRadius(), o = L(e, "gauge", "valueFontSize"), c = L(e, "gauge", "deltaFontSize"), l = L(e, "gauge", "numberSpacing"), h = L(e, "gauge", "showPercentageSymbol");
|
|
8280
8280
|
let d = 0;
|
|
8281
|
-
n ===
|
|
8281
|
+
n === Un.FULL && !a ? d = c(r) : n === Un.SEMI && a && (d = -(c(r) + l));
|
|
8282
8282
|
const u = I.appendOrSelect(t, "g.gauge-numbers").attr(
|
|
8283
8283
|
"transform",
|
|
8284
8284
|
`translate(0, ${d})`
|
|
@@ -8363,7 +8363,7 @@ class Nm extends dt {
|
|
|
8363
8363
|
const t = this.getOptions(), e = L(t, "gauge", "type"), { width: n, height: s } = I.getSVGElementSize(this.parent, {
|
|
8364
8364
|
useAttrs: !0
|
|
8365
8365
|
});
|
|
8366
|
-
return e ===
|
|
8366
|
+
return e === Un.SEMI ? Math.min(n / 2, s) : Math.min(n / 2, s / 2);
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
8369
8369
|
class Pm extends ta {
|
|
@@ -8392,7 +8392,7 @@ class Pm extends ta {
|
|
|
8392
8392
|
render(t) {
|
|
8393
8393
|
const e = this.model.getDisplayData(this.configs.groups), n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
8394
8394
|
this.setGroupScale();
|
|
8395
|
-
const a = this.getComponentContainer({ ariaLabel: "grouped bar graphs", withinChartClip: !0 }), r =
|
|
8395
|
+
const a = this.getComponentContainer({ ariaLabel: "grouped bar graphs", withinChartClip: !0 }), r = yl(
|
|
8396
8396
|
e.map((u) => {
|
|
8397
8397
|
const p = this.services.cartesianScales.getDomainIdentifier(u);
|
|
8398
8398
|
return u[p] && typeof u[p].toString == "function" ? u[p].toString() : u[p];
|
|
@@ -8994,14 +8994,14 @@ class Bm extends dt {
|
|
|
8994
8994
|
const e = I.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), n = I.appendOrSelect(e, "text").text(t), { width: s, height: a } = I.getSVGElementSize(n.node(), { useBBox: !0 });
|
|
8995
8995
|
return e.remove(), { width: s, height: a };
|
|
8996
8996
|
}, this.normalizeFlatData = (t) => {
|
|
8997
|
-
const e = this.getOptions(), { angle: n, value: s } = L(e, "radar", "axes"), a = L(e, "data", "groupMapsTo"), r =
|
|
8997
|
+
const e = this.getOptions(), { angle: n, value: s } = L(e, "radar", "axes"), a = L(e, "data", "groupMapsTo"), r = Ac(
|
|
8998
8998
|
this.uniqueKeys.map((o) => this.uniqueGroups.map((c) => ({
|
|
8999
8999
|
[n]: o,
|
|
9000
9000
|
[a]: c,
|
|
9001
9001
|
[s]: null
|
|
9002
9002
|
})))
|
|
9003
9003
|
);
|
|
9004
|
-
return
|
|
9004
|
+
return nn(r, t);
|
|
9005
9005
|
}, this.normalizeGroupedData = (t) => {
|
|
9006
9006
|
const e = this.getOptions(), { angle: n, value: s } = L(e, "radar", "axes"), a = L(e, "data", "groupMapsTo");
|
|
9007
9007
|
return t.map(({ name: r, data: o }) => {
|
|
@@ -9010,7 +9010,7 @@ class Bm extends dt {
|
|
|
9010
9010
|
[n]: l,
|
|
9011
9011
|
[s]: null
|
|
9012
9012
|
}));
|
|
9013
|
-
return { name: r, data:
|
|
9013
|
+
return { name: r, data: nn(c, o) };
|
|
9014
9014
|
});
|
|
9015
9015
|
}, this.handleLegendOnHover = (t) => {
|
|
9016
9016
|
const { hoveredElement: e } = t.detail;
|
|
@@ -9046,8 +9046,8 @@ class Bm extends dt {
|
|
|
9046
9046
|
const b = Bi().domain(this.fullDataNormalized.map((B) => B[h])).range([0, 2 * Math.PI].map((B) => B - Math.PI / 2)), _ = pi(this.fullDataNormalized.map((B) => B[d])), C = Re().domain([
|
|
9047
9047
|
_ >= 0 ? 0 : _,
|
|
9048
9048
|
Sa(this.fullDataNormalized.map((B) => B[d]))
|
|
9049
|
-
]).range([g, x]).nice(f), G = C.ticks(f), R = (B, z, U) => this.model.getFillColor(B, z, U), A = sd().angle((B) => b(B[h]) + Math.PI / 2).radius((B) => C(B[d])).curve(
|
|
9050
|
-
const z = this.getLabelDimensions(B).width, U =
|
|
9049
|
+
]).range([g, x]).nice(f), G = C.ticks(f), R = (B, z, U) => this.model.getFillColor(B, z, U), A = sd().angle((B) => b(B[h]) + Math.PI / 2).radius((B) => C(B[d])).curve(Al), H = this.uniqueKeys.map((B) => {
|
|
9050
|
+
const z = this.getLabelDimensions(B).width, U = Ml(
|
|
9051
9051
|
b(B),
|
|
9052
9052
|
x
|
|
9053
9053
|
);
|
|
@@ -9223,7 +9223,7 @@ class Bm extends dt {
|
|
|
9223
9223
|
(B) => B.append("rect"),
|
|
9224
9224
|
(B) => B,
|
|
9225
9225
|
(B) => B.remove()
|
|
9226
|
-
).attr("x", M.x).attr("y", M.y - m / 2).attr("width", C.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (B) => `rotate(${
|
|
9226
|
+
).attr("x", M.x).attr("y", M.y - m / 2).attr("width", C.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (B) => `rotate(${wl(b(B))}, ${M.x}, ${M.y})`);
|
|
9227
9227
|
const { code: ot, number: ct } = L(o, "locale");
|
|
9228
9228
|
I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Ls(G)).join(
|
|
9229
9229
|
(B) => B.append("text").attr("opacity", 0).text((z) => ct(z, ot)).attr(
|
|
@@ -9691,7 +9691,7 @@ class Xm extends Ji {
|
|
|
9691
9691
|
});
|
|
9692
9692
|
}
|
|
9693
9693
|
}
|
|
9694
|
-
const
|
|
9694
|
+
const Ye = 6;
|
|
9695
9695
|
class Ym extends dt {
|
|
9696
9696
|
constructor() {
|
|
9697
9697
|
super(...arguments), this.type = "tree", this.renderType = at.SVG;
|
|
@@ -9726,8 +9726,8 @@ class Ym extends dt {
|
|
|
9726
9726
|
top: 0,
|
|
9727
9727
|
right: 0,
|
|
9728
9728
|
bottom: 0,
|
|
9729
|
-
left: c > 0 ? c +
|
|
9730
|
-
}, u =
|
|
9729
|
+
left: c > 0 ? c + Ye : 30 - Ye
|
|
9730
|
+
}, u = Dn({
|
|
9731
9731
|
name: o,
|
|
9732
9732
|
children: r
|
|
9733
9733
|
}), p = 10, f = n / 6, g = (b) => {
|
|
@@ -9764,7 +9764,7 @@ class Ym extends dt {
|
|
|
9764
9764
|
datum: V
|
|
9765
9765
|
});
|
|
9766
9766
|
});
|
|
9767
|
-
O.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -
|
|
9767
|
+
O.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -Ye : Ye).attr("text-anchor", (k) => k._children ? "end" : "start").text((k) => k.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(O).transition(H).attr("transform", (k) => `translate(${k.y},${k.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${b.y},${b.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
9768
9768
|
const P = E.selectAll("path").data(C, (k) => k.target.id), $ = P.enter().append("path").attr("d", () => {
|
|
9769
9769
|
const k = { x: b.x0, y: b.y0 };
|
|
9770
9770
|
return v({ source: k, target: k });
|
|
@@ -9775,16 +9775,16 @@ class Ym extends dt {
|
|
|
9775
9775
|
}), u.eachBefore((k) => {
|
|
9776
9776
|
k.x0 = k.x, k.y0 = k.y;
|
|
9777
9777
|
});
|
|
9778
|
-
}, m = u.descendants(), y = m[m.length - 1].depth, S = L(a, "tree", "type") ===
|
|
9778
|
+
}, m = u.descendants(), y = m[m.length - 1].depth, S = L(a, "tree", "type") === Tl.DENDROGRAM ? Qu().size([
|
|
9779
9779
|
s,
|
|
9780
|
-
n - h - y *
|
|
9780
|
+
n - h - y * Ye - c
|
|
9781
9781
|
]) : Hh().nodeSize([p, f]).size([
|
|
9782
9782
|
s,
|
|
9783
|
-
n - h - y *
|
|
9783
|
+
n - h - y * Ye - c
|
|
9784
9784
|
]), v = cd().x((b) => b.y).y((b) => b.x);
|
|
9785
9785
|
u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((b, _) => {
|
|
9786
9786
|
b.id = _, b._children = b.children;
|
|
9787
|
-
}), S(u), e.attr("viewBox", [-d.left, -
|
|
9787
|
+
}), S(u), e.attr("viewBox", [-d.left, -d.top, n, p]).style("user-select", "none");
|
|
9788
9788
|
const E = e.append("g").attr("class", "links"), x = e.append("g").attr("class", "nodes");
|
|
9789
9789
|
g(u);
|
|
9790
9790
|
}
|
|
@@ -9955,7 +9955,7 @@ const Gg = (i) => {
|
|
|
9955
9955
|
const t = D(this.parentNode).select("rect.leaf"), e = i.backgroundColor ?? getComputedStyle(t.node(), null).getPropertyValue("fill"), n = Xr(e);
|
|
9956
9956
|
let s;
|
|
9957
9957
|
if (n && (s = Gg(n ? n.hex() : null)), s == null) {
|
|
9958
|
-
const a =
|
|
9958
|
+
const a = El(n).l;
|
|
9959
9959
|
s = Math.abs(a * 100 - 100);
|
|
9960
9960
|
}
|
|
9961
9961
|
return s > 50 ? "white" : "black";
|
|
@@ -9994,7 +9994,7 @@ class Zm extends dt {
|
|
|
9994
9994
|
this.model.getData();
|
|
9995
9995
|
const n = this.model.getDisplayData(), s = this.model.getOptions(), a = L(window, "location"), { width: r, height: o } = I.getSVGElementSize(e, {
|
|
9996
9996
|
useAttrs: !0
|
|
9997
|
-
}), c =
|
|
9997
|
+
}), c = Dn({
|
|
9998
9998
|
name: s.title || "Treemap",
|
|
9999
9999
|
children: n
|
|
10000
10000
|
}).sum((g) => g.value).sort((g, m) => m.value - g.value), l = Wh().size([r, o]).paddingInner(1).paddingOuter(0).round(!0)(
|
|
@@ -10163,7 +10163,7 @@ function zg(i) {
|
|
|
10163
10163
|
}
|
|
10164
10164
|
var Ug = { value: function() {
|
|
10165
10165
|
} };
|
|
10166
|
-
function
|
|
10166
|
+
function Ko() {
|
|
10167
10167
|
for (var i = 0, t = arguments.length, e = {}, n; i < t; ++i) {
|
|
10168
10168
|
if (!(n = arguments[i] + "") || n in e || /[\s.]/.test(n)) throw new Error("illegal type: " + n);
|
|
10169
10169
|
e[n] = [];
|
|
@@ -10180,7 +10180,7 @@ function Fg(i, t) {
|
|
|
10180
10180
|
return { type: e, name: n };
|
|
10181
10181
|
});
|
|
10182
10182
|
}
|
|
10183
|
-
us.prototype =
|
|
10183
|
+
us.prototype = Ko.prototype = {
|
|
10184
10184
|
constructor: us,
|
|
10185
10185
|
on: function(i, t) {
|
|
10186
10186
|
var e = this._, n = Fg(i + "", e), s, a = -1, r = n.length;
|
|
@@ -10224,7 +10224,7 @@ function Vr(i, t, e) {
|
|
|
10224
10224
|
}
|
|
10225
10225
|
const Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10226
10226
|
__proto__: null,
|
|
10227
|
-
dispatch:
|
|
10227
|
+
dispatch: Ko
|
|
10228
10228
|
}, Symbol.toStringTag, { value: "Module" })), Yg = /* @__PURE__ */ zg(Xg);
|
|
10229
10229
|
var ui, Gr;
|
|
10230
10230
|
function Zg() {
|
|
@@ -10268,11 +10268,11 @@ function Zg() {
|
|
|
10268
10268
|
E[0], E[1];
|
|
10269
10269
|
for (var j = Z.x, Y = Z.y, K = Math.sqrt(E[0] * E[0] + E[1] * E[1]), ot = H(E), ct = $() < 0.5 ? 1 : -1, st = -ct, it, B, z; (it = ot(st += ct)) && (B = ~~it[0], z = ~~it[1], !(Math.min(Math.abs(B), Math.abs(z)) >= K)); )
|
|
10270
10270
|
if (Z.x = j + B, Z.y = Y + z, !(Z.x + Z.x0 < 0 || Z.y + Z.y0 < 0 || Z.x + Z.x1 > E[0] || Z.y + Z.y1 > E[1]) && (!rt || f(Z, rt)) && !u(Z, F, E[0])) {
|
|
10271
|
-
for (var U = Z.sprite, Mt = Z.width >> 5, Se = E[0] >> 5, et = Z.x - (Mt << 4), yt = et & 127, Zt = 32 - yt, Ft = Z.y1 - Z.y0,
|
|
10272
|
-
|
|
10271
|
+
for (var U = Z.sprite, Mt = Z.width >> 5, Se = E[0] >> 5, et = Z.x - (Mt << 4), yt = et & 127, Zt = 32 - yt, Ft = Z.y1 - Z.y0, on = (Z.y + Z.y0) * Se + (et >> 5), ln, Oe = 0; Oe < Ft; Oe++) {
|
|
10272
|
+
ln = 0;
|
|
10273
10273
|
for (var ne = 0; ne <= Mt; ne++)
|
|
10274
|
-
F[
|
|
10275
|
-
|
|
10274
|
+
F[on + ne] |= ln << Zt | (ne < Mt ? (ln = U[Oe * Mt + ne]) >>> yt : 0);
|
|
10275
|
+
on += Se;
|
|
10276
10276
|
}
|
|
10277
10277
|
return !0;
|
|
10278
10278
|
}
|
|
@@ -10581,7 +10581,7 @@ class Kg extends dt {
|
|
|
10581
10581
|
const f = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), g = I.appendOrSelect(t, "defs");
|
|
10582
10582
|
I.appendOrSelect(g, "pattern").attr("id", f).attr("width", 5).attr("height", 10).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("path").classed("pattern-fill", !0).attr(
|
|
10583
10583
|
"d",
|
|
10584
|
-
|
|
10584
|
+
Nn()([
|
|
10585
10585
|
[0, 0],
|
|
10586
10586
|
[0, 10]
|
|
10587
10587
|
])
|
|
@@ -10611,7 +10611,7 @@ class Kg extends dt {
|
|
|
10611
10611
|
t = $u();
|
|
10612
10612
|
break;
|
|
10613
10613
|
case Me.geoConicEqualArea:
|
|
10614
|
-
t =
|
|
10614
|
+
t = Do();
|
|
10615
10615
|
break;
|
|
10616
10616
|
case Me.geoConicEquidistant:
|
|
10617
10617
|
t = zu();
|
|
@@ -10651,7 +10651,7 @@ class jm extends Kg {
|
|
|
10651
10651
|
const t = this, e = this.model.getCombinedData();
|
|
10652
10652
|
this.parent.selectAll("path.border").on("mouseover", function(n, s) {
|
|
10653
10653
|
const a = D(this);
|
|
10654
|
-
t.services.events.dispatchEvent(
|
|
10654
|
+
t.services.events.dispatchEvent(Fn.CHOROPLETH_MOUSEOVER, {
|
|
10655
10655
|
event: n,
|
|
10656
10656
|
element: a,
|
|
10657
10657
|
datum: e[s.properties.NAME]
|
|
@@ -10666,7 +10666,7 @@ class jm extends Kg {
|
|
|
10666
10666
|
]
|
|
10667
10667
|
});
|
|
10668
10668
|
}).on("mousemove", function(n, s) {
|
|
10669
|
-
t.services.events.dispatchEvent(
|
|
10669
|
+
t.services.events.dispatchEvent(Fn.CHOROPLETH_MOUSEMOVE, {
|
|
10670
10670
|
event: n,
|
|
10671
10671
|
element: D(this),
|
|
10672
10672
|
datum: e[s.properties.NAME]
|
|
@@ -10674,14 +10674,14 @@ class jm extends Kg {
|
|
|
10674
10674
|
event: n
|
|
10675
10675
|
});
|
|
10676
10676
|
}).on("click", function(n, s) {
|
|
10677
|
-
t.services.events.dispatchEvent(
|
|
10677
|
+
t.services.events.dispatchEvent(Fn.CHOROPLETH_CLICK, {
|
|
10678
10678
|
event: n,
|
|
10679
10679
|
element: D(this),
|
|
10680
10680
|
datum: e[s.properties.NAME]
|
|
10681
10681
|
});
|
|
10682
10682
|
}).on("mouseout", function(n, s) {
|
|
10683
10683
|
const a = D(this);
|
|
10684
|
-
t.services.events.dispatchEvent(
|
|
10684
|
+
t.services.events.dispatchEvent(Fn.CHOROPLETH_MOUSEOUT, {
|
|
10685
10685
|
event: n,
|
|
10686
10686
|
element: a,
|
|
10687
10687
|
datum: e[s.properties.NAME]
|
|
@@ -10711,13 +10711,13 @@ export {
|
|
|
10711
10711
|
Hm as O,
|
|
10712
10712
|
hp as P,
|
|
10713
10713
|
Bm as Q,
|
|
10714
|
-
|
|
10714
|
+
qo as R,
|
|
10715
10715
|
im as S,
|
|
10716
10716
|
Cd as T,
|
|
10717
10717
|
Ym as U,
|
|
10718
10718
|
Zm as V,
|
|
10719
10719
|
qm as W,
|
|
10720
|
-
|
|
10720
|
+
jo as X,
|
|
10721
10721
|
tp as Y,
|
|
10722
10722
|
om as Z,
|
|
10723
10723
|
Lm as _,
|
|
@@ -10733,7 +10733,7 @@ export {
|
|
|
10733
10733
|
ta as a8,
|
|
10734
10734
|
dt as a9,
|
|
10735
10735
|
Tr as b,
|
|
10736
|
-
|
|
10736
|
+
yc as c,
|
|
10737
10737
|
Rd as d,
|
|
10738
10738
|
Id as e,
|
|
10739
10739
|
Lr as f,
|
|
@@ -10758,4 +10758,4 @@ export {
|
|
|
10758
10758
|
Wm as y,
|
|
10759
10759
|
Nm as z
|
|
10760
10760
|
};
|
|
10761
|
-
//# sourceMappingURL=choropleth-
|
|
10761
|
+
//# sourceMappingURL=choropleth-G6hhqYGx.mjs.map
|