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