@genome-spy/app 0.88.0 → 0.89.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.
Files changed (43) hide show
  1. package/dist/{agentApi-BYFBKiRQ.js → agentApi-BUcXm-JC.js} +5544 -6449
  2. package/dist/agentApi.es.js +3328 -4255
  3. package/dist/agentShared.es.js +9 -9
  4. package/dist/{canvas2d-BVQ7-2eJ.js → canvas2d-CGuVGvQk.js} +117 -106
  5. package/dist/{canvas2d-D7SZK3xv.js → canvas2d-DgF0kstG.js} +99 -88
  6. package/dist/{canvasSizeHelper-7h_8rOcx.js → canvasSizeHelper-foL2YvGL.js} +15 -8
  7. package/dist/{clipOptions-DTMcB_9z.js → clipOptions-8BPf0WMZ.js} +1013 -755
  8. package/dist/{clipOptions-BWHr3aTa.js → clipOptions-DBJX_W31.js} +1033 -775
  9. package/dist/{debug-CVpoEOWx.js → debug-BEWbYuZD.js} +2 -2
  10. package/dist/{debug-DYAMZZKl.js → debug-DQj_7mFm.js} +2 -2
  11. package/dist/index.es.js +65 -65
  12. package/dist/index.js +406 -364
  13. package/dist/{indexer-DAH_ruVn.js → indexer-Cdt_U05k.js} +1 -1
  14. package/dist/{indexer-CXjZDo2Q.js → indexer-D8Bgkkb8.js} +1 -1
  15. package/dist/order-BPOzLe80.js +1056 -0
  16. package/dist/order-DIxlclRN.js +1056 -0
  17. package/dist/rasterExport-Bl6w9t3J.js +51 -0
  18. package/dist/rasterExport-DRvNAH-r.js +51 -0
  19. package/dist/rasterization-D0tOoKu_.js +62 -0
  20. package/dist/rectangle-DE98gIxF.js +108 -0
  21. package/dist/{renderCanvas2D-DxturTEW.js → renderCanvas2D-Ct95auF3.js} +60 -59
  22. package/dist/{renderCanvas2D-DtcJjqpB.js → renderCanvas2D-LdEYFnRo.js} +71 -70
  23. package/dist/schema.json +588 -116
  24. package/dist/{svg-CyrLfa9e.js → svg-Ag36-h_I.js} +394 -382
  25. package/dist/{svg-SDJMzL--.js → svg-pkTPD4bv.js} +368 -356
  26. package/dist/{svgRasterizer-f7DJ3UO0.js → svgRasterizer-CksK4QTB.js} +6 -5
  27. package/dist/{svgRasterizer-mWK7HTkx.js → svgRasterizer-DrtJ9nLk.js} +6 -5
  28. package/dist/{vega-scale-CypF85iS.js → vega-scale-BJaDSHBJ.js} +891 -959
  29. package/dist/{vega-scale-DLKCwWRs.js → vega-scale-BWBFykuI.js} +692 -760
  30. package/dist/{viewIdentityRegistry-DIDo44XQ.js → viewIdentityRegistry-B-snqI3y.js} +1 -1
  31. package/dist/{viewIdentityRegistry-Dl-vMN9I.js → viewIdentityRegistry-BvCJajXG.js} +1 -1
  32. package/dist/{viewSelectors-CymbZyE6.js → viewSelectors-BlvzvG-z.js} +445 -380
  33. package/dist/{viewSelectors-DNiDip5e.js → viewSelectors-C5q3qBiR.js} +364 -299
  34. package/dist/{viewUtils-BrJLIj2o.js → viewUtils-C3vBtSvE.js} +1714 -1689
  35. package/dist/{webgl-CqTDifWM.js → webgl-CZX2pe5v.js} +2322 -971
  36. package/dist/{webgl-jaC2m0Zr.js → webgl-CexXSw_I.js} +2374 -1023
  37. package/package.json +5 -5
  38. package/dist/order-C5CzA37O.js +0 -918
  39. package/dist/order-DvY7KNcu.js +0 -918
  40. package/dist/rasterExport-BgZ98e6U.js +0 -44
  41. package/dist/rasterExport-DEr8fOLm.js +0 -44
  42. package/dist/rasterization-CFogVB3B.js +0 -50
  43. package/dist/rectangle-DKnrAmKs.js +0 -142
@@ -52,37 +52,37 @@ 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), 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) {
55
+ var m = (e) => (t) => e * Math.exp(t), h = (e) => (t) => Math.log(e * t), ee = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), g = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, _ = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
56
+ function v(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 ne(e, t) {
61
- return _(e, t, p, l);
60
+ function te(e, t) {
61
+ return v(e, t, p, l);
62
62
  }
63
- function re(e, t) {
63
+ function ne(e, t) {
64
64
  var n = Math.sign(e[0]);
65
- return _(e, t, ee(n), m(n));
65
+ return v(e, t, h(n), m(n));
66
66
  }
67
- function ie(e, t, n) {
68
- return _(e, t, g(n), g(1 / n));
67
+ function re(e, t, n) {
68
+ return v(e, t, _(n), _(1 / n));
69
69
  }
70
- function ae(e, t, n, r, i) {
70
+ function ie(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 v(e, t, n) {
75
- return ae(e, t, n, p, l);
76
- }
77
74
  function y(e, t, n) {
75
+ return ie(e, t, n, p, l);
76
+ }
77
+ function ae(e, t, n) {
78
78
  let r = Math.sign(e[0]);
79
- return ae(e, t, n, ee(r), m(r));
79
+ return ie(e, t, n, h(r), m(r));
80
80
  }
81
81
  function b(e, t, n, r) {
82
- return ae(e, t, n, g(r), g(1 / r));
82
+ return ie(e, t, n, _(r), _(1 / r));
83
83
  }
84
84
  function oe(e, t, n, r) {
85
- return ae(e, t, n, te(r), h(r));
85
+ return ie(e, t, n, ee(r), g(r));
86
86
  }
87
87
  function se(e) {
88
88
  return e == null ? [] : u(e) ? e : [e];
@@ -109,46 +109,118 @@ var fe = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null)
109
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 ge(e) {
113
- return typeof e == "boolean";
112
+ function ge(e, t, n, r) {
113
+ let i = t[0], a = t[t.length - 1], o;
114
+ return i > a && (o = i, i = a, a = o), n = n === void 0 || n, r = r === void 0 || r, (n ? i <= e : i < e) && (r ? e <= a : e < a);
114
115
  }
115
116
  function _e(e) {
116
- return typeof e == "number";
117
+ return typeof e == "boolean";
117
118
  }
118
119
  function ve(e) {
120
+ return typeof e == "number";
121
+ }
122
+ function ye(e) {
119
123
  return Object.prototype.toString.call(e) === "[object RegExp]";
120
124
  }
121
125
  function x(e) {
122
126
  return typeof e == "string";
123
127
  }
124
- function ye(e, t) {
128
+ function be(e, t) {
125
129
  let n = e[0], r = f(e), i = +t;
126
130
  return i ? i === 1 ? r : n + i * (r - n) : n;
127
131
  }
128
- function be(e) {
129
- return e && f(e) - e[0] || 0;
130
- }
131
132
  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
+ return e && f(e) - e[0] || 0;
133
134
  }
134
135
  function Se(e) {
136
+ return u(e) ? `[${e.map((e) => e === null ? "null" : Se(e))}]` : d(e) || x(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
137
+ }
138
+ function Ce(e) {
135
139
  let t = {}, n = e.length;
136
140
  for (let r = 0; r < n; ++r) t[e[r]] = !0;
137
141
  return t;
138
142
  }
139
143
  //#endregion
144
+ //#region ../../node_modules/internmap/src/index.js
145
+ var we = class extends Map {
146
+ constructor(e, t = Oe) {
147
+ if (super(), Object.defineProperties(this, {
148
+ _intern: { value: /* @__PURE__ */ new Map() },
149
+ _key: { value: t }
150
+ }), e != null) for (let [t, n] of e) this.set(t, n);
151
+ }
152
+ get(e) {
153
+ return super.get(Te(this, e));
154
+ }
155
+ has(e) {
156
+ return super.has(Te(this, e));
157
+ }
158
+ set(e, t) {
159
+ return super.set(Ee(this, e), t);
160
+ }
161
+ delete(e) {
162
+ return super.delete(De(this, e));
163
+ }
164
+ };
165
+ function Te({ _intern: e, _key: t }, n) {
166
+ let r = t(n);
167
+ return e.has(r) ? e.get(r) : n;
168
+ }
169
+ function Ee({ _intern: e, _key: t }, n) {
170
+ let r = t(n);
171
+ return e.has(r) ? e.get(r) : (e.set(r, n), n);
172
+ }
173
+ function De({ _intern: e, _key: t }, n) {
174
+ let r = t(n);
175
+ return e.has(r) && (n = e.get(r), e.delete(r)), n;
176
+ }
177
+ function Oe(e) {
178
+ return typeof e == "object" && e ? e.valueOf() : e;
179
+ }
180
+ //#endregion
181
+ //#region ../../node_modules/d3-array/src/ticks.js
182
+ var ke = Math.sqrt(50), Ae = Math.sqrt(10), je = Math.sqrt(2);
183
+ function Me(e, t, n) {
184
+ let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= ke ? 10 : a >= Ae ? 5 : a >= je ? 2 : 1, s, c, l;
185
+ return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? Me(e, t, n * 2) : [
186
+ s,
187
+ c,
188
+ l
189
+ ];
190
+ }
191
+ function Ne(e, t, n) {
192
+ if (t = +t, e = +e, n = +n, !(n > 0)) return [];
193
+ if (e === t) return [e];
194
+ let r = t < e, [i, a, o] = r ? Me(t, e, n) : Me(e, t, n);
195
+ if (!(a >= i)) return [];
196
+ let s = a - i + 1, c = Array(s);
197
+ if (r) if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
198
+ else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
199
+ else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
200
+ else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
201
+ return c;
202
+ }
203
+ function Pe(e, t, n) {
204
+ return t = +t, e = +e, n = +n, Me(e, t, n)[2];
205
+ }
206
+ function Fe(e, t, n) {
207
+ t = +t, e = +e, n = +n;
208
+ let r = t < e, i = r ? Pe(t, e, n) : Pe(e, t, n);
209
+ return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
210
+ }
211
+ //#endregion
140
212
  //#region ../../node_modules/d3-array/src/range.js
141
- function Ce(e, t, n) {
213
+ function Ie(e, t, n) {
142
214
  e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
143
215
  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
216
  return a;
145
217
  }
146
218
  //#endregion
147
219
  //#region ../../node_modules/d3-color/src/define.js
148
- function we(e, t, n) {
220
+ function Le(e, t, n) {
149
221
  e.prototype = t.prototype = n, n.constructor = e;
150
222
  }
151
- function Te(e, t) {
223
+ function Re(e, t) {
152
224
  var n = Object.create(e.prototype);
153
225
  for (var r in t) n[r] = t[r];
154
226
  return n;
@@ -156,7 +228,7 @@ function Te(e, t) {
156
228
  //#endregion
157
229
  //#region ../../node_modules/d3-color/src/color.js
158
230
  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 = {
231
+ var C = .7, w = 1 / C, T = "\\s*([+-]?\\d+)\\s*", ze = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", E = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Be = /^#([0-9a-f]{3,8})$/, Ve = RegExp(`^rgb\\(${T},${T},${T}\\)$`), He = RegExp(`^rgb\\(${E},${E},${E}\\)$`), Ue = RegExp(`^rgba\\(${T},${T},${T},${ze}\\)$`), We = RegExp(`^rgba\\(${E},${E},${E},${ze}\\)$`), Ge = RegExp(`^hsl\\(${ze},${E},${E}\\)$`), Ke = RegExp(`^hsla\\(${ze},${E},${E},${ze}\\)$`), qe = {
160
232
  aliceblue: 15792383,
161
233
  antiquewhite: 16444375,
162
234
  aqua: 65535,
@@ -306,158 +378,158 @@ var C = .7, Ee = 1 / C, w = "\\s*([+-]?\\d+)\\s*", De = "\\s*([+-]?(?:\\d*\\.)?\
306
378
  yellow: 16776960,
307
379
  yellowgreen: 10145074
308
380
  };
309
- we(S, Be, {
381
+ Le(S, Qe, {
310
382
  copy(e) {
311
383
  return Object.assign(new this.constructor(), this, e);
312
384
  },
313
385
  displayable() {
314
386
  return this.rgb().displayable();
315
387
  },
316
- hex: Ie,
317
- formatHex: Ie,
318
- formatHex8: Le,
319
- formatHsl: Re,
320
- formatRgb: ze,
321
- toString: ze
388
+ hex: Je,
389
+ formatHex: Je,
390
+ formatHex8: Ye,
391
+ formatHsl: Xe,
392
+ formatRgb: Ze,
393
+ toString: Ze
322
394
  });
323
- function Ie() {
395
+ function Je() {
324
396
  return this.rgb().formatHex();
325
397
  }
326
- function Le() {
398
+ function Ye() {
327
399
  return this.rgb().formatHex8();
328
400
  }
329
- function Re() {
330
- return Xe(this).formatHsl();
401
+ function Xe() {
402
+ return ct(this).formatHsl();
331
403
  }
332
- function ze() {
404
+ function Ze() {
333
405
  return this.rgb().formatRgb();
334
406
  }
335
- function Be(e) {
407
+ function Qe(e) {
336
408
  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;
409
+ return e = (e + "").trim().toLowerCase(), (t = Be.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? $e(t) : n === 3 ? new D(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? et(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? et(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 = Ve.exec(e)) ? new D(t[1], t[2], t[3], 1) : (t = He.exec(e)) ? new D(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Ue.exec(e)) ? et(t[1], t[2], t[3], t[4]) : (t = We.exec(e)) ? et(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ge.exec(e)) ? st(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ke.exec(e)) ? st(t[1], t[2] / 100, t[3] / 100, t[4]) : qe.hasOwnProperty(e) ? $e(qe[e]) : e === "transparent" ? new D(NaN, NaN, NaN, 0) : null;
338
410
  }
339
- function Ve(e) {
340
- return new E(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
411
+ function $e(e) {
412
+ return new D(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
341
413
  }
342
- function He(e, t, n, r) {
343
- return r <= 0 && (e = t = n = NaN), new E(e, t, n, r);
414
+ function et(e, t, n, r) {
415
+ return r <= 0 && (e = t = n = NaN), new D(e, t, n, r);
344
416
  }
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();
417
+ function tt(e) {
418
+ return e instanceof S || (e = Qe(e)), e ? (e = e.rgb(), new D(e.r, e.g, e.b, e.opacity)) : new D();
347
419
  }
348
- function We(e, t, n, r) {
349
- return arguments.length === 1 ? Ue(e) : new E(e, t, n, r ?? 1);
420
+ function nt(e, t, n, r) {
421
+ return arguments.length === 1 ? tt(e) : new D(e, t, n, r ?? 1);
350
422
  }
351
- function E(e, t, n, r) {
423
+ function D(e, t, n, r) {
352
424
  this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
353
425
  }
354
- we(E, We, Te(S, {
426
+ Le(D, nt, Re(S, {
355
427
  brighter(e) {
356
- return e = e == null ? Ee : Ee ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
428
+ return e = e == null ? w : w ** +e, new D(this.r * e, this.g * e, this.b * e, this.opacity);
357
429
  },
358
430
  darker(e) {
359
- return e = e == null ? C : C ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
431
+ return e = e == null ? C : C ** +e, new D(this.r * e, this.g * e, this.b * e, this.opacity);
360
432
  },
361
433
  rgb() {
362
434
  return this;
363
435
  },
364
436
  clamp() {
365
- return new E(D(this.r), D(this.g), D(this.b), Je(this.opacity));
437
+ return new D(O(this.r), O(this.g), O(this.b), ot(this.opacity));
366
438
  },
367
439
  displayable() {
368
440
  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
441
  },
370
- hex: Ge,
371
- formatHex: Ge,
372
- formatHex8: Ke,
373
- formatRgb: qe,
374
- toString: qe
442
+ hex: rt,
443
+ formatHex: rt,
444
+ formatHex8: it,
445
+ formatRgb: at,
446
+ toString: at
375
447
  }));
376
- function Ge() {
377
- return `#${O(this.r)}${O(this.g)}${O(this.b)}`;
448
+ function rt() {
449
+ return `#${k(this.r)}${k(this.g)}${k(this.b)}`;
378
450
  }
379
- function Ke() {
380
- return `#${O(this.r)}${O(this.g)}${O(this.b)}${O((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
451
+ function it() {
452
+ return `#${k(this.r)}${k(this.g)}${k(this.b)}${k((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
381
453
  }
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})`}`;
454
+ function at() {
455
+ let e = ot(this.opacity);
456
+ return `${e === 1 ? "rgb(" : "rgba("}${O(this.r)}, ${O(this.g)}, ${O(this.b)}${e === 1 ? ")" : `, ${e})`}`;
385
457
  }
386
- function Je(e) {
458
+ function ot(e) {
387
459
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
388
460
  }
389
- function D(e) {
461
+ function O(e) {
390
462
  return Math.max(0, Math.min(255, Math.round(e) || 0));
391
463
  }
392
- function O(e) {
393
- return e = D(e), (e < 16 ? "0" : "") + e.toString(16);
464
+ function k(e) {
465
+ return e = O(e), (e < 16 ? "0" : "") + e.toString(16);
394
466
  }
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);
467
+ function st(e, t, n, r) {
468
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new A(e, t, n, r);
397
469
  }
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;
470
+ function ct(e) {
471
+ if (e instanceof A) return new A(e.h, e.s, e.l, e.opacity);
472
+ if (e instanceof S || (e = Qe(e)), !e) return new A();
473
+ if (e instanceof A) return e;
402
474
  e = e.rgb();
403
475
  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);
476
+ 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 A(o, s, c, e.opacity);
405
477
  }
406
- function Ze(e, t, n, r) {
407
- return arguments.length === 1 ? Xe(e) : new k(e, t, n, r ?? 1);
478
+ function lt(e, t, n, r) {
479
+ return arguments.length === 1 ? ct(e) : new A(e, t, n, r ?? 1);
408
480
  }
409
- function k(e, t, n, r) {
481
+ function A(e, t, n, r) {
410
482
  this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
411
483
  }
412
- we(k, Ze, Te(S, {
484
+ Le(A, lt, Re(S, {
413
485
  brighter(e) {
414
- return e = e == null ? Ee : Ee ** +e, new k(this.h, this.s, this.l * e, this.opacity);
486
+ return e = e == null ? w : w ** +e, new A(this.h, this.s, this.l * e, this.opacity);
415
487
  },
416
488
  darker(e) {
417
- return e = e == null ? C : C ** +e, new k(this.h, this.s, this.l * e, this.opacity);
489
+ return e = e == null ? C : C ** +e, new A(this.h, this.s, this.l * e, this.opacity);
418
490
  },
419
491
  rgb() {
420
492
  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);
493
+ return new D(ft(e >= 240 ? e - 240 : e + 120, i, r), ft(e, i, r), ft(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
422
494
  },
423
495
  clamp() {
424
- return new k(Qe(this.h), $e(this.s), $e(this.l), Je(this.opacity));
496
+ return new A(ut(this.h), dt(this.s), dt(this.l), ot(this.opacity));
425
497
  },
426
498
  displayable() {
427
499
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
428
500
  },
429
501
  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})`}`;
502
+ let e = ot(this.opacity);
503
+ return `${e === 1 ? "hsl(" : "hsla("}${ut(this.h)}, ${dt(this.s) * 100}%, ${dt(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
432
504
  }
433
505
  }));
434
- function Qe(e) {
506
+ function ut(e) {
435
507
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
436
508
  }
437
- function $e(e) {
509
+ function dt(e) {
438
510
  return Math.max(0, Math.min(1, e || 0));
439
511
  }
440
- function et(e, t, n) {
512
+ function ft(e, t, n) {
441
513
  return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
442
514
  }
443
515
  //#endregion
444
516
  //#region ../../node_modules/d3-format/src/formatDecimal.js
445
- function tt(e) {
517
+ function pt(e) {
446
518
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
447
519
  }
448
- function nt(e, t) {
520
+ function mt(e, t) {
449
521
  if (!isFinite(e) || e === 0) return null;
450
522
  var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
451
523
  return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
452
524
  }
453
525
  //#endregion
454
526
  //#region ../../node_modules/d3-format/src/exponent.js
455
- function rt(e) {
456
- return e = nt(Math.abs(e)), e ? e[1] : NaN;
527
+ function ht(e) {
528
+ return e = mt(Math.abs(e)), e ? e[1] : NaN;
457
529
  }
458
530
  //#endregion
459
531
  //#region ../../node_modules/d3-format/src/formatGroup.js
460
- function it(e, t) {
532
+ function gt(e, t) {
461
533
  return function(n, r) {
462
534
  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];
463
535
  return a.reverse().join(t);
@@ -465,7 +537,7 @@ function it(e, t) {
465
537
  }
466
538
  //#endregion
467
539
  //#region ../../node_modules/d3-format/src/formatNumerals.js
468
- function at(e) {
540
+ function _t(e) {
469
541
  return function(t) {
470
542
  return t.replace(/[0-9]/g, function(t) {
471
543
  return e[+t];
@@ -474,11 +546,11 @@ function at(e) {
474
546
  }
475
547
  //#endregion
476
548
  //#region ../../node_modules/d3-format/src/formatSpecifier.js
477
- var ot = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
478
- function st(e) {
479
- if (!(t = ot.exec(e))) throw Error("invalid format: " + e);
549
+ var vt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
550
+ function yt(e) {
551
+ if (!(t = vt.exec(e))) throw Error("invalid format: " + e);
480
552
  var t;
481
- return new ct({
553
+ return new bt({
482
554
  fill: t[1],
483
555
  align: t[2],
484
556
  sign: t[3],
@@ -491,16 +563,16 @@ function st(e) {
491
563
  type: t[10]
492
564
  });
493
565
  }
494
- st.prototype = ct.prototype;
495
- function ct(e) {
566
+ yt.prototype = bt.prototype;
567
+ function bt(e) {
496
568
  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 + "";
497
569
  }
498
- ct.prototype.toString = function() {
570
+ bt.prototype.toString = function() {
499
571
  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;
500
572
  };
501
573
  //#endregion
502
574
  //#region ../../node_modules/d3-format/src/formatTrim.js
503
- function lt(e) {
575
+ function xt(e) {
504
576
  out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
505
577
  case ".":
506
578
  r = i = n;
@@ -517,46 +589,46 @@ function lt(e) {
517
589
  }
518
590
  //#endregion
519
591
  //#region ../../node_modules/d3-format/src/formatPrefixAuto.js
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];
592
+ var St;
593
+ function Ct(e, t) {
594
+ var n = mt(e, t);
595
+ if (!n) return St = void 0, e.toPrecision(t);
596
+ var r = n[0], i = n[1], a = i - (St = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
597
+ 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") + mt(e, Math.max(0, t + a - 1))[0];
526
598
  }
527
599
  //#endregion
528
600
  //#region ../../node_modules/d3-format/src/formatRounded.js
529
- function ft(e, t) {
530
- var n = nt(e, t);
601
+ function wt(e, t) {
602
+ var n = mt(e, t);
531
603
  if (!n) return e + "";
532
604
  var r = n[0], i = n[1];
533
605
  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");
534
606
  }
535
607
  //#endregion
536
608
  //#region ../../node_modules/d3-format/src/formatTypes.js
537
- var pt = {
609
+ var Tt = {
538
610
  "%": (e, t) => (e * 100).toFixed(t),
539
611
  b: (e) => Math.round(e).toString(2),
540
612
  c: (e) => e + "",
541
- d: tt,
613
+ d: pt,
542
614
  e: (e, t) => e.toExponential(t),
543
615
  f: (e, t) => e.toFixed(t),
544
616
  g: (e, t) => e.toPrecision(t),
545
617
  o: (e) => Math.round(e).toString(8),
546
- p: (e, t) => ft(e * 100, t),
547
- r: ft,
548
- s: dt,
618
+ p: (e, t) => wt(e * 100, t),
619
+ r: wt,
620
+ s: Ct,
549
621
  X: (e) => Math.round(e).toString(16).toUpperCase(),
550
622
  x: (e) => Math.round(e).toString(16)
551
623
  };
552
624
  //#endregion
553
625
  //#region ../../node_modules/d3-format/src/identity.js
554
- function mt(e) {
626
+ function Et(e) {
555
627
  return e;
556
628
  }
557
629
  //#endregion
558
630
  //#region ../../node_modules/d3-format/src/locale.js
559
- var ht = Array.prototype.map, gt = [
631
+ var Dt = Array.prototype.map, Ot = [
560
632
  "y",
561
633
  "z",
562
634
  "a",
@@ -575,30 +647,30 @@ var ht = Array.prototype.map, gt = [
575
647
  "Z",
576
648
  "Y"
577
649
  ];
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 + "";
650
+ function kt(e) {
651
+ var t = e.grouping === void 0 || e.thousands === void 0 ? Et : gt(Dt.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 ? Et : _t(Dt.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 + "";
580
652
  function l(e, l) {
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 = "";
653
+ e = yt(e);
654
+ var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, ee = e.comma, g = e.precision, _ = e.trim, v = e.type;
655
+ v === "n" ? (ee = !0, v = "g") : Tt[v] || (g === void 0 && (g = 12), _ = !0, v = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
656
+ var te = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : ""), ne = (p === "$" ? r : /[%p]/.test(v) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), re = Tt[v], ie = /[defgprs%]/.test(v);
657
+ g = g === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
658
+ function y(e) {
659
+ var n = te, r = ne, o, l, p;
660
+ if (v === "c") r = re(e) + r, e = "";
589
661
  else {
590
662
  e = +e;
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) {
663
+ var y = e < 0 || 1 / e < 0;
664
+ if (e = isNaN(e) ? c : re(Math.abs(e), g), _ && (e = xt(e)), y && +e == 0 && f !== "+" && (y = !1), n = (y ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (v === "s" && !isNaN(e) && St !== void 0 ? Ot[8 + St / 3] : "") + r + (y && f === "(" ? ")" : ""), ie) {
593
665
  for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
594
666
  r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
595
667
  break;
596
668
  }
597
669
  }
598
670
  }
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) {
671
+ ee && !m && (e = t(e, Infinity));
672
+ var ae = n.length + e.length + r.length, b = ae < h ? Array(h - ae + 1).join(u) : "";
673
+ switch (ee && m && (e = t(b + e, b.length ? h - r.length : Infinity), b = ""), d) {
602
674
  case "<":
603
675
  e = n + e + r + b;
604
676
  break;
@@ -606,7 +678,7 @@ function _t(e) {
606
678
  e = n + b + e + r;
607
679
  break;
608
680
  case "^":
609
- e = b.slice(0, y = b.length >> 1) + n + e + r + b.slice(y);
681
+ e = b.slice(0, ae = b.length >> 1) + n + e + r + b.slice(ae);
610
682
  break;
611
683
  default:
612
684
  e = b + n + e + r;
@@ -614,12 +686,12 @@ function _t(e) {
614
686
  }
615
687
  return a(e);
616
688
  }
617
- return v.toString = function() {
689
+ return y.toString = function() {
618
690
  return e + "";
619
- }, v;
691
+ }, y;
620
692
  }
621
693
  function u(e, t) {
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] });
694
+ var n = Math.max(-8, Math.min(8, Math.floor(ht(t) / 3))) * 3, r = 10 ** -n, i = l((e = yt(e), e.type = "f", e), { suffix: Ot[8 + n / 3] });
623
695
  return function(e) {
624
696
  return i(r * e);
625
697
  };
@@ -631,18 +703,18 @@ function _t(e) {
631
703
  }
632
704
  //#endregion
633
705
  //#region ../../node_modules/d3-format/src/defaultLocale.js
634
- var vt, yt, bt;
635
- xt({
706
+ var At, jt, Mt;
707
+ Nt({
636
708
  thousands: ",",
637
709
  grouping: [3],
638
710
  currency: ["$", ""]
639
711
  });
640
- function xt(e) {
641
- return vt = _t(e), yt = vt.format, bt = vt.formatPrefix, vt;
712
+ function Nt(e) {
713
+ return At = kt(e), jt = At.format, Mt = At.formatPrefix, At;
642
714
  }
643
715
  //#endregion
644
716
  //#region ../core/src/data/sideInputBinding.js
645
- var St = class {
717
+ var Pt = class {
646
718
  #e;
647
719
  #t;
648
720
  #n = !1;
@@ -678,7 +750,7 @@ var St = class {
678
750
  isReady() {
679
751
  return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
680
752
  }
681
- }, Ct = class {
753
+ }, Ft = class {
682
754
  stats = {
683
755
  count: 0,
684
756
  first: null
@@ -730,7 +802,7 @@ var St = class {
730
802
  initialized: this.#e,
731
803
  disposed: this.#t,
732
804
  params: "params" in e ? structuredClone(e.params) : void 0,
733
- view: wt(e, this.paramRuntimeProvider),
805
+ view: It(e, this.paramRuntimeProvider),
734
806
  domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
735
807
  };
736
808
  }
@@ -741,15 +813,15 @@ var St = class {
741
813
  }
742
814
  initialize() {}
743
815
  initializeOnce() {
744
- this.#e ||= (this.dataDependencies.length && (this.#i = new St(this)), this.initialize(), !0);
816
+ this.#e ||= (this.dataDependencies.length && (this.#i = new Pt(this)), this.initialize(), !0);
745
817
  }
746
818
  #a() {
747
- this._propagate = Function("children", "stats", Ce(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
819
+ this._propagate = Function("children", "stats", Ie(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
748
820
  if (stats.count === 0) {
749
821
  stats.first = structuredClone(datum);
750
822
  }
751
823
  stats.count++;
752
- ${Ce(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
824
+ ${Ie(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
753
825
  };`)(this.children, this.stats);
754
826
  }
755
827
  setParent(e) {
@@ -861,11 +933,11 @@ var St = class {
861
933
  }
862
934
  _propagate(e) {}
863
935
  };
864
- function wt(e, t) {
936
+ function It(e, t) {
865
937
  if ("view" in e) return e.view;
866
938
  if (t && "getPathString" in t) return t;
867
939
  }
868
- function Tt(e) {
940
+ function Lt(e) {
869
941
  let t = /* @__PURE__ */ new Set();
870
942
  for (; e;) {
871
943
  for (let n of e.domainSensitiveScaleChannels) t.add(n);
@@ -873,15 +945,15 @@ function Tt(e) {
873
945
  }
874
946
  return t;
875
947
  }
876
- function Et(e) {
948
+ function Rt(e) {
877
949
  return e.type == "file";
878
950
  }
879
- function Dt(e) {
951
+ function zt(e) {
880
952
  return e.type == "facet";
881
953
  }
882
954
  //#endregion
883
955
  //#region ../core/src/ruler/rulerValue.js
884
- function Ot(e = ["x"], t = {}) {
956
+ function Bt(e = ["x"], t = {}) {
885
957
  let n = {};
886
958
  for (let r of e) n[r] = t[r] ?? null;
887
959
  return {
@@ -891,37 +963,37 @@ function Ot(e = ["x"], t = {}) {
891
963
  }
892
964
  //#endregion
893
965
  //#region ../core/src/paramRuntime/paramUtils.js
894
- function A(e) {
966
+ function j(e) {
895
967
  return typeof e == "object" && !!e && "expr" in e && x(e.expr);
896
968
  }
897
- function kt(e) {
898
- if (A(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
969
+ function Vt(e) {
970
+ if (j(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
899
971
  return e;
900
972
  }
901
- function At(e) {
973
+ function Ht(e) {
902
974
  return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
903
975
  }
904
- function jt(e) {
976
+ function Ut(e) {
905
977
  return !("expr" in e || "bind" in e) && "select" in e;
906
978
  }
907
- function Mt(e) {
979
+ function Wt(e) {
908
980
  return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
909
981
  }
910
- function Nt(e) {
982
+ function Gt(e) {
911
983
  if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
912
984
  return e;
913
985
  }
914
- function Pt(e, t, n) {
986
+ function Kt(e, t, n) {
915
987
  if ("select" in e) {
916
- let t = Ni(e.select);
917
- if (Pi(t)) return t.toggle ? xi() : bi(null);
918
- if (Fi(t)) {
988
+ let t = Zi(e.select);
989
+ if (Qi(t)) return t.toggle ? Vi() : Bi(null);
990
+ if ($i(t)) {
919
991
  if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
920
- return Si(t.encodings);
992
+ return Hi(t.encodings);
921
993
  }
922
994
  throw Error("Unknown selection config for parameter \"" + e.name + "\".");
923
995
  }
924
- if ("ruler" in e) return Ot(e.ruler.encodings, e.value);
996
+ if ("ruler" in e) return Bt(e.ruler.encodings, e.value);
925
997
  if ("expr" in e) {
926
998
  let r = n ?? t?.createExpression(e.expr);
927
999
  if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
@@ -929,9 +1001,9 @@ function Pt(e, t, n) {
929
1001
  }
930
1002
  return "value" in e ? e.value : null;
931
1003
  }
932
- function Ft(e, t, n, r, i = []) {
1004
+ function qt(e, t, n, r, i = []) {
933
1005
  let a = { ...t }, o = [];
934
- for (let [r, i] of Object.entries(t)) if (A(i)) {
1006
+ for (let [r, i] of Object.entries(t)) if (j(i)) {
935
1007
  let t = e.createExpression(i.expr), s = o.push({
936
1008
  key: r,
937
1009
  fn: t
@@ -947,17 +1019,17 @@ function Ft(e, t, n, r, i = []) {
947
1019
  fn: e.createExpression(n.expr)
948
1020
  });
949
1021
  if (!o.length) return a;
950
- let s = Array.from(new Set(o.flatMap(({ fn: e }) => e.dependencies))), c = e.computed("expression properties", s, () => o.map(({ fn: e }) => e(null)), { equals: It }), l = c.get(), u = e.effect([c], () => {
1022
+ let s = Array.from(new Set(o.flatMap(({ fn: e }) => e.dependencies))), c = e.computed("expression properties", s, () => o.map(({ fn: e }) => e(null)), { equals: Jt }), l = c.get(), u = e.effect([c], () => {
951
1023
  let e = c.get(), t = new Set(o.filter((t, n) => l[n] !== e[n]).map(({ key: e }) => e));
952
1024
  l = e, n(t);
953
1025
  });
954
1026
  return r?.(c.dispose), r?.(u), a;
955
1027
  }
956
- function It(e, t) {
1028
+ function Jt(e, t) {
957
1029
  return e.every((e, n) => e === t[n]);
958
1030
  }
959
- function Lt(e, t, n, r) {
960
- if (!A(t)) return t;
1031
+ function Yt(e, t, n, r) {
1032
+ if (!j(t)) return t;
961
1033
  let i = () => {
962
1034
  throw Error(n);
963
1035
  }, a = e.watchExpression ? e.watchExpression(t.expr, i, {
@@ -970,7 +1042,7 @@ function Lt(e, t, n, r) {
970
1042
  }
971
1043
  return a();
972
1044
  }
973
- function Rt(e) {
1045
+ function Xt(e) {
974
1046
  return Object.assign(() => e, {
975
1047
  dependencies: [],
976
1048
  subscribe: () => () => void 0,
@@ -983,16 +1055,46 @@ function Rt(e) {
983
1055
  }
984
1056
  //#endregion
985
1057
  //#region ../core/src/data/transforms/transform.js
986
- var zt = class extends Ct {
1058
+ var Zt = class extends Ft {
987
1059
  #e;
1060
+ #t;
1061
+ #n = 0;
1062
+ #r = 0;
1063
+ #i;
1064
+ #a = [];
988
1065
  constructor(e, t) {
989
1066
  super(t), this.#e = e.type;
1067
+ let n = e.debounce;
1068
+ if (n !== void 0) {
1069
+ if (!Number.isFinite(n) || n < 0) throw Error(`The debounce for the ${e.type} transform must be a non-negative finite number.`);
1070
+ this.#t = n, this.registerDisposer(() => clearTimeout(this.#i));
1071
+ }
990
1072
  }
1073
+ complete() {
1074
+ let e = this.#n;
1075
+ super.complete(), this.#r = e, e == this.#n && (clearTimeout(this.#i), this.#i = void 0);
1076
+ }
1077
+ reset() {
1078
+ this.#s(), super.reset();
1079
+ }
1080
+ beginBatch(e) {
1081
+ this.#s(), super.beginBatch(e);
1082
+ }
1083
+ requestReactiveRepropagate() {
1084
+ if (this.#n++, this.#t === void 0) {
1085
+ this.requestRepropagate();
1086
+ return;
1087
+ }
1088
+ clearTimeout(this.#i), this.#i = void 0, this.completed && (this.#i = setTimeout(this.#o, this.#t));
1089
+ }
1090
+ #o = () => {
1091
+ this.#i = void 0, !this.disposed && this.completed && this.#r != this.#n && (this.requestRepropagate(), this.paramRuntime.flushNow());
1092
+ };
991
1093
  get label() {
992
1094
  return this.#e;
993
1095
  }
994
1096
  watchExprRef(e, t) {
995
- if (A(e)) {
1097
+ if (j(e)) {
996
1098
  let n = e;
997
1099
  return this.paramRuntime.watchExpression(n.expr, t, {
998
1100
  scopeOwned: !1,
@@ -1001,7 +1103,19 @@ var zt = class extends Ct {
1001
1103
  }
1002
1104
  return (() => e);
1003
1105
  }
1004
- }, j = "__uniqueId", Bt = 1e4, Vt = [null], Ht = class extends zt {
1106
+ watchSnapshottedExpression(e) {
1107
+ let t, n;
1108
+ return t = this.paramRuntime.watchExpression(e, () => {
1109
+ n.refresh(), this.requestReactiveRepropagate();
1110
+ }, {
1111
+ scopeOwned: !1,
1112
+ registerDisposer: (e) => this.registerDisposer(e)
1113
+ }), n = t.createSnapshotEvaluator(), this.#a.push(n.refresh), n;
1114
+ }
1115
+ #s() {
1116
+ for (let e of this.#a) e();
1117
+ }
1118
+ }, M = "__uniqueId", Qt = 1e4, $t = [null], en = class extends Zt {
1005
1119
  get behavior() {
1006
1120
  return 2;
1007
1121
  }
@@ -1013,22 +1127,22 @@ var zt = class extends Ct {
1013
1127
  super.reset(), this._usedBlocks = 0, this._id = -1;
1014
1128
  }
1015
1129
  handle(e) {
1016
- e[j] = this.#e(), this._propagate(e);
1130
+ e[M] = this.#e(), this._propagate(e);
1017
1131
  }
1018
1132
  #e() {
1019
- return ++this._id % 1e4 == 0 && (this._id = this.#t() * Bt), this._id;
1133
+ return ++this._id % 1e4 == 0 && (this._id = this.#t() * Qt), this._id;
1020
1134
  }
1021
1135
  #t() {
1022
1136
  return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
1023
1137
  }
1024
1138
  #n() {
1025
- let e = Vt.length;
1026
- return Vt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
1139
+ let e = $t.length;
1140
+ return $t[e] = this, this._blocks.push(e), this._usedBlocks++, e;
1027
1141
  }
1028
1142
  };
1029
1143
  //#endregion
1030
1144
  //#region ../core/src/utils/field.js
1031
- function Ut(t, n = t) {
1145
+ function tn(t, n = t) {
1032
1146
  return /^[A-Za-z0-9_]+$/.test(t) ? e(Function("validator", `
1033
1147
  let validated = !validator;
1034
1148
  return function accessField(datum) {
@@ -1038,15 +1152,15 @@ function Ut(t, n = t) {
1038
1152
  }
1039
1153
  return datum[${JSON.stringify(t)}];
1040
1154
  }`)(function(e) {
1041
- t in e || Wt(e, t);
1155
+ t in e || nn(e, t);
1042
1156
  }), [t], n) : c(t);
1043
1157
  }
1044
- function Wt(e, t) {
1158
+ function nn(e, t) {
1045
1159
  throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
1046
1160
  }
1047
1161
  //#endregion
1048
1162
  //#region ../../node_modules/vega-util/build/accessor.js
1049
- function M(e, t, n) {
1163
+ function N(e, t, n) {
1050
1164
  return Object.assign(e, {
1051
1165
  fields: t || [],
1052
1166
  fname: n
@@ -1054,12 +1168,12 @@ function M(e, t, n) {
1054
1168
  }
1055
1169
  //#endregion
1056
1170
  //#region ../../node_modules/vega-util/build/getter.js
1057
- function Gt(e) {
1058
- return e.length === 1 ? Kt(e[0]) : qt(e);
1171
+ function rn(e) {
1172
+ return e.length === 1 ? an(e[0]) : on(e);
1059
1173
  }
1060
- var Kt = (e) => function(t) {
1174
+ var an = (e) => function(t) {
1061
1175
  return t[e];
1062
- }, qt = (e) => {
1176
+ }, on = (e) => {
1063
1177
  let t = e.length;
1064
1178
  return function(n) {
1065
1179
  for (let r = 0; r < t; ++r) n = n[e[r]];
@@ -1068,12 +1182,12 @@ var Kt = (e) => function(t) {
1068
1182
  };
1069
1183
  //#endregion
1070
1184
  //#region ../../node_modules/vega-util/build/error.js
1071
- function N(e) {
1185
+ function P(e) {
1072
1186
  throw Error(e);
1073
1187
  }
1074
1188
  //#endregion
1075
1189
  //#region ../../node_modules/vega-util/build/splitAccessPath.js
1076
- function Jt(e) {
1190
+ function sn(e) {
1077
1191
  let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
1078
1192
  e += "";
1079
1193
  function l() {
@@ -1082,107 +1196,107 @@ function Jt(e) {
1082
1196
  for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
1083
1197
  else if (c === r) l(), r = null, i = -1;
1084
1198
  else if (r) continue;
1085
- 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);
1086
- return i && N("Access path missing closing bracket: " + e), r && N("Access path missing closing quote: " + e), s > o && (s++, l()), t;
1199
+ 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 || P("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
1200
+ return i && P("Access path missing closing bracket: " + e), r && P("Access path missing closing quote: " + e), s > o && (s++, l()), t;
1087
1201
  }
1088
1202
  //#endregion
1089
1203
  //#region ../../node_modules/vega-util/build/field.js
1090
- function Yt(e, t, n) {
1091
- let r = Jt(e), i = r.length === 1 ? r[0] : e;
1092
- return M((n && n.get || Gt)(r), [i], t || i);
1204
+ function cn(e, t, n) {
1205
+ let r = sn(e), i = r.length === 1 ? r[0] : e;
1206
+ return N((n && n.get || rn)(r), [i], t || i);
1093
1207
  }
1094
- Yt("id");
1095
- var Xt = M((e) => e, [], "identity");
1096
- M(() => 0, [], "zero"), M(() => 1, [], "one"), M(() => !0, [], "true"), M(() => !1, [], "false");
1208
+ cn("id");
1209
+ var ln = N((e) => e, [], "identity");
1210
+ N(() => 0, [], "zero"), N(() => 1, [], "one"), N(() => !0, [], "true"), N(() => !1, [], "false");
1097
1211
  //#endregion
1098
1212
  //#region ../../node_modules/vega-util/build/interpreter.js
1099
- var Zt = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), Qt = Array.isArray;
1213
+ var un = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), dn = Array.isArray;
1100
1214
  //#endregion
1101
1215
  //#region ../../node_modules/vega-util/build/isObject.js
1102
- function $t(e) {
1216
+ function fn(e) {
1103
1217
  return e === Object(e);
1104
1218
  }
1105
1219
  //#endregion
1106
1220
  //#region ../../node_modules/vega-util/build/array.js
1107
- function en(e) {
1108
- return e == null ? [] : Qt(e) ? e : [e];
1221
+ function pn(e) {
1222
+ return e == null ? [] : dn(e) ? e : [e];
1109
1223
  }
1110
1224
  //#endregion
1111
1225
  //#region ../../node_modules/vega-util/build/isFunction.js
1112
- function tn(e) {
1226
+ function mn(e) {
1113
1227
  return typeof e == "function";
1114
1228
  }
1115
1229
  //#endregion
1116
1230
  //#region ../../node_modules/vega-util/build/hasOwnProperty.js
1117
- function nn(e, t) {
1231
+ function hn(e, t) {
1118
1232
  return Object.hasOwn(e, t);
1119
1233
  }
1120
1234
  //#endregion
1121
1235
  //#region ../../node_modules/vega-util/build/isString.js
1122
- function rn(e) {
1236
+ function gn(e) {
1123
1237
  return typeof e == "string";
1124
1238
  }
1125
1239
  //#endregion
1126
1240
  //#region ../../node_modules/vega-util/build/stringValue.js
1127
- function an(e) {
1128
- return Qt(e) ? `[${e.map((e) => e === null ? "null" : an(e))}]` : $t(e) || rn(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
1241
+ function _n(e) {
1242
+ return dn(e) ? `[${e.map((e) => e === null ? "null" : _n(e))}]` : fn(e) || gn(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
1129
1243
  }
1130
1244
  //#endregion
1131
1245
  //#region ../../node_modules/vega-util/build/toSet.js
1132
- function on(e) {
1246
+ function vn(e) {
1133
1247
  let t = {}, n = e.length;
1134
1248
  for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
1135
1249
  return t;
1136
1250
  }
1137
1251
  //#endregion
1138
1252
  //#region ../../node_modules/vega-expression/build/vega-expression.js
1139
- var sn = "RawCode", cn = "Literal", ln = "Property", un = "Identifier", dn = "ArrayExpression", fn = "BinaryExpression", pn = "CallExpression", mn = "ConditionalExpression", hn = "LogicalExpression", gn = "MemberExpression", _n = "ObjectExpression", vn = "UnaryExpression";
1140
- function P(e) {
1253
+ var yn = "RawCode", bn = "Literal", xn = "Property", Sn = "Identifier", Cn = "ArrayExpression", wn = "BinaryExpression", Tn = "CallExpression", En = "ConditionalExpression", Dn = "LogicalExpression", On = "MemberExpression", kn = "ObjectExpression", An = "UnaryExpression";
1254
+ function F(e) {
1141
1255
  this.type = e;
1142
1256
  }
1143
- P.prototype.visit = function(e) {
1257
+ F.prototype.visit = function(e) {
1144
1258
  let t, n, r;
1145
1259
  if (e(this)) return 1;
1146
- for (t = yn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1260
+ for (t = jn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1147
1261
  };
1148
- function yn(e) {
1262
+ function jn(e) {
1149
1263
  switch (e.type) {
1150
- case dn: return e.elements;
1151
- case fn:
1152
- case hn: return [e.left, e.right];
1153
- case pn: return [e.callee].concat(e.arguments);
1154
- case mn: return [
1264
+ case Cn: return e.elements;
1265
+ case wn:
1266
+ case Dn: return [e.left, e.right];
1267
+ case Tn: return [e.callee].concat(e.arguments);
1268
+ case En: return [
1155
1269
  e.test,
1156
1270
  e.consequent,
1157
1271
  e.alternate
1158
1272
  ];
1159
- case gn: return [e.object, e.property];
1160
- case _n: return e.properties;
1161
- case ln: return [e.key, e.value];
1162
- case vn: return [e.argument];
1163
- case un:
1164
- case cn:
1165
- case sn:
1273
+ case On: return [e.object, e.property];
1274
+ case kn: return e.properties;
1275
+ case xn: return [e.key, e.value];
1276
+ case An: return [e.argument];
1277
+ case Sn:
1278
+ case bn:
1279
+ case yn:
1166
1280
  default: return [];
1167
1281
  }
1168
1282
  }
1169
- var F, I, L, R, z, bn = 1, xn = 2, B = 3, V = 4, Sn = 5, H = 6, U = 7, Cn = 8, wn = 9;
1170
- F = {}, F[bn] = "Boolean", F[xn] = "<end>", F[B] = "Identifier", F[V] = "Keyword", F[Sn] = "Null", F[H] = "Numeric", F[U] = "Punctuator", F[Cn] = "String", F[wn] = "RegularExpression";
1171
- var Tn = "ArrayExpression", En = "BinaryExpression", Dn = "CallExpression", On = "ConditionalExpression", kn = "Identifier", An = "Literal", jn = "LogicalExpression", Mn = "MemberExpression", Nn = "ObjectExpression", Pn = "Property", Fn = "UnaryExpression", W = "Unexpected token %0", In = "Unexpected number", Ln = "Unexpected string", Rn = "Unexpected identifier", zn = "Unexpected reserved word", Bn = "Unexpected end of input", Vn = "Invalid regular expression", Hn = "Invalid regular expression: missing /", Un = "Octal literals are not allowed in strict mode.", Wn = "Duplicate data property in object literal not allowed in strict mode", G = "ILLEGAL", Gn = "Disabled.", Kn = /* @__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]"), qn = /* @__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]");
1172
- function Jn(e, t) {
1283
+ var I, L, R, z, B, Mn = 1, Nn = 2, V = 3, H = 4, Pn = 5, U = 6, W = 7, Fn = 8, In = 9;
1284
+ I = {}, I[Mn] = "Boolean", I[Nn] = "<end>", I[V] = "Identifier", I[H] = "Keyword", I[Pn] = "Null", I[U] = "Numeric", I[W] = "Punctuator", I[Fn] = "String", I[In] = "RegularExpression";
1285
+ var Ln = "ArrayExpression", Rn = "BinaryExpression", zn = "CallExpression", Bn = "ConditionalExpression", Vn = "Identifier", Hn = "Literal", Un = "LogicalExpression", Wn = "MemberExpression", Gn = "ObjectExpression", Kn = "Property", qn = "UnaryExpression", G = "Unexpected token %0", Jn = "Unexpected number", Yn = "Unexpected string", Xn = "Unexpected identifier", Zn = "Unexpected reserved word", Qn = "Unexpected end of input", $n = "Invalid regular expression", er = "Invalid regular expression: missing /", tr = "Octal literals are not allowed in strict mode.", nr = "Duplicate data property in object literal not allowed in strict mode", K = "ILLEGAL", rr = "Disabled.", ir = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), ar = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
1286
+ function or(e, t) {
1173
1287
  /* istanbul ignore next */
1174
1288
  if (!e) throw Error("ASSERT: " + t);
1175
1289
  }
1176
- function K(e) {
1290
+ function q(e) {
1177
1291
  return e >= 48 && e <= 57;
1178
1292
  }
1179
- function Yn(e) {
1293
+ function sr(e) {
1180
1294
  return "0123456789abcdefABCDEF".includes(e);
1181
1295
  }
1182
- function Xn(e) {
1296
+ function cr(e) {
1183
1297
  return "01234567".includes(e);
1184
1298
  }
1185
- function Zn(e) {
1299
+ function lr(e) {
1186
1300
  return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
1187
1301
  5760,
1188
1302
  6158,
@@ -1203,16 +1317,16 @@ function Zn(e) {
1203
1317
  65279
1204
1318
  ].includes(e);
1205
1319
  }
1206
- function Qn(e) {
1320
+ function ur(e) {
1207
1321
  return e === 10 || e === 13 || e === 8232 || e === 8233;
1208
1322
  }
1209
- function $n(e) {
1210
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && Kn.test(String.fromCharCode(e));
1323
+ function dr(e) {
1324
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && ir.test(String.fromCharCode(e));
1211
1325
  }
1212
- function er(e) {
1213
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && qn.test(String.fromCharCode(e));
1326
+ function fr(e) {
1327
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && ar.test(String.fromCharCode(e));
1214
1328
  }
1215
- var tr = {
1329
+ var pr = {
1216
1330
  if: 1,
1217
1331
  in: 1,
1218
1332
  do: 1,
@@ -1256,47 +1370,47 @@ var tr = {
1256
1370
  instanceof: 1,
1257
1371
  implements: 1
1258
1372
  };
1259
- function nr() {
1260
- for (; L < R;) {
1261
- let e = I.charCodeAt(L);
1262
- if (Zn(e) || Qn(e)) ++L;
1373
+ function mr() {
1374
+ for (; R < z;) {
1375
+ let e = L.charCodeAt(R);
1376
+ if (lr(e) || ur(e)) ++R;
1263
1377
  else break;
1264
1378
  }
1265
1379
  }
1266
- function rr(e) {
1380
+ function hr(e) {
1267
1381
  var t, n, r, i = 0;
1268
- for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) L < R && Yn(I[L]) ? (r = I[L++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : J({}, W, G);
1382
+ for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) R < z && sr(L[R]) ? (r = L[R++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : Y({}, G, K);
1269
1383
  return String.fromCharCode(i);
1270
1384
  }
1271
- function ir() {
1272
- var e = I[L], t = 0, n, r;
1273
- for (e === "}" && J({}, W, G); L < R && (e = I[L++], Yn(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1274
- return (t > 1114111 || e !== "}") && J({}, W, G), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1385
+ function gr() {
1386
+ var e = L[R], t = 0, n, r;
1387
+ for (e === "}" && Y({}, G, K); R < z && (e = L[R++], sr(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1388
+ return (t > 1114111 || e !== "}") && Y({}, G, K), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1275
1389
  }
1276
- function ar() {
1277
- var e = I.charCodeAt(L++), t = String.fromCharCode(e);
1278
- for (e === 92 && (I.charCodeAt(L) !== 117 && J({}, W, G), ++L, e = rr("u"), (!e || e === "\\" || !$n(e.charCodeAt(0))) && J({}, W, G), t = e); L < R && (e = I.charCodeAt(L), er(e));) ++L, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), I.charCodeAt(L) !== 117 && J({}, W, G), ++L, e = rr("u"), (!e || e === "\\" || !er(e.charCodeAt(0))) && J({}, W, G), t += e);
1390
+ function _r() {
1391
+ var e = L.charCodeAt(R++), t = String.fromCharCode(e);
1392
+ for (e === 92 && (L.charCodeAt(R) !== 117 && Y({}, G, K), ++R, e = hr("u"), (!e || e === "\\" || !dr(e.charCodeAt(0))) && Y({}, G, K), t = e); R < z && (e = L.charCodeAt(R), fr(e));) ++R, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), L.charCodeAt(R) !== 117 && Y({}, G, K), ++R, e = hr("u"), (!e || e === "\\" || !fr(e.charCodeAt(0))) && Y({}, G, K), t += e);
1279
1393
  return t;
1280
1394
  }
1281
- function or() {
1282
- for (var e = L++, t; L < R;) {
1283
- if (t = I.charCodeAt(L), t === 92) return L = e, ar();
1284
- if (er(t)) ++L;
1395
+ function vr() {
1396
+ for (var e = R++, t; R < z;) {
1397
+ if (t = L.charCodeAt(R), t === 92) return R = e, _r();
1398
+ if (fr(t)) ++R;
1285
1399
  else break;
1286
1400
  }
1287
- return I.slice(e, L);
1401
+ return L.slice(e, R);
1288
1402
  }
1289
- function sr() {
1290
- var e = L, t = I.charCodeAt(L) === 92 ? ar() : or();
1403
+ function yr() {
1404
+ var e = R, t = L.charCodeAt(R) === 92 ? _r() : vr();
1291
1405
  return {
1292
- type: t.length === 1 ? B : tr.hasOwnProperty(t) ? V : t === "null" ? Sn : t === "true" || t === "false" ? bn : B,
1406
+ type: t.length === 1 ? V : pr.hasOwnProperty(t) ? H : t === "null" ? Pn : t === "true" || t === "false" ? Mn : V,
1293
1407
  value: t,
1294
1408
  start: e,
1295
- end: L
1409
+ end: R
1296
1410
  };
1297
1411
  }
1298
- function cr() {
1299
- var e = L, t = I.charCodeAt(L), n, r = I[L], i, a, o;
1412
+ function br() {
1413
+ var e = R, t = L.charCodeAt(R), n, r = L[R], i, a, o;
1300
1414
  switch (t) {
1301
1415
  case 46:
1302
1416
  case 40:
@@ -1309,13 +1423,13 @@ function cr() {
1309
1423
  case 93:
1310
1424
  case 58:
1311
1425
  case 63:
1312
- case 126: return ++L, {
1313
- type: U,
1426
+ case 126: return ++R, {
1427
+ type: W,
1314
1428
  value: String.fromCharCode(t),
1315
1429
  start: e,
1316
- end: L
1430
+ end: R
1317
1431
  };
1318
- default: if (n = I.charCodeAt(L + 1), n === 61) switch (t) {
1432
+ default: if (n = L.charCodeAt(R + 1), n === 61) switch (t) {
1319
1433
  case 43:
1320
1434
  case 45:
1321
1435
  case 47:
@@ -1325,101 +1439,101 @@ function cr() {
1325
1439
  case 124:
1326
1440
  case 37:
1327
1441
  case 38:
1328
- case 42: return L += 2, {
1329
- type: U,
1442
+ case 42: return R += 2, {
1443
+ type: W,
1330
1444
  value: String.fromCharCode(t) + String.fromCharCode(n),
1331
1445
  start: e,
1332
- end: L
1446
+ end: R
1333
1447
  };
1334
1448
  case 33:
1335
- case 61: return L += 2, I.charCodeAt(L) === 61 && ++L, {
1336
- type: U,
1337
- value: I.slice(e, L),
1449
+ case 61: return R += 2, L.charCodeAt(R) === 61 && ++R, {
1450
+ type: W,
1451
+ value: L.slice(e, R),
1338
1452
  start: e,
1339
- end: L
1453
+ end: R
1340
1454
  };
1341
1455
  }
1342
1456
  }
1343
- if (o = I.substr(L, 4), o === ">>>=") return L += 4, {
1344
- type: U,
1457
+ if (o = L.substr(R, 4), o === ">>>=") return R += 4, {
1458
+ type: W,
1345
1459
  value: o,
1346
1460
  start: e,
1347
- end: L
1461
+ end: R
1348
1462
  };
1349
- if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return L += 3, {
1350
- type: U,
1463
+ if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return R += 3, {
1464
+ type: W,
1351
1465
  value: a,
1352
1466
  start: e,
1353
- end: L
1467
+ end: R
1354
1468
  };
1355
- if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return L += 2, {
1356
- type: U,
1469
+ if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return R += 2, {
1470
+ type: W,
1357
1471
  value: i,
1358
1472
  start: e,
1359
- end: L
1473
+ end: R
1360
1474
  };
1361
- if (i === "//" && J({}, W, G), "<>=!+-*%&|^/".includes(r)) return ++L, {
1362
- type: U,
1475
+ if (i === "//" && Y({}, G, K), "<>=!+-*%&|^/".includes(r)) return ++R, {
1476
+ type: W,
1363
1477
  value: r,
1364
1478
  start: e,
1365
- end: L
1479
+ end: R
1366
1480
  };
1367
- J({}, W, G);
1481
+ Y({}, G, K);
1368
1482
  }
1369
- function lr(e) {
1483
+ function xr(e) {
1370
1484
  let t = "";
1371
- for (; L < R && Yn(I[L]);) t += I[L++];
1372
- return t.length === 0 && J({}, W, G), $n(I.charCodeAt(L)) && J({}, W, G), {
1373
- type: H,
1485
+ for (; R < z && sr(L[R]);) t += L[R++];
1486
+ return t.length === 0 && Y({}, G, K), dr(L.charCodeAt(R)) && Y({}, G, K), {
1487
+ type: U,
1374
1488
  value: parseInt("0x" + t, 16),
1375
1489
  start: e,
1376
- end: L
1490
+ end: R
1377
1491
  };
1378
1492
  }
1379
- function ur(e) {
1380
- let t = "0" + I[L++];
1381
- for (; L < R && Xn(I[L]);) t += I[L++];
1382
- return ($n(I.charCodeAt(L)) || K(I.charCodeAt(L))) && J({}, W, G), {
1383
- type: H,
1493
+ function Sr(e) {
1494
+ let t = "0" + L[R++];
1495
+ for (; R < z && cr(L[R]);) t += L[R++];
1496
+ return (dr(L.charCodeAt(R)) || q(L.charCodeAt(R))) && Y({}, G, K), {
1497
+ type: U,
1384
1498
  value: parseInt(t, 8),
1385
1499
  octal: !0,
1386
1500
  start: e,
1387
- end: L
1501
+ end: R
1388
1502
  };
1389
1503
  }
1390
- function dr() {
1391
- var e, t, n = I[L];
1392
- if (Jn(K(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = L, e = "", n !== ".") {
1393
- if (e = I[L++], n = I[L], e === "0") {
1394
- if (n === "x" || n === "X") return ++L, lr(t);
1395
- if (Xn(n)) return ur(t);
1396
- n && K(n.charCodeAt(0)) && J({}, W, G);
1504
+ function Cr() {
1505
+ var e, t, n = L[R];
1506
+ if (or(q(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = R, e = "", n !== ".") {
1507
+ if (e = L[R++], n = L[R], e === "0") {
1508
+ if (n === "x" || n === "X") return ++R, xr(t);
1509
+ if (cr(n)) return Sr(t);
1510
+ n && q(n.charCodeAt(0)) && Y({}, G, K);
1397
1511
  }
1398
- for (; K(I.charCodeAt(L));) e += I[L++];
1399
- n = I[L];
1512
+ for (; q(L.charCodeAt(R));) e += L[R++];
1513
+ n = L[R];
1400
1514
  }
1401
1515
  if (n === ".") {
1402
- for (e += I[L++]; K(I.charCodeAt(L));) e += I[L++];
1403
- n = I[L];
1516
+ for (e += L[R++]; q(L.charCodeAt(R));) e += L[R++];
1517
+ n = L[R];
1404
1518
  }
1405
- if (n === "e" || n === "E") if (e += I[L++], n = I[L], (n === "+" || n === "-") && (e += I[L++]), K(I.charCodeAt(L))) for (; K(I.charCodeAt(L));) e += I[L++];
1406
- else J({}, W, G);
1407
- return $n(I.charCodeAt(L)) && J({}, W, G), {
1408
- type: H,
1519
+ if (n === "e" || n === "E") if (e += L[R++], n = L[R], (n === "+" || n === "-") && (e += L[R++]), q(L.charCodeAt(R))) for (; q(L.charCodeAt(R));) e += L[R++];
1520
+ else Y({}, G, K);
1521
+ return dr(L.charCodeAt(R)) && Y({}, G, K), {
1522
+ type: U,
1409
1523
  value: parseFloat(e),
1410
1524
  start: t,
1411
- end: L
1525
+ end: R
1412
1526
  };
1413
1527
  }
1414
- function fr() {
1528
+ function wr() {
1415
1529
  var e = "", t, n, r, i, a = !1;
1416
- for (t = I[L], Jn(t === "'" || t === "\"", "String literal must starts with a quote"), n = L, ++L; L < R;) if (r = I[L++], r === t) {
1530
+ for (t = L[R], or(t === "'" || t === "\"", "String literal must starts with a quote"), n = R, ++R; R < z;) if (r = L[R++], r === t) {
1417
1531
  t = "";
1418
1532
  break;
1419
- } else if (r === "\\") if (r = I[L++], !r || !Qn(r.charCodeAt(0))) switch (r) {
1533
+ } else if (r === "\\") if (r = L[R++], !r || !ur(r.charCodeAt(0))) switch (r) {
1420
1534
  case "u":
1421
1535
  case "x":
1422
- I[L] === "{" ? (++L, e += ir()) : e += rr(r);
1536
+ L[R] === "{" ? (++R, e += gr()) : e += hr(r);
1423
1537
  break;
1424
1538
  case "n":
1425
1539
  e += "\n";
@@ -1440,30 +1554,30 @@ function fr() {
1440
1554
  e += "\v";
1441
1555
  break;
1442
1556
  default:
1443
- Xn(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), L < R && Xn(I[L]) && (a = !0, i = i * 8 + "01234567".indexOf(I[L++]), "0123".includes(r) && L < R && Xn(I[L]) && (i = i * 8 + "01234567".indexOf(I[L++]))), e += String.fromCharCode(i)) : e += r;
1557
+ cr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), R < z && cr(L[R]) && (a = !0, i = i * 8 + "01234567".indexOf(L[R++]), "0123".includes(r) && R < z && cr(L[R]) && (i = i * 8 + "01234567".indexOf(L[R++]))), e += String.fromCharCode(i)) : e += r;
1444
1558
  break;
1445
1559
  }
1446
- else r === "\r" && I[L] === "\n" && ++L;
1447
- else if (Qn(r.charCodeAt(0))) break;
1560
+ else r === "\r" && L[R] === "\n" && ++R;
1561
+ else if (ur(r.charCodeAt(0))) break;
1448
1562
  else e += r;
1449
- return t !== "" && J({}, W, G), {
1450
- type: Cn,
1563
+ return t !== "" && Y({}, G, K), {
1564
+ type: Fn,
1451
1565
  value: e,
1452
1566
  octal: a,
1453
1567
  start: n,
1454
- end: L
1568
+ end: R
1455
1569
  };
1456
1570
  }
1457
- function pr(e, t) {
1571
+ function Tr(e, t) {
1458
1572
  let n = e;
1459
1573
  t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
1460
1574
  if (parseInt(t, 16) <= 1114111) return "x";
1461
- J({}, Vn);
1575
+ Y({}, $n);
1462
1576
  }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
1463
1577
  try {
1464
1578
  new RegExp(n);
1465
1579
  } catch {
1466
- J({}, Vn);
1580
+ Y({}, $n);
1467
1581
  }
1468
1582
  try {
1469
1583
  return new RegExp(e, t);
@@ -1471,30 +1585,30 @@ function pr(e, t) {
1471
1585
  return null;
1472
1586
  }
1473
1587
  }
1474
- function mr() {
1475
- var e = I[L], t, n, r, i;
1476
- for (Jn(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++], Qn(e.charCodeAt(0)) && J({}, Hn), t += e;
1477
- else if (Qn(e.charCodeAt(0))) J({}, Hn);
1588
+ function Er() {
1589
+ var e = L[R], t, n, r, i;
1590
+ for (or(e === "/", "Regular expression literal must start with a slash"), t = L[R++], n = !1, r = !1; R < z;) if (e = L[R++], t += e, e === "\\") e = L[R++], ur(e.charCodeAt(0)) && Y({}, er), t += e;
1591
+ else if (ur(e.charCodeAt(0))) Y({}, er);
1478
1592
  else if (n) e === "]" && (n = !1);
1479
1593
  else if (e === "/") {
1480
1594
  r = !0;
1481
1595
  break;
1482
1596
  } else e === "[" && (n = !0);
1483
- return r || J({}, Hn), i = t.substr(1, t.length - 2), {
1597
+ return r || Y({}, er), i = t.substr(1, t.length - 2), {
1484
1598
  value: i,
1485
1599
  literal: t
1486
1600
  };
1487
1601
  }
1488
- function hr() {
1489
- for (var e, t = "", n = ""; L < R && (e = I[L], er(e.charCodeAt(0)));) ++L, e === "\\" && L < R ? J({}, W, G) : (n += e, t += e);
1490
- return n.search(/[^gimuy]/g) >= 0 && J({}, Vn, n), {
1602
+ function Dr() {
1603
+ for (var e, t = "", n = ""; R < z && (e = L[R], fr(e.charCodeAt(0)));) ++R, e === "\\" && R < z ? Y({}, G, K) : (n += e, t += e);
1604
+ return n.search(/[^gimuy]/g) >= 0 && Y({}, $n, n), {
1491
1605
  value: n,
1492
1606
  literal: t
1493
1607
  };
1494
1608
  }
1495
- function gr() {
1609
+ function Or() {
1496
1610
  var e, t, n, r;
1497
- return z = null, nr(), e = L, t = mr(), n = hr(), r = pr(t.value, n.value), {
1611
+ return B = null, mr(), e = R, t = Er(), n = Dr(), r = Tr(t.value, n.value), {
1498
1612
  literal: t.literal + n.literal,
1499
1613
  value: r,
1500
1614
  regex: {
@@ -1502,166 +1616,166 @@ function gr() {
1502
1616
  flags: n.value
1503
1617
  },
1504
1618
  start: e,
1505
- end: L
1619
+ end: R
1506
1620
  };
1507
1621
  }
1508
- function _r(e) {
1509
- return e.type === B || e.type === V || e.type === bn || e.type === Sn;
1622
+ function kr(e) {
1623
+ return e.type === V || e.type === H || e.type === Mn || e.type === Pn;
1510
1624
  }
1511
- function vr() {
1512
- if (nr(), L >= R) return {
1513
- type: xn,
1514
- start: L,
1515
- end: L
1625
+ function Ar() {
1626
+ if (mr(), R >= z) return {
1627
+ type: Nn,
1628
+ start: R,
1629
+ end: R
1516
1630
  };
1517
- let e = I.charCodeAt(L);
1518
- return $n(e) ? sr() : e === 40 || e === 41 || e === 59 ? cr() : e === 39 || e === 34 ? fr() : e === 46 ? K(I.charCodeAt(L + 1)) ? dr() : cr() : K(e) ? dr() : cr();
1631
+ let e = L.charCodeAt(R);
1632
+ return dr(e) ? yr() : e === 40 || e === 41 || e === 59 ? br() : e === 39 || e === 34 ? wr() : e === 46 ? q(L.charCodeAt(R + 1)) ? Cr() : br() : q(e) ? Cr() : br();
1519
1633
  }
1520
- function q() {
1521
- let e = z;
1522
- return L = e.end, z = vr(), L = e.end, e;
1634
+ function J() {
1635
+ let e = B;
1636
+ return R = e.end, B = Ar(), R = e.end, e;
1523
1637
  }
1524
- function yr() {
1525
- let e = L;
1526
- z = vr(), L = e;
1638
+ function jr() {
1639
+ let e = R;
1640
+ B = Ar(), R = e;
1527
1641
  }
1528
- function br(e) {
1529
- let t = new P(Tn);
1642
+ function Mr(e) {
1643
+ let t = new F(Ln);
1530
1644
  return t.elements = e, t;
1531
1645
  }
1532
- function xr(e, t, n) {
1533
- let r = new P(e === "||" || e === "&&" ? jn : En);
1646
+ function Nr(e, t, n) {
1647
+ let r = new F(e === "||" || e === "&&" ? Un : Rn);
1534
1648
  return r.operator = e, r.left = t, r.right = n, r;
1535
1649
  }
1536
- function Sr(e, t) {
1537
- let n = new P(Dn);
1650
+ function Pr(e, t) {
1651
+ let n = new F(zn);
1538
1652
  return n.callee = e, n.arguments = t, n;
1539
1653
  }
1540
- function Cr(e, t, n) {
1541
- let r = new P(On);
1654
+ function Fr(e, t, n) {
1655
+ let r = new F(Bn);
1542
1656
  return r.test = e, r.consequent = t, r.alternate = n, r;
1543
1657
  }
1544
- function wr(e) {
1545
- let t = new P(kn);
1658
+ function Ir(e) {
1659
+ let t = new F(Vn);
1546
1660
  return t.name = e, t;
1547
1661
  }
1548
- function Tr(e) {
1549
- let t = new P(An);
1550
- return t.value = e.value, t.raw = I.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1662
+ function Lr(e) {
1663
+ let t = new F(Hn);
1664
+ return t.value = e.value, t.raw = L.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1551
1665
  }
1552
- function Er(e, t, n) {
1553
- let r = new P(Mn);
1666
+ function Rr(e, t, n) {
1667
+ let r = new F(Wn);
1554
1668
  return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
1555
1669
  }
1556
- function Dr(e) {
1557
- let t = new P(Nn);
1670
+ function zr(e) {
1671
+ let t = new F(Gn);
1558
1672
  return t.properties = e, t;
1559
1673
  }
1560
- function Or(e, t, n) {
1561
- let r = new P(Pn);
1674
+ function Br(e, t, n) {
1675
+ let r = new F(Kn);
1562
1676
  return r.key = t, r.value = n, r.kind = e, r;
1563
1677
  }
1564
- function kr(e, t) {
1565
- let n = new P(Fn);
1678
+ function Vr(e, t) {
1679
+ let n = new F(qn);
1566
1680
  return n.operator = e, n.argument = t, n.prefix = !0, n;
1567
1681
  }
1568
- function J(e, t) {
1569
- var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (Jn(t < r.length, "Message reference must be in range"), r[t]));
1570
- throw n = Error(i), n.index = L, n.description = i, n;
1682
+ function Y(e, t) {
1683
+ var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (or(t < r.length, "Message reference must be in range"), r[t]));
1684
+ throw n = Error(i), n.index = R, n.description = i, n;
1571
1685
  }
1572
- function Ar(e) {
1573
- e.type === xn && J(e, Bn), e.type === H && J(e, In), e.type === Cn && J(e, Ln), e.type === B && J(e, Rn), e.type === V && J(e, zn), J(e, W, e.value);
1574
- }
1575
- function Y(e) {
1576
- let t = q();
1577
- (t.type !== U || t.value !== e) && Ar(t);
1686
+ function Hr(e) {
1687
+ e.type === Nn && Y(e, Qn), e.type === U && Y(e, Jn), e.type === Fn && Y(e, Yn), e.type === V && Y(e, Xn), e.type === H && Y(e, Zn), Y(e, G, e.value);
1578
1688
  }
1579
1689
  function X(e) {
1580
- return z.type === U && z.value === e;
1690
+ let t = J();
1691
+ (t.type !== W || t.value !== e) && Hr(t);
1692
+ }
1693
+ function Z(e) {
1694
+ return B.type === W && B.value === e;
1581
1695
  }
1582
- function jr(e) {
1583
- return z.type === V && z.value === e;
1696
+ function Ur(e) {
1697
+ return B.type === H && B.value === e;
1584
1698
  }
1585
- function Mr() {
1699
+ function Wr() {
1586
1700
  let e = [];
1587
- for (L = z.start, Y("["); !X("]");) X(",") ? (q(), e.push(null)) : (e.push(Z()), X("]") || Y(","));
1588
- return q(), br(e);
1701
+ for (R = B.start, X("["); !Z("]");) Z(",") ? (J(), e.push(null)) : (e.push(Q()), Z("]") || X(","));
1702
+ return J(), Mr(e);
1589
1703
  }
1590
- function Nr() {
1591
- L = z.start;
1592
- let e = q();
1593
- return e.type === Cn || e.type === H ? (e.octal && J(e, Un), Tr(e)) : wr(e.value);
1704
+ function Gr() {
1705
+ R = B.start;
1706
+ let e = J();
1707
+ return e.type === Fn || e.type === U ? (e.octal && Y(e, tr), Lr(e)) : Ir(e.value);
1594
1708
  }
1595
- function Pr() {
1709
+ function Kr() {
1596
1710
  var e, t, n, r;
1597
- if (L = z.start, e = z, e.type === B) return n = Nr(), Y(":"), r = Z(), Or("init", n, r);
1598
- if (e.type === xn || e.type === U) Ar(e);
1599
- else return t = Nr(), Y(":"), r = Z(), Or("init", t, r);
1711
+ if (R = B.start, e = B, e.type === V) return n = Gr(), X(":"), r = Q(), Br("init", n, r);
1712
+ if (e.type === Nn || e.type === W) Hr(e);
1713
+ else return t = Gr(), X(":"), r = Q(), Br("init", t, r);
1600
1714
  }
1601
- function Fr() {
1715
+ function qr() {
1602
1716
  var e = [], t, n, r, i = {}, a = String;
1603
- for (L = z.start, Y("{"); !X("}");) t = Pr(), n = t.key.type === kn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? J({}, Wn) : i[r] = !0, e.push(t), X("}") || Y(",");
1604
- return Y("}"), Dr(e);
1717
+ for (R = B.start, X("{"); !Z("}");) t = Kr(), n = t.key.type === Vn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? Y({}, nr) : i[r] = !0, e.push(t), Z("}") || X(",");
1718
+ return X("}"), zr(e);
1605
1719
  }
1606
- function Ir() {
1607
- Y("(");
1608
- let e = Jr();
1609
- return Y(")"), e;
1720
+ function Jr() {
1721
+ X("(");
1722
+ let e = oi();
1723
+ return X(")"), e;
1610
1724
  }
1611
- var Lr = { if: 1 };
1612
- function Rr() {
1725
+ var Yr = { if: 1 };
1726
+ function Xr() {
1613
1727
  var e, t, n;
1614
- if (X("(")) return Ir();
1615
- if (X("[")) return Mr();
1616
- if (X("{")) return Fr();
1617
- if (e = z.type, L = z.start, e === B || Lr[z.value]) n = wr(q().value);
1618
- else if (e === Cn || e === H) z.octal && J(z, Un), n = Tr(q());
1619
- else if (e === V) throw Error(Gn);
1620
- else e === bn ? (t = q(), t.value = t.value === "true", n = Tr(t)) : e === Sn ? (t = q(), t.value = null, n = Tr(t)) : X("/") || X("/=") ? (n = Tr(gr()), yr()) : Ar(q());
1728
+ if (Z("(")) return Jr();
1729
+ if (Z("[")) return Wr();
1730
+ if (Z("{")) return qr();
1731
+ if (e = B.type, R = B.start, e === V || Yr[B.value]) n = Ir(J().value);
1732
+ else if (e === Fn || e === U) B.octal && Y(B, tr), n = Lr(J());
1733
+ else if (e === H) throw Error(rr);
1734
+ else e === Mn ? (t = J(), t.value = t.value === "true", n = Lr(t)) : e === Pn ? (t = J(), t.value = null, n = Lr(t)) : Z("/") || Z("/=") ? (n = Lr(Or()), jr()) : Hr(J());
1621
1735
  return n;
1622
1736
  }
1623
- function zr() {
1737
+ function Zr() {
1624
1738
  let e = [];
1625
- if (Y("("), !X(")")) for (; L < R && (e.push(Z()), !X(")"));) Y(",");
1626
- return Y(")"), e;
1627
- }
1628
- function Br() {
1629
- L = z.start;
1630
- let e = q();
1631
- return _r(e) || Ar(e), wr(e.value);
1632
- }
1633
- function Vr() {
1634
- return Y("."), Br();
1635
- }
1636
- function Hr() {
1637
- Y("[");
1638
- let e = Jr();
1639
- return Y("]"), e;
1640
- }
1641
- function Ur() {
1642
- for (var e = Rr(), t, n;;) if (X(".")) n = Vr(), e = Er(".", e, n);
1643
- else if (X("(")) t = zr(), e = Sr(e, t);
1644
- else if (X("[")) n = Hr(), e = Er("[", e, n);
1739
+ if (X("("), !Z(")")) for (; R < z && (e.push(Q()), !Z(")"));) X(",");
1740
+ return X(")"), e;
1741
+ }
1742
+ function Qr() {
1743
+ R = B.start;
1744
+ let e = J();
1745
+ return kr(e) || Hr(e), Ir(e.value);
1746
+ }
1747
+ function $r() {
1748
+ return X("."), Qr();
1749
+ }
1750
+ function ei() {
1751
+ X("[");
1752
+ let e = oi();
1753
+ return X("]"), e;
1754
+ }
1755
+ function ti() {
1756
+ for (var e = Xr(), t, n;;) if (Z(".")) n = $r(), e = Rr(".", e, n);
1757
+ else if (Z("(")) t = Zr(), e = Pr(e, t);
1758
+ else if (Z("[")) n = ei(), e = Rr("[", e, n);
1645
1759
  else break;
1646
1760
  return e;
1647
1761
  }
1648
- function Wr() {
1649
- let e = Ur();
1650
- if (z.type === U && (X("++") || X("--"))) throw Error(Gn);
1762
+ function ni() {
1763
+ let e = ti();
1764
+ if (B.type === W && (Z("++") || Z("--"))) throw Error(rr);
1651
1765
  return e;
1652
1766
  }
1653
- function Gr() {
1767
+ function ri() {
1654
1768
  var e, t;
1655
- if (z.type !== U && z.type !== V) t = Wr();
1656
- else if (X("++") || X("--")) throw Error(Gn);
1657
- else if (X("+") || X("-") || X("~") || X("!")) e = q(), t = Gr(), t = kr(e.value, t);
1658
- else if (jr("delete") || jr("void") || jr("typeof")) throw Error(Gn);
1659
- else t = Wr();
1769
+ if (B.type !== W && B.type !== H) t = ni();
1770
+ else if (Z("++") || Z("--")) throw Error(rr);
1771
+ else if (Z("+") || Z("-") || Z("~") || Z("!")) e = J(), t = ri(), t = Vr(e.value, t);
1772
+ else if (Ur("delete") || Ur("void") || Ur("typeof")) throw Error(rr);
1773
+ else t = ni();
1660
1774
  return t;
1661
1775
  }
1662
- function Kr(e) {
1776
+ function ii(e) {
1663
1777
  let t = 0;
1664
- if (e.type !== U && e.type !== V) return 0;
1778
+ if (e.type !== W && e.type !== H) return 0;
1665
1779
  switch (e.value) {
1666
1780
  case "||":
1667
1781
  t = 1;
@@ -1709,36 +1823,36 @@ function Kr(e) {
1709
1823
  }
1710
1824
  return t;
1711
1825
  }
1712
- function qr() {
1713
- var e = z, t, n, r, i, a, o, s, c = Gr(), l;
1714
- if (r = z, i = Kr(r), i === 0) return c;
1715
- for (r.prec = i, q(), t = [e, z], o = Gr(), a = [
1826
+ function ai() {
1827
+ var e = B, t, n, r, i, a, o, s, c = ri(), l;
1828
+ if (r = B, i = ii(r), i === 0) return c;
1829
+ for (r.prec = i, J(), t = [e, B], o = ri(), a = [
1716
1830
  c,
1717
1831
  r,
1718
1832
  o
1719
- ]; (i = Kr(z)) > 0;) {
1720
- for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = xr(s, c, o), a.push(n);
1721
- r = q(), r.prec = i, a.push(r), t.push(z), n = Gr(), a.push(n);
1833
+ ]; (i = ii(B)) > 0;) {
1834
+ for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Nr(s, c, o), a.push(n);
1835
+ r = J(), r.prec = i, a.push(r), t.push(B), n = ri(), a.push(n);
1722
1836
  }
1723
- for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = xr(a[l - 1].value, a[l - 2], n), l -= 2;
1837
+ for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Nr(a[l - 1].value, a[l - 2], n), l -= 2;
1724
1838
  return n;
1725
1839
  }
1726
- function Z() {
1727
- var e = qr(), t, n;
1728
- return X("?") && (q(), t = Z(), Y(":"), n = Z(), e = Cr(e, t, n)), e;
1840
+ function Q() {
1841
+ var e = ai(), t, n;
1842
+ return Z("?") && (J(), t = Q(), X(":"), n = Q(), e = Fr(e, t, n)), e;
1729
1843
  }
1730
- function Jr() {
1731
- let e = Z();
1732
- if (X(",")) throw Error(Gn);
1844
+ function oi() {
1845
+ let e = Q();
1846
+ if (Z(",")) throw Error(rr);
1733
1847
  return e;
1734
1848
  }
1735
- function Yr(e) {
1736
- I = e, L = 0, R = I.length, z = null, yr();
1737
- let t = Jr();
1738
- if (z.type !== xn) throw Error("Unexpect token after expression.");
1849
+ function si(e) {
1850
+ L = e, R = 0, z = L.length, B = null, jr();
1851
+ let t = oi();
1852
+ if (B.type !== Nn) throw Error("Unexpect token after expression.");
1739
1853
  return t;
1740
1854
  }
1741
- var Xr = {
1855
+ var ci = {
1742
1856
  NaN: "NaN",
1743
1857
  E: "Math.E",
1744
1858
  LN2: "Math.LN2",
@@ -1751,7 +1865,7 @@ var Xr = {
1751
1865
  MIN_VALUE: "Number.MIN_VALUE",
1752
1866
  MAX_VALUE: "Number.MAX_VALUE"
1753
1867
  };
1754
- function Zr(e) {
1868
+ function li(e) {
1755
1869
  function t(t, n, r, i) {
1756
1870
  let a = e(n[0]);
1757
1871
  return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
@@ -1783,7 +1897,7 @@ function Zr(e) {
1783
1897
  sqrt: "Math.sqrt",
1784
1898
  tan: "Math.tan",
1785
1899
  clamp: function(t) {
1786
- t.length < 3 && N("Missing arguments to clamp function."), t.length > 3 && N("Too many arguments to clamp function.");
1900
+ t.length < 3 && P("Missing arguments to clamp function."), t.length > 3 && P("Too many arguments to clamp function.");
1787
1901
  let n = t.map(e);
1788
1902
  return "Math.max(" + n[1] + ", Math.min(" + n[2] + "," + n[0] + "))";
1789
1903
  },
@@ -1821,42 +1935,42 @@ function Zr(e) {
1821
1935
  regexp: a,
1822
1936
  test: n("test", a),
1823
1937
  if: function(t) {
1824
- t.length < 3 && N("Missing arguments to if function."), t.length > 3 && N("Too many arguments to if function.");
1938
+ t.length < 3 && P("Missing arguments to if function."), t.length > 3 && P("Too many arguments to if function.");
1825
1939
  let n = t.map(e);
1826
1940
  return "(" + n[0] + "?" + n[1] + ":" + n[2] + ")";
1827
1941
  }
1828
1942
  };
1829
1943
  }
1830
- function Qr(e) {
1944
+ function ui(e) {
1831
1945
  let t = e && e.length - 1;
1832
1946
  return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
1833
1947
  }
1834
- function $r(e) {
1948
+ function di(e) {
1835
1949
  e ||= {};
1836
- let t = e.allowed ? on(e.allowed) : {}, n = e.forbidden ? on(e.forbidden) : {}, r = e.constants || Xr, i = (e.functions || Zr)(d), a = e.globalvar, o = e.fieldvar, s = tn(a) ? a : (e) => `${a}["${e}"]`;
1950
+ let t = e.allowed ? vn(e.allowed) : {}, n = e.forbidden ? vn(e.forbidden) : {}, r = e.constants || ci, i = (e.functions || li)(d), a = e.globalvar, o = e.fieldvar, s = mn(a) ? a : (e) => `${a}["${e}"]`;
1837
1951
  [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
1838
1952
  let c = {}, l = {}, u = 0;
1839
1953
  function d(e) {
1840
- if (rn(e)) return e;
1954
+ if (gn(e)) return e;
1841
1955
  let t = f[e.type];
1842
- return t ?? N("Unsupported type: " + e.type), t(e);
1956
+ return t ?? P("Unsupported type: " + e.type), t(e);
1843
1957
  }
1844
1958
  let f = {
1845
1959
  Literal: (e) => e.raw,
1846
1960
  Identifier: (e) => {
1847
1961
  let i = e.name;
1848
- return u > 0 ? i : nn(n, i) ? N("Illegal identifier: " + i) : nn(r, i) ? r[i] : nn(t, i) ? i : (c[i] = 1, s(i));
1962
+ return u > 0 ? i : hn(n, i) ? P("Illegal identifier: " + i) : hn(r, i) ? r[i] : hn(t, i) ? i : (c[i] = 1, s(i));
1849
1963
  },
1850
1964
  MemberExpression: (e) => {
1851
1965
  let t = !e.computed, n = d(e.object);
1852
1966
  t && (u += 1);
1853
1967
  let r = d(e.property);
1854
- return n === o && (l[Qr(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
1968
+ return n === o && (l[ui(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
1855
1969
  },
1856
1970
  CallExpression: (e) => {
1857
- e.callee.type !== "Identifier" && N("Illegal callee type: " + e.callee.type);
1858
- let t = e.callee.name, n = e.arguments, r = nn(i, t) && i[t];
1859
- return r || N("Unrecognized function: " + t), tn(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
1971
+ e.callee.type !== "Identifier" && P("Illegal callee type: " + e.callee.type);
1972
+ let t = e.callee.name, n = e.arguments, r = hn(i, t) && i[t];
1973
+ return r || P("Unrecognized function: " + t), mn(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
1860
1974
  },
1861
1975
  ArrayExpression: (e) => "[" + e.elements.map(d).join(",") + "]",
1862
1976
  BinaryExpression: (e) => "(" + d(e.left) + " " + e.operator + " " + d(e.right) + ")",
@@ -1866,7 +1980,7 @@ function $r(e) {
1866
1980
  ObjectExpression: (e) => {
1867
1981
  for (let t of e.properties) {
1868
1982
  let e = t.key.name;
1869
- Zt.has(e) && N("Illegal property: " + e);
1983
+ un.has(e) && P("Illegal property: " + e);
1870
1984
  }
1871
1985
  return "{" + e.properties.map(d).join(",") + "}";
1872
1986
  },
@@ -1888,81 +2002,83 @@ function $r(e) {
1888
2002
  }
1889
2003
  //#endregion
1890
2004
  //#region ../core/src/utils/smoothstep.js
1891
- function ei(e, t, n) {
2005
+ function fi(e, t, n) {
1892
2006
  return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
1893
2007
  }
1894
2008
  //#endregion
1895
2009
  //#region ../core/src/utils/clamp.js
1896
- function ti(e, t = 0, n = 1) {
2010
+ function pi(e, t = 0, n = 1) {
1897
2011
  return Math.max(t, Math.min(n, e));
1898
2012
  }
1899
2013
  //#endregion
1900
2014
  //#region ../core/src/utils/linearstep.js
1901
- function ni(e, t, n) {
1902
- return ti((n - e) / (t - e), 0, 1);
2015
+ function mi(e, t, n) {
2016
+ return pi((n - e) / (t - e), 0, 1);
1903
2017
  }
1904
2018
  //#endregion
1905
2019
  //#region ../core/src/utils/expression.js
1906
- function ri(e) {
2020
+ function hi(e) {
1907
2021
  return u(e) || ArrayBuffer.isView(e) ? e : null;
1908
2022
  }
1909
- function ii(e) {
1910
- return ri(e) || (x(e) ? e : null);
2023
+ function gi(e) {
2024
+ return hi(e) || (x(e) ? e : null);
1911
2025
  }
1912
- var ai = {
1913
- clamp: ti,
2026
+ var _i = {
2027
+ clamp: pi,
2028
+ tickStep: Fe,
1914
2029
  format(e, t) {
1915
- return yt(t)(e);
2030
+ return jt(t)(e);
1916
2031
  },
1917
2032
  join(e, t) {
1918
- return ri(e).join(t);
2033
+ return hi(e).join(t);
1919
2034
  },
1920
2035
  indexof(e, t, n) {
1921
- return ii(e).indexOf(t, n);
2036
+ return gi(e).indexOf(t, n);
1922
2037
  },
2038
+ inrange: ge,
1923
2039
  lastindexof(e, t, n) {
1924
- return ii(e).lastIndexOf(t, n);
2040
+ return gi(e).lastIndexOf(t, n);
1925
2041
  },
1926
2042
  reverse(e) {
1927
- return x(e) ? Array.from(e).reverse().join("") : ri(e).slice().reverse();
2043
+ return x(e) ? Array.from(e).reverse().join("") : hi(e).slice().reverse();
1928
2044
  },
1929
2045
  slice(e, t, n) {
1930
- return ii(e).slice(t, n);
2046
+ return gi(e).slice(t, n);
1931
2047
  },
1932
2048
  mapHasKey(e, t) {
1933
2049
  return e.has(t);
1934
2050
  },
1935
2051
  isArray: u,
1936
- isBoolean: ge,
2052
+ isBoolean: _e,
1937
2053
  isDefined(e) {
1938
2054
  return e !== void 0;
1939
2055
  },
1940
- isNumber: _e,
2056
+ isNumber: ve,
1941
2057
  isObject: d,
1942
- isRegExp: ve,
2058
+ isRegExp: ye,
1943
2059
  isString: x,
1944
2060
  isValid(e) {
1945
2061
  return e != null && e === e;
1946
2062
  },
1947
- lerp: ye,
1948
- linearstep: ni,
2063
+ lerp: be,
2064
+ linearstep: mi,
1949
2065
  replace(e, t, n) {
1950
2066
  return String(e).replace(t, n);
1951
2067
  },
1952
2068
  sort(e) {
1953
- return ri(e).slice().sort(fe);
2069
+ return hi(e).slice().sort(fe);
1954
2070
  },
1955
2071
  center(e) {
1956
- let t = ri(e);
2072
+ let t = hi(e);
1957
2073
  return (t[0] + t[t.length - 1]) / 2;
1958
2074
  },
1959
2075
  span(e) {
1960
- return be(e);
2076
+ return xe(e);
1961
2077
  },
1962
- smoothstep: ei
2078
+ smoothstep: fi
1963
2079
  };
1964
- function oi(e) {
1965
- let t = !1, n = mi(e, {}, { resolveScaleResolution: () => (t = !0, {
2080
+ function vi(e) {
2081
+ let t = !1, n = Ei(e, {}, { resolveScaleResolution: () => (t = !0, {
1966
2082
  channel: "analysis",
1967
2083
  getDomainRef: () => void 0,
1968
2084
  getMappingRef: () => void 0,
@@ -1974,9 +2090,9 @@ function oi(e) {
1974
2090
  globals: n.globals
1975
2091
  };
1976
2092
  }
1977
- function si(e, t) {
1978
- let n = Zr(e);
1979
- for (let e in ai) n[e] = `this.${e}`;
2093
+ function yi(e, t) {
2094
+ let n = li(e);
2095
+ for (let e in _i) n[e] = `this.${e}`;
1980
2096
  for (let r of [
1981
2097
  "scale",
1982
2098
  "invert",
@@ -1985,10 +2101,10 @@ function si(e, t) {
1985
2101
  "bandwidth",
1986
2102
  "linearize",
1987
2103
  "zoomLevel"
1988
- ]) n[r] = (n) => ci(e, t, r, n);
2104
+ ]) n[r] = (n) => bi(e, t, r, n);
1989
2105
  return n;
1990
2106
  }
1991
- function ci(e, t, n, r) {
2107
+ function bi(e, t, n, r) {
1992
2108
  if (n === "zoomLevel" && r.length === 0) {
1993
2109
  let e = [];
1994
2110
  for (let r of ["x", "y"]) {
@@ -2003,18 +2119,18 @@ function ci(e, t, n, r) {
2003
2119
  if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
2004
2120
  if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
2005
2121
  if (n === "zoomLevel" && r.length > 1) throw Error("Scale helper \"zoomLevel\" accepts zero arguments or one literal channel name.");
2006
- let i = li(r[0]);
2122
+ let i = xi(r[0]);
2007
2123
  if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
2008
2124
  let a = t.resolveScaleResolution?.(i);
2009
2125
  if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
2010
2126
  let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
2011
2127
  return `${t.globalvar}["${o.codeName}"](${s})`;
2012
2128
  }
2013
- function li(e) {
2129
+ function xi(e) {
2014
2130
  return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
2015
2131
  }
2016
- function ui(e, t) {
2017
- let n = (n) => fi(t, e, n);
2132
+ function Si(e, t) {
2133
+ let n = (n) => wi(t, e, n);
2018
2134
  if (e === "domain") return () => n(() => t.getDomain());
2019
2135
  if (e === "range") return () => n(() => t.getScale().range());
2020
2136
  if (e === "bandwidth") return () => n(() => {
@@ -2028,20 +2144,20 @@ function ui(e, t) {
2028
2144
  if (e === "zoomLevel") return () => n(() => t.getZoomLevel());
2029
2145
  throw Error("Unknown scale helper: " + e);
2030
2146
  }
2031
- var di = /* @__PURE__ */ new WeakSet();
2032
- function fi(e, t, n) {
2033
- if (di.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
2034
- di.add(e);
2147
+ var Ci = /* @__PURE__ */ new WeakSet();
2148
+ function wi(e, t, n) {
2149
+ if (Ci.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
2150
+ Ci.add(e);
2035
2151
  try {
2036
2152
  return n();
2037
2153
  } finally {
2038
- di.delete(e);
2154
+ Ci.delete(e);
2039
2155
  }
2040
2156
  }
2041
- function pi(e, t) {
2157
+ function Ti(e, t) {
2042
2158
  return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : e === "zoomLevel" ? t.getZoomLevelRef() : t.getMappingRef();
2043
2159
  }
2044
- function mi(e, t = {}, n = {}) {
2160
+ function Ei(e, t = {}, n = {}) {
2045
2161
  try {
2046
2162
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = 1, s = {
2047
2163
  ...n,
@@ -2051,38 +2167,38 @@ function mi(e, t = {}, n = {}) {
2051
2167
  let c = e + ":" + n, l = i.get(c);
2052
2168
  if (l) return l;
2053
2169
  let u = r.get(c);
2054
- u || (u = pi(e, s), r.set(c, u));
2170
+ u || (u = Ti(e, s), r.set(c, u));
2055
2171
  let d = "__scale_helper_" + o++, f = {
2056
2172
  codeName: d,
2057
2173
  dependency: u
2058
2174
  };
2059
- return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = ui(e, s), f;
2175
+ return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = Si(e, s), f;
2060
2176
  }
2061
- }, c = $r({
2177
+ }, c = di({
2062
2178
  forbidden: [],
2063
2179
  allowed: ["datum", "undefined"],
2064
2180
  globalvar: "globalObject",
2065
2181
  fieldvar: "datum",
2066
- functions: (e) => si(e, s)
2067
- })(Yr(e)), l = Function("datum", "globalObject", `"use strict";
2182
+ functions: (e) => yi(e, s)
2183
+ })(si(e)), l = Function("datum", "globalObject", `"use strict";
2068
2184
  try {
2069
2185
  return (${c.code});
2070
2186
  } catch (e) {
2071
2187
  throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
2072
- }`).bind(ai), u = (e) => l(e, t);
2073
- return u.fields = c.fields, u.globals = c.globals, u.code = c.code, u.scaleDependencies = Array.from(new Set(r.values())), u.zoomLevelResolutions = Array.from(a), u;
2188
+ }`).bind(_i), u = (e) => l(e, t);
2189
+ return u.createEvaluator = (e) => (t) => l(t, e), u.fields = c.fields, u.globals = c.globals, u.code = c.code, u.scaleDependencies = Array.from(new Set(r.values())), u.zoomLevelResolutions = Array.from(a), u;
2074
2190
  } catch (t) {
2075
2191
  throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
2076
2192
  }
2077
2193
  }
2078
- var hi = $r({
2194
+ var Di = di({
2079
2195
  forbidden: [],
2080
2196
  allowed: ["event"],
2081
2197
  globalvar: "globalObject"
2082
2198
  });
2083
- function gi(e) {
2199
+ function Oi(e) {
2084
2200
  try {
2085
- let t = hi(Yr(e));
2201
+ let t = Di(si(e));
2086
2202
  return Function("event", "globalObject", `"use strict";
2087
2203
  try {
2088
2204
  return !!(${t.code});
@@ -2095,7 +2211,7 @@ function gi(e) {
2095
2211
  }
2096
2212
  //#endregion
2097
2213
  //#region ../core/src/utils/interactionConfig.js
2098
- function _i(e) {
2214
+ function ki(e) {
2099
2215
  if (typeof e == "string") {
2100
2216
  let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
2101
2217
  if (!t) throw Error(`Invalid event type string: ${e}`);
@@ -2103,40 +2219,249 @@ function _i(e) {
2103
2219
  return r && (i.filter = r), i;
2104
2220
  } else return e;
2105
2221
  }
2106
- function vi(e) {
2107
- return e?.filter ? gi(e.filter) : () => !0;
2222
+ function Ai(e) {
2223
+ return e?.filter ? Oi(e.filter) : () => !0;
2108
2224
  }
2109
- function yi(e, t, n) {
2225
+ function ji(e, t, n) {
2110
2226
  if (!t.includes(e.type)) throw Error(n);
2111
2227
  return e;
2112
2228
  }
2113
2229
  //#endregion
2230
+ //#region ../core/src/selection/selectionPredicateTree.js
2231
+ function Mi(e, t) {
2232
+ if (!("test" in e) || !("ref" in e.test)) return e;
2233
+ let n = e.test.ref;
2234
+ if (!Object.hasOwn(t, n)) throw Error(`Unknown predicate "${n}" in unit view.`);
2235
+ return {
2236
+ ...e,
2237
+ test: t[n]
2238
+ };
2239
+ }
2240
+ function Ni(e) {
2241
+ let t = "test" in e ? e.test : {
2242
+ param: e.param,
2243
+ ...e.empty === void 0 ? {} : { empty: e.empty },
2244
+ ...e.project === void 0 ? {} : { project: e.project }
2245
+ }, n = (e) => {
2246
+ if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Selection predicate must be an object.");
2247
+ let t = e, r = [
2248
+ "param",
2249
+ "and",
2250
+ "or",
2251
+ "not"
2252
+ ].filter((e) => e in t);
2253
+ if (r.length !== 1) throw Error("Selection predicate must have exactly one operator.");
2254
+ let i = r[0];
2255
+ if (i === "param") {
2256
+ if (typeof t.param == "string") {
2257
+ if (Object.keys(t).some((e) => ![
2258
+ "param",
2259
+ "empty",
2260
+ "project"
2261
+ ].includes(e)) || typeof (t.empty ?? !0) != "boolean") throw Error("Invalid selection parameter predicate.");
2262
+ if (t.project !== void 0) {
2263
+ let e = t.project;
2264
+ if (!e || typeof e != "object" || Array.isArray(e) || Object.keys(e).length === 0 || Object.entries(e).some(([e, t]) => !["x", "y"].includes(e) || t !== e && t !== e + "2")) throw Error("Invalid interval selection projection.");
2265
+ }
2266
+ return {
2267
+ param: Gt(t.param),
2268
+ empty: t.empty ?? !0,
2269
+ ...t.project ? { project: { ...t.project } } : {}
2270
+ };
2271
+ }
2272
+ if (!t.param || typeof t.param != "object" || Object.keys(t.param).length !== 1 || !Array.isArray(t.param.or) || Object.keys(t).some((e) => !["param", "empty"].includes(e)) || typeof (t.empty ?? !0) != "boolean") throw Error("Invalid flat selection union.");
2273
+ if (t.param.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
2274
+ let e = Array.from(new Set(t.param.or.map(Gt))), n = e.map((e) => ({ selectionActive: e })), r = e.map((e, t) => ({ all: [{
2275
+ param: e,
2276
+ empty: !0
2277
+ }, n[t]] }));
2278
+ return { any: t.empty === !1 ? r : [...r, { not: { any: n } }] };
2279
+ }
2280
+ if (Object.keys(t).length !== 1) throw Error("Selection predicate operators cannot be mixed.");
2281
+ if (i === "not") return { not: n(t.not) };
2282
+ let a = t[i];
2283
+ if (!Array.isArray(a) || a.length === 0) throw Error(`Selection test "${i}" must be a nonempty array.`);
2284
+ let o = a.map(n);
2285
+ return i === "and" ? { all: o } : { any: o };
2286
+ };
2287
+ return n(t);
2288
+ }
2289
+ function Pi(e) {
2290
+ let t = /* @__PURE__ */ new Set(), n = (e) => {
2291
+ if ("param" in e) t.add(e.param);
2292
+ else if ("selectionActive" in e) t.add(typeof e.selectionActive == "string" ? e.selectionActive : e.selectionActive.param);
2293
+ else if ("not" in e) n(e.not);
2294
+ else for (let t of "all" in e ? e.all : e.any) n(t);
2295
+ };
2296
+ return n(e), Array.from(t);
2297
+ }
2298
+ function Fi(e) {
2299
+ let t = /* @__PURE__ */ new Map(), n = (e) => {
2300
+ if ("param" in e) t.set(e.param, { selectionActive: {
2301
+ param: e.param,
2302
+ type: e.type,
2303
+ components: e.projections?.map(({ component: e }) => e) ?? []
2304
+ } });
2305
+ else if ("selectionActive" in e) t.set(e.selectionActive.param, e);
2306
+ else if ("not" in e) n(e.not);
2307
+ else for (let t of "all" in e ? e.all : e.any) n(t);
2308
+ };
2309
+ return n(e), { all: [e, { any: Array.from(t.values()) }] };
2310
+ }
2311
+ function Ii(e) {
2312
+ if ("param" in e) return e.empty;
2313
+ if ("selectionActive" in e) return !1;
2314
+ if ("not" in e) return !Ii(e.not);
2315
+ let t = "all" in e ? e.all : e.any;
2316
+ return "all" in e ? t.every(Ii) : t.some(Ii);
2317
+ }
2318
+ function Li(e, t, n, r, i) {
2319
+ let a = (e) => {
2320
+ let t = n.findSelectionCapability?.(e);
2321
+ if (t) return t;
2322
+ let r = n.findValue(e);
2323
+ if (!r || ![
2324
+ "single",
2325
+ "multi",
2326
+ "interval"
2327
+ ].includes(r.type)) throw Error(`Selection parameter "${e}" was not found.`);
2328
+ return {
2329
+ type: r.type,
2330
+ components: r.type === "interval" ? Object.keys(r.intervals).map((e) => ({ component: e })) : []
2331
+ };
2332
+ }, o = t, s = (e) => {
2333
+ let t = o[e];
2334
+ if (t && "field" in t) return t.field;
2335
+ if (t && "condition" in t) return (Array.isArray(t.condition) ? t.condition : [t.condition]).find((e) => "field" in e)?.field;
2336
+ }, c = (e) => {
2337
+ if ("all" in e) return { all: e.all.map(c) };
2338
+ if ("any" in e) return { any: e.any.map(c) };
2339
+ if ("not" in e) return { not: c(e.not) };
2340
+ let t = "param" in e ? e.param : e.selectionActive, n = a(t);
2341
+ if ("selectionActive" in e) return { selectionActive: {
2342
+ param: t,
2343
+ type: n.type,
2344
+ components: n.components.map(({ component: e }) => e)
2345
+ } };
2346
+ if (e.project && n.type !== "interval") throw Error(`Selection "${t}" is not an interval selection; project is invalid.`);
2347
+ if (n.type !== "interval") return {
2348
+ param: t,
2349
+ type: n.type,
2350
+ empty: e.empty
2351
+ };
2352
+ let l = n.components.map(({ component: e }) => e);
2353
+ if (e.project && (Object.keys(e.project).length !== l.length || l.some((t) => !(t in e.project)))) throw Error(`Selection "${t}" project must cover its declared components: ${l.join(", ")}.`);
2354
+ let u = n.components.map(({ component: n, type: a }) => {
2355
+ let c = e.project?.[n] ?? n;
2356
+ if (![
2357
+ "x",
2358
+ "x2",
2359
+ "y",
2360
+ "y2"
2361
+ ].includes(c)) throw Error(`Selection "${t}" has unsupported component "${n}".`);
2362
+ let l = o[c];
2363
+ if (e.project && (!l || !("field" in l))) throw Error(`Selection "${t}" project target "${c}" must be an unconditional field encoding.`);
2364
+ let u = s(c);
2365
+ if (!u) throw Error(`Selection "${t}" has no field for "${c}".`);
2366
+ if (e.project) {
2367
+ let e = i?.(c) ?? ("type" in l ? l.type : void 0) ?? ("type" in o[n] ? o[n].type : void 0);
2368
+ if (![
2369
+ "quantitative",
2370
+ "index",
2371
+ "locus"
2372
+ ].includes(a) || e !== a) throw Error(`Selection "${t}" project target "${c}" must have matching quantitative, index, or locus type (${a} vs ${e}).`);
2373
+ }
2374
+ let d = n + "2", f = e.project ? void 0 : s(d);
2375
+ return {
2376
+ component: n,
2377
+ input: c,
2378
+ field: u,
2379
+ ...f && f !== u ? {
2380
+ secondaryInput: d,
2381
+ secondaryField: f,
2382
+ hitTest: r
2383
+ } : {}
2384
+ };
2385
+ });
2386
+ return {
2387
+ param: t,
2388
+ type: "interval",
2389
+ empty: e.empty,
2390
+ projections: u
2391
+ };
2392
+ };
2393
+ return c(e);
2394
+ }
2395
+ function Ri(e, t) {
2396
+ if ("all" in e || "any" in e) {
2397
+ let n = ("all" in e ? e.all : e.any).map((e) => Ri(e, t));
2398
+ return "all" in e ? (e) => n.every((t) => t(e)) : (e) => n.some((t) => t(e));
2399
+ }
2400
+ if ("not" in e) {
2401
+ let n = Ri(e.not, t);
2402
+ return (e) => !n(e);
2403
+ }
2404
+ if ("selectionActive" in e) {
2405
+ let { param: n } = e.selectionActive;
2406
+ return () => zi(t(n));
2407
+ }
2408
+ let { param: n, type: r, empty: i } = e;
2409
+ if (r === "single") return (e) => {
2410
+ let r = t(n);
2411
+ return r.uniqueId == null ? i : r.uniqueId === e[M];
2412
+ };
2413
+ if (r === "multi") return (e) => {
2414
+ let r = t(n);
2415
+ return r.data.size === 0 ? i : r.data.has(e[M]);
2416
+ };
2417
+ let a = e.projections.map((e) => ({
2418
+ ...e,
2419
+ read: tn(e.field),
2420
+ readSecondary: e.secondaryField ? tn(e.secondaryField) : void 0
2421
+ }));
2422
+ return (e) => {
2423
+ let r = t(n);
2424
+ if (!zi(r)) return i;
2425
+ for (let t of a) {
2426
+ let n = r.intervals[t.component], i = t.read(e), a = t.readSecondary?.(e), [o, s] = n;
2427
+ if (!(a === void 0 ? o <= i && i < s : t.hitTest === "endpoints" ? o <= i && i < s || o <= a && a < s : t.hitTest === "encloses" ? o <= Math.min(i, a) && Math.max(i, a) <= s : o < Math.max(i, a) && Math.min(i, a) < s)) return !1;
2428
+ }
2429
+ return !0;
2430
+ };
2431
+ }
2432
+ function zi(e) {
2433
+ if (e.type === "single") return e.uniqueId != null;
2434
+ if (e.type === "multi") return e.data.size !== 0;
2435
+ if (e.type === "interval") return Object.values(e.intervals).every((e) => !!e);
2436
+ throw Error(`Unsupported selection type: ${e.type}`);
2437
+ }
2438
+ //#endregion
2114
2439
  //#region ../core/src/selection/selection.js
2115
- function bi(e) {
2440
+ function Bi(e) {
2116
2441
  return {
2117
2442
  type: "single",
2118
2443
  datum: e,
2119
- uniqueId: e?.[j]
2444
+ uniqueId: e?.[M]
2120
2445
  };
2121
2446
  }
2122
- function xi(e) {
2447
+ function Vi(e) {
2123
2448
  return e ??= [], {
2124
2449
  type: "multi",
2125
- data: new Map(e.map((e) => [e[j], e]))
2450
+ data: new Map(e.map((e) => [e[M], e]))
2126
2451
  };
2127
2452
  }
2128
- function Si(e) {
2453
+ function Hi(e) {
2129
2454
  return {
2130
2455
  type: "interval",
2131
2456
  intervals: Object.fromEntries(e.map((e) => [e, null]))
2132
2457
  };
2133
2458
  }
2134
- function Ci(e, { add: t, remove: n, toggle: r }) {
2459
+ function Ui(e, { add: t, remove: n, toggle: r }) {
2135
2460
  let i = e.data;
2136
- for (let e of t ?? []) i.set(e[j], e);
2137
- for (let e of n ?? []) i.delete(e[j]);
2461
+ for (let e of t ?? []) i.set(e[M], e);
2462
+ for (let e of n ?? []) i.delete(e[M]);
2138
2463
  for (let e of r ?? []) {
2139
- let t = e[j];
2464
+ let t = e[M];
2140
2465
  i.has(t) ? i.delete(t) : i.set(t, e);
2141
2466
  }
2142
2467
  return {
@@ -2144,118 +2469,78 @@ function Ci(e, { add: t, remove: n, toggle: r }) {
2144
2469
  data: i
2145
2470
  };
2146
2471
  }
2147
- function wi(e, t) {
2148
- let n = !!(e.empty ?? !0), r = Nt(e.param), i = e.fields ?? {};
2149
- if (ji(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(j)}]`;
2150
- if (Mi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(j)}])`;
2151
- if (Q(t)) {
2152
- let a = Object.keys(t.intervals), o = Object.keys(i).filter(ha);
2472
+ function Wi(e, t) {
2473
+ let n = !!(e.empty ?? !0), r = Gt(e.param), i = e.fields ?? {};
2474
+ if (Yi(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(M)}]`;
2475
+ if (Xi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(M)}])`;
2476
+ if (Ji(t)) {
2477
+ let a = Object.keys(t.intervals), o = Object.keys(i).filter(Pa);
2153
2478
  if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
2154
2479
  if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
2155
2480
  let s = (e) => `datum[${JSON.stringify(e)}]`;
2156
2481
  return a.map((e) => {
2157
- let t = Ca(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2482
+ 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]`;
2158
2483
  return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
2159
2484
  }).join(" && ");
2160
2485
  } else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
2161
2486
  }
2162
- function Ti(e) {
2163
- if (!("param" in e) && !("test" in e)) return;
2164
- let { param: t, empty: n = !0 } = "test" in e ? e.test : e;
2165
- if (typeof t == "string") return {
2166
- params: [Nt(t)],
2167
- empty: n,
2168
- singleParam: !0
2169
- };
2170
- if (t.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
2171
- return {
2172
- params: Array.from(new Set(t.or.map(Nt))),
2173
- empty: n,
2174
- singleParam: !1
2175
- };
2176
- }
2177
- function Ei(e) {
2178
- return e?.selection?.params ?? [];
2179
- }
2180
- function Di(e) {
2181
- let t = /* @__PURE__ */ new Map();
2182
- for (let n of Object.values(e)) for (let { predicate: e } of n.branches) {
2183
- let n = e.selection;
2184
- if (n) for (let e of n.params) t.set(e, t.get(e) || !n.singleParam);
2185
- }
2186
- return t;
2487
+ function Gi(e) {
2488
+ if (!(!("param" in e) && !("test" in e))) return Ni(e);
2187
2489
  }
2188
- function Oi(e, t) {
2189
- if (ji(t)) return `${e}.uniqueId == null`;
2190
- if (Mi(t)) return `${e}.data.size == 0`;
2191
- if (Q(t)) {
2192
- let n = Object.keys(t.intervals);
2193
- return n.length == 0 ? "true" : `!(${n.map((t) => `${e}.intervals.${t}`).join(" || ")})`;
2194
- }
2195
- throw Error(`Unsupported selection type: ${t.type}`);
2196
- }
2197
- function ki(e, t, n, r) {
2198
- if (ji(t)) return `${e}.uniqueId != null && ${e}.uniqueId === datum[${JSON.stringify(j)}]`;
2199
- if (Mi(t)) return `${e}.data.size != 0 && mapHasKey(${e}.data, datum[${JSON.stringify(j)}])`;
2200
- if (Q(t)) {
2201
- let i = Object.keys(t.intervals);
2202
- if (i.length == 0) return "false";
2203
- let a = (e) => `datum[${JSON.stringify(e)}]`, o = i.map((t) => {
2204
- let i = Ca(t), o = n[t], s = n[i] ?? n[t], c = `${e}.intervals.${t}`;
2205
- return `(!${c} || ${r == "endpoints" ? `((${c}[0] <= ${a(o)} && ${a(o)} <= ${c}[1]) || (${c}[0] <= ${a(s)} && ${a(s)} <= ${c}[1]))` : r == "encloses" ? `(${c}[0] <= ${a(o)} && ${a(s)} <= ${c}[1])` : `(${c}[0] <= ${a(s)} && ${a(o)} <= ${c}[1])`})`;
2206
- });
2207
- return `!!(${i.map((t) => `${e}.intervals.${t}`).join(" || ")}) && (${o.join(" && ")})`;
2208
- }
2209
- throw Error(`Unsupported selection type: ${t.type}`);
2490
+ function Ki(e) {
2491
+ return e?.selection ? Pi(e.selection) : [];
2210
2492
  }
2211
- function Ai(e, t, n = "intersects") {
2212
- let r = `(${e.map(({ param: e, selection: t, fields: r }) => ki(e, t, r, n)).join(" || ")})`;
2213
- return t ? `((${e.map(({ param: e, selection: t }) => Oi(e, t)).join(" && ")}) || ${r})` : r;
2493
+ function qi(e) {
2494
+ let t = Object.values(e).flatMap((e) => e.branches.flatMap(({ predicate: e }) => e.selection ? [e.selection] : [])), n = /* @__PURE__ */ new Set();
2495
+ return t.filter((e) => {
2496
+ let t = JSON.stringify(e);
2497
+ return n.has(t) ? !1 : (n.add(t), !0);
2498
+ });
2214
2499
  }
2215
- function Q(e) {
2500
+ function Ji(e) {
2216
2501
  return e.type === "interval";
2217
2502
  }
2218
- function ji(e) {
2503
+ function Yi(e) {
2219
2504
  return e.type === "single";
2220
2505
  }
2221
- function Mi(e) {
2506
+ function Xi(e) {
2222
2507
  return e.type === "multi";
2223
2508
  }
2224
- function Ni(e) {
2509
+ function Zi(e) {
2225
2510
  let t = typeof e == "string" ? { type: e } : { ...e };
2226
- return t.on = t.on ? _i(t.on) : Pi(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : _i(t.clear), Pi(t) && t.on.type === "click" && (t.toggle = !0), t;
2511
+ return t.on = t.on ? ki(t.on) : Qi(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : ki(t.clear), Qi(t) && t.on.type === "click" && t.toggle === void 0 && (t.toggle = !0), t;
2227
2512
  }
2228
- function Pi(e) {
2513
+ function Qi(e) {
2229
2514
  return e && e.type == "point";
2230
2515
  }
2231
- function Fi(e) {
2516
+ function $i(e) {
2232
2517
  return e && e.type == "interval";
2233
2518
  }
2234
- function Ii(e) {
2235
- if (ji(e)) return e.uniqueId != null;
2236
- if (Mi(e)) return e.data.size > 0;
2237
- if (Q(e)) return Li(e);
2519
+ function ea(e) {
2520
+ if (Yi(e)) return e.uniqueId != null;
2521
+ if (Xi(e)) return e.data.size > 0;
2522
+ if (Ji(e)) return ta(e);
2238
2523
  throw Error(`Unsupported selection type: ${e.type}`);
2239
2524
  }
2240
- function Li(e) {
2525
+ function ta(e) {
2241
2526
  return Object.values(e.intervals).some((e) => e && e.length === 2);
2242
2527
  }
2243
- function Ri(e, t) {
2528
+ function na(e, t) {
2244
2529
  return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
2245
2530
  }
2246
2531
  //#endregion
2247
2532
  //#region ../core/src/encoder/accessor.js
2248
- function zi(e, t, n) {
2533
+ function ra(e, t, n) {
2249
2534
  if (!e) throw Error("Cannot create an accessor without a channel.");
2250
2535
  function r(n) {
2251
2536
  let r = n;
2252
- return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Hi(t), r.scaleChannel = ((ra(t) && t.resolutionChannel) ?? (Da(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Ui({
2537
+ return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = oa(t), r.scaleChannel = ((Sa(t) && t.resolutionChannel) ?? (Ka(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = sa({
2253
2538
  scaleChannel: r.scaleChannel,
2254
- source: Vi(t)
2539
+ source: aa(t)
2255
2540
  }).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
2256
2541
  }
2257
2542
  function i(e) {
2258
- if (A(e)) {
2543
+ if (j(e)) {
2259
2544
  let t = r(n.createExpression(e.expr));
2260
2545
  if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
2261
2546
  return t;
@@ -2264,120 +2549,89 @@ function zi(e, t, n) {
2264
2549
  return r(() => t);
2265
2550
  }
2266
2551
  }
2267
- if ($(t)) try {
2268
- return r(Ut(t.field));
2552
+ if (ba(t)) try {
2553
+ return r(tn(t.field));
2269
2554
  } catch (e) {
2270
2555
  throw Error(`Invalid field definition: ${e.message}`, { cause: e });
2271
2556
  }
2272
- else if (ca(t)) return r(n.createExpression(t.expr));
2273
- else if (na(t)) return i(t.datum);
2274
- else if (ta(t)) return i(t.value);
2557
+ else if (Da(t)) return r(n.createExpression(t.expr));
2558
+ else if (xa(t)) return i(t.datum);
2559
+ else if (ya(t)) return i(t.value);
2275
2560
  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".`);
2276
2561
  }
2277
- function Bi(e) {
2562
+ function ia(e) {
2278
2563
  return e.scaleChannel !== void 0;
2279
2564
  }
2280
- function Vi(e) {
2281
- if ($(e)) return {
2565
+ function aa(e) {
2566
+ if (ba(e)) return {
2282
2567
  kind: "field",
2283
2568
  value: e.field
2284
2569
  };
2285
- if (ca(e)) return {
2570
+ if (Da(e)) return {
2286
2571
  kind: "expr",
2287
2572
  value: e.expr
2288
2573
  };
2289
- if (na(e)) return {
2574
+ if (xa(e)) return {
2290
2575
  kind: "datum",
2291
2576
  value: e.datum
2292
2577
  };
2293
- if (ta(e)) return {
2578
+ if (ya(e)) return {
2294
2579
  kind: "value",
2295
2580
  value: e.value
2296
2581
  };
2297
2582
  throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
2298
2583
  }
2299
- function Hi(e) {
2300
- let t = Vi(e);
2301
- return t.kind === "datum" || t.kind === "value" ? "constant|" + Ki(t.value) : t.kind + "|" + Gi(t);
2584
+ function oa(e) {
2585
+ let t = aa(e);
2586
+ return t.kind === "datum" || t.kind === "value" ? "constant|" + ua(t.value) : t.kind + "|" + la(t);
2302
2587
  }
2303
- function Ui({ scaleChannel: e, source: t, type: n }) {
2588
+ function sa({ scaleChannel: e, source: t, type: n }) {
2304
2589
  if (!e) throw Error("Cannot build a domain key without a scale channel.");
2305
- let r = e + "|" + t.kind + "|" + Gi(t);
2590
+ let r = e + "|" + t.kind + "|" + la(t);
2306
2591
  return {
2307
2592
  domainKeyBase: r,
2308
2593
  domainKey: n ? n + "|" + r : void 0
2309
2594
  };
2310
2595
  }
2311
- function Wi(e, t) {
2312
- let { domainKey: n, domainKeyBase: r } = Ui({
2596
+ function ca(e, t) {
2597
+ let { domainKey: n, domainKeyBase: r } = sa({
2313
2598
  scaleChannel: e.scaleChannel,
2314
- source: Vi(e.channelDef),
2599
+ source: aa(e.channelDef),
2315
2600
  type: t
2316
2601
  });
2317
2602
  if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
2318
2603
  return e.domainKeyBase = r, e.domainKey = n, n;
2319
2604
  }
2320
- function Gi(e) {
2605
+ function la(e) {
2321
2606
  switch (e.kind) {
2322
2607
  case "field":
2323
2608
  case "expr": return e.value;
2324
2609
  case "datum":
2325
- case "value": return Ki(e.value);
2610
+ case "value": return ua(e.value);
2326
2611
  default: throw Error("Unknown domain key source.");
2327
2612
  }
2328
2613
  }
2329
- function Ki(e) {
2330
- return A(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
2614
+ function ua(e) {
2615
+ return j(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
2331
2616
  }
2332
2617
  //#endregion
2333
2618
  //#region ../core/src/encoder/encoder.js
2334
- function qi(e, t, n, r = "intersects") {
2335
- let i, a = Rt(!1), o = () => {
2336
- if (i) return i;
2337
- if (e.singleParam && !n.findValue(e.params[0])) return a;
2338
- let o = e.params.map((r) => {
2339
- let i = n.findValue(r);
2340
- if (!i) throw Error(`Selection parameter "${r}" was not found.`);
2341
- let a = {};
2342
- if (Q(i)) for (let n of Object.keys(i.intervals)) {
2343
- let i = e.singleParam ? [n] : [n, Ca(n)];
2344
- for (let e of i) {
2345
- let n = t[e];
2346
- if ($(n)) a[e] = n.field;
2347
- else if (n && "condition" in n) {
2348
- let t = n.condition, r = (Array.isArray(t) ? t : [t]).find($);
2349
- $(r) && (a[e] = r.field);
2350
- }
2351
- }
2352
- if (!a[n]) throw Error(`Selection "${r}" has an interval for "${n}" channel, but could not find a fieldDef: ${JSON.stringify(t[n])}`);
2353
- }
2354
- return {
2355
- param: r,
2356
- selection: i,
2357
- fields: a
2358
- };
2359
- }), s = e.singleParam ? wi({
2360
- type: "filter",
2361
- param: e.params[0],
2362
- fields: o[0].fields,
2363
- empty: e.empty
2364
- }, o[0].selection) : Ai(o, e.empty, r);
2365
- return i = n.createExpression(s), i;
2366
- };
2367
- return Object.assign((e) => o()(e), { selection: e });
2619
+ function da(e, t, n, r = "intersects", i) {
2620
+ let a, o, s = Pi(e), c = () => (a ??= Li(e, t, n, r, i), a);
2621
+ return s.every((e) => n.findValue(e)) && c(), Object.defineProperty((e) => s.some((e) => !n.findValue(e)) ? !1 : (o ??= Ri(c(), (e) => n.findValue(e)), o(e)), "selection", { get: c });
2368
2622
  }
2369
- function Ji(e, t, n, r, i = "intersects") {
2370
- let a = la(t) || ua(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], o = [...a, t], s = o.map((t, s) => {
2371
- let c = a[s], l = zi(e, t, r), u = c ? Ti(c) : void 0;
2623
+ function fa(e, t, n, r, i = "intersects", a) {
2624
+ let o = Oa(t) || ka(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], s = [...o, t], c = s.map((t, c) => {
2625
+ let l = o[c], u = ra(e, t, r), d = l ? Gi(l) : void 0;
2372
2626
  return {
2373
- accessor: l,
2374
- predicate: u ? qi(u, n, r, i) : Rt(s === o.length - 1)
2627
+ accessor: u,
2628
+ predicate: d ? da(d, n, r, i, a) : Xt(c === s.length - 1)
2375
2629
  };
2376
2630
  });
2377
- if (s.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
2378
- return s;
2631
+ if (c.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
2632
+ return c;
2379
2633
  }
2380
- function Yi(e, t) {
2634
+ function pa(e, t) {
2381
2635
  let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
2382
2636
  let r = e.getScaleResolution(t);
2383
2637
  e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
@@ -2385,25 +2639,25 @@ function Yi(e, t) {
2385
2639
  for (let [a, o] of Object.entries(t)) {
2386
2640
  if (!o) continue;
2387
2641
  let s = a;
2388
- Xi(s) || (n[s] = $i(Ji(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode), r, i));
2642
+ ma(s) || (n[s] = _a(fa(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode, (t) => e.getScaleResolution(t)?.type), r, i));
2389
2643
  }
2390
2644
  return n;
2391
2645
  }
2392
- function Xi(e) {
2646
+ function ma(e) {
2393
2647
  return e === "key" || e === "search" || e === "tooltip" || e === "order";
2394
2648
  }
2395
- function Zi(e) {
2649
+ function ha(e) {
2396
2650
  return e.branches.map((e) => e.accessor);
2397
2651
  }
2398
- function Qi(e) {
2652
+ function ga(e) {
2399
2653
  return e.branches.find((e) => !e.accessor.constant)?.accessor;
2400
2654
  }
2401
- function $i(e, t, n) {
2655
+ function _a(e, t, n) {
2402
2656
  if (e.length === 1) {
2403
- let r = ea(e[0].accessor, t, n);
2657
+ let r = va(e[0].accessor, t, n);
2404
2658
  return Object.assign(r, { branches: e });
2405
2659
  }
2406
- let r = e.map((e) => e.predicate), i = e.map((e) => ea(e.accessor, t, n)), a = Object.assign((e) => {
2660
+ let r = e.map((e) => e.predicate), i = e.map((e) => va(e.accessor, t, n)), a = Object.assign((e) => {
2407
2661
  for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
2408
2662
  }, {
2409
2663
  constant: !1,
@@ -2415,7 +2669,7 @@ function $i(e, t, n) {
2415
2669
  get: () => i.find((e) => e.scale)?.scale
2416
2670
  });
2417
2671
  }
2418
- function ea(e, t, n) {
2672
+ function va(e, t, n) {
2419
2673
  let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
2420
2674
  if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
2421
2675
  let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
@@ -2423,7 +2677,7 @@ function ea(e, t, n) {
2423
2677
  constant: e.constant,
2424
2678
  branches: [{
2425
2679
  accessor: e,
2426
- predicate: Rt(!0)
2680
+ predicate: Xt(!0)
2427
2681
  }],
2428
2682
  channelDef: a
2429
2683
  });
@@ -2431,91 +2685,91 @@ function ea(e, t, n) {
2431
2685
  o = e, s.scale = e;
2432
2686
  }), s;
2433
2687
  }
2434
- function ta(e) {
2688
+ function ya(e) {
2435
2689
  return e && "value" in e;
2436
2690
  }
2437
- function $(e) {
2691
+ function ba(e) {
2438
2692
  return e && "field" in e;
2439
2693
  }
2440
- function na(e) {
2694
+ function xa(e) {
2441
2695
  return e && "datum" in e;
2442
2696
  }
2443
- function ra(e) {
2444
- return $(e) || na(e) || ca(e) || sa(e);
2697
+ function Sa(e) {
2698
+ return ba(e) || xa(e) || Da(e) || Ea(e);
2445
2699
  }
2446
- function ia(e) {
2447
- if (ua(e)) {
2700
+ function Ca(e) {
2701
+ if (ka(e)) {
2448
2702
  let t = e.condition;
2449
- return (Array.isArray(t) ? t : [t]).find((e) => ra(e));
2450
- } else if (ra(e)) return e;
2703
+ return (Array.isArray(t) ? t : [t]).find((e) => Sa(e));
2704
+ } else if (Sa(e)) return e;
2451
2705
  }
2452
- function aa(e) {
2453
- let t = e && ia(e);
2706
+ function wa(e) {
2707
+ let t = e && Ca(e);
2454
2708
  return t != null && t.type != "quantitative" && t.scale !== null;
2455
2709
  }
2456
- function oa(e, t) {
2710
+ function Ta(e, t) {
2457
2711
  let n = e.mark.encoding[t];
2458
2712
  if (Array.isArray(n)) throw Error("Not a channel def with scale!");
2459
2713
  {
2460
- let e = ia(n);
2714
+ let e = Ca(n);
2461
2715
  if (e) return e;
2462
2716
  }
2463
2717
  throw Error("Not a channel def with scale!");
2464
2718
  }
2465
- function sa(e) {
2719
+ function Ea(e) {
2466
2720
  return e && "chrom" in e;
2467
2721
  }
2468
- function ca(e) {
2722
+ function Da(e) {
2469
2723
  return e && "expr" in e;
2470
2724
  }
2471
- function la(e) {
2472
- return ($(e) || na(e)) && "condition" in e;
2725
+ function Oa(e) {
2726
+ return (ba(e) || xa(e)) && "condition" in e;
2473
2727
  }
2474
- function ua(e) {
2475
- return ta(e) && "condition" in e;
2728
+ function ka(e) {
2729
+ return ya(e) && "condition" in e;
2476
2730
  }
2477
- var da = ["x", "y"], fa = ["x2", "y2"], pa = ["xOffset", "yOffset"], ma = [...da, ...fa];
2478
- function ha(e) {
2479
- return da.includes(e);
2731
+ var Aa = ["x", "y"], ja = ["x2", "y2"], Ma = ["xOffset", "yOffset"], Na = [...Aa, ...ja];
2732
+ function Pa(e) {
2733
+ return Aa.includes(e);
2480
2734
  }
2481
- function ga(e) {
2482
- return ma.includes(e);
2735
+ function Fa(e) {
2736
+ return Na.includes(e);
2483
2737
  }
2484
- function _a(e) {
2485
- return pa.includes(e);
2738
+ function Ia(e) {
2739
+ return Ma.includes(e);
2486
2740
  }
2487
- function va(e) {
2488
- return wa(e) == "x" ? "xOffset" : "yOffset";
2741
+ function La(e) {
2742
+ return Ua(e) == "x" ? "xOffset" : "yOffset";
2489
2743
  }
2490
- function ya(e, t, n) {
2744
+ function Ra(e, t, n) {
2491
2745
  return t ?? (n ? 0 : e);
2492
2746
  }
2493
- var ba = {
2747
+ var za = {
2494
2748
  x: "x2",
2495
2749
  y: "y2"
2496
- }, xa = Object.fromEntries(Object.entries(ba).map((e) => [e[1], e[0]]));
2497
- function Sa(e) {
2498
- return e in xa;
2750
+ }, Ba = Object.fromEntries(Object.entries(za).map((e) => [e[1], e[0]]));
2751
+ function Va(e) {
2752
+ return e in Ba;
2499
2753
  }
2500
- function Ca(e) {
2501
- let t = ba[e];
2754
+ function Ha(e) {
2755
+ let t = za[e];
2502
2756
  if (t) return t;
2503
2757
  throw Error(`${e} has no secondary channel!`);
2504
2758
  }
2505
- function wa(e) {
2506
- return xa[e] ?? e;
2759
+ function Ua(e) {
2760
+ return Ba[e] ?? e;
2507
2761
  }
2508
- function Ta(e) {
2762
+ function Wa(e) {
2509
2763
  return [
2510
2764
  "color",
2511
2765
  "fill",
2512
2766
  "stroke"
2513
- ].includes(wa(e));
2767
+ ].includes(Ua(e));
2514
2768
  }
2515
- function Ea(e) {
2769
+ function Ga(e) {
2516
2770
  return ["shape", "direction"].includes(e);
2517
2771
  }
2518
- function Da(e) {
2772
+ function Ka(e) {
2519
2773
  return [
2520
2774
  "x",
2521
2775
  "y",
@@ -2539,7 +2793,7 @@ function Da(e) {
2539
2793
  "sample"
2540
2794
  ].includes(e);
2541
2795
  }
2542
- function Oa(e) {
2796
+ function qa(e) {
2543
2797
  switch (e) {
2544
2798
  case "shape": return [
2545
2799
  "circle",
@@ -2557,13 +2811,17 @@ function Oa(e) {
2557
2811
  "x",
2558
2812
  "+"
2559
2813
  ];
2560
- case "direction": return ["forward", "reverse"];
2814
+ case "direction": return [
2815
+ "forward",
2816
+ "reverse",
2817
+ "both"
2818
+ ];
2561
2819
  default:
2562
2820
  }
2563
2821
  }
2564
- function ka(e) {
2565
- if (!Ea(e)) throw Error("Not a discrete channel: " + e);
2566
- let t = new Map(Oa(e).map((e, t) => [e, t]));
2822
+ function Ja(e) {
2823
+ if (!Ga(e)) throw Error("Not a discrete channel: " + e);
2824
+ let t = new Map(qa(e).map((e, t) => [e, t]));
2567
2825
  return (n) => {
2568
2826
  let r = t.get(n);
2569
2827
  if (r !== void 0) return r;
@@ -2572,16 +2830,16 @@ function ka(e) {
2572
2830
  }
2573
2831
  //#endregion
2574
2832
  //#region ../core/src/utils/arrayUtils.js
2575
- function Aa(e, t) {
2833
+ function Ya(e, t) {
2576
2834
  return e.length == t.length && e.every((n, r) => e[r] === t[r]);
2577
2835
  }
2578
- function ja(e) {
2836
+ function Xa(e) {
2579
2837
  return Array.isArray(e) ? e : e === void 0 ? [] : [e];
2580
2838
  }
2581
- function Ma(e) {
2839
+ function Za(e) {
2582
2840
  return e[e.length - 1];
2583
2841
  }
2584
- function Na(e, t, n) {
2842
+ function Qa(e, t, n) {
2585
2843
  if (t < 0 || t >= e.length) throw Error("Source index out of range.");
2586
2844
  if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
2587
2845
  let [r] = e.splice(t, 1);
@@ -2589,7 +2847,7 @@ function Na(e, t, n) {
2589
2847
  }
2590
2848
  //#endregion
2591
2849
  //#region ../core/src/view/renderingContext/clipOptions.js
2592
- function Pa(e) {
2850
+ function $a(e) {
2593
2851
  if (e.clip) return e.clip;
2594
2852
  if (e.clipRect) return {
2595
2853
  rect: e.clipRect,
@@ -2597,36 +2855,36 @@ function Pa(e) {
2597
2855
  clipY: !0
2598
2856
  };
2599
2857
  }
2600
- function Fa(e, t) {
2858
+ function eo(e, t) {
2601
2859
  return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
2602
2860
  }
2603
- function Ia(e, t, n) {
2861
+ function $(e, t, n) {
2604
2862
  return t || n ? {
2605
2863
  rect: e,
2606
2864
  clipX: t,
2607
2865
  clipY: n
2608
2866
  } : void 0;
2609
2867
  }
2610
- function La(e, t) {
2868
+ function to(e, t) {
2611
2869
  return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
2612
2870
  }
2613
- function Ra(e, t) {
2871
+ function no(e, t) {
2614
2872
  if (!e) return t;
2615
2873
  if (!t) return e;
2616
2874
  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;
2617
- return Ia(e.rect.modify({
2875
+ return $(e.rect.modify({
2618
2876
  x: () => i.x,
2619
2877
  y: () => a.y,
2620
2878
  width: () => i.width,
2621
2879
  height: () => a.height
2622
2880
  }), n, r);
2623
2881
  }
2624
- function za(e, t) {
2625
- if (e === !0) return Ia(t, !0, !0);
2626
- if (e === "x") return Ia(t, !0, !1);
2627
- if (e === "y") return Ia(t, !1, !0);
2882
+ function ro(e, t) {
2883
+ if (e === !0) return $(t, !0, !0);
2884
+ if (e === "x") return $(t, !0, !1);
2885
+ if (e === "y") return $(t, !1, !0);
2628
2886
  }
2629
- function Ba(e) {
2887
+ function io(e) {
2630
2888
  let t = e.mark;
2631
2889
  if (t) {
2632
2890
  let e = t.properties.clip;
@@ -2648,8 +2906,8 @@ function Ba(e) {
2648
2906
  clipY: n && i
2649
2907
  };
2650
2908
  }
2651
- function Va(e, t, n) {
2652
- if (t !== "never") return Ra(e, za(t, n));
2909
+ function ao(e, t, n) {
2910
+ if (t !== "never") return no(e, ro(t, n));
2653
2911
  }
2654
2912
  //#endregion
2655
- export { ji as $, we as $t, aa as A, jt as At, Bi as B, Et as Bt, Da as C, b as Cn, Ht as Ct, Ea as D, Pt as Dt, na as E, Ft as Et, ta as F, kt as Ft, bi as G, S as Gt, Di as H, bt as Ht, da as I, Ot as It, Q as J, Be as Jt, Ei as K, E as Kt, ya as L, Ct as Lt, ga as M, Rt as Mt, ha as N, Lt as Nt, ca as O, A as Ot, Sa as P, Nt as Pt, Ii as Q, Ue as Qt, zi as R, Tt as Rt, ra as S, y as Sn, Ut as St, Ta as T, zt as Tt, Si as U, st as Ut, Ni as V, yt as Vt, xi as W, rt as Wt, Mi as X, Ze as Xt, Fi as Y, C as Yt, Pi as Z, We as Zt, Zi as _, f as _n, $t as _t, Ba as a, de as an, vi as at, wa as b, Se as bn, Yt as bt, ja as c, ge as cn, mi as ct, Aa as d, d as dn, on as dt, Te as en, wi as et, Yi as f, x as fn, an as ft, ka as g, ie as gn, en as gt, oa as h, re as hn, tn as ht, Ia as i, ce as in, _i as it, _a as j, At as jt, $ as k, Mt as kt, Na as l, le as ln, ni as lt, ia as m, ne as mn, nn as mt, Fa as n, xe as nn, Ri as nt, Pa as o, o as on, yi as ot, qi as p, ye as pn, rn as pt, Li as q, Ee as qt, Ra as r, t as rn, Ci as rt, Va as s, u as sn, oi as st, La as t, Ce as tn, Ti as tt, Ma as u, _e as un, ti as ut, Qi as v, be as vn, Qt as vt, sa as w, oe as wn, j as wt, Ca as x, v as xn, N as xt, va as y, s as yn, Xt as yt, Wi as z, Dt as zt };
2913
+ export { Yi as $, Qe as $t, wa as A, y as An, Zt as At, ia as B, Vt as Bt, Ka as C, te as Cn, dn as Ct, Ga as D, xe as Dn, tn as Dt, xa as E, f as En, P as Et, ya as F, Ut as Ft, Bi as G, Rt as Gt, qi as H, Ft as Ht, Aa as I, Ht as It, Ji as J, yt as Jt, Ki as K, jt as Kt, Ra as L, Xt as Lt, Fa as M, b as Mn, Kt as Mt, Pa as N, oe as Nn, j as Nt, Da as O, s as On, en as Ot, Va as P, Wt as Pt, ea as Q, w as Qt, ra as R, Yt as Rt, Sa as S, be as Sn, fn as St, Wa as T, re as Tn, cn as Tt, Hi as U, Lt as Ut, Zi as V, Bt as Vt, Vi as W, zt as Wt, Xi as X, S as Xt, $i as Y, ht as Yt, Qi as Z, D as Zt, ha as _, _e as _n, _n as _t, io as a, Re as an, Mi as at, Ua as b, d as bn, mn as bt, Xa as c, Fe as cn, Ii as ct, Ya as d, Se as dn, ji as dt, C as en, Wi as et, pa as f, t as fn, vi as ft, Ja as g, u as gn, vn as gt, Ta as h, o as hn, pi as ht, $ as i, Le as in, Fi as it, Ia as j, ae as jn, qt as jt, ba as k, Ce as kn, M as kt, Qa as l, Ne as ln, ki as lt, Ca as m, de as mn, mi as mt, eo as n, nt as nn, na as nt, $a as o, Ie as on, Pi as ot, da as p, ce as pn, Ei as pt, ta as q, Mt as qt, no as r, tt as rn, Ui as rt, ao as s, Pe as sn, Ni as st, to as t, lt as tn, Gi as tt, Za as u, we as un, Ai as ut, ga as v, le as vn, gn as vt, Ea as w, ne as wn, ln as wt, Ha as x, x as xn, pn as xt, La as y, ve as yn, hn as yt, ca as z, Gt as zt };