@genome-spy/app 0.85.0 → 0.86.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/README.md +28 -0
- package/dist/{agentApi-Cz0hCnVp.js → agentApi-DgopQbMV.js} +5019 -6824
- package/dist/agentApi.es.js +2757 -2852
- package/dist/agentShared.es.js +15 -14
- package/dist/canvas2d-8uxuN_vx.js +619 -0
- package/dist/canvas2d-BtQC7Xr8.js +619 -0
- package/dist/{arrayUtils-LJpQOu-U.js → clipOptions-BQfNhxgP.js} +625 -561
- package/dist/{paramUtils-BYI4rwyL.js → clipOptions-taFzEljc.js} +192 -128
- package/dist/{debug-BvCZWumf.js → debug-Bzc3SoRg.js} +8 -8
- package/dist/{debug-CgDtmspT.js → debug-D_VtWQ6l.js} +8 -8
- package/dist/index.es.js +2992 -2915
- package/dist/index.js +2006 -2004
- package/dist/indexer-qiFctgR3.js +72 -0
- package/dist/indexer-qy_dq5l5.js +72 -0
- package/dist/layoutResult-D50MSHXR.js +97 -0
- package/dist/{nativeText-m5AUINMq.js → nativeText-DFV5XIx8.js} +247 -193
- package/dist/{nativeText-DMO8gLt7.js → nativeText-vT3AWE14.js} +244 -190
- package/dist/performanceProfiler-CPLEjApa.js +20 -0
- package/dist/rasterExport-B8pVoOsj.js +44 -0
- package/dist/rasterExport-C4r4xjQT.js +44 -0
- package/dist/rasterImage-B4rPLaW9.js +18 -0
- package/dist/rasterization-CFogVB3B.js +50 -0
- package/dist/rectangle-DKnrAmKs.js +142 -0
- package/dist/renderCanvas2D-BQrRWp2Z.js +271 -0
- package/dist/renderCanvas2D-CHVNfIUz.js +271 -0
- package/dist/schema.json +71 -131
- package/dist/{svg-CCu8kYy2.js → svg-C-Sw6E6G.js} +286 -277
- package/dist/{svg-yFj875aX.js → svg-CKHwwKRt.js} +278 -269
- package/dist/svgRasterizer-BgD72AmG.js +40 -0
- package/dist/svgRasterizer-BgSNqI3L.js +40 -0
- package/dist/vega-scale-CK0_al6O.js +2700 -0
- package/dist/vega-scale-D46-iCaL.js +2700 -0
- package/dist/viewError-BiR9VCgL.js +29 -0
- package/dist/{viewIdentityRegistry-D3oPbN4O.js → viewIdentityRegistry-B-VGlez1.js} +1 -1
- package/dist/{viewIdentityRegistry-BUdkK9zT.js → viewIdentityRegistry-CDtVktJD.js} +1 -1
- package/dist/viewSelectors-CKfxF_LM.js +1817 -0
- package/dist/viewSelectors-D_imtq5Z.js +1817 -0
- package/dist/viewUtils-nCJ7AoaI.js +5782 -0
- package/dist/webgl-BaA3jSa2.js +4128 -0
- package/dist/webgl-FP-4EsBL.js +4128 -0
- package/package.json +7 -6
- package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
- package/dist/canvas2d-DoAXEiF9.js +0 -309
- package/dist/canvas2d-f5jl4A5D.js +0 -310
- package/dist/clipOptions-gqdb3fvW.js +0 -43
- package/dist/color-W5zffv-z.js +0 -335
- package/dist/framebufferReadback-CCLOjStu.js +0 -148
- package/dist/framebufferReadback-THWwFqs8.js +0 -1994
- package/dist/twgl-full.module-DB2UdP1k.js +0 -1849
- package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
- package/dist/viewSelectors-DGCspRN3.js +0 -4198
- package/dist/viewSelectors-U5oLCLHV.js +0 -4195
- package/dist/viewUtils-Dg4RA40Q.js +0 -7503
- package/dist/warning-DRGdb6BF.js +0 -59
- package/dist/webgl-Ci6ZhCCf.js +0 -54
- package/dist/webgl-Dpz8a3TI.js +0 -53
|
@@ -74,93 +74,93 @@ function y(e, t, n, r, i) {
|
|
|
74
74
|
function b(e, t, n) {
|
|
75
75
|
return y(e, t, n, p, l);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function x(e, t, n) {
|
|
78
78
|
let r = Math.sign(e[0]);
|
|
79
79
|
return y(e, t, n, h(r), m(r));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function S(e, t, n, r) {
|
|
82
82
|
return y(e, t, n, _(r), _(1 / r));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ie(e, t, n, r) {
|
|
85
85
|
return y(e, t, n, ee(r), g(r));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function ae(e) {
|
|
88
88
|
return e == null ? [] : u(e) ? e : [e];
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function oe(e, t, n) {
|
|
91
91
|
let r = e[0], i = e[1], a;
|
|
92
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
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function se(e) {
|
|
95
95
|
return typeof e == "function";
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
function
|
|
99
|
-
i ||= {}, r =
|
|
100
|
-
let a = [], o = [], s = {}, l = i.comparator ||
|
|
101
|
-
return
|
|
102
|
-
e != null && (a.push(r[t] ===
|
|
97
|
+
var ce = "descending";
|
|
98
|
+
function le(t, r, i) {
|
|
99
|
+
i ||= {}, r = ae(r) || [];
|
|
100
|
+
let a = [], o = [], s = {}, l = i.comparator || de;
|
|
101
|
+
return ae(t).forEach((e, t) => {
|
|
102
|
+
e != null && (a.push(r[t] === ce ? -1 : 1), o.push(e = se(e) ? e : c(e, null, i)), (n(e) || []).forEach((e) => s[e] = 1));
|
|
103
103
|
}), o.length === 0 ? null : e(l(o, a), Object.keys(s));
|
|
104
104
|
}
|
|
105
|
-
var
|
|
106
|
-
return
|
|
107
|
-
},
|
|
105
|
+
var ue = (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), de = (e, t) => e.length === 1 ? fe(e[0], t[0]) : pe(e, t, e.length), fe = (e, t) => function(n, r) {
|
|
106
|
+
return ue(e(n), e(r)) * t;
|
|
107
|
+
}, pe = (e, t, n) => (t.push(0), function(r, i) {
|
|
108
108
|
let a, o = 0, s = -1;
|
|
109
|
-
for (; o === 0 && ++s < n;) a = e[s], o =
|
|
109
|
+
for (; o === 0 && ++s < n;) a = e[s], o = ue(a(r), a(i));
|
|
110
110
|
return o * t[s];
|
|
111
111
|
});
|
|
112
|
-
function
|
|
112
|
+
function me(e) {
|
|
113
113
|
return typeof e == "boolean";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function he(e) {
|
|
116
116
|
return typeof e == "number";
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ge(e) {
|
|
119
119
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function C(e) {
|
|
122
122
|
return typeof e == "string";
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function _e(e, t) {
|
|
125
125
|
let n = e[0], r = f(e), i = +t;
|
|
126
126
|
return i ? i === 1 ? r : n + i * (r - n) : n;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ve(e) {
|
|
129
129
|
return e && f(e) - e[0] || 0;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return u(e) ? `[${e.map((e) => e === null ? "null" :
|
|
131
|
+
function ye(e) {
|
|
132
|
+
return u(e) ? `[${e.map((e) => e === null ? "null" : ye(e))}]` : d(e) || C(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function be(e) {
|
|
135
135
|
let t = {}, n = e.length;
|
|
136
136
|
for (let r = 0; r < n; ++r) t[e[r]] = !0;
|
|
137
137
|
return t;
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region ../../node_modules/d3-array/src/range.js
|
|
141
|
-
function
|
|
141
|
+
function xe(e, t, n) {
|
|
142
142
|
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
|
|
143
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;
|
|
144
144
|
return a;
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
147
147
|
//#region ../../node_modules/d3-format/src/formatDecimal.js
|
|
148
|
-
function
|
|
148
|
+
function Se(e) {
|
|
149
149
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ce(e, t) {
|
|
152
152
|
if (!isFinite(e) || e === 0) return null;
|
|
153
153
|
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
154
154
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region ../../node_modules/d3-format/src/exponent.js
|
|
158
|
-
function
|
|
159
|
-
return e =
|
|
158
|
+
function we(e) {
|
|
159
|
+
return e = Ce(Math.abs(e)), e ? e[1] : NaN;
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region ../../node_modules/d3-format/src/formatGroup.js
|
|
163
|
-
function
|
|
163
|
+
function Te(e, t) {
|
|
164
164
|
return function(n, r) {
|
|
165
165
|
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];
|
|
166
166
|
return a.reverse().join(t);
|
|
@@ -168,7 +168,7 @@ function Ee(e, t) {
|
|
|
168
168
|
}
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region ../../node_modules/d3-format/src/formatNumerals.js
|
|
171
|
-
function
|
|
171
|
+
function Ee(e) {
|
|
172
172
|
return function(t) {
|
|
173
173
|
return t.replace(/[0-9]/g, function(t) {
|
|
174
174
|
return e[+t];
|
|
@@ -177,11 +177,11 @@ function De(e) {
|
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../node_modules/d3-format/src/formatSpecifier.js
|
|
180
|
-
var
|
|
181
|
-
function
|
|
182
|
-
if (!(t =
|
|
180
|
+
var De = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
181
|
+
function Oe(e) {
|
|
182
|
+
if (!(t = De.exec(e))) throw Error("invalid format: " + e);
|
|
183
183
|
var t;
|
|
184
|
-
return new
|
|
184
|
+
return new ke({
|
|
185
185
|
fill: t[1],
|
|
186
186
|
align: t[2],
|
|
187
187
|
sign: t[3],
|
|
@@ -194,16 +194,16 @@ function ke(e) {
|
|
|
194
194
|
type: t[10]
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
|
|
198
|
-
function
|
|
197
|
+
Oe.prototype = ke.prototype;
|
|
198
|
+
function ke(e) {
|
|
199
199
|
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 + "";
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
ke.prototype.toString = function() {
|
|
202
202
|
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;
|
|
203
203
|
};
|
|
204
204
|
//#endregion
|
|
205
205
|
//#region ../../node_modules/d3-format/src/formatTrim.js
|
|
206
|
-
function
|
|
206
|
+
function Ae(e) {
|
|
207
207
|
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
208
208
|
case ".":
|
|
209
209
|
r = i = n;
|
|
@@ -220,46 +220,46 @@ function je(e) {
|
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region ../../node_modules/d3-format/src/formatPrefixAuto.js
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
var n =
|
|
226
|
-
if (!n) return
|
|
227
|
-
var r = n[0], i = n[1], a = i - (
|
|
228
|
-
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") +
|
|
223
|
+
var je;
|
|
224
|
+
function Me(e, t) {
|
|
225
|
+
var n = Ce(e, t);
|
|
226
|
+
if (!n) return je = void 0, e.toPrecision(t);
|
|
227
|
+
var r = n[0], i = n[1], a = i - (je = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
228
|
+
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") + Ce(e, Math.max(0, t + a - 1))[0];
|
|
229
229
|
}
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region ../../node_modules/d3-format/src/formatRounded.js
|
|
232
|
-
function
|
|
233
|
-
var n =
|
|
232
|
+
function Ne(e, t) {
|
|
233
|
+
var n = Ce(e, t);
|
|
234
234
|
if (!n) return e + "";
|
|
235
235
|
var r = n[0], i = n[1];
|
|
236
236
|
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");
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region ../../node_modules/d3-format/src/formatTypes.js
|
|
240
|
-
var
|
|
240
|
+
var Pe = {
|
|
241
241
|
"%": (e, t) => (e * 100).toFixed(t),
|
|
242
242
|
b: (e) => Math.round(e).toString(2),
|
|
243
243
|
c: (e) => e + "",
|
|
244
|
-
d:
|
|
244
|
+
d: Se,
|
|
245
245
|
e: (e, t) => e.toExponential(t),
|
|
246
246
|
f: (e, t) => e.toFixed(t),
|
|
247
247
|
g: (e, t) => e.toPrecision(t),
|
|
248
248
|
o: (e) => Math.round(e).toString(8),
|
|
249
|
-
p: (e, t) =>
|
|
250
|
-
r:
|
|
251
|
-
s:
|
|
249
|
+
p: (e, t) => Ne(e * 100, t),
|
|
250
|
+
r: Ne,
|
|
251
|
+
s: Me,
|
|
252
252
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
253
253
|
x: (e) => Math.round(e).toString(16)
|
|
254
254
|
};
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region ../../node_modules/d3-format/src/identity.js
|
|
257
|
-
function
|
|
257
|
+
function Fe(e) {
|
|
258
258
|
return e;
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region ../../node_modules/d3-format/src/locale.js
|
|
262
|
-
var
|
|
262
|
+
var Ie = Array.prototype.map, Le = [
|
|
263
263
|
"y",
|
|
264
264
|
"z",
|
|
265
265
|
"a",
|
|
@@ -278,13 +278,13 @@ var Le = Array.prototype.map, Re = [
|
|
|
278
278
|
"Z",
|
|
279
279
|
"Y"
|
|
280
280
|
];
|
|
281
|
-
function
|
|
282
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ?
|
|
281
|
+
function Re(e) {
|
|
282
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? Fe : Te(Ie.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 ? Fe : Ee(Ie.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 + "";
|
|
283
283
|
function l(e, l) {
|
|
284
|
-
e =
|
|
284
|
+
e = Oe(e);
|
|
285
285
|
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, ee = e.comma, g = e.precision, _ = e.trim, v = e.type;
|
|
286
|
-
v === "n" ? (ee = !0, v = "g") :
|
|
287
|
-
var te = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : ""), ne = (p === "$" ? r : /[%p]/.test(v) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), re =
|
|
286
|
+
v === "n" ? (ee = !0, v = "g") : Pe[v] || (g === void 0 && (g = 12), _ = !0, v = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
287
|
+
var te = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : ""), ne = (p === "$" ? r : /[%p]/.test(v) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), re = Pe[v], y = /[defgprs%]/.test(v);
|
|
288
288
|
g = g === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
|
|
289
289
|
function b(e) {
|
|
290
290
|
var n = te, r = ne, o, l, p;
|
|
@@ -292,7 +292,7 @@ function ze(e) {
|
|
|
292
292
|
else {
|
|
293
293
|
e = +e;
|
|
294
294
|
var b = e < 0 || 1 / e < 0;
|
|
295
|
-
if (e = isNaN(e) ? c : re(Math.abs(e), g), _ && (e =
|
|
295
|
+
if (e = isNaN(e) ? c : re(Math.abs(e), g), _ && (e = Ae(e)), b && +e == 0 && f !== "+" && (b = !1), n = (b ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (v === "s" && !isNaN(e) && je !== void 0 ? Le[8 + je / 3] : "") + r + (b && f === "(" ? ")" : ""), y) {
|
|
296
296
|
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
297
297
|
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
298
298
|
break;
|
|
@@ -300,19 +300,19 @@ function ze(e) {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
ee && !m && (e = t(e, Infinity));
|
|
303
|
-
var
|
|
304
|
-
switch (ee && m && (e = t(
|
|
303
|
+
var x = n.length + e.length + r.length, S = x < h ? Array(h - x + 1).join(u) : "";
|
|
304
|
+
switch (ee && m && (e = t(S + e, S.length ? h - r.length : Infinity), S = ""), d) {
|
|
305
305
|
case "<":
|
|
306
|
-
e = n + e + r +
|
|
306
|
+
e = n + e + r + S;
|
|
307
307
|
break;
|
|
308
308
|
case "=":
|
|
309
|
-
e = n +
|
|
309
|
+
e = n + S + e + r;
|
|
310
310
|
break;
|
|
311
311
|
case "^":
|
|
312
|
-
e =
|
|
312
|
+
e = S.slice(0, x = S.length >> 1) + n + e + r + S.slice(x);
|
|
313
313
|
break;
|
|
314
314
|
default:
|
|
315
|
-
e =
|
|
315
|
+
e = S + n + e + r;
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
318
|
return a(e);
|
|
@@ -322,7 +322,7 @@ function ze(e) {
|
|
|
322
322
|
}, b;
|
|
323
323
|
}
|
|
324
324
|
function u(e, t) {
|
|
325
|
-
var n = Math.max(-8, Math.min(8, Math.floor(
|
|
325
|
+
var n = Math.max(-8, Math.min(8, Math.floor(we(t) / 3))) * 3, r = 10 ** -n, i = l((e = Oe(e), e.type = "f", e), { suffix: Le[8 + n / 3] });
|
|
326
326
|
return function(e) {
|
|
327
327
|
return i(r * e);
|
|
328
328
|
};
|
|
@@ -334,18 +334,18 @@ function ze(e) {
|
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region ../../node_modules/d3-format/src/defaultLocale.js
|
|
337
|
-
var Be, Ve
|
|
338
|
-
|
|
337
|
+
var ze, Be, Ve;
|
|
338
|
+
He({
|
|
339
339
|
thousands: ",",
|
|
340
340
|
grouping: [3],
|
|
341
341
|
currency: ["$", ""]
|
|
342
342
|
});
|
|
343
|
-
function
|
|
344
|
-
return
|
|
343
|
+
function He(e) {
|
|
344
|
+
return ze = Re(e), Be = ze.format, Ve = ze.formatPrefix, ze;
|
|
345
345
|
}
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region ../core/src/data/flowNode.js
|
|
348
|
-
var
|
|
348
|
+
var Ue = class {
|
|
349
349
|
stats = {
|
|
350
350
|
count: 0,
|
|
351
351
|
first: null
|
|
@@ -383,7 +383,7 @@ var We = class {
|
|
|
383
383
|
initialized: this.#e,
|
|
384
384
|
disposed: this.#t,
|
|
385
385
|
params: "params" in e ? structuredClone(e.params) : void 0,
|
|
386
|
-
view:
|
|
386
|
+
view: We(e, this.paramRuntimeProvider),
|
|
387
387
|
domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
|
|
388
388
|
};
|
|
389
389
|
}
|
|
@@ -397,12 +397,12 @@ var We = class {
|
|
|
397
397
|
this.#e ||= (this.initialize(), !0);
|
|
398
398
|
}
|
|
399
399
|
#r() {
|
|
400
|
-
this._propagate = Function("children", "stats",
|
|
400
|
+
this._propagate = Function("children", "stats", xe(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
|
|
401
401
|
if (stats.count === 0) {
|
|
402
402
|
stats.first = structuredClone(datum);
|
|
403
403
|
}
|
|
404
404
|
stats.count++;
|
|
405
|
-
${
|
|
405
|
+
${xe(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
|
|
406
406
|
};`)(this.children, this.stats);
|
|
407
407
|
}
|
|
408
408
|
setParent(e) {
|
|
@@ -490,11 +490,11 @@ var We = class {
|
|
|
490
490
|
}
|
|
491
491
|
_propagate(e) {}
|
|
492
492
|
};
|
|
493
|
-
function
|
|
493
|
+
function We(e, t) {
|
|
494
494
|
if ("view" in e) return e.view;
|
|
495
495
|
if (t && "getPathString" in t) return t;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Ge(e) {
|
|
498
498
|
let t = /* @__PURE__ */ new Set();
|
|
499
499
|
for (; e;) {
|
|
500
500
|
for (let n of e.domainSensitiveScaleChannels) t.add(n);
|
|
@@ -502,15 +502,15 @@ function Ke(e) {
|
|
|
502
502
|
}
|
|
503
503
|
return t;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Ke(e) {
|
|
506
506
|
return e.type == "file";
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function qe(e) {
|
|
509
509
|
return e.type == "facet";
|
|
510
510
|
}
|
|
511
511
|
//#endregion
|
|
512
512
|
//#region ../core/src/ruler/rulerValue.js
|
|
513
|
-
function
|
|
513
|
+
function Je(e = ["x"], t = {}) {
|
|
514
514
|
let n = {};
|
|
515
515
|
for (let r of e) n[r] = t[r] ?? null;
|
|
516
516
|
return {
|
|
@@ -520,37 +520,37 @@ function Ye(e = ["x"], t = {}) {
|
|
|
520
520
|
}
|
|
521
521
|
//#endregion
|
|
522
522
|
//#region ../core/src/paramRuntime/paramUtils.js
|
|
523
|
-
function
|
|
524
|
-
return typeof e == "object" && !!e && "expr" in e &&
|
|
523
|
+
function w(e) {
|
|
524
|
+
return typeof e == "object" && !!e && "expr" in e && C(e.expr);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
if (
|
|
526
|
+
function Ye(e) {
|
|
527
|
+
if (w(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
|
|
528
528
|
return e;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Xe(e) {
|
|
531
531
|
return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Ze(e) {
|
|
534
534
|
return !("expr" in e || "bind" in e) && "select" in e;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Qe(e) {
|
|
537
537
|
return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function $e(e) {
|
|
540
540
|
if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
|
|
541
541
|
return e;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function et(e, t, n) {
|
|
544
544
|
if ("select" in e) {
|
|
545
|
-
let t =
|
|
546
|
-
if (
|
|
547
|
-
if (
|
|
545
|
+
let t = Vr(e.select);
|
|
546
|
+
if (Hr(t)) return t.toggle ? Pr() : Nr(null);
|
|
547
|
+
if (Ur(t)) {
|
|
548
548
|
if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
|
|
549
|
-
return
|
|
549
|
+
return Fr(t.encodings);
|
|
550
550
|
}
|
|
551
551
|
throw Error("Unknown selection config for parameter \"" + e.name + "\".");
|
|
552
552
|
}
|
|
553
|
-
if ("ruler" in e) return
|
|
553
|
+
if ("ruler" in e) return Je(e.ruler.encodings, e.value);
|
|
554
554
|
if ("expr" in e) {
|
|
555
555
|
let r = n ?? t?.createExpression(e.expr);
|
|
556
556
|
if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
|
|
@@ -558,7 +558,7 @@ function tt(e, t, n) {
|
|
|
558
558
|
}
|
|
559
559
|
return "value" in e ? e.value : null;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function tt(e, t, n, r, i = {}) {
|
|
562
562
|
let a = { ...t }, o = /* @__PURE__ */ new Set(), s = !1, c = !1, l = i.batchMode ?? "microtask";
|
|
563
563
|
r?.(() => {
|
|
564
564
|
c = !0, o.clear(), s = !1;
|
|
@@ -578,7 +578,7 @@ function nt(e, t, n, r, i = {}) {
|
|
|
578
578
|
}) : u());
|
|
579
579
|
})));
|
|
580
580
|
};
|
|
581
|
-
for (let [i, o] of Object.entries(t)) if (
|
|
581
|
+
for (let [i, o] of Object.entries(t)) if (w(o)) if (n) {
|
|
582
582
|
let t = () => d(i), n = e.watchExpression ? e.watchExpression(o.expr, t, {
|
|
583
583
|
scopeOwned: !r,
|
|
584
584
|
registerDisposer: r
|
|
@@ -605,8 +605,8 @@ function nt(e, t, n, r, i = {}) {
|
|
|
605
605
|
else a[i] = o;
|
|
606
606
|
return a;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
if (!
|
|
608
|
+
function nt(e, t, n, r) {
|
|
609
|
+
if (!w(t)) return t;
|
|
610
610
|
let i = () => {
|
|
611
611
|
throw Error(n);
|
|
612
612
|
}, a = e.watchExpression ? e.watchExpression(t.expr, i, {
|
|
@@ -619,7 +619,7 @@ function rt(e, t, n, r) {
|
|
|
619
619
|
}
|
|
620
620
|
return a();
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function rt(e) {
|
|
623
623
|
return Object.assign(() => e, {
|
|
624
624
|
subscribe: () => () => void 0,
|
|
625
625
|
invalidate: () => void 0,
|
|
@@ -631,7 +631,7 @@ function it(e) {
|
|
|
631
631
|
}
|
|
632
632
|
//#endregion
|
|
633
633
|
//#region ../core/src/data/transforms/transform.js
|
|
634
|
-
var
|
|
634
|
+
var it = class extends Ue {
|
|
635
635
|
#e;
|
|
636
636
|
constructor(e, t) {
|
|
637
637
|
super(t), this.#e = e.type;
|
|
@@ -640,7 +640,7 @@ var at = class extends We {
|
|
|
640
640
|
return this.#e;
|
|
641
641
|
}
|
|
642
642
|
watchExprRef(e, t) {
|
|
643
|
-
if (
|
|
643
|
+
if (w(e)) {
|
|
644
644
|
let n = e;
|
|
645
645
|
return this.paramRuntime.watchExpression(n.expr, t, {
|
|
646
646
|
scopeOwned: !1,
|
|
@@ -649,7 +649,7 @@ var at = class extends We {
|
|
|
649
649
|
}
|
|
650
650
|
return (() => e);
|
|
651
651
|
}
|
|
652
|
-
},
|
|
652
|
+
}, T = "__uniqueId", at = 1e4, ot = [null], st = class extends it {
|
|
653
653
|
get behavior() {
|
|
654
654
|
return 2;
|
|
655
655
|
}
|
|
@@ -661,22 +661,22 @@ var at = class extends We {
|
|
|
661
661
|
super.reset(), this._usedBlocks = 0, this._id = -1;
|
|
662
662
|
}
|
|
663
663
|
handle(e) {
|
|
664
|
-
e[
|
|
664
|
+
e[T] = this.#e(), this._propagate(e);
|
|
665
665
|
}
|
|
666
666
|
#e() {
|
|
667
|
-
return ++this._id % 1e4 == 0 && (this._id = this.#t() *
|
|
667
|
+
return ++this._id % 1e4 == 0 && (this._id = this.#t() * at), this._id;
|
|
668
668
|
}
|
|
669
669
|
#t() {
|
|
670
670
|
return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
|
|
671
671
|
}
|
|
672
672
|
#n() {
|
|
673
|
-
let e =
|
|
674
|
-
return
|
|
673
|
+
let e = ot.length;
|
|
674
|
+
return ot[e] = this, this._blocks.push(e), this._usedBlocks++, e;
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
//#endregion
|
|
678
678
|
//#region ../core/src/utils/field.js
|
|
679
|
-
function
|
|
679
|
+
function ct(t, n = t) {
|
|
680
680
|
return /^[A-Za-z0-9_]+$/.test(t) ? e(Function("validator", `
|
|
681
681
|
let validated = !validator;
|
|
682
682
|
return function accessField(datum) {
|
|
@@ -686,15 +686,15 @@ function lt(t, n = t) {
|
|
|
686
686
|
}
|
|
687
687
|
return datum[${JSON.stringify(t)}];
|
|
688
688
|
}`)(function(e) {
|
|
689
|
-
t in e ||
|
|
689
|
+
t in e || lt(e, t);
|
|
690
690
|
}), [t], n) : c(t);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function lt(e, t) {
|
|
693
693
|
throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
|
|
694
694
|
}
|
|
695
695
|
//#endregion
|
|
696
696
|
//#region ../../node_modules/vega-util/build/accessor.js
|
|
697
|
-
function
|
|
697
|
+
function E(e, t, n) {
|
|
698
698
|
return Object.assign(e, {
|
|
699
699
|
fields: t || [],
|
|
700
700
|
fname: n
|
|
@@ -702,12 +702,12 @@ function T(e, t, n) {
|
|
|
702
702
|
}
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region ../../node_modules/vega-util/build/getter.js
|
|
705
|
-
function
|
|
706
|
-
return e.length === 1 ?
|
|
705
|
+
function ut(e) {
|
|
706
|
+
return e.length === 1 ? dt(e[0]) : ft(e);
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var dt = (e) => function(t) {
|
|
709
709
|
return t[e];
|
|
710
|
-
},
|
|
710
|
+
}, ft = (e) => {
|
|
711
711
|
let t = e.length;
|
|
712
712
|
return function(n) {
|
|
713
713
|
for (let r = 0; r < t; ++r) n = n[e[r]];
|
|
@@ -716,12 +716,12 @@ var ft = (e) => function(t) {
|
|
|
716
716
|
};
|
|
717
717
|
//#endregion
|
|
718
718
|
//#region ../../node_modules/vega-util/build/error.js
|
|
719
|
-
function
|
|
719
|
+
function D(e) {
|
|
720
720
|
throw Error(e);
|
|
721
721
|
}
|
|
722
722
|
//#endregion
|
|
723
723
|
//#region ../../node_modules/vega-util/build/splitAccessPath.js
|
|
724
|
-
function
|
|
724
|
+
function pt(e) {
|
|
725
725
|
let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
|
|
726
726
|
e += "";
|
|
727
727
|
function l() {
|
|
@@ -730,107 +730,107 @@ function mt(e) {
|
|
|
730
730
|
for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
|
|
731
731
|
else if (c === r) l(), r = null, i = -1;
|
|
732
732
|
else if (r) continue;
|
|
733
|
-
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 ||
|
|
734
|
-
return i &&
|
|
733
|
+
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 || D("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
|
|
734
|
+
return i && D("Access path missing closing bracket: " + e), r && D("Access path missing closing quote: " + e), s > o && (s++, l()), t;
|
|
735
735
|
}
|
|
736
736
|
//#endregion
|
|
737
737
|
//#region ../../node_modules/vega-util/build/field.js
|
|
738
|
-
function
|
|
739
|
-
let r =
|
|
740
|
-
return
|
|
738
|
+
function mt(e, t, n) {
|
|
739
|
+
let r = pt(e), i = r.length === 1 ? r[0] : e;
|
|
740
|
+
return E((n && n.get || ut)(r), [i], t || i);
|
|
741
741
|
}
|
|
742
|
-
|
|
743
|
-
var
|
|
744
|
-
|
|
742
|
+
mt("id");
|
|
743
|
+
var ht = E((e) => e, [], "identity");
|
|
744
|
+
E(() => 0, [], "zero"), E(() => 1, [], "one"), E(() => !0, [], "true"), E(() => !1, [], "false");
|
|
745
745
|
//#endregion
|
|
746
746
|
//#region ../../node_modules/vega-util/build/interpreter.js
|
|
747
|
-
var
|
|
747
|
+
var gt = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), _t = Array.isArray;
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region ../../node_modules/vega-util/build/isObject.js
|
|
750
|
-
function
|
|
750
|
+
function vt(e) {
|
|
751
751
|
return e === Object(e);
|
|
752
752
|
}
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region ../../node_modules/vega-util/build/array.js
|
|
755
|
-
function
|
|
756
|
-
return e == null ? [] :
|
|
755
|
+
function yt(e) {
|
|
756
|
+
return e == null ? [] : _t(e) ? e : [e];
|
|
757
757
|
}
|
|
758
758
|
//#endregion
|
|
759
759
|
//#region ../../node_modules/vega-util/build/isFunction.js
|
|
760
|
-
function
|
|
760
|
+
function bt(e) {
|
|
761
761
|
return typeof e == "function";
|
|
762
762
|
}
|
|
763
763
|
//#endregion
|
|
764
764
|
//#region ../../node_modules/vega-util/build/hasOwnProperty.js
|
|
765
|
-
function
|
|
765
|
+
function O(e, t) {
|
|
766
766
|
return Object.hasOwn(e, t);
|
|
767
767
|
}
|
|
768
768
|
//#endregion
|
|
769
769
|
//#region ../../node_modules/vega-util/build/isString.js
|
|
770
|
-
function
|
|
770
|
+
function xt(e) {
|
|
771
771
|
return typeof e == "string";
|
|
772
772
|
}
|
|
773
773
|
//#endregion
|
|
774
774
|
//#region ../../node_modules/vega-util/build/stringValue.js
|
|
775
|
-
function
|
|
776
|
-
return
|
|
775
|
+
function St(e) {
|
|
776
|
+
return _t(e) ? `[${e.map((e) => e === null ? "null" : St(e))}]` : vt(e) || xt(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
777
777
|
}
|
|
778
778
|
//#endregion
|
|
779
779
|
//#region ../../node_modules/vega-util/build/toSet.js
|
|
780
|
-
function
|
|
780
|
+
function Ct(e) {
|
|
781
781
|
let t = {}, n = e.length;
|
|
782
782
|
for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
|
|
783
783
|
return t;
|
|
784
784
|
}
|
|
785
785
|
//#endregion
|
|
786
786
|
//#region ../../node_modules/vega-expression/build/vega-expression.js
|
|
787
|
-
var
|
|
788
|
-
function
|
|
787
|
+
var wt = "RawCode", Tt = "Literal", Et = "Property", Dt = "Identifier", Ot = "ArrayExpression", kt = "BinaryExpression", At = "CallExpression", jt = "ConditionalExpression", Mt = "LogicalExpression", Nt = "MemberExpression", Pt = "ObjectExpression", Ft = "UnaryExpression";
|
|
788
|
+
function k(e) {
|
|
789
789
|
this.type = e;
|
|
790
790
|
}
|
|
791
|
-
|
|
791
|
+
k.prototype.visit = function(e) {
|
|
792
792
|
let t, n, r;
|
|
793
793
|
if (e(this)) return 1;
|
|
794
|
-
for (t =
|
|
794
|
+
for (t = It(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
|
|
795
795
|
};
|
|
796
|
-
function
|
|
796
|
+
function It(e) {
|
|
797
797
|
switch (e.type) {
|
|
798
|
-
case
|
|
799
|
-
case
|
|
800
|
-
case
|
|
801
|
-
case
|
|
802
|
-
case
|
|
798
|
+
case Ot: return e.elements;
|
|
799
|
+
case kt:
|
|
800
|
+
case Mt: return [e.left, e.right];
|
|
801
|
+
case At: return [e.callee].concat(e.arguments);
|
|
802
|
+
case jt: return [
|
|
803
803
|
e.test,
|
|
804
804
|
e.consequent,
|
|
805
805
|
e.alternate
|
|
806
806
|
];
|
|
807
|
-
case
|
|
808
|
-
case
|
|
809
|
-
case
|
|
810
|
-
case
|
|
811
|
-
case
|
|
812
|
-
case Et:
|
|
807
|
+
case Nt: return [e.object, e.property];
|
|
808
|
+
case Pt: return e.properties;
|
|
809
|
+
case Et: return [e.key, e.value];
|
|
810
|
+
case Ft: return [e.argument];
|
|
811
|
+
case Dt:
|
|
813
812
|
case Tt:
|
|
813
|
+
case wt:
|
|
814
814
|
default: return [];
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
var
|
|
818
|
-
|
|
819
|
-
var Vt = "ArrayExpression", Ht = "BinaryExpression", Ut = "CallExpression", Wt = "ConditionalExpression", Gt = "Identifier", Kt = "Literal", qt = "LogicalExpression", Jt = "MemberExpression", Yt = "ObjectExpression", Xt = "Property", Zt = "UnaryExpression", B = "Unexpected token %0", Qt = "Unexpected number", $t = "Unexpected string", en = "Unexpected identifier", tn = "Unexpected reserved word", nn = "Unexpected end of input", rn = "Invalid regular expression", an = "Invalid regular expression: missing /", on = "Octal literals are not allowed in strict mode.", sn = "Duplicate data property in object literal not allowed in strict mode", V = "ILLEGAL", H = "Disabled.", cn = /* @__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]"), ln = /* @__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]");
|
|
820
|
-
function
|
|
817
|
+
var A, j, M, N, P, Lt = 1, Rt = 2, F = 3, I = 4, zt = 5, L = 6, R = 7, z = 8, Bt = 9;
|
|
818
|
+
A = {}, A[Lt] = "Boolean", A[Rt] = "<end>", A[F] = "Identifier", A[I] = "Keyword", A[zt] = "Null", A[L] = "Numeric", A[R] = "Punctuator", A[z] = "String", A[Bt] = "RegularExpression";
|
|
819
|
+
var Vt = "ArrayExpression", Ht = "BinaryExpression", Ut = "CallExpression", Wt = "ConditionalExpression", Gt = "Identifier", Kt = "Literal", qt = "LogicalExpression", Jt = "MemberExpression", Yt = "ObjectExpression", Xt = "Property", Zt = "UnaryExpression", B = "Unexpected token %0", Qt = "Unexpected number", $t = "Unexpected string", en = "Unexpected identifier", tn = "Unexpected reserved word", nn = "Unexpected end of input", rn = "Invalid regular expression", an = "Invalid regular expression: missing /", on = "Octal literals are not allowed in strict mode.", sn = "Duplicate data property in object literal not allowed in strict mode", V = "ILLEGAL", cn = "Disabled.", ln = /* @__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]"), un = /* @__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]");
|
|
820
|
+
function dn(e, t) {
|
|
821
821
|
/* istanbul ignore next */
|
|
822
822
|
if (!e) throw Error("ASSERT: " + t);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function H(e) {
|
|
825
825
|
return e >= 48 && e <= 57;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function fn(e) {
|
|
828
828
|
return "0123456789abcdefABCDEF".includes(e);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function U(e) {
|
|
831
831
|
return "01234567".includes(e);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function pn(e) {
|
|
834
834
|
return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
|
|
835
835
|
5760,
|
|
836
836
|
6158,
|
|
@@ -851,16 +851,16 @@ function fn(e) {
|
|
|
851
851
|
65279
|
|
852
852
|
].includes(e);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function W(e) {
|
|
855
855
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 &&
|
|
857
|
+
function G(e) {
|
|
858
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && ln.test(String.fromCharCode(e));
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 &&
|
|
860
|
+
function mn(e) {
|
|
861
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && un.test(String.fromCharCode(e));
|
|
862
862
|
}
|
|
863
|
-
var
|
|
863
|
+
var hn = {
|
|
864
864
|
if: 1,
|
|
865
865
|
in: 1,
|
|
866
866
|
do: 1,
|
|
@@ -904,47 +904,47 @@ var mn = {
|
|
|
904
904
|
instanceof: 1,
|
|
905
905
|
implements: 1
|
|
906
906
|
};
|
|
907
|
-
function
|
|
908
|
-
for (;
|
|
909
|
-
let e =
|
|
910
|
-
if (
|
|
907
|
+
function gn() {
|
|
908
|
+
for (; M < N;) {
|
|
909
|
+
let e = j.charCodeAt(M);
|
|
910
|
+
if (pn(e) || W(e)) ++M;
|
|
911
911
|
else break;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function _n(e) {
|
|
915
915
|
var t, n, r, i = 0;
|
|
916
|
-
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t)
|
|
916
|
+
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) M < N && fn(j[M]) ? (r = j[M++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : J({}, B, V);
|
|
917
917
|
return String.fromCharCode(i);
|
|
918
918
|
}
|
|
919
|
-
function _n() {
|
|
920
|
-
var e = A[j], t = 0, n, r;
|
|
921
|
-
for (e === "}" && Y({}, B, V); j < M && (e = A[j++], dn(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
922
|
-
return (t > 1114111 || e !== "}") && Y({}, B, V), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
923
|
-
}
|
|
924
919
|
function vn() {
|
|
925
|
-
var e =
|
|
926
|
-
for (e ===
|
|
927
|
-
return t;
|
|
920
|
+
var e = j[M], t = 0, n, r;
|
|
921
|
+
for (e === "}" && J({}, B, V); M < N && (e = j[M++], fn(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
922
|
+
return (t > 1114111 || e !== "}") && J({}, B, V), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
928
923
|
}
|
|
929
924
|
function yn() {
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
925
|
+
var e = j.charCodeAt(M++), t = String.fromCharCode(e);
|
|
926
|
+
for (e === 92 && (j.charCodeAt(M) !== 117 && J({}, B, V), ++M, e = _n("u"), (!e || e === "\\" || !G(e.charCodeAt(0))) && J({}, B, V), t = e); M < N && (e = j.charCodeAt(M), mn(e));) ++M, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), j.charCodeAt(M) !== 117 && J({}, B, V), ++M, e = _n("u"), (!e || e === "\\" || !mn(e.charCodeAt(0))) && J({}, B, V), t += e);
|
|
927
|
+
return t;
|
|
928
|
+
}
|
|
929
|
+
function bn() {
|
|
930
|
+
for (var e = M++, t; M < N;) {
|
|
931
|
+
if (t = j.charCodeAt(M), t === 92) return M = e, yn();
|
|
932
|
+
if (mn(t)) ++M;
|
|
933
933
|
else break;
|
|
934
934
|
}
|
|
935
|
-
return
|
|
935
|
+
return j.slice(e, M);
|
|
936
936
|
}
|
|
937
|
-
function
|
|
938
|
-
var e =
|
|
937
|
+
function xn() {
|
|
938
|
+
var e = M, t = j.charCodeAt(M) === 92 ? yn() : bn();
|
|
939
939
|
return {
|
|
940
|
-
type: t.length === 1 ? F :
|
|
940
|
+
type: t.length === 1 ? F : hn.hasOwnProperty(t) ? I : t === "null" ? zt : t === "true" || t === "false" ? Lt : F,
|
|
941
941
|
value: t,
|
|
942
942
|
start: e,
|
|
943
|
-
end:
|
|
943
|
+
end: M
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
var e =
|
|
946
|
+
function Sn() {
|
|
947
|
+
var e = M, t = j.charCodeAt(M), n, r = j[M], i, a, o;
|
|
948
948
|
switch (t) {
|
|
949
949
|
case 46:
|
|
950
950
|
case 40:
|
|
@@ -957,13 +957,13 @@ function xn() {
|
|
|
957
957
|
case 93:
|
|
958
958
|
case 58:
|
|
959
959
|
case 63:
|
|
960
|
-
case 126: return ++
|
|
960
|
+
case 126: return ++M, {
|
|
961
961
|
type: R,
|
|
962
962
|
value: String.fromCharCode(t),
|
|
963
963
|
start: e,
|
|
964
|
-
end:
|
|
964
|
+
end: M
|
|
965
965
|
};
|
|
966
|
-
default: if (n =
|
|
966
|
+
default: if (n = j.charCodeAt(M + 1), n === 61) switch (t) {
|
|
967
967
|
case 43:
|
|
968
968
|
case 45:
|
|
969
969
|
case 47:
|
|
@@ -973,101 +973,101 @@ function xn() {
|
|
|
973
973
|
case 124:
|
|
974
974
|
case 37:
|
|
975
975
|
case 38:
|
|
976
|
-
case 42: return
|
|
976
|
+
case 42: return M += 2, {
|
|
977
977
|
type: R,
|
|
978
978
|
value: String.fromCharCode(t) + String.fromCharCode(n),
|
|
979
979
|
start: e,
|
|
980
|
-
end:
|
|
980
|
+
end: M
|
|
981
981
|
};
|
|
982
982
|
case 33:
|
|
983
|
-
case 61: return
|
|
983
|
+
case 61: return M += 2, j.charCodeAt(M) === 61 && ++M, {
|
|
984
984
|
type: R,
|
|
985
|
-
value:
|
|
985
|
+
value: j.slice(e, M),
|
|
986
986
|
start: e,
|
|
987
|
-
end:
|
|
987
|
+
end: M
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
if (o =
|
|
991
|
+
if (o = j.substr(M, 4), o === ">>>=") return M += 4, {
|
|
992
992
|
type: R,
|
|
993
993
|
value: o,
|
|
994
994
|
start: e,
|
|
995
|
-
end:
|
|
995
|
+
end: M
|
|
996
996
|
};
|
|
997
|
-
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return
|
|
997
|
+
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return M += 3, {
|
|
998
998
|
type: R,
|
|
999
999
|
value: a,
|
|
1000
1000
|
start: e,
|
|
1001
|
-
end:
|
|
1001
|
+
end: M
|
|
1002
1002
|
};
|
|
1003
|
-
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return
|
|
1003
|
+
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return M += 2, {
|
|
1004
1004
|
type: R,
|
|
1005
1005
|
value: i,
|
|
1006
1006
|
start: e,
|
|
1007
|
-
end:
|
|
1007
|
+
end: M
|
|
1008
1008
|
};
|
|
1009
|
-
if (i === "//" &&
|
|
1009
|
+
if (i === "//" && J({}, B, V), "<>=!+-*%&|^/".includes(r)) return ++M, {
|
|
1010
1010
|
type: R,
|
|
1011
1011
|
value: r,
|
|
1012
1012
|
start: e,
|
|
1013
|
-
end:
|
|
1013
|
+
end: M
|
|
1014
1014
|
};
|
|
1015
|
-
|
|
1015
|
+
J({}, B, V);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Cn(e) {
|
|
1018
1018
|
let t = "";
|
|
1019
|
-
for (;
|
|
1020
|
-
return t.length === 0 &&
|
|
1019
|
+
for (; M < N && fn(j[M]);) t += j[M++];
|
|
1020
|
+
return t.length === 0 && J({}, B, V), G(j.charCodeAt(M)) && J({}, B, V), {
|
|
1021
1021
|
type: L,
|
|
1022
1022
|
value: parseInt("0x" + t, 16),
|
|
1023
1023
|
start: e,
|
|
1024
|
-
end:
|
|
1024
|
+
end: M
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
let t = "0" +
|
|
1029
|
-
for (;
|
|
1030
|
-
return (
|
|
1027
|
+
function wn(e) {
|
|
1028
|
+
let t = "0" + j[M++];
|
|
1029
|
+
for (; M < N && U(j[M]);) t += j[M++];
|
|
1030
|
+
return (G(j.charCodeAt(M)) || H(j.charCodeAt(M))) && J({}, B, V), {
|
|
1031
1031
|
type: L,
|
|
1032
1032
|
value: parseInt(t, 8),
|
|
1033
1033
|
octal: !0,
|
|
1034
1034
|
start: e,
|
|
1035
|
-
end:
|
|
1035
|
+
end: M
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
var e, t, n =
|
|
1040
|
-
if (
|
|
1041
|
-
if (e =
|
|
1042
|
-
if (n === "x" || n === "X") return ++
|
|
1043
|
-
if (
|
|
1044
|
-
n &&
|
|
1038
|
+
function Tn() {
|
|
1039
|
+
var e, t, n = j[M];
|
|
1040
|
+
if (dn(H(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = M, e = "", n !== ".") {
|
|
1041
|
+
if (e = j[M++], n = j[M], e === "0") {
|
|
1042
|
+
if (n === "x" || n === "X") return ++M, Cn(t);
|
|
1043
|
+
if (U(n)) return wn(t);
|
|
1044
|
+
n && H(n.charCodeAt(0)) && J({}, B, V);
|
|
1045
1045
|
}
|
|
1046
|
-
for (;
|
|
1047
|
-
n =
|
|
1046
|
+
for (; H(j.charCodeAt(M));) e += j[M++];
|
|
1047
|
+
n = j[M];
|
|
1048
1048
|
}
|
|
1049
1049
|
if (n === ".") {
|
|
1050
|
-
for (e +=
|
|
1051
|
-
n =
|
|
1050
|
+
for (e += j[M++]; H(j.charCodeAt(M));) e += j[M++];
|
|
1051
|
+
n = j[M];
|
|
1052
1052
|
}
|
|
1053
|
-
if (n === "e" || n === "E") if (e +=
|
|
1054
|
-
else
|
|
1055
|
-
return
|
|
1053
|
+
if (n === "e" || n === "E") if (e += j[M++], n = j[M], (n === "+" || n === "-") && (e += j[M++]), H(j.charCodeAt(M))) for (; H(j.charCodeAt(M));) e += j[M++];
|
|
1054
|
+
else J({}, B, V);
|
|
1055
|
+
return G(j.charCodeAt(M)) && J({}, B, V), {
|
|
1056
1056
|
type: L,
|
|
1057
1057
|
value: parseFloat(e),
|
|
1058
1058
|
start: t,
|
|
1059
|
-
end:
|
|
1059
|
+
end: M
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function En() {
|
|
1063
1063
|
var e = "", t, n, r, i, a = !1;
|
|
1064
|
-
for (t =
|
|
1064
|
+
for (t = j[M], dn(t === "'" || t === "\"", "String literal must starts with a quote"), n = M, ++M; M < N;) if (r = j[M++], r === t) {
|
|
1065
1065
|
t = "";
|
|
1066
1066
|
break;
|
|
1067
|
-
} else if (r === "\\") if (r =
|
|
1067
|
+
} else if (r === "\\") if (r = j[M++], !r || !W(r.charCodeAt(0))) switch (r) {
|
|
1068
1068
|
case "u":
|
|
1069
1069
|
case "x":
|
|
1070
|
-
|
|
1070
|
+
j[M] === "{" ? (++M, e += vn()) : e += _n(r);
|
|
1071
1071
|
break;
|
|
1072
1072
|
case "n":
|
|
1073
1073
|
e += "\n";
|
|
@@ -1088,30 +1088,30 @@ function Tn() {
|
|
|
1088
1088
|
e += "\v";
|
|
1089
1089
|
break;
|
|
1090
1090
|
default:
|
|
1091
|
-
|
|
1091
|
+
U(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), M < N && U(j[M]) && (a = !0, i = i * 8 + "01234567".indexOf(j[M++]), "0123".includes(r) && M < N && U(j[M]) && (i = i * 8 + "01234567".indexOf(j[M++]))), e += String.fromCharCode(i)) : e += r;
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
|
-
else r === "\r" &&
|
|
1095
|
-
else if (
|
|
1094
|
+
else r === "\r" && j[M] === "\n" && ++M;
|
|
1095
|
+
else if (W(r.charCodeAt(0))) break;
|
|
1096
1096
|
else e += r;
|
|
1097
|
-
return t !== "" &&
|
|
1097
|
+
return t !== "" && J({}, B, V), {
|
|
1098
1098
|
type: z,
|
|
1099
1099
|
value: e,
|
|
1100
1100
|
octal: a,
|
|
1101
1101
|
start: n,
|
|
1102
|
-
end:
|
|
1102
|
+
end: M
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function Dn(e, t) {
|
|
1106
1106
|
let n = e;
|
|
1107
1107
|
t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
|
|
1108
1108
|
if (parseInt(t, 16) <= 1114111) return "x";
|
|
1109
|
-
|
|
1109
|
+
J({}, rn);
|
|
1110
1110
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
|
|
1111
1111
|
try {
|
|
1112
1112
|
new RegExp(n);
|
|
1113
1113
|
} catch {
|
|
1114
|
-
|
|
1114
|
+
J({}, rn);
|
|
1115
1115
|
}
|
|
1116
1116
|
try {
|
|
1117
1117
|
return new RegExp(e, t);
|
|
@@ -1119,30 +1119,30 @@ function En(e, t) {
|
|
|
1119
1119
|
return null;
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
var e =
|
|
1124
|
-
for (
|
|
1125
|
-
else if (
|
|
1122
|
+
function On() {
|
|
1123
|
+
var e = j[M], t, n, r, i;
|
|
1124
|
+
for (dn(e === "/", "Regular expression literal must start with a slash"), t = j[M++], n = !1, r = !1; M < N;) if (e = j[M++], t += e, e === "\\") e = j[M++], W(e.charCodeAt(0)) && J({}, an), t += e;
|
|
1125
|
+
else if (W(e.charCodeAt(0))) J({}, an);
|
|
1126
1126
|
else if (n) e === "]" && (n = !1);
|
|
1127
1127
|
else if (e === "/") {
|
|
1128
1128
|
r = !0;
|
|
1129
1129
|
break;
|
|
1130
1130
|
} else e === "[" && (n = !0);
|
|
1131
|
-
return r ||
|
|
1131
|
+
return r || J({}, an), i = t.substr(1, t.length - 2), {
|
|
1132
1132
|
value: i,
|
|
1133
1133
|
literal: t
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
for (var e, t = "", n = "";
|
|
1138
|
-
return n.search(/[^gimuy]/g) >= 0 &&
|
|
1136
|
+
function kn() {
|
|
1137
|
+
for (var e, t = "", n = ""; M < N && (e = j[M], mn(e.charCodeAt(0)));) ++M, e === "\\" && M < N ? J({}, B, V) : (n += e, t += e);
|
|
1138
|
+
return n.search(/[^gimuy]/g) >= 0 && J({}, rn, n), {
|
|
1139
1139
|
value: n,
|
|
1140
1140
|
literal: t
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function An() {
|
|
1144
1144
|
var e, t, n, r;
|
|
1145
|
-
return
|
|
1145
|
+
return P = null, gn(), e = M, t = On(), n = kn(), r = Dn(t.value, n.value), {
|
|
1146
1146
|
literal: t.literal + n.literal,
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
regex: {
|
|
@@ -1150,164 +1150,164 @@ function kn() {
|
|
|
1150
1150
|
flags: n.value
|
|
1151
1151
|
},
|
|
1152
1152
|
start: e,
|
|
1153
|
-
end:
|
|
1153
|
+
end: M
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e.type === F || e.type === I || e.type ===
|
|
1156
|
+
function jn(e) {
|
|
1157
|
+
return e.type === F || e.type === I || e.type === Lt || e.type === zt;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1160
|
-
if (
|
|
1161
|
-
type:
|
|
1162
|
-
start:
|
|
1163
|
-
end:
|
|
1159
|
+
function Mn() {
|
|
1160
|
+
if (gn(), M >= N) return {
|
|
1161
|
+
type: Rt,
|
|
1162
|
+
start: M,
|
|
1163
|
+
end: M
|
|
1164
1164
|
};
|
|
1165
|
-
let e =
|
|
1166
|
-
return
|
|
1165
|
+
let e = j.charCodeAt(M);
|
|
1166
|
+
return G(e) ? xn() : e === 40 || e === 41 || e === 59 ? Sn() : e === 39 || e === 34 ? En() : e === 46 ? H(j.charCodeAt(M + 1)) ? Tn() : Sn() : H(e) ? Tn() : Sn();
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
let e =
|
|
1170
|
-
return
|
|
1168
|
+
function K() {
|
|
1169
|
+
let e = P;
|
|
1170
|
+
return M = e.end, P = Mn(), M = e.end, e;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
let e =
|
|
1174
|
-
|
|
1172
|
+
function Nn() {
|
|
1173
|
+
let e = M;
|
|
1174
|
+
P = Mn(), M = e;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
let t = new
|
|
1176
|
+
function Pn(e) {
|
|
1177
|
+
let t = new k(Vt);
|
|
1178
1178
|
return t.elements = e, t;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
let r = new
|
|
1180
|
+
function Fn(e, t, n) {
|
|
1181
|
+
let r = new k(e === "||" || e === "&&" ? qt : Ht);
|
|
1182
1182
|
return r.operator = e, r.left = t, r.right = n, r;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
let n = new
|
|
1184
|
+
function In(e, t) {
|
|
1185
|
+
let n = new k(Ut);
|
|
1186
1186
|
return n.callee = e, n.arguments = t, n;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
let r = new
|
|
1188
|
+
function Ln(e, t, n) {
|
|
1189
|
+
let r = new k(Wt);
|
|
1190
1190
|
return r.test = e, r.consequent = t, r.alternate = n, r;
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
let t = new
|
|
1192
|
+
function Rn(e) {
|
|
1193
|
+
let t = new k(Gt);
|
|
1194
1194
|
return t.name = e, t;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
let t = new
|
|
1198
|
-
return t.value = e.value, t.raw =
|
|
1196
|
+
function q(e) {
|
|
1197
|
+
let t = new k(Kt);
|
|
1198
|
+
return t.value = e.value, t.raw = j.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
let r = new
|
|
1200
|
+
function zn(e, t, n) {
|
|
1201
|
+
let r = new k(Jt);
|
|
1202
1202
|
return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
let t = new
|
|
1204
|
+
function Bn(e) {
|
|
1205
|
+
let t = new k(Yt);
|
|
1206
1206
|
return t.properties = e, t;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
let r = new
|
|
1208
|
+
function Vn(e, t, n) {
|
|
1209
|
+
let r = new k(Xt);
|
|
1210
1210
|
return r.key = t, r.value = n, r.kind = e, r;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1213
|
-
let n = new
|
|
1212
|
+
function Hn(e, t) {
|
|
1213
|
+
let n = new k(Zt);
|
|
1214
1214
|
return n.operator = e, n.argument = t, n.prefix = !0, n;
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1217
|
-
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (
|
|
1218
|
-
throw n = Error(i), n.index =
|
|
1216
|
+
function J(e, t) {
|
|
1217
|
+
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (dn(t < r.length, "Message reference must be in range"), r[t]));
|
|
1218
|
+
throw n = Error(i), n.index = M, n.description = i, n;
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1221
|
-
e.type ===
|
|
1222
|
-
}
|
|
1223
|
-
function X(e) {
|
|
1224
|
-
let t = q();
|
|
1225
|
-
(t.type !== R || t.value !== e) && Hn(t);
|
|
1220
|
+
function Un(e) {
|
|
1221
|
+
e.type === Rt && J(e, nn), e.type === L && J(e, Qt), e.type === z && J(e, $t), e.type === F && J(e, en), e.type === I && J(e, tn), J(e, B, e.value);
|
|
1226
1222
|
}
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1223
|
+
function Y(e) {
|
|
1224
|
+
let t = K();
|
|
1225
|
+
(t.type !== R || t.value !== e) && Un(t);
|
|
1229
1226
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1227
|
+
function X(e) {
|
|
1228
|
+
return P.type === R && P.value === e;
|
|
1232
1229
|
}
|
|
1233
|
-
function Wn() {
|
|
1234
|
-
|
|
1235
|
-
for (j = N.start, X("["); !Z("]");) Z(",") ? (q(), e.push(null)) : (e.push(Q()), Z("]") || X(","));
|
|
1236
|
-
return q(), Nn(e);
|
|
1230
|
+
function Wn(e) {
|
|
1231
|
+
return P.type === I && P.value === e;
|
|
1237
1232
|
}
|
|
1238
1233
|
function Gn() {
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
return
|
|
1234
|
+
let e = [];
|
|
1235
|
+
for (M = P.start, Y("["); !X("]");) X(",") ? (K(), e.push(null)) : (e.push(Z()), X("]") || Y(","));
|
|
1236
|
+
return K(), Pn(e);
|
|
1242
1237
|
}
|
|
1243
1238
|
function Kn() {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
else return t = Gn(), X(":"), r = Q(), Bn("init", t, r);
|
|
1239
|
+
M = P.start;
|
|
1240
|
+
let e = K();
|
|
1241
|
+
return e.type === z || e.type === L ? (e.octal && J(e, on), q(e)) : Rn(e.value);
|
|
1248
1242
|
}
|
|
1249
1243
|
function qn() {
|
|
1250
|
-
var e
|
|
1251
|
-
|
|
1252
|
-
|
|
1244
|
+
var e, t, n, r;
|
|
1245
|
+
if (M = P.start, e = P, e.type === F) return n = Kn(), Y(":"), r = Z(), Vn("init", n, r);
|
|
1246
|
+
if (e.type === Rt || e.type === R) Un(e);
|
|
1247
|
+
else return t = Kn(), Y(":"), r = Z(), Vn("init", t, r);
|
|
1253
1248
|
}
|
|
1254
1249
|
function Jn() {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
return
|
|
1250
|
+
var e = [], t, n, r, i = {}, a = String;
|
|
1251
|
+
for (M = P.start, Y("{"); !X("}");) t = qn(), n = t.key.type === Gt ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? J({}, sn) : i[r] = !0, e.push(t), X("}") || Y(",");
|
|
1252
|
+
return Y("}"), Bn(e);
|
|
1258
1253
|
}
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
if (Z("[")) return Wn();
|
|
1264
|
-
if (Z("{")) return qn();
|
|
1265
|
-
if (e = N.type, j = N.start, e === F || Yn[N.value]) n = Ln(q().value);
|
|
1266
|
-
else if (e === z || e === L) N.octal && Y(N, on), n = J(q());
|
|
1267
|
-
else if (e === I) throw Error(H);
|
|
1268
|
-
else e === Rt ? (t = q(), t.value = t.value === "true", n = J(t)) : e === zt ? (t = q(), t.value = null, n = J(t)) : Z("/") || Z("/=") ? (n = J(kn()), Mn()) : Hn(q());
|
|
1269
|
-
return n;
|
|
1254
|
+
function Yn() {
|
|
1255
|
+
Y("(");
|
|
1256
|
+
let e = sr();
|
|
1257
|
+
return Y(")"), e;
|
|
1270
1258
|
}
|
|
1259
|
+
var Xn = { if: 1 };
|
|
1271
1260
|
function Zn() {
|
|
1272
|
-
|
|
1273
|
-
if (X("(")
|
|
1274
|
-
|
|
1261
|
+
var e, t, n;
|
|
1262
|
+
if (X("(")) return Yn();
|
|
1263
|
+
if (X("[")) return Gn();
|
|
1264
|
+
if (X("{")) return Jn();
|
|
1265
|
+
if (e = P.type, M = P.start, e === F || Xn[P.value]) n = Rn(K().value);
|
|
1266
|
+
else if (e === z || e === L) P.octal && J(P, on), n = q(K());
|
|
1267
|
+
else if (e === I) throw Error(cn);
|
|
1268
|
+
else e === Lt ? (t = K(), t.value = t.value === "true", n = q(t)) : e === zt ? (t = K(), t.value = null, n = q(t)) : X("/") || X("/=") ? (n = q(An()), Nn()) : Un(K());
|
|
1269
|
+
return n;
|
|
1275
1270
|
}
|
|
1276
1271
|
function Qn() {
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
return
|
|
1272
|
+
let e = [];
|
|
1273
|
+
if (Y("("), !X(")")) for (; M < N && (e.push(Z()), !X(")"));) Y(",");
|
|
1274
|
+
return Y(")"), e;
|
|
1280
1275
|
}
|
|
1281
1276
|
function $n() {
|
|
1282
|
-
|
|
1277
|
+
M = P.start;
|
|
1278
|
+
let e = K();
|
|
1279
|
+
return jn(e) || Un(e), Rn(e.value);
|
|
1283
1280
|
}
|
|
1284
1281
|
function er() {
|
|
1285
|
-
|
|
1286
|
-
let e = or();
|
|
1287
|
-
return X("]"), e;
|
|
1282
|
+
return Y("."), $n();
|
|
1288
1283
|
}
|
|
1289
1284
|
function tr() {
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
else break;
|
|
1294
|
-
return e;
|
|
1285
|
+
Y("[");
|
|
1286
|
+
let e = sr();
|
|
1287
|
+
return Y("]"), e;
|
|
1295
1288
|
}
|
|
1296
1289
|
function nr() {
|
|
1297
|
-
|
|
1298
|
-
if (
|
|
1290
|
+
for (var e = Zn(), t, n;;) if (X(".")) n = er(), e = zn(".", e, n);
|
|
1291
|
+
else if (X("(")) t = Qn(), e = In(e, t);
|
|
1292
|
+
else if (X("[")) n = tr(), e = zn("[", e, n);
|
|
1293
|
+
else break;
|
|
1299
1294
|
return e;
|
|
1300
1295
|
}
|
|
1301
1296
|
function rr() {
|
|
1297
|
+
let e = nr();
|
|
1298
|
+
if (P.type === R && (X("++") || X("--"))) throw Error(cn);
|
|
1299
|
+
return e;
|
|
1300
|
+
}
|
|
1301
|
+
function ir() {
|
|
1302
1302
|
var e, t;
|
|
1303
|
-
if (
|
|
1304
|
-
else if (
|
|
1305
|
-
else if (
|
|
1306
|
-
else if (
|
|
1307
|
-
else t =
|
|
1303
|
+
if (P.type !== R && P.type !== I) t = rr();
|
|
1304
|
+
else if (X("++") || X("--")) throw Error(cn);
|
|
1305
|
+
else if (X("+") || X("-") || X("~") || X("!")) e = K(), t = ir(), t = Hn(e.value, t);
|
|
1306
|
+
else if (Wn("delete") || Wn("void") || Wn("typeof")) throw Error(cn);
|
|
1307
|
+
else t = rr();
|
|
1308
1308
|
return t;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function ar(e) {
|
|
1311
1311
|
let t = 0;
|
|
1312
1312
|
if (e.type !== R && e.type !== I) return 0;
|
|
1313
1313
|
switch (e.value) {
|
|
@@ -1357,36 +1357,36 @@ function ir(e) {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
return t;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
var e =
|
|
1362
|
-
if (r =
|
|
1363
|
-
for (r.prec = i,
|
|
1360
|
+
function or() {
|
|
1361
|
+
var e = P, t, n, r, i, a, o, s, c = ir(), l;
|
|
1362
|
+
if (r = P, i = ar(r), i === 0) return c;
|
|
1363
|
+
for (r.prec = i, K(), t = [e, P], o = ir(), a = [
|
|
1364
1364
|
c,
|
|
1365
1365
|
r,
|
|
1366
1366
|
o
|
|
1367
|
-
]; (i =
|
|
1368
|
-
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n =
|
|
1369
|
-
r =
|
|
1367
|
+
]; (i = ar(P)) > 0;) {
|
|
1368
|
+
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Fn(s, c, o), a.push(n);
|
|
1369
|
+
r = K(), r.prec = i, a.push(r), t.push(P), n = ir(), a.push(n);
|
|
1370
1370
|
}
|
|
1371
|
-
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n =
|
|
1371
|
+
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Fn(a[l - 1].value, a[l - 2], n), l -= 2;
|
|
1372
1372
|
return n;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
var e =
|
|
1376
|
-
return
|
|
1374
|
+
function Z() {
|
|
1375
|
+
var e = or(), t, n;
|
|
1376
|
+
return X("?") && (K(), t = Z(), Y(":"), n = Z(), e = Ln(e, t, n)), e;
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1379
|
-
let e =
|
|
1380
|
-
if (
|
|
1378
|
+
function sr() {
|
|
1379
|
+
let e = Z();
|
|
1380
|
+
if (X(",")) throw Error(cn);
|
|
1381
1381
|
return e;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1385
|
-
let t =
|
|
1386
|
-
if (
|
|
1383
|
+
function cr(e) {
|
|
1384
|
+
j = e, M = 0, N = j.length, P = null, Nn();
|
|
1385
|
+
let t = sr();
|
|
1386
|
+
if (P.type !== Rt) throw Error("Unexpect token after expression.");
|
|
1387
1387
|
return t;
|
|
1388
1388
|
}
|
|
1389
|
-
var
|
|
1389
|
+
var lr = {
|
|
1390
1390
|
NaN: "NaN",
|
|
1391
1391
|
E: "Math.E",
|
|
1392
1392
|
LN2: "Math.LN2",
|
|
@@ -1399,7 +1399,7 @@ var cr = {
|
|
|
1399
1399
|
MIN_VALUE: "Number.MIN_VALUE",
|
|
1400
1400
|
MAX_VALUE: "Number.MAX_VALUE"
|
|
1401
1401
|
};
|
|
1402
|
-
function
|
|
1402
|
+
function ur(e) {
|
|
1403
1403
|
function t(t, n, r, i) {
|
|
1404
1404
|
let a = e(n[0]);
|
|
1405
1405
|
return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
|
|
@@ -1431,7 +1431,7 @@ function lr(e) {
|
|
|
1431
1431
|
sqrt: "Math.sqrt",
|
|
1432
1432
|
tan: "Math.tan",
|
|
1433
1433
|
clamp: function(t) {
|
|
1434
|
-
t.length < 3 &&
|
|
1434
|
+
t.length < 3 && D("Missing arguments to clamp function."), t.length > 3 && D("Too many arguments to clamp function.");
|
|
1435
1435
|
let n = t.map(e);
|
|
1436
1436
|
return "Math.max(" + n[1] + ", Math.min(" + n[2] + "," + n[0] + "))";
|
|
1437
1437
|
},
|
|
@@ -1469,42 +1469,42 @@ function lr(e) {
|
|
|
1469
1469
|
regexp: a,
|
|
1470
1470
|
test: n("test", a),
|
|
1471
1471
|
if: function(t) {
|
|
1472
|
-
t.length < 3 &&
|
|
1472
|
+
t.length < 3 && D("Missing arguments to if function."), t.length > 3 && D("Too many arguments to if function.");
|
|
1473
1473
|
let n = t.map(e);
|
|
1474
1474
|
return "(" + n[0] + "?" + n[1] + ":" + n[2] + ")";
|
|
1475
1475
|
}
|
|
1476
1476
|
};
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function dr(e) {
|
|
1479
1479
|
let t = e && e.length - 1;
|
|
1480
1480
|
return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function fr(e) {
|
|
1483
1483
|
e ||= {};
|
|
1484
|
-
let t = e.allowed ?
|
|
1484
|
+
let t = e.allowed ? Ct(e.allowed) : {}, n = e.forbidden ? Ct(e.forbidden) : {}, r = e.constants || lr, i = (e.functions || ur)(d), a = e.globalvar, o = e.fieldvar, s = bt(a) ? a : (e) => `${a}["${e}"]`;
|
|
1485
1485
|
[...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
1486
1486
|
let c = {}, l = {}, u = 0;
|
|
1487
1487
|
function d(e) {
|
|
1488
|
-
if (
|
|
1488
|
+
if (xt(e)) return e;
|
|
1489
1489
|
let t = f[e.type];
|
|
1490
|
-
return t ??
|
|
1490
|
+
return t ?? D("Unsupported type: " + e.type), t(e);
|
|
1491
1491
|
}
|
|
1492
1492
|
let f = {
|
|
1493
1493
|
Literal: (e) => e.raw,
|
|
1494
1494
|
Identifier: (e) => {
|
|
1495
1495
|
let i = e.name;
|
|
1496
|
-
return u > 0 ? i :
|
|
1496
|
+
return u > 0 ? i : O(n, i) ? D("Illegal identifier: " + i) : O(r, i) ? r[i] : O(t, i) ? i : (c[i] = 1, s(i));
|
|
1497
1497
|
},
|
|
1498
1498
|
MemberExpression: (e) => {
|
|
1499
1499
|
let t = !e.computed, n = d(e.object);
|
|
1500
1500
|
t && (u += 1);
|
|
1501
1501
|
let r = d(e.property);
|
|
1502
|
-
return n === o && (l[
|
|
1502
|
+
return n === o && (l[dr(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
|
|
1503
1503
|
},
|
|
1504
1504
|
CallExpression: (e) => {
|
|
1505
|
-
e.callee.type !== "Identifier" &&
|
|
1506
|
-
let t = e.callee.name, n = e.arguments, r =
|
|
1507
|
-
return r ||
|
|
1505
|
+
e.callee.type !== "Identifier" && D("Illegal callee type: " + e.callee.type);
|
|
1506
|
+
let t = e.callee.name, n = e.arguments, r = O(i, t) && i[t];
|
|
1507
|
+
return r || D("Unrecognized function: " + t), bt(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
|
|
1508
1508
|
},
|
|
1509
1509
|
ArrayExpression: (e) => "[" + e.elements.map(d).join(",") + "]",
|
|
1510
1510
|
BinaryExpression: (e) => "(" + d(e.left) + " " + e.operator + " " + d(e.right) + ")",
|
|
@@ -1514,7 +1514,7 @@ function dr(e) {
|
|
|
1514
1514
|
ObjectExpression: (e) => {
|
|
1515
1515
|
for (let t of e.properties) {
|
|
1516
1516
|
let e = t.key.name;
|
|
1517
|
-
|
|
1517
|
+
gt.has(e) && D("Illegal property: " + e);
|
|
1518
1518
|
}
|
|
1519
1519
|
return "{" + e.properties.map(d).join(",") + "}";
|
|
1520
1520
|
},
|
|
@@ -1536,89 +1536,89 @@ function dr(e) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
//#endregion
|
|
1538
1538
|
//#region ../core/src/utils/smoothstep.js
|
|
1539
|
-
function
|
|
1539
|
+
function pr(e, t, n) {
|
|
1540
1540
|
return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
|
|
1541
1541
|
}
|
|
1542
1542
|
//#endregion
|
|
1543
1543
|
//#region ../core/src/utils/clamp.js
|
|
1544
|
-
function
|
|
1544
|
+
function mr(e, t = 0, n = 1) {
|
|
1545
1545
|
return Math.max(t, Math.min(n, e));
|
|
1546
1546
|
}
|
|
1547
1547
|
//#endregion
|
|
1548
1548
|
//#region ../core/src/utils/linearstep.js
|
|
1549
|
-
function
|
|
1550
|
-
return
|
|
1549
|
+
function hr(e, t, n) {
|
|
1550
|
+
return mr((n - e) / (t - e), 0, 1);
|
|
1551
1551
|
}
|
|
1552
1552
|
//#endregion
|
|
1553
1553
|
//#region ../core/src/utils/expression.js
|
|
1554
|
-
function
|
|
1554
|
+
function gr(e) {
|
|
1555
1555
|
return u(e) || ArrayBuffer.isView(e) ? e : null;
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
1557
|
+
function _r(e) {
|
|
1558
|
+
return gr(e) || (C(e) ? e : null);
|
|
1559
1559
|
}
|
|
1560
|
-
var
|
|
1561
|
-
clamp:
|
|
1560
|
+
var vr = {
|
|
1561
|
+
clamp: mr,
|
|
1562
1562
|
format(e, t) {
|
|
1563
|
-
return
|
|
1563
|
+
return Be(t)(e);
|
|
1564
1564
|
},
|
|
1565
1565
|
join(e, t) {
|
|
1566
|
-
return
|
|
1566
|
+
return gr(e).join(t);
|
|
1567
1567
|
},
|
|
1568
1568
|
indexof(e, t, n) {
|
|
1569
|
-
return
|
|
1569
|
+
return _r(e).indexOf(t, n);
|
|
1570
1570
|
},
|
|
1571
1571
|
lastindexof(e, t, n) {
|
|
1572
|
-
return
|
|
1572
|
+
return _r(e).lastIndexOf(t, n);
|
|
1573
1573
|
},
|
|
1574
1574
|
reverse(e) {
|
|
1575
|
-
return
|
|
1575
|
+
return C(e) ? Array.from(e).reverse().join("") : gr(e).slice().reverse();
|
|
1576
1576
|
},
|
|
1577
1577
|
slice(e, t, n) {
|
|
1578
|
-
return
|
|
1578
|
+
return _r(e).slice(t, n);
|
|
1579
1579
|
},
|
|
1580
1580
|
mapHasKey(e, t) {
|
|
1581
1581
|
return e.has(t);
|
|
1582
1582
|
},
|
|
1583
1583
|
isArray: u,
|
|
1584
|
-
isBoolean:
|
|
1584
|
+
isBoolean: me,
|
|
1585
1585
|
isDefined(e) {
|
|
1586
1586
|
return e !== void 0;
|
|
1587
1587
|
},
|
|
1588
|
-
isNumber:
|
|
1588
|
+
isNumber: he,
|
|
1589
1589
|
isObject: d,
|
|
1590
|
-
isRegExp:
|
|
1591
|
-
isString:
|
|
1590
|
+
isRegExp: ge,
|
|
1591
|
+
isString: C,
|
|
1592
1592
|
isValid(e) {
|
|
1593
1593
|
return e != null && e === e;
|
|
1594
1594
|
},
|
|
1595
|
-
lerp:
|
|
1596
|
-
linearstep:
|
|
1595
|
+
lerp: _e,
|
|
1596
|
+
linearstep: hr,
|
|
1597
1597
|
replace(e, t, n) {
|
|
1598
1598
|
return String(e).replace(t, n);
|
|
1599
1599
|
},
|
|
1600
1600
|
sort(e) {
|
|
1601
|
-
return
|
|
1601
|
+
return gr(e).slice().sort(ue);
|
|
1602
1602
|
},
|
|
1603
1603
|
center(e) {
|
|
1604
|
-
let t =
|
|
1604
|
+
let t = gr(e);
|
|
1605
1605
|
return (t[0] + t[t.length - 1]) / 2;
|
|
1606
1606
|
},
|
|
1607
1607
|
span(e) {
|
|
1608
|
-
return
|
|
1608
|
+
return ve(e);
|
|
1609
1609
|
},
|
|
1610
|
-
smoothstep:
|
|
1610
|
+
smoothstep: pr
|
|
1611
1611
|
};
|
|
1612
|
-
function
|
|
1613
|
-
let t = !1, n =
|
|
1612
|
+
function yr(e) {
|
|
1613
|
+
let t = !1, n = Dr(e, {}, { resolveScaleResolution: () => (t = !0, { channel: "analysis" }) });
|
|
1614
1614
|
return {
|
|
1615
1615
|
usesScaleHelper: t,
|
|
1616
1616
|
globals: n.globals
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
let n =
|
|
1621
|
-
for (let e in
|
|
1619
|
+
function br(e, t) {
|
|
1620
|
+
let n = ur(e);
|
|
1621
|
+
for (let e in vr) n[e] = `this.${e}`;
|
|
1622
1622
|
for (let r of [
|
|
1623
1623
|
"scale",
|
|
1624
1624
|
"invert",
|
|
@@ -1626,24 +1626,24 @@ function yr(e, t) {
|
|
|
1626
1626
|
"range",
|
|
1627
1627
|
"bandwidth",
|
|
1628
1628
|
"linearize"
|
|
1629
|
-
]) n[r] = (n) =>
|
|
1629
|
+
]) n[r] = (n) => xr(e, t, r, n);
|
|
1630
1630
|
return n;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function xr(e, t, n, r) {
|
|
1633
1633
|
if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1634
1634
|
if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
|
|
1635
|
-
let i =
|
|
1635
|
+
let i = Sr(r[0]);
|
|
1636
1636
|
if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1637
1637
|
let a = t.resolveScaleResolution?.(i);
|
|
1638
1638
|
if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
|
|
1639
1639
|
let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
|
|
1640
1640
|
return `${t.globalvar}["${o.codeName}"](${s})`;
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Sr(e) {
|
|
1643
1643
|
return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1646
|
-
let n = (n) =>
|
|
1645
|
+
function Cr(e, t) {
|
|
1646
|
+
let n = (n) => Tr(t, e, n);
|
|
1647
1647
|
if (e === "domain") return () => n(() => t.getDomain());
|
|
1648
1648
|
if (e === "range") return () => n(() => t.getScale().range());
|
|
1649
1649
|
if (e === "bandwidth") return () => n(() => {
|
|
@@ -1656,17 +1656,17 @@ function Sr(e, t) {
|
|
|
1656
1656
|
if (e === "linearize") return (e) => n(() => e == null ? null : typeof t.fromComplex == "function" ? t.fromComplex(e) : e);
|
|
1657
1657
|
throw Error("Unknown scale helper: " + e);
|
|
1658
1658
|
}
|
|
1659
|
-
var
|
|
1660
|
-
function
|
|
1661
|
-
if (
|
|
1662
|
-
|
|
1659
|
+
var wr = /* @__PURE__ */ new WeakSet();
|
|
1660
|
+
function Tr(e, t, n) {
|
|
1661
|
+
if (wr.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
|
|
1662
|
+
wr.add(e);
|
|
1663
1663
|
try {
|
|
1664
1664
|
return n();
|
|
1665
1665
|
} finally {
|
|
1666
|
-
|
|
1666
|
+
wr.delete(e);
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function Er(e, t, n, r) {
|
|
1670
1670
|
let i = /* @__PURE__ */ new Set(), a = () => {
|
|
1671
1671
|
for (let e of i) e();
|
|
1672
1672
|
}, o = () => {
|
|
@@ -1691,7 +1691,7 @@ function Tr(e, t, n, r) {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
};
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function Dr(e, t = {}, n = {}) {
|
|
1695
1695
|
try {
|
|
1696
1696
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 1, o = {
|
|
1697
1697
|
...n,
|
|
@@ -1701,38 +1701,38 @@ function Er(e, t = {}, n = {}) {
|
|
|
1701
1701
|
let s = e + ":" + n, c = i.get(s);
|
|
1702
1702
|
if (c) return c;
|
|
1703
1703
|
let l = r.get(s);
|
|
1704
|
-
l || (l =
|
|
1704
|
+
l || (l = Er(e, n, o, "__scale_dependency_" + a++), r.set(s, l));
|
|
1705
1705
|
let u = "__scale_helper_" + a++, d = {
|
|
1706
1706
|
codeName: u,
|
|
1707
1707
|
dependency: l
|
|
1708
1708
|
};
|
|
1709
|
-
return i.set(s, d), t[u] =
|
|
1709
|
+
return i.set(s, d), t[u] = Cr(e, o), d;
|
|
1710
1710
|
}
|
|
1711
|
-
}, s =
|
|
1711
|
+
}, s = fr({
|
|
1712
1712
|
forbidden: [],
|
|
1713
1713
|
allowed: ["datum", "undefined"],
|
|
1714
1714
|
globalvar: "globalObject",
|
|
1715
1715
|
fieldvar: "datum",
|
|
1716
|
-
functions: (e) =>
|
|
1717
|
-
})(
|
|
1716
|
+
functions: (e) => br(e, o)
|
|
1717
|
+
})(cr(e)), c = Function("datum", "globalObject", `"use strict";
|
|
1718
1718
|
try {
|
|
1719
1719
|
return (${s.code});
|
|
1720
1720
|
} catch (e) {
|
|
1721
1721
|
throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
|
|
1722
|
-
}`).bind(
|
|
1722
|
+
}`).bind(vr), l = (e) => c(e, t);
|
|
1723
1723
|
return l.fields = s.fields, l.globals = s.globals, l.code = s.code, l.scaleDependencies = Array.from(r.values()), l;
|
|
1724
1724
|
} catch (t) {
|
|
1725
1725
|
throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1728
|
+
var Or = fr({
|
|
1729
1729
|
forbidden: [],
|
|
1730
1730
|
allowed: ["event"],
|
|
1731
1731
|
globalvar: "globalObject"
|
|
1732
1732
|
});
|
|
1733
|
-
function
|
|
1733
|
+
function kr(e) {
|
|
1734
1734
|
try {
|
|
1735
|
-
let t =
|
|
1735
|
+
let t = Or(cr(e));
|
|
1736
1736
|
return Function("event", "globalObject", `"use strict";
|
|
1737
1737
|
try {
|
|
1738
1738
|
return !!(${t.code});
|
|
@@ -1745,7 +1745,7 @@ function Or(e) {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
//#endregion
|
|
1747
1747
|
//#region ../core/src/utils/interactionConfig.js
|
|
1748
|
-
function
|
|
1748
|
+
function Ar(e) {
|
|
1749
1749
|
if (typeof e == "string") {
|
|
1750
1750
|
let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
|
|
1751
1751
|
if (!t) throw Error(`Invalid event type string: ${e}`);
|
|
@@ -1753,40 +1753,40 @@ function kr(e) {
|
|
|
1753
1753
|
return r && (i.filter = r), i;
|
|
1754
1754
|
} else return e;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return e?.filter ?
|
|
1756
|
+
function jr(e) {
|
|
1757
|
+
return e?.filter ? kr(e.filter) : () => !0;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function Mr(e, t, n) {
|
|
1760
1760
|
if (!t.includes(e.type)) throw Error(n);
|
|
1761
1761
|
return e;
|
|
1762
1762
|
}
|
|
1763
1763
|
//#endregion
|
|
1764
1764
|
//#region ../core/src/selection/selection.js
|
|
1765
|
-
function
|
|
1765
|
+
function Nr(e) {
|
|
1766
1766
|
return {
|
|
1767
1767
|
type: "single",
|
|
1768
1768
|
datum: e,
|
|
1769
|
-
uniqueId: e?.[
|
|
1769
|
+
uniqueId: e?.[T]
|
|
1770
1770
|
};
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function Pr(e) {
|
|
1773
1773
|
return e ??= [], {
|
|
1774
1774
|
type: "multi",
|
|
1775
|
-
data: new Map(e.map((e) => [e[
|
|
1775
|
+
data: new Map(e.map((e) => [e[T], e]))
|
|
1776
1776
|
};
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Fr(e) {
|
|
1779
1779
|
return {
|
|
1780
1780
|
type: "interval",
|
|
1781
1781
|
intervals: Object.fromEntries(e.map((e) => [e, null]))
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Ir(e, { add: t, remove: n, toggle: r }) {
|
|
1785
1785
|
let i = e.data;
|
|
1786
|
-
for (let e of t ?? []) i.set(e[
|
|
1787
|
-
for (let e of n ?? []) i.delete(e[
|
|
1786
|
+
for (let e of t ?? []) i.set(e[T], e);
|
|
1787
|
+
for (let e of n ?? []) i.delete(e[T]);
|
|
1788
1788
|
for (let e of r ?? []) {
|
|
1789
|
-
let t = e[
|
|
1789
|
+
let t = e[T];
|
|
1790
1790
|
i.has(t) ? i.delete(t) : i.set(t, e);
|
|
1791
1791
|
}
|
|
1792
1792
|
return {
|
|
@@ -1794,59 +1794,59 @@ function Fr(e, { add: t, remove: n, toggle: r }) {
|
|
|
1794
1794
|
data: i
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1798
|
-
let n = !!(e.empty ?? !0), r =
|
|
1799
|
-
if (
|
|
1800
|
-
if (
|
|
1801
|
-
if (
|
|
1802
|
-
let a = Object.keys(t.intervals), o = Object.keys(i).filter(
|
|
1797
|
+
function Lr(e, t) {
|
|
1798
|
+
let n = !!(e.empty ?? !0), r = $e(e.param), i = e.fields ?? {};
|
|
1799
|
+
if (zr(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(T)}]`;
|
|
1800
|
+
if (Br(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(T)}])`;
|
|
1801
|
+
if (Rr(t)) {
|
|
1802
|
+
let a = Object.keys(t.intervals), o = Object.keys(i).filter(Si);
|
|
1803
1803
|
if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
|
|
1804
1804
|
if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
|
|
1805
1805
|
let s = (e) => `datum[${JSON.stringify(e)}]`;
|
|
1806
1806
|
return a.map((e) => {
|
|
1807
|
-
let t =
|
|
1807
|
+
let t = Ai(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
|
|
1808
1808
|
return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
|
|
1809
1809
|
}).join(" && ");
|
|
1810
1810
|
} else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Rr(e) {
|
|
1813
1813
|
return e.type === "interval";
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function zr(e) {
|
|
1816
1816
|
return e.type === "single";
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function Br(e) {
|
|
1819
1819
|
return e.type === "multi";
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Vr(e) {
|
|
1822
1822
|
let t = typeof e == "string" ? { type: e } : { ...e };
|
|
1823
|
-
return t.on = t.on ?
|
|
1823
|
+
return t.on = t.on ? Ar(t.on) : Hr(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Ar(t.clear), Hr(t) && t.on.type === "click" && (t.toggle = !0), t;
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Hr(e) {
|
|
1826
1826
|
return e && e.type == "point";
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function Ur(e) {
|
|
1829
1829
|
return e && e.type == "interval";
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function Wr(e) {
|
|
1832
1832
|
return Object.values(e.intervals).some((e) => e && e.length === 2);
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function Gr(e, t) {
|
|
1835
1835
|
return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
|
|
1836
1836
|
}
|
|
1837
1837
|
//#endregion
|
|
1838
1838
|
//#region ../core/src/encoder/accessor.js
|
|
1839
|
-
function
|
|
1839
|
+
function Kr(e, t, n) {
|
|
1840
1840
|
if (!e) throw Error("Cannot create an accessor without a channel.");
|
|
1841
1841
|
function r(n) {
|
|
1842
1842
|
let r = n;
|
|
1843
|
-
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey =
|
|
1843
|
+
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Yr(t), r.scaleChannel = ((ui(t) && t.resolutionChannel) ?? (Pi(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Xr({
|
|
1844
1844
|
scaleChannel: r.scaleChannel,
|
|
1845
|
-
source:
|
|
1845
|
+
source: Jr(t)
|
|
1846
1846
|
}).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
|
|
1847
1847
|
}
|
|
1848
1848
|
function i(e) {
|
|
1849
|
-
if (
|
|
1849
|
+
if (w(e)) {
|
|
1850
1850
|
let t = r(n.createExpression(e.expr));
|
|
1851
1851
|
if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
|
|
1852
1852
|
return t;
|
|
@@ -1855,89 +1855,89 @@ function Gr(e, t, n) {
|
|
|
1855
1855
|
return r(() => t);
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
|
-
if (
|
|
1859
|
-
return r(
|
|
1858
|
+
if (Q(t)) try {
|
|
1859
|
+
return r(ct(t.field));
|
|
1860
1860
|
} catch (e) {
|
|
1861
1861
|
throw Error(`Invalid field definition: ${e.message}`, { cause: e });
|
|
1862
1862
|
}
|
|
1863
|
-
else if (
|
|
1864
|
-
else if (
|
|
1865
|
-
else if (
|
|
1863
|
+
else if (hi(t)) return r(n.createExpression(t.expr));
|
|
1864
|
+
else if (li(t)) return i(t.datum);
|
|
1865
|
+
else if (ci(t)) return i(t.value);
|
|
1866
1866
|
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".`);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function qr(e) {
|
|
1869
1869
|
return e.scaleChannel !== void 0;
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1872
|
-
if (
|
|
1871
|
+
function Jr(e) {
|
|
1872
|
+
if (Q(e)) return {
|
|
1873
1873
|
kind: "field",
|
|
1874
1874
|
value: e.field
|
|
1875
1875
|
};
|
|
1876
|
-
if (
|
|
1876
|
+
if (hi(e)) return {
|
|
1877
1877
|
kind: "expr",
|
|
1878
1878
|
value: e.expr
|
|
1879
1879
|
};
|
|
1880
|
-
if (
|
|
1880
|
+
if (li(e)) return {
|
|
1881
1881
|
kind: "datum",
|
|
1882
1882
|
value: e.datum
|
|
1883
1883
|
};
|
|
1884
|
-
if (
|
|
1884
|
+
if (ci(e)) return {
|
|
1885
1885
|
kind: "value",
|
|
1886
1886
|
value: e.value
|
|
1887
1887
|
};
|
|
1888
1888
|
throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1891
|
-
let t =
|
|
1892
|
-
return t.kind === "datum" || t.kind === "value" ? "constant|" +
|
|
1890
|
+
function Yr(e) {
|
|
1891
|
+
let t = Jr(e);
|
|
1892
|
+
return t.kind === "datum" || t.kind === "value" ? "constant|" + $r(t.value) : t.kind + "|" + Qr(t);
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function Xr({ scaleChannel: e, source: t, type: n }) {
|
|
1895
1895
|
if (!e) throw Error("Cannot build a domain key without a scale channel.");
|
|
1896
|
-
let r = e + "|" + t.kind + "|" +
|
|
1896
|
+
let r = e + "|" + t.kind + "|" + Qr(t);
|
|
1897
1897
|
return {
|
|
1898
1898
|
domainKeyBase: r,
|
|
1899
1899
|
domainKey: n ? n + "|" + r : void 0
|
|
1900
1900
|
};
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1903
|
-
let { domainKey: n, domainKeyBase: r } =
|
|
1902
|
+
function Zr(e, t) {
|
|
1903
|
+
let { domainKey: n, domainKeyBase: r } = Xr({
|
|
1904
1904
|
scaleChannel: e.scaleChannel,
|
|
1905
|
-
source:
|
|
1905
|
+
source: Jr(e.channelDef),
|
|
1906
1906
|
type: t
|
|
1907
1907
|
});
|
|
1908
1908
|
if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
|
|
1909
1909
|
return e.domainKeyBase = r, e.domainKey = n, n;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function Qr(e) {
|
|
1912
1912
|
switch (e.kind) {
|
|
1913
1913
|
case "field":
|
|
1914
1914
|
case "expr": return e.value;
|
|
1915
1915
|
case "datum":
|
|
1916
|
-
case "value": return
|
|
1916
|
+
case "value": return $r(e.value);
|
|
1917
1917
|
default: throw Error("Unknown domain key source.");
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return
|
|
1920
|
+
function $r(e) {
|
|
1921
|
+
return w(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
|
|
1922
1922
|
}
|
|
1923
1923
|
//#endregion
|
|
1924
1924
|
//#region ../core/src/encoder/encoder.js
|
|
1925
|
-
function
|
|
1926
|
-
let i, a =
|
|
1925
|
+
function ei(e, t, n, r) {
|
|
1926
|
+
let i, a = rt(!1), o = () => {
|
|
1927
1927
|
if (i) return i;
|
|
1928
1928
|
let o = n.findValue(e);
|
|
1929
1929
|
if (!o) return a;
|
|
1930
1930
|
let s = {};
|
|
1931
|
-
if (
|
|
1931
|
+
if (Rr(o)) {
|
|
1932
1932
|
let n = Object.keys(o.intervals);
|
|
1933
1933
|
for (let r of n) {
|
|
1934
1934
|
let n = t[r];
|
|
1935
|
-
if (
|
|
1935
|
+
if (Q(n)) {
|
|
1936
1936
|
s[r] = n.field;
|
|
1937
1937
|
continue;
|
|
1938
1938
|
} else if (n && "condition" in n) {
|
|
1939
1939
|
let e = n.condition;
|
|
1940
|
-
if (
|
|
1940
|
+
if (Q(e)) {
|
|
1941
1941
|
s[r] = e.field;
|
|
1942
1942
|
continue;
|
|
1943
1943
|
}
|
|
@@ -1945,7 +1945,7 @@ function $r(e, t, n, r) {
|
|
|
1945
1945
|
throw Error(`Selection "${e}" has an interval for "${r}" channel, but could not find a fieldDef: ${JSON.stringify(t[r])}`);
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
|
-
let c =
|
|
1948
|
+
let c = Lr({
|
|
1949
1949
|
type: "filter",
|
|
1950
1950
|
param: e,
|
|
1951
1951
|
fields: s,
|
|
@@ -1958,41 +1958,41 @@ function $r(e, t, n, r) {
|
|
|
1958
1958
|
empty: r ?? !0
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
let i =
|
|
1961
|
+
function ti(e, t, n, r) {
|
|
1962
|
+
let i = gi(t) || _i(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], a = [...i, t], o = a.map((t, o) => {
|
|
1963
1963
|
let s = i[o];
|
|
1964
1964
|
return {
|
|
1965
|
-
accessor:
|
|
1966
|
-
predicate: s?.param ?
|
|
1965
|
+
accessor: Kr(e, t, r),
|
|
1966
|
+
predicate: s?.param ? ei(s.param, n, r, s.empty) : Object.assign(rt(o === a.length - 1), { empty: !1 })
|
|
1967
1967
|
};
|
|
1968
1968
|
});
|
|
1969
1969
|
if (o.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
|
|
1970
1970
|
return o;
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function ni(e, t) {
|
|
1973
1973
|
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale();
|
|
1974
1974
|
for (let [i, a] of Object.entries(t)) {
|
|
1975
1975
|
if (!a) continue;
|
|
1976
1976
|
let o = i;
|
|
1977
|
-
|
|
1977
|
+
ri(o) || (n[o] = oi(ti(o, a, t, e.paramRuntime), r));
|
|
1978
1978
|
}
|
|
1979
1979
|
return n;
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function ri(e) {
|
|
1982
1982
|
return e === "key" || e === "search" || e === "tooltip";
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function ii(e) {
|
|
1985
1985
|
return e.branches.map((e) => e.accessor);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function ai(e) {
|
|
1988
1988
|
return e.branches.find((e) => !e.accessor.constant)?.accessor;
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function oi(e, t) {
|
|
1991
1991
|
if (e.length === 1) {
|
|
1992
|
-
let n =
|
|
1992
|
+
let n = si(e[0].accessor, t);
|
|
1993
1993
|
return Object.assign(n, { branches: e });
|
|
1994
1994
|
}
|
|
1995
|
-
let n = e.map((e) => e.predicate), r = e.map((e) =>
|
|
1995
|
+
let n = e.map((e) => e.predicate), r = e.map((e) => si(e.accessor, t));
|
|
1996
1996
|
return Object.assign((e) => {
|
|
1997
1997
|
for (let t = 0; t < r.length; t++) if (n[t](e)) return r[t](e);
|
|
1998
1998
|
}, {
|
|
@@ -2002,7 +2002,7 @@ function ai(e, t) {
|
|
|
2002
2002
|
channelDef: e.at(-1).accessor.channelDef
|
|
2003
2003
|
});
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function si(e, t) {
|
|
2006
2006
|
let { channel: n, scaleChannel: r, channelDef: i } = e, a = e.scaleChannel ? t(r) : void 0;
|
|
2007
2007
|
if (r && !a) throw Error(`Missing scale! "${n}": ${JSON.stringify(i)}`);
|
|
2008
2008
|
return Object.assign(a ? (t) => a(e(t)) : (t) => e(t), {
|
|
@@ -2010,96 +2010,96 @@ function oi(e, t) {
|
|
|
2010
2010
|
constant: e.constant,
|
|
2011
2011
|
branches: [{
|
|
2012
2012
|
accessor: e,
|
|
2013
|
-
predicate:
|
|
2013
|
+
predicate: rt(!0)
|
|
2014
2014
|
}],
|
|
2015
2015
|
channelDef: i
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function ci(e) {
|
|
2019
2019
|
return e && "value" in e;
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function Q(e) {
|
|
2022
2022
|
return e && "field" in e;
|
|
2023
2023
|
}
|
|
2024
|
-
function ci(e) {
|
|
2025
|
-
return e && "datum" in e;
|
|
2026
|
-
}
|
|
2027
2024
|
function li(e) {
|
|
2028
|
-
return
|
|
2025
|
+
return e && "datum" in e;
|
|
2029
2026
|
}
|
|
2030
2027
|
function ui(e) {
|
|
2031
|
-
|
|
2032
|
-
let t = e.condition;
|
|
2033
|
-
return (Array.isArray(t) ? t : [t]).find((e) => li(e));
|
|
2034
|
-
} else if (li(e)) return e;
|
|
2028
|
+
return Q(e) || li(e) || hi(e) || mi(e);
|
|
2035
2029
|
}
|
|
2036
2030
|
function di(e) {
|
|
2037
|
-
|
|
2031
|
+
if (_i(e)) {
|
|
2032
|
+
let t = e.condition;
|
|
2033
|
+
return (Array.isArray(t) ? t : [t]).find((e) => ui(e));
|
|
2034
|
+
} else if (ui(e)) return e;
|
|
2035
|
+
}
|
|
2036
|
+
function fi(e) {
|
|
2037
|
+
let t = e && di(e);
|
|
2038
2038
|
return t != null && t.type != "quantitative" && t.scale !== null;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function pi(e, t) {
|
|
2041
2041
|
let n = e.mark.encoding[t];
|
|
2042
2042
|
if (Array.isArray(n)) throw Error("Not a channel def with scale!");
|
|
2043
2043
|
{
|
|
2044
|
-
let e =
|
|
2044
|
+
let e = di(n);
|
|
2045
2045
|
if (e) return e;
|
|
2046
2046
|
}
|
|
2047
2047
|
throw Error("Not a channel def with scale!");
|
|
2048
2048
|
}
|
|
2049
|
-
function pi(e) {
|
|
2050
|
-
return e && "chrom" in e;
|
|
2051
|
-
}
|
|
2052
2049
|
function mi(e) {
|
|
2053
|
-
return e && "
|
|
2050
|
+
return e && "chrom" in e;
|
|
2054
2051
|
}
|
|
2055
2052
|
function hi(e) {
|
|
2056
|
-
return
|
|
2053
|
+
return e && "expr" in e;
|
|
2057
2054
|
}
|
|
2058
2055
|
function gi(e) {
|
|
2059
|
-
return
|
|
2056
|
+
return (Q(e) || li(e)) && "condition" in e;
|
|
2060
2057
|
}
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
return _i.includes(e);
|
|
2058
|
+
function _i(e) {
|
|
2059
|
+
return ci(e) && "condition" in e;
|
|
2064
2060
|
}
|
|
2061
|
+
var vi = ["x", "y"], yi = ["x2", "y2"], bi = ["xOffset", "yOffset"], xi = [...vi, ...yi];
|
|
2065
2062
|
function Si(e) {
|
|
2066
|
-
return
|
|
2063
|
+
return vi.includes(e);
|
|
2067
2064
|
}
|
|
2068
2065
|
function Ci(e) {
|
|
2069
|
-
return
|
|
2066
|
+
return xi.includes(e);
|
|
2070
2067
|
}
|
|
2071
2068
|
function wi(e) {
|
|
2072
|
-
return
|
|
2069
|
+
return bi.includes(e);
|
|
2070
|
+
}
|
|
2071
|
+
function Ti(e) {
|
|
2072
|
+
return ji(e) == "x" ? "xOffset" : "yOffset";
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Ei(e, t, n) {
|
|
2075
2075
|
return t ?? (n ? 0 : e);
|
|
2076
2076
|
}
|
|
2077
|
-
var
|
|
2077
|
+
var Di = {
|
|
2078
2078
|
x: "x2",
|
|
2079
2079
|
y: "y2"
|
|
2080
|
-
},
|
|
2081
|
-
function Oi(e) {
|
|
2082
|
-
return e in Di;
|
|
2083
|
-
}
|
|
2080
|
+
}, Oi = Object.fromEntries(Object.entries(Di).map((e) => [e[1], e[0]]));
|
|
2084
2081
|
function ki(e) {
|
|
2085
|
-
|
|
2086
|
-
if (t) return t;
|
|
2087
|
-
throw Error(`${e} has no secondary channel!`);
|
|
2082
|
+
return e in Oi;
|
|
2088
2083
|
}
|
|
2089
2084
|
function Ai(e) {
|
|
2090
|
-
|
|
2085
|
+
let t = Di[e];
|
|
2086
|
+
if (t) return t;
|
|
2087
|
+
throw Error(`${e} has no secondary channel!`);
|
|
2091
2088
|
}
|
|
2092
2089
|
function ji(e) {
|
|
2090
|
+
return Oi[e] ?? e;
|
|
2091
|
+
}
|
|
2092
|
+
function Mi(e) {
|
|
2093
2093
|
return [
|
|
2094
2094
|
"color",
|
|
2095
2095
|
"fill",
|
|
2096
2096
|
"stroke"
|
|
2097
|
-
].includes(
|
|
2097
|
+
].includes(ji(e));
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function Ni(e) {
|
|
2100
2100
|
return ["shape", "direction"].includes(e);
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function Pi(e) {
|
|
2103
2103
|
return [
|
|
2104
2104
|
"x",
|
|
2105
2105
|
"y",
|
|
@@ -2123,7 +2123,7 @@ function Ni(e) {
|
|
|
2123
2123
|
"sample"
|
|
2124
2124
|
].includes(e);
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function Fi(e) {
|
|
2127
2127
|
switch (e) {
|
|
2128
2128
|
case "shape": return [
|
|
2129
2129
|
"circle",
|
|
@@ -2145,9 +2145,9 @@ function Pi(e) {
|
|
|
2145
2145
|
default:
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2149
|
-
if (!
|
|
2150
|
-
let t = new Map(
|
|
2148
|
+
function Ii(e) {
|
|
2149
|
+
if (!Ni(e)) throw Error("Not a discrete channel: " + e);
|
|
2150
|
+
let t = new Map(Fi(e).map((e, t) => [e, t]));
|
|
2151
2151
|
return (n) => {
|
|
2152
2152
|
let r = t.get(n);
|
|
2153
2153
|
if (r !== void 0) return r;
|
|
@@ -2156,20 +2156,84 @@ function Fi(e) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
//#endregion
|
|
2158
2158
|
//#region ../core/src/utils/arrayUtils.js
|
|
2159
|
-
function
|
|
2159
|
+
function Li(e, t) {
|
|
2160
2160
|
return e.length == t.length && e.every((n, r) => e[r] === t[r]);
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function Ri(e) {
|
|
2163
2163
|
return Array.isArray(e) ? e : e === void 0 ? [] : [e];
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function zi(e) {
|
|
2166
2166
|
return e[e.length - 1];
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function Bi(e, t, n) {
|
|
2169
2169
|
if (t < 0 || t >= e.length) throw Error("Source index out of range.");
|
|
2170
2170
|
if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
|
|
2171
2171
|
let [r] = e.splice(t, 1);
|
|
2172
2172
|
e.splice(n, 0, r);
|
|
2173
2173
|
}
|
|
2174
2174
|
//#endregion
|
|
2175
|
-
|
|
2175
|
+
//#region ../core/src/view/renderingContext/clipOptions.js
|
|
2176
|
+
function Vi(e) {
|
|
2177
|
+
if (e.clip) return e.clip;
|
|
2178
|
+
if (e.clipRect) return {
|
|
2179
|
+
rect: e.clipRect,
|
|
2180
|
+
clipX: !0,
|
|
2181
|
+
clipY: !0
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
function Hi(e, t) {
|
|
2185
|
+
return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
|
|
2186
|
+
}
|
|
2187
|
+
function $(e, t, n) {
|
|
2188
|
+
return t || n ? {
|
|
2189
|
+
rect: e,
|
|
2190
|
+
clipX: t,
|
|
2191
|
+
clipY: n
|
|
2192
|
+
} : void 0;
|
|
2193
|
+
}
|
|
2194
|
+
function Ui(e, t) {
|
|
2195
|
+
return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
|
|
2196
|
+
}
|
|
2197
|
+
function Wi(e, t) {
|
|
2198
|
+
if (!e) return t;
|
|
2199
|
+
if (!t) return e;
|
|
2200
|
+
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;
|
|
2201
|
+
return $(e.rect.modify({
|
|
2202
|
+
x: () => i.x,
|
|
2203
|
+
y: () => a.y,
|
|
2204
|
+
width: () => i.width,
|
|
2205
|
+
height: () => a.height
|
|
2206
|
+
}), n, r);
|
|
2207
|
+
}
|
|
2208
|
+
function Gi(e, t) {
|
|
2209
|
+
if (e === !0) return $(t, !0, !0);
|
|
2210
|
+
if (e === "x") return $(t, !0, !1);
|
|
2211
|
+
if (e === "y") return $(t, !1, !0);
|
|
2212
|
+
}
|
|
2213
|
+
function Ki(e) {
|
|
2214
|
+
let t = e.mark;
|
|
2215
|
+
if (t) {
|
|
2216
|
+
let e = t.properties.clip;
|
|
2217
|
+
return {
|
|
2218
|
+
clipX: e === !0 || e === "x",
|
|
2219
|
+
clipY: e === !0 || e === "y"
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
let n = !1, r = !0, i = !0;
|
|
2223
|
+
return e.visit((e) => {
|
|
2224
|
+
let t = e.mark;
|
|
2225
|
+
if (t) {
|
|
2226
|
+
n = !0;
|
|
2227
|
+
let e = t.properties.clip;
|
|
2228
|
+
r &&= e === !0 || e === "x", i &&= e === !0 || e === "y";
|
|
2229
|
+
}
|
|
2230
|
+
}), {
|
|
2231
|
+
clipX: n && r,
|
|
2232
|
+
clipY: n && i
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2235
|
+
function qi(e, t, n) {
|
|
2236
|
+
if (t !== "never") return Wi(e, Gi(t, n));
|
|
2237
|
+
}
|
|
2238
|
+
//#endregion
|
|
2239
|
+
export { Ar as $, ne as $t, wi as A, Je as At, Vr as B, ye as Bt, mi as C, w as Ct, hi as D, nt as Dt, Ni as E, Xe as Et, vi as F, Be as Ft, Rr as G, u as Gt, Pr as H, oe as Ht, Ei as I, Ve as It, Hr as J, he as Jt, Ur as K, me as Kt, Kr as L, Oe as Lt, Si as M, Ge as Mt, ki as N, qe as Nt, Q as O, $e as Ot, ci as P, Ke as Pt, Ir as Q, te as Qt, Zr as R, we as Rt, Pi as S, et as St, li as T, Ze as Tt, Nr as U, le as Ut, Fr as V, t as Vt, Wr as W, o as Wt, Lr as X, C as Xt, zr as Y, d as Yt, Gr as Z, _e as Zt, ai as _, ct as _t, Ki as a, b as an, mr as at, Ai as b, it as bt, Ri as c, ie as cn, xt as ct, Li as d, yt as dt, re as en, jr as et, ni as f, vt as ft, ii as g, D as gt, Ii as h, mt as ht, $ as i, be as in, hr as it, Ci as j, Ue as jt, fi as k, Ye as kt, Bi as l, O as lt, pi as m, ht as mt, Hi as n, ve as nn, yr as nt, Vi as o, x as on, Ct as ot, di as p, _t as pt, Br as q, se as qt, Wi as r, s as rn, Dr as rt, qi as s, S as sn, St as st, Ui as t, f as tn, Mr as tt, zi as u, bt as ut, Ti as v, st as vt, Mi as w, Qe as wt, ui as x, tt as xt, ji as y, T as yt, qr as z, xe as zt };
|