@genome-spy/app 0.86.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agentApi-DgopQbMV.js → agentApi-BZ1JCo1N.js} +6994 -6499
- package/dist/agentApi.es.js +3057 -3225
- package/dist/agentShared.es.js +7 -7
- package/dist/{canvas2d-8uxuN_vx.js → canvas2d-B_PnIof-.js} +108 -107
- package/dist/{canvas2d-BtQC7Xr8.js → canvas2d-Cafq5v-N.js} +128 -127
- package/dist/{clipOptions-taFzEljc.js → clipOptions-D6eh9T-_.js} +1508 -1166
- package/dist/{clipOptions-BQfNhxgP.js → clipOptions-H68pJyEZ.js} +1496 -1114
- package/dist/{debug-D_VtWQ6l.js → debug-BGzgZmyk.js} +2 -2
- package/dist/{debug-Bzc3SoRg.js → debug-UYKZLNh4.js} +2 -2
- package/dist/index.es.js +96 -106
- package/dist/index.js +399 -392
- package/dist/{indexer-qy_dq5l5.js → indexer-Di57GyxX.js} +1 -1
- package/dist/{indexer-qiFctgR3.js → indexer-o6Hpg4nN.js} +1 -1
- package/dist/nativeText-D9SoxpaD.js +934 -0
- package/dist/nativeText-DAjvkrzc.js +934 -0
- package/dist/{rasterExport-B8pVoOsj.js → rasterExport-DzldLv6E.js} +1 -1
- package/dist/{rasterExport-C4r4xjQT.js → rasterExport-IAbJwi8F.js} +1 -1
- package/dist/{renderCanvas2D-BQrRWp2Z.js → renderCanvas2D-BJ93Ptqj.js} +102 -96
- package/dist/{renderCanvas2D-CHVNfIUz.js → renderCanvas2D-yJ1IrDcX.js} +103 -97
- package/dist/schema.json +10169 -2852
- package/dist/{svg-C-Sw6E6G.js → svg-BRpl2Xub.js} +338 -384
- package/dist/{svg-CKHwwKRt.js → svg-DJuqHIyc.js} +353 -399
- package/dist/{svgRasterizer-BgD72AmG.js → svgRasterizer-CGZQ5njV.js} +1 -1
- package/dist/{svgRasterizer-BgSNqI3L.js → svgRasterizer-PAoqLn1j.js} +1 -1
- package/dist/{vega-scale-D46-iCaL.js → vega-scale-BGC53c22.js} +887 -1184
- package/dist/{vega-scale-CK0_al6O.js → vega-scale-DdW2NzQ3.js} +898 -1195
- package/dist/{viewIdentityRegistry-CDtVktJD.js → viewIdentityRegistry-D4p067HU.js} +1 -1
- package/dist/{viewIdentityRegistry-B-VGlez1.js → viewIdentityRegistry-Dc2hXYsO.js} +1 -1
- package/dist/{viewSelectors-CKfxF_LM.js → viewSelectors-DNXnGwEW.js} +519 -321
- package/dist/{viewSelectors-D_imtq5Z.js → viewSelectors-DYYlOt91.js} +584 -386
- package/dist/{viewUtils-nCJ7AoaI.js → viewUtils-EdhZTPrJ.js} +2930 -2264
- package/dist/{webgl-BaA3jSa2.js → webgl-C53DwzVT.js} +427 -428
- package/dist/{webgl-FP-4EsBL.js → webgl-CdgNFlJk.js} +639 -640
- package/package.json +5 -5
- package/dist/nativeText-DFV5XIx8.js +0 -860
- package/dist/nativeText-vT3AWE14.js +0 -860
|
@@ -1,117 +1,463 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../core/node_modules/vega-util/build/vega-util.js
|
|
2
2
|
function e(e, t, n) {
|
|
3
|
-
return
|
|
4
|
-
fields: t || [],
|
|
5
|
-
fname: n
|
|
6
|
-
});
|
|
3
|
+
return e.fields = t || [], e.fname = n, e;
|
|
7
4
|
}
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region ../../node_modules/vega-util/build/getter.js
|
|
10
5
|
function t(e) {
|
|
11
|
-
return e
|
|
6
|
+
return e == null ? null : e.fname;
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return e == null ? null : e.fields;
|
|
12
10
|
}
|
|
13
|
-
|
|
11
|
+
function r(e) {
|
|
12
|
+
return e.length === 1 ? i(e[0]) : a(e);
|
|
13
|
+
}
|
|
14
|
+
var i = (e) => function(t) {
|
|
14
15
|
return t[e];
|
|
15
|
-
},
|
|
16
|
+
}, a = (e) => {
|
|
16
17
|
let t = e.length;
|
|
17
18
|
return function(n) {
|
|
18
19
|
for (let r = 0; r < t; ++r) n = n[e[r]];
|
|
19
20
|
return n;
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
//#region ../../node_modules/vega-util/build/error.js
|
|
24
|
-
function i(e) {
|
|
23
|
+
function o(e) {
|
|
25
24
|
throw Error(e);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
function a(e) {
|
|
30
|
-
let t = [], n = e.length, r = null, a = 0, o = "", s, c, l;
|
|
26
|
+
function s(e) {
|
|
27
|
+
let t = [], n = e.length, r = null, i = 0, a = "", s, c, l;
|
|
31
28
|
e += "";
|
|
32
29
|
function u() {
|
|
33
|
-
t.push(
|
|
30
|
+
t.push(a + e.substring(s, c)), a = "", s = c + 1;
|
|
34
31
|
}
|
|
35
|
-
for (s = c = 0; c < n; ++c) if (l = e[c], l === "\\")
|
|
36
|
-
else if (l === r) u(), r = null,
|
|
32
|
+
for (s = c = 0; c < n; ++c) if (l = e[c], l === "\\") a += e.substring(s, c++), s = c;
|
|
33
|
+
else if (l === r) u(), r = null, i = -1;
|
|
37
34
|
else if (r) continue;
|
|
38
|
-
else s ===
|
|
39
|
-
return
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region ../../node_modules/vega-util/build/field.js
|
|
43
|
-
function o(n, r, i) {
|
|
44
|
-
let o = a(n), s = o.length === 1 ? o[0] : n;
|
|
45
|
-
return e((i && i.get || t)(o), [s], r || s);
|
|
35
|
+
else s === i && l === "\"" || s === i && l === "'" ? (s = c + 1, r = l) : l === "." && !i ? c > s ? u() : s = c + 1 : l === "[" ? (c > s && u(), i = s = c + 1) : l === "]" && (i || o("Access path missing open bracket: " + e), i > 0 && u(), i = 0, s = c + 1);
|
|
36
|
+
return i && o("Access path missing closing bracket: " + e), r && o("Access path missing closing quote: " + e), c > s && (c++, u()), t;
|
|
46
37
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region ../../node_modules/vega-util/build/interpreter.js
|
|
52
|
-
var c = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), l = Array.isArray;
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region ../../node_modules/vega-util/build/isObject.js
|
|
55
|
-
function u(e) {
|
|
56
|
-
return e === Object(e);
|
|
38
|
+
function c(t, n, i) {
|
|
39
|
+
let a = s(t);
|
|
40
|
+
return t = a.length === 1 ? a[0] : t, e((i && i.get || r)(a), [t], n || t);
|
|
57
41
|
}
|
|
58
|
-
|
|
59
|
-
|
|
42
|
+
c("id");
|
|
43
|
+
var l = e((e) => e, [], "identity");
|
|
44
|
+
e(() => 0, [], "zero"), e(() => 1, [], "one"), e(() => !0, [], "true"), e(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
45
|
+
var u = Array.isArray;
|
|
60
46
|
function d(e) {
|
|
61
|
-
return e
|
|
47
|
+
return e === Object(e);
|
|
62
48
|
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region ../../node_modules/vega-util/build/isFunction.js
|
|
65
49
|
function f(e) {
|
|
50
|
+
return e[e.length - 1];
|
|
51
|
+
}
|
|
52
|
+
function p(e) {
|
|
53
|
+
return e == null || e === "" ? null : +e;
|
|
54
|
+
}
|
|
55
|
+
var m = (e) => (t) => e * Math.exp(t), ee = (e) => (t) => Math.log(e * t), te = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), h = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, g = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
|
|
56
|
+
function _(e, t, n, r) {
|
|
57
|
+
let i = n(e[0]), a = n(f(e)), o = (a - i) * t;
|
|
58
|
+
return [r(i - o), r(a - o)];
|
|
59
|
+
}
|
|
60
|
+
function ne(e, t) {
|
|
61
|
+
return _(e, t, p, l);
|
|
62
|
+
}
|
|
63
|
+
function re(e, t) {
|
|
64
|
+
var n = Math.sign(e[0]);
|
|
65
|
+
return _(e, t, ee(n), m(n));
|
|
66
|
+
}
|
|
67
|
+
function ie(e, t, n) {
|
|
68
|
+
return _(e, t, g(n), g(1 / n));
|
|
69
|
+
}
|
|
70
|
+
function ae(e, t, n, r, i) {
|
|
71
|
+
let a = r(e[0]), o = r(f(e)), s = t == null ? (a + o) / 2 : r(t);
|
|
72
|
+
return [i(s + (a - s) * n), i(s + (o - s) * n)];
|
|
73
|
+
}
|
|
74
|
+
function v(e, t, n) {
|
|
75
|
+
return ae(e, t, n, p, l);
|
|
76
|
+
}
|
|
77
|
+
function y(e, t, n) {
|
|
78
|
+
let r = Math.sign(e[0]);
|
|
79
|
+
return ae(e, t, n, ee(r), m(r));
|
|
80
|
+
}
|
|
81
|
+
function b(e, t, n, r) {
|
|
82
|
+
return ae(e, t, n, g(r), g(1 / r));
|
|
83
|
+
}
|
|
84
|
+
function oe(e, t, n, r) {
|
|
85
|
+
return ae(e, t, n, te(r), h(r));
|
|
86
|
+
}
|
|
87
|
+
function se(e) {
|
|
88
|
+
return e == null ? [] : u(e) ? e : [e];
|
|
89
|
+
}
|
|
90
|
+
function ce(e, t, n) {
|
|
91
|
+
let r = e[0], i = e[1], a;
|
|
92
|
+
return i < r && (a = i, i = r, r = a), a = i - r, a >= n - t ? [t, n] : [r = Math.min(Math.max(r, t), n - a), r + a];
|
|
93
|
+
}
|
|
94
|
+
function le(e) {
|
|
66
95
|
return typeof e == "function";
|
|
67
96
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
97
|
+
var ue = "descending";
|
|
98
|
+
function de(t, r, i) {
|
|
99
|
+
i ||= {}, r = se(r) || [];
|
|
100
|
+
let a = [], o = [], s = {}, l = i.comparator || pe;
|
|
101
|
+
return se(t).forEach((e, t) => {
|
|
102
|
+
e != null && (a.push(r[t] === ue ? -1 : 1), o.push(e = le(e) ? e : c(e, null, i)), (n(e) || []).forEach((e) => s[e] = 1));
|
|
103
|
+
}), o.length === 0 ? null : e(l(o, a), Object.keys(s));
|
|
104
|
+
}
|
|
105
|
+
var fe = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, e = e instanceof Date ? +e : e) !== e && t === t ? -1 : +(t !== t && e === e), pe = (e, t) => e.length === 1 ? me(e[0], t[0]) : he(e, t, e.length), me = (e, t) => function(n, r) {
|
|
106
|
+
return fe(e(n), e(r)) * t;
|
|
107
|
+
}, he = (e, t, n) => (t.push(0), function(r, i) {
|
|
108
|
+
let a, o = 0, s = -1;
|
|
109
|
+
for (; o === 0 && ++s < n;) a = e[s], o = fe(a(r), a(i));
|
|
110
|
+
return o * t[s];
|
|
111
|
+
});
|
|
112
|
+
function ge(e) {
|
|
113
|
+
return typeof e == "boolean";
|
|
72
114
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
115
|
+
function _e(e) {
|
|
116
|
+
return typeof e == "number";
|
|
117
|
+
}
|
|
118
|
+
function ve(e) {
|
|
119
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
120
|
+
}
|
|
121
|
+
function x(e) {
|
|
76
122
|
return typeof e == "string";
|
|
77
123
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return l(e) ? `[${e.map((e) => e === null ? "null" : h(e))}]` : u(e) || m(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
124
|
+
function ye(e, t) {
|
|
125
|
+
let n = e[0], r = f(e), i = +t;
|
|
126
|
+
return i ? i === 1 ? r : n + i * (r - n) : n;
|
|
82
127
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
128
|
+
function be(e) {
|
|
129
|
+
return e && f(e) - e[0] || 0;
|
|
130
|
+
}
|
|
131
|
+
function xe(e) {
|
|
132
|
+
return u(e) ? `[${e.map((e) => e === null ? "null" : xe(e))}]` : d(e) || x(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
133
|
+
}
|
|
134
|
+
function Se(e) {
|
|
86
135
|
let t = {}, n = e.length;
|
|
87
|
-
for (let r = 0; r < n; ++r) t[e[r]
|
|
136
|
+
for (let r = 0; r < n; ++r) t[e[r]] = !0;
|
|
88
137
|
return t;
|
|
89
138
|
}
|
|
90
139
|
//#endregion
|
|
91
140
|
//#region ../../node_modules/d3-array/src/range.js
|
|
92
|
-
function
|
|
141
|
+
function Ce(e, t, n) {
|
|
93
142
|
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
|
|
94
143
|
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
|
|
95
144
|
return a;
|
|
96
145
|
}
|
|
97
146
|
//#endregion
|
|
147
|
+
//#region ../../node_modules/d3-color/src/define.js
|
|
148
|
+
function we(e, t, n) {
|
|
149
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
150
|
+
}
|
|
151
|
+
function Te(e, t) {
|
|
152
|
+
var n = Object.create(e.prototype);
|
|
153
|
+
for (var r in t) n[r] = t[r];
|
|
154
|
+
return n;
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region ../../node_modules/d3-color/src/color.js
|
|
158
|
+
function S() {}
|
|
159
|
+
var C = .7, Ee = 1 / C, w = "\\s*([+-]?\\d+)\\s*", De = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", T = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Oe = /^#([0-9a-f]{3,8})$/, ke = RegExp(`^rgb\\(${w},${w},${w}\\)$`), Ae = RegExp(`^rgb\\(${T},${T},${T}\\)$`), je = RegExp(`^rgba\\(${w},${w},${w},${De}\\)$`), Me = RegExp(`^rgba\\(${T},${T},${T},${De}\\)$`), Ne = RegExp(`^hsl\\(${De},${T},${T}\\)$`), Pe = RegExp(`^hsla\\(${De},${T},${T},${De}\\)$`), Fe = {
|
|
160
|
+
aliceblue: 15792383,
|
|
161
|
+
antiquewhite: 16444375,
|
|
162
|
+
aqua: 65535,
|
|
163
|
+
aquamarine: 8388564,
|
|
164
|
+
azure: 15794175,
|
|
165
|
+
beige: 16119260,
|
|
166
|
+
bisque: 16770244,
|
|
167
|
+
black: 0,
|
|
168
|
+
blanchedalmond: 16772045,
|
|
169
|
+
blue: 255,
|
|
170
|
+
blueviolet: 9055202,
|
|
171
|
+
brown: 10824234,
|
|
172
|
+
burlywood: 14596231,
|
|
173
|
+
cadetblue: 6266528,
|
|
174
|
+
chartreuse: 8388352,
|
|
175
|
+
chocolate: 13789470,
|
|
176
|
+
coral: 16744272,
|
|
177
|
+
cornflowerblue: 6591981,
|
|
178
|
+
cornsilk: 16775388,
|
|
179
|
+
crimson: 14423100,
|
|
180
|
+
cyan: 65535,
|
|
181
|
+
darkblue: 139,
|
|
182
|
+
darkcyan: 35723,
|
|
183
|
+
darkgoldenrod: 12092939,
|
|
184
|
+
darkgray: 11119017,
|
|
185
|
+
darkgreen: 25600,
|
|
186
|
+
darkgrey: 11119017,
|
|
187
|
+
darkkhaki: 12433259,
|
|
188
|
+
darkmagenta: 9109643,
|
|
189
|
+
darkolivegreen: 5597999,
|
|
190
|
+
darkorange: 16747520,
|
|
191
|
+
darkorchid: 10040012,
|
|
192
|
+
darkred: 9109504,
|
|
193
|
+
darksalmon: 15308410,
|
|
194
|
+
darkseagreen: 9419919,
|
|
195
|
+
darkslateblue: 4734347,
|
|
196
|
+
darkslategray: 3100495,
|
|
197
|
+
darkslategrey: 3100495,
|
|
198
|
+
darkturquoise: 52945,
|
|
199
|
+
darkviolet: 9699539,
|
|
200
|
+
deeppink: 16716947,
|
|
201
|
+
deepskyblue: 49151,
|
|
202
|
+
dimgray: 6908265,
|
|
203
|
+
dimgrey: 6908265,
|
|
204
|
+
dodgerblue: 2003199,
|
|
205
|
+
firebrick: 11674146,
|
|
206
|
+
floralwhite: 16775920,
|
|
207
|
+
forestgreen: 2263842,
|
|
208
|
+
fuchsia: 16711935,
|
|
209
|
+
gainsboro: 14474460,
|
|
210
|
+
ghostwhite: 16316671,
|
|
211
|
+
gold: 16766720,
|
|
212
|
+
goldenrod: 14329120,
|
|
213
|
+
gray: 8421504,
|
|
214
|
+
green: 32768,
|
|
215
|
+
greenyellow: 11403055,
|
|
216
|
+
grey: 8421504,
|
|
217
|
+
honeydew: 15794160,
|
|
218
|
+
hotpink: 16738740,
|
|
219
|
+
indianred: 13458524,
|
|
220
|
+
indigo: 4915330,
|
|
221
|
+
ivory: 16777200,
|
|
222
|
+
khaki: 15787660,
|
|
223
|
+
lavender: 15132410,
|
|
224
|
+
lavenderblush: 16773365,
|
|
225
|
+
lawngreen: 8190976,
|
|
226
|
+
lemonchiffon: 16775885,
|
|
227
|
+
lightblue: 11393254,
|
|
228
|
+
lightcoral: 15761536,
|
|
229
|
+
lightcyan: 14745599,
|
|
230
|
+
lightgoldenrodyellow: 16448210,
|
|
231
|
+
lightgray: 13882323,
|
|
232
|
+
lightgreen: 9498256,
|
|
233
|
+
lightgrey: 13882323,
|
|
234
|
+
lightpink: 16758465,
|
|
235
|
+
lightsalmon: 16752762,
|
|
236
|
+
lightseagreen: 2142890,
|
|
237
|
+
lightskyblue: 8900346,
|
|
238
|
+
lightslategray: 7833753,
|
|
239
|
+
lightslategrey: 7833753,
|
|
240
|
+
lightsteelblue: 11584734,
|
|
241
|
+
lightyellow: 16777184,
|
|
242
|
+
lime: 65280,
|
|
243
|
+
limegreen: 3329330,
|
|
244
|
+
linen: 16445670,
|
|
245
|
+
magenta: 16711935,
|
|
246
|
+
maroon: 8388608,
|
|
247
|
+
mediumaquamarine: 6737322,
|
|
248
|
+
mediumblue: 205,
|
|
249
|
+
mediumorchid: 12211667,
|
|
250
|
+
mediumpurple: 9662683,
|
|
251
|
+
mediumseagreen: 3978097,
|
|
252
|
+
mediumslateblue: 8087790,
|
|
253
|
+
mediumspringgreen: 64154,
|
|
254
|
+
mediumturquoise: 4772300,
|
|
255
|
+
mediumvioletred: 13047173,
|
|
256
|
+
midnightblue: 1644912,
|
|
257
|
+
mintcream: 16121850,
|
|
258
|
+
mistyrose: 16770273,
|
|
259
|
+
moccasin: 16770229,
|
|
260
|
+
navajowhite: 16768685,
|
|
261
|
+
navy: 128,
|
|
262
|
+
oldlace: 16643558,
|
|
263
|
+
olive: 8421376,
|
|
264
|
+
olivedrab: 7048739,
|
|
265
|
+
orange: 16753920,
|
|
266
|
+
orangered: 16729344,
|
|
267
|
+
orchid: 14315734,
|
|
268
|
+
palegoldenrod: 15657130,
|
|
269
|
+
palegreen: 10025880,
|
|
270
|
+
paleturquoise: 11529966,
|
|
271
|
+
palevioletred: 14381203,
|
|
272
|
+
papayawhip: 16773077,
|
|
273
|
+
peachpuff: 16767673,
|
|
274
|
+
peru: 13468991,
|
|
275
|
+
pink: 16761035,
|
|
276
|
+
plum: 14524637,
|
|
277
|
+
powderblue: 11591910,
|
|
278
|
+
purple: 8388736,
|
|
279
|
+
rebeccapurple: 6697881,
|
|
280
|
+
red: 16711680,
|
|
281
|
+
rosybrown: 12357519,
|
|
282
|
+
royalblue: 4286945,
|
|
283
|
+
saddlebrown: 9127187,
|
|
284
|
+
salmon: 16416882,
|
|
285
|
+
sandybrown: 16032864,
|
|
286
|
+
seagreen: 3050327,
|
|
287
|
+
seashell: 16774638,
|
|
288
|
+
sienna: 10506797,
|
|
289
|
+
silver: 12632256,
|
|
290
|
+
skyblue: 8900331,
|
|
291
|
+
slateblue: 6970061,
|
|
292
|
+
slategray: 7372944,
|
|
293
|
+
slategrey: 7372944,
|
|
294
|
+
snow: 16775930,
|
|
295
|
+
springgreen: 65407,
|
|
296
|
+
steelblue: 4620980,
|
|
297
|
+
tan: 13808780,
|
|
298
|
+
teal: 32896,
|
|
299
|
+
thistle: 14204888,
|
|
300
|
+
tomato: 16737095,
|
|
301
|
+
turquoise: 4251856,
|
|
302
|
+
violet: 15631086,
|
|
303
|
+
wheat: 16113331,
|
|
304
|
+
white: 16777215,
|
|
305
|
+
whitesmoke: 16119285,
|
|
306
|
+
yellow: 16776960,
|
|
307
|
+
yellowgreen: 10145074
|
|
308
|
+
};
|
|
309
|
+
we(S, Be, {
|
|
310
|
+
copy(e) {
|
|
311
|
+
return Object.assign(new this.constructor(), this, e);
|
|
312
|
+
},
|
|
313
|
+
displayable() {
|
|
314
|
+
return this.rgb().displayable();
|
|
315
|
+
},
|
|
316
|
+
hex: Ie,
|
|
317
|
+
formatHex: Ie,
|
|
318
|
+
formatHex8: Le,
|
|
319
|
+
formatHsl: Re,
|
|
320
|
+
formatRgb: ze,
|
|
321
|
+
toString: ze
|
|
322
|
+
});
|
|
323
|
+
function Ie() {
|
|
324
|
+
return this.rgb().formatHex();
|
|
325
|
+
}
|
|
326
|
+
function Le() {
|
|
327
|
+
return this.rgb().formatHex8();
|
|
328
|
+
}
|
|
329
|
+
function Re() {
|
|
330
|
+
return Xe(this).formatHsl();
|
|
331
|
+
}
|
|
332
|
+
function ze() {
|
|
333
|
+
return this.rgb().formatRgb();
|
|
334
|
+
}
|
|
335
|
+
function Be(e) {
|
|
336
|
+
var t, n;
|
|
337
|
+
return e = (e + "").trim().toLowerCase(), (t = Oe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ve(t) : n === 3 ? new E(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? He(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? He(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = ke.exec(e)) ? new E(t[1], t[2], t[3], 1) : (t = Ae.exec(e)) ? new E(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = je.exec(e)) ? He(t[1], t[2], t[3], t[4]) : (t = Me.exec(e)) ? He(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ne.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, 1) : (t = Pe.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, t[4]) : Fe.hasOwnProperty(e) ? Ve(Fe[e]) : e === "transparent" ? new E(NaN, NaN, NaN, 0) : null;
|
|
338
|
+
}
|
|
339
|
+
function Ve(e) {
|
|
340
|
+
return new E(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
341
|
+
}
|
|
342
|
+
function He(e, t, n, r) {
|
|
343
|
+
return r <= 0 && (e = t = n = NaN), new E(e, t, n, r);
|
|
344
|
+
}
|
|
345
|
+
function Ue(e) {
|
|
346
|
+
return e instanceof S || (e = Be(e)), e ? (e = e.rgb(), new E(e.r, e.g, e.b, e.opacity)) : new E();
|
|
347
|
+
}
|
|
348
|
+
function We(e, t, n, r) {
|
|
349
|
+
return arguments.length === 1 ? Ue(e) : new E(e, t, n, r ?? 1);
|
|
350
|
+
}
|
|
351
|
+
function E(e, t, n, r) {
|
|
352
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
353
|
+
}
|
|
354
|
+
we(E, We, Te(S, {
|
|
355
|
+
brighter(e) {
|
|
356
|
+
return e = e == null ? Ee : Ee ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
357
|
+
},
|
|
358
|
+
darker(e) {
|
|
359
|
+
return e = e == null ? C : C ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
360
|
+
},
|
|
361
|
+
rgb() {
|
|
362
|
+
return this;
|
|
363
|
+
},
|
|
364
|
+
clamp() {
|
|
365
|
+
return new E(D(this.r), D(this.g), D(this.b), Je(this.opacity));
|
|
366
|
+
},
|
|
367
|
+
displayable() {
|
|
368
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
369
|
+
},
|
|
370
|
+
hex: Ge,
|
|
371
|
+
formatHex: Ge,
|
|
372
|
+
formatHex8: Ke,
|
|
373
|
+
formatRgb: qe,
|
|
374
|
+
toString: qe
|
|
375
|
+
}));
|
|
376
|
+
function Ge() {
|
|
377
|
+
return `#${O(this.r)}${O(this.g)}${O(this.b)}`;
|
|
378
|
+
}
|
|
379
|
+
function Ke() {
|
|
380
|
+
return `#${O(this.r)}${O(this.g)}${O(this.b)}${O((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
381
|
+
}
|
|
382
|
+
function qe() {
|
|
383
|
+
let e = Je(this.opacity);
|
|
384
|
+
return `${e === 1 ? "rgb(" : "rgba("}${D(this.r)}, ${D(this.g)}, ${D(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
385
|
+
}
|
|
386
|
+
function Je(e) {
|
|
387
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
388
|
+
}
|
|
389
|
+
function D(e) {
|
|
390
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
391
|
+
}
|
|
392
|
+
function O(e) {
|
|
393
|
+
return e = D(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
394
|
+
}
|
|
395
|
+
function Ye(e, t, n, r) {
|
|
396
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new k(e, t, n, r);
|
|
397
|
+
}
|
|
398
|
+
function Xe(e) {
|
|
399
|
+
if (e instanceof k) return new k(e.h, e.s, e.l, e.opacity);
|
|
400
|
+
if (e instanceof S || (e = Be(e)), !e) return new k();
|
|
401
|
+
if (e instanceof k) return e;
|
|
402
|
+
e = e.rgb();
|
|
403
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
404
|
+
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new k(o, s, c, e.opacity);
|
|
405
|
+
}
|
|
406
|
+
function Ze(e, t, n, r) {
|
|
407
|
+
return arguments.length === 1 ? Xe(e) : new k(e, t, n, r ?? 1);
|
|
408
|
+
}
|
|
409
|
+
function k(e, t, n, r) {
|
|
410
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
411
|
+
}
|
|
412
|
+
we(k, Ze, Te(S, {
|
|
413
|
+
brighter(e) {
|
|
414
|
+
return e = e == null ? Ee : Ee ** +e, new k(this.h, this.s, this.l * e, this.opacity);
|
|
415
|
+
},
|
|
416
|
+
darker(e) {
|
|
417
|
+
return e = e == null ? C : C ** +e, new k(this.h, this.s, this.l * e, this.opacity);
|
|
418
|
+
},
|
|
419
|
+
rgb() {
|
|
420
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
421
|
+
return new E(et(e >= 240 ? e - 240 : e + 120, i, r), et(e, i, r), et(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
422
|
+
},
|
|
423
|
+
clamp() {
|
|
424
|
+
return new k(Qe(this.h), $e(this.s), $e(this.l), Je(this.opacity));
|
|
425
|
+
},
|
|
426
|
+
displayable() {
|
|
427
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
428
|
+
},
|
|
429
|
+
formatHsl() {
|
|
430
|
+
let e = Je(this.opacity);
|
|
431
|
+
return `${e === 1 ? "hsl(" : "hsla("}${Qe(this.h)}, ${$e(this.s) * 100}%, ${$e(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
432
|
+
}
|
|
433
|
+
}));
|
|
434
|
+
function Qe(e) {
|
|
435
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
436
|
+
}
|
|
437
|
+
function $e(e) {
|
|
438
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
439
|
+
}
|
|
440
|
+
function et(e, t, n) {
|
|
441
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
442
|
+
}
|
|
443
|
+
//#endregion
|
|
98
444
|
//#region ../../node_modules/d3-format/src/formatDecimal.js
|
|
99
|
-
function
|
|
445
|
+
function tt(e) {
|
|
100
446
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
101
447
|
}
|
|
102
|
-
function
|
|
448
|
+
function nt(e, t) {
|
|
103
449
|
if (!isFinite(e) || e === 0) return null;
|
|
104
450
|
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
105
451
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
106
452
|
}
|
|
107
453
|
//#endregion
|
|
108
454
|
//#region ../../node_modules/d3-format/src/exponent.js
|
|
109
|
-
function
|
|
110
|
-
return e =
|
|
455
|
+
function rt(e) {
|
|
456
|
+
return e = nt(Math.abs(e)), e ? e[1] : NaN;
|
|
111
457
|
}
|
|
112
458
|
//#endregion
|
|
113
459
|
//#region ../../node_modules/d3-format/src/formatGroup.js
|
|
114
|
-
function
|
|
460
|
+
function it(e, t) {
|
|
115
461
|
return function(n, r) {
|
|
116
462
|
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
117
463
|
return a.reverse().join(t);
|
|
@@ -119,7 +465,7 @@ function ne(e, t) {
|
|
|
119
465
|
}
|
|
120
466
|
//#endregion
|
|
121
467
|
//#region ../../node_modules/d3-format/src/formatNumerals.js
|
|
122
|
-
function
|
|
468
|
+
function at(e) {
|
|
123
469
|
return function(t) {
|
|
124
470
|
return t.replace(/[0-9]/g, function(t) {
|
|
125
471
|
return e[+t];
|
|
@@ -128,11 +474,11 @@ function re(e) {
|
|
|
128
474
|
}
|
|
129
475
|
//#endregion
|
|
130
476
|
//#region ../../node_modules/d3-format/src/formatSpecifier.js
|
|
131
|
-
var
|
|
132
|
-
function
|
|
133
|
-
if (!(t =
|
|
477
|
+
var ot = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
478
|
+
function st(e) {
|
|
479
|
+
if (!(t = ot.exec(e))) throw Error("invalid format: " + e);
|
|
134
480
|
var t;
|
|
135
|
-
return new
|
|
481
|
+
return new ct({
|
|
136
482
|
fill: t[1],
|
|
137
483
|
align: t[2],
|
|
138
484
|
sign: t[3],
|
|
@@ -145,16 +491,16 @@ function y(e) {
|
|
|
145
491
|
type: t[10]
|
|
146
492
|
});
|
|
147
493
|
}
|
|
148
|
-
|
|
149
|
-
function
|
|
494
|
+
st.prototype = ct.prototype;
|
|
495
|
+
function ct(e) {
|
|
150
496
|
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
151
497
|
}
|
|
152
|
-
|
|
498
|
+
ct.prototype.toString = function() {
|
|
153
499
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
154
500
|
};
|
|
155
501
|
//#endregion
|
|
156
502
|
//#region ../../node_modules/d3-format/src/formatTrim.js
|
|
157
|
-
function
|
|
503
|
+
function lt(e) {
|
|
158
504
|
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
159
505
|
case ".":
|
|
160
506
|
r = i = n;
|
|
@@ -171,46 +517,46 @@ function ae(e) {
|
|
|
171
517
|
}
|
|
172
518
|
//#endregion
|
|
173
519
|
//#region ../../node_modules/d3-format/src/formatPrefixAuto.js
|
|
174
|
-
var
|
|
175
|
-
function
|
|
176
|
-
var n =
|
|
177
|
-
if (!n) return
|
|
178
|
-
var r = n[0], i = n[1], a = i - (
|
|
179
|
-
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") +
|
|
520
|
+
var ut;
|
|
521
|
+
function dt(e, t) {
|
|
522
|
+
var n = nt(e, t);
|
|
523
|
+
if (!n) return ut = void 0, e.toPrecision(t);
|
|
524
|
+
var r = n[0], i = n[1], a = i - (ut = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
525
|
+
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + nt(e, Math.max(0, t + a - 1))[0];
|
|
180
526
|
}
|
|
181
527
|
//#endregion
|
|
182
528
|
//#region ../../node_modules/d3-format/src/formatRounded.js
|
|
183
|
-
function
|
|
184
|
-
var n =
|
|
529
|
+
function ft(e, t) {
|
|
530
|
+
var n = nt(e, t);
|
|
185
531
|
if (!n) return e + "";
|
|
186
532
|
var r = n[0], i = n[1];
|
|
187
533
|
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
|
|
188
534
|
}
|
|
189
535
|
//#endregion
|
|
190
536
|
//#region ../../node_modules/d3-format/src/formatTypes.js
|
|
191
|
-
var
|
|
537
|
+
var pt = {
|
|
192
538
|
"%": (e, t) => (e * 100).toFixed(t),
|
|
193
539
|
b: (e) => Math.round(e).toString(2),
|
|
194
540
|
c: (e) => e + "",
|
|
195
|
-
d:
|
|
541
|
+
d: tt,
|
|
196
542
|
e: (e, t) => e.toExponential(t),
|
|
197
543
|
f: (e, t) => e.toFixed(t),
|
|
198
544
|
g: (e, t) => e.toPrecision(t),
|
|
199
545
|
o: (e) => Math.round(e).toString(8),
|
|
200
|
-
p: (e, t) =>
|
|
201
|
-
r:
|
|
202
|
-
s:
|
|
546
|
+
p: (e, t) => ft(e * 100, t),
|
|
547
|
+
r: ft,
|
|
548
|
+
s: dt,
|
|
203
549
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
204
550
|
x: (e) => Math.round(e).toString(16)
|
|
205
551
|
};
|
|
206
552
|
//#endregion
|
|
207
553
|
//#region ../../node_modules/d3-format/src/identity.js
|
|
208
|
-
function
|
|
554
|
+
function mt(e) {
|
|
209
555
|
return e;
|
|
210
556
|
}
|
|
211
557
|
//#endregion
|
|
212
558
|
//#region ../../node_modules/d3-format/src/locale.js
|
|
213
|
-
var
|
|
559
|
+
var ht = Array.prototype.map, gt = [
|
|
214
560
|
"y",
|
|
215
561
|
"z",
|
|
216
562
|
"a",
|
|
@@ -229,51 +575,51 @@ var ue = Array.prototype.map, de = [
|
|
|
229
575
|
"Z",
|
|
230
576
|
"Y"
|
|
231
577
|
];
|
|
232
|
-
function
|
|
233
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ?
|
|
578
|
+
function _t(e) {
|
|
579
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? mt : it(ht.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? mt : at(ht.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
234
580
|
function l(e, l) {
|
|
235
|
-
e =
|
|
236
|
-
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero,
|
|
237
|
-
|
|
238
|
-
var
|
|
239
|
-
|
|
240
|
-
function
|
|
241
|
-
var n =
|
|
242
|
-
if (
|
|
581
|
+
e = st(e);
|
|
582
|
+
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, ee = e.width, te = e.comma, h = e.precision, g = e.trim, _ = e.type;
|
|
583
|
+
_ === "n" ? (te = !0, _ = "g") : pt[_] || (h === void 0 && (h = 12), g = !0, _ = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
584
|
+
var ne = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : ""), re = (p === "$" ? r : /[%p]/.test(_) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), ie = pt[_], ae = /[defgprs%]/.test(_);
|
|
585
|
+
h = h === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, h)) : Math.max(0, Math.min(20, h));
|
|
586
|
+
function v(e) {
|
|
587
|
+
var n = ne, r = re, o, l, p;
|
|
588
|
+
if (_ === "c") r = ie(e) + r, e = "";
|
|
243
589
|
else {
|
|
244
590
|
e = +e;
|
|
245
|
-
var
|
|
246
|
-
if (e = isNaN(e) ? c :
|
|
591
|
+
var v = e < 0 || 1 / e < 0;
|
|
592
|
+
if (e = isNaN(e) ? c : ie(Math.abs(e), h), g && (e = lt(e)), v && +e == 0 && f !== "+" && (v = !1), n = (v ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (_ === "s" && !isNaN(e) && ut !== void 0 ? gt[8 + ut / 3] : "") + r + (v && f === "(" ? ")" : ""), ae) {
|
|
247
593
|
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
248
594
|
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
249
595
|
break;
|
|
250
596
|
}
|
|
251
597
|
}
|
|
252
598
|
}
|
|
253
|
-
|
|
254
|
-
var
|
|
255
|
-
switch (
|
|
599
|
+
te && !m && (e = t(e, Infinity));
|
|
600
|
+
var y = n.length + e.length + r.length, b = y < ee ? Array(ee - y + 1).join(u) : "";
|
|
601
|
+
switch (te && m && (e = t(b + e, b.length ? ee - r.length : Infinity), b = ""), d) {
|
|
256
602
|
case "<":
|
|
257
|
-
e = n + e + r +
|
|
603
|
+
e = n + e + r + b;
|
|
258
604
|
break;
|
|
259
605
|
case "=":
|
|
260
|
-
e = n +
|
|
606
|
+
e = n + b + e + r;
|
|
261
607
|
break;
|
|
262
608
|
case "^":
|
|
263
|
-
e =
|
|
609
|
+
e = b.slice(0, y = b.length >> 1) + n + e + r + b.slice(y);
|
|
264
610
|
break;
|
|
265
611
|
default:
|
|
266
|
-
e =
|
|
612
|
+
e = b + n + e + r;
|
|
267
613
|
break;
|
|
268
614
|
}
|
|
269
615
|
return a(e);
|
|
270
616
|
}
|
|
271
|
-
return
|
|
617
|
+
return v.toString = function() {
|
|
272
618
|
return e + "";
|
|
273
|
-
},
|
|
619
|
+
}, v;
|
|
274
620
|
}
|
|
275
621
|
function u(e, t) {
|
|
276
|
-
var n = Math.max(-8, Math.min(8, Math.floor(
|
|
622
|
+
var n = Math.max(-8, Math.min(8, Math.floor(rt(t) / 3))) * 3, r = 10 ** -n, i = l((e = st(e), e.type = "f", e), { suffix: gt[8 + n / 3] });
|
|
277
623
|
return function(e) {
|
|
278
624
|
return i(r * e);
|
|
279
625
|
};
|
|
@@ -285,174 +631,54 @@ function fe(e) {
|
|
|
285
631
|
}
|
|
286
632
|
//#endregion
|
|
287
633
|
//#region ../../node_modules/d3-format/src/defaultLocale.js
|
|
288
|
-
var
|
|
289
|
-
|
|
634
|
+
var vt, yt, bt;
|
|
635
|
+
xt({
|
|
290
636
|
thousands: ",",
|
|
291
637
|
grouping: [3],
|
|
292
638
|
currency: ["$", ""]
|
|
293
639
|
});
|
|
294
|
-
function
|
|
295
|
-
return
|
|
296
|
-
}
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region ../core/src/utils/arrayUtils.js
|
|
299
|
-
function _e(e, t) {
|
|
300
|
-
return e.length == t.length && e.every((n, r) => e[r] === t[r]);
|
|
301
|
-
}
|
|
302
|
-
function ve(e) {
|
|
303
|
-
return Array.isArray(e) ? e : e === void 0 ? [] : [e];
|
|
304
|
-
}
|
|
305
|
-
function ye(e) {
|
|
306
|
-
return e[e.length - 1];
|
|
307
|
-
}
|
|
308
|
-
function be(e, t, n) {
|
|
309
|
-
if (t < 0 || t >= e.length) throw Error("Source index out of range.");
|
|
310
|
-
if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
|
|
311
|
-
let [r] = e.splice(t, 1);
|
|
312
|
-
e.splice(n, 0, r);
|
|
640
|
+
function xt(e) {
|
|
641
|
+
return vt = _t(e), yt = vt.format, bt = vt.formatPrefix, vt;
|
|
313
642
|
}
|
|
314
643
|
//#endregion
|
|
315
|
-
//#region ../core/
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}, Te = (e) => {
|
|
331
|
-
let t = e.length;
|
|
332
|
-
return function(n) {
|
|
333
|
-
for (let r = 0; r < t; ++r) n = n[e[r]];
|
|
334
|
-
return n;
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
function Ee(e) {
|
|
338
|
-
throw Error(e);
|
|
339
|
-
}
|
|
340
|
-
function De(e) {
|
|
341
|
-
let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
|
|
342
|
-
e += "";
|
|
343
|
-
function l() {
|
|
344
|
-
t.push(a + e.substring(o, s)), a = "", o = s + 1;
|
|
644
|
+
//#region ../core/src/data/sideInputBinding.js
|
|
645
|
+
var St = class {
|
|
646
|
+
#e;
|
|
647
|
+
#t;
|
|
648
|
+
#n = !1;
|
|
649
|
+
#r = !0;
|
|
650
|
+
#i = [];
|
|
651
|
+
constructor(e) {
|
|
652
|
+
this.#e = e, this.#t = Array.from(new Set(e.dataDependencies), (e) => ({
|
|
653
|
+
collector: e,
|
|
654
|
+
consumed: -1
|
|
655
|
+
}));
|
|
656
|
+
for (let t of this.#t) this.#i.push(t.collector.observe(() => {
|
|
657
|
+
e.parent && e.completed && !this.isReady() && e.areDataDependenciesAvailable() && e.requestRepropagate();
|
|
658
|
+
}));
|
|
345
659
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
var Me = (e) => (t) => e * Math.exp(t), Ne = (e) => (t) => Math.log(e * t), Pe = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), Fe = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, Ie = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
|
|
370
|
-
function Le(e, t, n, r) {
|
|
371
|
-
let i = n(e[0]), a = n(w(e)), o = (a - i) * t;
|
|
372
|
-
return [r(i - o), r(a - o)];
|
|
373
|
-
}
|
|
374
|
-
function Re(e, t) {
|
|
375
|
-
return Le(e, t, je, ke);
|
|
376
|
-
}
|
|
377
|
-
function ze(e, t) {
|
|
378
|
-
var n = Math.sign(e[0]);
|
|
379
|
-
return Le(e, t, Ne(n), Me(n));
|
|
380
|
-
}
|
|
381
|
-
function Be(e, t, n) {
|
|
382
|
-
return Le(e, t, Ie(n), Ie(1 / n));
|
|
383
|
-
}
|
|
384
|
-
function Ve(e, t, n, r, i) {
|
|
385
|
-
let a = r(e[0]), o = r(w(e)), s = t == null ? (a + o) / 2 : r(t);
|
|
386
|
-
return [i(s + (a - s) * n), i(s + (o - s) * n)];
|
|
387
|
-
}
|
|
388
|
-
function He(e, t, n) {
|
|
389
|
-
return Ve(e, t, n, je, ke);
|
|
390
|
-
}
|
|
391
|
-
function Ue(e, t, n) {
|
|
392
|
-
let r = Math.sign(e[0]);
|
|
393
|
-
return Ve(e, t, n, Ne(r), Me(r));
|
|
394
|
-
}
|
|
395
|
-
function We(e, t, n, r) {
|
|
396
|
-
return Ve(e, t, n, Ie(r), Ie(1 / r));
|
|
397
|
-
}
|
|
398
|
-
function Ge(e, t, n, r) {
|
|
399
|
-
return Ve(e, t, n, Pe(r), Fe(r));
|
|
400
|
-
}
|
|
401
|
-
function Ke(e) {
|
|
402
|
-
return e == null ? [] : C(e) ? e : [e];
|
|
403
|
-
}
|
|
404
|
-
function qe(e, t, n) {
|
|
405
|
-
let r = e[0], i = e[1], a;
|
|
406
|
-
return i < r && (a = i, i = r, r = a), a = i - r, a >= n - t ? [t, n] : [r = Math.min(Math.max(r, t), n - a), r + a];
|
|
407
|
-
}
|
|
408
|
-
function Je(e) {
|
|
409
|
-
return typeof e == "function";
|
|
410
|
-
}
|
|
411
|
-
var Ye = "descending";
|
|
412
|
-
function Xe(e, t, n) {
|
|
413
|
-
n ||= {}, t = Ke(t) || [];
|
|
414
|
-
let r = [], i = [], a = {}, o = n.comparator || Qe;
|
|
415
|
-
return Ke(e).forEach((e, o) => {
|
|
416
|
-
e != null && (r.push(t[o] === Ye ? -1 : 1), i.push(e = Je(e) ? e : Oe(e, null, n)), (Se(e) || []).forEach((e) => a[e] = 1));
|
|
417
|
-
}), i.length === 0 ? null : S(o(i, r), Object.keys(a));
|
|
418
|
-
}
|
|
419
|
-
var Ze = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, e = e instanceof Date ? +e : e) !== e && t === t ? -1 : +(t !== t && e === e), Qe = (e, t) => e.length === 1 ? $e(e[0], t[0]) : et(e, t, e.length), $e = (e, t) => function(n, r) {
|
|
420
|
-
return Ze(e(n), e(r)) * t;
|
|
421
|
-
}, et = (e, t, n) => (t.push(0), function(r, i) {
|
|
422
|
-
let a, o = 0, s = -1;
|
|
423
|
-
for (; o === 0 && ++s < n;) a = e[s], o = Ze(a(r), a(i));
|
|
424
|
-
return o * t[s];
|
|
425
|
-
});
|
|
426
|
-
function tt(e) {
|
|
427
|
-
return typeof e == "boolean";
|
|
428
|
-
}
|
|
429
|
-
function nt(e) {
|
|
430
|
-
return typeof e == "number";
|
|
431
|
-
}
|
|
432
|
-
function rt(e) {
|
|
433
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
434
|
-
}
|
|
435
|
-
function T(e) {
|
|
436
|
-
return typeof e == "string";
|
|
437
|
-
}
|
|
438
|
-
function it(e, t) {
|
|
439
|
-
let n = e[0], r = w(e), i = +t;
|
|
440
|
-
return i ? i === 1 ? r : n + i * (r - n) : n;
|
|
441
|
-
}
|
|
442
|
-
function at(e) {
|
|
443
|
-
return e && w(e) - e[0] || 0;
|
|
444
|
-
}
|
|
445
|
-
function ot(e) {
|
|
446
|
-
return C(e) ? `[${e.map((e) => e === null ? "null" : ot(e))}]` : Ae(e) || T(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
447
|
-
}
|
|
448
|
-
function st(e) {
|
|
449
|
-
let t = {}, n = e.length;
|
|
450
|
-
for (let r = 0; r < n; ++r) t[e[r]] = !0;
|
|
451
|
-
return t;
|
|
452
|
-
}
|
|
453
|
-
//#endregion
|
|
454
|
-
//#region ../core/src/data/flowNode.js
|
|
455
|
-
var ct = class {
|
|
660
|
+
dispose() {
|
|
661
|
+
for (let e of this.#i) e();
|
|
662
|
+
this.#i.length = 0;
|
|
663
|
+
}
|
|
664
|
+
reset() {
|
|
665
|
+
this.#n = !1, this.#r = !0;
|
|
666
|
+
for (let e of this.#t) e.consumed = -1;
|
|
667
|
+
}
|
|
668
|
+
consume() {
|
|
669
|
+
if (!this.#e.areDataDependenciesAvailable()) this.#r = !1;
|
|
670
|
+
else if (!this.#n) {
|
|
671
|
+
for (let e of this.#t) e.consumed = e.collector.dataRevision;
|
|
672
|
+
this.#n = !0;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
complete() {
|
|
676
|
+
this.#n || this.consume();
|
|
677
|
+
}
|
|
678
|
+
isReady() {
|
|
679
|
+
return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
|
|
680
|
+
}
|
|
681
|
+
}, Ct = class {
|
|
456
682
|
stats = {
|
|
457
683
|
count: 0,
|
|
458
684
|
first: null
|
|
@@ -460,6 +686,8 @@ var ct = class {
|
|
|
460
686
|
#e = !1;
|
|
461
687
|
#t = !1;
|
|
462
688
|
#n = [];
|
|
689
|
+
#r;
|
|
690
|
+
#i;
|
|
463
691
|
paramRuntimeProvider = null;
|
|
464
692
|
get behavior() {
|
|
465
693
|
return 0;
|
|
@@ -467,6 +695,18 @@ var ct = class {
|
|
|
467
695
|
get domainSensitiveScaleChannels() {
|
|
468
696
|
return [];
|
|
469
697
|
}
|
|
698
|
+
get dataDependencies() {
|
|
699
|
+
return [];
|
|
700
|
+
}
|
|
701
|
+
isDataReady() {
|
|
702
|
+
return this.completed && !this.disposed && (!this.#i || this.#i.isReady());
|
|
703
|
+
}
|
|
704
|
+
areDataDependenciesAvailable() {
|
|
705
|
+
return this.dataDependencies.every((e) => e.completed && !e.disposed);
|
|
706
|
+
}
|
|
707
|
+
consumeDataDependencies() {
|
|
708
|
+
this.#i?.consume();
|
|
709
|
+
}
|
|
470
710
|
get label() {
|
|
471
711
|
return `(${this.constructor.name})`;
|
|
472
712
|
}
|
|
@@ -490,26 +730,26 @@ var ct = class {
|
|
|
490
730
|
initialized: this.#e,
|
|
491
731
|
disposed: this.#t,
|
|
492
732
|
params: "params" in e ? structuredClone(e.params) : void 0,
|
|
493
|
-
view:
|
|
733
|
+
view: wt(e, this.paramRuntimeProvider),
|
|
494
734
|
domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
|
|
495
735
|
};
|
|
496
736
|
}
|
|
497
737
|
reset() {
|
|
498
|
-
this.completed = !1;
|
|
738
|
+
this.#i?.reset(), this.completed = !1;
|
|
499
739
|
for (let e of this.children) e.reset();
|
|
500
740
|
this.stats.count = 0, this.stats.first = null;
|
|
501
741
|
}
|
|
502
742
|
initialize() {}
|
|
503
743
|
initializeOnce() {
|
|
504
|
-
this.#e ||= (this.initialize(), !0);
|
|
744
|
+
this.#e ||= (this.dataDependencies.length && (this.#i = new St(this)), this.initialize(), !0);
|
|
505
745
|
}
|
|
506
|
-
#
|
|
507
|
-
this._propagate = Function("children", "stats",
|
|
746
|
+
#a() {
|
|
747
|
+
this._propagate = Function("children", "stats", Ce(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
|
|
508
748
|
if (stats.count === 0) {
|
|
509
749
|
stats.first = structuredClone(datum);
|
|
510
750
|
}
|
|
511
751
|
stats.count++;
|
|
512
|
-
${
|
|
752
|
+
${Ce(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
|
|
513
753
|
};`)(this.children, this.stats);
|
|
514
754
|
}
|
|
515
755
|
setParent(e) {
|
|
@@ -517,7 +757,7 @@ var ct = class {
|
|
|
517
757
|
}
|
|
518
758
|
addChild(e) {
|
|
519
759
|
if (e.parent) throw Error("Cannot add the child! It already has a parent.");
|
|
520
|
-
return this.children.push(e), e.setParent(this), this.#
|
|
760
|
+
return this.children.push(e), e.setParent(this), this.#a(), this;
|
|
521
761
|
}
|
|
522
762
|
adopt(e) {
|
|
523
763
|
e.parent && e.parent.removeChild(e), this.addChild(e);
|
|
@@ -527,11 +767,11 @@ var ct = class {
|
|
|
527
767
|
}
|
|
528
768
|
insertAsParent(e) {
|
|
529
769
|
if (this.isRoot()) throw Error("Cannot insert a new parent for a root node!");
|
|
530
|
-
e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#
|
|
770
|
+
e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.parent = void 0, e.addChild(this);
|
|
531
771
|
}
|
|
532
772
|
removeChild(e) {
|
|
533
773
|
let t = this.children.indexOf(e);
|
|
534
|
-
if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#
|
|
774
|
+
if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#a();
|
|
535
775
|
else throw Error("Trying to remove an unknown child node!");
|
|
536
776
|
}
|
|
537
777
|
excise() {
|
|
@@ -539,7 +779,7 @@ var ct = class {
|
|
|
539
779
|
if (this.isTerminal()) this.parent.removeChild(this);
|
|
540
780
|
else if (this.children.length == 1) {
|
|
541
781
|
let e = this.children[0];
|
|
542
|
-
e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#
|
|
782
|
+
e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.setParent(void 0), this.children.length = 0;
|
|
543
783
|
} else throw Error("Cannot excise a node that has multiple children!");
|
|
544
784
|
}
|
|
545
785
|
isRoot() {
|
|
@@ -564,7 +804,7 @@ var ct = class {
|
|
|
564
804
|
this._propagate(e);
|
|
565
805
|
}
|
|
566
806
|
complete() {
|
|
567
|
-
this.completed = !0;
|
|
807
|
+
this.#i?.complete(), this.completed = !0;
|
|
568
808
|
for (let e of this.children) e.complete();
|
|
569
809
|
}
|
|
570
810
|
registerDisposer(e) {
|
|
@@ -572,7 +812,7 @@ var ct = class {
|
|
|
572
812
|
}
|
|
573
813
|
dispose() {
|
|
574
814
|
if (!this.#t) {
|
|
575
|
-
this.#t = !0;
|
|
815
|
+
this.#t = !0, this.#i?.dispose();
|
|
576
816
|
for (let e of this.#n) e();
|
|
577
817
|
this.#n.length = 0;
|
|
578
818
|
}
|
|
@@ -591,17 +831,41 @@ var ct = class {
|
|
|
591
831
|
if (!this.parent) throw Error("Cannot find paramRuntime!");
|
|
592
832
|
return this.parent.paramRuntime;
|
|
593
833
|
}
|
|
834
|
+
get replaySource() {
|
|
835
|
+
if (!this.parent) throw Error("Cannot replay data: no upstream replay source.");
|
|
836
|
+
return this.parent.replaySource;
|
|
837
|
+
}
|
|
838
|
+
get replaysSynchronously() {
|
|
839
|
+
return !1;
|
|
840
|
+
}
|
|
841
|
+
requestRepropagate() {
|
|
842
|
+
let e = this.replaySource, t = this.paramRuntime.updateScheduler;
|
|
843
|
+
e.#r ||= () => {
|
|
844
|
+
e.disposed || (e.replaysSynchronously && e.visit((e) => {
|
|
845
|
+
e.#r && t.cancelUpdate(e.#r);
|
|
846
|
+
}), e.repropagate());
|
|
847
|
+
};
|
|
848
|
+
let n = 0;
|
|
849
|
+
for (let t = e.parent; t; t = t.parent) n++;
|
|
850
|
+
t.requestUpdate(e.#r, n, void 0, () => e.#o());
|
|
851
|
+
}
|
|
852
|
+
#o() {
|
|
853
|
+
let e = /* @__PURE__ */ new Set();
|
|
854
|
+
return this.visit((t) => {
|
|
855
|
+
for (let n of t.dataDependencies) for (let t = n.parent; t; t = t.parent) t !== this && t.#r && e.add(t.#r);
|
|
856
|
+
}), e;
|
|
857
|
+
}
|
|
594
858
|
repropagate() {
|
|
595
859
|
if (this.parent) this.parent.repropagate();
|
|
596
860
|
else throw Error("Cannot repropagate data, no FlowNode with stored data found!");
|
|
597
861
|
}
|
|
598
862
|
_propagate(e) {}
|
|
599
863
|
};
|
|
600
|
-
function
|
|
864
|
+
function wt(e, t) {
|
|
601
865
|
if ("view" in e) return e.view;
|
|
602
866
|
if (t && "getPathString" in t) return t;
|
|
603
867
|
}
|
|
604
|
-
function
|
|
868
|
+
function Tt(e) {
|
|
605
869
|
let t = /* @__PURE__ */ new Set();
|
|
606
870
|
for (; e;) {
|
|
607
871
|
for (let n of e.domainSensitiveScaleChannels) t.add(n);
|
|
@@ -609,24 +873,145 @@ function ut(e) {
|
|
|
609
873
|
}
|
|
610
874
|
return t;
|
|
611
875
|
}
|
|
612
|
-
function
|
|
876
|
+
function Et(e) {
|
|
613
877
|
return e.type == "file";
|
|
614
878
|
}
|
|
615
|
-
function
|
|
879
|
+
function Dt(e) {
|
|
616
880
|
return e.type == "facet";
|
|
617
881
|
}
|
|
618
882
|
//#endregion
|
|
619
|
-
//#region ../core/src/
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
883
|
+
//#region ../core/src/ruler/rulerValue.js
|
|
884
|
+
function Ot(e = ["x"], t = {}) {
|
|
885
|
+
let n = {};
|
|
886
|
+
for (let r of e) n[r] = t[r] ?? null;
|
|
887
|
+
return {
|
|
888
|
+
type: "ruler",
|
|
889
|
+
values: n
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
//#endregion
|
|
893
|
+
//#region ../core/src/paramRuntime/paramUtils.js
|
|
894
|
+
function A(e) {
|
|
895
|
+
return typeof e == "object" && !!e && "expr" in e && x(e.expr);
|
|
896
|
+
}
|
|
897
|
+
function kt(e) {
|
|
898
|
+
if (A(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
|
|
899
|
+
return e;
|
|
900
|
+
}
|
|
901
|
+
function At(e) {
|
|
902
|
+
return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
|
|
903
|
+
}
|
|
904
|
+
function jt(e) {
|
|
905
|
+
return !("expr" in e || "bind" in e) && "select" in e;
|
|
906
|
+
}
|
|
907
|
+
function Mt(e) {
|
|
908
|
+
return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
|
|
909
|
+
}
|
|
910
|
+
function Nt(e) {
|
|
911
|
+
if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
|
|
912
|
+
return e;
|
|
913
|
+
}
|
|
914
|
+
function Pt(e, t, n) {
|
|
915
|
+
if ("select" in e) {
|
|
916
|
+
let t = Ei(e.select);
|
|
917
|
+
if (Di(t)) return t.toggle ? yi() : vi(null);
|
|
918
|
+
if (Oi(t)) {
|
|
919
|
+
if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
|
|
920
|
+
return bi(t.encodings);
|
|
921
|
+
}
|
|
922
|
+
throw Error("Unknown selection config for parameter \"" + e.name + "\".");
|
|
923
|
+
}
|
|
924
|
+
if ("ruler" in e) return Ot(e.ruler.encodings, e.value);
|
|
925
|
+
if ("expr" in e) {
|
|
926
|
+
let r = n ?? t?.createExpression(e.expr);
|
|
927
|
+
if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
|
|
928
|
+
return r(null);
|
|
929
|
+
}
|
|
930
|
+
return "value" in e ? e.value : null;
|
|
931
|
+
}
|
|
932
|
+
function Ft(e, t, n, r, i = {}) {
|
|
933
|
+
let a = { ...t }, o = /* @__PURE__ */ new Set(), s = !1, c = !1, l = i.batchMode ?? "microtask";
|
|
934
|
+
r?.(() => {
|
|
935
|
+
c = !0, o.clear(), s = !1;
|
|
936
|
+
});
|
|
937
|
+
let u = () => {
|
|
938
|
+
if (c) return;
|
|
939
|
+
if (!n || o.size === 0) {
|
|
940
|
+
s = !1;
|
|
941
|
+
return;
|
|
942
|
+
}
|
|
943
|
+
let e = new Set(o);
|
|
944
|
+
o.clear(), s = !1, n(e);
|
|
945
|
+
}, d = (t) => {
|
|
946
|
+
c || (o.add(t), s || (s = !0, queueMicrotask(() => {
|
|
947
|
+
c || (l == "whenPropagated" && e.whenPropagated ? e.whenPropagated().then(u).catch(() => {
|
|
948
|
+
u();
|
|
949
|
+
}) : u());
|
|
950
|
+
})));
|
|
951
|
+
};
|
|
952
|
+
for (let [i, o] of Object.entries(t)) if (A(o)) if (n) {
|
|
953
|
+
let t = () => d(i), n = e.watchExpression ? e.watchExpression(o.expr, t, {
|
|
954
|
+
scopeOwned: !r,
|
|
955
|
+
registerDisposer: r
|
|
956
|
+
}) : e.createExpression(o.expr);
|
|
957
|
+
if (!e.watchExpression) {
|
|
958
|
+
let e = n.subscribe(t);
|
|
959
|
+
r?.(e);
|
|
960
|
+
}
|
|
961
|
+
Object.defineProperty(a, i, {
|
|
962
|
+
enumerable: !0,
|
|
963
|
+
get() {
|
|
964
|
+
return n();
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
} else {
|
|
968
|
+
let t = e.createExpression(o.expr);
|
|
969
|
+
Object.defineProperty(a, i, {
|
|
970
|
+
enumerable: !0,
|
|
971
|
+
get() {
|
|
972
|
+
return t();
|
|
973
|
+
}
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
else a[i] = o;
|
|
977
|
+
return a;
|
|
978
|
+
}
|
|
979
|
+
function It(e, t, n, r) {
|
|
980
|
+
if (!A(t)) return t;
|
|
981
|
+
let i = () => {
|
|
982
|
+
throw Error(n);
|
|
983
|
+
}, a = e.watchExpression ? e.watchExpression(t.expr, i, {
|
|
984
|
+
scopeOwned: !1,
|
|
985
|
+
registerDisposer: r
|
|
986
|
+
}) : e.createExpression(t.expr);
|
|
987
|
+
if (!e.watchExpression) {
|
|
988
|
+
let e = a.subscribe(i);
|
|
989
|
+
r?.(e);
|
|
990
|
+
}
|
|
991
|
+
return a();
|
|
992
|
+
}
|
|
993
|
+
function Lt(e) {
|
|
994
|
+
return Object.assign(() => e, {
|
|
995
|
+
subscribe: () => () => void 0,
|
|
996
|
+
invalidate: () => void 0,
|
|
997
|
+
identifier: () => "constant",
|
|
998
|
+
fields: [],
|
|
999
|
+
globals: [],
|
|
1000
|
+
code: JSON.stringify(e)
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
//#endregion
|
|
1004
|
+
//#region ../core/src/data/transforms/transform.js
|
|
1005
|
+
var Rt = class extends Ct {
|
|
1006
|
+
#e;
|
|
1007
|
+
constructor(e, t) {
|
|
1008
|
+
super(t), this.#e = e.type;
|
|
1009
|
+
}
|
|
1010
|
+
get label() {
|
|
1011
|
+
return this.#e;
|
|
1012
|
+
}
|
|
628
1013
|
watchExprRef(e, t) {
|
|
629
|
-
if (
|
|
1014
|
+
if (A(e)) {
|
|
630
1015
|
let n = e;
|
|
631
1016
|
return this.paramRuntime.watchExpression(n.expr, t, {
|
|
632
1017
|
scopeOwned: !1,
|
|
@@ -635,7 +1020,7 @@ var pt = class extends ct {
|
|
|
635
1020
|
}
|
|
636
1021
|
return (() => e);
|
|
637
1022
|
}
|
|
638
|
-
},
|
|
1023
|
+
}, j = "__uniqueId", zt = 1e4, Bt = [null], Vt = class extends Rt {
|
|
639
1024
|
get behavior() {
|
|
640
1025
|
return 2;
|
|
641
1026
|
}
|
|
@@ -647,406 +1032,176 @@ var pt = class extends ct {
|
|
|
647
1032
|
super.reset(), this._usedBlocks = 0, this._id = -1;
|
|
648
1033
|
}
|
|
649
1034
|
handle(e) {
|
|
650
|
-
e[
|
|
1035
|
+
e[j] = this.#e(), this._propagate(e);
|
|
651
1036
|
}
|
|
652
1037
|
#e() {
|
|
653
|
-
return ++this._id % 1e4 == 0 && (this._id = this.#t() *
|
|
1038
|
+
return ++this._id % 1e4 == 0 && (this._id = this.#t() * zt), this._id;
|
|
654
1039
|
}
|
|
655
1040
|
#t() {
|
|
656
1041
|
return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
|
|
657
1042
|
}
|
|
658
1043
|
#n() {
|
|
659
|
-
let e =
|
|
660
|
-
return
|
|
1044
|
+
let e = Bt.length;
|
|
1045
|
+
return Bt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
|
|
661
1046
|
}
|
|
662
1047
|
};
|
|
663
1048
|
//#endregion
|
|
664
1049
|
//#region ../core/src/utils/field.js
|
|
665
|
-
function
|
|
666
|
-
return /^[A-Za-z0-9_]+$/.test(
|
|
1050
|
+
function Ht(t, n = t) {
|
|
1051
|
+
return /^[A-Za-z0-9_]+$/.test(t) ? e(Function("validator", `
|
|
667
1052
|
let validated = !validator;
|
|
668
1053
|
return function accessField(datum) {
|
|
669
1054
|
if (!validated) {
|
|
670
1055
|
validator(datum);
|
|
671
1056
|
validated = true;
|
|
672
1057
|
}
|
|
673
|
-
return datum[${JSON.stringify(
|
|
674
|
-
}`)(function(
|
|
675
|
-
|
|
676
|
-
}), [
|
|
1058
|
+
return datum[${JSON.stringify(t)}];
|
|
1059
|
+
}`)(function(e) {
|
|
1060
|
+
t in e || Ut(e, t);
|
|
1061
|
+
}), [t], n) : c(t);
|
|
677
1062
|
}
|
|
678
|
-
function
|
|
1063
|
+
function Ut(e, t) {
|
|
679
1064
|
throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
|
|
680
1065
|
}
|
|
681
1066
|
//#endregion
|
|
682
|
-
//#region
|
|
683
|
-
function
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = St(t), r.scaleChannel = ((Lt(t) && t.resolutionChannel) ?? (cn(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Ct({
|
|
688
|
-
scaleChannel: r.scaleChannel,
|
|
689
|
-
source: xt(t)
|
|
690
|
-
}).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
|
|
691
|
-
}
|
|
692
|
-
function i(e) {
|
|
693
|
-
if ($(e)) {
|
|
694
|
-
let t = r(n.createExpression(e.expr));
|
|
695
|
-
if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
|
|
696
|
-
return t;
|
|
697
|
-
} else {
|
|
698
|
-
let t = e;
|
|
699
|
-
return r(() => t);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
if (D(t)) try {
|
|
703
|
-
return r(_t(t.field));
|
|
704
|
-
} catch (e) {
|
|
705
|
-
throw Error(`Invalid field definition: ${e.message}`, { cause: e });
|
|
706
|
-
}
|
|
707
|
-
else if (Ht(t)) return r(n.createExpression(t.expr));
|
|
708
|
-
else if (It(t)) return i(t.datum);
|
|
709
|
-
else if (Ft(t)) return i(t.value);
|
|
710
|
-
else throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
|
|
711
|
-
}
|
|
712
|
-
function bt(e) {
|
|
713
|
-
return e.scaleChannel !== void 0;
|
|
714
|
-
}
|
|
715
|
-
function xt(e) {
|
|
716
|
-
if (D(e)) return {
|
|
717
|
-
kind: "field",
|
|
718
|
-
value: e.field
|
|
719
|
-
};
|
|
720
|
-
if (Ht(e)) return {
|
|
721
|
-
kind: "expr",
|
|
722
|
-
value: e.expr
|
|
723
|
-
};
|
|
724
|
-
if (It(e)) return {
|
|
725
|
-
kind: "datum",
|
|
726
|
-
value: e.datum
|
|
727
|
-
};
|
|
728
|
-
if (Ft(e)) return {
|
|
729
|
-
kind: "value",
|
|
730
|
-
value: e.value
|
|
731
|
-
};
|
|
732
|
-
throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
|
|
733
|
-
}
|
|
734
|
-
function St(e) {
|
|
735
|
-
let t = xt(e);
|
|
736
|
-
return t.kind === "datum" || t.kind === "value" ? "constant|" + Et(t.value) : t.kind + "|" + Tt(t);
|
|
737
|
-
}
|
|
738
|
-
function Ct({ scaleChannel: e, source: t, type: n }) {
|
|
739
|
-
if (!e) throw Error("Cannot build a domain key without a scale channel.");
|
|
740
|
-
let r = e + "|" + t.kind + "|" + Tt(t);
|
|
741
|
-
return {
|
|
742
|
-
domainKeyBase: r,
|
|
743
|
-
domainKey: n ? n + "|" + r : void 0
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
function wt(e, t) {
|
|
747
|
-
let { domainKey: n, domainKeyBase: r } = Ct({
|
|
748
|
-
scaleChannel: e.scaleChannel,
|
|
749
|
-
source: xt(e.channelDef),
|
|
750
|
-
type: t
|
|
1067
|
+
//#region ../../node_modules/vega-util/build/accessor.js
|
|
1068
|
+
function M(e, t, n) {
|
|
1069
|
+
return Object.assign(e, {
|
|
1070
|
+
fields: t || [],
|
|
1071
|
+
fname: n
|
|
751
1072
|
});
|
|
752
|
-
if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
|
|
753
|
-
return e.domainKeyBase = r, e.domainKey = n, n;
|
|
754
|
-
}
|
|
755
|
-
function Tt(e) {
|
|
756
|
-
switch (e.kind) {
|
|
757
|
-
case "field":
|
|
758
|
-
case "expr": return e.value;
|
|
759
|
-
case "datum":
|
|
760
|
-
case "value": return Et(e.value);
|
|
761
|
-
default: throw Error("Unknown domain key source.");
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
function Et(e) {
|
|
765
|
-
return $(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
|
|
766
1073
|
}
|
|
767
1074
|
//#endregion
|
|
768
|
-
//#region
|
|
769
|
-
function Dt(e, t, n, r) {
|
|
770
|
-
let i, a = Vi(!1), o = () => {
|
|
771
|
-
if (i) return i;
|
|
772
|
-
let o = n.findValue(e);
|
|
773
|
-
if (!o) return a;
|
|
774
|
-
let s = {};
|
|
775
|
-
if (wi(o)) {
|
|
776
|
-
let n = Object.keys(o.intervals);
|
|
777
|
-
for (let r of n) {
|
|
778
|
-
let n = t[r];
|
|
779
|
-
if (D(n)) {
|
|
780
|
-
s[r] = n.field;
|
|
781
|
-
continue;
|
|
782
|
-
} else if (n && "condition" in n) {
|
|
783
|
-
let e = n.condition;
|
|
784
|
-
if (D(e)) {
|
|
785
|
-
s[r] = e.field;
|
|
786
|
-
continue;
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
throw Error(`Selection "${e}" has an interval for "${r}" channel, but could not find a fieldDef: ${JSON.stringify(t[r])}`);
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
let c = Ci({
|
|
793
|
-
type: "filter",
|
|
794
|
-
param: e,
|
|
795
|
-
fields: s,
|
|
796
|
-
empty: r
|
|
797
|
-
}, o);
|
|
798
|
-
return i = n.createExpression(c), i;
|
|
799
|
-
};
|
|
800
|
-
return Object.assign((e) => o()(e), {
|
|
801
|
-
param: e,
|
|
802
|
-
empty: r ?? !0
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
function Ot(e, t, n, r) {
|
|
806
|
-
let i = Ut(t) || Wt(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], a = [...i, t], o = a.map((t, o) => {
|
|
807
|
-
let s = i[o];
|
|
808
|
-
return {
|
|
809
|
-
accessor: yt(e, t, r),
|
|
810
|
-
predicate: s?.param ? Dt(s.param, n, r, s.empty) : Object.assign(Vi(o === a.length - 1), { empty: !1 })
|
|
811
|
-
};
|
|
812
|
-
});
|
|
813
|
-
if (o.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
|
|
814
|
-
return o;
|
|
815
|
-
}
|
|
816
|
-
function kt(e, t) {
|
|
817
|
-
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale();
|
|
818
|
-
for (let [i, a] of Object.entries(t)) {
|
|
819
|
-
if (!a) continue;
|
|
820
|
-
let o = i;
|
|
821
|
-
At(o) || (n[o] = Nt(Ot(o, a, t, e.paramRuntime), r));
|
|
822
|
-
}
|
|
823
|
-
return n;
|
|
824
|
-
}
|
|
825
|
-
function At(e) {
|
|
826
|
-
return e === "key" || e === "search" || e === "tooltip";
|
|
827
|
-
}
|
|
828
|
-
function jt(e) {
|
|
829
|
-
return e.branches.map((e) => e.accessor);
|
|
830
|
-
}
|
|
831
|
-
function Mt(e) {
|
|
832
|
-
return e.branches.find((e) => !e.accessor.constant)?.accessor;
|
|
833
|
-
}
|
|
834
|
-
function Nt(e, t) {
|
|
835
|
-
if (e.length === 1) {
|
|
836
|
-
let n = Pt(e[0].accessor, t);
|
|
837
|
-
return Object.assign(n, { branches: e });
|
|
838
|
-
}
|
|
839
|
-
let n = e.map((e) => e.predicate), r = e.map((e) => Pt(e.accessor, t));
|
|
840
|
-
return Object.assign((e) => {
|
|
841
|
-
for (let t = 0; t < r.length; t++) if (n[t](e)) return r[t](e);
|
|
842
|
-
}, {
|
|
843
|
-
constant: !1,
|
|
844
|
-
branches: e,
|
|
845
|
-
scale: r.map((e) => e.scale).find((e) => e),
|
|
846
|
-
channelDef: e.at(-1).accessor.channelDef
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
function Pt(e, t) {
|
|
850
|
-
let { channel: n, scaleChannel: r, channelDef: i } = e, a = e.scaleChannel ? t(r) : void 0;
|
|
851
|
-
if (r && !a) throw Error(`Missing scale! "${n}": ${JSON.stringify(i)}`);
|
|
852
|
-
return Object.assign(a ? (t) => a(e(t)) : (t) => e(t), {
|
|
853
|
-
scale: a,
|
|
854
|
-
constant: e.constant,
|
|
855
|
-
branches: [{
|
|
856
|
-
accessor: e,
|
|
857
|
-
predicate: Vi(!0)
|
|
858
|
-
}],
|
|
859
|
-
channelDef: i
|
|
860
|
-
});
|
|
861
|
-
}
|
|
862
|
-
function Ft(e) {
|
|
863
|
-
return e && "value" in e;
|
|
864
|
-
}
|
|
865
|
-
function D(e) {
|
|
866
|
-
return e && "field" in e;
|
|
867
|
-
}
|
|
868
|
-
function It(e) {
|
|
869
|
-
return e && "datum" in e;
|
|
870
|
-
}
|
|
871
|
-
function Lt(e) {
|
|
872
|
-
return D(e) || It(e) || Ht(e) || Vt(e);
|
|
873
|
-
}
|
|
874
|
-
function Rt(e) {
|
|
875
|
-
if (Wt(e)) {
|
|
876
|
-
let t = e.condition;
|
|
877
|
-
return (Array.isArray(t) ? t : [t]).find((e) => Lt(e));
|
|
878
|
-
} else if (Lt(e)) return e;
|
|
879
|
-
}
|
|
880
|
-
function zt(e) {
|
|
881
|
-
let t = e && Rt(e);
|
|
882
|
-
return t != null && t.type != "quantitative" && t.scale !== null;
|
|
883
|
-
}
|
|
884
|
-
function Bt(e, t) {
|
|
885
|
-
let n = e.mark.encoding[t];
|
|
886
|
-
if (Array.isArray(n)) throw Error("Not a channel def with scale!");
|
|
887
|
-
{
|
|
888
|
-
let e = Rt(n);
|
|
889
|
-
if (e) return e;
|
|
890
|
-
}
|
|
891
|
-
throw Error("Not a channel def with scale!");
|
|
892
|
-
}
|
|
893
|
-
function Vt(e) {
|
|
894
|
-
return e && "chrom" in e;
|
|
895
|
-
}
|
|
896
|
-
function Ht(e) {
|
|
897
|
-
return e && "expr" in e;
|
|
898
|
-
}
|
|
899
|
-
function Ut(e) {
|
|
900
|
-
return (D(e) || It(e)) && "condition" in e;
|
|
901
|
-
}
|
|
1075
|
+
//#region ../../node_modules/vega-util/build/getter.js
|
|
902
1076
|
function Wt(e) {
|
|
903
|
-
return
|
|
1077
|
+
return e.length === 1 ? Gt(e[0]) : Kt(e);
|
|
904
1078
|
}
|
|
905
|
-
var Gt =
|
|
906
|
-
|
|
907
|
-
|
|
1079
|
+
var Gt = (e) => function(t) {
|
|
1080
|
+
return t[e];
|
|
1081
|
+
}, Kt = (e) => {
|
|
1082
|
+
let t = e.length;
|
|
1083
|
+
return function(n) {
|
|
1084
|
+
for (let r = 0; r < t; ++r) n = n[e[r]];
|
|
1085
|
+
return n;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
//#endregion
|
|
1089
|
+
//#region ../../node_modules/vega-util/build/error.js
|
|
1090
|
+
function N(e) {
|
|
1091
|
+
throw Error(e);
|
|
908
1092
|
}
|
|
909
|
-
|
|
910
|
-
|
|
1093
|
+
//#endregion
|
|
1094
|
+
//#region ../../node_modules/vega-util/build/splitAccessPath.js
|
|
1095
|
+
function qt(e) {
|
|
1096
|
+
let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
|
|
1097
|
+
e += "";
|
|
1098
|
+
function l() {
|
|
1099
|
+
t.push(a + e.substring(o, s)), a = "", o = s + 1;
|
|
1100
|
+
}
|
|
1101
|
+
for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
|
|
1102
|
+
else if (c === r) l(), r = null, i = -1;
|
|
1103
|
+
else if (r) continue;
|
|
1104
|
+
else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i || N("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
|
|
1105
|
+
return i && N("Access path missing closing bracket: " + e), r && N("Access path missing closing quote: " + e), s > o && (s++, l()), t;
|
|
911
1106
|
}
|
|
912
|
-
|
|
913
|
-
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region ../../node_modules/vega-util/build/field.js
|
|
1109
|
+
function Jt(e, t, n) {
|
|
1110
|
+
let r = qt(e), i = r.length === 1 ? r[0] : e;
|
|
1111
|
+
return M((n && n.get || Wt)(r), [i], t || i);
|
|
914
1112
|
}
|
|
1113
|
+
Jt("id");
|
|
1114
|
+
var Yt = M((e) => e, [], "identity");
|
|
1115
|
+
M(() => 0, [], "zero"), M(() => 1, [], "one"), M(() => !0, [], "true"), M(() => !1, [], "false");
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region ../../node_modules/vega-util/build/interpreter.js
|
|
1118
|
+
var Xt = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), Zt = Array.isArray;
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region ../../node_modules/vega-util/build/isObject.js
|
|
915
1121
|
function Qt(e) {
|
|
916
|
-
return
|
|
917
|
-
}
|
|
918
|
-
function $t(e, t, n) {
|
|
919
|
-
return t ?? (n ? 0 : e);
|
|
920
|
-
}
|
|
921
|
-
var en = {
|
|
922
|
-
x: "x2",
|
|
923
|
-
y: "y2"
|
|
924
|
-
}, tn = Object.fromEntries(Object.entries(en).map((e) => [e[1], e[0]]));
|
|
925
|
-
function nn(e) {
|
|
926
|
-
return e in tn;
|
|
927
|
-
}
|
|
928
|
-
function rn(e) {
|
|
929
|
-
let t = en[e];
|
|
930
|
-
if (t) return t;
|
|
931
|
-
throw Error(`${e} has no secondary channel!`);
|
|
1122
|
+
return e === Object(e);
|
|
932
1123
|
}
|
|
933
|
-
|
|
934
|
-
|
|
1124
|
+
//#endregion
|
|
1125
|
+
//#region ../../node_modules/vega-util/build/array.js
|
|
1126
|
+
function $t(e) {
|
|
1127
|
+
return e == null ? [] : Zt(e) ? e : [e];
|
|
935
1128
|
}
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
"stroke"
|
|
941
|
-
].includes(an(e));
|
|
1129
|
+
//#endregion
|
|
1130
|
+
//#region ../../node_modules/vega-util/build/isFunction.js
|
|
1131
|
+
function en(e) {
|
|
1132
|
+
return typeof e == "function";
|
|
942
1133
|
}
|
|
943
|
-
|
|
944
|
-
|
|
1134
|
+
//#endregion
|
|
1135
|
+
//#region ../../node_modules/vega-util/build/hasOwnProperty.js
|
|
1136
|
+
function tn(e, t) {
|
|
1137
|
+
return Object.hasOwn(e, t);
|
|
945
1138
|
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
"x2",
|
|
951
|
-
"y2",
|
|
952
|
-
"xOffset",
|
|
953
|
-
"yOffset",
|
|
954
|
-
"color",
|
|
955
|
-
"fill",
|
|
956
|
-
"stroke",
|
|
957
|
-
"opacity",
|
|
958
|
-
"fillOpacity",
|
|
959
|
-
"strokeOpacity",
|
|
960
|
-
"strokeWidth",
|
|
961
|
-
"size",
|
|
962
|
-
"shape",
|
|
963
|
-
"direction",
|
|
964
|
-
"angle",
|
|
965
|
-
"dx",
|
|
966
|
-
"dy",
|
|
967
|
-
"sample"
|
|
968
|
-
].includes(e);
|
|
1139
|
+
//#endregion
|
|
1140
|
+
//#region ../../node_modules/vega-util/build/isString.js
|
|
1141
|
+
function nn(e) {
|
|
1142
|
+
return typeof e == "string";
|
|
969
1143
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
"square",
|
|
975
|
-
"cross",
|
|
976
|
-
"diamond",
|
|
977
|
-
"triangle-up",
|
|
978
|
-
"triangle-right",
|
|
979
|
-
"triangle-down",
|
|
980
|
-
"triangle-left",
|
|
981
|
-
"tick-up",
|
|
982
|
-
"tick-right",
|
|
983
|
-
"tick-down",
|
|
984
|
-
"tick-left",
|
|
985
|
-
"x",
|
|
986
|
-
"+"
|
|
987
|
-
];
|
|
988
|
-
case "direction": return ["forward", "reverse"];
|
|
989
|
-
default:
|
|
990
|
-
}
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region ../../node_modules/vega-util/build/stringValue.js
|
|
1146
|
+
function rn(e) {
|
|
1147
|
+
return Zt(e) ? `[${e.map((e) => e === null ? "null" : rn(e))}]` : Qt(e) || nn(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
991
1148
|
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
throw Error(`Invalid value for "${e}" channel: ${n}`);
|
|
999
|
-
};
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region ../../node_modules/vega-util/build/toSet.js
|
|
1151
|
+
function an(e) {
|
|
1152
|
+
let t = {}, n = e.length;
|
|
1153
|
+
for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
|
|
1154
|
+
return t;
|
|
1000
1155
|
}
|
|
1001
1156
|
//#endregion
|
|
1002
1157
|
//#region ../../node_modules/vega-expression/build/vega-expression.js
|
|
1003
|
-
var
|
|
1004
|
-
function
|
|
1158
|
+
var on = "RawCode", sn = "Literal", cn = "Property", ln = "Identifier", un = "ArrayExpression", dn = "BinaryExpression", fn = "CallExpression", pn = "ConditionalExpression", mn = "LogicalExpression", hn = "MemberExpression", gn = "ObjectExpression", _n = "UnaryExpression";
|
|
1159
|
+
function P(e) {
|
|
1005
1160
|
this.type = e;
|
|
1006
1161
|
}
|
|
1007
|
-
|
|
1162
|
+
P.prototype.visit = function(e) {
|
|
1008
1163
|
let t, n, r;
|
|
1009
1164
|
if (e(this)) return 1;
|
|
1010
|
-
for (t =
|
|
1165
|
+
for (t = vn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
|
|
1011
1166
|
};
|
|
1012
|
-
function
|
|
1167
|
+
function vn(e) {
|
|
1013
1168
|
switch (e.type) {
|
|
1014
|
-
case
|
|
1015
|
-
case
|
|
1016
|
-
case
|
|
1017
|
-
case
|
|
1018
|
-
case
|
|
1169
|
+
case un: return e.elements;
|
|
1170
|
+
case dn:
|
|
1171
|
+
case mn: return [e.left, e.right];
|
|
1172
|
+
case fn: return [e.callee].concat(e.arguments);
|
|
1173
|
+
case pn: return [
|
|
1019
1174
|
e.test,
|
|
1020
1175
|
e.consequent,
|
|
1021
1176
|
e.alternate
|
|
1022
1177
|
];
|
|
1023
|
-
case
|
|
1024
|
-
case
|
|
1025
|
-
case
|
|
1026
|
-
case
|
|
1027
|
-
case
|
|
1028
|
-
case
|
|
1029
|
-
case
|
|
1178
|
+
case hn: return [e.object, e.property];
|
|
1179
|
+
case gn: return e.properties;
|
|
1180
|
+
case cn: return [e.key, e.value];
|
|
1181
|
+
case _n: return [e.argument];
|
|
1182
|
+
case ln:
|
|
1183
|
+
case sn:
|
|
1184
|
+
case on:
|
|
1030
1185
|
default: return [];
|
|
1031
1186
|
}
|
|
1032
1187
|
}
|
|
1033
|
-
var
|
|
1034
|
-
|
|
1035
|
-
var Dn = "ArrayExpression", On = "BinaryExpression", kn = "CallExpression", An = "ConditionalExpression", jn = "Identifier", Mn = "Literal", Nn = "LogicalExpression", Pn = "MemberExpression", Fn = "ObjectExpression", In = "Property", Ln = "UnaryExpression", B = "Unexpected token %0", Rn = "Unexpected number", zn = "Unexpected string", Bn = "Unexpected identifier", Vn = "Unexpected reserved word", Hn = "Unexpected end of input", Un = "Invalid regular expression", Wn = "Invalid regular expression: missing /", Gn = "Octal literals are not allowed in strict mode.", Kn = "Duplicate data property in object literal not allowed in strict mode", V = "ILLEGAL", H = "Disabled.", qn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), Jn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
1036
|
-
function
|
|
1188
|
+
var F, I, L, R, z, yn = 1, bn = 2, B = 3, V = 4, xn = 5, H = 6, U = 7, Sn = 8, Cn = 9;
|
|
1189
|
+
F = {}, F[yn] = "Boolean", F[bn] = "<end>", F[B] = "Identifier", F[V] = "Keyword", F[xn] = "Null", F[H] = "Numeric", F[U] = "Punctuator", F[Sn] = "String", F[Cn] = "RegularExpression";
|
|
1190
|
+
var wn = "ArrayExpression", Tn = "BinaryExpression", En = "CallExpression", Dn = "ConditionalExpression", On = "Identifier", kn = "Literal", An = "LogicalExpression", jn = "MemberExpression", Mn = "ObjectExpression", Nn = "Property", Pn = "UnaryExpression", W = "Unexpected token %0", Fn = "Unexpected number", In = "Unexpected string", Ln = "Unexpected identifier", Rn = "Unexpected reserved word", zn = "Unexpected end of input", Bn = "Invalid regular expression", Vn = "Invalid regular expression: missing /", Hn = "Octal literals are not allowed in strict mode.", Un = "Duplicate data property in object literal not allowed in strict mode", G = "ILLEGAL", K = "Disabled.", Wn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), Gn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
1191
|
+
function Kn(e, t) {
|
|
1037
1192
|
/* istanbul ignore next */
|
|
1038
1193
|
if (!e) throw Error("ASSERT: " + t);
|
|
1039
1194
|
}
|
|
1040
|
-
function
|
|
1195
|
+
function q(e) {
|
|
1041
1196
|
return e >= 48 && e <= 57;
|
|
1042
1197
|
}
|
|
1043
|
-
function
|
|
1198
|
+
function qn(e) {
|
|
1044
1199
|
return "0123456789abcdefABCDEF".includes(e);
|
|
1045
1200
|
}
|
|
1046
|
-
function
|
|
1201
|
+
function Jn(e) {
|
|
1047
1202
|
return "01234567".includes(e);
|
|
1048
1203
|
}
|
|
1049
|
-
function
|
|
1204
|
+
function Yn(e) {
|
|
1050
1205
|
return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
|
|
1051
1206
|
5760,
|
|
1052
1207
|
6158,
|
|
@@ -1067,14 +1222,14 @@ function Zn(e) {
|
|
|
1067
1222
|
65279
|
|
1068
1223
|
].includes(e);
|
|
1069
1224
|
}
|
|
1070
|
-
function
|
|
1225
|
+
function Xn(e) {
|
|
1071
1226
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
1072
1227
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 &&
|
|
1228
|
+
function Zn(e) {
|
|
1229
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && Wn.test(String.fromCharCode(e));
|
|
1075
1230
|
}
|
|
1076
1231
|
function Qn(e) {
|
|
1077
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 &&
|
|
1232
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && Gn.test(String.fromCharCode(e));
|
|
1078
1233
|
}
|
|
1079
1234
|
var $n = {
|
|
1080
1235
|
if: 1,
|
|
@@ -1121,46 +1276,46 @@ var $n = {
|
|
|
1121
1276
|
implements: 1
|
|
1122
1277
|
};
|
|
1123
1278
|
function er() {
|
|
1124
|
-
for (;
|
|
1125
|
-
let e =
|
|
1126
|
-
if (
|
|
1279
|
+
for (; L < R;) {
|
|
1280
|
+
let e = I.charCodeAt(L);
|
|
1281
|
+
if (Yn(e) || Xn(e)) ++L;
|
|
1127
1282
|
else break;
|
|
1128
1283
|
}
|
|
1129
1284
|
}
|
|
1130
1285
|
function tr(e) {
|
|
1131
1286
|
var t, n, r, i = 0;
|
|
1132
|
-
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t)
|
|
1287
|
+
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) L < R && qn(I[L]) ? (r = I[L++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : Y({}, W, G);
|
|
1133
1288
|
return String.fromCharCode(i);
|
|
1134
1289
|
}
|
|
1135
1290
|
function nr() {
|
|
1136
|
-
var e =
|
|
1137
|
-
for (e === "}" && Y({},
|
|
1138
|
-
return (t > 1114111 || e !== "}") && Y({},
|
|
1291
|
+
var e = I[L], t = 0, n, r;
|
|
1292
|
+
for (e === "}" && Y({}, W, G); L < R && (e = I[L++], qn(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
1293
|
+
return (t > 1114111 || e !== "}") && Y({}, W, G), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
1139
1294
|
}
|
|
1140
1295
|
function rr() {
|
|
1141
|
-
var e =
|
|
1142
|
-
for (e === 92 && (
|
|
1296
|
+
var e = I.charCodeAt(L++), t = String.fromCharCode(e);
|
|
1297
|
+
for (e === 92 && (I.charCodeAt(L) !== 117 && Y({}, W, G), ++L, e = tr("u"), (!e || e === "\\" || !Zn(e.charCodeAt(0))) && Y({}, W, G), t = e); L < R && (e = I.charCodeAt(L), Qn(e));) ++L, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), I.charCodeAt(L) !== 117 && Y({}, W, G), ++L, e = tr("u"), (!e || e === "\\" || !Qn(e.charCodeAt(0))) && Y({}, W, G), t += e);
|
|
1143
1298
|
return t;
|
|
1144
1299
|
}
|
|
1145
1300
|
function ir() {
|
|
1146
|
-
for (var e =
|
|
1147
|
-
if (t =
|
|
1148
|
-
if (Qn(t)) ++
|
|
1301
|
+
for (var e = L++, t; L < R;) {
|
|
1302
|
+
if (t = I.charCodeAt(L), t === 92) return L = e, rr();
|
|
1303
|
+
if (Qn(t)) ++L;
|
|
1149
1304
|
else break;
|
|
1150
1305
|
}
|
|
1151
|
-
return
|
|
1306
|
+
return I.slice(e, L);
|
|
1152
1307
|
}
|
|
1153
1308
|
function ar() {
|
|
1154
|
-
var e =
|
|
1309
|
+
var e = L, t = I.charCodeAt(L) === 92 ? rr() : ir();
|
|
1155
1310
|
return {
|
|
1156
|
-
type: t.length === 1 ?
|
|
1311
|
+
type: t.length === 1 ? B : $n.hasOwnProperty(t) ? V : t === "null" ? xn : t === "true" || t === "false" ? yn : B,
|
|
1157
1312
|
value: t,
|
|
1158
1313
|
start: e,
|
|
1159
|
-
end:
|
|
1314
|
+
end: L
|
|
1160
1315
|
};
|
|
1161
1316
|
}
|
|
1162
1317
|
function or() {
|
|
1163
|
-
var e =
|
|
1318
|
+
var e = L, t = I.charCodeAt(L), n, r = I[L], i, a, o;
|
|
1164
1319
|
switch (t) {
|
|
1165
1320
|
case 46:
|
|
1166
1321
|
case 40:
|
|
@@ -1173,13 +1328,13 @@ function or() {
|
|
|
1173
1328
|
case 93:
|
|
1174
1329
|
case 58:
|
|
1175
1330
|
case 63:
|
|
1176
|
-
case 126: return ++
|
|
1177
|
-
type:
|
|
1331
|
+
case 126: return ++L, {
|
|
1332
|
+
type: U,
|
|
1178
1333
|
value: String.fromCharCode(t),
|
|
1179
1334
|
start: e,
|
|
1180
|
-
end:
|
|
1335
|
+
end: L
|
|
1181
1336
|
};
|
|
1182
|
-
default: if (n =
|
|
1337
|
+
default: if (n = I.charCodeAt(L + 1), n === 61) switch (t) {
|
|
1183
1338
|
case 43:
|
|
1184
1339
|
case 45:
|
|
1185
1340
|
case 47:
|
|
@@ -1189,101 +1344,101 @@ function or() {
|
|
|
1189
1344
|
case 124:
|
|
1190
1345
|
case 37:
|
|
1191
1346
|
case 38:
|
|
1192
|
-
case 42: return
|
|
1193
|
-
type:
|
|
1347
|
+
case 42: return L += 2, {
|
|
1348
|
+
type: U,
|
|
1194
1349
|
value: String.fromCharCode(t) + String.fromCharCode(n),
|
|
1195
1350
|
start: e,
|
|
1196
|
-
end:
|
|
1351
|
+
end: L
|
|
1197
1352
|
};
|
|
1198
1353
|
case 33:
|
|
1199
|
-
case 61: return
|
|
1200
|
-
type:
|
|
1201
|
-
value:
|
|
1354
|
+
case 61: return L += 2, I.charCodeAt(L) === 61 && ++L, {
|
|
1355
|
+
type: U,
|
|
1356
|
+
value: I.slice(e, L),
|
|
1202
1357
|
start: e,
|
|
1203
|
-
end:
|
|
1358
|
+
end: L
|
|
1204
1359
|
};
|
|
1205
1360
|
}
|
|
1206
1361
|
}
|
|
1207
|
-
if (o =
|
|
1208
|
-
type:
|
|
1362
|
+
if (o = I.substr(L, 4), o === ">>>=") return L += 4, {
|
|
1363
|
+
type: U,
|
|
1209
1364
|
value: o,
|
|
1210
1365
|
start: e,
|
|
1211
|
-
end:
|
|
1366
|
+
end: L
|
|
1212
1367
|
};
|
|
1213
|
-
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return
|
|
1214
|
-
type:
|
|
1368
|
+
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return L += 3, {
|
|
1369
|
+
type: U,
|
|
1215
1370
|
value: a,
|
|
1216
1371
|
start: e,
|
|
1217
|
-
end:
|
|
1372
|
+
end: L
|
|
1218
1373
|
};
|
|
1219
|
-
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return
|
|
1220
|
-
type:
|
|
1374
|
+
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return L += 2, {
|
|
1375
|
+
type: U,
|
|
1221
1376
|
value: i,
|
|
1222
1377
|
start: e,
|
|
1223
|
-
end:
|
|
1378
|
+
end: L
|
|
1224
1379
|
};
|
|
1225
|
-
if (i === "//" && Y({},
|
|
1226
|
-
type:
|
|
1380
|
+
if (i === "//" && Y({}, W, G), "<>=!+-*%&|^/".includes(r)) return ++L, {
|
|
1381
|
+
type: U,
|
|
1227
1382
|
value: r,
|
|
1228
1383
|
start: e,
|
|
1229
|
-
end:
|
|
1384
|
+
end: L
|
|
1230
1385
|
};
|
|
1231
|
-
Y({},
|
|
1386
|
+
Y({}, W, G);
|
|
1232
1387
|
}
|
|
1233
1388
|
function sr(e) {
|
|
1234
1389
|
let t = "";
|
|
1235
|
-
for (;
|
|
1236
|
-
return t.length === 0 && Y({},
|
|
1237
|
-
type:
|
|
1390
|
+
for (; L < R && qn(I[L]);) t += I[L++];
|
|
1391
|
+
return t.length === 0 && Y({}, W, G), Zn(I.charCodeAt(L)) && Y({}, W, G), {
|
|
1392
|
+
type: H,
|
|
1238
1393
|
value: parseInt("0x" + t, 16),
|
|
1239
1394
|
start: e,
|
|
1240
|
-
end:
|
|
1395
|
+
end: L
|
|
1241
1396
|
};
|
|
1242
1397
|
}
|
|
1243
1398
|
function cr(e) {
|
|
1244
|
-
let t = "0" +
|
|
1245
|
-
for (;
|
|
1246
|
-
return (
|
|
1247
|
-
type:
|
|
1399
|
+
let t = "0" + I[L++];
|
|
1400
|
+
for (; L < R && Jn(I[L]);) t += I[L++];
|
|
1401
|
+
return (Zn(I.charCodeAt(L)) || q(I.charCodeAt(L))) && Y({}, W, G), {
|
|
1402
|
+
type: H,
|
|
1248
1403
|
value: parseInt(t, 8),
|
|
1249
1404
|
octal: !0,
|
|
1250
1405
|
start: e,
|
|
1251
|
-
end:
|
|
1406
|
+
end: L
|
|
1252
1407
|
};
|
|
1253
1408
|
}
|
|
1254
1409
|
function lr() {
|
|
1255
|
-
var e, t, n =
|
|
1256
|
-
if (
|
|
1257
|
-
if (e =
|
|
1258
|
-
if (n === "x" || n === "X") return ++
|
|
1259
|
-
if (
|
|
1260
|
-
n &&
|
|
1410
|
+
var e, t, n = I[L];
|
|
1411
|
+
if (Kn(q(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = L, e = "", n !== ".") {
|
|
1412
|
+
if (e = I[L++], n = I[L], e === "0") {
|
|
1413
|
+
if (n === "x" || n === "X") return ++L, sr(t);
|
|
1414
|
+
if (Jn(n)) return cr(t);
|
|
1415
|
+
n && q(n.charCodeAt(0)) && Y({}, W, G);
|
|
1261
1416
|
}
|
|
1262
|
-
for (;
|
|
1263
|
-
n =
|
|
1417
|
+
for (; q(I.charCodeAt(L));) e += I[L++];
|
|
1418
|
+
n = I[L];
|
|
1264
1419
|
}
|
|
1265
1420
|
if (n === ".") {
|
|
1266
|
-
for (e +=
|
|
1267
|
-
n =
|
|
1421
|
+
for (e += I[L++]; q(I.charCodeAt(L));) e += I[L++];
|
|
1422
|
+
n = I[L];
|
|
1268
1423
|
}
|
|
1269
|
-
if (n === "e" || n === "E") if (e +=
|
|
1270
|
-
else Y({},
|
|
1271
|
-
return
|
|
1272
|
-
type:
|
|
1424
|
+
if (n === "e" || n === "E") if (e += I[L++], n = I[L], (n === "+" || n === "-") && (e += I[L++]), q(I.charCodeAt(L))) for (; q(I.charCodeAt(L));) e += I[L++];
|
|
1425
|
+
else Y({}, W, G);
|
|
1426
|
+
return Zn(I.charCodeAt(L)) && Y({}, W, G), {
|
|
1427
|
+
type: H,
|
|
1273
1428
|
value: parseFloat(e),
|
|
1274
1429
|
start: t,
|
|
1275
|
-
end:
|
|
1430
|
+
end: L
|
|
1276
1431
|
};
|
|
1277
1432
|
}
|
|
1278
1433
|
function ur() {
|
|
1279
1434
|
var e = "", t, n, r, i, a = !1;
|
|
1280
|
-
for (t =
|
|
1435
|
+
for (t = I[L], Kn(t === "'" || t === "\"", "String literal must starts with a quote"), n = L, ++L; L < R;) if (r = I[L++], r === t) {
|
|
1281
1436
|
t = "";
|
|
1282
1437
|
break;
|
|
1283
|
-
} else if (r === "\\") if (r =
|
|
1438
|
+
} else if (r === "\\") if (r = I[L++], !r || !Xn(r.charCodeAt(0))) switch (r) {
|
|
1284
1439
|
case "u":
|
|
1285
1440
|
case "x":
|
|
1286
|
-
|
|
1441
|
+
I[L] === "{" ? (++L, e += nr()) : e += tr(r);
|
|
1287
1442
|
break;
|
|
1288
1443
|
case "n":
|
|
1289
1444
|
e += "\n";
|
|
@@ -1304,30 +1459,30 @@ function ur() {
|
|
|
1304
1459
|
e += "\v";
|
|
1305
1460
|
break;
|
|
1306
1461
|
default:
|
|
1307
|
-
|
|
1462
|
+
Jn(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), L < R && Jn(I[L]) && (a = !0, i = i * 8 + "01234567".indexOf(I[L++]), "0123".includes(r) && L < R && Jn(I[L]) && (i = i * 8 + "01234567".indexOf(I[L++]))), e += String.fromCharCode(i)) : e += r;
|
|
1308
1463
|
break;
|
|
1309
1464
|
}
|
|
1310
|
-
else r === "\r" &&
|
|
1311
|
-
else if (
|
|
1465
|
+
else r === "\r" && I[L] === "\n" && ++L;
|
|
1466
|
+
else if (Xn(r.charCodeAt(0))) break;
|
|
1312
1467
|
else e += r;
|
|
1313
|
-
return t !== "" && Y({},
|
|
1314
|
-
type:
|
|
1468
|
+
return t !== "" && Y({}, W, G), {
|
|
1469
|
+
type: Sn,
|
|
1315
1470
|
value: e,
|
|
1316
1471
|
octal: a,
|
|
1317
1472
|
start: n,
|
|
1318
|
-
end:
|
|
1473
|
+
end: L
|
|
1319
1474
|
};
|
|
1320
1475
|
}
|
|
1321
1476
|
function dr(e, t) {
|
|
1322
1477
|
let n = e;
|
|
1323
1478
|
t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
|
|
1324
1479
|
if (parseInt(t, 16) <= 1114111) return "x";
|
|
1325
|
-
Y({},
|
|
1480
|
+
Y({}, Bn);
|
|
1326
1481
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
|
|
1327
1482
|
try {
|
|
1328
1483
|
new RegExp(n);
|
|
1329
1484
|
} catch {
|
|
1330
|
-
Y({},
|
|
1485
|
+
Y({}, Bn);
|
|
1331
1486
|
}
|
|
1332
1487
|
try {
|
|
1333
1488
|
return new RegExp(e, t);
|
|
@@ -1336,29 +1491,29 @@ function dr(e, t) {
|
|
|
1336
1491
|
}
|
|
1337
1492
|
}
|
|
1338
1493
|
function fr() {
|
|
1339
|
-
var e =
|
|
1340
|
-
for (
|
|
1341
|
-
else if (
|
|
1494
|
+
var e = I[L], t, n, r, i;
|
|
1495
|
+
for (Kn(e === "/", "Regular expression literal must start with a slash"), t = I[L++], n = !1, r = !1; L < R;) if (e = I[L++], t += e, e === "\\") e = I[L++], Xn(e.charCodeAt(0)) && Y({}, Vn), t += e;
|
|
1496
|
+
else if (Xn(e.charCodeAt(0))) Y({}, Vn);
|
|
1342
1497
|
else if (n) e === "]" && (n = !1);
|
|
1343
1498
|
else if (e === "/") {
|
|
1344
1499
|
r = !0;
|
|
1345
1500
|
break;
|
|
1346
1501
|
} else e === "[" && (n = !0);
|
|
1347
|
-
return r || Y({},
|
|
1502
|
+
return r || Y({}, Vn), i = t.substr(1, t.length - 2), {
|
|
1348
1503
|
value: i,
|
|
1349
1504
|
literal: t
|
|
1350
1505
|
};
|
|
1351
1506
|
}
|
|
1352
1507
|
function pr() {
|
|
1353
|
-
for (var e, t = "", n = "";
|
|
1354
|
-
return n.search(/[^gimuy]/g) >= 0 && Y({},
|
|
1508
|
+
for (var e, t = "", n = ""; L < R && (e = I[L], Qn(e.charCodeAt(0)));) ++L, e === "\\" && L < R ? Y({}, W, G) : (n += e, t += e);
|
|
1509
|
+
return n.search(/[^gimuy]/g) >= 0 && Y({}, Bn, n), {
|
|
1355
1510
|
value: n,
|
|
1356
1511
|
literal: t
|
|
1357
1512
|
};
|
|
1358
1513
|
}
|
|
1359
1514
|
function mr() {
|
|
1360
1515
|
var e, t, n, r;
|
|
1361
|
-
return
|
|
1516
|
+
return z = null, er(), e = L, t = fr(), n = pr(), r = dr(t.value, n.value), {
|
|
1362
1517
|
literal: t.literal + n.literal,
|
|
1363
1518
|
value: r,
|
|
1364
1519
|
regex: {
|
|
@@ -1366,166 +1521,166 @@ function mr() {
|
|
|
1366
1521
|
flags: n.value
|
|
1367
1522
|
},
|
|
1368
1523
|
start: e,
|
|
1369
|
-
end:
|
|
1524
|
+
end: L
|
|
1370
1525
|
};
|
|
1371
1526
|
}
|
|
1372
1527
|
function hr(e) {
|
|
1373
|
-
return e.type ===
|
|
1528
|
+
return e.type === B || e.type === V || e.type === yn || e.type === xn;
|
|
1374
1529
|
}
|
|
1375
1530
|
function gr() {
|
|
1376
|
-
if (er(),
|
|
1377
|
-
type:
|
|
1378
|
-
start:
|
|
1379
|
-
end:
|
|
1531
|
+
if (er(), L >= R) return {
|
|
1532
|
+
type: bn,
|
|
1533
|
+
start: L,
|
|
1534
|
+
end: L
|
|
1380
1535
|
};
|
|
1381
|
-
let e =
|
|
1382
|
-
return
|
|
1536
|
+
let e = I.charCodeAt(L);
|
|
1537
|
+
return Zn(e) ? ar() : e === 40 || e === 41 || e === 59 ? or() : e === 39 || e === 34 ? ur() : e === 46 ? q(I.charCodeAt(L + 1)) ? lr() : or() : q(e) ? lr() : or();
|
|
1383
1538
|
}
|
|
1384
|
-
function
|
|
1385
|
-
let e =
|
|
1386
|
-
return
|
|
1539
|
+
function J() {
|
|
1540
|
+
let e = z;
|
|
1541
|
+
return L = e.end, z = gr(), L = e.end, e;
|
|
1387
1542
|
}
|
|
1388
1543
|
function _r() {
|
|
1389
|
-
let e =
|
|
1390
|
-
|
|
1544
|
+
let e = L;
|
|
1545
|
+
z = gr(), L = e;
|
|
1391
1546
|
}
|
|
1392
1547
|
function vr(e) {
|
|
1393
|
-
let t = new
|
|
1548
|
+
let t = new P(wn);
|
|
1394
1549
|
return t.elements = e, t;
|
|
1395
1550
|
}
|
|
1396
1551
|
function yr(e, t, n) {
|
|
1397
|
-
let r = new
|
|
1552
|
+
let r = new P(e === "||" || e === "&&" ? An : Tn);
|
|
1398
1553
|
return r.operator = e, r.left = t, r.right = n, r;
|
|
1399
1554
|
}
|
|
1400
1555
|
function br(e, t) {
|
|
1401
|
-
let n = new
|
|
1556
|
+
let n = new P(En);
|
|
1402
1557
|
return n.callee = e, n.arguments = t, n;
|
|
1403
1558
|
}
|
|
1404
1559
|
function xr(e, t, n) {
|
|
1405
|
-
let r = new
|
|
1560
|
+
let r = new P(Dn);
|
|
1406
1561
|
return r.test = e, r.consequent = t, r.alternate = n, r;
|
|
1407
1562
|
}
|
|
1408
1563
|
function Sr(e) {
|
|
1409
|
-
let t = new
|
|
1564
|
+
let t = new P(On);
|
|
1410
1565
|
return t.name = e, t;
|
|
1411
1566
|
}
|
|
1412
|
-
function
|
|
1413
|
-
let t = new
|
|
1414
|
-
return t.value = e.value, t.raw =
|
|
1567
|
+
function Cr(e) {
|
|
1568
|
+
let t = new P(kn);
|
|
1569
|
+
return t.value = e.value, t.raw = I.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
|
|
1415
1570
|
}
|
|
1416
|
-
function
|
|
1417
|
-
let r = new
|
|
1571
|
+
function wr(e, t, n) {
|
|
1572
|
+
let r = new P(jn);
|
|
1418
1573
|
return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
|
|
1419
1574
|
}
|
|
1420
|
-
function
|
|
1421
|
-
let t = new
|
|
1575
|
+
function Tr(e) {
|
|
1576
|
+
let t = new P(Mn);
|
|
1422
1577
|
return t.properties = e, t;
|
|
1423
1578
|
}
|
|
1424
|
-
function
|
|
1425
|
-
let r = new
|
|
1579
|
+
function Er(e, t, n) {
|
|
1580
|
+
let r = new P(Nn);
|
|
1426
1581
|
return r.key = t, r.value = n, r.kind = e, r;
|
|
1427
1582
|
}
|
|
1428
|
-
function
|
|
1429
|
-
let n = new
|
|
1583
|
+
function Dr(e, t) {
|
|
1584
|
+
let n = new P(Pn);
|
|
1430
1585
|
return n.operator = e, n.argument = t, n.prefix = !0, n;
|
|
1431
1586
|
}
|
|
1432
1587
|
function Y(e, t) {
|
|
1433
|
-
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (
|
|
1434
|
-
throw n = Error(i), n.index =
|
|
1588
|
+
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (Kn(t < r.length, "Message reference must be in range"), r[t]));
|
|
1589
|
+
throw n = Error(i), n.index = L, n.description = i, n;
|
|
1435
1590
|
}
|
|
1436
|
-
function
|
|
1437
|
-
e.type ===
|
|
1591
|
+
function Or(e) {
|
|
1592
|
+
e.type === bn && Y(e, zn), e.type === H && Y(e, Fn), e.type === Sn && Y(e, In), e.type === B && Y(e, Ln), e.type === V && Y(e, Rn), Y(e, W, e.value);
|
|
1438
1593
|
}
|
|
1439
1594
|
function X(e) {
|
|
1440
|
-
let t =
|
|
1441
|
-
(t.type !==
|
|
1595
|
+
let t = J();
|
|
1596
|
+
(t.type !== U || t.value !== e) && Or(t);
|
|
1442
1597
|
}
|
|
1443
1598
|
function Z(e) {
|
|
1444
|
-
return
|
|
1445
|
-
}
|
|
1446
|
-
function Or(e) {
|
|
1447
|
-
return N.type === I && N.value === e;
|
|
1599
|
+
return z.type === U && z.value === e;
|
|
1448
1600
|
}
|
|
1449
|
-
function kr() {
|
|
1450
|
-
|
|
1451
|
-
for (j = N.start, X("["); !Z("]");) Z(",") ? (q(), e.push(null)) : (e.push(Q()), Z("]") || X(","));
|
|
1452
|
-
return q(), vr(e);
|
|
1601
|
+
function kr(e) {
|
|
1602
|
+
return z.type === V && z.value === e;
|
|
1453
1603
|
}
|
|
1454
1604
|
function Ar() {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
return
|
|
1605
|
+
let e = [];
|
|
1606
|
+
for (L = z.start, X("["); !Z("]");) Z(",") ? (J(), e.push(null)) : (e.push(Q()), Z("]") || X(","));
|
|
1607
|
+
return J(), vr(e);
|
|
1458
1608
|
}
|
|
1459
1609
|
function jr() {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
else return t = Ar(), X(":"), r = Q(), Tr("init", t, r);
|
|
1610
|
+
L = z.start;
|
|
1611
|
+
let e = J();
|
|
1612
|
+
return e.type === Sn || e.type === H ? (e.octal && Y(e, Hn), Cr(e)) : Sr(e.value);
|
|
1464
1613
|
}
|
|
1465
1614
|
function Mr() {
|
|
1466
|
-
var e
|
|
1467
|
-
|
|
1468
|
-
|
|
1615
|
+
var e, t, n, r;
|
|
1616
|
+
if (L = z.start, e = z, e.type === B) return n = jr(), X(":"), r = Q(), Er("init", n, r);
|
|
1617
|
+
if (e.type === bn || e.type === U) Or(e);
|
|
1618
|
+
else return t = jr(), X(":"), r = Q(), Er("init", t, r);
|
|
1469
1619
|
}
|
|
1470
1620
|
function Nr() {
|
|
1621
|
+
var e = [], t, n, r, i = {}, a = String;
|
|
1622
|
+
for (L = z.start, X("{"); !Z("}");) t = Mr(), n = t.key.type === On ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? Y({}, Un) : i[r] = !0, e.push(t), Z("}") || X(",");
|
|
1623
|
+
return X("}"), Tr(e);
|
|
1624
|
+
}
|
|
1625
|
+
function Pr() {
|
|
1471
1626
|
X("(");
|
|
1472
|
-
let e =
|
|
1627
|
+
let e = Kr();
|
|
1473
1628
|
return X(")"), e;
|
|
1474
1629
|
}
|
|
1475
|
-
var
|
|
1476
|
-
function
|
|
1630
|
+
var Fr = { if: 1 };
|
|
1631
|
+
function Ir() {
|
|
1477
1632
|
var e, t, n;
|
|
1478
|
-
if (Z("(")) return
|
|
1479
|
-
if (Z("[")) return
|
|
1480
|
-
if (Z("{")) return
|
|
1481
|
-
if (e =
|
|
1482
|
-
else if (e ===
|
|
1483
|
-
else if (e ===
|
|
1484
|
-
else e ===
|
|
1633
|
+
if (Z("(")) return Pr();
|
|
1634
|
+
if (Z("[")) return Ar();
|
|
1635
|
+
if (Z("{")) return Nr();
|
|
1636
|
+
if (e = z.type, L = z.start, e === B || Fr[z.value]) n = Sr(J().value);
|
|
1637
|
+
else if (e === Sn || e === H) z.octal && Y(z, Hn), n = Cr(J());
|
|
1638
|
+
else if (e === V) throw Error(K);
|
|
1639
|
+
else e === yn ? (t = J(), t.value = t.value === "true", n = Cr(t)) : e === xn ? (t = J(), t.value = null, n = Cr(t)) : Z("/") || Z("/=") ? (n = Cr(mr()), _r()) : Or(J());
|
|
1485
1640
|
return n;
|
|
1486
1641
|
}
|
|
1487
|
-
function
|
|
1642
|
+
function Lr() {
|
|
1488
1643
|
let e = [];
|
|
1489
|
-
if (X("("), !Z(")")) for (;
|
|
1644
|
+
if (X("("), !Z(")")) for (; L < R && (e.push(Q()), !Z(")"));) X(",");
|
|
1490
1645
|
return X(")"), e;
|
|
1491
1646
|
}
|
|
1492
|
-
function Lr() {
|
|
1493
|
-
j = N.start;
|
|
1494
|
-
let e = q();
|
|
1495
|
-
return hr(e) || Dr(e), Sr(e.value);
|
|
1496
|
-
}
|
|
1497
1647
|
function Rr() {
|
|
1498
|
-
|
|
1648
|
+
L = z.start;
|
|
1649
|
+
let e = J();
|
|
1650
|
+
return hr(e) || Or(e), Sr(e.value);
|
|
1499
1651
|
}
|
|
1500
1652
|
function zr() {
|
|
1653
|
+
return X("."), Rr();
|
|
1654
|
+
}
|
|
1655
|
+
function Br() {
|
|
1501
1656
|
X("[");
|
|
1502
|
-
let e =
|
|
1657
|
+
let e = Kr();
|
|
1503
1658
|
return X("]"), e;
|
|
1504
1659
|
}
|
|
1505
|
-
function
|
|
1506
|
-
for (var e =
|
|
1507
|
-
else if (Z("(")) t =
|
|
1508
|
-
else if (Z("[")) n =
|
|
1660
|
+
function Vr() {
|
|
1661
|
+
for (var e = Ir(), t, n;;) if (Z(".")) n = zr(), e = wr(".", e, n);
|
|
1662
|
+
else if (Z("(")) t = Lr(), e = br(e, t);
|
|
1663
|
+
else if (Z("[")) n = Br(), e = wr("[", e, n);
|
|
1509
1664
|
else break;
|
|
1510
1665
|
return e;
|
|
1511
1666
|
}
|
|
1512
|
-
function
|
|
1513
|
-
let e =
|
|
1514
|
-
if (
|
|
1667
|
+
function Hr() {
|
|
1668
|
+
let e = Vr();
|
|
1669
|
+
if (z.type === U && (Z("++") || Z("--"))) throw Error(K);
|
|
1515
1670
|
return e;
|
|
1516
1671
|
}
|
|
1517
|
-
function
|
|
1672
|
+
function Ur() {
|
|
1518
1673
|
var e, t;
|
|
1519
|
-
if (
|
|
1520
|
-
else if (Z("++") || Z("--")) throw Error(
|
|
1521
|
-
else if (Z("+") || Z("-") || Z("~") || Z("!")) e =
|
|
1522
|
-
else if (
|
|
1523
|
-
else t =
|
|
1674
|
+
if (z.type !== U && z.type !== V) t = Hr();
|
|
1675
|
+
else if (Z("++") || Z("--")) throw Error(K);
|
|
1676
|
+
else if (Z("+") || Z("-") || Z("~") || Z("!")) e = J(), t = Ur(), t = Dr(e.value, t);
|
|
1677
|
+
else if (kr("delete") || kr("void") || kr("typeof")) throw Error(K);
|
|
1678
|
+
else t = Hr();
|
|
1524
1679
|
return t;
|
|
1525
1680
|
}
|
|
1526
|
-
function
|
|
1681
|
+
function Wr(e) {
|
|
1527
1682
|
let t = 0;
|
|
1528
|
-
if (e.type !==
|
|
1683
|
+
if (e.type !== U && e.type !== V) return 0;
|
|
1529
1684
|
switch (e.value) {
|
|
1530
1685
|
case "||":
|
|
1531
1686
|
t = 1;
|
|
@@ -1573,36 +1728,36 @@ function Ur(e) {
|
|
|
1573
1728
|
}
|
|
1574
1729
|
return t;
|
|
1575
1730
|
}
|
|
1576
|
-
function
|
|
1577
|
-
var e =
|
|
1578
|
-
if (r =
|
|
1579
|
-
for (r.prec = i,
|
|
1731
|
+
function Gr() {
|
|
1732
|
+
var e = z, t, n, r, i, a, o, s, c = Ur(), l;
|
|
1733
|
+
if (r = z, i = Wr(r), i === 0) return c;
|
|
1734
|
+
for (r.prec = i, J(), t = [e, z], o = Ur(), a = [
|
|
1580
1735
|
c,
|
|
1581
1736
|
r,
|
|
1582
1737
|
o
|
|
1583
|
-
]; (i =
|
|
1738
|
+
]; (i = Wr(z)) > 0;) {
|
|
1584
1739
|
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = yr(s, c, o), a.push(n);
|
|
1585
|
-
r =
|
|
1740
|
+
r = J(), r.prec = i, a.push(r), t.push(z), n = Ur(), a.push(n);
|
|
1586
1741
|
}
|
|
1587
1742
|
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = yr(a[l - 1].value, a[l - 2], n), l -= 2;
|
|
1588
1743
|
return n;
|
|
1589
1744
|
}
|
|
1590
1745
|
function Q() {
|
|
1591
|
-
var e =
|
|
1592
|
-
return Z("?") && (
|
|
1746
|
+
var e = Gr(), t, n;
|
|
1747
|
+
return Z("?") && (J(), t = Q(), X(":"), n = Q(), e = xr(e, t, n)), e;
|
|
1593
1748
|
}
|
|
1594
|
-
function
|
|
1749
|
+
function Kr() {
|
|
1595
1750
|
let e = Q();
|
|
1596
|
-
if (Z(",")) throw Error(
|
|
1751
|
+
if (Z(",")) throw Error(K);
|
|
1597
1752
|
return e;
|
|
1598
1753
|
}
|
|
1599
|
-
function
|
|
1600
|
-
|
|
1601
|
-
let t =
|
|
1602
|
-
if (
|
|
1754
|
+
function qr(e) {
|
|
1755
|
+
I = e, L = 0, R = I.length, z = null, _r();
|
|
1756
|
+
let t = Kr();
|
|
1757
|
+
if (z.type !== bn) throw Error("Unexpect token after expression.");
|
|
1603
1758
|
return t;
|
|
1604
1759
|
}
|
|
1605
|
-
var
|
|
1760
|
+
var Jr = {
|
|
1606
1761
|
NaN: "NaN",
|
|
1607
1762
|
E: "Math.E",
|
|
1608
1763
|
LN2: "Math.LN2",
|
|
@@ -1615,7 +1770,7 @@ var qr = {
|
|
|
1615
1770
|
MIN_VALUE: "Number.MIN_VALUE",
|
|
1616
1771
|
MAX_VALUE: "Number.MAX_VALUE"
|
|
1617
1772
|
};
|
|
1618
|
-
function
|
|
1773
|
+
function Yr(e) {
|
|
1619
1774
|
function t(t, n, r, i) {
|
|
1620
1775
|
let a = e(n[0]);
|
|
1621
1776
|
return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
|
|
@@ -1623,7 +1778,7 @@ function Jr(e) {
|
|
|
1623
1778
|
function n(e, n, r) {
|
|
1624
1779
|
return (i) => t(e, i, n, r);
|
|
1625
1780
|
}
|
|
1626
|
-
let r = "new Date",
|
|
1781
|
+
let r = "new Date", i = "String", a = "RegExp";
|
|
1627
1782
|
return {
|
|
1628
1783
|
isNaN: "Number.isNaN",
|
|
1629
1784
|
isFinite: "Number.isFinite",
|
|
@@ -1647,7 +1802,7 @@ function Jr(e) {
|
|
|
1647
1802
|
sqrt: "Math.sqrt",
|
|
1648
1803
|
tan: "Math.tan",
|
|
1649
1804
|
clamp: function(t) {
|
|
1650
|
-
t.length < 3 &&
|
|
1805
|
+
t.length < 3 && N("Missing arguments to clamp function."), t.length > 3 && N("Too many arguments to clamp function.");
|
|
1651
1806
|
let n = t.map(e);
|
|
1652
1807
|
return "Math.max(" + n[1] + ", Math.min(" + n[2] + "," + n[0] + "))";
|
|
1653
1808
|
},
|
|
@@ -1675,166 +1830,171 @@ function Jr(e) {
|
|
|
1675
1830
|
length: n("length", null, -1),
|
|
1676
1831
|
parseFloat: "parseFloat",
|
|
1677
1832
|
parseInt: "parseInt",
|
|
1678
|
-
upper: n("toUpperCase",
|
|
1679
|
-
lower: n("toLowerCase",
|
|
1680
|
-
substring: n("substring",
|
|
1681
|
-
split: n("split",
|
|
1682
|
-
trim: n("trim",
|
|
1833
|
+
upper: n("toUpperCase", i, 0),
|
|
1834
|
+
lower: n("toLowerCase", i, 0),
|
|
1835
|
+
substring: n("substring", i),
|
|
1836
|
+
split: n("split", i),
|
|
1837
|
+
trim: n("trim", i, 0),
|
|
1683
1838
|
btoa: "btoa",
|
|
1684
1839
|
atob: "atob",
|
|
1685
|
-
regexp:
|
|
1686
|
-
test: n("test",
|
|
1840
|
+
regexp: a,
|
|
1841
|
+
test: n("test", a),
|
|
1687
1842
|
if: function(t) {
|
|
1688
|
-
t.length < 3 &&
|
|
1843
|
+
t.length < 3 && N("Missing arguments to if function."), t.length > 3 && N("Too many arguments to if function.");
|
|
1689
1844
|
let n = t.map(e);
|
|
1690
1845
|
return "(" + n[0] + "?" + n[1] + ":" + n[2] + ")";
|
|
1691
1846
|
}
|
|
1692
1847
|
};
|
|
1693
1848
|
}
|
|
1694
|
-
function
|
|
1849
|
+
function Xr(e) {
|
|
1695
1850
|
let t = e && e.length - 1;
|
|
1696
1851
|
return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
|
|
1697
1852
|
}
|
|
1698
|
-
function
|
|
1853
|
+
function Zr(e) {
|
|
1699
1854
|
e ||= {};
|
|
1700
|
-
let t = e.allowed ?
|
|
1855
|
+
let t = e.allowed ? an(e.allowed) : {}, n = e.forbidden ? an(e.forbidden) : {}, r = e.constants || Jr, i = (e.functions || Yr)(d), a = e.globalvar, o = e.fieldvar, s = en(a) ? a : (e) => `${a}["${e}"]`;
|
|
1701
1856
|
[...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
1702
|
-
let
|
|
1703
|
-
function
|
|
1704
|
-
if (
|
|
1705
|
-
let t =
|
|
1706
|
-
return t ??
|
|
1857
|
+
let c = {}, l = {}, u = 0;
|
|
1858
|
+
function d(e) {
|
|
1859
|
+
if (nn(e)) return e;
|
|
1860
|
+
let t = f[e.type];
|
|
1861
|
+
return t ?? N("Unsupported type: " + e.type), t(e);
|
|
1707
1862
|
}
|
|
1708
|
-
let
|
|
1863
|
+
let f = {
|
|
1709
1864
|
Literal: (e) => e.raw,
|
|
1710
1865
|
Identifier: (e) => {
|
|
1711
|
-
let
|
|
1712
|
-
return
|
|
1866
|
+
let i = e.name;
|
|
1867
|
+
return u > 0 ? i : tn(n, i) ? N("Illegal identifier: " + i) : tn(r, i) ? r[i] : tn(t, i) ? i : (c[i] = 1, s(i));
|
|
1713
1868
|
},
|
|
1714
1869
|
MemberExpression: (e) => {
|
|
1715
|
-
let t = !e.computed, n =
|
|
1716
|
-
t && (
|
|
1717
|
-
let r =
|
|
1718
|
-
return n ===
|
|
1870
|
+
let t = !e.computed, n = d(e.object);
|
|
1871
|
+
t && (u += 1);
|
|
1872
|
+
let r = d(e.property);
|
|
1873
|
+
return n === o && (l[Xr(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
|
|
1719
1874
|
},
|
|
1720
1875
|
CallExpression: (e) => {
|
|
1721
|
-
e.callee.type !== "Identifier" &&
|
|
1722
|
-
let t = e.callee.name, n = e.arguments, r =
|
|
1723
|
-
return r ||
|
|
1876
|
+
e.callee.type !== "Identifier" && N("Illegal callee type: " + e.callee.type);
|
|
1877
|
+
let t = e.callee.name, n = e.arguments, r = tn(i, t) && i[t];
|
|
1878
|
+
return r || N("Unrecognized function: " + t), en(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
|
|
1724
1879
|
},
|
|
1725
|
-
ArrayExpression: (e) => "[" + e.elements.map(
|
|
1726
|
-
BinaryExpression: (e) => "(" +
|
|
1727
|
-
UnaryExpression: (e) => "(" + e.operator +
|
|
1728
|
-
ConditionalExpression: (e) => "(" +
|
|
1729
|
-
LogicalExpression: (e) => "(" +
|
|
1880
|
+
ArrayExpression: (e) => "[" + e.elements.map(d).join(",") + "]",
|
|
1881
|
+
BinaryExpression: (e) => "(" + d(e.left) + " " + e.operator + " " + d(e.right) + ")",
|
|
1882
|
+
UnaryExpression: (e) => "(" + e.operator + d(e.argument) + ")",
|
|
1883
|
+
ConditionalExpression: (e) => "(" + d(e.test) + "?" + d(e.consequent) + ":" + d(e.alternate) + ")",
|
|
1884
|
+
LogicalExpression: (e) => "(" + d(e.left) + e.operator + d(e.right) + ")",
|
|
1730
1885
|
ObjectExpression: (e) => {
|
|
1731
1886
|
for (let t of e.properties) {
|
|
1732
1887
|
let e = t.key.name;
|
|
1733
|
-
|
|
1888
|
+
Xt.has(e) && N("Illegal property: " + e);
|
|
1734
1889
|
}
|
|
1735
|
-
return "{" + e.properties.map(
|
|
1890
|
+
return "{" + e.properties.map(d).join(",") + "}";
|
|
1736
1891
|
},
|
|
1737
1892
|
Property: (e) => {
|
|
1738
|
-
|
|
1739
|
-
let t =
|
|
1740
|
-
return --
|
|
1893
|
+
u += 1;
|
|
1894
|
+
let t = d(e.key);
|
|
1895
|
+
return --u, t + ":" + d(e.value);
|
|
1741
1896
|
}
|
|
1742
1897
|
};
|
|
1743
|
-
function
|
|
1898
|
+
function p(e) {
|
|
1744
1899
|
let t = {
|
|
1745
|
-
code:
|
|
1746
|
-
globals: Object.keys(
|
|
1747
|
-
fields: Object.keys(
|
|
1900
|
+
code: d(e),
|
|
1901
|
+
globals: Object.keys(c),
|
|
1902
|
+
fields: Object.keys(l)
|
|
1748
1903
|
};
|
|
1749
|
-
return
|
|
1904
|
+
return c = {}, l = {}, t;
|
|
1750
1905
|
}
|
|
1751
|
-
return
|
|
1906
|
+
return p.functions = i, p.constants = r, p;
|
|
1752
1907
|
}
|
|
1753
1908
|
//#endregion
|
|
1754
1909
|
//#region ../core/src/utils/smoothstep.js
|
|
1755
|
-
function
|
|
1910
|
+
function Qr(e, t, n) {
|
|
1756
1911
|
return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
|
|
1757
1912
|
}
|
|
1758
1913
|
//#endregion
|
|
1759
1914
|
//#region ../core/src/utils/clamp.js
|
|
1760
|
-
function
|
|
1915
|
+
function $r(e, t = 0, n = 1) {
|
|
1761
1916
|
return Math.max(t, Math.min(n, e));
|
|
1762
1917
|
}
|
|
1763
1918
|
//#endregion
|
|
1764
1919
|
//#region ../core/src/utils/linearstep.js
|
|
1765
|
-
function
|
|
1766
|
-
return
|
|
1920
|
+
function ei(e, t, n) {
|
|
1921
|
+
return $r((n - e) / (t - e), 0, 1);
|
|
1767
1922
|
}
|
|
1768
1923
|
//#endregion
|
|
1769
1924
|
//#region ../core/src/utils/expression.js
|
|
1770
|
-
function ei(e) {
|
|
1771
|
-
return C(e) || ArrayBuffer.isView(e) ? e : null;
|
|
1772
|
-
}
|
|
1773
1925
|
function ti(e) {
|
|
1774
|
-
return
|
|
1926
|
+
return u(e) || ArrayBuffer.isView(e) ? e : null;
|
|
1775
1927
|
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1928
|
+
function ni(e) {
|
|
1929
|
+
return ti(e) || (x(e) ? e : null);
|
|
1930
|
+
}
|
|
1931
|
+
var ri = {
|
|
1932
|
+
clamp: $r,
|
|
1778
1933
|
format(e, t) {
|
|
1779
|
-
return
|
|
1934
|
+
return yt(t)(e);
|
|
1780
1935
|
},
|
|
1781
1936
|
join(e, t) {
|
|
1782
|
-
return
|
|
1937
|
+
return ti(e).join(t);
|
|
1783
1938
|
},
|
|
1784
1939
|
indexof(e, t, n) {
|
|
1785
|
-
return
|
|
1940
|
+
return ni(e).indexOf(t, n);
|
|
1786
1941
|
},
|
|
1787
1942
|
lastindexof(e, t, n) {
|
|
1788
|
-
return
|
|
1943
|
+
return ni(e).lastIndexOf(t, n);
|
|
1789
1944
|
},
|
|
1790
1945
|
reverse(e) {
|
|
1791
|
-
return
|
|
1946
|
+
return x(e) ? Array.from(e).reverse().join("") : ti(e).slice().reverse();
|
|
1792
1947
|
},
|
|
1793
1948
|
slice(e, t, n) {
|
|
1794
|
-
return
|
|
1949
|
+
return ni(e).slice(t, n);
|
|
1795
1950
|
},
|
|
1796
1951
|
mapHasKey(e, t) {
|
|
1797
1952
|
return e.has(t);
|
|
1798
1953
|
},
|
|
1799
|
-
isArray:
|
|
1800
|
-
isBoolean:
|
|
1954
|
+
isArray: u,
|
|
1955
|
+
isBoolean: ge,
|
|
1801
1956
|
isDefined(e) {
|
|
1802
1957
|
return e !== void 0;
|
|
1803
1958
|
},
|
|
1804
|
-
isNumber:
|
|
1805
|
-
isObject:
|
|
1806
|
-
isRegExp:
|
|
1807
|
-
isString:
|
|
1959
|
+
isNumber: _e,
|
|
1960
|
+
isObject: d,
|
|
1961
|
+
isRegExp: ve,
|
|
1962
|
+
isString: x,
|
|
1808
1963
|
isValid(e) {
|
|
1809
1964
|
return e != null && e === e;
|
|
1810
1965
|
},
|
|
1811
|
-
lerp:
|
|
1812
|
-
linearstep:
|
|
1966
|
+
lerp: ye,
|
|
1967
|
+
linearstep: ei,
|
|
1813
1968
|
replace(e, t, n) {
|
|
1814
1969
|
return String(e).replace(t, n);
|
|
1815
1970
|
},
|
|
1816
1971
|
sort(e) {
|
|
1817
|
-
return
|
|
1972
|
+
return ti(e).slice().sort(fe);
|
|
1818
1973
|
},
|
|
1819
1974
|
center(e) {
|
|
1820
|
-
let t =
|
|
1975
|
+
let t = ti(e);
|
|
1821
1976
|
return (t[0] + t[t.length - 1]) / 2;
|
|
1822
1977
|
},
|
|
1823
1978
|
span(e) {
|
|
1824
|
-
return
|
|
1979
|
+
return be(e);
|
|
1825
1980
|
},
|
|
1826
|
-
smoothstep:
|
|
1981
|
+
smoothstep: Qr
|
|
1827
1982
|
};
|
|
1828
|
-
function
|
|
1829
|
-
let t = !1, n =
|
|
1983
|
+
function ii(e) {
|
|
1984
|
+
let t = !1, n = fi(e, {}, { resolveScaleResolution: () => (t = !0, {
|
|
1985
|
+
channel: "analysis",
|
|
1986
|
+
getDomainRef: () => void 0,
|
|
1987
|
+
getMappingRef: () => void 0,
|
|
1988
|
+
getConfigurationRef: () => void 0
|
|
1989
|
+
}) });
|
|
1830
1990
|
return {
|
|
1831
1991
|
usesScaleHelper: t,
|
|
1832
1992
|
globals: n.globals
|
|
1833
1993
|
};
|
|
1834
1994
|
}
|
|
1835
|
-
function
|
|
1836
|
-
let n =
|
|
1837
|
-
for (let e in
|
|
1995
|
+
function ai(e, t) {
|
|
1996
|
+
let n = Yr(e);
|
|
1997
|
+
for (let e in ri) n[e] = `this.${e}`;
|
|
1838
1998
|
for (let r of [
|
|
1839
1999
|
"scale",
|
|
1840
2000
|
"invert",
|
|
@@ -1842,24 +2002,24 @@ function ii(e, t) {
|
|
|
1842
2002
|
"range",
|
|
1843
2003
|
"bandwidth",
|
|
1844
2004
|
"linearize"
|
|
1845
|
-
]) n[r] = (n) =>
|
|
2005
|
+
]) n[r] = (n) => oi(e, t, r, n);
|
|
1846
2006
|
return n;
|
|
1847
2007
|
}
|
|
1848
|
-
function
|
|
2008
|
+
function oi(e, t, n, r) {
|
|
1849
2009
|
if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1850
2010
|
if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
|
|
1851
|
-
let i =
|
|
2011
|
+
let i = si(r[0]);
|
|
1852
2012
|
if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1853
2013
|
let a = t.resolveScaleResolution?.(i);
|
|
1854
2014
|
if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
|
|
1855
2015
|
let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
|
|
1856
2016
|
return `${t.globalvar}["${o.codeName}"](${s})`;
|
|
1857
2017
|
}
|
|
1858
|
-
function
|
|
2018
|
+
function si(e) {
|
|
1859
2019
|
return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
|
|
1860
2020
|
}
|
|
1861
|
-
function
|
|
1862
|
-
let n = (n) =>
|
|
2021
|
+
function ci(e, t) {
|
|
2022
|
+
let n = (n) => ui(t, e, n);
|
|
1863
2023
|
if (e === "domain") return () => n(() => t.getDomain());
|
|
1864
2024
|
if (e === "range") return () => n(() => t.getScale().range());
|
|
1865
2025
|
if (e === "bandwidth") return () => n(() => {
|
|
@@ -1872,42 +2032,20 @@ function si(e, t) {
|
|
|
1872
2032
|
if (e === "linearize") return (e) => n(() => e == null ? null : typeof t.fromComplex == "function" ? t.fromComplex(e) : e);
|
|
1873
2033
|
throw Error("Unknown scale helper: " + e);
|
|
1874
2034
|
}
|
|
1875
|
-
var
|
|
1876
|
-
function
|
|
1877
|
-
if (
|
|
1878
|
-
|
|
2035
|
+
var li = /* @__PURE__ */ new WeakSet();
|
|
2036
|
+
function ui(e, t, n) {
|
|
2037
|
+
if (li.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
|
|
2038
|
+
li.add(e);
|
|
1879
2039
|
try {
|
|
1880
2040
|
return n();
|
|
1881
2041
|
} finally {
|
|
1882
|
-
|
|
2042
|
+
li.delete(e);
|
|
1883
2043
|
}
|
|
1884
2044
|
}
|
|
1885
|
-
function
|
|
1886
|
-
|
|
1887
|
-
for (let e of i) e();
|
|
1888
|
-
}, o = () => {
|
|
1889
|
-
e === "domain" ? n.addEventListener("domain", a) : (e === "range" || n.addEventListener("domain", a), n.addEventListener("range", a));
|
|
1890
|
-
}, s = () => {
|
|
1891
|
-
e === "domain" ? n.removeEventListener("domain", a) : (e === "range" || n.removeEventListener("domain", a), n.removeEventListener("range", a));
|
|
1892
|
-
};
|
|
1893
|
-
return {
|
|
1894
|
-
id: `scale:${t}:${r}`,
|
|
1895
|
-
name: `scale(${t})`,
|
|
1896
|
-
kind: "derived",
|
|
1897
|
-
rank: 0,
|
|
1898
|
-
propagation: "sync",
|
|
1899
|
-
get() {
|
|
1900
|
-
return n.getScale();
|
|
1901
|
-
},
|
|
1902
|
-
subscribe(e) {
|
|
1903
|
-
let t = i.size === 0;
|
|
1904
|
-
return i.add(e), t && o(), () => {
|
|
1905
|
-
i.delete(e) && i.size === 0 && s();
|
|
1906
|
-
};
|
|
1907
|
-
}
|
|
1908
|
-
};
|
|
2045
|
+
function di(e, t) {
|
|
2046
|
+
return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : t.getMappingRef();
|
|
1909
2047
|
}
|
|
1910
|
-
function
|
|
2048
|
+
function fi(e, t = {}, n = {}) {
|
|
1911
2049
|
try {
|
|
1912
2050
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 1, o = {
|
|
1913
2051
|
...n,
|
|
@@ -1917,38 +2055,38 @@ function di(e, t = {}, n = {}) {
|
|
|
1917
2055
|
let s = e + ":" + n, c = i.get(s);
|
|
1918
2056
|
if (c) return c;
|
|
1919
2057
|
let l = r.get(s);
|
|
1920
|
-
l || (l =
|
|
2058
|
+
l || (l = di(e, o), r.set(s, l));
|
|
1921
2059
|
let u = "__scale_helper_" + a++, d = {
|
|
1922
2060
|
codeName: u,
|
|
1923
2061
|
dependency: l
|
|
1924
2062
|
};
|
|
1925
|
-
return i.set(s, d), t[u] =
|
|
2063
|
+
return i.set(s, d), t[u] = ci(e, o), d;
|
|
1926
2064
|
}
|
|
1927
|
-
}, s =
|
|
2065
|
+
}, s = Zr({
|
|
1928
2066
|
forbidden: [],
|
|
1929
2067
|
allowed: ["datum", "undefined"],
|
|
1930
2068
|
globalvar: "globalObject",
|
|
1931
2069
|
fieldvar: "datum",
|
|
1932
|
-
functions: (e) =>
|
|
1933
|
-
})(
|
|
2070
|
+
functions: (e) => ai(e, o)
|
|
2071
|
+
})(qr(e)), c = Function("datum", "globalObject", `"use strict";
|
|
1934
2072
|
try {
|
|
1935
2073
|
return (${s.code});
|
|
1936
2074
|
} catch (e) {
|
|
1937
2075
|
throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
|
|
1938
|
-
}`).bind(
|
|
1939
|
-
return l.fields = s.fields, l.globals = s.globals, l.code = s.code, l.scaleDependencies = Array.from(r.values()), l;
|
|
2076
|
+
}`).bind(ri), l = (e) => c(e, t);
|
|
2077
|
+
return l.fields = s.fields, l.globals = s.globals, l.code = s.code, l.scaleDependencies = Array.from(new Set(r.values())), l;
|
|
1940
2078
|
} catch (t) {
|
|
1941
2079
|
throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
|
|
1942
2080
|
}
|
|
1943
2081
|
}
|
|
1944
|
-
var
|
|
2082
|
+
var pi = Zr({
|
|
1945
2083
|
forbidden: [],
|
|
1946
2084
|
allowed: ["event"],
|
|
1947
2085
|
globalvar: "globalObject"
|
|
1948
2086
|
});
|
|
1949
|
-
function
|
|
2087
|
+
function mi(e) {
|
|
1950
2088
|
try {
|
|
1951
|
-
let t =
|
|
2089
|
+
let t = pi(qr(e));
|
|
1952
2090
|
return Function("event", "globalObject", `"use strict";
|
|
1953
2091
|
try {
|
|
1954
2092
|
return !!(${t.code});
|
|
@@ -1959,241 +2097,445 @@ function pi(e) {
|
|
|
1959
2097
|
throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
|
|
1960
2098
|
}
|
|
1961
2099
|
}
|
|
1962
|
-
//#endregion
|
|
1963
|
-
//#region ../core/src/utils/interactionConfig.js
|
|
1964
|
-
function
|
|
1965
|
-
if (typeof e == "string") {
|
|
1966
|
-
let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
|
|
1967
|
-
if (!t) throw Error(`Invalid event type string: ${e}`);
|
|
1968
|
-
let [, n, r] = t, i = { type: n };
|
|
1969
|
-
return r && (i.filter = r), i;
|
|
1970
|
-
} else return e;
|
|
2100
|
+
//#endregion
|
|
2101
|
+
//#region ../core/src/utils/interactionConfig.js
|
|
2102
|
+
function hi(e) {
|
|
2103
|
+
if (typeof e == "string") {
|
|
2104
|
+
let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
|
|
2105
|
+
if (!t) throw Error(`Invalid event type string: ${e}`);
|
|
2106
|
+
let [, n, r] = t, i = { type: n };
|
|
2107
|
+
return r && (i.filter = r), i;
|
|
2108
|
+
} else return e;
|
|
2109
|
+
}
|
|
2110
|
+
function gi(e) {
|
|
2111
|
+
return e?.filter ? mi(e.filter) : () => !0;
|
|
2112
|
+
}
|
|
2113
|
+
function _i(e, t, n) {
|
|
2114
|
+
if (!t.includes(e.type)) throw Error(n);
|
|
2115
|
+
return e;
|
|
2116
|
+
}
|
|
2117
|
+
//#endregion
|
|
2118
|
+
//#region ../core/src/selection/selection.js
|
|
2119
|
+
function vi(e) {
|
|
2120
|
+
return {
|
|
2121
|
+
type: "single",
|
|
2122
|
+
datum: e,
|
|
2123
|
+
uniqueId: e?.[j]
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
function yi(e) {
|
|
2127
|
+
return e ??= [], {
|
|
2128
|
+
type: "multi",
|
|
2129
|
+
data: new Map(e.map((e) => [e[j], e]))
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
function bi(e) {
|
|
2133
|
+
return {
|
|
2134
|
+
type: "interval",
|
|
2135
|
+
intervals: Object.fromEntries(e.map((e) => [e, null]))
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
function xi(e, { add: t, remove: n, toggle: r }) {
|
|
2139
|
+
let i = e.data;
|
|
2140
|
+
for (let e of t ?? []) i.set(e[j], e);
|
|
2141
|
+
for (let e of n ?? []) i.delete(e[j]);
|
|
2142
|
+
for (let e of r ?? []) {
|
|
2143
|
+
let t = e[j];
|
|
2144
|
+
i.has(t) ? i.delete(t) : i.set(t, e);
|
|
2145
|
+
}
|
|
2146
|
+
return {
|
|
2147
|
+
type: "multi",
|
|
2148
|
+
data: i
|
|
2149
|
+
};
|
|
2150
|
+
}
|
|
2151
|
+
function Si(e, t) {
|
|
2152
|
+
let n = !!(e.empty ?? !0), r = Nt(e.param), i = e.fields ?? {};
|
|
2153
|
+
if (wi(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(j)}]`;
|
|
2154
|
+
if (Ti(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(j)}])`;
|
|
2155
|
+
if (Ci(t)) {
|
|
2156
|
+
let a = Object.keys(t.intervals), o = Object.keys(i).filter(sa);
|
|
2157
|
+
if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
|
|
2158
|
+
if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
|
|
2159
|
+
let s = (e) => `datum[${JSON.stringify(e)}]`;
|
|
2160
|
+
return a.map((e) => {
|
|
2161
|
+
let t = ha(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
|
|
2162
|
+
return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
|
|
2163
|
+
}).join(" && ");
|
|
2164
|
+
} else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
|
|
2165
|
+
}
|
|
2166
|
+
function Ci(e) {
|
|
2167
|
+
return e.type === "interval";
|
|
2168
|
+
}
|
|
2169
|
+
function wi(e) {
|
|
2170
|
+
return e.type === "single";
|
|
2171
|
+
}
|
|
2172
|
+
function Ti(e) {
|
|
2173
|
+
return e.type === "multi";
|
|
2174
|
+
}
|
|
2175
|
+
function Ei(e) {
|
|
2176
|
+
let t = typeof e == "string" ? { type: e } : { ...e };
|
|
2177
|
+
return t.on = t.on ? hi(t.on) : Di(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : hi(t.clear), Di(t) && t.on.type === "click" && (t.toggle = !0), t;
|
|
2178
|
+
}
|
|
2179
|
+
function Di(e) {
|
|
2180
|
+
return e && e.type == "point";
|
|
2181
|
+
}
|
|
2182
|
+
function Oi(e) {
|
|
2183
|
+
return e && e.type == "interval";
|
|
2184
|
+
}
|
|
2185
|
+
function ki(e) {
|
|
2186
|
+
return Object.values(e.intervals).some((e) => e && e.length === 2);
|
|
2187
|
+
}
|
|
2188
|
+
function Ai(e, t) {
|
|
2189
|
+
return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
|
|
2190
|
+
}
|
|
2191
|
+
//#endregion
|
|
2192
|
+
//#region ../core/src/encoder/accessor.js
|
|
2193
|
+
function ji(e, t, n) {
|
|
2194
|
+
if (!e) throw Error("Cannot create an accessor without a channel.");
|
|
2195
|
+
function r(n) {
|
|
2196
|
+
let r = n;
|
|
2197
|
+
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Pi(t), r.scaleChannel = ((Yi(t) && t.resolutionChannel) ?? (ya(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Fi({
|
|
2198
|
+
scaleChannel: r.scaleChannel,
|
|
2199
|
+
source: Ni(t)
|
|
2200
|
+
}).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
|
|
2201
|
+
}
|
|
2202
|
+
function i(e) {
|
|
2203
|
+
if (A(e)) {
|
|
2204
|
+
let t = r(n.createExpression(e.expr));
|
|
2205
|
+
if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
|
|
2206
|
+
return t;
|
|
2207
|
+
} else {
|
|
2208
|
+
let t = e;
|
|
2209
|
+
return r(() => t);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
if ($(t)) try {
|
|
2213
|
+
return r(Ht(t.field));
|
|
2214
|
+
} catch (e) {
|
|
2215
|
+
throw Error(`Invalid field definition: ${e.message}`, { cause: e });
|
|
2216
|
+
}
|
|
2217
|
+
else if (ea(t)) return r(n.createExpression(t.expr));
|
|
2218
|
+
else if (Ji(t)) return i(t.datum);
|
|
2219
|
+
else if (qi(t)) return i(t.value);
|
|
2220
|
+
else throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
|
|
2221
|
+
}
|
|
2222
|
+
function Mi(e) {
|
|
2223
|
+
return e.scaleChannel !== void 0;
|
|
2224
|
+
}
|
|
2225
|
+
function Ni(e) {
|
|
2226
|
+
if ($(e)) return {
|
|
2227
|
+
kind: "field",
|
|
2228
|
+
value: e.field
|
|
2229
|
+
};
|
|
2230
|
+
if (ea(e)) return {
|
|
2231
|
+
kind: "expr",
|
|
2232
|
+
value: e.expr
|
|
2233
|
+
};
|
|
2234
|
+
if (Ji(e)) return {
|
|
2235
|
+
kind: "datum",
|
|
2236
|
+
value: e.datum
|
|
2237
|
+
};
|
|
2238
|
+
if (qi(e)) return {
|
|
2239
|
+
kind: "value",
|
|
2240
|
+
value: e.value
|
|
2241
|
+
};
|
|
2242
|
+
throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
|
|
2243
|
+
}
|
|
2244
|
+
function Pi(e) {
|
|
2245
|
+
let t = Ni(e);
|
|
2246
|
+
return t.kind === "datum" || t.kind === "value" ? "constant|" + Ri(t.value) : t.kind + "|" + Li(t);
|
|
2247
|
+
}
|
|
2248
|
+
function Fi({ scaleChannel: e, source: t, type: n }) {
|
|
2249
|
+
if (!e) throw Error("Cannot build a domain key without a scale channel.");
|
|
2250
|
+
let r = e + "|" + t.kind + "|" + Li(t);
|
|
2251
|
+
return {
|
|
2252
|
+
domainKeyBase: r,
|
|
2253
|
+
domainKey: n ? n + "|" + r : void 0
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
function Ii(e, t) {
|
|
2257
|
+
let { domainKey: n, domainKeyBase: r } = Fi({
|
|
2258
|
+
scaleChannel: e.scaleChannel,
|
|
2259
|
+
source: Ni(e.channelDef),
|
|
2260
|
+
type: t
|
|
2261
|
+
});
|
|
2262
|
+
if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
|
|
2263
|
+
return e.domainKeyBase = r, e.domainKey = n, n;
|
|
2264
|
+
}
|
|
2265
|
+
function Li(e) {
|
|
2266
|
+
switch (e.kind) {
|
|
2267
|
+
case "field":
|
|
2268
|
+
case "expr": return e.value;
|
|
2269
|
+
case "datum":
|
|
2270
|
+
case "value": return Ri(e.value);
|
|
2271
|
+
default: throw Error("Unknown domain key source.");
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
function Ri(e) {
|
|
2275
|
+
return A(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
|
|
2276
|
+
}
|
|
2277
|
+
//#endregion
|
|
2278
|
+
//#region ../core/src/encoder/encoder.js
|
|
2279
|
+
function zi(e, t, n, r) {
|
|
2280
|
+
let i, a = Lt(!1), o = () => {
|
|
2281
|
+
if (i) return i;
|
|
2282
|
+
let o = n.findValue(e);
|
|
2283
|
+
if (!o) return a;
|
|
2284
|
+
let s = {};
|
|
2285
|
+
if (Ci(o)) {
|
|
2286
|
+
let n = Object.keys(o.intervals);
|
|
2287
|
+
for (let r of n) {
|
|
2288
|
+
let n = t[r];
|
|
2289
|
+
if ($(n)) {
|
|
2290
|
+
s[r] = n.field;
|
|
2291
|
+
continue;
|
|
2292
|
+
} else if (n && "condition" in n) {
|
|
2293
|
+
let e = n.condition;
|
|
2294
|
+
if ($(e)) {
|
|
2295
|
+
s[r] = e.field;
|
|
2296
|
+
continue;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
throw Error(`Selection "${e}" has an interval for "${r}" channel, but could not find a fieldDef: ${JSON.stringify(t[r])}`);
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
let c = Si({
|
|
2303
|
+
type: "filter",
|
|
2304
|
+
param: e,
|
|
2305
|
+
fields: s,
|
|
2306
|
+
empty: r
|
|
2307
|
+
}, o);
|
|
2308
|
+
return i = n.createExpression(c), i;
|
|
2309
|
+
};
|
|
2310
|
+
return Object.assign((e) => o()(e), {
|
|
2311
|
+
param: e,
|
|
2312
|
+
empty: r ?? !0
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
function Bi(e, t, n, r) {
|
|
2316
|
+
let i = ta(t) || na(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], a = [...i, t], o = a.map((t, o) => {
|
|
2317
|
+
let s = i[o];
|
|
2318
|
+
return {
|
|
2319
|
+
accessor: ji(e, t, r),
|
|
2320
|
+
predicate: s?.param ? zi(s.param, n, r, s.empty) : Object.assign(Lt(o === a.length - 1), { empty: !1 })
|
|
2321
|
+
};
|
|
2322
|
+
});
|
|
2323
|
+
if (o.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
|
|
2324
|
+
return o;
|
|
2325
|
+
}
|
|
2326
|
+
function Vi(e, t) {
|
|
2327
|
+
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
|
|
2328
|
+
let r = e.getScaleResolution(t);
|
|
2329
|
+
e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
|
|
2330
|
+
};
|
|
2331
|
+
for (let [a, o] of Object.entries(t)) {
|
|
2332
|
+
if (!o) continue;
|
|
2333
|
+
let s = a;
|
|
2334
|
+
Hi(s) || (n[s] = Gi(Bi(s, o, t, e.paramRuntime), r, i));
|
|
2335
|
+
}
|
|
2336
|
+
return n;
|
|
2337
|
+
}
|
|
2338
|
+
function Hi(e) {
|
|
2339
|
+
return e === "key" || e === "search" || e === "tooltip";
|
|
1971
2340
|
}
|
|
1972
|
-
function
|
|
1973
|
-
return e
|
|
2341
|
+
function Ui(e) {
|
|
2342
|
+
return e.branches.map((e) => e.accessor);
|
|
1974
2343
|
}
|
|
1975
|
-
function
|
|
1976
|
-
|
|
1977
|
-
return e;
|
|
2344
|
+
function Wi(e) {
|
|
2345
|
+
return e.branches.find((e) => !e.accessor.constant)?.accessor;
|
|
1978
2346
|
}
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
2347
|
+
function Gi(e, t, n) {
|
|
2348
|
+
if (e.length === 1) {
|
|
2349
|
+
let r = Ki(e[0].accessor, t, n);
|
|
2350
|
+
return Object.assign(r, { branches: e });
|
|
2351
|
+
}
|
|
2352
|
+
let r = e.map((e) => e.predicate), i = e.map((e) => Ki(e.accessor, t, n)), a = Object.assign((e) => {
|
|
2353
|
+
for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
|
|
2354
|
+
}, {
|
|
2355
|
+
constant: !1,
|
|
2356
|
+
branches: e,
|
|
2357
|
+
channelDef: e.at(-1).accessor.channelDef
|
|
2358
|
+
});
|
|
2359
|
+
return Object.defineProperty(a, "scale", {
|
|
2360
|
+
enumerable: !0,
|
|
2361
|
+
get: () => i.find((e) => e.scale)?.scale
|
|
2362
|
+
});
|
|
1987
2363
|
}
|
|
1988
|
-
function
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2364
|
+
function Ki(e, t, n) {
|
|
2365
|
+
let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
|
|
2366
|
+
if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
|
|
2367
|
+
let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
|
|
2368
|
+
scale: o,
|
|
2369
|
+
constant: e.constant,
|
|
2370
|
+
branches: [{
|
|
2371
|
+
accessor: e,
|
|
2372
|
+
predicate: Lt(!0)
|
|
2373
|
+
}],
|
|
2374
|
+
channelDef: a
|
|
2375
|
+
});
|
|
2376
|
+
return o && n?.(i, (e) => {
|
|
2377
|
+
o = e, s.scale = e;
|
|
2378
|
+
}), s;
|
|
1993
2379
|
}
|
|
1994
|
-
function
|
|
1995
|
-
|
|
1996
|
-
let n = t.map((e) => _t(e)), r = (e) => n.map((t) => t(e));
|
|
1997
|
-
if (Ti(e)) return e.datum ? [r(e.datum)] : [];
|
|
1998
|
-
if (Ei(e)) return [...e.data.values()].map(r);
|
|
1999
|
-
throw Error(`Expected a point selection, got: ${JSON.stringify(e)}`);
|
|
2000
|
-
}
|
|
2001
|
-
function bi(e, t, n, r) {
|
|
2002
|
-
if (!t || t.length === 0) return;
|
|
2003
|
-
if (e === "single" && n.length > 1) throw Error("Single point selections expect at most one key tuple.");
|
|
2004
|
-
let i = [], a = [];
|
|
2005
|
-
for (let e of n) {
|
|
2006
|
-
let n = r(t, e);
|
|
2007
|
-
n ? i.push(n) : a.push(e);
|
|
2008
|
-
}
|
|
2009
|
-
return {
|
|
2010
|
-
selection: e === "single" ? _i(i[0] ?? null) : vi(i),
|
|
2011
|
-
unresolved: a
|
|
2012
|
-
};
|
|
2380
|
+
function qi(e) {
|
|
2381
|
+
return e && "value" in e;
|
|
2013
2382
|
}
|
|
2014
|
-
function
|
|
2015
|
-
return
|
|
2016
|
-
type: "interval",
|
|
2017
|
-
intervals: Object.fromEntries(e.map((e) => [e, null]))
|
|
2018
|
-
};
|
|
2383
|
+
function $(e) {
|
|
2384
|
+
return e && "field" in e;
|
|
2019
2385
|
}
|
|
2020
|
-
function
|
|
2021
|
-
|
|
2022
|
-
for (let e of t ?? []) i.set(e[E], e);
|
|
2023
|
-
for (let e of n ?? []) i.delete(e[E]);
|
|
2024
|
-
for (let e of r ?? []) {
|
|
2025
|
-
let t = e[E];
|
|
2026
|
-
i.has(t) ? i.delete(t) : i.set(t, e);
|
|
2027
|
-
}
|
|
2028
|
-
return {
|
|
2029
|
-
type: "multi",
|
|
2030
|
-
data: i
|
|
2031
|
-
};
|
|
2386
|
+
function Ji(e) {
|
|
2387
|
+
return e && "datum" in e;
|
|
2032
2388
|
}
|
|
2033
|
-
function
|
|
2034
|
-
|
|
2035
|
-
if (Ti(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(E)}]`;
|
|
2036
|
-
if (Ei(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(E)}])`;
|
|
2037
|
-
if (wi(t)) {
|
|
2038
|
-
let a = Object.keys(t.intervals), o = Object.keys(i).filter(Yt);
|
|
2039
|
-
if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
|
|
2040
|
-
if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
|
|
2041
|
-
let s = (e) => `datum[${JSON.stringify(e)}]`;
|
|
2042
|
-
return a.map((e) => {
|
|
2043
|
-
let t = rn(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
|
|
2044
|
-
return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
|
|
2045
|
-
}).join(" && ");
|
|
2046
|
-
} else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
|
|
2389
|
+
function Yi(e) {
|
|
2390
|
+
return $(e) || Ji(e) || ea(e) || $i(e);
|
|
2047
2391
|
}
|
|
2048
|
-
function
|
|
2049
|
-
|
|
2392
|
+
function Xi(e) {
|
|
2393
|
+
if (na(e)) {
|
|
2394
|
+
let t = e.condition;
|
|
2395
|
+
return (Array.isArray(t) ? t : [t]).find((e) => Yi(e));
|
|
2396
|
+
} else if (Yi(e)) return e;
|
|
2050
2397
|
}
|
|
2051
|
-
function
|
|
2052
|
-
|
|
2398
|
+
function Zi(e) {
|
|
2399
|
+
let t = e && Xi(e);
|
|
2400
|
+
return t != null && t.type != "quantitative" && t.scale !== null;
|
|
2053
2401
|
}
|
|
2054
|
-
function
|
|
2055
|
-
|
|
2402
|
+
function Qi(e, t) {
|
|
2403
|
+
let n = e.mark.encoding[t];
|
|
2404
|
+
if (Array.isArray(n)) throw Error("Not a channel def with scale!");
|
|
2405
|
+
{
|
|
2406
|
+
let e = Xi(n);
|
|
2407
|
+
if (e) return e;
|
|
2408
|
+
}
|
|
2409
|
+
throw Error("Not a channel def with scale!");
|
|
2056
2410
|
}
|
|
2057
|
-
function
|
|
2058
|
-
|
|
2059
|
-
return t.on = t.on ? mi(t.on) : Oi(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : mi(t.clear), Oi(t) && t.on.type === "click" && (t.toggle = !0), t;
|
|
2411
|
+
function $i(e) {
|
|
2412
|
+
return e && "chrom" in e;
|
|
2060
2413
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return e &&
|
|
2414
|
+
function ea(e) {
|
|
2415
|
+
return e && "expr" in e;
|
|
2063
2416
|
}
|
|
2064
|
-
function
|
|
2065
|
-
return e
|
|
2417
|
+
function ta(e) {
|
|
2418
|
+
return ($(e) || Ji(e)) && "condition" in e;
|
|
2066
2419
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2420
|
+
function na(e) {
|
|
2421
|
+
return qi(e) && "condition" in e;
|
|
2069
2422
|
}
|
|
2070
|
-
|
|
2071
|
-
|
|
2423
|
+
var ra = ["x", "y"], ia = ["x2", "y2"], aa = ["xOffset", "yOffset"], oa = [...ra, ...ia];
|
|
2424
|
+
function sa(e) {
|
|
2425
|
+
return ra.includes(e);
|
|
2072
2426
|
}
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
function Mi(e = ["x"], t = {}) {
|
|
2076
|
-
let n = {};
|
|
2077
|
-
for (let r of e) n[r] = t[r] ?? null;
|
|
2078
|
-
return {
|
|
2079
|
-
type: "ruler",
|
|
2080
|
-
values: n
|
|
2081
|
-
};
|
|
2427
|
+
function ca(e) {
|
|
2428
|
+
return oa.includes(e);
|
|
2082
2429
|
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
function $(e) {
|
|
2086
|
-
return typeof e == "object" && !!e && "expr" in e && T(e.expr);
|
|
2430
|
+
function la(e) {
|
|
2431
|
+
return aa.includes(e);
|
|
2087
2432
|
}
|
|
2088
|
-
function
|
|
2089
|
-
|
|
2090
|
-
return e;
|
|
2433
|
+
function ua(e) {
|
|
2434
|
+
return ga(e) == "x" ? "xOffset" : "yOffset";
|
|
2091
2435
|
}
|
|
2092
|
-
function
|
|
2093
|
-
return
|
|
2436
|
+
function da(e, t, n) {
|
|
2437
|
+
return t ?? (n ? 0 : e);
|
|
2094
2438
|
}
|
|
2095
|
-
|
|
2096
|
-
|
|
2439
|
+
var fa = {
|
|
2440
|
+
x: "x2",
|
|
2441
|
+
y: "y2"
|
|
2442
|
+
}, pa = Object.fromEntries(Object.entries(fa).map((e) => [e[1], e[0]]));
|
|
2443
|
+
function ma(e) {
|
|
2444
|
+
return e in pa;
|
|
2097
2445
|
}
|
|
2098
|
-
function
|
|
2099
|
-
|
|
2446
|
+
function ha(e) {
|
|
2447
|
+
let t = fa[e];
|
|
2448
|
+
if (t) return t;
|
|
2449
|
+
throw Error(`${e} has no secondary channel!`);
|
|
2100
2450
|
}
|
|
2101
|
-
function
|
|
2102
|
-
|
|
2103
|
-
return e;
|
|
2451
|
+
function ga(e) {
|
|
2452
|
+
return pa[e] ?? e;
|
|
2104
2453
|
}
|
|
2105
|
-
function
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2454
|
+
function _a(e) {
|
|
2455
|
+
return [
|
|
2456
|
+
"color",
|
|
2457
|
+
"fill",
|
|
2458
|
+
"stroke"
|
|
2459
|
+
].includes(ga(e));
|
|
2460
|
+
}
|
|
2461
|
+
function va(e) {
|
|
2462
|
+
return ["shape", "direction"].includes(e);
|
|
2463
|
+
}
|
|
2464
|
+
function ya(e) {
|
|
2465
|
+
return [
|
|
2466
|
+
"x",
|
|
2467
|
+
"y",
|
|
2468
|
+
"x2",
|
|
2469
|
+
"y2",
|
|
2470
|
+
"xOffset",
|
|
2471
|
+
"yOffset",
|
|
2472
|
+
"color",
|
|
2473
|
+
"fill",
|
|
2474
|
+
"stroke",
|
|
2475
|
+
"opacity",
|
|
2476
|
+
"fillOpacity",
|
|
2477
|
+
"strokeOpacity",
|
|
2478
|
+
"strokeWidth",
|
|
2479
|
+
"size",
|
|
2480
|
+
"shape",
|
|
2481
|
+
"direction",
|
|
2482
|
+
"angle",
|
|
2483
|
+
"dx",
|
|
2484
|
+
"dy",
|
|
2485
|
+
"sample"
|
|
2486
|
+
].includes(e);
|
|
2487
|
+
}
|
|
2488
|
+
function ba(e) {
|
|
2489
|
+
switch (e) {
|
|
2490
|
+
case "shape": return [
|
|
2491
|
+
"circle",
|
|
2492
|
+
"square",
|
|
2493
|
+
"cross",
|
|
2494
|
+
"diamond",
|
|
2495
|
+
"triangle-up",
|
|
2496
|
+
"triangle-right",
|
|
2497
|
+
"triangle-down",
|
|
2498
|
+
"triangle-left",
|
|
2499
|
+
"tick-up",
|
|
2500
|
+
"tick-right",
|
|
2501
|
+
"tick-down",
|
|
2502
|
+
"tick-left",
|
|
2503
|
+
"x",
|
|
2504
|
+
"+"
|
|
2505
|
+
];
|
|
2506
|
+
case "direction": return ["forward", "reverse"];
|
|
2507
|
+
default:
|
|
2120
2508
|
}
|
|
2121
|
-
return "value" in e ? e.value : null;
|
|
2122
2509
|
}
|
|
2123
|
-
function
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
if (!n || o.size === 0) {
|
|
2131
|
-
s = !1;
|
|
2132
|
-
return;
|
|
2133
|
-
}
|
|
2134
|
-
let e = new Set(o);
|
|
2135
|
-
o.clear(), s = !1, n(e);
|
|
2136
|
-
}, d = (t) => {
|
|
2137
|
-
c || (o.add(t), s || (s = !0, queueMicrotask(() => {
|
|
2138
|
-
c || (l == "whenPropagated" && e.whenPropagated ? e.whenPropagated().then(u).catch(() => {
|
|
2139
|
-
u();
|
|
2140
|
-
}) : u());
|
|
2141
|
-
})));
|
|
2510
|
+
function xa(e) {
|
|
2511
|
+
if (!va(e)) throw Error("Not a discrete channel: " + e);
|
|
2512
|
+
let t = new Map(ba(e).map((e, t) => [e, t]));
|
|
2513
|
+
return (n) => {
|
|
2514
|
+
let r = t.get(n);
|
|
2515
|
+
if (r !== void 0) return r;
|
|
2516
|
+
throw Error(`Invalid value for "${e}" channel: ${n}`);
|
|
2142
2517
|
};
|
|
2143
|
-
for (let [i, o] of Object.entries(t)) if ($(o)) if (n) {
|
|
2144
|
-
let t = () => d(i), n = e.watchExpression ? e.watchExpression(o.expr, t, {
|
|
2145
|
-
scopeOwned: !r,
|
|
2146
|
-
registerDisposer: r
|
|
2147
|
-
}) : e.createExpression(o.expr);
|
|
2148
|
-
if (!e.watchExpression) {
|
|
2149
|
-
let e = n.subscribe(t);
|
|
2150
|
-
r?.(e);
|
|
2151
|
-
}
|
|
2152
|
-
Object.defineProperty(a, i, {
|
|
2153
|
-
enumerable: !0,
|
|
2154
|
-
get() {
|
|
2155
|
-
return n();
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2158
|
-
} else {
|
|
2159
|
-
let t = e.createExpression(o.expr);
|
|
2160
|
-
Object.defineProperty(a, i, {
|
|
2161
|
-
enumerable: !0,
|
|
2162
|
-
get() {
|
|
2163
|
-
return t();
|
|
2164
|
-
}
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
else a[i] = o;
|
|
2168
|
-
return a;
|
|
2169
2518
|
}
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
}, a = e.watchExpression ? e.watchExpression(t.expr, i, {
|
|
2175
|
-
scopeOwned: !1,
|
|
2176
|
-
registerDisposer: r
|
|
2177
|
-
}) : e.createExpression(t.expr);
|
|
2178
|
-
if (!e.watchExpression) {
|
|
2179
|
-
let e = a.subscribe(i);
|
|
2180
|
-
r?.(e);
|
|
2181
|
-
}
|
|
2182
|
-
return a();
|
|
2519
|
+
//#endregion
|
|
2520
|
+
//#region ../core/src/utils/arrayUtils.js
|
|
2521
|
+
function Sa(e, t) {
|
|
2522
|
+
return e.length == t.length && e.every((n, r) => e[r] === t[r]);
|
|
2183
2523
|
}
|
|
2184
|
-
function
|
|
2185
|
-
return
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2524
|
+
function Ca(e) {
|
|
2525
|
+
return Array.isArray(e) ? e : e === void 0 ? [] : [e];
|
|
2526
|
+
}
|
|
2527
|
+
function wa(e) {
|
|
2528
|
+
return e[e.length - 1];
|
|
2529
|
+
}
|
|
2530
|
+
function Ta(e, t, n) {
|
|
2531
|
+
if (t < 0 || t >= e.length) throw Error("Source index out of range.");
|
|
2532
|
+
if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
|
|
2533
|
+
let [r] = e.splice(t, 1);
|
|
2534
|
+
e.splice(n, 0, r);
|
|
2193
2535
|
}
|
|
2194
2536
|
//#endregion
|
|
2195
2537
|
//#region ../core/src/view/renderingContext/clipOptions.js
|
|
2196
|
-
function
|
|
2538
|
+
function Ea(e) {
|
|
2197
2539
|
if (e.clip) return e.clip;
|
|
2198
2540
|
if (e.clipRect) return {
|
|
2199
2541
|
rect: e.clipRect,
|
|
@@ -2201,36 +2543,36 @@ function Hi(e) {
|
|
|
2201
2543
|
clipY: !0
|
|
2202
2544
|
};
|
|
2203
2545
|
}
|
|
2204
|
-
function
|
|
2546
|
+
function Da(e, t) {
|
|
2205
2547
|
return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
|
|
2206
2548
|
}
|
|
2207
|
-
function
|
|
2549
|
+
function Oa(e, t, n) {
|
|
2208
2550
|
return t || n ? {
|
|
2209
2551
|
rect: e,
|
|
2210
2552
|
clipX: t,
|
|
2211
2553
|
clipY: n
|
|
2212
2554
|
} : void 0;
|
|
2213
2555
|
}
|
|
2214
|
-
function
|
|
2556
|
+
function ka(e, t) {
|
|
2215
2557
|
return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
|
|
2216
2558
|
}
|
|
2217
|
-
function
|
|
2559
|
+
function Aa(e, t) {
|
|
2218
2560
|
if (!e) return t;
|
|
2219
2561
|
if (!t) return e;
|
|
2220
2562
|
let n = e.clipX || t.clipX, r = e.clipY || t.clipY, i = e.clipX && t.clipX ? e.rect.intersectX(t.rect) : t.clipX ? t.rect : e.rect, a = e.clipY && t.clipY ? e.rect.intersectY(t.rect) : t.clipY ? t.rect : e.rect;
|
|
2221
|
-
return
|
|
2563
|
+
return Oa(e.rect.modify({
|
|
2222
2564
|
x: () => i.x,
|
|
2223
2565
|
y: () => a.y,
|
|
2224
2566
|
width: () => i.width,
|
|
2225
2567
|
height: () => a.height
|
|
2226
2568
|
}), n, r);
|
|
2227
2569
|
}
|
|
2228
|
-
function
|
|
2229
|
-
if (e === !0) return
|
|
2230
|
-
if (e === "x") return
|
|
2231
|
-
if (e === "y") return
|
|
2570
|
+
function ja(e, t) {
|
|
2571
|
+
if (e === !0) return Oa(t, !0, !0);
|
|
2572
|
+
if (e === "x") return Oa(t, !0, !1);
|
|
2573
|
+
if (e === "y") return Oa(t, !1, !0);
|
|
2232
2574
|
}
|
|
2233
|
-
function
|
|
2575
|
+
function Ma(e) {
|
|
2234
2576
|
let t = e.mark;
|
|
2235
2577
|
if (t) {
|
|
2236
2578
|
let e = t.properties.clip;
|
|
@@ -2252,8 +2594,8 @@ function Ji(e) {
|
|
|
2252
2594
|
clipY: n && i
|
|
2253
2595
|
};
|
|
2254
2596
|
}
|
|
2255
|
-
function
|
|
2256
|
-
if (t !== "never") return
|
|
2597
|
+
function Na(e, t, n) {
|
|
2598
|
+
if (t !== "never") return Aa(e, ja(t, n));
|
|
2257
2599
|
}
|
|
2258
2600
|
//#endregion
|
|
2259
|
-
export {
|
|
2601
|
+
export { hi as $, ce as $t, la as A, kt as At, Ei as B, S as Bt, $i as C, A as Ct, ea as D, Lt as Dt, va as E, At as Et, ra as F, Et as Ft, Ci as G, Ze as Gt, yi as H, Ee as Ht, da as I, yt as It, Di as J, we as Jt, Oi as K, We as Kt, ji as L, bt as Lt, sa as M, Ct as Mt, ma as N, Tt as Nt, $ as O, It as Ot, qi as P, Dt as Pt, xi as Q, t as Qt, Ii as R, st as Rt, ya as S, Pt as St, Ji as T, jt as Tt, vi as U, Be as Ut, bi as V, E as Vt, ki as W, C as Wt, Si as X, Ce as Xt, wi as Y, Te as Yt, Ai as Z, xe as Zt, Wi as _, y as _n, Ht as _t, Ma as a, _e as an, $r as at, ha as b, Rt as bt, Ca as c, ye as cn, nn as ct, Sa as d, ie as dn, $t as dt, de as en, gi as et, Vi as f, f as fn, Qt as ft, Ui as g, v as gn, N as gt, xa as h, Se as hn, Jt as ht, Oa as i, le as in, ei as it, ca as j, Ot as jt, Zi as k, Nt as kt, Ta as l, ne as ln, tn as lt, Qi as m, s as mn, Yt as mt, Da as n, u as nn, ii as nt, Ea as o, d as on, an as ot, Xi as p, be as pn, Zt as pt, Ti as q, Ue as qt, Aa as r, ge as rn, fi as rt, Na as s, x as sn, rn as st, ka as t, o as tn, _i as tt, wa as u, re as un, en as ut, ua as v, b as vn, Vt as vt, _a as w, Mt as wt, Yi as x, Ft as xt, ga as y, oe as yn, j as yt, Mi as z, rt as zt };
|