@genome-spy/app 0.89.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agentApi-BUcXm-JC.js → agentApi-Z65dw-sD.js} +2808 -2638
- package/dist/agentApi.es.js +1607 -1570
- package/dist/agentShared.es.js +737 -678
- package/dist/{canvas2d-CGuVGvQk.js → canvas2d-DiPQvNtZ.js} +11 -9
- package/dist/{canvas2d-DgF0kstG.js → canvas2d-t_N10CeW.js} +24 -22
- package/dist/{clipOptions-DBJX_W31.js → clipOptions-B5PibDq3.js} +890 -900
- package/dist/{clipOptions-8BPf0WMZ.js → clipOptions-Cba4I0AO.js} +544 -554
- package/dist/{componentStyles-FsNmIb22.js → componentStyles-DGtQXvwc.js} +17 -15
- package/dist/{debug-BEWbYuZD.js → debug-CVAlrcZt.js} +2 -2
- package/dist/{debug-DQj_7mFm.js → debug-DP4WzTNo.js} +2 -2
- package/dist/dialog.es.js +4 -3
- package/dist/esm-BiqrFjMh.js +443 -0
- package/dist/{esm-lwYrRdbg.js → esm-Bv7Frz7C.js} +142 -79
- package/dist/{esm-VvpZ9hsq.js → esm-C3A-AuRi.js} +1 -1
- package/dist/esm-CvpR1OcU.js +322 -0
- package/dist/esm-DFHFX1sH.js +1526 -0
- package/dist/esm-Dndm-NaA.js +1193 -0
- package/dist/{esm-CcDLRSvC.js → esm-DtNElqRr.js} +64 -63
- package/dist/esm-L53qjcYH.js +1155 -0
- package/dist/esm-VFJeyk9i.js +249 -0
- package/dist/{esm-BdLYkz-m.js → esm-_xCtpDwm.js} +1 -1
- package/dist/index.es.js +4203 -3910
- package/dist/index.js +900 -455
- package/dist/{indexer-D8Bgkkb8.js → indexer-DbFTKGlm.js} +1 -1
- package/dist/{indexer-Cdt_U05k.js → indexer-En7gpvLN.js} +1 -1
- package/dist/{lit-ByuJ0FJ4.js → lit-CoXp9NFX.js} +12 -10
- package/dist/{order-DIxlclRN.js → order-BkYCnwD7.js} +36 -30
- package/dist/{order-BPOzLe80.js → order-R043xTpC.js} +47 -41
- package/dist/{parquetRead-Cs2xRrvz.js → parquetRead-0hFIa3Cc.js} +532 -350
- package/dist/{rasterExport-Bl6w9t3J.js → rasterExport-C_FcNBkC.js} +8 -7
- package/dist/{rasterExport-DRvNAH-r.js → rasterExport-Z7gs5346.js} +8 -7
- package/dist/{rasterization-D0tOoKu_.js → rasterization-_-9JmSas.js} +3 -2
- package/dist/{renderCanvas2D-LdEYFnRo.js → renderCanvas2D-DK1c9TFK.js} +10 -10
- package/dist/{renderCanvas2D-Ct95auF3.js → renderCanvas2D-IM-A9DYG.js} +16 -16
- package/dist/schema.json +11 -0
- package/dist/{src-DjOlFqSn.js → src-DJtvThVC.js} +3 -5
- package/dist/style.css +1 -1
- package/dist/{svg-pkTPD4bv.js → svg-DW3tfUmm.js} +233 -232
- package/dist/{svg-Ag36-h_I.js → svg-PabUdcDi.js} +233 -232
- package/dist/{svgRasterizer-DrtJ9nLk.js → svgRasterizer-B6YtWLJs.js} +2 -2
- package/dist/{svgRasterizer-CksK4QTB.js → svgRasterizer-BEVDyyS3.js} +2 -2
- package/dist/{vega-scale-BWBFykuI.js → vega-scale-Byaw1K8O.js} +837 -726
- package/dist/{vega-scale-BJaDSHBJ.js → vega-scale-Ctz_wa3z.js} +942 -834
- package/dist/{viewIdentityRegistry-BvCJajXG.js → viewIdentityRegistry-BW415b3o.js} +1 -1
- package/dist/{viewIdentityRegistry-B-snqI3y.js → viewIdentityRegistry-_F0E7nkA.js} +1 -1
- package/dist/{viewSelectors-BlvzvG-z.js → viewSelectors-DYz-PhTO.js} +245 -243
- package/dist/{viewSelectors-C5q3qBiR.js → viewSelectors-KtD-QSN0.js} +106 -104
- package/dist/{viewUtils-C3vBtSvE.js → viewUtils-BZGPseMx.js} +1833 -1677
- package/dist/{webgl-CZX2pe5v.js → webgl-BKSGqHaz.js} +964 -951
- package/dist/{webgl-CexXSw_I.js → webgl-tdKf9SlZ.js} +239 -226
- package/package.json +5 -5
- package/dist/esm-80V4xF_D.js +0 -1098
- package/dist/esm-BA6yMcc-.js +0 -1222
- package/dist/esm-BdT7qUL-.js +0 -157
- package/dist/esm-CfYZhLHN.js +0 -1367
- package/dist/esm-D-iG_TIX.js +0 -441
- package/dist/esm-JAiZmFIS.js +0 -128
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../../node_modules/vega-util/build/vega-util.js
|
|
2
2
|
function e(e, t, n) {
|
|
3
3
|
return e.fields = t || [], e.fname = n, e;
|
|
4
4
|
}
|
|
@@ -74,161 +74,162 @@ function ie(e, t, n, r, i) {
|
|
|
74
74
|
function y(e, t, n) {
|
|
75
75
|
return ie(e, t, n, p, l);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function b(e, t, n) {
|
|
78
78
|
let r = Math.sign(e[0]);
|
|
79
79
|
return ie(e, t, n, h(r), m(r));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function x(e, t, n, r) {
|
|
82
82
|
return ie(e, t, n, _(r), _(1 / r));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ae(e, t, n, r) {
|
|
85
85
|
return ie(e, t, n, ee(r), g(r));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function oe(e) {
|
|
88
88
|
return e == null ? [] : u(e) ? e : [e];
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function se(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 ce(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 le = "descending";
|
|
98
|
+
function ue(t, r, i) {
|
|
99
|
+
i ||= {}, r = oe(r) || [];
|
|
100
|
+
let a = [], o = [], s = {}, l = i.comparator || fe;
|
|
101
|
+
return oe(t).forEach((e, t) => {
|
|
102
|
+
e != null && (a.push(r[t] === le ? -1 : 1), o.push(e = ce(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 de = (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)), fe = (e, t) => e.length === 1 ? pe(e[0], t[0]) : me(e, t, e.length), pe = (e, t) => function(n, r) {
|
|
106
|
+
return de(e(n), e(r)) * t;
|
|
107
|
+
}, me = (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 = de(a(r), a(i));
|
|
110
110
|
return o * t[s];
|
|
111
111
|
});
|
|
112
|
-
function
|
|
112
|
+
function he(e, t, n, r) {
|
|
113
113
|
let i = t[0], a = t[t.length - 1], o;
|
|
114
114
|
return i > a && (o = i, i = a, a = o), n = n === void 0 || n, r = r === void 0 || r, (n ? i <= e : i < e) && (r ? e <= a : e < a);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ge(e) {
|
|
117
117
|
return typeof e == "boolean";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function _e(e) {
|
|
120
120
|
return typeof e == "number";
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ve(e) {
|
|
123
123
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function S(e) {
|
|
126
126
|
return typeof e == "string";
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ye(e, t) {
|
|
129
129
|
let n = e[0], r = f(e), i = +t;
|
|
130
130
|
return i ? i === 1 ? r : n + i * (r - n) : n;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function be(e) {
|
|
133
133
|
return e && f(e) - e[0] || 0;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
return u(e) ? `[${e.map((e) => e === null ? "null" :
|
|
135
|
+
function xe(e) {
|
|
136
|
+
return u(e) ? `[${e.map((e) => e === null ? "null" : xe(e))}]` : d(e) || S(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Se(e) {
|
|
139
139
|
let t = {}, n = e.length;
|
|
140
140
|
for (let r = 0; r < n; ++r) t[e[r]] = !0;
|
|
141
141
|
return t;
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region ../../node_modules/internmap/src/index.js
|
|
145
|
-
var
|
|
146
|
-
constructor(e, t =
|
|
145
|
+
var Ce = class extends Map {
|
|
146
|
+
constructor(e, t = De) {
|
|
147
147
|
if (super(), Object.defineProperties(this, {
|
|
148
148
|
_intern: { value: /* @__PURE__ */ new Map() },
|
|
149
149
|
_key: { value: t }
|
|
150
150
|
}), e != null) for (let [t, n] of e) this.set(t, n);
|
|
151
151
|
}
|
|
152
152
|
get(e) {
|
|
153
|
-
return super.get(
|
|
153
|
+
return super.get(we(this, e));
|
|
154
154
|
}
|
|
155
155
|
has(e) {
|
|
156
|
-
return super.has(
|
|
156
|
+
return super.has(we(this, e));
|
|
157
157
|
}
|
|
158
158
|
set(e, t) {
|
|
159
|
-
return super.set(
|
|
159
|
+
return super.set(Te(this, e), t);
|
|
160
160
|
}
|
|
161
161
|
delete(e) {
|
|
162
|
-
return super.delete(
|
|
162
|
+
return super.delete(Ee(this, e));
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
|
-
function
|
|
165
|
+
function we({ _intern: e, _key: t }, n) {
|
|
166
166
|
let r = t(n);
|
|
167
167
|
return e.has(r) ? e.get(r) : n;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Te({ _intern: e, _key: t }, n) {
|
|
170
170
|
let r = t(n);
|
|
171
171
|
return e.has(r) ? e.get(r) : (e.set(r, n), n);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Ee({ _intern: e, _key: t }, n) {
|
|
174
174
|
let r = t(n);
|
|
175
175
|
return e.has(r) && (n = e.get(r), e.delete(r)), n;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function De(e) {
|
|
178
178
|
return typeof e == "object" && e ? e.valueOf() : e;
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region ../../node_modules/d3-array/src/ticks.js
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >=
|
|
185
|
-
return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ?
|
|
182
|
+
var Oe = Math.sqrt(50), ke = Math.sqrt(10), Ae = Math.sqrt(2);
|
|
183
|
+
function je(e, t, n) {
|
|
184
|
+
let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= Oe ? 10 : a >= ke ? 5 : a >= Ae ? 2 : 1, s, c, l;
|
|
185
|
+
return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? je(e, t, n * 2) : [
|
|
186
186
|
s,
|
|
187
187
|
c,
|
|
188
188
|
l
|
|
189
189
|
];
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Me(e, t, n) {
|
|
192
192
|
if (t = +t, e = +e, n = +n, !(n > 0)) return [];
|
|
193
193
|
if (e === t) return [e];
|
|
194
|
-
let r = t < e, [i, a, o] = r ?
|
|
194
|
+
let r = t < e, [i, a, o] = r ? je(t, e, n) : je(e, t, n);
|
|
195
195
|
if (!(a >= i)) return [];
|
|
196
196
|
let s = a - i + 1, c = Array(s);
|
|
197
|
-
if (r)
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
if (r) {
|
|
198
|
+
if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
|
|
199
|
+
else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
|
|
200
|
+
} else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
|
|
200
201
|
else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
|
|
201
202
|
return c;
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
-
return t = +t, e = +e, n = +n,
|
|
204
|
+
function Ne(e, t, n) {
|
|
205
|
+
return t = +t, e = +e, n = +n, je(e, t, n)[2];
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function Pe(e, t, n) {
|
|
207
208
|
t = +t, e = +e, n = +n;
|
|
208
|
-
let r = t < e, i = r ?
|
|
209
|
+
let r = t < e, i = r ? Ne(t, e, n) : Ne(e, t, n);
|
|
209
210
|
return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
|
|
210
211
|
}
|
|
211
212
|
//#endregion
|
|
212
213
|
//#region ../../node_modules/d3-array/src/range.js
|
|
213
|
-
function
|
|
214
|
+
function Fe(e, t, n) {
|
|
214
215
|
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
|
|
215
216
|
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
|
|
216
217
|
return a;
|
|
217
218
|
}
|
|
218
219
|
//#endregion
|
|
219
220
|
//#region ../../node_modules/d3-color/src/define.js
|
|
220
|
-
function
|
|
221
|
+
function Ie(e, t, n) {
|
|
221
222
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function Le(e, t) {
|
|
224
225
|
var n = Object.create(e.prototype);
|
|
225
226
|
for (var r in t) n[r] = t[r];
|
|
226
227
|
return n;
|
|
227
228
|
}
|
|
228
229
|
//#endregion
|
|
229
230
|
//#region ../../node_modules/d3-color/src/color.js
|
|
230
|
-
function
|
|
231
|
-
var
|
|
231
|
+
function C() {}
|
|
232
|
+
var w = .7, Re = 1 / w, T = "\\s*([+-]?\\d+)\\s*", ze = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", E = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Be = /^#([0-9a-f]{3,8})$/, Ve = RegExp(`^rgb\\(${T},${T},${T}\\)$`), He = RegExp(`^rgb\\(${E},${E},${E}\\)$`), Ue = RegExp(`^rgba\\(${T},${T},${T},${ze}\\)$`), We = RegExp(`^rgba\\(${E},${E},${E},${ze}\\)$`), Ge = RegExp(`^hsl\\(${ze},${E},${E}\\)$`), Ke = RegExp(`^hsla\\(${ze},${E},${E},${ze}\\)$`), qe = {
|
|
232
233
|
aliceblue: 15792383,
|
|
233
234
|
antiquewhite: 16444375,
|
|
234
235
|
aqua: 65535,
|
|
@@ -378,7 +379,7 @@ var C = .7, w = 1 / C, T = "\\s*([+-]?\\d+)\\s*", ze = "\\s*([+-]?(?:\\d*\\.)?\\
|
|
|
378
379
|
yellow: 16776960,
|
|
379
380
|
yellowgreen: 10145074
|
|
380
381
|
};
|
|
381
|
-
|
|
382
|
+
Ie(C, Qe, {
|
|
382
383
|
copy(e) {
|
|
383
384
|
return Object.assign(new this.constructor(), this, e);
|
|
384
385
|
},
|
|
@@ -415,7 +416,7 @@ function et(e, t, n, r) {
|
|
|
415
416
|
return r <= 0 && (e = t = n = NaN), new D(e, t, n, r);
|
|
416
417
|
}
|
|
417
418
|
function tt(e) {
|
|
418
|
-
return e instanceof
|
|
419
|
+
return e instanceof C || (e = Qe(e)), e ? (e = e.rgb(), new D(e.r, e.g, e.b, e.opacity)) : new D();
|
|
419
420
|
}
|
|
420
421
|
function nt(e, t, n, r) {
|
|
421
422
|
return arguments.length === 1 ? tt(e) : new D(e, t, n, r ?? 1);
|
|
@@ -423,12 +424,12 @@ function nt(e, t, n, r) {
|
|
|
423
424
|
function D(e, t, n, r) {
|
|
424
425
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
425
426
|
}
|
|
426
|
-
|
|
427
|
+
Ie(D, nt, Le(C, {
|
|
427
428
|
brighter(e) {
|
|
428
|
-
return e = e == null ?
|
|
429
|
+
return e = e == null ? Re : Re ** +e, new D(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
429
430
|
},
|
|
430
431
|
darker(e) {
|
|
431
|
-
return e = e == null ?
|
|
432
|
+
return e = e == null ? w : w ** +e, new D(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
432
433
|
},
|
|
433
434
|
rgb() {
|
|
434
435
|
return this;
|
|
@@ -469,7 +470,7 @@ function st(e, t, n, r) {
|
|
|
469
470
|
}
|
|
470
471
|
function ct(e) {
|
|
471
472
|
if (e instanceof A) return new A(e.h, e.s, e.l, e.opacity);
|
|
472
|
-
if (e instanceof
|
|
473
|
+
if (e instanceof C || (e = Qe(e)), !e) return new A();
|
|
473
474
|
if (e instanceof A) return e;
|
|
474
475
|
e = e.rgb();
|
|
475
476
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
@@ -481,12 +482,12 @@ function lt(e, t, n, r) {
|
|
|
481
482
|
function A(e, t, n, r) {
|
|
482
483
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
483
484
|
}
|
|
484
|
-
|
|
485
|
+
Ie(A, lt, Le(C, {
|
|
485
486
|
brighter(e) {
|
|
486
|
-
return e = e == null ?
|
|
487
|
+
return e = e == null ? Re : Re ** +e, new A(this.h, this.s, this.l * e, this.opacity);
|
|
487
488
|
},
|
|
488
489
|
darker(e) {
|
|
489
|
-
return e = e == null ?
|
|
490
|
+
return e = e == null ? w : w ** +e, new A(this.h, this.s, this.l * e, this.opacity);
|
|
490
491
|
},
|
|
491
492
|
rgb() {
|
|
492
493
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
@@ -583,7 +584,6 @@ function xt(e) {
|
|
|
583
584
|
default:
|
|
584
585
|
if (!+e[n]) break out;
|
|
585
586
|
r > 0 && (r = 0);
|
|
586
|
-
break;
|
|
587
587
|
}
|
|
588
588
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
589
589
|
}
|
|
@@ -669,20 +669,18 @@ function kt(e) {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
ee && !m && (e = t(e, Infinity));
|
|
672
|
-
var
|
|
673
|
-
switch (ee && m && (e = t(
|
|
672
|
+
var b = n.length + e.length + r.length, x = b < h ? Array(h - b + 1).join(u) : "";
|
|
673
|
+
switch (ee && m && (e = t(x + e, x.length ? h - r.length : Infinity), x = ""), d) {
|
|
674
674
|
case "<":
|
|
675
|
-
e = n + e + r +
|
|
675
|
+
e = n + e + r + x;
|
|
676
676
|
break;
|
|
677
677
|
case "=":
|
|
678
|
-
e = n +
|
|
678
|
+
e = n + x + e + r;
|
|
679
679
|
break;
|
|
680
680
|
case "^":
|
|
681
|
-
e =
|
|
682
|
-
break;
|
|
683
|
-
default:
|
|
684
|
-
e = b + n + e + r;
|
|
681
|
+
e = x.slice(0, b = x.length >> 1) + n + e + r + x.slice(b);
|
|
685
682
|
break;
|
|
683
|
+
default: e = x + n + e + r;
|
|
686
684
|
}
|
|
687
685
|
return a(e);
|
|
688
686
|
}
|
|
@@ -816,12 +814,12 @@ var Pt = class {
|
|
|
816
814
|
this.#e ||= (this.dataDependencies.length && (this.#i = new Pt(this)), this.initialize(), !0);
|
|
817
815
|
}
|
|
818
816
|
#a() {
|
|
819
|
-
this._propagate = Function("children", "stats",
|
|
817
|
+
this._propagate = Function("children", "stats", Fe(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
|
|
820
818
|
if (stats.count === 0) {
|
|
821
819
|
stats.first = structuredClone(datum);
|
|
822
820
|
}
|
|
823
821
|
stats.count++;
|
|
824
|
-
${
|
|
822
|
+
${Fe(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
|
|
825
823
|
};`)(this.children, this.stats);
|
|
826
824
|
}
|
|
827
825
|
setParent(e) {
|
|
@@ -964,7 +962,7 @@ function Bt(e = ["x"], t = {}) {
|
|
|
964
962
|
//#endregion
|
|
965
963
|
//#region ../core/src/paramRuntime/paramUtils.js
|
|
966
964
|
function j(e) {
|
|
967
|
-
return typeof e == "object" && !!e && "expr" in e &&
|
|
965
|
+
return typeof e == "object" && !!e && "expr" in e && S(e.expr);
|
|
968
966
|
}
|
|
969
967
|
function Vt(e) {
|
|
970
968
|
if (j(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
|
|
@@ -985,11 +983,11 @@ function Gt(e) {
|
|
|
985
983
|
}
|
|
986
984
|
function Kt(e, t, n) {
|
|
987
985
|
if ("select" in e) {
|
|
988
|
-
let t =
|
|
989
|
-
if (
|
|
990
|
-
if (
|
|
986
|
+
let t = Gi(e.select);
|
|
987
|
+
if (Ki(t)) return t.toggle ? Fi() : Pi(null);
|
|
988
|
+
if (qi(t)) {
|
|
991
989
|
if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
|
|
992
|
-
return
|
|
990
|
+
return Ii(t.encodings);
|
|
993
991
|
}
|
|
994
992
|
throw Error("Unknown selection config for parameter \"" + e.name + "\".");
|
|
995
993
|
}
|
|
@@ -1159,7 +1157,7 @@ function nn(e, t) {
|
|
|
1159
1157
|
throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
|
|
1160
1158
|
}
|
|
1161
1159
|
//#endregion
|
|
1162
|
-
//#region ../../node_modules/vega-util/build/accessor.js
|
|
1160
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/accessor.js
|
|
1163
1161
|
function N(e, t, n) {
|
|
1164
1162
|
return Object.assign(e, {
|
|
1165
1163
|
fields: t || [],
|
|
@@ -1167,7 +1165,7 @@ function N(e, t, n) {
|
|
|
1167
1165
|
});
|
|
1168
1166
|
}
|
|
1169
1167
|
//#endregion
|
|
1170
|
-
//#region ../../node_modules/vega-util/build/getter.js
|
|
1168
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/getter.js
|
|
1171
1169
|
function rn(e) {
|
|
1172
1170
|
return e.length === 1 ? an(e[0]) : on(e);
|
|
1173
1171
|
}
|
|
@@ -1181,12 +1179,12 @@ var an = (e) => function(t) {
|
|
|
1181
1179
|
};
|
|
1182
1180
|
};
|
|
1183
1181
|
//#endregion
|
|
1184
|
-
//#region ../../node_modules/vega-util/build/error.js
|
|
1182
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/error.js
|
|
1185
1183
|
function P(e) {
|
|
1186
1184
|
throw Error(e);
|
|
1187
1185
|
}
|
|
1188
1186
|
//#endregion
|
|
1189
|
-
//#region ../../node_modules/vega-util/build/splitAccessPath.js
|
|
1187
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/splitAccessPath.js
|
|
1190
1188
|
function sn(e) {
|
|
1191
1189
|
let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
|
|
1192
1190
|
e += "";
|
|
@@ -1200,103 +1198,91 @@ function sn(e) {
|
|
|
1200
1198
|
return i && P("Access path missing closing bracket: " + e), r && P("Access path missing closing quote: " + e), s > o && (s++, l()), t;
|
|
1201
1199
|
}
|
|
1202
1200
|
//#endregion
|
|
1203
|
-
//#region ../../node_modules/vega-util/build/field.js
|
|
1201
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/field.js
|
|
1204
1202
|
function cn(e, t, n) {
|
|
1205
1203
|
let r = sn(e), i = r.length === 1 ? r[0] : e;
|
|
1206
1204
|
return N((n && n.get || rn)(r), [i], t || i);
|
|
1207
1205
|
}
|
|
1208
|
-
cn("id");
|
|
1209
|
-
var ln = N((e) => e, [], "identity");
|
|
1210
|
-
N(() => 0, [], "zero"), N(() => 1, [], "one"), N(() => !0, [], "true"), N(() => !1, [], "false");
|
|
1206
|
+
cn("id"), N((e) => e, [], "identity"), N(() => 0, [], "zero"), N(() => 1, [], "one"), N(() => !0, [], "true"), N(() => !1, [], "false");
|
|
1211
1207
|
//#endregion
|
|
1212
|
-
//#region ../../node_modules/vega-util/build/interpreter.js
|
|
1213
|
-
var
|
|
1208
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/interpreter.js
|
|
1209
|
+
var ln = /* @__PURE__ */ new Set([
|
|
1210
|
+
...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"),
|
|
1211
|
+
"__proto__",
|
|
1212
|
+
"then"
|
|
1213
|
+
]);
|
|
1214
|
+
Array.isArray;
|
|
1214
1215
|
//#endregion
|
|
1215
|
-
//#region ../../node_modules/vega-util/build/
|
|
1216
|
-
function
|
|
1217
|
-
return e === Object(e);
|
|
1218
|
-
}
|
|
1219
|
-
//#endregion
|
|
1220
|
-
//#region ../../node_modules/vega-util/build/array.js
|
|
1221
|
-
function pn(e) {
|
|
1222
|
-
return e == null ? [] : dn(e) ? e : [e];
|
|
1223
|
-
}
|
|
1224
|
-
//#endregion
|
|
1225
|
-
//#region ../../node_modules/vega-util/build/isFunction.js
|
|
1226
|
-
function mn(e) {
|
|
1216
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/isFunction.js
|
|
1217
|
+
function un(e) {
|
|
1227
1218
|
return typeof e == "function";
|
|
1228
1219
|
}
|
|
1229
1220
|
//#endregion
|
|
1230
|
-
//#region ../../node_modules/vega-util/build/hasOwnProperty.js
|
|
1231
|
-
function
|
|
1221
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/hasOwnProperty.js
|
|
1222
|
+
function dn(e, t) {
|
|
1232
1223
|
return Object.hasOwn(e, t);
|
|
1233
1224
|
}
|
|
1234
1225
|
//#endregion
|
|
1235
|
-
//#region ../../node_modules/vega-util/build/isString.js
|
|
1236
|
-
function
|
|
1226
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/isString.js
|
|
1227
|
+
function fn(e) {
|
|
1237
1228
|
return typeof e == "string";
|
|
1238
1229
|
}
|
|
1239
1230
|
//#endregion
|
|
1240
|
-
//#region ../../node_modules/vega-util/build/
|
|
1241
|
-
function
|
|
1242
|
-
return dn(e) ? `[${e.map((e) => e === null ? "null" : _n(e))}]` : fn(e) || gn(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
1243
|
-
}
|
|
1244
|
-
//#endregion
|
|
1245
|
-
//#region ../../node_modules/vega-util/build/toSet.js
|
|
1246
|
-
function vn(e) {
|
|
1231
|
+
//#region ../../node_modules/vega-expression/node_modules/vega-util/build/toSet.js
|
|
1232
|
+
function pn(e) {
|
|
1247
1233
|
let t = {}, n = e.length;
|
|
1248
1234
|
for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
|
|
1249
1235
|
return t;
|
|
1250
1236
|
}
|
|
1251
1237
|
//#endregion
|
|
1252
1238
|
//#region ../../node_modules/vega-expression/build/vega-expression.js
|
|
1253
|
-
var
|
|
1239
|
+
var mn = "RawCode", hn = "Literal", gn = "Property", _n = "Identifier", vn = "ArrayExpression", yn = "BinaryExpression", bn = "CallExpression", xn = "ConditionalExpression", Sn = "LogicalExpression", Cn = "MemberExpression", wn = "ObjectExpression", Tn = "UnaryExpression";
|
|
1254
1240
|
function F(e) {
|
|
1255
1241
|
this.type = e;
|
|
1256
1242
|
}
|
|
1257
1243
|
F.prototype.visit = function(e) {
|
|
1258
1244
|
let t, n, r;
|
|
1259
1245
|
if (e(this)) return 1;
|
|
1260
|
-
for (t =
|
|
1246
|
+
for (t = En(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
|
|
1261
1247
|
};
|
|
1262
|
-
function
|
|
1248
|
+
function En(e) {
|
|
1263
1249
|
switch (e.type) {
|
|
1264
|
-
case
|
|
1265
|
-
case
|
|
1266
|
-
case
|
|
1267
|
-
case
|
|
1268
|
-
case
|
|
1250
|
+
case vn: return e.elements;
|
|
1251
|
+
case yn:
|
|
1252
|
+
case Sn: return [e.left, e.right];
|
|
1253
|
+
case bn: return [e.callee].concat(e.arguments);
|
|
1254
|
+
case xn: return [
|
|
1269
1255
|
e.test,
|
|
1270
1256
|
e.consequent,
|
|
1271
1257
|
e.alternate
|
|
1272
1258
|
];
|
|
1273
|
-
case
|
|
1274
|
-
case
|
|
1275
|
-
case
|
|
1276
|
-
case
|
|
1277
|
-
case
|
|
1278
|
-
case
|
|
1279
|
-
case
|
|
1259
|
+
case Cn: return [e.object, e.property];
|
|
1260
|
+
case wn: return e.properties;
|
|
1261
|
+
case gn: return [e.key, e.value];
|
|
1262
|
+
case Tn: return [e.argument];
|
|
1263
|
+
case _n:
|
|
1264
|
+
case hn:
|
|
1265
|
+
case mn:
|
|
1280
1266
|
default: return [];
|
|
1281
1267
|
}
|
|
1282
1268
|
}
|
|
1283
|
-
var I, L, R, z, B,
|
|
1284
|
-
I = {}, I[
|
|
1285
|
-
var Ln = "ArrayExpression", Rn = "BinaryExpression", zn = "CallExpression", Bn = "ConditionalExpression", Vn = "Identifier", Hn = "Literal", Un = "LogicalExpression", Wn = "MemberExpression", Gn = "ObjectExpression", Kn = "Property", qn = "UnaryExpression", G = "Unexpected token %0", Jn = "Unexpected number", Yn = "Unexpected string", Xn = "Unexpected identifier", Zn = "Unexpected reserved word", Qn = "Unexpected end of input", $n = "Invalid regular expression", er = "Invalid regular expression: missing /", tr = "Octal literals are not allowed in strict mode.", nr = "Duplicate data property in object literal not allowed in strict mode", K = "ILLEGAL", rr = "Disabled.", ir = /* @__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]"), ar = /* @__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]");
|
|
1286
|
-
function
|
|
1269
|
+
var I, L, R, z, B, Dn = 1, On = 2, V = 3, H = 4, kn = 5, U = 6, W = 7, An = 8, jn = 9;
|
|
1270
|
+
I = {}, I[Dn] = "Boolean", I[On] = "<end>", I[V] = "Identifier", I[H] = "Keyword", I[kn] = "Null", I[U] = "Numeric", I[W] = "Punctuator", I[An] = "String", I[jn] = "RegularExpression";
|
|
1271
|
+
var Mn = "ArrayExpression", Nn = "BinaryExpression", Pn = "CallExpression", Fn = "ConditionalExpression", In = "Identifier", Ln = "Literal", Rn = "LogicalExpression", zn = "MemberExpression", Bn = "ObjectExpression", Vn = "Property", Hn = "UnaryExpression", G = "Unexpected token %0", Un = "Unexpected number", Wn = "Unexpected string", Gn = "Unexpected identifier", Kn = "Unexpected reserved word", qn = "Unexpected end of input", Jn = "Invalid regular expression", Yn = "Invalid regular expression: missing /", Xn = "Octal literals are not allowed in strict mode.", Zn = "Duplicate data property in object literal not allowed in strict mode", K = "ILLEGAL", Qn = "Disabled.", $n = /* @__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]"), er = /* @__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]");
|
|
1272
|
+
function tr(e, t) {
|
|
1287
1273
|
/* istanbul ignore next */
|
|
1288
1274
|
if (!e) throw Error("ASSERT: " + t);
|
|
1289
1275
|
}
|
|
1290
1276
|
function q(e) {
|
|
1291
1277
|
return e >= 48 && e <= 57;
|
|
1292
1278
|
}
|
|
1293
|
-
function
|
|
1279
|
+
function nr(e) {
|
|
1294
1280
|
return "0123456789abcdefABCDEF".includes(e);
|
|
1295
1281
|
}
|
|
1296
|
-
function
|
|
1282
|
+
function rr(e) {
|
|
1297
1283
|
return "01234567".includes(e);
|
|
1298
1284
|
}
|
|
1299
|
-
function
|
|
1285
|
+
function ir(e) {
|
|
1300
1286
|
return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
|
|
1301
1287
|
5760,
|
|
1302
1288
|
6158,
|
|
@@ -1317,16 +1303,16 @@ function lr(e) {
|
|
|
1317
1303
|
65279
|
|
1318
1304
|
].includes(e);
|
|
1319
1305
|
}
|
|
1320
|
-
function
|
|
1306
|
+
function J(e) {
|
|
1321
1307
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
1322
1308
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 &&
|
|
1309
|
+
function ar(e) {
|
|
1310
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && $n.test(String.fromCharCode(e));
|
|
1325
1311
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 &&
|
|
1312
|
+
function or(e) {
|
|
1313
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && er.test(String.fromCharCode(e));
|
|
1328
1314
|
}
|
|
1329
|
-
var
|
|
1315
|
+
var sr = {
|
|
1330
1316
|
if: 1,
|
|
1331
1317
|
in: 1,
|
|
1332
1318
|
do: 1,
|
|
@@ -1370,46 +1356,46 @@ var pr = {
|
|
|
1370
1356
|
instanceof: 1,
|
|
1371
1357
|
implements: 1
|
|
1372
1358
|
};
|
|
1373
|
-
function
|
|
1359
|
+
function cr() {
|
|
1374
1360
|
for (; R < z;) {
|
|
1375
1361
|
let e = L.charCodeAt(R);
|
|
1376
|
-
if (
|
|
1362
|
+
if (ir(e) || J(e)) ++R;
|
|
1377
1363
|
else break;
|
|
1378
1364
|
}
|
|
1379
1365
|
}
|
|
1380
|
-
function
|
|
1366
|
+
function lr(e) {
|
|
1381
1367
|
var t, n, r, i = 0;
|
|
1382
|
-
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) R < z &&
|
|
1368
|
+
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) R < z && nr(L[R]) ? (r = L[R++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : X({}, G, K);
|
|
1383
1369
|
return String.fromCharCode(i);
|
|
1384
1370
|
}
|
|
1385
|
-
function
|
|
1371
|
+
function ur() {
|
|
1386
1372
|
var e = L[R], t = 0, n, r;
|
|
1387
|
-
for (e === "}" &&
|
|
1388
|
-
return (t > 1114111 || e !== "}") &&
|
|
1373
|
+
for (e === "}" && X({}, G, K); R < z && (e = L[R++], nr(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
1374
|
+
return (t > 1114111 || e !== "}") && X({}, G, K), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
1389
1375
|
}
|
|
1390
|
-
function
|
|
1376
|
+
function dr() {
|
|
1391
1377
|
var e = L.charCodeAt(R++), t = String.fromCharCode(e);
|
|
1392
|
-
for (e === 92 && (L.charCodeAt(R) !== 117 &&
|
|
1378
|
+
for (e === 92 && (L.charCodeAt(R) !== 117 && X({}, G, K), ++R, e = lr("u"), (!e || e === "\\" || !ar(e.charCodeAt(0))) && X({}, G, K), t = e); R < z && (e = L.charCodeAt(R), or(e));) ++R, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), L.charCodeAt(R) !== 117 && X({}, G, K), ++R, e = lr("u"), (!e || e === "\\" || !or(e.charCodeAt(0))) && X({}, G, K), t += e);
|
|
1393
1379
|
return t;
|
|
1394
1380
|
}
|
|
1395
|
-
function
|
|
1381
|
+
function fr() {
|
|
1396
1382
|
for (var e = R++, t; R < z;) {
|
|
1397
|
-
if (t = L.charCodeAt(R), t === 92) return R = e,
|
|
1398
|
-
if (
|
|
1383
|
+
if (t = L.charCodeAt(R), t === 92) return R = e, dr();
|
|
1384
|
+
if (or(t)) ++R;
|
|
1399
1385
|
else break;
|
|
1400
1386
|
}
|
|
1401
1387
|
return L.slice(e, R);
|
|
1402
1388
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var e = R, t = L.charCodeAt(R) === 92 ?
|
|
1389
|
+
function pr() {
|
|
1390
|
+
var e = R, t = L.charCodeAt(R) === 92 ? dr() : fr();
|
|
1405
1391
|
return {
|
|
1406
|
-
type: t.length === 1 ? V :
|
|
1392
|
+
type: t.length === 1 ? V : sr.hasOwnProperty(t) ? H : t === "null" ? kn : t === "true" || t === "false" ? Dn : V,
|
|
1407
1393
|
value: t,
|
|
1408
1394
|
start: e,
|
|
1409
1395
|
end: R
|
|
1410
1396
|
};
|
|
1411
1397
|
}
|
|
1412
|
-
function
|
|
1398
|
+
function mr() {
|
|
1413
1399
|
var e = R, t = L.charCodeAt(R), n, r = L[R], i, a, o;
|
|
1414
1400
|
switch (t) {
|
|
1415
1401
|
case 46:
|
|
@@ -1472,28 +1458,28 @@ function br() {
|
|
|
1472
1458
|
start: e,
|
|
1473
1459
|
end: R
|
|
1474
1460
|
};
|
|
1475
|
-
if (i === "//" &&
|
|
1461
|
+
if (i === "//" && X({}, G, K), "<>=!+-*%&|^/".includes(r)) return ++R, {
|
|
1476
1462
|
type: W,
|
|
1477
1463
|
value: r,
|
|
1478
1464
|
start: e,
|
|
1479
1465
|
end: R
|
|
1480
1466
|
};
|
|
1481
|
-
|
|
1467
|
+
X({}, G, K);
|
|
1482
1468
|
}
|
|
1483
|
-
function
|
|
1469
|
+
function hr(e) {
|
|
1484
1470
|
let t = "";
|
|
1485
|
-
for (; R < z &&
|
|
1486
|
-
return t.length === 0 &&
|
|
1471
|
+
for (; R < z && nr(L[R]);) t += L[R++];
|
|
1472
|
+
return t.length === 0 && X({}, G, K), ar(L.charCodeAt(R)) && X({}, G, K), {
|
|
1487
1473
|
type: U,
|
|
1488
1474
|
value: parseInt("0x" + t, 16),
|
|
1489
1475
|
start: e,
|
|
1490
1476
|
end: R
|
|
1491
1477
|
};
|
|
1492
1478
|
}
|
|
1493
|
-
function
|
|
1479
|
+
function gr(e) {
|
|
1494
1480
|
let t = "0" + L[R++];
|
|
1495
|
-
for (; R < z &&
|
|
1496
|
-
return (
|
|
1481
|
+
for (; R < z && rr(L[R]);) t += L[R++];
|
|
1482
|
+
return (ar(L.charCodeAt(R)) || q(L.charCodeAt(R))) && X({}, G, K), {
|
|
1497
1483
|
type: U,
|
|
1498
1484
|
value: parseInt(t, 8),
|
|
1499
1485
|
octal: !0,
|
|
@@ -1501,13 +1487,13 @@ function Sr(e) {
|
|
|
1501
1487
|
end: R
|
|
1502
1488
|
};
|
|
1503
1489
|
}
|
|
1504
|
-
function
|
|
1490
|
+
function _r() {
|
|
1505
1491
|
var e, t, n = L[R];
|
|
1506
|
-
if (
|
|
1492
|
+
if (tr(q(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = R, e = "", n !== ".") {
|
|
1507
1493
|
if (e = L[R++], n = L[R], e === "0") {
|
|
1508
|
-
if (n === "x" || n === "X") return ++R,
|
|
1509
|
-
if (
|
|
1510
|
-
n && q(n.charCodeAt(0)) &&
|
|
1494
|
+
if (n === "x" || n === "X") return ++R, hr(t);
|
|
1495
|
+
if (rr(n)) return gr(t);
|
|
1496
|
+
n && q(n.charCodeAt(0)) && X({}, G, K);
|
|
1511
1497
|
}
|
|
1512
1498
|
for (; q(L.charCodeAt(R));) e += L[R++];
|
|
1513
1499
|
n = L[R];
|
|
@@ -1516,68 +1502,72 @@ function Cr() {
|
|
|
1516
1502
|
for (e += L[R++]; q(L.charCodeAt(R));) e += L[R++];
|
|
1517
1503
|
n = L[R];
|
|
1518
1504
|
}
|
|
1519
|
-
if (n === "e" || n === "E")
|
|
1520
|
-
|
|
1521
|
-
|
|
1505
|
+
if (n === "e" || n === "E") {
|
|
1506
|
+
if (e += L[R++], n = L[R], (n === "+" || n === "-") && (e += L[R++]), q(L.charCodeAt(R))) for (; q(L.charCodeAt(R));) e += L[R++];
|
|
1507
|
+
else X({}, G, K);
|
|
1508
|
+
}
|
|
1509
|
+
return ar(L.charCodeAt(R)) && X({}, G, K), {
|
|
1522
1510
|
type: U,
|
|
1523
1511
|
value: parseFloat(e),
|
|
1524
1512
|
start: t,
|
|
1525
1513
|
end: R
|
|
1526
1514
|
};
|
|
1527
1515
|
}
|
|
1528
|
-
function
|
|
1516
|
+
function vr() {
|
|
1529
1517
|
var e = "", t, n, r, i, a = !1;
|
|
1530
|
-
for (t = L[R],
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
} else if (r === "\\") if (r = L[R++], !r || !ur(r.charCodeAt(0))) switch (r) {
|
|
1534
|
-
case "u":
|
|
1535
|
-
case "x":
|
|
1536
|
-
L[R] === "{" ? (++R, e += gr()) : e += hr(r);
|
|
1537
|
-
break;
|
|
1538
|
-
case "n":
|
|
1539
|
-
e += "\n";
|
|
1540
|
-
break;
|
|
1541
|
-
case "r":
|
|
1542
|
-
e += "\r";
|
|
1543
|
-
break;
|
|
1544
|
-
case "t":
|
|
1545
|
-
e += " ";
|
|
1546
|
-
break;
|
|
1547
|
-
case "b":
|
|
1548
|
-
e += "\b";
|
|
1549
|
-
break;
|
|
1550
|
-
case "f":
|
|
1551
|
-
e += "\f";
|
|
1552
|
-
break;
|
|
1553
|
-
case "v":
|
|
1554
|
-
e += "\v";
|
|
1555
|
-
break;
|
|
1556
|
-
default:
|
|
1557
|
-
cr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), R < z && cr(L[R]) && (a = !0, i = i * 8 + "01234567".indexOf(L[R++]), "0123".includes(r) && R < z && cr(L[R]) && (i = i * 8 + "01234567".indexOf(L[R++]))), e += String.fromCharCode(i)) : e += r;
|
|
1518
|
+
for (t = L[R], tr(t === "'" || t === "\"", "String literal must starts with a quote"), n = R, ++R; R < z;) {
|
|
1519
|
+
if (r = L[R++], r === t) {
|
|
1520
|
+
t = "";
|
|
1558
1521
|
break;
|
|
1522
|
+
}
|
|
1523
|
+
if (r === "\\") {
|
|
1524
|
+
if (r = L[R++], !r || !J(r.charCodeAt(0))) switch (r) {
|
|
1525
|
+
case "u":
|
|
1526
|
+
case "x":
|
|
1527
|
+
L[R] === "{" ? (++R, e += ur()) : e += lr(r);
|
|
1528
|
+
break;
|
|
1529
|
+
case "n":
|
|
1530
|
+
e += "\n";
|
|
1531
|
+
break;
|
|
1532
|
+
case "r":
|
|
1533
|
+
e += "\r";
|
|
1534
|
+
break;
|
|
1535
|
+
case "t":
|
|
1536
|
+
e += " ";
|
|
1537
|
+
break;
|
|
1538
|
+
case "b":
|
|
1539
|
+
e += "\b";
|
|
1540
|
+
break;
|
|
1541
|
+
case "f":
|
|
1542
|
+
e += "\f";
|
|
1543
|
+
break;
|
|
1544
|
+
case "v":
|
|
1545
|
+
e += "\v";
|
|
1546
|
+
break;
|
|
1547
|
+
default: rr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), R < z && rr(L[R]) && (a = !0, i = i * 8 + "01234567".indexOf(L[R++]), "0123".includes(r) && R < z && rr(L[R]) && (i = i * 8 + "01234567".indexOf(L[R++]))), e += String.fromCharCode(i)) : e += r;
|
|
1548
|
+
}
|
|
1549
|
+
else r === "\r" && L[R] === "\n" && ++R;
|
|
1550
|
+
} else if (J(r.charCodeAt(0))) break;
|
|
1551
|
+
else e += r;
|
|
1559
1552
|
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
else e += r;
|
|
1563
|
-
return t !== "" && Y({}, G, K), {
|
|
1564
|
-
type: Fn,
|
|
1553
|
+
return t !== "" && X({}, G, K), {
|
|
1554
|
+
type: An,
|
|
1565
1555
|
value: e,
|
|
1566
1556
|
octal: a,
|
|
1567
1557
|
start: n,
|
|
1568
1558
|
end: R
|
|
1569
1559
|
};
|
|
1570
1560
|
}
|
|
1571
|
-
function
|
|
1561
|
+
function yr(e, t) {
|
|
1572
1562
|
let n = e;
|
|
1573
1563
|
t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
|
|
1574
1564
|
if (parseInt(t, 16) <= 1114111) return "x";
|
|
1575
|
-
|
|
1565
|
+
X({}, Jn);
|
|
1576
1566
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
|
|
1577
1567
|
try {
|
|
1578
1568
|
new RegExp(n);
|
|
1579
1569
|
} catch {
|
|
1580
|
-
|
|
1570
|
+
X({}, Jn);
|
|
1581
1571
|
}
|
|
1582
1572
|
try {
|
|
1583
1573
|
return new RegExp(e, t);
|
|
@@ -1585,30 +1575,30 @@ function Tr(e, t) {
|
|
|
1585
1575
|
return null;
|
|
1586
1576
|
}
|
|
1587
1577
|
}
|
|
1588
|
-
function
|
|
1578
|
+
function br() {
|
|
1589
1579
|
var e = L[R], t, n, r, i;
|
|
1590
|
-
for (
|
|
1591
|
-
else if (
|
|
1580
|
+
for (tr(e === "/", "Regular expression literal must start with a slash"), t = L[R++], n = !1, r = !1; R < z;) if (e = L[R++], t += e, e === "\\") e = L[R++], J(e.charCodeAt(0)) && X({}, Yn), t += e;
|
|
1581
|
+
else if (J(e.charCodeAt(0))) X({}, Yn);
|
|
1592
1582
|
else if (n) e === "]" && (n = !1);
|
|
1593
1583
|
else if (e === "/") {
|
|
1594
1584
|
r = !0;
|
|
1595
1585
|
break;
|
|
1596
1586
|
} else e === "[" && (n = !0);
|
|
1597
|
-
return r ||
|
|
1587
|
+
return r || X({}, Yn), i = t.substr(1, t.length - 2), {
|
|
1598
1588
|
value: i,
|
|
1599
1589
|
literal: t
|
|
1600
1590
|
};
|
|
1601
1591
|
}
|
|
1602
|
-
function
|
|
1603
|
-
for (var e, t = "", n = ""; R < z && (e = L[R],
|
|
1604
|
-
return n.search(/[^gimuy]/g) >= 0 &&
|
|
1592
|
+
function xr() {
|
|
1593
|
+
for (var e, t = "", n = ""; R < z && (e = L[R], or(e.charCodeAt(0)));) ++R, e === "\\" && R < z ? X({}, G, K) : (n += e, t += e);
|
|
1594
|
+
return n.search(/[^gimuy]/g) >= 0 && X({}, Jn, n), {
|
|
1605
1595
|
value: n,
|
|
1606
1596
|
literal: t
|
|
1607
1597
|
};
|
|
1608
1598
|
}
|
|
1609
|
-
function
|
|
1599
|
+
function Sr() {
|
|
1610
1600
|
var e, t, n, r;
|
|
1611
|
-
return B = null,
|
|
1601
|
+
return B = null, cr(), e = R, t = br(), n = xr(), r = yr(t.value, n.value), {
|
|
1612
1602
|
literal: t.literal + n.literal,
|
|
1613
1603
|
value: r,
|
|
1614
1604
|
regex: {
|
|
@@ -1619,161 +1609,161 @@ function Or() {
|
|
|
1619
1609
|
end: R
|
|
1620
1610
|
};
|
|
1621
1611
|
}
|
|
1622
|
-
function
|
|
1623
|
-
return e.type === V || e.type === H || e.type ===
|
|
1612
|
+
function Cr(e) {
|
|
1613
|
+
return e.type === V || e.type === H || e.type === Dn || e.type === kn;
|
|
1624
1614
|
}
|
|
1625
|
-
function
|
|
1626
|
-
if (
|
|
1627
|
-
type:
|
|
1615
|
+
function wr() {
|
|
1616
|
+
if (cr(), R >= z) return {
|
|
1617
|
+
type: On,
|
|
1628
1618
|
start: R,
|
|
1629
1619
|
end: R
|
|
1630
1620
|
};
|
|
1631
1621
|
let e = L.charCodeAt(R);
|
|
1632
|
-
return
|
|
1622
|
+
return ar(e) ? pr() : e === 40 || e === 41 || e === 59 ? mr() : e === 39 || e === 34 ? vr() : e === 46 ? q(L.charCodeAt(R + 1)) ? _r() : mr() : q(e) ? _r() : mr();
|
|
1633
1623
|
}
|
|
1634
|
-
function
|
|
1624
|
+
function Y() {
|
|
1635
1625
|
let e = B;
|
|
1636
|
-
return R = e.end, B =
|
|
1626
|
+
return R = e.end, B = wr(), R = e.end, e;
|
|
1637
1627
|
}
|
|
1638
|
-
function
|
|
1628
|
+
function Tr() {
|
|
1639
1629
|
let e = R;
|
|
1640
|
-
B =
|
|
1630
|
+
B = wr(), R = e;
|
|
1641
1631
|
}
|
|
1642
|
-
function
|
|
1643
|
-
let t = new F(
|
|
1632
|
+
function Er(e) {
|
|
1633
|
+
let t = new F(Mn);
|
|
1644
1634
|
return t.elements = e, t;
|
|
1645
1635
|
}
|
|
1646
|
-
function
|
|
1647
|
-
let r = new F(e === "||" || e === "&&" ?
|
|
1636
|
+
function Dr(e, t, n) {
|
|
1637
|
+
let r = new F(e === "||" || e === "&&" ? Rn : Nn);
|
|
1648
1638
|
return r.operator = e, r.left = t, r.right = n, r;
|
|
1649
1639
|
}
|
|
1650
|
-
function
|
|
1651
|
-
let n = new F(
|
|
1640
|
+
function Or(e, t) {
|
|
1641
|
+
let n = new F(Pn);
|
|
1652
1642
|
return n.callee = e, n.arguments = t, n;
|
|
1653
1643
|
}
|
|
1654
|
-
function
|
|
1655
|
-
let r = new F(
|
|
1644
|
+
function kr(e, t, n) {
|
|
1645
|
+
let r = new F(Fn);
|
|
1656
1646
|
return r.test = e, r.consequent = t, r.alternate = n, r;
|
|
1657
1647
|
}
|
|
1658
|
-
function
|
|
1659
|
-
let t = new F(
|
|
1648
|
+
function Ar(e) {
|
|
1649
|
+
let t = new F(In);
|
|
1660
1650
|
return t.name = e, t;
|
|
1661
1651
|
}
|
|
1662
|
-
function
|
|
1663
|
-
let t = new F(
|
|
1652
|
+
function jr(e) {
|
|
1653
|
+
let t = new F(Ln);
|
|
1664
1654
|
return t.value = e.value, t.raw = L.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
|
|
1665
1655
|
}
|
|
1666
|
-
function
|
|
1667
|
-
let r = new F(
|
|
1656
|
+
function Mr(e, t, n) {
|
|
1657
|
+
let r = new F(zn);
|
|
1668
1658
|
return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
|
|
1669
1659
|
}
|
|
1670
|
-
function
|
|
1671
|
-
let t = new F(
|
|
1660
|
+
function Nr(e) {
|
|
1661
|
+
let t = new F(Bn);
|
|
1672
1662
|
return t.properties = e, t;
|
|
1673
1663
|
}
|
|
1674
|
-
function
|
|
1675
|
-
let r = new F(
|
|
1664
|
+
function Pr(e, t, n) {
|
|
1665
|
+
let r = new F(Vn);
|
|
1676
1666
|
return r.key = t, r.value = n, r.kind = e, r;
|
|
1677
1667
|
}
|
|
1678
|
-
function
|
|
1679
|
-
let n = new F(
|
|
1668
|
+
function Fr(e, t) {
|
|
1669
|
+
let n = new F(Hn);
|
|
1680
1670
|
return n.operator = e, n.argument = t, n.prefix = !0, n;
|
|
1681
1671
|
}
|
|
1682
|
-
function
|
|
1683
|
-
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (
|
|
1672
|
+
function X(e, t) {
|
|
1673
|
+
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (tr(t < r.length, "Message reference must be in range"), r[t]));
|
|
1684
1674
|
throw n = Error(i), n.index = R, n.description = i, n;
|
|
1685
1675
|
}
|
|
1686
|
-
function
|
|
1687
|
-
e.type ===
|
|
1688
|
-
}
|
|
1689
|
-
function X(e) {
|
|
1690
|
-
let t = J();
|
|
1691
|
-
(t.type !== W || t.value !== e) && Hr(t);
|
|
1676
|
+
function Ir(e) {
|
|
1677
|
+
e.type === On && X(e, qn), e.type === U && X(e, Un), e.type === An && X(e, Wn), e.type === V && X(e, Gn), e.type === H && X(e, Kn), X(e, G, e.value);
|
|
1692
1678
|
}
|
|
1693
1679
|
function Z(e) {
|
|
1680
|
+
let t = Y();
|
|
1681
|
+
(t.type !== W || t.value !== e) && Ir(t);
|
|
1682
|
+
}
|
|
1683
|
+
function Q(e) {
|
|
1694
1684
|
return B.type === W && B.value === e;
|
|
1695
1685
|
}
|
|
1696
|
-
function
|
|
1686
|
+
function Lr(e) {
|
|
1697
1687
|
return B.type === H && B.value === e;
|
|
1698
1688
|
}
|
|
1699
|
-
function
|
|
1689
|
+
function Rr() {
|
|
1700
1690
|
let e = [];
|
|
1701
|
-
for (R = B.start,
|
|
1702
|
-
return
|
|
1691
|
+
for (R = B.start, Z("["); !Q("]");) Q(",") ? (Y(), e.push(null)) : (e.push($()), Q("]") || Z(","));
|
|
1692
|
+
return Y(), Er(e);
|
|
1703
1693
|
}
|
|
1704
|
-
function
|
|
1694
|
+
function zr() {
|
|
1705
1695
|
R = B.start;
|
|
1706
|
-
let e =
|
|
1707
|
-
return e.type ===
|
|
1696
|
+
let e = Y();
|
|
1697
|
+
return e.type === An || e.type === U ? (e.octal && X(e, Xn), jr(e)) : Ar(e.value);
|
|
1708
1698
|
}
|
|
1709
|
-
function
|
|
1699
|
+
function Br() {
|
|
1710
1700
|
var e, t, n, r;
|
|
1711
|
-
if (R = B.start, e = B, e.type === V) return n =
|
|
1712
|
-
if (e.type ===
|
|
1713
|
-
else return t =
|
|
1701
|
+
if (R = B.start, e = B, e.type === V) return n = zr(), Z(":"), r = $(), Pr("init", n, r);
|
|
1702
|
+
if (e.type === On || e.type === W) Ir(e);
|
|
1703
|
+
else return t = zr(), Z(":"), r = $(), Pr("init", t, r);
|
|
1714
1704
|
}
|
|
1715
|
-
function
|
|
1705
|
+
function Vr() {
|
|
1716
1706
|
var e = [], t, n, r, i = {}, a = String;
|
|
1717
|
-
for (R = B.start,
|
|
1718
|
-
return
|
|
1707
|
+
for (R = B.start, Z("{"); !Q("}");) t = Br(), n = t.key.type === In ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? X({}, Zn) : i[r] = !0, e.push(t), Q("}") || Z(",");
|
|
1708
|
+
return Z("}"), Nr(e);
|
|
1719
1709
|
}
|
|
1720
|
-
function
|
|
1721
|
-
|
|
1722
|
-
let e =
|
|
1723
|
-
return
|
|
1710
|
+
function Hr() {
|
|
1711
|
+
Z("(");
|
|
1712
|
+
let e = ei();
|
|
1713
|
+
return Z(")"), e;
|
|
1724
1714
|
}
|
|
1725
|
-
var
|
|
1726
|
-
function
|
|
1715
|
+
var Ur = { if: 1 };
|
|
1716
|
+
function Wr() {
|
|
1727
1717
|
var e, t, n;
|
|
1728
|
-
if (
|
|
1729
|
-
if (
|
|
1730
|
-
if (
|
|
1731
|
-
if (e = B.type, R = B.start, e === V ||
|
|
1732
|
-
else if (e ===
|
|
1733
|
-
else if (e === H) throw Error(
|
|
1734
|
-
else e ===
|
|
1718
|
+
if (Q("(")) return Hr();
|
|
1719
|
+
if (Q("[")) return Rr();
|
|
1720
|
+
if (Q("{")) return Vr();
|
|
1721
|
+
if (e = B.type, R = B.start, e === V || Ur[B.value]) n = Ar(Y().value);
|
|
1722
|
+
else if (e === An || e === U) B.octal && X(B, Xn), n = jr(Y());
|
|
1723
|
+
else if (e === H) throw Error(Qn);
|
|
1724
|
+
else e === Dn ? (t = Y(), t.value = t.value === "true", n = jr(t)) : e === kn ? (t = Y(), t.value = null, n = jr(t)) : Q("/") || Q("/=") ? (n = jr(Sr()), Tr()) : Ir(Y());
|
|
1735
1725
|
return n;
|
|
1736
1726
|
}
|
|
1737
|
-
function
|
|
1727
|
+
function Gr() {
|
|
1738
1728
|
let e = [];
|
|
1739
|
-
if (
|
|
1740
|
-
return
|
|
1729
|
+
if (Z("("), !Q(")")) for (; R < z && (e.push($()), !Q(")"));) Z(",");
|
|
1730
|
+
return Z(")"), e;
|
|
1741
1731
|
}
|
|
1742
|
-
function
|
|
1732
|
+
function Kr() {
|
|
1743
1733
|
R = B.start;
|
|
1744
|
-
let e =
|
|
1745
|
-
return
|
|
1734
|
+
let e = Y();
|
|
1735
|
+
return Cr(e) || Ir(e), Ar(e.value);
|
|
1746
1736
|
}
|
|
1747
|
-
function
|
|
1748
|
-
return
|
|
1737
|
+
function qr() {
|
|
1738
|
+
return Z("."), Kr();
|
|
1749
1739
|
}
|
|
1750
|
-
function
|
|
1751
|
-
|
|
1752
|
-
let e =
|
|
1753
|
-
return
|
|
1754
|
-
}
|
|
1755
|
-
function
|
|
1756
|
-
for (var e =
|
|
1757
|
-
else if (
|
|
1758
|
-
else if (
|
|
1740
|
+
function Jr() {
|
|
1741
|
+
Z("[");
|
|
1742
|
+
let e = ei();
|
|
1743
|
+
return Z("]"), e;
|
|
1744
|
+
}
|
|
1745
|
+
function Yr() {
|
|
1746
|
+
for (var e = Wr(), t, n;;) if (Q(".")) n = qr(), e = Mr(".", e, n);
|
|
1747
|
+
else if (Q("(")) t = Gr(), e = Or(e, t);
|
|
1748
|
+
else if (Q("[")) n = Jr(), e = Mr("[", e, n);
|
|
1759
1749
|
else break;
|
|
1760
1750
|
return e;
|
|
1761
1751
|
}
|
|
1762
|
-
function
|
|
1763
|
-
let e =
|
|
1764
|
-
if (B.type === W && (
|
|
1752
|
+
function Xr() {
|
|
1753
|
+
let e = Yr();
|
|
1754
|
+
if (B.type === W && (Q("++") || Q("--"))) throw Error(Qn);
|
|
1765
1755
|
return e;
|
|
1766
1756
|
}
|
|
1767
|
-
function
|
|
1757
|
+
function Zr() {
|
|
1768
1758
|
var e, t;
|
|
1769
|
-
if (B.type !== W && B.type !== H) t =
|
|
1770
|
-
else if (
|
|
1771
|
-
else if (
|
|
1772
|
-
else if (
|
|
1773
|
-
else t =
|
|
1759
|
+
if (B.type !== W && B.type !== H) t = Xr();
|
|
1760
|
+
else if (Q("++") || Q("--")) throw Error(Qn);
|
|
1761
|
+
else if (Q("+") || Q("-") || Q("~") || Q("!")) e = Y(), t = Zr(), t = Fr(e.value, t);
|
|
1762
|
+
else if (Lr("delete") || Lr("void") || Lr("typeof")) throw Error(Qn);
|
|
1763
|
+
else t = Xr();
|
|
1774
1764
|
return t;
|
|
1775
1765
|
}
|
|
1776
|
-
function
|
|
1766
|
+
function Qr(e) {
|
|
1777
1767
|
let t = 0;
|
|
1778
1768
|
if (e.type !== W && e.type !== H) return 0;
|
|
1779
1769
|
switch (e.value) {
|
|
@@ -1817,42 +1807,40 @@ function ii(e) {
|
|
|
1817
1807
|
break;
|
|
1818
1808
|
case "*":
|
|
1819
1809
|
case "/":
|
|
1820
|
-
case "%":
|
|
1821
|
-
t = 11;
|
|
1822
|
-
break;
|
|
1810
|
+
case "%": t = 11;
|
|
1823
1811
|
}
|
|
1824
1812
|
return t;
|
|
1825
1813
|
}
|
|
1826
|
-
function
|
|
1827
|
-
var e = B, t, n, r, i, a, o, s, c =
|
|
1828
|
-
if (r = B, i =
|
|
1829
|
-
for (r.prec = i,
|
|
1814
|
+
function $r() {
|
|
1815
|
+
var e = B, t, n, r, i, a, o, s, c = Zr(), l;
|
|
1816
|
+
if (r = B, i = Qr(r), i === 0) return c;
|
|
1817
|
+
for (r.prec = i, Y(), t = [e, B], o = Zr(), a = [
|
|
1830
1818
|
c,
|
|
1831
1819
|
r,
|
|
1832
1820
|
o
|
|
1833
|
-
]; (i =
|
|
1834
|
-
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n =
|
|
1835
|
-
r =
|
|
1821
|
+
]; (i = Qr(B)) > 0;) {
|
|
1822
|
+
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Dr(s, c, o), a.push(n);
|
|
1823
|
+
r = Y(), r.prec = i, a.push(r), t.push(B), n = Zr(), a.push(n);
|
|
1836
1824
|
}
|
|
1837
|
-
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n =
|
|
1825
|
+
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Dr(a[l - 1].value, a[l - 2], n), l -= 2;
|
|
1838
1826
|
return n;
|
|
1839
1827
|
}
|
|
1840
|
-
function
|
|
1841
|
-
var e =
|
|
1842
|
-
return
|
|
1828
|
+
function $() {
|
|
1829
|
+
var e = $r(), t, n;
|
|
1830
|
+
return Q("?") && (Y(), t = $(), Z(":"), n = $(), e = kr(e, t, n)), e;
|
|
1843
1831
|
}
|
|
1844
|
-
function
|
|
1845
|
-
let e =
|
|
1846
|
-
if (
|
|
1832
|
+
function ei() {
|
|
1833
|
+
let e = $();
|
|
1834
|
+
if (Q(",")) throw Error(Qn);
|
|
1847
1835
|
return e;
|
|
1848
1836
|
}
|
|
1849
|
-
function
|
|
1850
|
-
L = e, R = 0, z = L.length, B = null,
|
|
1851
|
-
let t =
|
|
1852
|
-
if (B.type !==
|
|
1837
|
+
function ti(e) {
|
|
1838
|
+
L = e, R = 0, z = L.length, B = null, Tr();
|
|
1839
|
+
let t = ei();
|
|
1840
|
+
if (B.type !== On) throw Error("Unexpect token after expression.");
|
|
1853
1841
|
return t;
|
|
1854
1842
|
}
|
|
1855
|
-
var
|
|
1843
|
+
var ni = {
|
|
1856
1844
|
NaN: "NaN",
|
|
1857
1845
|
E: "Math.E",
|
|
1858
1846
|
LN2: "Math.LN2",
|
|
@@ -1865,7 +1853,7 @@ var ci = {
|
|
|
1865
1853
|
MIN_VALUE: "Number.MIN_VALUE",
|
|
1866
1854
|
MAX_VALUE: "Number.MAX_VALUE"
|
|
1867
1855
|
};
|
|
1868
|
-
function
|
|
1856
|
+
function ri(e) {
|
|
1869
1857
|
function t(t, n, r, i) {
|
|
1870
1858
|
let a = e(n[0]);
|
|
1871
1859
|
return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
|
|
@@ -1932,6 +1920,7 @@ function li(e) {
|
|
|
1932
1920
|
trim: n("trim", i, 0),
|
|
1933
1921
|
btoa: "btoa",
|
|
1934
1922
|
atob: "atob",
|
|
1923
|
+
encodeURIComponent: "encodeURIComponent",
|
|
1935
1924
|
regexp: a,
|
|
1936
1925
|
test: n("test", a),
|
|
1937
1926
|
if: function(t) {
|
|
@@ -1941,17 +1930,15 @@ function li(e) {
|
|
|
1941
1930
|
}
|
|
1942
1931
|
};
|
|
1943
1932
|
}
|
|
1944
|
-
function
|
|
1933
|
+
function ii(e) {
|
|
1945
1934
|
let t = e && e.length - 1;
|
|
1946
1935
|
return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
|
|
1947
1936
|
}
|
|
1948
|
-
function
|
|
1937
|
+
function ai(e) {
|
|
1949
1938
|
e ||= {};
|
|
1950
|
-
let t = e.allowed ?
|
|
1951
|
-
[...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
1952
|
-
let c = {}, l = {}, u = 0;
|
|
1939
|
+
let t = e.allowed ? pn(e.allowed) : {}, n = e.forbidden ? pn(e.forbidden) : {}, r = e.constants || ni, i = (e.functions || ri)(d), a = e.globalvar, o = e.fieldvar, s = un(a) ? a : (e) => `${a}["${e}"]`, c = {}, l = {}, u = 0;
|
|
1953
1940
|
function d(e) {
|
|
1954
|
-
if (
|
|
1941
|
+
if (fn(e)) return e;
|
|
1955
1942
|
let t = f[e.type];
|
|
1956
1943
|
return t ?? P("Unsupported type: " + e.type), t(e);
|
|
1957
1944
|
}
|
|
@@ -1959,18 +1946,18 @@ function di(e) {
|
|
|
1959
1946
|
Literal: (e) => e.raw,
|
|
1960
1947
|
Identifier: (e) => {
|
|
1961
1948
|
let i = e.name;
|
|
1962
|
-
return u > 0 ? i :
|
|
1949
|
+
return u > 0 ? i : dn(n, i) ? P("Illegal identifier: " + i) : dn(r, i) ? r[i] : dn(t, i) ? i : (c[i] = 1, s(i));
|
|
1963
1950
|
},
|
|
1964
1951
|
MemberExpression: (e) => {
|
|
1965
1952
|
let t = !e.computed, n = d(e.object);
|
|
1966
1953
|
t && (u += 1);
|
|
1967
1954
|
let r = d(e.property);
|
|
1968
|
-
return n === o && (l[
|
|
1955
|
+
return n === o && (l[ii(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
|
|
1969
1956
|
},
|
|
1970
1957
|
CallExpression: (e) => {
|
|
1971
1958
|
e.callee.type !== "Identifier" && P("Illegal callee type: " + e.callee.type);
|
|
1972
|
-
let t = e.callee.name, n = e.arguments, r =
|
|
1973
|
-
return r || P("Unrecognized function: " + t),
|
|
1959
|
+
let t = e.callee.name, n = e.arguments, r = dn(i, t) && i[t];
|
|
1960
|
+
return r || P("Unrecognized function: " + t), un(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
|
|
1974
1961
|
},
|
|
1975
1962
|
ArrayExpression: (e) => "[" + e.elements.map(d).join(",") + "]",
|
|
1976
1963
|
BinaryExpression: (e) => "(" + d(e.left) + " " + e.operator + " " + d(e.right) + ")",
|
|
@@ -1979,8 +1966,8 @@ function di(e) {
|
|
|
1979
1966
|
LogicalExpression: (e) => "(" + d(e.left) + e.operator + d(e.right) + ")",
|
|
1980
1967
|
ObjectExpression: (e) => {
|
|
1981
1968
|
for (let t of e.properties) {
|
|
1982
|
-
let e = t.key.name;
|
|
1983
|
-
|
|
1969
|
+
let e = t.key.type === "Literal" ? String(t.key.value) : t.key.name;
|
|
1970
|
+
ln.has(e) && P("Illegal property: " + e);
|
|
1984
1971
|
}
|
|
1985
1972
|
return "{" + e.properties.map(d).join(",") + "}";
|
|
1986
1973
|
},
|
|
@@ -2002,83 +1989,83 @@ function di(e) {
|
|
|
2002
1989
|
}
|
|
2003
1990
|
//#endregion
|
|
2004
1991
|
//#region ../core/src/utils/smoothstep.js
|
|
2005
|
-
function
|
|
1992
|
+
function oi(e, t, n) {
|
|
2006
1993
|
return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
|
|
2007
1994
|
}
|
|
2008
1995
|
//#endregion
|
|
2009
1996
|
//#region ../core/src/utils/clamp.js
|
|
2010
|
-
function
|
|
1997
|
+
function si(e, t = 0, n = 1) {
|
|
2011
1998
|
return Math.max(t, Math.min(n, e));
|
|
2012
1999
|
}
|
|
2013
2000
|
//#endregion
|
|
2014
2001
|
//#region ../core/src/utils/linearstep.js
|
|
2015
|
-
function
|
|
2016
|
-
return
|
|
2002
|
+
function ci(e, t, n) {
|
|
2003
|
+
return si((n - e) / (t - e), 0, 1);
|
|
2017
2004
|
}
|
|
2018
2005
|
//#endregion
|
|
2019
2006
|
//#region ../core/src/utils/expression.js
|
|
2020
|
-
function
|
|
2007
|
+
function li(e) {
|
|
2021
2008
|
return u(e) || ArrayBuffer.isView(e) ? e : null;
|
|
2022
2009
|
}
|
|
2023
|
-
function
|
|
2024
|
-
return
|
|
2010
|
+
function ui(e) {
|
|
2011
|
+
return li(e) || (S(e) ? e : null);
|
|
2025
2012
|
}
|
|
2026
|
-
var
|
|
2027
|
-
clamp:
|
|
2028
|
-
tickStep:
|
|
2013
|
+
var di = {
|
|
2014
|
+
clamp: si,
|
|
2015
|
+
tickStep: Pe,
|
|
2029
2016
|
format(e, t) {
|
|
2030
2017
|
return jt(t)(e);
|
|
2031
2018
|
},
|
|
2032
2019
|
join(e, t) {
|
|
2033
|
-
return
|
|
2020
|
+
return li(e).join(t);
|
|
2034
2021
|
},
|
|
2035
2022
|
indexof(e, t, n) {
|
|
2036
|
-
return
|
|
2023
|
+
return ui(e).indexOf(t, n);
|
|
2037
2024
|
},
|
|
2038
|
-
inrange:
|
|
2025
|
+
inrange: he,
|
|
2039
2026
|
lastindexof(e, t, n) {
|
|
2040
|
-
return
|
|
2027
|
+
return ui(e).lastIndexOf(t, n);
|
|
2041
2028
|
},
|
|
2042
2029
|
reverse(e) {
|
|
2043
|
-
return
|
|
2030
|
+
return S(e) ? Array.from(e).reverse().join("") : li(e).slice().reverse();
|
|
2044
2031
|
},
|
|
2045
2032
|
slice(e, t, n) {
|
|
2046
|
-
return
|
|
2033
|
+
return ui(e).slice(t, n);
|
|
2047
2034
|
},
|
|
2048
2035
|
mapHasKey(e, t) {
|
|
2049
2036
|
return e.has(t);
|
|
2050
2037
|
},
|
|
2051
2038
|
isArray: u,
|
|
2052
|
-
isBoolean:
|
|
2039
|
+
isBoolean: ge,
|
|
2053
2040
|
isDefined(e) {
|
|
2054
2041
|
return e !== void 0;
|
|
2055
2042
|
},
|
|
2056
|
-
isNumber:
|
|
2043
|
+
isNumber: _e,
|
|
2057
2044
|
isObject: d,
|
|
2058
|
-
isRegExp:
|
|
2059
|
-
isString:
|
|
2045
|
+
isRegExp: ve,
|
|
2046
|
+
isString: S,
|
|
2060
2047
|
isValid(e) {
|
|
2061
2048
|
return e != null && e === e;
|
|
2062
2049
|
},
|
|
2063
|
-
lerp:
|
|
2064
|
-
linearstep:
|
|
2050
|
+
lerp: ye,
|
|
2051
|
+
linearstep: ci,
|
|
2065
2052
|
replace(e, t, n) {
|
|
2066
2053
|
return String(e).replace(t, n);
|
|
2067
2054
|
},
|
|
2068
2055
|
sort(e) {
|
|
2069
|
-
return
|
|
2056
|
+
return li(e).slice().sort(de);
|
|
2070
2057
|
},
|
|
2071
2058
|
center(e) {
|
|
2072
|
-
let t =
|
|
2059
|
+
let t = li(e);
|
|
2073
2060
|
return (t[0] + t[t.length - 1]) / 2;
|
|
2074
2061
|
},
|
|
2075
2062
|
span(e) {
|
|
2076
|
-
return
|
|
2063
|
+
return be(e);
|
|
2077
2064
|
},
|
|
2078
|
-
smoothstep:
|
|
2065
|
+
smoothstep: oi
|
|
2079
2066
|
};
|
|
2080
|
-
function
|
|
2081
|
-
let t = !1, n =
|
|
2067
|
+
function fi(e) {
|
|
2068
|
+
let t = !1, n = bi(e, {}, { resolveScaleResolution: () => (t = !0, {
|
|
2082
2069
|
channel: "analysis",
|
|
2083
2070
|
getDomainRef: () => void 0,
|
|
2084
2071
|
getMappingRef: () => void 0,
|
|
@@ -2090,9 +2077,9 @@ function vi(e) {
|
|
|
2090
2077
|
globals: n.globals
|
|
2091
2078
|
};
|
|
2092
2079
|
}
|
|
2093
|
-
function
|
|
2094
|
-
let n =
|
|
2095
|
-
for (let e in
|
|
2080
|
+
function pi(e, t) {
|
|
2081
|
+
let n = ri(e);
|
|
2082
|
+
for (let e in di) n[e] = `this.${e}`;
|
|
2096
2083
|
for (let r of [
|
|
2097
2084
|
"scale",
|
|
2098
2085
|
"invert",
|
|
@@ -2101,10 +2088,10 @@ function yi(e, t) {
|
|
|
2101
2088
|
"bandwidth",
|
|
2102
2089
|
"linearize",
|
|
2103
2090
|
"zoomLevel"
|
|
2104
|
-
]) n[r] = (n) =>
|
|
2091
|
+
]) n[r] = (n) => mi(e, t, r, n);
|
|
2105
2092
|
return n;
|
|
2106
2093
|
}
|
|
2107
|
-
function
|
|
2094
|
+
function mi(e, t, n, r) {
|
|
2108
2095
|
if (n === "zoomLevel" && r.length === 0) {
|
|
2109
2096
|
let e = [];
|
|
2110
2097
|
for (let r of ["x", "y"]) {
|
|
@@ -2119,18 +2106,18 @@ function bi(e, t, n, r) {
|
|
|
2119
2106
|
if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
2120
2107
|
if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
|
|
2121
2108
|
if (n === "zoomLevel" && r.length > 1) throw Error("Scale helper \"zoomLevel\" accepts zero arguments or one literal channel name.");
|
|
2122
|
-
let i =
|
|
2109
|
+
let i = hi(r[0]);
|
|
2123
2110
|
if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
2124
2111
|
let a = t.resolveScaleResolution?.(i);
|
|
2125
2112
|
if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
|
|
2126
2113
|
let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
|
|
2127
2114
|
return `${t.globalvar}["${o.codeName}"](${s})`;
|
|
2128
2115
|
}
|
|
2129
|
-
function
|
|
2116
|
+
function hi(e) {
|
|
2130
2117
|
return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
|
|
2131
2118
|
}
|
|
2132
|
-
function
|
|
2133
|
-
let n = (n) =>
|
|
2119
|
+
function gi(e, t) {
|
|
2120
|
+
let n = (n) => vi(t, e, n);
|
|
2134
2121
|
if (e === "domain") return () => n(() => t.getDomain());
|
|
2135
2122
|
if (e === "range") return () => n(() => t.getScale().range());
|
|
2136
2123
|
if (e === "bandwidth") return () => n(() => {
|
|
@@ -2144,20 +2131,20 @@ function Si(e, t) {
|
|
|
2144
2131
|
if (e === "zoomLevel") return () => n(() => t.getZoomLevel());
|
|
2145
2132
|
throw Error("Unknown scale helper: " + e);
|
|
2146
2133
|
}
|
|
2147
|
-
var
|
|
2148
|
-
function
|
|
2149
|
-
if (
|
|
2150
|
-
|
|
2134
|
+
var _i = /* @__PURE__ */ new WeakSet();
|
|
2135
|
+
function vi(e, t, n) {
|
|
2136
|
+
if (_i.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
|
|
2137
|
+
_i.add(e);
|
|
2151
2138
|
try {
|
|
2152
2139
|
return n();
|
|
2153
2140
|
} finally {
|
|
2154
|
-
|
|
2141
|
+
_i.delete(e);
|
|
2155
2142
|
}
|
|
2156
2143
|
}
|
|
2157
|
-
function
|
|
2144
|
+
function yi(e, t) {
|
|
2158
2145
|
return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : e === "zoomLevel" ? t.getZoomLevelRef() : t.getMappingRef();
|
|
2159
2146
|
}
|
|
2160
|
-
function
|
|
2147
|
+
function bi(e, t = {}, n = {}) {
|
|
2161
2148
|
try {
|
|
2162
2149
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = 1, s = {
|
|
2163
2150
|
...n,
|
|
@@ -2167,38 +2154,38 @@ function Ei(e, t = {}, n = {}) {
|
|
|
2167
2154
|
let c = e + ":" + n, l = i.get(c);
|
|
2168
2155
|
if (l) return l;
|
|
2169
2156
|
let u = r.get(c);
|
|
2170
|
-
u || (u =
|
|
2157
|
+
u || (u = yi(e, s), r.set(c, u));
|
|
2171
2158
|
let d = "__scale_helper_" + o++, f = {
|
|
2172
2159
|
codeName: d,
|
|
2173
2160
|
dependency: u
|
|
2174
2161
|
};
|
|
2175
|
-
return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] =
|
|
2162
|
+
return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = gi(e, s), f;
|
|
2176
2163
|
}
|
|
2177
|
-
}, c =
|
|
2164
|
+
}, c = ai({
|
|
2178
2165
|
forbidden: [],
|
|
2179
2166
|
allowed: ["datum", "undefined"],
|
|
2180
2167
|
globalvar: "globalObject",
|
|
2181
2168
|
fieldvar: "datum",
|
|
2182
|
-
functions: (e) =>
|
|
2183
|
-
})(
|
|
2169
|
+
functions: (e) => pi(e, s)
|
|
2170
|
+
})(ti(e)), l = Function("datum", "globalObject", `"use strict";
|
|
2184
2171
|
try {
|
|
2185
2172
|
return (${c.code});
|
|
2186
2173
|
} catch (e) {
|
|
2187
2174
|
throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
|
|
2188
|
-
}`).bind(
|
|
2175
|
+
}`).bind(di), u = (e) => l(e, t);
|
|
2189
2176
|
return u.createEvaluator = (e) => (t) => l(t, e), u.fields = c.fields, u.globals = c.globals, u.code = c.code, u.scaleDependencies = Array.from(new Set(r.values())), u.zoomLevelResolutions = Array.from(a), u;
|
|
2190
2177
|
} catch (t) {
|
|
2191
2178
|
throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
|
|
2192
2179
|
}
|
|
2193
2180
|
}
|
|
2194
|
-
var
|
|
2181
|
+
var xi = ai({
|
|
2195
2182
|
forbidden: [],
|
|
2196
2183
|
allowed: ["event"],
|
|
2197
2184
|
globalvar: "globalObject"
|
|
2198
2185
|
});
|
|
2199
|
-
function
|
|
2186
|
+
function Si(e) {
|
|
2200
2187
|
try {
|
|
2201
|
-
let t =
|
|
2188
|
+
let t = xi(ti(e));
|
|
2202
2189
|
return Function("event", "globalObject", `"use strict";
|
|
2203
2190
|
try {
|
|
2204
2191
|
return !!(${t.code});
|
|
@@ -2211,24 +2198,25 @@ function Oi(e) {
|
|
|
2211
2198
|
}
|
|
2212
2199
|
//#endregion
|
|
2213
2200
|
//#region ../core/src/utils/interactionConfig.js
|
|
2214
|
-
function
|
|
2201
|
+
function Ci(e) {
|
|
2215
2202
|
if (typeof e == "string") {
|
|
2216
2203
|
let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
|
|
2217
2204
|
if (!t) throw Error(`Invalid event type string: ${e}`);
|
|
2218
2205
|
let [, n, r] = t, i = { type: n };
|
|
2219
2206
|
return r && (i.filter = r), i;
|
|
2220
|
-
}
|
|
2207
|
+
}
|
|
2208
|
+
return e;
|
|
2221
2209
|
}
|
|
2222
|
-
function
|
|
2223
|
-
return e?.filter ?
|
|
2210
|
+
function wi(e) {
|
|
2211
|
+
return e?.filter ? Si(e.filter) : () => !0;
|
|
2224
2212
|
}
|
|
2225
|
-
function
|
|
2213
|
+
function Ti(e, t, n) {
|
|
2226
2214
|
if (!t.includes(e.type)) throw Error(n);
|
|
2227
2215
|
return e;
|
|
2228
2216
|
}
|
|
2229
2217
|
//#endregion
|
|
2230
2218
|
//#region ../core/src/selection/selectionPredicateTree.js
|
|
2231
|
-
function
|
|
2219
|
+
function Ei(e, t) {
|
|
2232
2220
|
if (!("test" in e) || !("ref" in e.test)) return e;
|
|
2233
2221
|
let n = e.test.ref;
|
|
2234
2222
|
if (!Object.hasOwn(t, n)) throw Error(`Unknown predicate "${n}" in unit view.`);
|
|
@@ -2237,7 +2225,7 @@ function Mi(e, t) {
|
|
|
2237
2225
|
test: t[n]
|
|
2238
2226
|
};
|
|
2239
2227
|
}
|
|
2240
|
-
function
|
|
2228
|
+
function Di(e) {
|
|
2241
2229
|
let t = "test" in e ? e.test : {
|
|
2242
2230
|
param: e.param,
|
|
2243
2231
|
...e.empty === void 0 ? {} : { empty: e.empty },
|
|
@@ -2286,7 +2274,7 @@ function Ni(e) {
|
|
|
2286
2274
|
};
|
|
2287
2275
|
return n(t);
|
|
2288
2276
|
}
|
|
2289
|
-
function
|
|
2277
|
+
function Oi(e) {
|
|
2290
2278
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
2291
2279
|
if ("param" in e) t.add(e.param);
|
|
2292
2280
|
else if ("selectionActive" in e) t.add(typeof e.selectionActive == "string" ? e.selectionActive : e.selectionActive.param);
|
|
@@ -2295,7 +2283,7 @@ function Pi(e) {
|
|
|
2295
2283
|
};
|
|
2296
2284
|
return n(e), Array.from(t);
|
|
2297
2285
|
}
|
|
2298
|
-
function
|
|
2286
|
+
function ki(e) {
|
|
2299
2287
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
2300
2288
|
if ("param" in e) t.set(e.param, { selectionActive: {
|
|
2301
2289
|
param: e.param,
|
|
@@ -2308,14 +2296,14 @@ function Fi(e) {
|
|
|
2308
2296
|
};
|
|
2309
2297
|
return n(e), { all: [e, { any: Array.from(t.values()) }] };
|
|
2310
2298
|
}
|
|
2311
|
-
function
|
|
2299
|
+
function Ai(e) {
|
|
2312
2300
|
if ("param" in e) return e.empty;
|
|
2313
2301
|
if ("selectionActive" in e) return !1;
|
|
2314
|
-
if ("not" in e) return !
|
|
2302
|
+
if ("not" in e) return !Ai(e.not);
|
|
2315
2303
|
let t = "all" in e ? e.all : e.any;
|
|
2316
|
-
return "all" in e ? t.every(
|
|
2304
|
+
return "all" in e ? t.every(Ai) : t.some(Ai);
|
|
2317
2305
|
}
|
|
2318
|
-
function
|
|
2306
|
+
function ji(e, t, n, r, i) {
|
|
2319
2307
|
let a = (e) => {
|
|
2320
2308
|
let t = n.findSelectionCapability?.(e);
|
|
2321
2309
|
if (t) return t;
|
|
@@ -2392,18 +2380,18 @@ function Li(e, t, n, r, i) {
|
|
|
2392
2380
|
};
|
|
2393
2381
|
return c(e);
|
|
2394
2382
|
}
|
|
2395
|
-
function
|
|
2383
|
+
function Mi(e, t) {
|
|
2396
2384
|
if ("all" in e || "any" in e) {
|
|
2397
|
-
let n = ("all" in e ? e.all : e.any).map((e) =>
|
|
2385
|
+
let n = ("all" in e ? e.all : e.any).map((e) => Mi(e, t));
|
|
2398
2386
|
return "all" in e ? (e) => n.every((t) => t(e)) : (e) => n.some((t) => t(e));
|
|
2399
2387
|
}
|
|
2400
2388
|
if ("not" in e) {
|
|
2401
|
-
let n =
|
|
2389
|
+
let n = Mi(e.not, t);
|
|
2402
2390
|
return (e) => !n(e);
|
|
2403
2391
|
}
|
|
2404
2392
|
if ("selectionActive" in e) {
|
|
2405
2393
|
let { param: n } = e.selectionActive;
|
|
2406
|
-
return () =>
|
|
2394
|
+
return () => Ni(t(n));
|
|
2407
2395
|
}
|
|
2408
2396
|
let { param: n, type: r, empty: i } = e;
|
|
2409
2397
|
if (r === "single") return (e) => {
|
|
@@ -2421,7 +2409,7 @@ function Ri(e, t) {
|
|
|
2421
2409
|
}));
|
|
2422
2410
|
return (e) => {
|
|
2423
2411
|
let r = t(n);
|
|
2424
|
-
if (!
|
|
2412
|
+
if (!Ni(r)) return i;
|
|
2425
2413
|
for (let t of a) {
|
|
2426
2414
|
let n = r.intervals[t.component], i = t.read(e), a = t.readSecondary?.(e), [o, s] = n;
|
|
2427
2415
|
if (!(a === void 0 ? o <= i && i < s : t.hitTest === "endpoints" ? o <= i && i < s || o <= a && a < s : t.hitTest === "encloses" ? o <= Math.min(i, a) && Math.max(i, a) <= s : o < Math.max(i, a) && Math.min(i, a) < s)) return !1;
|
|
@@ -2429,7 +2417,7 @@ function Ri(e, t) {
|
|
|
2429
2417
|
return !0;
|
|
2430
2418
|
};
|
|
2431
2419
|
}
|
|
2432
|
-
function
|
|
2420
|
+
function Ni(e) {
|
|
2433
2421
|
if (e.type === "single") return e.uniqueId != null;
|
|
2434
2422
|
if (e.type === "multi") return e.data.size !== 0;
|
|
2435
2423
|
if (e.type === "interval") return Object.values(e.intervals).every((e) => !!e);
|
|
@@ -2437,26 +2425,26 @@ function zi(e) {
|
|
|
2437
2425
|
}
|
|
2438
2426
|
//#endregion
|
|
2439
2427
|
//#region ../core/src/selection/selection.js
|
|
2440
|
-
function
|
|
2428
|
+
function Pi(e) {
|
|
2441
2429
|
return {
|
|
2442
2430
|
type: "single",
|
|
2443
2431
|
datum: e,
|
|
2444
2432
|
uniqueId: e?.[M]
|
|
2445
2433
|
};
|
|
2446
2434
|
}
|
|
2447
|
-
function
|
|
2435
|
+
function Fi(e) {
|
|
2448
2436
|
return e ??= [], {
|
|
2449
2437
|
type: "multi",
|
|
2450
2438
|
data: new Map(e.map((e) => [e[M], e]))
|
|
2451
2439
|
};
|
|
2452
2440
|
}
|
|
2453
|
-
function
|
|
2441
|
+
function Ii(e) {
|
|
2454
2442
|
return {
|
|
2455
2443
|
type: "interval",
|
|
2456
2444
|
intervals: Object.fromEntries(e.map((e) => [e, null]))
|
|
2457
2445
|
};
|
|
2458
2446
|
}
|
|
2459
|
-
function
|
|
2447
|
+
function Li(e, { add: t, remove: n, toggle: r }) {
|
|
2460
2448
|
let i = e.data;
|
|
2461
2449
|
for (let e of t ?? []) i.set(e[M], e);
|
|
2462
2450
|
for (let e of n ?? []) i.delete(e[M]);
|
|
@@ -2469,74 +2457,75 @@ function Ui(e, { add: t, remove: n, toggle: r }) {
|
|
|
2469
2457
|
data: i
|
|
2470
2458
|
};
|
|
2471
2459
|
}
|
|
2472
|
-
function
|
|
2460
|
+
function Ri(e, t) {
|
|
2473
2461
|
let n = !!(e.empty ?? !0), r = Gt(e.param), i = e.fields ?? {};
|
|
2474
|
-
if (
|
|
2475
|
-
if (
|
|
2476
|
-
if (
|
|
2477
|
-
let a = Object.keys(t.intervals), o = Object.keys(i).filter(
|
|
2462
|
+
if (Ui(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(M)}]`;
|
|
2463
|
+
if (Wi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(M)}])`;
|
|
2464
|
+
if (Hi(t)) {
|
|
2465
|
+
let a = Object.keys(t.intervals), o = Object.keys(i).filter(Oa);
|
|
2478
2466
|
if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
|
|
2479
2467
|
if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
|
|
2480
2468
|
let s = (e) => `datum[${JSON.stringify(e)}]`;
|
|
2481
2469
|
return a.map((e) => {
|
|
2482
|
-
let t =
|
|
2470
|
+
let t = Ia(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
|
|
2483
2471
|
return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
|
|
2484
2472
|
}).join(" && ");
|
|
2485
|
-
}
|
|
2473
|
+
}
|
|
2474
|
+
throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
|
|
2486
2475
|
}
|
|
2487
|
-
function
|
|
2488
|
-
if (
|
|
2476
|
+
function zi(e) {
|
|
2477
|
+
if ("param" in e || "test" in e) return Di(e);
|
|
2489
2478
|
}
|
|
2490
|
-
function
|
|
2491
|
-
return e?.selection ?
|
|
2479
|
+
function Bi(e) {
|
|
2480
|
+
return e?.selection ? Oi(e.selection) : [];
|
|
2492
2481
|
}
|
|
2493
|
-
function
|
|
2482
|
+
function Vi(e) {
|
|
2494
2483
|
let t = Object.values(e).flatMap((e) => e.branches.flatMap(({ predicate: e }) => e.selection ? [e.selection] : [])), n = /* @__PURE__ */ new Set();
|
|
2495
2484
|
return t.filter((e) => {
|
|
2496
2485
|
let t = JSON.stringify(e);
|
|
2497
|
-
return n.has(t)
|
|
2486
|
+
return !n.has(t) && (n.add(t), !0);
|
|
2498
2487
|
});
|
|
2499
2488
|
}
|
|
2500
|
-
function
|
|
2489
|
+
function Hi(e) {
|
|
2501
2490
|
return e.type === "interval";
|
|
2502
2491
|
}
|
|
2503
|
-
function
|
|
2492
|
+
function Ui(e) {
|
|
2504
2493
|
return e.type === "single";
|
|
2505
2494
|
}
|
|
2506
|
-
function
|
|
2495
|
+
function Wi(e) {
|
|
2507
2496
|
return e.type === "multi";
|
|
2508
2497
|
}
|
|
2509
|
-
function
|
|
2498
|
+
function Gi(e) {
|
|
2510
2499
|
let t = typeof e == "string" ? { type: e } : { ...e };
|
|
2511
|
-
return t.on = t.on ?
|
|
2500
|
+
return t.on = t.on ? Ci(t.on) : Ki(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Ci(t.clear), Ki(t) && t.on.type === "click" && t.toggle === void 0 && (t.toggle = !0), t;
|
|
2512
2501
|
}
|
|
2513
|
-
function
|
|
2502
|
+
function Ki(e) {
|
|
2514
2503
|
return e && e.type == "point";
|
|
2515
2504
|
}
|
|
2516
|
-
function
|
|
2505
|
+
function qi(e) {
|
|
2517
2506
|
return e && e.type == "interval";
|
|
2518
2507
|
}
|
|
2519
|
-
function
|
|
2520
|
-
if (
|
|
2521
|
-
if (
|
|
2522
|
-
if (
|
|
2508
|
+
function Ji(e) {
|
|
2509
|
+
if (Ui(e)) return e.uniqueId != null;
|
|
2510
|
+
if (Wi(e)) return e.data.size > 0;
|
|
2511
|
+
if (Hi(e)) return Yi(e);
|
|
2523
2512
|
throw Error(`Unsupported selection type: ${e.type}`);
|
|
2524
2513
|
}
|
|
2525
|
-
function
|
|
2514
|
+
function Yi(e) {
|
|
2526
2515
|
return Object.values(e.intervals).some((e) => e && e.length === 2);
|
|
2527
2516
|
}
|
|
2528
|
-
function
|
|
2517
|
+
function Xi(e, t) {
|
|
2529
2518
|
return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
|
|
2530
2519
|
}
|
|
2531
2520
|
//#endregion
|
|
2532
2521
|
//#region ../core/src/encoder/accessor.js
|
|
2533
|
-
function
|
|
2522
|
+
function Zi(e, t, n) {
|
|
2534
2523
|
if (!e) throw Error("Cannot create an accessor without a channel.");
|
|
2535
2524
|
function r(n) {
|
|
2536
2525
|
let r = n;
|
|
2537
|
-
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey =
|
|
2526
|
+
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = ea(t), r.scaleChannel = ((ga(t) && t.resolutionChannel) ?? (Ba(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = ta({
|
|
2538
2527
|
scaleChannel: r.scaleChannel,
|
|
2539
|
-
source:
|
|
2528
|
+
source: $i(t)
|
|
2540
2529
|
}).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
|
|
2541
2530
|
}
|
|
2542
2531
|
function i(e) {
|
|
@@ -2544,94 +2533,95 @@ function ra(e, t, n) {
|
|
|
2544
2533
|
let t = r(n.createExpression(e.expr));
|
|
2545
2534
|
if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
|
|
2546
2535
|
return t;
|
|
2547
|
-
}
|
|
2536
|
+
}
|
|
2537
|
+
{
|
|
2548
2538
|
let t = e;
|
|
2549
2539
|
return r(() => t);
|
|
2550
2540
|
}
|
|
2551
2541
|
}
|
|
2552
|
-
if (
|
|
2542
|
+
if (ma(t)) try {
|
|
2553
2543
|
return r(tn(t.field));
|
|
2554
2544
|
} catch (e) {
|
|
2555
2545
|
throw Error(`Invalid field definition: ${e.message}`, { cause: e });
|
|
2556
2546
|
}
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2547
|
+
if (xa(t)) return r(n.createExpression(t.expr));
|
|
2548
|
+
if (ha(t)) return i(t.datum);
|
|
2549
|
+
if (pa(t)) return i(t.value);
|
|
2550
|
+
throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
|
|
2561
2551
|
}
|
|
2562
|
-
function
|
|
2552
|
+
function Qi(e) {
|
|
2563
2553
|
return e.scaleChannel !== void 0;
|
|
2564
2554
|
}
|
|
2565
|
-
function
|
|
2566
|
-
if (
|
|
2555
|
+
function $i(e) {
|
|
2556
|
+
if (ma(e)) return {
|
|
2567
2557
|
kind: "field",
|
|
2568
2558
|
value: e.field
|
|
2569
2559
|
};
|
|
2570
|
-
if (
|
|
2560
|
+
if (xa(e)) return {
|
|
2571
2561
|
kind: "expr",
|
|
2572
2562
|
value: e.expr
|
|
2573
2563
|
};
|
|
2574
|
-
if (
|
|
2564
|
+
if (ha(e)) return {
|
|
2575
2565
|
kind: "datum",
|
|
2576
2566
|
value: e.datum
|
|
2577
2567
|
};
|
|
2578
|
-
if (
|
|
2568
|
+
if (pa(e)) return {
|
|
2579
2569
|
kind: "value",
|
|
2580
2570
|
value: e.value
|
|
2581
2571
|
};
|
|
2582
2572
|
throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
|
|
2583
2573
|
}
|
|
2584
|
-
function
|
|
2585
|
-
let t =
|
|
2586
|
-
return t.kind === "datum" || t.kind === "value" ? "constant|" +
|
|
2574
|
+
function ea(e) {
|
|
2575
|
+
let t = $i(e);
|
|
2576
|
+
return t.kind === "datum" || t.kind === "value" ? "constant|" + ia(t.value) : t.kind + "|" + ra(t);
|
|
2587
2577
|
}
|
|
2588
|
-
function
|
|
2578
|
+
function ta({ scaleChannel: e, source: t, type: n }) {
|
|
2589
2579
|
if (!e) throw Error("Cannot build a domain key without a scale channel.");
|
|
2590
|
-
let r = e + "|" + t.kind + "|" +
|
|
2580
|
+
let r = e + "|" + t.kind + "|" + ra(t);
|
|
2591
2581
|
return {
|
|
2592
2582
|
domainKeyBase: r,
|
|
2593
2583
|
domainKey: n ? n + "|" + r : void 0
|
|
2594
2584
|
};
|
|
2595
2585
|
}
|
|
2596
|
-
function
|
|
2597
|
-
let { domainKey: n, domainKeyBase: r } =
|
|
2586
|
+
function na(e, t) {
|
|
2587
|
+
let { domainKey: n, domainKeyBase: r } = ta({
|
|
2598
2588
|
scaleChannel: e.scaleChannel,
|
|
2599
|
-
source:
|
|
2589
|
+
source: $i(e.channelDef),
|
|
2600
2590
|
type: t
|
|
2601
2591
|
});
|
|
2602
2592
|
if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
|
|
2603
2593
|
return e.domainKeyBase = r, e.domainKey = n, n;
|
|
2604
2594
|
}
|
|
2605
|
-
function
|
|
2595
|
+
function ra(e) {
|
|
2606
2596
|
switch (e.kind) {
|
|
2607
2597
|
case "field":
|
|
2608
2598
|
case "expr": return e.value;
|
|
2609
2599
|
case "datum":
|
|
2610
|
-
case "value": return
|
|
2600
|
+
case "value": return ia(e.value);
|
|
2611
2601
|
default: throw Error("Unknown domain key source.");
|
|
2612
2602
|
}
|
|
2613
2603
|
}
|
|
2614
|
-
function
|
|
2604
|
+
function ia(e) {
|
|
2615
2605
|
return j(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
|
|
2616
2606
|
}
|
|
2617
2607
|
//#endregion
|
|
2618
2608
|
//#region ../core/src/encoder/encoder.js
|
|
2619
|
-
function
|
|
2620
|
-
let a, o, s =
|
|
2621
|
-
return s.every((e) => n.findValue(e)) && c(), Object.defineProperty((e) => s.some((e) => !n.findValue(e))
|
|
2609
|
+
function aa(e, t, n, r = "intersects", i) {
|
|
2610
|
+
let a, o, s = Oi(e), c = () => (a ??= ji(e, t, n, r, i), a);
|
|
2611
|
+
return s.every((e) => n.findValue(e)) && c(), Object.defineProperty((e) => !s.some((e) => !n.findValue(e)) && (o ??= Mi(c(), (e) => n.findValue(e)), o(e)), "selection", { get: c });
|
|
2622
2612
|
}
|
|
2623
|
-
function
|
|
2624
|
-
let o =
|
|
2625
|
-
let l = o[c], u =
|
|
2613
|
+
function oa(e, t, n, r, i = "intersects", a) {
|
|
2614
|
+
let o = Sa(t) || Ca(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], s = [...o, t], c = s.map((t, c) => {
|
|
2615
|
+
let l = o[c], u = Zi(e, t, r), d = l ? zi(l) : void 0;
|
|
2626
2616
|
return {
|
|
2627
2617
|
accessor: u,
|
|
2628
|
-
predicate: d ?
|
|
2618
|
+
predicate: d ? aa(d, n, r, i, a) : Xt(c === s.length - 1)
|
|
2629
2619
|
};
|
|
2630
2620
|
});
|
|
2631
2621
|
if (c.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
|
|
2632
2622
|
return c;
|
|
2633
2623
|
}
|
|
2634
|
-
function
|
|
2624
|
+
function sa(e, t) {
|
|
2635
2625
|
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
|
|
2636
2626
|
let r = e.getScaleResolution(t);
|
|
2637
2627
|
e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
|
|
@@ -2639,25 +2629,25 @@ function pa(e, t) {
|
|
|
2639
2629
|
for (let [a, o] of Object.entries(t)) {
|
|
2640
2630
|
if (!o) continue;
|
|
2641
2631
|
let s = a;
|
|
2642
|
-
|
|
2632
|
+
ca(s) || (n[s] = da(oa(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode, (t) => e.getScaleResolution(t)?.type), r, i));
|
|
2643
2633
|
}
|
|
2644
2634
|
return n;
|
|
2645
2635
|
}
|
|
2646
|
-
function
|
|
2636
|
+
function ca(e) {
|
|
2647
2637
|
return e === "key" || e === "search" || e === "tooltip" || e === "order";
|
|
2648
2638
|
}
|
|
2649
|
-
function
|
|
2639
|
+
function la(e) {
|
|
2650
2640
|
return e.branches.map((e) => e.accessor);
|
|
2651
2641
|
}
|
|
2652
|
-
function
|
|
2642
|
+
function ua(e) {
|
|
2653
2643
|
return e.branches.find((e) => !e.accessor.constant)?.accessor;
|
|
2654
2644
|
}
|
|
2655
|
-
function
|
|
2645
|
+
function da(e, t, n) {
|
|
2656
2646
|
if (e.length === 1) {
|
|
2657
|
-
let r =
|
|
2647
|
+
let r = fa(e[0].accessor, t, n);
|
|
2658
2648
|
return Object.assign(r, { branches: e });
|
|
2659
2649
|
}
|
|
2660
|
-
let r = e.map((e) => e.predicate), i = e.map((e) =>
|
|
2650
|
+
let r = e.map((e) => e.predicate), i = e.map((e) => fa(e.accessor, t, n)), a = Object.assign((e) => {
|
|
2661
2651
|
for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
|
|
2662
2652
|
}, {
|
|
2663
2653
|
constant: !1,
|
|
@@ -2669,7 +2659,7 @@ function _a(e, t, n) {
|
|
|
2669
2659
|
get: () => i.find((e) => e.scale)?.scale
|
|
2670
2660
|
});
|
|
2671
2661
|
}
|
|
2672
|
-
function
|
|
2662
|
+
function fa(e, t, n) {
|
|
2673
2663
|
let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
|
|
2674
2664
|
if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
|
|
2675
2665
|
let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
|
|
@@ -2685,91 +2675,92 @@ function va(e, t, n) {
|
|
|
2685
2675
|
o = e, s.scale = e;
|
|
2686
2676
|
}), s;
|
|
2687
2677
|
}
|
|
2688
|
-
function
|
|
2678
|
+
function pa(e) {
|
|
2689
2679
|
return e && "value" in e;
|
|
2690
2680
|
}
|
|
2691
|
-
function
|
|
2681
|
+
function ma(e) {
|
|
2692
2682
|
return e && "field" in e;
|
|
2693
2683
|
}
|
|
2694
|
-
function
|
|
2684
|
+
function ha(e) {
|
|
2695
2685
|
return e && "datum" in e;
|
|
2696
2686
|
}
|
|
2697
|
-
function
|
|
2698
|
-
return
|
|
2687
|
+
function ga(e) {
|
|
2688
|
+
return ma(e) || ha(e) || xa(e) || ba(e);
|
|
2699
2689
|
}
|
|
2700
|
-
function
|
|
2701
|
-
if (
|
|
2690
|
+
function _a(e) {
|
|
2691
|
+
if (Ca(e)) {
|
|
2702
2692
|
let t = e.condition;
|
|
2703
|
-
return (Array.isArray(t) ? t : [t]).find((e) =>
|
|
2704
|
-
}
|
|
2693
|
+
return (Array.isArray(t) ? t : [t]).find((e) => ga(e));
|
|
2694
|
+
}
|
|
2695
|
+
if (ga(e)) return e;
|
|
2705
2696
|
}
|
|
2706
|
-
function
|
|
2707
|
-
let t = e &&
|
|
2697
|
+
function va(e) {
|
|
2698
|
+
let t = e && _a(e);
|
|
2708
2699
|
return t != null && t.type != "quantitative" && t.scale !== null;
|
|
2709
2700
|
}
|
|
2710
|
-
function
|
|
2701
|
+
function ya(e, t) {
|
|
2711
2702
|
let n = e.mark.encoding[t];
|
|
2712
2703
|
if (Array.isArray(n)) throw Error("Not a channel def with scale!");
|
|
2713
2704
|
{
|
|
2714
|
-
let e =
|
|
2705
|
+
let e = _a(n);
|
|
2715
2706
|
if (e) return e;
|
|
2716
2707
|
}
|
|
2717
2708
|
throw Error("Not a channel def with scale!");
|
|
2718
2709
|
}
|
|
2719
|
-
function
|
|
2710
|
+
function ba(e) {
|
|
2720
2711
|
return e && "chrom" in e;
|
|
2721
2712
|
}
|
|
2722
|
-
function
|
|
2713
|
+
function xa(e) {
|
|
2723
2714
|
return e && "expr" in e;
|
|
2724
2715
|
}
|
|
2716
|
+
function Sa(e) {
|
|
2717
|
+
return (ma(e) || ha(e)) && "condition" in e;
|
|
2718
|
+
}
|
|
2719
|
+
function Ca(e) {
|
|
2720
|
+
return pa(e) && "condition" in e;
|
|
2721
|
+
}
|
|
2722
|
+
var wa = ["x", "y"], Ta = ["x2", "y2"], Ea = ["xOffset", "yOffset"], Da = [...wa, ...Ta];
|
|
2725
2723
|
function Oa(e) {
|
|
2726
|
-
return (
|
|
2724
|
+
return wa.includes(e);
|
|
2727
2725
|
}
|
|
2728
2726
|
function ka(e) {
|
|
2729
|
-
return
|
|
2727
|
+
return Da.includes(e);
|
|
2730
2728
|
}
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
return Aa.includes(e);
|
|
2729
|
+
function Aa(e) {
|
|
2730
|
+
return Ea.includes(e);
|
|
2734
2731
|
}
|
|
2735
|
-
function
|
|
2736
|
-
return
|
|
2737
|
-
}
|
|
2738
|
-
function Ia(e) {
|
|
2739
|
-
return Ma.includes(e);
|
|
2732
|
+
function ja(e) {
|
|
2733
|
+
return La(e) == "x" ? "xOffset" : "yOffset";
|
|
2740
2734
|
}
|
|
2741
|
-
function
|
|
2742
|
-
return Ua(e) == "x" ? "xOffset" : "yOffset";
|
|
2743
|
-
}
|
|
2744
|
-
function Ra(e, t, n) {
|
|
2735
|
+
function Ma(e, t, n) {
|
|
2745
2736
|
return t ?? (n ? 0 : e);
|
|
2746
2737
|
}
|
|
2747
|
-
var
|
|
2738
|
+
var Na = {
|
|
2748
2739
|
x: "x2",
|
|
2749
2740
|
y: "y2"
|
|
2750
|
-
},
|
|
2751
|
-
function
|
|
2752
|
-
return e in
|
|
2741
|
+
}, Pa = Object.fromEntries(Object.entries(Na).map((e) => [e[1], e[0]]));
|
|
2742
|
+
function Fa(e) {
|
|
2743
|
+
return e in Pa;
|
|
2753
2744
|
}
|
|
2754
|
-
function
|
|
2755
|
-
let t =
|
|
2745
|
+
function Ia(e) {
|
|
2746
|
+
let t = Na[e];
|
|
2756
2747
|
if (t) return t;
|
|
2757
2748
|
throw Error(`${e} has no secondary channel!`);
|
|
2758
2749
|
}
|
|
2759
|
-
function
|
|
2760
|
-
return
|
|
2750
|
+
function La(e) {
|
|
2751
|
+
return Pa[e] ?? e;
|
|
2761
2752
|
}
|
|
2762
|
-
function
|
|
2753
|
+
function Ra(e) {
|
|
2763
2754
|
return [
|
|
2764
2755
|
"color",
|
|
2765
2756
|
"fill",
|
|
2766
2757
|
"stroke"
|
|
2767
|
-
].includes(
|
|
2758
|
+
].includes(La(e));
|
|
2768
2759
|
}
|
|
2769
|
-
function
|
|
2760
|
+
function za(e) {
|
|
2770
2761
|
return ["shape", "direction"].includes(e);
|
|
2771
2762
|
}
|
|
2772
|
-
function
|
|
2763
|
+
function Ba(e) {
|
|
2773
2764
|
return [
|
|
2774
2765
|
"x",
|
|
2775
2766
|
"y",
|
|
@@ -2793,7 +2784,7 @@ function Ka(e) {
|
|
|
2793
2784
|
"sample"
|
|
2794
2785
|
].includes(e);
|
|
2795
2786
|
}
|
|
2796
|
-
function
|
|
2787
|
+
function Va(e) {
|
|
2797
2788
|
switch (e) {
|
|
2798
2789
|
case "shape": return [
|
|
2799
2790
|
"circle",
|
|
@@ -2816,12 +2807,11 @@ function qa(e) {
|
|
|
2816
2807
|
"reverse",
|
|
2817
2808
|
"both"
|
|
2818
2809
|
];
|
|
2819
|
-
default:
|
|
2820
2810
|
}
|
|
2821
2811
|
}
|
|
2822
|
-
function
|
|
2823
|
-
if (!
|
|
2824
|
-
let t = new Map(
|
|
2812
|
+
function Ha(e) {
|
|
2813
|
+
if (!za(e)) throw Error("Not a discrete channel: " + e);
|
|
2814
|
+
let t = new Map(Va(e).map((e, t) => [e, t]));
|
|
2825
2815
|
return (n) => {
|
|
2826
2816
|
let r = t.get(n);
|
|
2827
2817
|
if (r !== void 0) return r;
|
|
@@ -2830,16 +2820,16 @@ function Ja(e) {
|
|
|
2830
2820
|
}
|
|
2831
2821
|
//#endregion
|
|
2832
2822
|
//#region ../core/src/utils/arrayUtils.js
|
|
2833
|
-
function
|
|
2823
|
+
function Ua(e, t) {
|
|
2834
2824
|
return e.length == t.length && e.every((n, r) => e[r] === t[r]);
|
|
2835
2825
|
}
|
|
2836
|
-
function
|
|
2826
|
+
function Wa(e) {
|
|
2837
2827
|
return Array.isArray(e) ? e : e === void 0 ? [] : [e];
|
|
2838
2828
|
}
|
|
2839
|
-
function
|
|
2829
|
+
function Ga(e) {
|
|
2840
2830
|
return e[e.length - 1];
|
|
2841
2831
|
}
|
|
2842
|
-
function
|
|
2832
|
+
function Ka(e, t, n) {
|
|
2843
2833
|
if (t < 0 || t >= e.length) throw Error("Source index out of range.");
|
|
2844
2834
|
if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
|
|
2845
2835
|
let [r] = e.splice(t, 1);
|
|
@@ -2847,7 +2837,7 @@ function Qa(e, t, n) {
|
|
|
2847
2837
|
}
|
|
2848
2838
|
//#endregion
|
|
2849
2839
|
//#region ../core/src/view/renderingContext/clipOptions.js
|
|
2850
|
-
function
|
|
2840
|
+
function qa(e) {
|
|
2851
2841
|
if (e.clip) return e.clip;
|
|
2852
2842
|
if (e.clipRect) return {
|
|
2853
2843
|
rect: e.clipRect,
|
|
@@ -2855,36 +2845,36 @@ function $a(e) {
|
|
|
2855
2845
|
clipY: !0
|
|
2856
2846
|
};
|
|
2857
2847
|
}
|
|
2858
|
-
function
|
|
2848
|
+
function Ja(e, t) {
|
|
2859
2849
|
return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
|
|
2860
2850
|
}
|
|
2861
|
-
function
|
|
2851
|
+
function Ya(e, t, n) {
|
|
2862
2852
|
return t || n ? {
|
|
2863
2853
|
rect: e,
|
|
2864
2854
|
clipX: t,
|
|
2865
2855
|
clipY: n
|
|
2866
2856
|
} : void 0;
|
|
2867
2857
|
}
|
|
2868
|
-
function
|
|
2858
|
+
function Xa(e, t) {
|
|
2869
2859
|
return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
|
|
2870
2860
|
}
|
|
2871
|
-
function
|
|
2861
|
+
function Za(e, t) {
|
|
2872
2862
|
if (!e) return t;
|
|
2873
2863
|
if (!t) return e;
|
|
2874
2864
|
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;
|
|
2875
|
-
return
|
|
2865
|
+
return Ya(e.rect.modify({
|
|
2876
2866
|
x: () => i.x,
|
|
2877
2867
|
y: () => a.y,
|
|
2878
2868
|
width: () => i.width,
|
|
2879
2869
|
height: () => a.height
|
|
2880
2870
|
}), n, r);
|
|
2881
2871
|
}
|
|
2882
|
-
function
|
|
2883
|
-
if (e === !0) return
|
|
2884
|
-
if (e === "x") return
|
|
2885
|
-
if (e === "y") return
|
|
2872
|
+
function Qa(e, t) {
|
|
2873
|
+
if (e === !0) return Ya(t, !0, !0);
|
|
2874
|
+
if (e === "x") return Ya(t, !0, !1);
|
|
2875
|
+
if (e === "y") return Ya(t, !1, !0);
|
|
2886
2876
|
}
|
|
2887
|
-
function
|
|
2877
|
+
function $a(e) {
|
|
2888
2878
|
let t = e.mark;
|
|
2889
2879
|
if (t) {
|
|
2890
2880
|
let e = t.properties.clip;
|
|
@@ -2906,8 +2896,8 @@ function io(e) {
|
|
|
2906
2896
|
clipY: n && i
|
|
2907
2897
|
};
|
|
2908
2898
|
}
|
|
2909
|
-
function
|
|
2910
|
-
if (t !== "never") return
|
|
2899
|
+
function eo(e, t, n) {
|
|
2900
|
+
if (t !== "never") return Za(e, Qa(t, n));
|
|
2911
2901
|
}
|
|
2912
2902
|
//#endregion
|
|
2913
|
-
export {
|
|
2903
|
+
export { Ui as $, Ce as $t, va as A, Bt as At, Qi as B, D as Bt, Ba as C, Wt as Ct, za as D, Yt as Dt, ha as E, Xt as Et, pa as F, jt as Ft, Pi as G, nt as Gt, Vi as H, Qe as Ht, wa as I, Mt as It, Hi as J, Le as Jt, Bi as K, tt as Kt, Ma as L, yt as Lt, ka as M, Lt as Mt, Oa as N, zt as Nt, xa as O, Gt as Ot, Fa as P, Rt as Pt, Ji as Q, Me as Qt, Zi as R, ht as Rt, ga as S, ae as Sn, j as St, Ra as T, Ht as Tt, Ii as U, w as Ut, Gi as V, Re as Vt, Fi as W, lt as Wt, Wi as X, Ne as Xt, qi as Y, Fe as Yt, Ki as Z, Pe as Zt, la as _, s as _n, en as _t, $a as a, u as an, Ei as at, La as b, b as bn, qt as bt, Wa as c, _e as cn, Ai as ct, Ua as d, ye as dn, Ti as dt, xe as en, Ri as et, sa as f, te as fn, fi as ft, Ha as g, be as gn, tn as gt, ya as h, f as hn, si as ht, Ya as i, o as in, ki as it, Aa as j, Ft as jt, ma as k, Vt as kt, Ka as l, d as ln, Ci as lt, _a as m, re as mn, ci as mt, Ja as n, se as nn, Xi as nt, qa as o, ge as on, Oi as ot, aa as p, ne as pn, bi as pt, Yi as q, Ie as qt, Za as r, ue as rn, Li as rt, eo as s, ce as sn, Di as st, Xa as t, t as tn, zi as tt, Ga as u, S as un, wi as ut, ua as v, Se as vn, M as vt, ba as w, Ut as wt, Ia as x, x as xn, Kt as xt, ja as y, y as yn, Zt as yt, na as z, C as zt };
|