@genome-spy/core 0.56.0 → 0.56.1
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/dist/bundle/index.es.js +310 -314
- package/dist/bundle/index.js +22 -22
- package/dist/src/selection/selection.d.ts +6 -6
- package/dist/src/selection/selection.d.ts.map +1 -1
- package/dist/src/selection/selection.js +21 -16
- package/dist/src/spec/parameter.d.ts +3 -0
- package/dist/src/view/paramMediator.js +3 -3
- package/dist/src/view/unitView.d.ts.map +1 -1
- package/dist/src/view/unitView.js +48 -48
- package/package.json +2 -2
package/dist/bundle/index.es.js
CHANGED
|
@@ -162,7 +162,7 @@ function De(t) {
|
|
|
162
162
|
function fm(t) {
|
|
163
163
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Z(t) {
|
|
166
166
|
return typeof t == "string";
|
|
167
167
|
}
|
|
168
168
|
function Th(t, e) {
|
|
@@ -173,7 +173,7 @@ function no(t) {
|
|
|
173
173
|
return t && it(t) - t[0] || 0;
|
|
174
174
|
}
|
|
175
175
|
function lu(t) {
|
|
176
|
-
return Ee(t) ? "[" + t.map(lu) + "]" : Ce(t) ||
|
|
176
|
+
return Ee(t) ? "[" + t.map(lu) + "]" : Ce(t) || Z(t) ? (
|
|
177
177
|
// Output valid JSON and JS source strings.
|
|
178
178
|
// See http://timelessrepo.com/json-isnt-a-javascript-subset
|
|
179
179
|
JSON.stringify(t).replace("\u2028", "\\u2028").replace("\u2029", "\\u2029")
|
|
@@ -1382,34 +1382,34 @@ function A1(t) {
|
|
|
1382
1382
|
var C = g === "$" ? n : g === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", v = g === "$" ? r : /[%p]/.test(S) ? o : "", P = Ul[S], z = /[defgprs%]/.test(S);
|
|
1383
1383
|
b = b === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
|
|
1384
1384
|
function O(I) {
|
|
1385
|
-
var $ = C,
|
|
1385
|
+
var $ = C, j = v, oe, ge, ae;
|
|
1386
1386
|
if (S === "c")
|
|
1387
|
-
|
|
1387
|
+
j = P(I) + j, I = "";
|
|
1388
1388
|
else {
|
|
1389
1389
|
I = +I;
|
|
1390
1390
|
var Oe = I < 0 || 1 / I < 0;
|
|
1391
|
-
if (I = isNaN(I) ? c : P(Math.abs(I), b), E && (I = g1(I)), Oe && +I == 0 && d !== "+" && (Oe = !1), $ = (Oe ? d === "(" ? d : a : d === "-" || d === "(" ? "" : d) + $,
|
|
1391
|
+
if (I = isNaN(I) ? c : P(Math.abs(I), b), E && (I = g1(I)), Oe && +I == 0 && d !== "+" && (Oe = !1), $ = (Oe ? d === "(" ? d : a : d === "-" || d === "(" ? "" : d) + $, j = (S === "s" ? Vl[8 + Yh / 3] : "") + j + (Oe && d === "(" ? ")" : ""), z) {
|
|
1392
1392
|
for (oe = -1, ge = I.length; ++oe < ge; )
|
|
1393
1393
|
if (ae = I.charCodeAt(oe), 48 > ae || ae > 57) {
|
|
1394
|
-
|
|
1394
|
+
j = (ae === 46 ? i + I.slice(oe + 1) : I.slice(oe)) + j, I = I.slice(0, oe);
|
|
1395
1395
|
break;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
y && !m && (I = e(I, 1 / 0));
|
|
1400
|
-
var Me = $.length + I.length +
|
|
1401
|
-
switch (y && m && (I = e(me + I, me.length ? A -
|
|
1400
|
+
var Me = $.length + I.length + j.length, me = Me < A ? new Array(A - Me + 1).join(h) : "";
|
|
1401
|
+
switch (y && m && (I = e(me + I, me.length ? A - j.length : 1 / 0), me = ""), p) {
|
|
1402
1402
|
case "<":
|
|
1403
|
-
I = $ + I +
|
|
1403
|
+
I = $ + I + j + me;
|
|
1404
1404
|
break;
|
|
1405
1405
|
case "=":
|
|
1406
|
-
I = $ + me + I +
|
|
1406
|
+
I = $ + me + I + j;
|
|
1407
1407
|
break;
|
|
1408
1408
|
case "^":
|
|
1409
|
-
I = me.slice(0, Me = me.length >> 1) + $ + I +
|
|
1409
|
+
I = me.slice(0, Me = me.length >> 1) + $ + I + j + me.slice(Me);
|
|
1410
1410
|
break;
|
|
1411
1411
|
default:
|
|
1412
|
-
I = me + $ + I +
|
|
1412
|
+
I = me + $ + I + j;
|
|
1413
1413
|
break;
|
|
1414
1414
|
}
|
|
1415
1415
|
return s(I);
|
|
@@ -1755,7 +1755,7 @@ function Zh(t) {
|
|
|
1755
1755
|
a: O,
|
|
1756
1756
|
A: I,
|
|
1757
1757
|
b: $,
|
|
1758
|
-
B:
|
|
1758
|
+
B: j,
|
|
1759
1759
|
c: oe,
|
|
1760
1760
|
d: Xl,
|
|
1761
1761
|
e: Xl,
|
|
@@ -1788,27 +1788,27 @@ function Zh(t) {
|
|
|
1788
1788
|
b.x = C(n, b), b.X = C(r, b), b.c = C(e, b), E.x = C(n, E), E.X = C(r, E), E.c = C(e, E);
|
|
1789
1789
|
function C(T, N) {
|
|
1790
1790
|
return function(U) {
|
|
1791
|
-
var D = [], Fe = -1,
|
|
1791
|
+
var D = [], Fe = -1, X = 0, Ne = T.length, Ue, dn, wl;
|
|
1792
1792
|
for (U instanceof Date || (U = /* @__PURE__ */ new Date(+U)); ++Fe < Ne; )
|
|
1793
|
-
T.charCodeAt(Fe) === 37 && (D.push(T.slice(
|
|
1794
|
-
return D.push(T.slice(
|
|
1793
|
+
T.charCodeAt(Fe) === 37 && (D.push(T.slice(X, Fe)), (dn = Wl[Ue = T.charAt(++Fe)]) != null ? Ue = T.charAt(++Fe) : dn = Ue === "e" ? " " : "0", (wl = N[Ue]) && (Ue = wl(U, dn)), D.push(Ue), X = Fe + 1);
|
|
1794
|
+
return D.push(T.slice(X, Fe)), D.join("");
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
1797
|
function v(T, N) {
|
|
1798
1798
|
return function(U) {
|
|
1799
|
-
var D = qr(1900, void 0, 1), Fe = P(D, T, U += "", 0),
|
|
1799
|
+
var D = qr(1900, void 0, 1), Fe = P(D, T, U += "", 0), X, Ne;
|
|
1800
1800
|
if (Fe != U.length) return null;
|
|
1801
1801
|
if ("Q" in D) return new Date(D.Q);
|
|
1802
1802
|
if ("s" in D) return new Date(D.s * 1e3 + ("L" in D ? D.L : 0));
|
|
1803
1803
|
if (N && !("Z" in D) && (D.Z = 0), "p" in D && (D.H = D.H % 12 + D.p * 12), D.m === void 0 && (D.m = "q" in D ? D.q : 0), "V" in D) {
|
|
1804
1804
|
if (D.V < 1 || D.V > 53) return null;
|
|
1805
|
-
"w" in D || (D.w = 1), "Z" in D ? (
|
|
1805
|
+
"w" in D || (D.w = 1), "Z" in D ? (X = Ta(qr(D.y, 0, 1)), Ne = X.getUTCDay(), X = Ne > 4 || Ne === 0 ? uo.ceil(X) : uo(X), X = zn.offset(X, (D.V - 1) * 7), D.y = X.getUTCFullYear(), D.m = X.getUTCMonth(), D.d = X.getUTCDate() + (D.w + 6) % 7) : (X = Ba(qr(D.y, 0, 1)), Ne = X.getDay(), X = Ne > 4 || Ne === 0 ? co.ceil(X) : co(X), X = Qt.offset(X, (D.V - 1) * 7), D.y = X.getFullYear(), D.m = X.getMonth(), D.d = X.getDate() + (D.w + 6) % 7);
|
|
1806
1806
|
} else ("W" in D || "U" in D) && ("w" in D || (D.w = "u" in D ? D.u % 7 : "W" in D ? 1 : 0), Ne = "Z" in D ? Ta(qr(D.y, 0, 1)).getUTCDay() : Ba(qr(D.y, 0, 1)).getDay(), D.m = 0, D.d = "W" in D ? (D.w + 6) % 7 + D.W * 7 - (Ne + 5) % 7 : D.w + D.U * 7 - (Ne + 6) % 7);
|
|
1807
1807
|
return "Z" in D ? (D.H += D.Z / 100 | 0, D.M += D.Z % 100, Ta(D)) : Ba(D);
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
1810
|
function P(T, N, U, D) {
|
|
1811
|
-
for (var Fe = 0,
|
|
1811
|
+
for (var Fe = 0, X = N.length, Ne = U.length, Ue, dn; Fe < X; ) {
|
|
1812
1812
|
if (D >= Ne) return -1;
|
|
1813
1813
|
if (Ue = N.charCodeAt(Fe++), Ue === 37) {
|
|
1814
1814
|
if (Ue = N.charAt(Fe++), dn = S[Ue in Wl ? N.charAt(Fe++) : Ue], !dn || (D = dn(T, U, D)) < 0) return -1;
|
|
@@ -1833,7 +1833,7 @@ function Zh(t) {
|
|
|
1833
1833
|
var D = A.exec(N.slice(U));
|
|
1834
1834
|
return D ? (T.m = y.get(D[0].toLowerCase()), U + D[0].length) : -1;
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function j(T, N, U) {
|
|
1837
1837
|
var D = g.exec(N.slice(U));
|
|
1838
1838
|
return D ? (T.m = m.get(D[0].toLowerCase()), U + D[0].length) : -1;
|
|
1839
1839
|
}
|
|
@@ -2165,8 +2165,8 @@ function ef(t, e, n) {
|
|
|
2165
2165
|
function n0(t) {
|
|
2166
2166
|
const e = Ls(t.format), n = Ls(t.utcFormat);
|
|
2167
2167
|
return {
|
|
2168
|
-
timeFormat: (r) =>
|
|
2169
|
-
utcFormat: (r) =>
|
|
2168
|
+
timeFormat: (r) => Z(r) ? e(r) : ef(e, z1, r),
|
|
2169
|
+
utcFormat: (r) => Z(r) ? n(r) : ef(n, N1, r),
|
|
2170
2170
|
timeParse: Ls(t.parse),
|
|
2171
2171
|
utcParse: Ls(t.utcParse)
|
|
2172
2172
|
};
|
|
@@ -2832,16 +2832,16 @@ const nc = /* @__PURE__ */ function() {
|
|
|
2832
2832
|
return function() {
|
|
2833
2833
|
return t = t || (typeof document < "u" && document.createElement ? document.createElement("canvas").getContext("2d") : null), t;
|
|
2834
2834
|
};
|
|
2835
|
-
}(), rc = 6406, je = 6407,
|
|
2835
|
+
}(), rc = 6406, je = 6407, q = 6408, ic = 6409, sc = 6410, rr = 6402, oc = 34041, ho = 33071, QA = 9728, WA = 9729, kt = 3553, Rt = 34067, Yt = 32879, jt = 35866, Vo = 34069, YA = 34070, jA = 34071, XA = 34072, qA = 34073, ZA = 34074, ac = 10241, cc = 10240, po = 10242, go = 10243, rf = 32882, KA = 33082, JA = 33083, _A = 33084, $A = 33085, Tu = 3317, A0 = 3314, y0 = 32878, x0 = 3316, b0 = 3315, w0 = 32877, ey = 37443, ty = 37441, ny = 37440, ry = 33321, iy = 36756, sy = 33325, oy = 33326, ay = 33330, cy = 33329, uy = 33338, ly = 33337, fy = 33340, hy = 33339, dy = 33323, py = 36757, gy = 33327, my = 33328, Ay = 33336, yy = 33335, xy = 33332, by = 33331, wy = 33334, vy = 33333, Ey = 32849, Cy = 35905, Sy = 36194, Dy = 36758, By = 35898, Ty = 35901, My = 34843, Fy = 34837, Iy = 36221, Py = 36239, Ry = 36215, ky = 36233, Ly = 36209, Oy = 36227, zy = 32856, Ny = 35907, Uy = 36759, Gy = 32855, Hy = 32854, Vy = 32857, Qy = 34842, Wy = 34836, Yy = 36220, jy = 36238, Xy = 36975, qy = 36214, Zy = 36232, Ky = 36226, Jy = 36208, _y = 33189, $y = 33190, ex = 36012, tx = 36013, nx = 35056, Lt = 5120, J = 5121, zs = 5122, er = 5123, Ns = 5124, gn = 5125, ye = 5126, sf = 32819, of = 32820, af = 33635, et = 5131, Jr = 36193, Ia = 33640, rx = 35899, ix = 35902, sx = 36269, ox = 34042, $r = 33319, An = 33320, ei = 6403, yn = 36244, xn = 36248, Ot = 36249, ax = {};
|
|
2836
2836
|
{
|
|
2837
2837
|
const t = ax;
|
|
2838
|
-
t[rc] = { numColorComponents: 1 }, t[ic] = { numColorComponents: 1 }, t[sc] = { numColorComponents: 2 }, t[je] = { numColorComponents: 3 }, t[
|
|
2838
|
+
t[rc] = { numColorComponents: 1 }, t[ic] = { numColorComponents: 1 }, t[sc] = { numColorComponents: 2 }, t[je] = { numColorComponents: 3 }, t[q] = { numColorComponents: 4 }, t[ei] = { numColorComponents: 1 }, t[yn] = { numColorComponents: 1 }, t[$r] = { numColorComponents: 2 }, t[An] = { numColorComponents: 2 }, t[je] = { numColorComponents: 3 }, t[xn] = { numColorComponents: 3 }, t[q] = { numColorComponents: 4 }, t[Ot] = { numColorComponents: 4 }, t[rr] = { numColorComponents: 1 }, t[oc] = { numColorComponents: 2 };
|
|
2839
2839
|
}
|
|
2840
2840
|
let Pa;
|
|
2841
2841
|
function Qo(t) {
|
|
2842
2842
|
if (!Pa) {
|
|
2843
2843
|
const e = {};
|
|
2844
|
-
e[rc] = { textureFormat: rc, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [J, et, Jr, ye] }, e[ic] = { textureFormat: ic, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [J, et, Jr, ye] }, e[sc] = { textureFormat: sc, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [J, et, Jr, ye] }, e[je] = { textureFormat: je, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [J, et, Jr, ye, af] }, e[
|
|
2844
|
+
e[rc] = { textureFormat: rc, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [J, et, Jr, ye] }, e[ic] = { textureFormat: ic, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [J, et, Jr, ye] }, e[sc] = { textureFormat: sc, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [J, et, Jr, ye] }, e[je] = { textureFormat: je, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [J, et, Jr, ye, af] }, e[q] = { textureFormat: q, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [J, et, Jr, ye, sf, of] }, e[rr] = { textureFormat: rr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [gn, er] }, e[ry] = { textureFormat: ei, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1], type: [J] }, e[iy] = { textureFormat: ei, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [1], type: [Lt] }, e[sy] = { textureFormat: ei, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4, 2], type: [ye, et] }, e[oy] = { textureFormat: ei, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [4], type: [ye] }, e[ay] = { textureFormat: yn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [J] }, e[cy] = { textureFormat: yn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [Lt] }, e[xy] = { textureFormat: yn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [er] }, e[by] = { textureFormat: yn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [zs] }, e[wy] = { textureFormat: yn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [gn] }, e[vy] = { textureFormat: yn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Ns] }, e[dy] = { textureFormat: $r, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2], type: [J] }, e[py] = { textureFormat: $r, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [2], type: [Lt] }, e[gy] = { textureFormat: $r, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [8, 4], type: [ye, et] }, e[my] = { textureFormat: $r, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [8], type: [ye] }, e[Ay] = { textureFormat: An, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [J] }, e[yy] = { textureFormat: An, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Lt] }, e[uy] = { textureFormat: An, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [er] }, e[ly] = { textureFormat: An, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [zs] }, e[fy] = { textureFormat: An, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [gn] }, e[hy] = { textureFormat: An, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [Ns] }, e[Ey] = { textureFormat: je, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3], type: [J] }, e[Cy] = { textureFormat: je, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [J] }, e[Sy] = { textureFormat: je, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 2], type: [J, af] }, e[Dy] = { textureFormat: je, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [Lt] }, e[By] = { textureFormat: je, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [ye, et, rx] }, e[Ty] = { textureFormat: je, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [ye, et, ix] }, e[My] = { textureFormat: je, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6], type: [ye, et] }, e[Fy] = { textureFormat: je, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [ye] }, e[Iy] = { textureFormat: xn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [J] }, e[Py] = { textureFormat: xn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [Lt] }, e[Ry] = { textureFormat: xn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [er] }, e[ky] = { textureFormat: xn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [zs] }, e[Ly] = { textureFormat: xn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [gn] }, e[Oy] = { textureFormat: xn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [Ns] }, e[zy] = { textureFormat: q, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [J] }, e[Ny] = { textureFormat: q, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [J] }, e[Uy] = { textureFormat: q, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4], type: [Lt] }, e[Gy] = { textureFormat: q, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2, 4], type: [J, of, Ia] }, e[Hy] = { textureFormat: q, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2], type: [J, sf] }, e[Vy] = { textureFormat: q, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Ia] }, e[Qy] = { textureFormat: q, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [16, 8], type: [ye, et] }, e[Wy] = { textureFormat: q, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [16], type: [ye] }, e[Yy] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [J] }, e[jy] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Lt] }, e[Xy] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Ia] }, e[qy] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [er] }, e[Zy] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [zs] }, e[Ky] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [Ns] }, e[Jy] = { textureFormat: Ot, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [gn] }, e[_y] = { textureFormat: rr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [er, gn] }, e[$y] = { textureFormat: rr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [gn] }, e[ex] = { textureFormat: rr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [ye] }, e[nx] = { textureFormat: oc, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [ox] }, e[tx] = { textureFormat: oc, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [sx] }, Object.keys(e).forEach(function(n) {
|
|
2845
2845
|
const r = e[n];
|
|
2846
2846
|
r.bytesPerElementMap = {}, r.bytesPerElement.forEach(function(i, s) {
|
|
2847
2847
|
const o = r.type[s];
|
|
@@ -2922,7 +2922,7 @@ function hx(t) {
|
|
|
2922
2922
|
return t = t || tn.textureColor, Ir(t) ? t : new Uint8Array([t[0] * 255, t[1] * 255, t[2] * 255, t[3] * 255]);
|
|
2923
2923
|
}
|
|
2924
2924
|
function uc(t, e, n, r, i, s) {
|
|
2925
|
-
n = n || tn.textureOptions, s = s ||
|
|
2925
|
+
n = n || tn.textureOptions, s = s || q;
|
|
2926
2926
|
const o = n.target || kt;
|
|
2927
2927
|
if (r = r || n.width, i = i || n.height, t.bindTexture(o, e), ux(t, r, i, s))
|
|
2928
2928
|
t.generateMipmap(o);
|
|
@@ -2956,7 +2956,7 @@ function S0(t, e, n, r) {
|
|
|
2956
2956
|
r = r || tn.textureOptions;
|
|
2957
2957
|
const i = r.target || kt, s = r.level || 0;
|
|
2958
2958
|
let o = n.width, a = n.height;
|
|
2959
|
-
const c = r.internalFormat || r.format ||
|
|
2959
|
+
const c = r.internalFormat || r.format || q, u = Nr(c), f = r.format || u.format, l = r.type || u.type;
|
|
2960
2960
|
if (Pr(t, r), t.bindTexture(i, e), i === Rt) {
|
|
2961
2961
|
const h = n.width, p = n.height;
|
|
2962
2962
|
let d, g;
|
|
@@ -3064,8 +3064,8 @@ function Fu(t, e, n) {
|
|
|
3064
3064
|
const i = hx(n.color);
|
|
3065
3065
|
if (r === Rt)
|
|
3066
3066
|
for (let s = 0; s < 6; ++s)
|
|
3067
|
-
t.texImage2D(Vo + s, 0,
|
|
3068
|
-
else r === Yt || r === jt ? t.texImage3D(r, 0,
|
|
3067
|
+
t.texImage2D(Vo + s, 0, q, 1, 1, 0, q, J, i);
|
|
3068
|
+
else r === Yt || r === jt ? t.texImage3D(r, 0, q, 1, 1, 1, 0, q, J, i) : t.texImage2D(r, 0, q, 1, 1, 0, q, J, i);
|
|
3069
3069
|
}
|
|
3070
3070
|
function mx(t, e, n, r) {
|
|
3071
3071
|
return r = r || cs, n = n || tn.textureOptions, Fu(t, e, n), n = Object.assign({}, n), Mu(n.src, n.crossOrigin, function(s, o) {
|
|
@@ -3077,7 +3077,7 @@ function Ax(t, e, n, r) {
|
|
|
3077
3077
|
const i = n.src;
|
|
3078
3078
|
if (i.length !== 6)
|
|
3079
3079
|
throw "there must be 6 urls for a cubemap";
|
|
3080
|
-
const s = n.level || 0, o = n.internalFormat || n.format ||
|
|
3080
|
+
const s = n.level || 0, o = n.internalFormat || n.format || q, a = Nr(o), c = n.format || a.format, u = n.type || J, f = n.target || kt;
|
|
3081
3081
|
if (f !== Rt)
|
|
3082
3082
|
throw "target must be TEXTURE_CUBE_MAP";
|
|
3083
3083
|
Fu(t, e, n), n = Object.assign({}, n);
|
|
@@ -3097,7 +3097,7 @@ function Ax(t, e, n, r) {
|
|
|
3097
3097
|
}
|
|
3098
3098
|
function yx(t, e, n, r) {
|
|
3099
3099
|
r = r || cs;
|
|
3100
|
-
const i = n.src, s = n.internalFormat || n.format ||
|
|
3100
|
+
const i = n.src, s = n.internalFormat || n.format || q, o = Nr(s), a = n.format || o.format, c = n.type || J, u = n.target || jt;
|
|
3101
3101
|
if (u !== Yt && u !== jt)
|
|
3102
3102
|
throw "target must be TEXTURE_3D or TEXTURE_2D_ARRAY";
|
|
3103
3103
|
Fu(t, e, n), n = Object.assign({}, n);
|
|
@@ -3135,7 +3135,7 @@ function B0(t, e, n, r) {
|
|
|
3135
3135
|
const i = r.target || kt;
|
|
3136
3136
|
t.bindTexture(i, e);
|
|
3137
3137
|
let s = r.width, o = r.height, a = r.depth;
|
|
3138
|
-
const c = r.level || 0, u = r.internalFormat || r.format ||
|
|
3138
|
+
const c = r.level || 0, u = r.internalFormat || r.format || q, f = Nr(u), l = r.format || f.format, h = r.type || v0(t, n, f.type);
|
|
3139
3139
|
if (Ir(n))
|
|
3140
3140
|
n instanceof Uint8ClampedArray && (n = new Uint8Array(n.buffer));
|
|
3141
3141
|
else {
|
|
@@ -3172,7 +3172,7 @@ function B0(t, e, n, r) {
|
|
|
3172
3172
|
function xx(t, e, n) {
|
|
3173
3173
|
const r = n.target || kt;
|
|
3174
3174
|
t.bindTexture(r, e);
|
|
3175
|
-
const i = n.level || 0, s = n.internalFormat || n.format ||
|
|
3175
|
+
const i = n.level || 0, s = n.internalFormat || n.format || q, o = Nr(s), a = n.format || o.format, c = n.type || o.type;
|
|
3176
3176
|
if (Pr(t, n), r === Rt)
|
|
3177
3177
|
for (let u = 0; u < 6; ++u)
|
|
3178
3178
|
t.texImage2D(Vo + u, i, s, n.width, n.height, 0, a, c, null);
|
|
@@ -3182,7 +3182,7 @@ function Ti(t, e, n) {
|
|
|
3182
3182
|
n = n || cs, e = e || tn.textureOptions;
|
|
3183
3183
|
const r = t.createTexture(), i = e.target || kt;
|
|
3184
3184
|
let s = e.width || 1, o = e.height || 1;
|
|
3185
|
-
const a = e.internalFormat ||
|
|
3185
|
+
const a = e.internalFormat || q;
|
|
3186
3186
|
t.bindTexture(i, r), i === Rt && (t.texParameteri(i, po, ho), t.texParameteri(i, go, ho));
|
|
3187
3187
|
let c = e.src;
|
|
3188
3188
|
if (c)
|
|
@@ -3200,7 +3200,7 @@ function bx(t, e, n, r, i, s) {
|
|
|
3200
3200
|
r = r || n.width, i = i || n.height, s = s || n.depth;
|
|
3201
3201
|
const o = n.target || kt;
|
|
3202
3202
|
t.bindTexture(o, e);
|
|
3203
|
-
const a = n.level || 0, c = n.internalFormat || n.format ||
|
|
3203
|
+
const a = n.level || 0, c = n.internalFormat || n.format || q, u = Nr(c), f = n.format || u.format;
|
|
3204
3204
|
let l;
|
|
3205
3205
|
const h = n.src;
|
|
3206
3206
|
if (h && (Ir(h) || Array.isArray(h) && typeof h[0] == "number") ? l = n.type || v0(t, h, u.type) : l = n.type || u.type, o === Rt)
|
|
@@ -6235,7 +6235,7 @@ function Iv(t) {
|
|
|
6235
6235
|
const e = t.allowed ? ro(t.allowed) : {}, n = t.forbidden ? ro(t.forbidden) : {}, r = t.constants || Mv, i = (t.functions || fp)(l), s = t.globalvar, o = t.fieldvar, a = qe(s) ? s : (d) => `${s}["${d}"]`;
|
|
6236
6236
|
let c = {}, u = {}, f = 0;
|
|
6237
6237
|
function l(d) {
|
|
6238
|
-
if (
|
|
6238
|
+
if (Z(d)) return d;
|
|
6239
6239
|
const g = h[d.type];
|
|
6240
6240
|
return g == null && ne("Unsupported type: " + d.type), g(d);
|
|
6241
6241
|
}
|
|
@@ -6610,11 +6610,12 @@ function Ap(t) {
|
|
|
6610
6610
|
function ul(t) {
|
|
6611
6611
|
return t.type === "multi";
|
|
6612
6612
|
}
|
|
6613
|
-
function ll(t) {
|
|
6614
|
-
return t != null && typeof t != "string" && "type" in t && t.type === "point";
|
|
6615
|
-
}
|
|
6616
6613
|
function yp(t) {
|
|
6617
|
-
|
|
6614
|
+
const e = typeof t == "string" ? { type: t } : t;
|
|
6615
|
+
return ll(e) && (e.on ?? (e.on = "click"), e.on === "click" && (e.toggle = !0)), e;
|
|
6616
|
+
}
|
|
6617
|
+
function ll(t) {
|
|
6618
|
+
return t && t.type == "point";
|
|
6618
6619
|
}
|
|
6619
6620
|
const xp = {
|
|
6620
6621
|
clamp: Lr,
|
|
@@ -6626,7 +6627,7 @@ const xp = {
|
|
|
6626
6627
|
isNumber: De,
|
|
6627
6628
|
isObject: Ce,
|
|
6628
6629
|
isRegExp: fm,
|
|
6629
|
-
isString:
|
|
6630
|
+
isString: Z,
|
|
6630
6631
|
isValid(t) {
|
|
6631
6632
|
return t != null && t === t;
|
|
6632
6633
|
},
|
|
@@ -6733,9 +6734,9 @@ class Uv {
|
|
|
6733
6734
|
} else
|
|
6734
6735
|
r = this.allocateSetter(n, null);
|
|
6735
6736
|
if ("select" in e) {
|
|
6736
|
-
const i = e.select;
|
|
6737
|
+
const i = yp(e.select);
|
|
6737
6738
|
ll(i) && r(
|
|
6738
|
-
|
|
6739
|
+
i.toggle ? gp() : pp(null)
|
|
6739
6740
|
);
|
|
6740
6741
|
}
|
|
6741
6742
|
return x(this, ur).set(n, e), r;
|
|
@@ -6865,7 +6866,7 @@ class Uv {
|
|
|
6865
6866
|
for (const e of x(this, ur).values())
|
|
6866
6867
|
if (Hv(e)) {
|
|
6867
6868
|
const n = e.select;
|
|
6868
|
-
if (
|
|
6869
|
+
if (Z(n)) {
|
|
6869
6870
|
if (n == "point")
|
|
6870
6871
|
return !0;
|
|
6871
6872
|
} else if (n.type == "point")
|
|
@@ -6876,7 +6877,7 @@ class Uv {
|
|
|
6876
6877
|
}
|
|
6877
6878
|
Nt = new WeakMap(), Mn = new WeakMap(), cr = new WeakMap(), ur = new WeakMap(), Ui = new WeakMap();
|
|
6878
6879
|
function Se(t) {
|
|
6879
|
-
return typeof t == "object" && t != null && "expr" in t &&
|
|
6880
|
+
return typeof t == "object" && t != null && "expr" in t && Z(t.expr);
|
|
6880
6881
|
}
|
|
6881
6882
|
function Ve(t) {
|
|
6882
6883
|
if (Se(t))
|
|
@@ -7201,7 +7202,7 @@ function iE(t, e, n) {
|
|
|
7201
7202
|
let r;
|
|
7202
7203
|
if (da(t))
|
|
7203
7204
|
r = Bn(Sp(t)(n));
|
|
7204
|
-
else if (
|
|
7205
|
+
else if (Z(n))
|
|
7205
7206
|
if (Kt(t))
|
|
7206
7207
|
r = uE(n);
|
|
7207
7208
|
else
|
|
@@ -8168,7 +8169,7 @@ class SE extends Cs {
|
|
|
8168
8169
|
const h = [0, 0];
|
|
8169
8170
|
this.updateTextureCoord(h), this.prepareXIndexer(n, r, i);
|
|
8170
8171
|
for (let p = r; p < i; p++) {
|
|
8171
|
-
const d = n[p], g = this.numberFormat(f(d)), m =
|
|
8172
|
+
const d = n[p], g = this.numberFormat(f(d)), m = Z(g) ? g : g === null ? "" : "" + g;
|
|
8172
8173
|
if (m.length == 0) continue;
|
|
8173
8174
|
this.variableBuilder.updateFromDatum(d);
|
|
8174
8175
|
const A = o ? m.length : this.metrics.measureWidth(m);
|
|
@@ -8230,8 +8231,8 @@ function Oi(t) {
|
|
|
8230
8231
|
return t[Zs] || zp(t), t[Zs];
|
|
8231
8232
|
}
|
|
8232
8233
|
function IE(t, e, n, r) {
|
|
8233
|
-
const i =
|
|
8234
|
-
if (n === void 0 && !
|
|
8234
|
+
const i = Z(t) ? t : t.name, s = !Z(t) && t.extent || [0, 1];
|
|
8235
|
+
if (n === void 0 && !Z(t) && (n = t.count), i) {
|
|
8235
8236
|
const o = rl(i);
|
|
8236
8237
|
if (qe(o)) {
|
|
8237
8238
|
const a = Np(o, {
|
|
@@ -8259,8 +8260,8 @@ function IE(t, e, n, r) {
|
|
|
8259
8260
|
function PE(t, e = "rgb", n, r) {
|
|
8260
8261
|
const i = aa(
|
|
8261
8262
|
t,
|
|
8262
|
-
|
|
8263
|
-
|
|
8263
|
+
Z(e) ? e : e.type,
|
|
8264
|
+
Z(e) ? void 0 : e.gamma
|
|
8264
8265
|
), s = Np(i);
|
|
8265
8266
|
return Ss(
|
|
8266
8267
|
n,
|
|
@@ -8481,7 +8482,7 @@ class kE {
|
|
|
8481
8482
|
r
|
|
8482
8483
|
);
|
|
8483
8484
|
else {
|
|
8484
|
-
let f =
|
|
8485
|
+
let f = Z(a.scheme) ? void 0 : a.scheme.count;
|
|
8485
8486
|
f = i(f, o), u = IE(
|
|
8486
8487
|
a.scheme,
|
|
8487
8488
|
this.gl,
|
|
@@ -8617,7 +8618,7 @@ function _f(...t) {
|
|
|
8617
8618
|
return new Proxy({}, e);
|
|
8618
8619
|
}
|
|
8619
8620
|
function zE(t) {
|
|
8620
|
-
return
|
|
8621
|
+
return Z(t) || De(t) || rs(t);
|
|
8621
8622
|
}
|
|
8622
8623
|
class Gn extends Error {
|
|
8623
8624
|
/**
|
|
@@ -8894,10 +8895,10 @@ uniform highp usampler2D ${O};`
|
|
|
8894
8895
|
[O]: ae
|
|
8895
8896
|
});
|
|
8896
8897
|
});
|
|
8897
|
-
const
|
|
8898
|
+
const j = eh + C;
|
|
8898
8899
|
c.push(
|
|
8899
8900
|
`bool ${qs}${C}(bool empty) {
|
|
8900
|
-
return binarySearchTexture(${
|
|
8901
|
+
return binarySearchTexture(${j}, ${z}) || (empty && isEmptyBinarySearchTexture(${j}));
|
|
8901
8902
|
}`
|
|
8902
8903
|
), I.createSelectionTexture(P);
|
|
8903
8904
|
const oe = v.createExpression(C);
|
|
@@ -8914,7 +8915,7 @@ uniform highp usampler2D ${O};`
|
|
|
8914
8915
|
const z = C.channelDef;
|
|
8915
8916
|
if (Je(z))
|
|
8916
8917
|
if (Se(z.value)) {
|
|
8917
|
-
const { uniformName: O, uniformGlsl: I, accessorGlsl: $, adjuster:
|
|
8918
|
+
const { uniformName: O, uniformGlsl: I, accessorGlsl: $, adjuster: j } = sE(
|
|
8918
8919
|
S,
|
|
8919
8920
|
v
|
|
8920
8921
|
);
|
|
@@ -8922,7 +8923,7 @@ uniform highp usampler2D ${O};`
|
|
|
8922
8923
|
this.registerMarkUniformValue(
|
|
8923
8924
|
O,
|
|
8924
8925
|
z.value,
|
|
8925
|
-
|
|
8926
|
+
j
|
|
8926
8927
|
);
|
|
8927
8928
|
});
|
|
8928
8929
|
} else
|
|
@@ -8940,10 +8941,10 @@ uniform highp usampler2D ${O};`
|
|
|
8940
8941
|
v
|
|
8941
8942
|
);
|
|
8942
8943
|
l.push(I), c.push($);
|
|
8943
|
-
const { largeHp:
|
|
8944
|
+
const { largeHp: j, discrete: oe } = Es(
|
|
8944
8945
|
P,
|
|
8945
8946
|
S
|
|
8946
|
-
), ge = oe && "domain" in P ? (ae) => P.domain().indexOf(ae) :
|
|
8947
|
+
), ge = oe && "domain" in P ? (ae) => P.domain().indexOf(ae) : j ? Pp : (ae) => +ae;
|
|
8947
8948
|
x(this, ct).push(() => {
|
|
8948
8949
|
this.registerMarkUniformValue(
|
|
8949
8950
|
O,
|
|
@@ -8986,15 +8987,15 @@ uniform highp usampler2D ${O};`
|
|
|
8986
8987
|
if (z) {
|
|
8987
8988
|
const O = We(v) && v.resolutionChannel || S, I = Li(O) ? this.unitView.getScaleResolution(O) : null, {
|
|
8988
8989
|
glsl: $,
|
|
8989
|
-
domainUniform:
|
|
8990
|
+
domainUniform: j,
|
|
8990
8991
|
domainUniformName: oe,
|
|
8991
8992
|
rangeUniform: ge,
|
|
8992
8993
|
rangeUniformName: ae
|
|
8993
8994
|
} = aE(S, z, v);
|
|
8994
|
-
c.push($), l.push(
|
|
8995
|
+
c.push($), l.push(j), l.push(ge), ge && x(this, ct).push(() => {
|
|
8995
8996
|
const Oe = this.createMarkUniformSetter(ae), Me = () => Oe(kp(z, S));
|
|
8996
8997
|
I.addEventListener("range", Me), Me();
|
|
8997
|
-
}),
|
|
8998
|
+
}), j && x(this, ct).push(() => {
|
|
8998
8999
|
const Oe = this.createMarkUniformSetter(oe), Me = () => {
|
|
8999
9000
|
const me = Zt(z.type) ? [0, z.domain().length] : z.domain();
|
|
9000
9001
|
Oe(
|
|
@@ -10078,10 +10079,10 @@ function JE(t) {
|
|
|
10078
10079
|
}
|
|
10079
10080
|
return n;
|
|
10080
10081
|
}
|
|
10081
|
-
const _E = "out vec4 vColor;out float vSize;out float vNormalLengthInPixels;out float vGamma;const int SHAPE_ARC=0;const int SHAPE_DOME=1;const int SHAPE_DIAGONAL=2;const int SHAPE_LINE=3;const int ORIENT_VERTICAL=0;const int ORIENT_HORIZONTAL=1;float distanceFromLine(vec2 pointOnLine1,vec2 pointOnLine2,vec2 point){vec2 a=point-pointOnLine1;vec2 b=pointOnLine2-pointOnLine1;vec2 proj=dot(a,b)/dot(b,b)*b;return length(a-proj);}bool isInsideViewport(vec2 point,float marginFactor){vec2 margin=uViewportSize*vec2(marginFactor);return point.x>=-margin.x&&point.x<=uViewportSize.x+margin.x&&point.y>=-margin.y&&point.y<=uViewportSize.y+margin.y;}void main(void){float pixelSize=1.0/uDevicePixelRatio;float opacity=getScaled_opacity()*uViewOpacity;vec2 p1,p2,p3,p4;vec2 a=applySampleFacet(vec2(getScaled_x(),getScaled_y()))*uViewportSize;vec2 b=applySampleFacet(vec2(getScaled_x2(),getScaled_y2()))*uViewportSize;if(uShape<=SHAPE_DOME){if(uShape==SHAPE_DOME){vec2 height=vec2(0.0);if(uOrient==ORIENT_VERTICAL){p1=vec2(min(a.x,b.x),b.y);p4=vec2(max(a.x,b.x),b.y);height=vec2(0.0,a.y-b.y);if(uClampApex){if(p4.x>0.0){p1.x=max(p1.x,-p4.x);}if(p1.x<uViewportSize.x){p4.x=min(p4.x,2.0*uViewportSize.x-p1.x);}}}else{p1=vec2(b.x,min(a.y,b.y));p4=vec2(b.x,max(a.y,b.y));height=vec2(a.x-b.x,0.0);if(uClampApex){if(p4.y>0.0){p1.y=max(p1.y,-p4.y);}if(p1.y<uViewportSize.y){p4.y=min(p4.y,2.0*uViewportSize.y-p1.y);}}}vec2 controlOffset=height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}if(uShape==SHAPE_ARC){p1=a;p4=b;vec2 chordVector=p4-p1;vec2 unitChordVector=normalize(chordVector);vec2 chordNormal=vec2(-unitChordVector.y,unitChordVector.x);float chordLength=length(chordVector);if(chordLength>uMaxChordLength){if(isInsideViewport(p1,2.0)){chordLength=uMaxChordLength;p4=p1+unitChordVector*uMaxChordLength;}else if(isInsideViewport(p4,2.0)){chordLength=uMaxChordLength;p1=p4-unitChordVector*uMaxChordLength;}}float height=max(chordLength/2.0*uArcHeightFactor,uMinArcHeight);vec2 controlOffset=chordNormal*height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}}else if(uShape==SHAPE_DIAGONAL){if(uOrient==ORIENT_VERTICAL){p1=a;p2=vec2(a.x,(a.y+b.y)/2.0);p3=vec2(b.x,(a.y+b.y)/2.0);p4=b;}else{p1=a;p2=vec2((a.x+b.x)/2.0,a.y);p3=vec2((a.x+b.x)/2.0,b.y);p4=b;}}else if(uShape==SHAPE_LINE){p1=a;p2=(a+b)/2.0;p3=p2;p4=b;}vec2 strip=vec2(float(gl_VertexID/2)/float(uSegmentBreaks),float(gl_VertexID % 2)-0.5);float t=smoothstep(0.0,1.0,strip.x);vec2 C1=p4-3.0*p3+3.0*p2-p1;vec2 C2=3.0*p3-6.0*p2+3.0*p1;vec2 C3=3.0*p2-3.0*p1;vec2 C4=p1;vec2 p;if(t==0.0){p=p1;}else if(t==1.0){p=p4;}else{p=C1*t*t*t+C2*t*t+C3*t+C4;}vec2 tangent=normalize(3.0*C1*t*t+2.0*C2*t+C3);vec2 normal=vec2(-tangent.y,tangent.x);float size=getScaled_size();if(size<pixelSize){opacity*=size/pixelSize;size=pixelSize;}float paddedSize=uPickingEnabled? max(size,uMinPickingSize): size+pixelSize;vNormalLengthInPixels=strip.y*paddedSize;if(uShape==SHAPE_ARC&&uArcFadingDistance[0]>0.0&&uArcFadingDistance[1]>0.0&&(!uNoFadingOnPointSelection||!isPointSelected())){float d=distanceFromLine(p1,p4,p);float distanceOpacity=smoothstep(uArcFadingDistance[1],uArcFadingDistance[0],d);opacity*=distanceOpacity;if(distanceOpacity<=0.0){vNormalLengthInPixels=0.0;}}p+=normal*vNormalLengthInPixels;gl_Position=pixelsToNdc(p);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vSize=paddedSize;setupPicking();}", $E = "in vec4 vColor;in float vSize;in float vNormalLengthInPixels;in float vGamma;out lowp vec4 fragColor;void main(void){float dpr=uDevicePixelRatio;float distance=abs(vNormalLengthInPixels);float opacity=clamp(((vSize/2.0-distance)*dpr),0.0,1.0);opacity=pow(opacity,vGamma);fragColor=vColor*opacity;if(uPickingEnabled){fragColor=vPickingColor;}}",
|
|
10082
|
+
const _E = "out vec4 vColor;out float vSize;out float vNormalLengthInPixels;out float vGamma;const int SHAPE_ARC=0;const int SHAPE_DOME=1;const int SHAPE_DIAGONAL=2;const int SHAPE_LINE=3;const int ORIENT_VERTICAL=0;const int ORIENT_HORIZONTAL=1;float distanceFromLine(vec2 pointOnLine1,vec2 pointOnLine2,vec2 point){vec2 a=point-pointOnLine1;vec2 b=pointOnLine2-pointOnLine1;vec2 proj=dot(a,b)/dot(b,b)*b;return length(a-proj);}bool isInsideViewport(vec2 point,float marginFactor){vec2 margin=uViewportSize*vec2(marginFactor);return point.x>=-margin.x&&point.x<=uViewportSize.x+margin.x&&point.y>=-margin.y&&point.y<=uViewportSize.y+margin.y;}void main(void){float pixelSize=1.0/uDevicePixelRatio;float opacity=getScaled_opacity()*uViewOpacity;vec2 p1,p2,p3,p4;vec2 a=applySampleFacet(vec2(getScaled_x(),getScaled_y()))*uViewportSize;vec2 b=applySampleFacet(vec2(getScaled_x2(),getScaled_y2()))*uViewportSize;if(uShape<=SHAPE_DOME){if(uShape==SHAPE_DOME){vec2 height=vec2(0.0);if(uOrient==ORIENT_VERTICAL){p1=vec2(min(a.x,b.x),b.y);p4=vec2(max(a.x,b.x),b.y);height=vec2(0.0,a.y-b.y);if(uClampApex){if(p4.x>0.0){p1.x=max(p1.x,-p4.x);}if(p1.x<uViewportSize.x){p4.x=min(p4.x,2.0*uViewportSize.x-p1.x);}}}else{p1=vec2(b.x,min(a.y,b.y));p4=vec2(b.x,max(a.y,b.y));height=vec2(a.x-b.x,0.0);if(uClampApex){if(p4.y>0.0){p1.y=max(p1.y,-p4.y);}if(p1.y<uViewportSize.y){p4.y=min(p4.y,2.0*uViewportSize.y-p1.y);}}}vec2 controlOffset=height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}if(uShape==SHAPE_ARC){p1=a;p4=b;vec2 chordVector=p4-p1;vec2 unitChordVector=normalize(chordVector);vec2 chordNormal=vec2(-unitChordVector.y,unitChordVector.x);float chordLength=length(chordVector);if(chordLength>uMaxChordLength){if(isInsideViewport(p1,2.0)){chordLength=uMaxChordLength;p4=p1+unitChordVector*uMaxChordLength;}else if(isInsideViewport(p4,2.0)){chordLength=uMaxChordLength;p1=p4-unitChordVector*uMaxChordLength;}}float height=max(chordLength/2.0*uArcHeightFactor,uMinArcHeight);vec2 controlOffset=chordNormal*height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}}else if(uShape==SHAPE_DIAGONAL){if(uOrient==ORIENT_VERTICAL){p1=a;p2=vec2(a.x,(a.y+b.y)/2.0);p3=vec2(b.x,(a.y+b.y)/2.0);p4=b;}else{p1=a;p2=vec2((a.x+b.x)/2.0,a.y);p3=vec2((a.x+b.x)/2.0,b.y);p4=b;}}else if(uShape==SHAPE_LINE){p1=a;p2=(a+b)/2.0;p3=p2;p4=b;}vec2 strip=vec2(float(gl_VertexID/2)/float(uSegmentBreaks),float(gl_VertexID % 2)-0.5);float t=smoothstep(0.0,1.0,strip.x);vec2 C1=p4-3.0*p3+3.0*p2-p1;vec2 C2=3.0*p3-6.0*p2+3.0*p1;vec2 C3=3.0*p2-3.0*p1;vec2 C4=p1;vec2 p;if(t==0.0){p=p1;}else if(t==1.0){p=p4;}else{p=C1*t*t*t+C2*t*t+C3*t+C4;}vec2 tangent=normalize(3.0*C1*t*t+2.0*C2*t+C3);vec2 normal=vec2(-tangent.y,tangent.x);float size=getScaled_size();if(size<pixelSize){opacity*=size/pixelSize;size=pixelSize;}float paddedSize=uPickingEnabled? max(size,uMinPickingSize): size+pixelSize;vNormalLengthInPixels=strip.y*paddedSize;if(uShape==SHAPE_ARC&&uArcFadingDistance[0]>0.0&&uArcFadingDistance[1]>0.0&&(!uNoFadingOnPointSelection||!isPointSelected())){float d=distanceFromLine(p1,p4,p);float distanceOpacity=smoothstep(uArcFadingDistance[1],uArcFadingDistance[0],d);opacity*=distanceOpacity;if(distanceOpacity<=0.0){vNormalLengthInPixels=0.0;}}p+=normal*vNormalLengthInPixels;gl_Position=pixelsToNdc(p);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vSize=paddedSize;setupPicking();}", $E = "in vec4 vColor;in float vSize;in float vNormalLengthInPixels;in float vGamma;out lowp vec4 fragColor;void main(void){float dpr=uDevicePixelRatio;float distance=abs(vNormalLengthInPixels);float opacity=clamp(((vSize/2.0-distance)*dpr),0.0,1.0);opacity=pow(opacity,vGamma);fragColor=vColor*opacity;if(uPickingEnabled){fragColor=vPickingColor;}}", e4 = `layout(std140)uniform Mark{uniform float uArcHeightFactor;uniform float uMinArcHeight;uniform float uMinPickingSize;uniform int uShape;uniform int uOrient;uniform bool uClampApex;uniform float uMaxChordLength;uniform vec2 uArcFadingDistance;uniform bool uNoFadingOnPointSelection;uniform int uSegmentBreaks;
|
|
10082
10083
|
#pragma markUniforms
|
|
10083
|
-
};`,
|
|
10084
|
-
class
|
|
10084
|
+
};`, t4 = ["arc", "dome", "diagonal", "line"], n4 = ["vertical", "horizontal"];
|
|
10085
|
+
class r4 extends Ds {
|
|
10085
10086
|
/**
|
|
10086
10087
|
* @param {import("../view/unitView.js").default} unitView
|
|
10087
10088
|
*/
|
|
@@ -10138,7 +10139,7 @@ class rC extends Ds {
|
|
|
10138
10139
|
}
|
|
10139
10140
|
async initializeGraphics() {
|
|
10140
10141
|
await super.initializeGraphics(), this.createAndLinkShaders(_E, $E, [
|
|
10141
|
-
|
|
10142
|
+
e4
|
|
10142
10143
|
]);
|
|
10143
10144
|
}
|
|
10144
10145
|
finalizeGraphicsInitialization() {
|
|
@@ -10155,11 +10156,11 @@ class rC extends Ds {
|
|
|
10155
10156
|
), this.registerMarkUniformValue("uMinArcHeight", e.minArcHeight), this.registerMarkUniformValue("uMinPickingSize", e.minPickingSize), this.registerMarkUniformValue(
|
|
10156
10157
|
"uShape",
|
|
10157
10158
|
e.linkShape,
|
|
10158
|
-
(n) =>
|
|
10159
|
+
(n) => t4.indexOf(n)
|
|
10159
10160
|
), this.registerMarkUniformValue(
|
|
10160
10161
|
"uOrient",
|
|
10161
10162
|
e.orient,
|
|
10162
|
-
(n) =>
|
|
10163
|
+
(n) => n4.indexOf(n)
|
|
10163
10164
|
), this.registerMarkUniformValue(
|
|
10164
10165
|
"uClampApex",
|
|
10165
10166
|
e.clampApex,
|
|
@@ -10241,7 +10242,7 @@ class rC extends Ds {
|
|
|
10241
10242
|
}, e);
|
|
10242
10243
|
}
|
|
10243
10244
|
}
|
|
10244
|
-
const
|
|
10245
|
+
const i4 = `in mediump vec2 vertexCoord;in lowp vec2 textureCoord;in float width;out vec2 vTexCoord;out vec4 vColor;out float vSlope;out float vEdgeFadeOpacity;out float vGamma;struct RangeResult{float pos;float scale;};float minValue(vec4 v){return min(min(v.x,v.y),min(v.z,v.w));}float maxValue(vec4 v){return max(max(v.x,v.y),max(v.z,v.w));}/***All measures are in[0,1]*/RangeResult positionInsideRange(float a,float b,float width,float padding,int align,bool flush){float span=b-a;float paddedWidth=width+2.0*padding;if(a>1.0||b<0.0){return RangeResult(0.0,0.0);}float extra=max(0.0,span-paddedWidth);float pos;if(align==0){float centre=a+b;if(flush){float leftOver=max(0.0,paddedWidth-centre);centre+=min(leftOver,extra);float rightOver=max(0.0,paddedWidth+centre-2.0);centre-=min(rightOver,extra);}pos=centre/2.0;}else if(align<0){float edge=a;if(flush){float over=max(0.0,-edge);edge+=min(over,extra);}pos=edge+padding;}else{float edge=b;if(flush){float over=max(0.0,edge-1.0);edge-=min(over,extra);}pos=edge-padding;}float scale=clamp((span-padding)/paddedWidth,0.0,1.0);return RangeResult(pos,scale);}vec2 calculateRotatedDimensions(float width,mat2 rotationMatrix){vec2 a=abs(rotationMatrix*vec2(width/2.0,0.5));vec2 b=abs(rotationMatrix*vec2(width/2.0,-0.5));return vec2(max(a.x,b.x),max(a.y,b.y))*2.0;}ivec2 fixAlignForAngle(ivec2 align,float angleInDegrees){float a=mod(angleInDegrees+45.0,360.0);int x=align.x;int y=-align.y;if(a<90.0){return ivec2(x,y);}else if(a<180.0){return ivec2(y,-x);}else if(a<270.0){return ivec2(-x,y);}else{return ivec2(-y,x);}}void main(void){float opacity=getScaled_opacity()*uViewOpacity;vec2 size=vec2(getScaled_size());float x=getScaled_x();float y=getScaled_y();float scale=1.0;float angleInDegrees=getScaled_angle();float angle=-angleInDegrees*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);mat2 rotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);vec2 flushSize=calculateRotatedDimensions(width,rotationMatrix);
|
|
10245
10246
|
#if defined(x2_DEFINED) || defined(y2_DEFINED)
|
|
10246
10247
|
ivec2 align=fixAlignForAngle(uAlign,angleInDegrees);
|
|
10247
10248
|
#else
|
|
@@ -10254,19 +10255,19 @@ vec2 pos=applySampleFacet(vec2(x,y));
|
|
|
10254
10255
|
#ifdef y2_DEFINED
|
|
10255
10256
|
float y2=getScaled_y2();vec2 pos2=applySampleFacet(vec2(x,y2));if(uLogoLetter){size.y=(pos2.y-pos.y)*uViewportSize.y;pos.y+=(pos2.y-pos.y)/2.0;}else{RangeResult result=positionInsideRange(min(pos.y,pos2.y),max(pos.y,pos2.y),size.y*scale*flushSize.y/uViewportSize.y,uPaddingY/uViewportSize.y,align.y,uFlushY);pos.y=result.pos;scale*=result.scale;}
|
|
10256
10257
|
#endif
|
|
10257
|
-
if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scaleFadeExtent[0]){gl_Position=vec4(0.0);return;}size*=scale;opacity*=linearstep(scaleFadeExtent[0],scaleFadeExtent[1],scale);}else if(scale<1.0){gl_Position=vec4(0.0);return;}}vec2 charPos=rotationMatrix*(vertexCoord*size+uD);vec2 unitPos=pos+charPos/uViewportSize;gl_Position=unitToNdc(unitPos);vSlope=max(1.0,min(size.x,size.y)/uSdfNumerator);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vTexCoord=textureCoord;if(maxValue(uViewportEdgeFadeDistance)>-pow(10.0,10.0)){vEdgeFadeOpacity=minValue(((vec4(1.0,1.0,0.0,0.0)+vec4(-1.0,-1.0,1.0,1.0)*unitPos.yxyx)*uViewportSize.yxyx-uViewportEdgeFadeDistance)/uViewportEdgeFadeWidth);}else{vEdgeFadeOpacity=1.0;}setupPicking();}`,
|
|
10258
|
+
if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scaleFadeExtent[0]){gl_Position=vec4(0.0);return;}size*=scale;opacity*=linearstep(scaleFadeExtent[0],scaleFadeExtent[1],scale);}else if(scale<1.0){gl_Position=vec4(0.0);return;}}vec2 charPos=rotationMatrix*(vertexCoord*size+uD);vec2 unitPos=pos+charPos/uViewportSize;gl_Position=unitToNdc(unitPos);vSlope=max(1.0,min(size.x,size.y)/uSdfNumerator);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vTexCoord=textureCoord;if(maxValue(uViewportEdgeFadeDistance)>-pow(10.0,10.0)){vEdgeFadeOpacity=minValue(((vec4(1.0,1.0,0.0,0.0)+vec4(-1.0,-1.0,1.0,1.0)*unitPos.yxyx)*uViewportSize.yxyx-uViewportEdgeFadeDistance)/uViewportEdgeFadeWidth);}else{vEdgeFadeOpacity=1.0;}setupPicking();}`, s4 = "uniform sampler2D uTexture;in vec2 vTexCoord;in float vEdgeFadeOpacity;in vec4 vColor;in float vSlope;in float vGamma;out lowp vec4 fragColor;float median(float r,float g,float b){return max(min(r,g),min(max(r,g),b));}void main(){vec3 c=texture(uTexture,vTexCoord).rgb;float sigDist=1.0-median(c.r,c.g,c.b);float slope=uLogoLetter? 0.7/length(vec2(dFdy(sigDist),dFdx(sigDist))): vSlope;float opa=clamp((sigDist-0.5)*slope+0.5,0.0,1.0);opa*=clamp(vEdgeFadeOpacity,0.0,1.0);opa=pow(opa,vGamma);fragColor=vColor*opa;if(uPickingEnabled){fragColor=vPickingColor;}}", o4 = `layout(std140)uniform Mark{uniform mediump float uSdfNumerator;uniform mediump vec2 uD;uniform mediump vec4 uViewportEdgeFadeWidth;uniform mediump vec4 uViewportEdgeFadeDistance;uniform bool uSqueeze;uniform bool uLogoLetter;uniform lowp ivec2 uAlign;uniform mediump float uPaddingX;uniform bool uFlushX;uniform mediump float uPaddingY;uniform bool uFlushY;
|
|
10258
10259
|
#pragma markUniforms
|
|
10259
|
-
};`,
|
|
10260
|
+
};`, a4 = {
|
|
10260
10261
|
left: -1,
|
|
10261
10262
|
center: 0,
|
|
10262
10263
|
right: 1
|
|
10263
|
-
},
|
|
10264
|
+
}, c4 = {
|
|
10264
10265
|
top: -1,
|
|
10265
10266
|
middle: 0,
|
|
10266
10267
|
bottom: 1,
|
|
10267
10268
|
alphabetic: 1
|
|
10268
10269
|
};
|
|
10269
|
-
class
|
|
10270
|
+
class u4 extends Ds {
|
|
10270
10271
|
/**
|
|
10271
10272
|
* @typedef {import("../spec/mark.js").MarkProps} MarkProps
|
|
10272
10273
|
*/
|
|
@@ -10359,8 +10360,8 @@ class uC extends Ds {
|
|
|
10359
10360
|
return e;
|
|
10360
10361
|
}
|
|
10361
10362
|
async initializeGraphics() {
|
|
10362
|
-
await super.initializeGraphics(), this.createAndLinkShaders(
|
|
10363
|
-
|
|
10363
|
+
await super.initializeGraphics(), this.createAndLinkShaders(i4, s4, [
|
|
10364
|
+
o4
|
|
10364
10365
|
]);
|
|
10365
10366
|
}
|
|
10366
10367
|
finalizeGraphicsInitialization() {
|
|
@@ -10375,7 +10376,7 @@ class uC extends Ds {
|
|
|
10375
10376
|
return this.properties.logoLetters && (r /= 2), this.font.metrics.common.base / (n / r);
|
|
10376
10377
|
}
|
|
10377
10378
|
), this.registerMarkUniformValue("uPaddingX", e.paddingX), this.registerMarkUniformValue("uPaddingY", e.paddingY), this.registerMarkUniformValue("uFlushX", e.flushX, (n) => !!n), this.registerMarkUniformValue("uFlushY", e.flushY, (n) => !!n), this.registerMarkUniformValue("uSqueeze", e.squeeze, (n) => !!n), Mi(this.markUniformInfo, {
|
|
10378
|
-
uAlign: [
|
|
10379
|
+
uAlign: [a4[e.align], c4[e.baseline]],
|
|
10379
10380
|
uD: [e.dx, -e.dy],
|
|
10380
10381
|
uLogoLetter: !!e.logoLetters,
|
|
10381
10382
|
uViewportEdgeFadeWidth: [
|
|
@@ -10402,7 +10403,7 @@ class uC extends Ds {
|
|
|
10402
10403
|
let s = 0;
|
|
10403
10404
|
const o = "format" in r.text ? be(r.text.format) : (u) => u;
|
|
10404
10405
|
for (const u of n) {
|
|
10405
|
-
const f = o(i(u)), l =
|
|
10406
|
+
const f = o(i(u)), l = Z(f) ? f : f === null ? "" : "" + f;
|
|
10406
10407
|
s += l && l.length || 0;
|
|
10407
10408
|
}
|
|
10408
10409
|
const a = new SE({
|
|
@@ -10513,7 +10514,7 @@ function dl() {
|
|
|
10513
10514
|
);
|
|
10514
10515
|
}, u.copy = () => dl().domain(t).range(e).paddingInner(i).paddingOuter(s).numberingOffset(a), u;
|
|
10515
10516
|
}
|
|
10516
|
-
function
|
|
10517
|
+
function l4() {
|
|
10517
10518
|
const t = (
|
|
10518
10519
|
/** @type {any} */
|
|
10519
10520
|
dl().numberingOffset(1)
|
|
@@ -10559,7 +10560,7 @@ function lC() {
|
|
|
10559
10560
|
const n = t.copy;
|
|
10560
10561
|
return t.copy = () => n().genome(e), t;
|
|
10561
10562
|
}
|
|
10562
|
-
function
|
|
10563
|
+
function f4(t) {
|
|
10563
10564
|
return t.type == "locus";
|
|
10564
10565
|
}
|
|
10565
10566
|
function Eo(t, e, n) {
|
|
@@ -10630,29 +10631,29 @@ function Yp(t, e, n) {
|
|
|
10630
10631
|
}
|
|
10631
10632
|
return e;
|
|
10632
10633
|
}
|
|
10633
|
-
function
|
|
10634
|
-
return t.bins ? Yp(t,
|
|
10634
|
+
function h4(t, e) {
|
|
10635
|
+
return t.bins ? Yp(t, d4(t.bins, e)) : t.ticks ? t.ticks(e) : t.domain();
|
|
10635
10636
|
}
|
|
10636
|
-
function
|
|
10637
|
+
function d4(t, e) {
|
|
10637
10638
|
var n = t.length, r = ~~(n / (e || n));
|
|
10638
10639
|
return r < 2 ? t.slice() : t.filter(function(i, s) {
|
|
10639
10640
|
return !(s % r);
|
|
10640
10641
|
});
|
|
10641
10642
|
}
|
|
10642
|
-
function
|
|
10643
|
+
function p4(t, e, n) {
|
|
10643
10644
|
var r = t.tickFormat ? t.tickFormat(e, n) : n ? be(n) : String;
|
|
10644
10645
|
if (tp(t.type)) {
|
|
10645
|
-
var i =
|
|
10646
|
-
r = t.bins ? i :
|
|
10646
|
+
var i = m4(n);
|
|
10647
|
+
r = t.bins ? i : g4(r, i);
|
|
10647
10648
|
}
|
|
10648
10649
|
return r;
|
|
10649
10650
|
}
|
|
10650
|
-
function
|
|
10651
|
+
function g4(t, e) {
|
|
10651
10652
|
return function(n) {
|
|
10652
10653
|
return t(n) ? e(n) : "";
|
|
10653
10654
|
};
|
|
10654
10655
|
}
|
|
10655
|
-
function
|
|
10656
|
+
function m4(t) {
|
|
10656
10657
|
var e = Br(t || ",");
|
|
10657
10658
|
if (e.precision == null) {
|
|
10658
10659
|
switch (e.precision = 12, e.type) {
|
|
@@ -10663,7 +10664,7 @@ function mC(t) {
|
|
|
10663
10664
|
e.precision -= 1;
|
|
10664
10665
|
break;
|
|
10665
10666
|
}
|
|
10666
|
-
return
|
|
10667
|
+
return A4(
|
|
10667
10668
|
be(e),
|
|
10668
10669
|
// number format
|
|
10669
10670
|
be(".1f")(1)[1]
|
|
@@ -10672,11 +10673,11 @@ function mC(t) {
|
|
|
10672
10673
|
} else
|
|
10673
10674
|
return be(e);
|
|
10674
10675
|
}
|
|
10675
|
-
function
|
|
10676
|
+
function A4(t, e) {
|
|
10676
10677
|
return function(n) {
|
|
10677
10678
|
var r = t(n), i = r.indexOf(e), s, o;
|
|
10678
10679
|
if (i < 0) return r;
|
|
10679
|
-
for (s =
|
|
10680
|
+
for (s = y4(r, i), o = s < r.length ? r.slice(s) : ""; --s > i; )
|
|
10680
10681
|
if (r[s] !== "0") {
|
|
10681
10682
|
++s;
|
|
10682
10683
|
break;
|
|
@@ -10684,7 +10685,7 @@ function AC(t, e) {
|
|
|
10684
10685
|
return r.slice(0, s) + o;
|
|
10685
10686
|
};
|
|
10686
10687
|
}
|
|
10687
|
-
function
|
|
10688
|
+
function y4(t, e) {
|
|
10688
10689
|
var n = t.lastIndexOf("e"), r;
|
|
10689
10690
|
if (n > 0) return n;
|
|
10690
10691
|
for (n = t.length; --n > e; )
|
|
@@ -10699,21 +10700,21 @@ function yC(t, e) {
|
|
|
10699
10700
|
*
|
|
10700
10701
|
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
10701
10702
|
*/
|
|
10702
|
-
const
|
|
10703
|
-
var
|
|
10704
|
-
function
|
|
10703
|
+
const x4 = "locus", b4 = "index";
|
|
10704
|
+
var w4 = 5;
|
|
10705
|
+
function v4(t) {
|
|
10705
10706
|
const e = t.type;
|
|
10706
10707
|
return !t.bins && (e === kr || e === hs || e === ds);
|
|
10707
10708
|
}
|
|
10708
10709
|
function jp(t) {
|
|
10709
|
-
return de(t) && ![pt,
|
|
10710
|
+
return de(t) && ![pt, b4, x4].includes(t);
|
|
10710
10711
|
}
|
|
10711
10712
|
function Xp(t) {
|
|
10712
10713
|
return t || {
|
|
10713
10714
|
warn: (e, ...n) => console.warn(e, ...n)
|
|
10714
10715
|
};
|
|
10715
10716
|
}
|
|
10716
|
-
var
|
|
10717
|
+
var E4 = ro([
|
|
10717
10718
|
"set",
|
|
10718
10719
|
"modified",
|
|
10719
10720
|
"clear",
|
|
@@ -10743,39 +10744,39 @@ var EC = ro([
|
|
|
10743
10744
|
function qp(t, e, n) {
|
|
10744
10745
|
n = Xp(n);
|
|
10745
10746
|
for (const r in t)
|
|
10746
|
-
if (!
|
|
10747
|
+
if (!E4[r]) {
|
|
10747
10748
|
if (r === "padding" && jp(e.type)) continue;
|
|
10748
10749
|
qe(e[r]) ? e[r](t[r]) : n.warn("Unsupported scale property: " + r);
|
|
10749
10750
|
}
|
|
10750
|
-
|
|
10751
|
+
I4(
|
|
10751
10752
|
e,
|
|
10752
10753
|
t,
|
|
10753
|
-
|
|
10754
|
+
F4(e, t, B4(e, t, n))
|
|
10754
10755
|
);
|
|
10755
10756
|
}
|
|
10756
|
-
function
|
|
10757
|
-
const n =
|
|
10757
|
+
function C4(t, e) {
|
|
10758
|
+
const n = S4(t), r = Q(n);
|
|
10758
10759
|
if (!r)
|
|
10759
10760
|
throw new Error("Unknown scale type: " + n);
|
|
10760
10761
|
const i = r();
|
|
10761
10762
|
return !t.domain && de(i.type) && (t.domain = [0, 0]), qp(t, i, e), i;
|
|
10762
10763
|
}
|
|
10763
|
-
function
|
|
10764
|
+
function S4(t) {
|
|
10764
10765
|
var e = t.type, n = "", r;
|
|
10765
|
-
return e === pt ? pt + "-" + kr : (
|
|
10766
|
+
return e === pt ? pt + "-" + kr : (D4(t) && (r = t.rawDomain ? t.rawDomain.length : t.domain ? t.domain.length + +(t.domainMid != null) : 0, n = r === 2 ? pt + "-" : r === 3 ? Gr + "-" : ""), (n + e || kr).toLowerCase());
|
|
10766
10767
|
}
|
|
10767
|
-
function
|
|
10768
|
+
function D4(t) {
|
|
10768
10769
|
const e = t.type;
|
|
10769
|
-
return de(e) && e !== Xd && e !== qd && (t.scheme || t.range && t.range.length && t.range.every(
|
|
10770
|
+
return de(e) && e !== Xd && e !== qd && (t.scheme || t.range && t.range.length && t.range.every(Z));
|
|
10770
10771
|
}
|
|
10771
|
-
function
|
|
10772
|
+
function B4(t, e, n) {
|
|
10772
10773
|
if (!t.domain)
|
|
10773
10774
|
return 0;
|
|
10774
10775
|
n = Xp(n);
|
|
10775
|
-
var r =
|
|
10776
|
+
var r = T4(t, e.domainRaw, n);
|
|
10776
10777
|
if (r > -1) return r;
|
|
10777
|
-
var i = e.domain, s = t.type, o = e.zero || e.zero === void 0 &&
|
|
10778
|
-
return i ? (jp(s) && e.padding && i[0] !== it(i) && (i =
|
|
10778
|
+
var i = e.domain, s = t.type, o = e.zero || e.zero === void 0 && v4(t), a, c;
|
|
10779
|
+
return i ? (jp(s) && e.padding && i[0] !== it(i) && (i = M4(
|
|
10779
10780
|
s,
|
|
10780
10781
|
i,
|
|
10781
10782
|
e.range,
|
|
@@ -10784,10 +10785,10 @@ function BC(t, e, n) {
|
|
|
10784
10785
|
e.constant
|
|
10785
10786
|
)), (o || e.domainMin != null || e.domainMax != null || e.domainMid != null) && (a = (i = i.slice()).length - 1 || 1, o && (i[0] > 0 && (i[0] = 0), i[a] < 0 && (i[a] = 0)), e.domainMin != null && (i[0] = e.domainMin), e.domainMax != null && (i[a] = e.domainMax), e.domainMid != null && (c = e.domainMid, (c < i[0] || c > i[a]) && n.warn("Scale domainMid exceeds domain min or max.", c), i.splice(a, 0, c))), t.domain(Zp(s, i, n)), s === el && t.unknown(e.domainImplicit ? gc : void 0), e.nice && t.nice && t.nice(e.nice !== !0 && Wp(t, e.nice) || null), i.length) : 0;
|
|
10786
10787
|
}
|
|
10787
|
-
function
|
|
10788
|
+
function T4(t, e, n) {
|
|
10788
10789
|
return e ? (t.domain(Zp(t.type, e, n)), e.length) : -1;
|
|
10789
10790
|
}
|
|
10790
|
-
function
|
|
10791
|
+
function M4(t, e, n, r, i, s) {
|
|
10791
10792
|
n ?? (n = [0, 1]);
|
|
10792
10793
|
var o = Math.abs(it(n) - n[0]), a = o / (o - 2 * r), c = t === qt ? Sh(e, null, a) : t === ds ? qa(e, null, a, 0.5) : t === hs ? qa(e, null, a, i || 1) : t === sa ? tm(e, null, a, s || 1) : Ch(e, null, a);
|
|
10793
10794
|
return e = e.slice(), e[0] = c[0], e[e.length - 1] = c[1], e;
|
|
@@ -10805,7 +10806,7 @@ function Zp(t, e, n) {
|
|
|
10805
10806
|
}
|
|
10806
10807
|
return e;
|
|
10807
10808
|
}
|
|
10808
|
-
function
|
|
10809
|
+
function F4(t, e, n) {
|
|
10809
10810
|
let r = e.bins;
|
|
10810
10811
|
if (r && !Ee(r)) {
|
|
10811
10812
|
const i = (r.start == null || r.stop == null) && t.domain(), s = r.start == null ? i[0] : r.start, o = r.stop == null ? it(i) : r.stop, a = r.step;
|
|
@@ -10813,11 +10814,11 @@ function FC(t, e, n) {
|
|
|
10813
10814
|
}
|
|
10814
10815
|
return r ? t.bins = r : t.bins && delete t.bins, t.type === tl && (r ? !e.domain && !e.domainRaw && (t.domain(r), n = r.length) : t.bins = t.domain()), n;
|
|
10815
10816
|
}
|
|
10816
|
-
function
|
|
10817
|
+
function I4(t, e, n) {
|
|
10817
10818
|
var r = t.type, i = e.round || !1, s = e.range;
|
|
10818
10819
|
if (e.rangeStep != null)
|
|
10819
|
-
s =
|
|
10820
|
-
else if (e.scheme && (s =
|
|
10820
|
+
s = P4(r, e, n);
|
|
10821
|
+
else if (e.scheme && (s = R4(r, e, n), qe(s))) {
|
|
10821
10822
|
if (t.interpolator)
|
|
10822
10823
|
return t.interpolator(s);
|
|
10823
10824
|
ne(
|
|
@@ -10834,14 +10835,14 @@ function IC(t, e, n) {
|
|
|
10834
10835
|
);
|
|
10835
10836
|
s && e.interpolate && t.interpolate ? t.interpolate(np(e.interpolate, e.interpolateGamma)) : qe(t.round) ? t.round(i) : qe(t.rangeRound) && t.interpolate(i ? ls : an), s && t.range(zc(s, e.reverse));
|
|
10836
10837
|
}
|
|
10837
|
-
function
|
|
10838
|
+
function P4(t, e, n) {
|
|
10838
10839
|
t !== Jd && t !== Dc && ne("Only band and point scales support rangeStep.");
|
|
10839
10840
|
var r = (e.paddingOuter != null ? e.paddingOuter : e.padding) || 0, i = t === Dc ? 1 : (e.paddingInner != null ? e.paddingInner : e.padding) || 0;
|
|
10840
10841
|
return [0, e.rangeStep * $u(n, i, r)];
|
|
10841
10842
|
}
|
|
10842
|
-
function
|
|
10843
|
+
function R4(t, e, n) {
|
|
10843
10844
|
var r = e.schemeExtent, i, s;
|
|
10844
|
-
return Ee(e.scheme) ? s = aa(e.scheme, e.interpolate, e.interpolateGamma) : (i = e.scheme.toLowerCase(), s = rl(i), s || ne(`Unrecognized scheme name: ${e.scheme}`)), n = t === Kd ? n + 1 : t === tl ? n - 1 : t === Sc || t === Zd ? +e.schemeCount ||
|
|
10845
|
+
return Ee(e.scheme) ? s = aa(e.scheme, e.interpolate, e.interpolateGamma) : (i = e.scheme.toLowerCase(), s = rl(i), s || ne(`Unrecognized scheme name: ${e.scheme}`)), n = t === Kd ? n + 1 : t === tl ? n - 1 : t === Sc || t === Zd ? +e.schemeCount || w4 : n, oa(t) ? nh(s, r, e.reverse) : qe(s) ? m3(nh(s, r), n) : t === el ? s : s.slice(0, n);
|
|
10845
10846
|
}
|
|
10846
10847
|
function nh(t, e, n) {
|
|
10847
10848
|
return qe(t) && (e || n) ? g3(t, zc(e || [0, 1], n)) : t;
|
|
@@ -10850,17 +10851,17 @@ function zc(t, e) {
|
|
|
10850
10851
|
return e ? t.slice().reverse() : t;
|
|
10851
10852
|
}
|
|
10852
10853
|
const rh = be(",d");
|
|
10853
|
-
function
|
|
10854
|
+
function k4(t, e) {
|
|
10854
10855
|
return t.chrom + ":" + rh(Math.floor(t.pos + 1)) + "-" + (t.chrom != e.chrom ? e.chrom + ":" : "") + rh(Math.ceil(e.pos));
|
|
10855
10856
|
}
|
|
10856
|
-
const
|
|
10857
|
+
const L4 = `chr3R 32079331
|
|
10857
10858
|
chr3L 28110227
|
|
10858
10859
|
chr2R 25286936
|
|
10859
10860
|
chrX 23542271
|
|
10860
10861
|
chr2L 23513712
|
|
10861
10862
|
chrY 3667352
|
|
10862
10863
|
chr4 1348131
|
|
10863
|
-
chrM 19524`,
|
|
10864
|
+
chrM 19524`, O4 = `chr1 247249719
|
|
10864
10865
|
chr2 242951149
|
|
10865
10866
|
chr3 199501827
|
|
10866
10867
|
chr4 191273063
|
|
@@ -10884,7 +10885,7 @@ chr21 46944323
|
|
|
10884
10885
|
chr22 49691432
|
|
10885
10886
|
chrX 154913754
|
|
10886
10887
|
chrY 57772954
|
|
10887
|
-
chrM 16571`,
|
|
10888
|
+
chrM 16571`, z4 = `chr1 249250621
|
|
10888
10889
|
chr2 243199373
|
|
10889
10890
|
chr3 198022430
|
|
10890
10891
|
chr4 191154276
|
|
@@ -10908,7 +10909,7 @@ chr21 48129895
|
|
|
10908
10909
|
chr22 51304566
|
|
10909
10910
|
chrX 155270560
|
|
10910
10911
|
chrY 59373566
|
|
10911
|
-
chrM 16571`,
|
|
10912
|
+
chrM 16571`, N4 = `chr1 248956422
|
|
10912
10913
|
chr2 242193529
|
|
10913
10914
|
chr3 198295559
|
|
10914
10915
|
chr4 190214555
|
|
@@ -10932,7 +10933,7 @@ chr21 46709983
|
|
|
10932
10933
|
chr22 50818468
|
|
10933
10934
|
chrX 156040895
|
|
10934
10935
|
chrY 57227415
|
|
10935
|
-
chrM 16569`,
|
|
10936
|
+
chrM 16569`, U4 = `chr1 197195432
|
|
10936
10937
|
chr2 181748087
|
|
10937
10938
|
chr3 159599783
|
|
10938
10939
|
chr4 155630120
|
|
@@ -10953,7 +10954,7 @@ chr18 90772031
|
|
|
10953
10954
|
chr19 61342430
|
|
10954
10955
|
chrX 166650296
|
|
10955
10956
|
chrY 15902555
|
|
10956
|
-
chrM 16299`,
|
|
10957
|
+
chrM 16299`, G4 = `chr1 195471971
|
|
10957
10958
|
chr2 182113224
|
|
10958
10959
|
chr3 160039680
|
|
10959
10960
|
chr4 156508116
|
|
@@ -10975,14 +10976,14 @@ chr19 61431566
|
|
|
10975
10976
|
chrX 171031299
|
|
10976
10977
|
chrY 91744698
|
|
10977
10978
|
chrM 16299`, ih = {
|
|
10978
|
-
dm6:
|
|
10979
|
-
hg18:
|
|
10980
|
-
hg19:
|
|
10981
|
-
hg38:
|
|
10982
|
-
mm9:
|
|
10983
|
-
mm10:
|
|
10979
|
+
dm6: L4,
|
|
10980
|
+
hg18: O4,
|
|
10981
|
+
hg19: z4,
|
|
10982
|
+
hg38: N4,
|
|
10983
|
+
mm9: U4,
|
|
10984
|
+
mm10: G4
|
|
10984
10985
|
};
|
|
10985
|
-
function
|
|
10986
|
+
function H4(t) {
|
|
10986
10987
|
if (!(t in ih))
|
|
10987
10988
|
throw new Error(`Unknown assembly: ${t}`);
|
|
10988
10989
|
return ih[t].split(`
|
|
@@ -10991,9 +10992,9 @@ function HC(t) {
|
|
|
10991
10992
|
return { name: n[0], size: parseInt(n[1]) };
|
|
10992
10993
|
});
|
|
10993
10994
|
}
|
|
10994
|
-
const
|
|
10995
|
+
const V4 = /^([A-Za-z]+:)?\/\//;
|
|
10995
10996
|
function zi(t, e) {
|
|
10996
|
-
if (e &&
|
|
10997
|
+
if (e && V4.test(e))
|
|
10997
10998
|
return e;
|
|
10998
10999
|
const n = typeof t == "function" ? t() : t;
|
|
10999
11000
|
if (!n)
|
|
@@ -11010,7 +11011,7 @@ function Kp(t) {
|
|
|
11010
11011
|
const e = t.replace(/[^/]*$/, "");
|
|
11011
11012
|
return e === "" ? void 0 : e.endsWith("://") ? t + "/" : e;
|
|
11012
11013
|
}
|
|
11013
|
-
class
|
|
11014
|
+
class Q4 {
|
|
11014
11015
|
/**
|
|
11015
11016
|
* @param {GenomeConfig} config
|
|
11016
11017
|
*/
|
|
@@ -11026,7 +11027,7 @@ class QC {
|
|
|
11026
11027
|
if (this.chromosomes = [], this.cumulativeChromPositions = /* @__PURE__ */ new Map(), this.chromosomesByName = /* @__PURE__ */ new Map(), this.startByIndex = [], this.totalSize = 0, _p(this.config))
|
|
11027
11028
|
this.setChromSizes(this.config.contigs);
|
|
11028
11029
|
else if (!Nc(this.config)) {
|
|
11029
|
-
const n =
|
|
11030
|
+
const n = H4(this.config.name);
|
|
11030
11031
|
if (n)
|
|
11031
11032
|
this.setChromSizes(n);
|
|
11032
11033
|
else
|
|
@@ -11047,7 +11048,7 @@ class QC {
|
|
|
11047
11048
|
const n = zi(e, this.config.url), r = await fetch(n);
|
|
11048
11049
|
if (!r.ok)
|
|
11049
11050
|
throw new Error(`${r.status} ${r.statusText}`);
|
|
11050
|
-
this.setChromSizes(
|
|
11051
|
+
this.setChromSizes(W4(await r.text()));
|
|
11051
11052
|
} catch (n) {
|
|
11052
11053
|
throw new Error(
|
|
11053
11054
|
`Could not load chrom sizes: ${this.config.url}. Reason: ${n.message}`
|
|
@@ -11153,7 +11154,7 @@ class QC {
|
|
|
11153
11154
|
* @returns {string}
|
|
11154
11155
|
*/
|
|
11155
11156
|
formatInterval(e) {
|
|
11156
|
-
return
|
|
11157
|
+
return k4(...this.toChromosomalInterval(e));
|
|
11157
11158
|
}
|
|
11158
11159
|
/**
|
|
11159
11160
|
* @param {number[]} interval
|
|
@@ -11246,7 +11247,7 @@ class QC {
|
|
|
11246
11247
|
}
|
|
11247
11248
|
}
|
|
11248
11249
|
}
|
|
11249
|
-
function
|
|
11250
|
+
function W4(t) {
|
|
11250
11251
|
return Um(t).map(([e, n]) => ({
|
|
11251
11252
|
name: e,
|
|
11252
11253
|
size: parseInt(n)
|
|
@@ -11255,7 +11256,7 @@ function WC(t) {
|
|
|
11255
11256
|
function Jp(t) {
|
|
11256
11257
|
return Ce(t) && "chrom" in t;
|
|
11257
11258
|
}
|
|
11258
|
-
function
|
|
11259
|
+
function Y4(t) {
|
|
11259
11260
|
return t.every(Jp);
|
|
11260
11261
|
}
|
|
11261
11262
|
function pl(t) {
|
|
@@ -11336,7 +11337,7 @@ class eg extends $p {
|
|
|
11336
11337
|
super(), this.type = "nominal";
|
|
11337
11338
|
}
|
|
11338
11339
|
}
|
|
11339
|
-
class
|
|
11340
|
+
class j4 extends Bs {
|
|
11340
11341
|
/**
|
|
11341
11342
|
*
|
|
11342
11343
|
* @param {number[]} initialDomain
|
|
@@ -11373,8 +11374,8 @@ const sh = {
|
|
|
11373
11374
|
ordinal: $p
|
|
11374
11375
|
};
|
|
11375
11376
|
function tg(t, e) {
|
|
11376
|
-
if (t == "quantitative" &&
|
|
11377
|
-
const n = new
|
|
11377
|
+
if (t == "quantitative" && X4(e)) {
|
|
11378
|
+
const n = new j4(
|
|
11378
11379
|
/** @type {number[]} */
|
|
11379
11380
|
e
|
|
11380
11381
|
);
|
|
@@ -11385,21 +11386,21 @@ function tg(t, e) {
|
|
|
11385
11386
|
}
|
|
11386
11387
|
throw new Error("Unknown type: " + t);
|
|
11387
11388
|
}
|
|
11388
|
-
function
|
|
11389
|
+
function X4(t) {
|
|
11389
11390
|
return t && t.length > 0 && t.length != 2 && t.every((e) => typeof e == "number");
|
|
11390
11391
|
}
|
|
11391
|
-
function
|
|
11392
|
+
function q4(t) {
|
|
11392
11393
|
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
11393
11394
|
}
|
|
11394
|
-
function
|
|
11395
|
+
function Z4(t, e, n) {
|
|
11395
11396
|
return t * Math.pow(e / t, n);
|
|
11396
11397
|
}
|
|
11397
11398
|
Q("index", dl, ["continuous"]);
|
|
11398
|
-
Q("locus",
|
|
11399
|
+
Q("locus", l4, ["continuous"]);
|
|
11399
11400
|
Q("null", fl, []);
|
|
11400
|
-
const oh = "quantitative", ng = "ordinal", rg = "nominal", ig = "locus",
|
|
11401
|
+
const oh = "quantitative", ng = "ordinal", rg = "nominal", ig = "locus", K4 = "index";
|
|
11401
11402
|
var Et, fr, Ge, Hi, R, Uc, Gc, wt, Hc, sg, og, Vc, Qc, Js, Wc, bn, Yc, ag;
|
|
11402
|
-
class
|
|
11403
|
+
class J4 {
|
|
11403
11404
|
/**
|
|
11404
11405
|
* @param {Channel} channel
|
|
11405
11406
|
*/
|
|
@@ -11518,8 +11519,8 @@ class JC {
|
|
|
11518
11519
|
get scale() {
|
|
11519
11520
|
if (x(this, Ge))
|
|
11520
11521
|
return x(this, Ge);
|
|
11521
|
-
const e = B(this, R, Vc).call(this), n =
|
|
11522
|
-
n.props = e, "unknown" in n && n.unknown(null), k(this, Ge, n), B(this, R, Qc).call(this),
|
|
11522
|
+
const e = B(this, R, Vc).call(this), n = C4({ ...e, range: void 0 });
|
|
11523
|
+
n.props = e, "unknown" in n && n.unknown(null), k(this, Ge, n), B(this, R, Qc).call(this), f4(n) && n.genome(this.getGenome()), de(n.type) && k(this, Et, B(this, R, Yc).call(this));
|
|
11523
11524
|
const r = n.range;
|
|
11524
11525
|
if (r) {
|
|
11525
11526
|
const i = () => B(this, R, wt).call(this, "range");
|
|
@@ -11621,9 +11622,9 @@ class JC {
|
|
|
11621
11622
|
const a = o[1] - o[0], c = r[1] - r[0], u = o[0] + a / 2, f = r[0] + c / 2, l = o[0] == r[0], h = o[1] == r[1];
|
|
11622
11623
|
await i.transition({
|
|
11623
11624
|
duration: n,
|
|
11624
|
-
easingFunction:
|
|
11625
|
+
easingFunction: q4,
|
|
11625
11626
|
onUpdate: (p) => {
|
|
11626
|
-
const d =
|
|
11627
|
+
const d = Z4(a, c, p), g = a == c ? p : (a - d) / (a - c), m = g * f + (1 - g) * u, A = [
|
|
11627
11628
|
l ? o[0] : m - d / 2,
|
|
11628
11629
|
h ? o[1] : m + d / 2
|
|
11629
11630
|
];
|
|
@@ -11724,7 +11725,7 @@ class JC {
|
|
|
11724
11725
|
* @returns {number[]}
|
|
11725
11726
|
*/
|
|
11726
11727
|
fromComplexInterval(e) {
|
|
11727
|
-
return this.type === "locus" &&
|
|
11728
|
+
return this.type === "locus" && Y4(e) ? this.getGenome().toContinuousInterval(e) : (
|
|
11728
11729
|
/** @type {number[]} */
|
|
11729
11730
|
e
|
|
11730
11731
|
);
|
|
@@ -11778,9 +11779,9 @@ Vc = function(e = !1) {
|
|
|
11778
11779
|
...B(this, R, ag).call(this, this.type),
|
|
11779
11780
|
...n
|
|
11780
11781
|
};
|
|
11781
|
-
r.type || (r.type =
|
|
11782
|
+
r.type || (r.type = _4(this.channel, this.type));
|
|
11782
11783
|
const i = B(this, R, Js).call(this, e);
|
|
11783
|
-
return i && i.length > 0 ? r.domain = i : Zt(r.type) && (r.domain = new eg()), !r.domain && r.domainMid !== void 0 && (r.domain = [r.domainMin ?? 0, r.domainMax ?? 1]), this.channel == "y" && Zt(r.type) && r.reverse == null && (r.reverse = !0), r.range && r.scheme && delete r.scheme, !("zoom" in r) && ["index", "locus"].includes(r.type) && (r.zoom = !0), $
|
|
11784
|
+
return i && i.length > 0 ? r.domain = i : Zt(r.type) && (r.domain = new eg()), !r.domain && r.domainMid !== void 0 && (r.domain = [r.domainMin ?? 0, r.domainMax ?? 1]), this.channel == "y" && Zt(r.type) && r.reverse == null && (r.reverse = !0), r.range && r.scheme && delete r.scheme, !("zoom" in r) && ["index", "locus"].includes(r.type) && (r.zoom = !0), $4(r, this.channel), r;
|
|
11784
11785
|
}, /**
|
|
11785
11786
|
* Configures range. If range is an array of expressions, they are evaluated
|
|
11786
11787
|
* and the scale is updated when the expressions change.
|
|
@@ -11849,7 +11850,7 @@ bn = function() {
|
|
|
11849
11850
|
return de(e);
|
|
11850
11851
|
}, Yc = function() {
|
|
11851
11852
|
const e = this.scale.props, n = e.zoom;
|
|
11852
|
-
if (
|
|
11853
|
+
if (eC(n) && Ee(n.extent))
|
|
11853
11854
|
return this.fromComplexInterval(n.extent);
|
|
11854
11855
|
if (n)
|
|
11855
11856
|
return e.type == "locus" ? this.getGenome().getExtent() : x(this, Ge).domain();
|
|
@@ -11863,8 +11864,8 @@ ag = function(e) {
|
|
|
11863
11864
|
const n = this.channel, r = {};
|
|
11864
11865
|
return B(this, R, Hc).call(this) && (r.zero = !1), ki(n) ? r.nice = !B(this, R, Hc).call(this) : Kt(n) ? r.scheme = e == rg ? "tableau10" : e == ng ? "blues" : "viridis" : da(n) ? r.range = n == "shape" ? ["circle", "square", "triangle-up", "cross", "diamond"] : [] : n == "size" ? r.range = [0, 400] : n == "angle" && (r.range = [0, 360]), r;
|
|
11865
11866
|
};
|
|
11866
|
-
function
|
|
11867
|
-
if (e ==
|
|
11867
|
+
function _4(t, e) {
|
|
11868
|
+
if (e == K4 || e == ig) {
|
|
11868
11869
|
if (wp(t))
|
|
11869
11870
|
return e;
|
|
11870
11871
|
throw new Error(
|
|
@@ -11893,10 +11894,10 @@ function _C(t, e) {
|
|
|
11893
11894
|
);
|
|
11894
11895
|
return i;
|
|
11895
11896
|
}
|
|
11896
|
-
function $
|
|
11897
|
+
function $4(t, e) {
|
|
11897
11898
|
ki(e) && t.type !== "ordinal" && (t.range = [0, 1]), e == "opacity" && de(t.type) && (t.clamp = !0);
|
|
11898
11899
|
}
|
|
11899
|
-
function
|
|
11900
|
+
function eC(t) {
|
|
11900
11901
|
return Ce(t);
|
|
11901
11902
|
}
|
|
11902
11903
|
function jc(t) {
|
|
@@ -11920,7 +11921,7 @@ function Ya(...t) {
|
|
|
11920
11921
|
if (e !== void 0)
|
|
11921
11922
|
return e;
|
|
11922
11923
|
}
|
|
11923
|
-
class
|
|
11924
|
+
class tC {
|
|
11924
11925
|
/**
|
|
11925
11926
|
* @typedef {import("./unitView.js").default} UnitView
|
|
11926
11927
|
* @typedef {import("../spec/channel.js").PositionalChannel} PositionalChannel
|
|
@@ -11999,7 +12000,7 @@ class t4 {
|
|
|
11999
12000
|
}), i = new Set(
|
|
12000
12001
|
r.map(
|
|
12001
12002
|
(s) => Ya(s.explicitTitle, s.implicitTitle)
|
|
12002
|
-
).filter(
|
|
12003
|
+
).filter(Z)
|
|
12003
12004
|
);
|
|
12004
12005
|
return i.size ? [...i].join(", ") : null;
|
|
12005
12006
|
}
|
|
@@ -12038,7 +12039,7 @@ function ah(t, e, { spacing: n, devicePixelRatio: r, offset: i, reverse: s } = {
|
|
|
12038
12039
|
}
|
|
12039
12040
|
return p += s ? n : -n, h(!1), l;
|
|
12040
12041
|
}
|
|
12041
|
-
function
|
|
12042
|
+
function nC(t) {
|
|
12042
12043
|
let e = 0, n = 0;
|
|
12043
12044
|
for (const r of t)
|
|
12044
12045
|
e = Math.max(e, r.px ?? 0), n = Math.max(n, r.grow ?? 0);
|
|
@@ -12110,13 +12111,13 @@ function ja(t) {
|
|
|
12110
12111
|
function Qs(t) {
|
|
12111
12112
|
return t || 0;
|
|
12112
12113
|
}
|
|
12113
|
-
function
|
|
12114
|
+
function rC(t) {
|
|
12114
12115
|
return t && (De(t.px) || De(t.grow));
|
|
12115
12116
|
}
|
|
12116
12117
|
function cg(t) {
|
|
12117
12118
|
if (lg(t))
|
|
12118
12119
|
throw new Error("parseSizeDef does not accept step-based sizes.");
|
|
12119
|
-
if (
|
|
12120
|
+
if (rC(t))
|
|
12120
12121
|
return t;
|
|
12121
12122
|
if (De(t))
|
|
12122
12123
|
return { px: t, grow: 0 };
|
|
@@ -12250,7 +12251,7 @@ Object.freeze(qc);
|
|
|
12250
12251
|
function Ts(t, e) {
|
|
12251
12252
|
return !e || /^(data:|([A-Za-z]+:)?\/\/)/.test(t) || t.startsWith("/") ? t : (e.endsWith("/") || (e += "/"), e + t);
|
|
12252
12253
|
}
|
|
12253
|
-
function
|
|
12254
|
+
function iC(t) {
|
|
12254
12255
|
if (!t)
|
|
12255
12256
|
return t;
|
|
12256
12257
|
if (/[?#]/.test(t))
|
|
@@ -12259,7 +12260,7 @@ function i4(t) {
|
|
|
12259
12260
|
);
|
|
12260
12261
|
return t.endsWith("/") ? t : t + "/";
|
|
12261
12262
|
}
|
|
12262
|
-
const
|
|
12263
|
+
const sC = "VISIT_SKIP", ui = "VISIT_STOP", uh = (t) => t;
|
|
12263
12264
|
var hr, Qi, Wi, Yi, ji, lt, ri, Zc;
|
|
12264
12265
|
class ug {
|
|
12265
12266
|
/**
|
|
@@ -12514,7 +12515,7 @@ class ug {
|
|
|
12514
12515
|
* Called after all scales in the view hierarchy have been resolved.
|
|
12515
12516
|
*/
|
|
12516
12517
|
configureViewOpacity() {
|
|
12517
|
-
(!this.opacityFunction || this.opacityFunction === uh) && (this.opacityFunction =
|
|
12518
|
+
(!this.opacityFunction || this.opacityFunction === uh) && (this.opacityFunction = aC(this));
|
|
12518
12519
|
}
|
|
12519
12520
|
/**
|
|
12520
12521
|
* ViewRenderingContext calls this method once for each view during each rendering
|
|
@@ -12643,7 +12644,7 @@ class ug {
|
|
|
12643
12644
|
var e;
|
|
12644
12645
|
return (e = this.dataParent) == null ? void 0 : e.getBaseUrl();
|
|
12645
12646
|
},
|
|
12646
|
-
|
|
12647
|
+
iC(this.spec.baseUrl)
|
|
12647
12648
|
);
|
|
12648
12649
|
}
|
|
12649
12650
|
/**
|
|
@@ -12655,7 +12656,7 @@ class ug {
|
|
|
12655
12656
|
getTitleText() {
|
|
12656
12657
|
const e = this.spec.title;
|
|
12657
12658
|
if (e)
|
|
12658
|
-
return
|
|
12659
|
+
return Z(e) ? e : Se(e.text) ? this.paramMediator.evaluateAndGet(e.text.expr) : e.text;
|
|
12659
12660
|
}
|
|
12660
12661
|
/**
|
|
12661
12662
|
* @param {any} key string
|
|
@@ -12758,15 +12759,15 @@ Zc = function(e) {
|
|
|
12758
12759
|
while (r);
|
|
12759
12760
|
return n;
|
|
12760
12761
|
};
|
|
12761
|
-
function
|
|
12762
|
+
function oC(t) {
|
|
12762
12763
|
return "unitsPerPixel" in t;
|
|
12763
12764
|
}
|
|
12764
|
-
function
|
|
12765
|
+
function aC(t) {
|
|
12765
12766
|
const e = "opacity" in t.spec ? t.spec.opacity : void 0;
|
|
12766
12767
|
if (e !== void 0) {
|
|
12767
12768
|
if (De(e))
|
|
12768
12769
|
return (n) => n * e;
|
|
12769
|
-
if (
|
|
12770
|
+
if (oC(e)) {
|
|
12770
12771
|
const n = (s) => {
|
|
12771
12772
|
var a;
|
|
12772
12773
|
const o = (a = t.getScaleResolution(s)) == null ? void 0 : a.scale;
|
|
@@ -12790,7 +12791,7 @@ function a4(t) {
|
|
|
12790
12791
|
}
|
|
12791
12792
|
return (n) => n;
|
|
12792
12793
|
}
|
|
12793
|
-
const lg = (t) => !!(t != null && t.step),
|
|
12794
|
+
const lg = (t) => !!(t != null && t.step), cC = {
|
|
12794
12795
|
// @ts-ignore TODO: fix
|
|
12795
12796
|
point: jE,
|
|
12796
12797
|
// @ts-ignore
|
|
@@ -12798,9 +12799,9 @@ const lg = (t) => !!(t != null && t.step), c4 = {
|
|
|
12798
12799
|
// @ts-ignore
|
|
12799
12800
|
rule: KE,
|
|
12800
12801
|
// @ts-ignore
|
|
12801
|
-
link:
|
|
12802
|
+
link: r4,
|
|
12802
12803
|
// @ts-ignore
|
|
12803
|
-
text:
|
|
12804
|
+
text: u4
|
|
12804
12805
|
};
|
|
12805
12806
|
var Xi, Mo, fg;
|
|
12806
12807
|
class Qe extends ug {
|
|
@@ -12829,7 +12830,7 @@ class Qe extends ug {
|
|
|
12829
12830
|
*/
|
|
12830
12831
|
M(this, Xi);
|
|
12831
12832
|
this.spec = n;
|
|
12832
|
-
const c =
|
|
12833
|
+
const c = cC[this.getMarkType()];
|
|
12833
12834
|
if (c)
|
|
12834
12835
|
this.mark = new c(this);
|
|
12835
12836
|
else
|
|
@@ -12888,7 +12889,7 @@ class Qe extends ug {
|
|
|
12888
12889
|
)) && a.getConfiguredOrDefaultResolution(o, n) != "excluded"; )
|
|
12889
12890
|
a = a.dataParent;
|
|
12890
12891
|
if (n == "axis" && ki(i) && wp(o))
|
|
12891
|
-
a.resolutions[n][o] || (a.resolutions[n][o] = new
|
|
12892
|
+
a.resolutions[n][o] || (a.resolutions[n][o] = new tC(
|
|
12892
12893
|
o
|
|
12893
12894
|
)), a.resolutions[n][o].addMember({
|
|
12894
12895
|
view: this,
|
|
@@ -12897,7 +12898,7 @@ class Qe extends ug {
|
|
|
12897
12898
|
});
|
|
12898
12899
|
else if (n == "scale" && Li(i)) {
|
|
12899
12900
|
if (!a.resolutions[n][o]) {
|
|
12900
|
-
const u = new
|
|
12901
|
+
const u = new J4(o);
|
|
12901
12902
|
a.resolutions[n][o] = u, u.addEventListener("range", (f) => {
|
|
12902
12903
|
var l;
|
|
12903
12904
|
(l = this.context.glHelper) == null || l.createRangeTexture(
|
|
@@ -12996,46 +12997,41 @@ Xi = new WeakMap(), Mo = new WeakSet(), fg = function() {
|
|
|
12996
12997
|
for (const [n, r] of this.paramMediator.paramConfigs) {
|
|
12997
12998
|
if (!("select" in r))
|
|
12998
12999
|
continue;
|
|
12999
|
-
const i = r.select;
|
|
13000
|
+
const i = yp(r.select);
|
|
13000
13001
|
if (ll(i)) {
|
|
13001
|
-
let o =
|
|
13002
|
+
let o = 0;
|
|
13002
13003
|
const a = this.paramMediator.getSetter(n), c = () => {
|
|
13003
13004
|
var l;
|
|
13004
13005
|
const f = this.context.getCurrentHover();
|
|
13005
13006
|
return ((l = f == null ? void 0 : f.mark) == null ? void 0 : l.unitView) === this ? f.datum : null;
|
|
13006
|
-
}, u =
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
{
|
|
13022
|
-
toggle: [p]
|
|
13023
|
-
}
|
|
13024
|
-
)
|
|
13025
|
-
);
|
|
13026
|
-
}
|
|
13027
|
-
} else
|
|
13028
|
-
a(
|
|
13029
|
-
gp(
|
|
13030
|
-
p ? [p] : null
|
|
13031
|
-
)
|
|
13007
|
+
}, u = (f, l) => {
|
|
13008
|
+
const h = (
|
|
13009
|
+
/** @type {MouseEvent} */
|
|
13010
|
+
l.uiEvent
|
|
13011
|
+
), p = c(), d = p ? p[Ze] : 0;
|
|
13012
|
+
let g;
|
|
13013
|
+
if (i.toggle)
|
|
13014
|
+
if (h.shiftKey) {
|
|
13015
|
+
if (p) {
|
|
13016
|
+
const A = this.paramMediator.getValue(n);
|
|
13017
|
+
g = kv(
|
|
13018
|
+
A,
|
|
13019
|
+
{
|
|
13020
|
+
toggle: [p]
|
|
13021
|
+
}
|
|
13032
13022
|
);
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13023
|
+
}
|
|
13024
|
+
} else
|
|
13025
|
+
g = gp(
|
|
13026
|
+
p ? [p] : null
|
|
13027
|
+
);
|
|
13028
|
+
else
|
|
13029
|
+
d != o && (o = d, g = pp(p));
|
|
13030
|
+
g !== void 0 && a(g);
|
|
13031
|
+
};
|
|
13032
|
+
this.addInteractionEventListener(
|
|
13033
|
+
["mouseover", "pointerover"].includes(i.on) ? "mousemove" : "click",
|
|
13034
|
+
u
|
|
13039
13035
|
);
|
|
13040
13036
|
}
|
|
13041
13037
|
}
|
|
@@ -13048,14 +13044,14 @@ function* gl(t, e = []) {
|
|
|
13048
13044
|
else
|
|
13049
13045
|
yield [[...e, n], r];
|
|
13050
13046
|
}
|
|
13051
|
-
const hg = 2147483647,
|
|
13047
|
+
const hg = 2147483647, uC = dg([hg]);
|
|
13052
13048
|
function dg(t) {
|
|
13053
13049
|
let e = 0;
|
|
13054
13050
|
for (let n = 0, r = t.length; n < r; n++)
|
|
13055
13051
|
e = Math.max(e, t[n]);
|
|
13056
13052
|
return Math.floor(Math.log2(e) / 4) + 1;
|
|
13057
13053
|
}
|
|
13058
|
-
function
|
|
13054
|
+
function lC(t) {
|
|
13059
13055
|
const e = dg(t);
|
|
13060
13056
|
let n = Array.from({ length: t.length }, (s, o) => o), r = new Array(t.length);
|
|
13061
13057
|
const i = new Array(16);
|
|
@@ -13063,7 +13059,7 @@ function l4(t) {
|
|
|
13063
13059
|
i.fill(0);
|
|
13064
13060
|
const o = s * 4, a = Math.pow(16, s), c = (u) => {
|
|
13065
13061
|
const f = t[n[u]];
|
|
13066
|
-
return s >=
|
|
13062
|
+
return s >= uC ? f > hg ? Math.floor(f / a) % 16 : 0 : f >> o & 15;
|
|
13067
13063
|
};
|
|
13068
13064
|
for (let u = 0; u < t.length; u++)
|
|
13069
13065
|
i[c(u)]++;
|
|
@@ -13144,7 +13140,7 @@ class pg extends cl {
|
|
|
13144
13140
|
ko(a, ...c)
|
|
13145
13141
|
) : (
|
|
13146
13142
|
// D3's group is SLOW!
|
|
13147
|
-
|
|
13143
|
+
fC(a, c[0])
|
|
13148
13144
|
);
|
|
13149
13145
|
this.facetBatches.clear();
|
|
13150
13146
|
for (const [f, l] of gl(u))
|
|
@@ -13260,9 +13256,9 @@ gg = function() {
|
|
|
13260
13256
|
for (let u = 0, f = c.length; u < f; u++)
|
|
13261
13257
|
i.push(s(c[u]));
|
|
13262
13258
|
}
|
|
13263
|
-
k(this, Fn,
|
|
13259
|
+
k(this, Fn, lC(i));
|
|
13264
13260
|
};
|
|
13265
|
-
function
|
|
13261
|
+
function fC(t, e) {
|
|
13266
13262
|
const n = /* @__PURE__ */ new Map();
|
|
13267
13263
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
13268
13264
|
const s = t[r], o = e(s);
|
|
@@ -13317,7 +13313,7 @@ class Co {
|
|
|
13317
13313
|
this.ids.length = this.values.length = this.length;
|
|
13318
13314
|
}
|
|
13319
13315
|
}
|
|
13320
|
-
class
|
|
13316
|
+
class hC extends se {
|
|
13321
13317
|
get behavior() {
|
|
13322
13318
|
return xt;
|
|
13323
13319
|
}
|
|
@@ -13390,7 +13386,7 @@ class h4 extends se {
|
|
|
13390
13386
|
};
|
|
13391
13387
|
}
|
|
13392
13388
|
}
|
|
13393
|
-
function
|
|
13389
|
+
function dC(t, e, n = 0, r = t.length) {
|
|
13394
13390
|
const i = new Co(), s = r - n;
|
|
13395
13391
|
let o;
|
|
13396
13392
|
for (o = 0; o < e && o < s; o++)
|
|
@@ -13405,7 +13401,7 @@ function d4(t, e, n = 0, r = t.length) {
|
|
|
13405
13401
|
a.push(n + c);
|
|
13406
13402
|
return a.reverse();
|
|
13407
13403
|
}
|
|
13408
|
-
class
|
|
13404
|
+
class pC {
|
|
13409
13405
|
/**
|
|
13410
13406
|
*
|
|
13411
13407
|
* @param {number} maxSize Max number of free slots that can be tracked
|
|
@@ -13456,7 +13452,7 @@ class p4 {
|
|
|
13456
13452
|
return this.lowerLimits[i] = this.lowerLimits[r], this.upperLimits[i] = e, this.lowerLimits[s] = n, this.upperLimits[s] = this.upperLimits[r], this.lowerChildren[r] = i, this.upperChildren[r] = s, !0;
|
|
13457
13453
|
}
|
|
13458
13454
|
}
|
|
13459
|
-
class
|
|
13455
|
+
class gC extends se {
|
|
13460
13456
|
get behavior() {
|
|
13461
13457
|
return al;
|
|
13462
13458
|
}
|
|
@@ -13476,7 +13472,7 @@ class g4 extends se {
|
|
|
13476
13472
|
const e = this.posAccessor;
|
|
13477
13473
|
this._data.sort((n, r) => e(n) - e(r)), this._scores = this._data.map(this.scoreAccessor);
|
|
13478
13474
|
for (const n of new Set(this._data.map(this.laneAccessor)))
|
|
13479
|
-
this.reservationMaps.set(n, new
|
|
13475
|
+
this.reservationMaps.set(n, new pC(200));
|
|
13480
13476
|
this.schedule(), super.complete();
|
|
13481
13477
|
}
|
|
13482
13478
|
_filterAndPropagate() {
|
|
@@ -13486,7 +13482,7 @@ class g4 extends se {
|
|
|
13486
13482
|
return;
|
|
13487
13483
|
for (const o of this.reservationMaps.values())
|
|
13488
13484
|
o.reset();
|
|
13489
|
-
const r = e.domain(), s =
|
|
13485
|
+
const r = e.domain(), s = dC(
|
|
13490
13486
|
this._scores,
|
|
13491
13487
|
70,
|
|
13492
13488
|
this.posBisector.left(this._data, r[0]),
|
|
@@ -13509,7 +13505,7 @@ class g4 extends se {
|
|
|
13509
13505
|
this._data.push(e);
|
|
13510
13506
|
}
|
|
13511
13507
|
}
|
|
13512
|
-
class
|
|
13508
|
+
class mC extends se {
|
|
13513
13509
|
/**
|
|
13514
13510
|
*
|
|
13515
13511
|
* @param {import("../../spec/transform.js").FilterParams} params
|
|
@@ -13520,9 +13516,9 @@ class m4 extends se {
|
|
|
13520
13516
|
}
|
|
13521
13517
|
initialize() {
|
|
13522
13518
|
let e = "";
|
|
13523
|
-
if (
|
|
13519
|
+
if (AC(this.params))
|
|
13524
13520
|
e = this.params.expr;
|
|
13525
|
-
else if (
|
|
13521
|
+
else if (yC(this.params))
|
|
13526
13522
|
e = mp(this.params);
|
|
13527
13523
|
else
|
|
13528
13524
|
throw new Error(
|
|
@@ -13538,13 +13534,13 @@ class m4 extends se {
|
|
|
13538
13534
|
this.predicate(e) && this._propagate(e);
|
|
13539
13535
|
}
|
|
13540
13536
|
}
|
|
13541
|
-
function
|
|
13537
|
+
function AC(t) {
|
|
13542
13538
|
return "expr" in t;
|
|
13543
13539
|
}
|
|
13544
|
-
function
|
|
13540
|
+
function yC(t) {
|
|
13545
13541
|
return "param" in t;
|
|
13546
13542
|
}
|
|
13547
|
-
class
|
|
13543
|
+
class xC extends se {
|
|
13548
13544
|
get behavior() {
|
|
13549
13545
|
return xt;
|
|
13550
13546
|
}
|
|
@@ -13580,17 +13576,17 @@ class x4 extends se {
|
|
|
13580
13576
|
};
|
|
13581
13577
|
}
|
|
13582
13578
|
}
|
|
13583
|
-
const
|
|
13584
|
-
function*
|
|
13579
|
+
const bC = 48;
|
|
13580
|
+
function* wC(t, e = ",") {
|
|
13585
13581
|
const n = e.charCodeAt(0);
|
|
13586
13582
|
let r = 0;
|
|
13587
13583
|
for (let i = 0; i < t.length; i++) {
|
|
13588
13584
|
const s = t.charCodeAt(i);
|
|
13589
|
-
s == n ? (yield r, r = 0) : r = r * 10 + s -
|
|
13585
|
+
s == n ? (yield r, r = 0) : r = r * 10 + s - bC;
|
|
13590
13586
|
}
|
|
13591
13587
|
yield r;
|
|
13592
13588
|
}
|
|
13593
|
-
class
|
|
13589
|
+
class vC extends se {
|
|
13594
13590
|
get behavior() {
|
|
13595
13591
|
return xt;
|
|
13596
13592
|
}
|
|
@@ -13604,7 +13600,7 @@ class v4 extends se {
|
|
|
13604
13600
|
this.handle = (o) => {
|
|
13605
13601
|
let a = r(o), c = a, u = !0;
|
|
13606
13602
|
const f = n(o);
|
|
13607
|
-
for (const l of
|
|
13603
|
+
for (const l of wC(f)) {
|
|
13608
13604
|
if (u)
|
|
13609
13605
|
c = a + l;
|
|
13610
13606
|
else {
|
|
@@ -13617,7 +13613,7 @@ class v4 extends se {
|
|
|
13617
13613
|
};
|
|
13618
13614
|
}
|
|
13619
13615
|
}
|
|
13620
|
-
class
|
|
13616
|
+
class EC extends se {
|
|
13621
13617
|
get behavior() {
|
|
13622
13618
|
return xt;
|
|
13623
13619
|
}
|
|
@@ -13636,7 +13632,7 @@ class E4 extends se {
|
|
|
13636
13632
|
const o = n.map(
|
|
13637
13633
|
(c, u) => c(s).split(r[u])
|
|
13638
13634
|
);
|
|
13639
|
-
|
|
13635
|
+
CC(o, s);
|
|
13640
13636
|
const a = o[0].length;
|
|
13641
13637
|
for (let c = 0; c < a; c++) {
|
|
13642
13638
|
const u = Object.assign({}, s);
|
|
@@ -13647,14 +13643,14 @@ class E4 extends se {
|
|
|
13647
13643
|
};
|
|
13648
13644
|
}
|
|
13649
13645
|
}
|
|
13650
|
-
function
|
|
13646
|
+
function CC(t, e) {
|
|
13651
13647
|
const n = t.map((r) => r.length);
|
|
13652
13648
|
if (!n.every((r) => r == n[0]))
|
|
13653
13649
|
throw new Error(
|
|
13654
13650
|
"Mismatching number of elements in the fields to be split: " + JSON.stringify(e)
|
|
13655
13651
|
);
|
|
13656
13652
|
}
|
|
13657
|
-
class
|
|
13653
|
+
class SC extends se {
|
|
13658
13654
|
get behavior() {
|
|
13659
13655
|
return ln;
|
|
13660
13656
|
}
|
|
@@ -13741,9 +13737,9 @@ class mg extends se {
|
|
|
13741
13737
|
};
|
|
13742
13738
|
}
|
|
13743
13739
|
}
|
|
13744
|
-
const
|
|
13740
|
+
const DC = [
|
|
13745
13741
|
"Lato-Regular.png"
|
|
13746
|
-
],
|
|
13742
|
+
], BC = [
|
|
13747
13743
|
{
|
|
13748
13744
|
id: 87,
|
|
13749
13745
|
width: 53,
|
|
@@ -14884,7 +14880,7 @@ const D4 = [
|
|
|
14884
14880
|
y: 497,
|
|
14885
14881
|
page: 0
|
|
14886
14882
|
}
|
|
14887
|
-
],
|
|
14883
|
+
], TC = {
|
|
14888
14884
|
face: "Lato Regular",
|
|
14889
14885
|
size: 42,
|
|
14890
14886
|
bold: 0,
|
|
@@ -15000,7 +14996,7 @@ const D4 = [
|
|
|
15000
14996
|
2,
|
|
15001
14997
|
2
|
|
15002
14998
|
]
|
|
15003
|
-
},
|
|
14999
|
+
}, MC = {
|
|
15004
15000
|
lineHeight: 50.400000000000006,
|
|
15005
15001
|
base: 41.454,
|
|
15006
15002
|
scaleW: 512,
|
|
@@ -15011,14 +15007,14 @@ const D4 = [
|
|
|
15011
15007
|
redChnl: 0,
|
|
15012
15008
|
greenChnl: 0,
|
|
15013
15009
|
blueChnl: 0
|
|
15014
|
-
},
|
|
15015
|
-
pages:
|
|
15016
|
-
chars:
|
|
15017
|
-
info:
|
|
15018
|
-
common:
|
|
15019
|
-
kernings:
|
|
15010
|
+
}, FC = [], Ag = {
|
|
15011
|
+
pages: DC,
|
|
15012
|
+
chars: BC,
|
|
15013
|
+
info: TC,
|
|
15014
|
+
common: MC,
|
|
15015
|
+
kernings: FC
|
|
15020
15016
|
};
|
|
15021
|
-
class
|
|
15017
|
+
class IC extends se {
|
|
15022
15018
|
get behavior() {
|
|
15023
15019
|
return ln;
|
|
15024
15020
|
}
|
|
@@ -15035,8 +15031,8 @@ class I4 extends se {
|
|
|
15035
15031
|
};
|
|
15036
15032
|
}
|
|
15037
15033
|
}
|
|
15038
|
-
const
|
|
15039
|
-
class
|
|
15034
|
+
const PC = 65536;
|
|
15035
|
+
class RC extends se {
|
|
15040
15036
|
get behavior() {
|
|
15041
15037
|
return ln;
|
|
15042
15038
|
}
|
|
@@ -15057,7 +15053,7 @@ class R4 extends se {
|
|
|
15057
15053
|
'Must specify both "preference" and "preferredOrder"'
|
|
15058
15054
|
);
|
|
15059
15055
|
if (e.preference) {
|
|
15060
|
-
const o = new Float64Array(
|
|
15056
|
+
const o = new Float64Array(PC), a = Y(e.preference), c = e.preferredOrder;
|
|
15061
15057
|
let u = 1 / 0;
|
|
15062
15058
|
this.handle = (f) => {
|
|
15063
15059
|
const l = i(f);
|
|
@@ -15093,7 +15089,7 @@ class R4 extends se {
|
|
|
15093
15089
|
}
|
|
15094
15090
|
}
|
|
15095
15091
|
}
|
|
15096
|
-
class
|
|
15092
|
+
class kC extends se {
|
|
15097
15093
|
get behavior() {
|
|
15098
15094
|
return xt;
|
|
15099
15095
|
}
|
|
@@ -15113,7 +15109,7 @@ class k4 extends se {
|
|
|
15113
15109
|
};
|
|
15114
15110
|
}
|
|
15115
15111
|
}
|
|
15116
|
-
class
|
|
15112
|
+
class LC extends se {
|
|
15117
15113
|
get behavior() {
|
|
15118
15114
|
return ln;
|
|
15119
15115
|
}
|
|
@@ -15125,7 +15121,7 @@ class L4 extends se {
|
|
|
15125
15121
|
const n = new RegExp(e.regex), r = typeof e.as == "string" ? [e.as] : e.as, i = Y(e.field);
|
|
15126
15122
|
this.handle = (s) => {
|
|
15127
15123
|
const o = i(s);
|
|
15128
|
-
if (
|
|
15124
|
+
if (Z(o)) {
|
|
15129
15125
|
const a = o.match(n);
|
|
15130
15126
|
if (a) {
|
|
15131
15127
|
if (a.length - 1 != r.length)
|
|
@@ -15149,7 +15145,7 @@ class L4 extends se {
|
|
|
15149
15145
|
};
|
|
15150
15146
|
}
|
|
15151
15147
|
}
|
|
15152
|
-
class
|
|
15148
|
+
class OC extends se {
|
|
15153
15149
|
get behavior() {
|
|
15154
15150
|
return xt;
|
|
15155
15151
|
}
|
|
@@ -15219,7 +15215,7 @@ class O4 extends se {
|
|
|
15219
15215
|
};
|
|
15220
15216
|
}
|
|
15221
15217
|
}
|
|
15222
|
-
class
|
|
15218
|
+
class zC extends se {
|
|
15223
15219
|
get behavior() {
|
|
15224
15220
|
return ln;
|
|
15225
15221
|
}
|
|
@@ -15292,7 +15288,7 @@ class z4 extends se {
|
|
|
15292
15288
|
super.complete();
|
|
15293
15289
|
}
|
|
15294
15290
|
}
|
|
15295
|
-
class
|
|
15291
|
+
class NC extends se {
|
|
15296
15292
|
get behavior() {
|
|
15297
15293
|
return xt;
|
|
15298
15294
|
}
|
|
@@ -15328,7 +15324,7 @@ const lh = {
|
|
|
15328
15324
|
median: l1,
|
|
15329
15325
|
variance: _m
|
|
15330
15326
|
};
|
|
15331
|
-
class
|
|
15327
|
+
class UC extends se {
|
|
15332
15328
|
get behavior() {
|
|
15333
15329
|
return xt;
|
|
15334
15330
|
}
|
|
@@ -15389,29 +15385,29 @@ class U4 extends se {
|
|
|
15389
15385
|
super.complete();
|
|
15390
15386
|
}
|
|
15391
15387
|
}
|
|
15392
|
-
const
|
|
15393
|
-
aggregate:
|
|
15388
|
+
const GC = {
|
|
15389
|
+
aggregate: UC,
|
|
15394
15390
|
collect: pg,
|
|
15395
|
-
coverage:
|
|
15396
|
-
filterScoredLabels:
|
|
15397
|
-
filter:
|
|
15398
|
-
flatten:
|
|
15399
|
-
flattenCompressedExons:
|
|
15400
|
-
flattenDelimited:
|
|
15401
|
-
flattenSequence:
|
|
15402
|
-
formula:
|
|
15391
|
+
coverage: hC,
|
|
15392
|
+
filterScoredLabels: gC,
|
|
15393
|
+
filter: mC,
|
|
15394
|
+
flatten: xC,
|
|
15395
|
+
flattenCompressedExons: vC,
|
|
15396
|
+
flattenDelimited: EC,
|
|
15397
|
+
flattenSequence: NC,
|
|
15398
|
+
formula: SC,
|
|
15403
15399
|
identifier: Mc,
|
|
15404
15400
|
linearizeGenomicCoordinate: mg,
|
|
15405
|
-
measureText:
|
|
15406
|
-
pileup:
|
|
15407
|
-
project:
|
|
15408
|
-
regexExtract:
|
|
15409
|
-
regexFold:
|
|
15401
|
+
measureText: IC,
|
|
15402
|
+
pileup: RC,
|
|
15403
|
+
project: kC,
|
|
15404
|
+
regexExtract: LC,
|
|
15405
|
+
regexFold: OC,
|
|
15410
15406
|
sample: Vp,
|
|
15411
|
-
stack:
|
|
15407
|
+
stack: zC
|
|
15412
15408
|
};
|
|
15413
|
-
function
|
|
15414
|
-
const n =
|
|
15409
|
+
function HC(t, e) {
|
|
15410
|
+
const n = GC[t.type];
|
|
15415
15411
|
if (n)
|
|
15416
15412
|
return new n(t, e);
|
|
15417
15413
|
throw new Error("Unknown transform: " + t.type);
|
|
@@ -15420,22 +15416,22 @@ function yg(t) {
|
|
|
15420
15416
|
if (!bg(t) && !fh(t))
|
|
15421
15417
|
return;
|
|
15422
15418
|
const e = { ...t.format };
|
|
15423
|
-
if (e.type ?? (e.type = fh(t) &&
|
|
15419
|
+
if (e.type ?? (e.type = fh(t) && QC(Ve(t.url))), e.parse ?? (e.parse = "auto"), !e.type)
|
|
15424
15420
|
throw new Error(
|
|
15425
15421
|
"Format for the data source was not defined and it could not be inferred: " + JSON.stringify(t)
|
|
15426
15422
|
);
|
|
15427
15423
|
return e;
|
|
15428
15424
|
}
|
|
15429
|
-
function
|
|
15425
|
+
function VC(t) {
|
|
15430
15426
|
var e;
|
|
15431
15427
|
return ((e = xu(t)) == null ? void 0 : e.responseType) ?? "text";
|
|
15432
15428
|
}
|
|
15433
|
-
function
|
|
15429
|
+
function QC(t) {
|
|
15434
15430
|
var e;
|
|
15435
15431
|
if (Array.isArray(t) && (t = t[0]), t)
|
|
15436
15432
|
return (e = t.match(/\.(csv|tsv|json)/)) == null ? void 0 : e[1];
|
|
15437
15433
|
}
|
|
15438
|
-
const xg = (t) => typeof t != "object" ?
|
|
15434
|
+
const xg = (t) => typeof t != "object" ? WC : YC, WC = (t) => ({ data: t }), YC = (t) => t;
|
|
15439
15435
|
function fh(t) {
|
|
15440
15436
|
return "url" in t;
|
|
15441
15437
|
}
|
|
@@ -15488,7 +15484,7 @@ class Vr extends cl {
|
|
|
15488
15484
|
function bg(t) {
|
|
15489
15485
|
return "values" in t;
|
|
15490
15486
|
}
|
|
15491
|
-
class
|
|
15487
|
+
class jC extends Vr {
|
|
15492
15488
|
/**
|
|
15493
15489
|
* @param {import("../../spec/data.js").InlineData} params
|
|
15494
15490
|
* @param {import("../../view/view.js").default} view
|
|
@@ -15532,10 +15528,10 @@ class j4 extends Vr {
|
|
|
15532
15528
|
this.loadSynchronously();
|
|
15533
15529
|
}
|
|
15534
15530
|
}
|
|
15535
|
-
function
|
|
15531
|
+
function XC(t) {
|
|
15536
15532
|
return "url" in t;
|
|
15537
15533
|
}
|
|
15538
|
-
class
|
|
15534
|
+
class qC extends Vr {
|
|
15539
15535
|
/**
|
|
15540
15536
|
* @param {import("../../spec/data.js").UrlData} params
|
|
15541
15537
|
* @param {import("../../view/view.js").default} view
|
|
@@ -15554,7 +15550,7 @@ class q4 extends Vr {
|
|
|
15554
15550
|
return "urlSource";
|
|
15555
15551
|
}
|
|
15556
15552
|
async load() {
|
|
15557
|
-
const e = Ve(this.params.url), n = Array.isArray(e) ? e : [e], r = yg(this.params), i =
|
|
15553
|
+
const e = Ve(this.params.url), n = Array.isArray(e) ? e : [e], r = yg(this.params), i = VC(r.type);
|
|
15558
15554
|
if (n.length === 0 || !n[0]) {
|
|
15559
15555
|
this.reset(), this.complete();
|
|
15560
15556
|
return;
|
|
@@ -15592,10 +15588,10 @@ class q4 extends Vr {
|
|
|
15592
15588
|
this.complete();
|
|
15593
15589
|
}
|
|
15594
15590
|
}
|
|
15595
|
-
function
|
|
15591
|
+
function ZC(t) {
|
|
15596
15592
|
return "sequence" in t;
|
|
15597
15593
|
}
|
|
15598
|
-
class
|
|
15594
|
+
class KC extends Vr {
|
|
15599
15595
|
/**
|
|
15600
15596
|
*
|
|
15601
15597
|
* @param {import("../../spec/data.js").SequenceGenerator} params
|
|
@@ -15711,7 +15707,7 @@ class ml extends Vr {
|
|
|
15711
15707
|
this.complete(), jc(this.view);
|
|
15712
15708
|
}
|
|
15713
15709
|
}
|
|
15714
|
-
class
|
|
15710
|
+
class JC extends ml {
|
|
15715
15711
|
/**
|
|
15716
15712
|
* @param {import("../../../spec/data.js").AxisTicksData} params
|
|
15717
15713
|
* @param {import("../../../view/view.js").default} view
|
|
@@ -15735,17 +15731,17 @@ class J4 extends ml {
|
|
|
15735
15731
|
this.ticks = null, this.onDomainChanged();
|
|
15736
15732
|
}
|
|
15737
15733
|
onDomainChanged() {
|
|
15738
|
-
const n = this.scaleResolution.scale, r = this.scaleResolution.getAxisLength(), i = this.params.axis, s = (u) => 25 + 60 * hp(100, 700, u), o = De(i.tickCount) ? i.tickCount : Math.round(r / s(r)), a = Wp(n, o, i.tickMinStep), c = i.values ? Yp(n, i.values, a) :
|
|
15734
|
+
const n = this.scaleResolution.scale, r = this.scaleResolution.getAxisLength(), i = this.params.axis, s = (u) => 25 + 60 * hp(100, 700, u), o = De(i.tickCount) ? i.tickCount : Math.round(r / s(r)), a = Wp(n, o, i.tickMinStep), c = i.values ? Yp(n, i.values, a) : h4(n, a);
|
|
15739
15735
|
if (this.ticks == null || !lo(c, this.ticks)) {
|
|
15740
15736
|
this.ticks = c;
|
|
15741
|
-
const u =
|
|
15737
|
+
const u = p4(n, o, i.format);
|
|
15742
15738
|
this.publishData([
|
|
15743
15739
|
c.map((f) => ({ value: f, label: u(f) }))
|
|
15744
15740
|
]);
|
|
15745
15741
|
}
|
|
15746
15742
|
}
|
|
15747
15743
|
}
|
|
15748
|
-
class
|
|
15744
|
+
class _C extends ml {
|
|
15749
15745
|
/**
|
|
15750
15746
|
* @param {import("../../../spec/data.js").AxisGenomeData} params
|
|
15751
15747
|
* @param {import("../../../view/view.js").default} view
|
|
@@ -15889,7 +15885,7 @@ class Ms extends ml {
|
|
|
15889
15885
|
}
|
|
15890
15886
|
}
|
|
15891
15887
|
dr = new WeakMap(), pr = new WeakMap(), gr = new WeakMap(), Zi = new WeakMap();
|
|
15892
|
-
class $
|
|
15888
|
+
class $C extends Ms {
|
|
15893
15889
|
/**
|
|
15894
15890
|
* @param {import("../../../spec/data.js").IndexedFastaData} params
|
|
15895
15891
|
* @param {import("../../../view/view.js").default} view
|
|
@@ -16385,11 +16381,11 @@ class aS extends oS {
|
|
|
16385
16381
|
$i = new WeakMap();
|
|
16386
16382
|
function cS(t, e) {
|
|
16387
16383
|
if (bg(t))
|
|
16388
|
-
return new
|
|
16389
|
-
if (
|
|
16390
|
-
return new
|
|
16391
|
-
if (
|
|
16392
|
-
return new
|
|
16384
|
+
return new jC(t, e);
|
|
16385
|
+
if (XC(t))
|
|
16386
|
+
return new qC(t, e);
|
|
16387
|
+
if (ZC(t))
|
|
16388
|
+
return new KC(t, e);
|
|
16393
16389
|
if (uS(t))
|
|
16394
16390
|
return AS(t.lazy, e);
|
|
16395
16391
|
throw new Error(
|
|
@@ -16422,11 +16418,11 @@ function mS(t) {
|
|
|
16422
16418
|
}
|
|
16423
16419
|
function AS(t, e) {
|
|
16424
16420
|
if (lS(t))
|
|
16425
|
-
return new
|
|
16421
|
+
return new JC(t, e);
|
|
16426
16422
|
if (fS(t))
|
|
16427
|
-
return new
|
|
16423
|
+
return new _C(t, e);
|
|
16428
16424
|
if (hS(t))
|
|
16429
|
-
return new $
|
|
16425
|
+
return new $C(t, e);
|
|
16430
16426
|
if (dS(t))
|
|
16431
16427
|
return new eS(t, e);
|
|
16432
16428
|
if (pS(t))
|
|
@@ -16682,7 +16678,7 @@ function vS(t, e) {
|
|
|
16682
16678
|
for (const g of p) {
|
|
16683
16679
|
let m;
|
|
16684
16680
|
try {
|
|
16685
|
-
m =
|
|
16681
|
+
m = HC(g, d);
|
|
16686
16682
|
} catch (A) {
|
|
16687
16683
|
throw console.warn(A), new Error(
|
|
16688
16684
|
`Cannot initialize "${g.type}" transform: ${A}`
|
|
@@ -17477,7 +17473,7 @@ class zS {
|
|
|
17477
17473
|
*/
|
|
17478
17474
|
// eslint-disable-next-line require-await
|
|
17479
17475
|
async initialize(e) {
|
|
17480
|
-
const n = new
|
|
17476
|
+
const n = new Q4(e);
|
|
17481
17477
|
return this.genomes.set(n.name, n), Promise.all(
|
|
17482
17478
|
[...this.genomes.values()].map(
|
|
17483
17479
|
(r) => r.load(this.baseUrl)
|
|
@@ -17537,7 +17533,7 @@ class GS {
|
|
|
17537
17533
|
* @returns {FontEntry}
|
|
17538
17534
|
*/
|
|
17539
17535
|
getFont(e, n = "normal", r = "regular") {
|
|
17540
|
-
if (
|
|
17536
|
+
if (Z(r) && (r = US[
|
|
17541
17537
|
/** @type {keyof WEIGHTS} */
|
|
17542
17538
|
r.toLowerCase()
|
|
17543
17539
|
], !r))
|
|
@@ -17788,7 +17784,7 @@ function ZS(t) {
|
|
|
17788
17784
|
}
|
|
17789
17785
|
const KS = be(".4~r"), JS = be(".4~e");
|
|
17790
17786
|
function Bg(t) {
|
|
17791
|
-
return t == null ? _` <span class="na">NA</span> ` :
|
|
17787
|
+
return t == null ? _` <span class="na">NA</span> ` : Z(t) ? t.substring(0, 30) : Number.isInteger(t) ? "" + t : De(t) ? Math.abs(t) > Math.pow(10, 8) || Math.abs(t) < Math.pow(10, -8) ? JS(t) : KS(t) : rs(t) ? t ? "True" : "False" : Ee(t) ? _`${t.map((e, n) => [
|
|
17792
17788
|
Bg(e),
|
|
17793
17789
|
n < t.length - 1 ? ", " : ee
|
|
17794
17790
|
])}` : "?" + typeof t + " " + t;
|
|
@@ -17879,7 +17875,7 @@ class Fs extends ug {
|
|
|
17879
17875
|
}
|
|
17880
17876
|
if (n === ui)
|
|
17881
17877
|
return n;
|
|
17882
|
-
if (n !==
|
|
17878
|
+
if (n !== sC) {
|
|
17883
17879
|
e.beforeChildren && e.beforeChildren(this);
|
|
17884
17880
|
for (const r of this) {
|
|
17885
17881
|
const i = r.visit(e);
|
|
@@ -18666,7 +18662,7 @@ const mh = {
|
|
|
18666
18662
|
function p8(t) {
|
|
18667
18663
|
if (!t)
|
|
18668
18664
|
return;
|
|
18669
|
-
const e =
|
|
18665
|
+
const e = Z(t) ? { text: t } : t;
|
|
18670
18666
|
if (!e.text || e.orient == "none")
|
|
18671
18667
|
return;
|
|
18672
18668
|
const n = {
|
|
@@ -19029,11 +19025,11 @@ class x8 extends Fs {
|
|
|
19029
19025
|
background: g,
|
|
19030
19026
|
backgroundStroke: m,
|
|
19031
19027
|
title: A
|
|
19032
|
-
} = l, [y, b] = c.getCellCoords(f), E = o[B(this, G, su).call(this, "column", y)], S = a[B(this, G, su).call(this, "row", b)], C = h.getViewportSize(), v = h.getSize(), P = h.getOverhang(), z = E.location - P.left, O = S.location - P.top, I = (he, at) => (he[at].grow ? (at == "width" ? E : S).size : he[at].px) + P[at], $ = I(C, "width"),
|
|
19028
|
+
} = l, [y, b] = c.getCellCoords(f), E = o[B(this, G, su).call(this, "column", y)], S = a[B(this, G, su).call(this, "row", b)], C = h.getViewportSize(), v = h.getSize(), P = h.getOverhang(), z = E.location - P.left, O = S.location - P.top, I = (he, at) => (he[at].grow ? (at == "width" ? E : S).size : he[at].px) + P[at], $ = I(C, "width"), j = I(C, "height"), oe = I(v, "width"), ge = I(v, "height"), ae = l.scrollbars.horizontal, Oe = l.scrollbars.vertical, Me = ae ? () => u(ae.viewportOffset) : () => 0, me = Oe ? () => u(Oe.viewportOffset) : () => 0, ze = new Ft(
|
|
19033
19029
|
() => r.x + z,
|
|
19034
19030
|
() => r.y + O,
|
|
19035
19031
|
() => $,
|
|
19036
|
-
() =>
|
|
19032
|
+
() => j
|
|
19037
19033
|
), Ps = h.isScrollable(), hn = Ps ? new Ft(
|
|
19038
19034
|
() => r.x + z - Me(),
|
|
19039
19035
|
() => r.y + O - me(),
|
|
@@ -19159,7 +19155,7 @@ ii = function(n) {
|
|
|
19159
19155
|
(s) => ({
|
|
19160
19156
|
axisBefore: i(s, 0),
|
|
19161
19157
|
axisAfter: i(s, 1),
|
|
19162
|
-
view:
|
|
19158
|
+
view: nC(
|
|
19163
19159
|
s.map(
|
|
19164
19160
|
(o) => x(this, G, wn)[o].view.getViewportSize()[r]
|
|
19165
19161
|
)
|
|
@@ -19849,7 +19845,7 @@ function S8(t, e) {
|
|
|
19849
19845
|
}
|
|
19850
19846
|
}
|
|
19851
19847
|
function ou(t) {
|
|
19852
|
-
return "mark" in t && (
|
|
19848
|
+
return "mark" in t && (Z(t.mark) || Ce(t.mark));
|
|
19853
19849
|
}
|
|
19854
19850
|
function au(t) {
|
|
19855
19851
|
return "layer" in t && Ce(t.layer);
|
|
@@ -20458,7 +20454,7 @@ function Ws(t, e) {
|
|
|
20458
20454
|
const O8 = "data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20clip-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='1.5'%3e%3cpath%20d='M4.7%2021.2s.4%202.3%201.3%203.6C7%2026%209.8%2028%209.8%2028s3.4-2.6%206.4-8.5c0%200%201%20.1%201.9-.4.9-.6.8-.4%201-1.2%200%200%202.9.5%206.6%200%202.1-.3%204.3-1%206.2-2.5%200%200-1.1-1.7-2.5-5.1-.5-1.3-2-1.8-4.6-4.6l-8.2%208.6-11.9%206.9z'%20fill-opacity='.1'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='%237fbbdd'/%3e%3cpath%20d='M12.4%2015.5c-.7-.5-2.4-.8-4.4-.4-2%20.4-4%201.3-4.8%201.8-.5.3-1.2%201-1.2%201.4%200%20.7.3%201.8.8%202.4.3.3.7.5%201.4.6.8%200%202.5-1.4%203.5-2%201-.6%201.6-.8%202.7-1.2l-2.9%202.4c-1.3%201.2-2.2%201.5-2.4%202.3%200%20.5%200%201.4.5%201.8.4.5.6.8%201.6.8.6%200%201%200%202.6-1.5.9-.9%202.3-3%202.7-3.7.6-1.1%201-2.2.7-3-.2-1-.4-1.4-.8-1.7zM17.4%2014.2c-.3-.5-.9-1.2-.2-2.5l1.9-3c.5-.8%202-2.3%202.6-2.6.6-.4%201.5-.6%202-.2.6.4%201%201%201.3%201.5.4.6.7%201.3.2%202-.7%201-1.6.9-2.8%201.7-1.2.8-1.9%201.2-2.5%201.9l3.8-1.8c1.3-.6%202.7-1.1%203.4-.7.8.5.8.7%201%201.4.3%201-.2%201.9-.8%202.4-.5.6-1.5.9-2.6%201.2-1.4.4-4.5%201-5.8.5-1.3-.5-1.3-1.4-1.5-1.8z'%20fill='%23fff'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='%237fbbdd'/%3e%3cpath%20d='M13.8%2015.3c.9.8.6%202%201.4%201.8%201-.2%201.4-.8%201.3-1.5%200-.7%200-.8-.4-1.6-.3-.7-1-1.1-2-.5-.7.5-1.4%201.3-1.4%201.3s.2-.3%201.1.5z'%20fill='%23fff'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3c/svg%3e", z8 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5'%20viewBox='0%200%2064%2064'%3e%3cpath%20d='M208.6%20548.2s11.2%2046.2%2031.2%2071c20%2024.9%2079.3%2061.6%2079.3%2061.6S385.6%20623%20438%20498.3c0%200%2018.1%201%2036-11.9%2017.7-12.7%2016.3-7.9%2021-24.8%200%200%2057%206.3%20131-9.7%2041.7-9.1%2084.3-26.3%20121.5-58.8%200%200-25.4-32.9-58-101.7-12.4-26.1-41.9-34.3-98.7-88L438.1%20391.2%20208.6%20548.2Z'%20style='fill-opacity:.11'%20transform='matrix(.10221%20.00684%20-.00671%20.10035%20-8%20-13.2)'/%3e%3cg%20transform='rotate(-35.4%2034.2%2080.8)%20scale(.10057)'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='a'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='M386.9%20397.2c-15.6-13.6-51.8-22.4-96.3-16.7-44.5%205.8-93.8%2021.8-111.8%2031.6-10.6%205.7-27.3%2017.3-28.1%2027.2-1.2%2014.2%202.9%2037.8%2015%2052%206%207.2%2014.2%2012.1%2028.1%2014.1%2017.9%202.6%2059-24.8%2081.6-36.2%2024-12%2038.6-14.6%2063-22.2%200%200-47%2031.6-68.2%2047.4-30.6%2022.9-51.6%2028-57.3%2045.5-3.1%209.4-.7%2027.9%207.5%2037.6%209%2011%2012.8%2017.6%2034.2%2020.1%2012.7%201.5%2022%201.2%2059.8-28.6%2021.7-17.2%2055.9-59.2%2067-74.4%2016.2-22%2023.8-43.1%2021.3-59.6-3.7-23.6-8.4-31.3-15.8-37.8Z'%20style='fill:%23fff'%20transform='scale(.88664)%20rotate(31.2%20485%20792.2)'/%3e%3cpath%20d='M484.7%20379c-5.4-11.1-17.6-28.5-.8-53.8a739%20739%200%200%201%2044.2-60.6c13.2-16.3%2046.7-46.2%2059.6-52%2013-6%2033.3-8.7%2044.2.2%2011%209.1%2016.5%2020.6%2023%2032.7%207.4%2013.8%2012.4%2029.3%201.6%2042.8-15.4%2019.2-34.3%2017-61.6%2031.5-27.7%2014.8-42.3%2023.1-55.7%2035.9%200%200%2052.2-21.6%2082-31.2%2029.8-9.7%2059.8-20%2074.8-8.5s14.6%2015.5%2018.4%2031.2c4.7%2019.4-7.2%2038-20.1%2048.6-13%2010.7-34.3%2016-57.4%2021-30.5%206.8-96.6%2015.1-124%202.6-27.5-12.6-24.4-32.8-28.2-40.5Z'%20style='fill:%23fff'%20transform='scale(.87906)%20rotate(31.2%20487.2%20893.5)'/%3e%3c/g%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3cg%20transform='rotate(-4.2%20-78%20211)%20scale(.10057)'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='b'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23b)'%3e%3cpath%20d='M413.3%20402.7c17.5%2018.9%2010%2045.7%2028.4%2043.4%2021.7-2.7%2030.9-15.7%2031.6-32.7.7-17-1-19.5-7.1-38-6.1-18.7-18.2-23.2-43.4-18.2-20.8%204.1-17.8%203-24%2010-6.4%207-14.5%2026-14.5%2026s8.4-12.7%2029%209.5Z'%20style='fill:%23fff'%20transform='matrix(.90907%200%200%20.85852%2037%2052.2)'/%3e%3c/g%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3c/svg%3e";
|
|
20459
20455
|
async function N8(t, e, n = {}) {
|
|
20460
20456
|
let r;
|
|
20461
|
-
if (
|
|
20457
|
+
if (Z(t)) {
|
|
20462
20458
|
if (r = document.querySelector(t), !r)
|
|
20463
20459
|
throw new Error(`No such element: ${t}`);
|
|
20464
20460
|
} else if (t instanceof HTMLElement)
|