@marimo-team/islands 0.13.1-dev10 → 0.13.1-dev12

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 (68) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DSI6Nb0p.js → ConnectedDataExplorerComponent-CnxWYOcC.js} +681 -692
  2. package/dist/{VegaLite-DLUJMEwy.js → VegaLite-CuwDXo4M.js} +3 -3
  3. package/dist/{_baseUniq-Cv1yqoVo.js → _baseUniq-BLJi-Xsw.js} +1 -1
  4. package/dist/{any-language-editor-BUCSiWjm.js → any-language-editor-ftkve_yb.js} +13 -13
  5. package/dist/{architectureDiagram-IEHRJDOE-CzeJpOjN.js → architectureDiagram-IEHRJDOE-nfy1tnGn.js} +5 -5
  6. package/dist/{blockDiagram-JOT3LUYC-CNvC93ie.js → blockDiagram-JOT3LUYC-Rz2YXzET.js} +4 -4
  7. package/dist/{c4Diagram-VJAJSXHY-BrPUP2yb.js → c4Diagram-VJAJSXHY-CHOCh5Bj.js} +2 -2
  8. package/dist/{channel-C_vlHCWi.js → channel-vBAcnuCL.js} +1 -1
  9. package/dist/{chart-spec-DodVBB7q.js → chart-spec-Bs-fVHF7.js} +1 -1
  10. package/dist/{chunk-4BMEZGHF-BgiSp6UT.js → chunk-4BMEZGHF-o72Z80qY.js} +1 -1
  11. package/dist/{chunk-A2AXSNBT-CHu1pXBf.js → chunk-A2AXSNBT-DXDsTTDo.js} +2 -2
  12. package/dist/{chunk-AEK57VVT-AF6egTwd.js → chunk-AEK57VVT-B8374lZu.js} +2 -2
  13. package/dist/{chunk-D6G4REZN-B-sZc8II.js → chunk-D6G4REZN-Bi_RA34a.js} +1 -1
  14. package/dist/{chunk-RZ5BOZE2-BdqnUm-E.js → chunk-RZ5BOZE2-q00NPNZZ.js} +1 -1
  15. package/dist/{chunk-XZIHB7SX-wiEV20IA.js → chunk-XZIHB7SX-CKm2wsLx.js} +1 -1
  16. package/dist/{classDiagram-GIVACNV2-DRD2q3YH.js → classDiagram-GIVACNV2-B2Widd0F.js} +2 -2
  17. package/dist/{classDiagram-v2-COTLJTTW-DRD2q3YH.js → classDiagram-v2-COTLJTTW-B2Widd0F.js} +2 -2
  18. package/dist/{clone-Biv57VdH.js → clone-CN2Ng09t.js} +1 -1
  19. package/dist/{dagre-OKDRZEBW-C80qr7Jd.js → dagre-OKDRZEBW-B9iE2FwA.js} +6 -6
  20. package/dist/{data-editor-r0CUx26I.js → data-editor-DJEFFMh9.js} +1 -1
  21. package/dist/{diagram-SSKATNLV-BfQJo9QB.js → diagram-SSKATNLV-B0OOdLBC.js} +3 -3
  22. package/dist/{diagram-VNBRO52H-Cwdy6o_o.js → diagram-VNBRO52H-BT5L57AA.js} +3 -3
  23. package/dist/{erDiagram-Q7BY3M3F-DPeXmak3.js → erDiagram-Q7BY3M3F-CcF_aY5i.js} +3 -3
  24. package/dist/{flowDiagram-4HSFHLVR-fHA9Wk1n.js → flowDiagram-4HSFHLVR-C6tHbb5c.js} +3 -3
  25. package/dist/{ganttDiagram-APWFNJXF-DTNRdzcW.js → ganttDiagram-APWFNJXF-hsBW7CeG.js} +4 -4
  26. package/dist/{gitGraphDiagram-7IBYFJ6S-B-yKaezk.js → gitGraphDiagram-7IBYFJ6S-CpAMIazU.js} +4 -4
  27. package/dist/{graph-D7esYp8d.js → graph-BY-B2kaR.js} +3 -3
  28. package/dist/{index-y2Wb5pjK.js → index-828EVGun.js} +1 -1
  29. package/dist/{index-CSTQ9Zxr.js → index-B-SaAukH.js} +1 -1
  30. package/dist/{index-Dhs8Z8Ox.js → index-BJITPBWS.js} +1 -1
  31. package/dist/{index-D-6kg4xq.js → index-BNat36mT.js} +1 -1
  32. package/dist/{index-BoUl1gtv.js → index-B_x5RQAM.js} +1 -1
  33. package/dist/{index-ff618Jz7.js → index-BbsI8lMP.js} +1 -1
  34. package/dist/{index-B4H9h8nk.js → index-BeD0O_lN.js} +3 -3
  35. package/dist/{index-6JapSn8R.js → index-BupXEMw1.js} +1 -1
  36. package/dist/{index-CZ9dnV8W.js → index-CRvVc6Y0.js} +1 -1
  37. package/dist/{index-XX_9zG1_.js → index-CoSNybQN.js} +1 -1
  38. package/dist/{index-CzqGE3j2.js → index-CvsQZRvV.js} +1 -1
  39. package/dist/{index-B94f61Mh.js → index-DLR6FlpA.js} +1 -1
  40. package/dist/{index-D4LKf5QA.js → index-DNlAdv0n.js} +1 -1
  41. package/dist/{index-CMkfwUQh.js → index-_q2Zzdwi.js} +1 -1
  42. package/dist/{index-CsprdZ_3.js → index-oqTgFsXP.js} +1 -1
  43. package/dist/{infoDiagram-PH2N3AL5-BA8E4EHe.js → infoDiagram-PH2N3AL5-BhSpC10k.js} +2 -2
  44. package/dist/{journeyDiagram-U35MCT3I-BXjQJ4UW.js → journeyDiagram-U35MCT3I-B_2OZ572.js} +2 -2
  45. package/dist/{kanban-definition-NDS4AKOZ-C0hZOJBY.js → kanban-definition-NDS4AKOZ-08CrtVQY.js} +1 -1
  46. package/dist/{layout-Dst_d9OW.js → layout-D06L4hdl.js} +4 -4
  47. package/dist/{linear-BKHk1RhV.js → linear-aQhj9GZG.js} +1 -1
  48. package/dist/{main-ImnJo0vF.js → main-B1gC8olg.js} +368 -363
  49. package/dist/main.js +1 -1
  50. package/dist/{mermaid-B6MBf140.js → mermaid-DBvoGzwP.js} +28 -28
  51. package/dist/{min-vb7xKhnV.js → min-D1tXCICS.js} +2 -2
  52. package/dist/{mindmap-definition-ALO5MXBD-BA8ti6gf.js → mindmap-definition-ALO5MXBD-DFKZCFOC.js} +2 -2
  53. package/dist/{pieDiagram-IB7DONF6-BcGt1mjz.js → pieDiagram-IB7DONF6-DGGY9dKa.js} +3 -3
  54. package/dist/{quadrantDiagram-7GDLP6J5-DPdYlz1i.js → quadrantDiagram-7GDLP6J5-Cc7LUZ7s.js} +2 -2
  55. package/dist/{radar-MK3ICKWK-qBmahsZf.js → radar-MK3ICKWK-BG42XlxJ.js} +5 -5
  56. package/dist/{react-plotly-CEVo_eMK.js → react-plotly-COhnzbY3.js} +1 -1
  57. package/dist/{requirementDiagram-KVF5MWMF-BYVhSmoq.js → requirementDiagram-KVF5MWMF-CaKa5G5F.js} +2 -2
  58. package/dist/{sankeyDiagram-QLVOVGJD-BeXAa3_U.js → sankeyDiagram-QLVOVGJD-BnNhWmZc.js} +1 -1
  59. package/dist/{sequenceDiagram-X6HHIX6F-CCtMnTFq.js → sequenceDiagram-X6HHIX6F-CiLuAiRi.js} +3 -3
  60. package/dist/{slides-component-bAdPOmZx.js → slides-component-Ddf-svCX.js} +1 -1
  61. package/dist/{stateDiagram-DGXRK772-CaDr23n1.js → stateDiagram-DGXRK772-CZREJ5TN.js} +4 -4
  62. package/dist/{stateDiagram-v2-YXO3MK2T-B93k3tmS.js → stateDiagram-v2-YXO3MK2T-DmkDeDOx.js} +2 -2
  63. package/dist/style.css +1 -1
  64. package/dist/{time-BMnWKoOt.js → time-Cd3vsmx2.js} +2 -2
  65. package/dist/{timeline-definition-BDJGKUSR-CiemQWEV.js → timeline-definition-BDJGKUSR-Cq4SlSFl.js} +1 -1
  66. package/dist/{vega-component-CtLsTwBm.js → vega-component-DblifYjR.js} +2 -2
  67. package/dist/{xychartDiagram-VJFVF3MP-DzIRqJa-.js → xychartDiagram-VJFVF3MP-Dezl49Ti.js} +2 -2
  68. package/package.json +1 -1
@@ -1,41 +1,30 @@
1
- import { b_ as Nn, Y as pr, b$ as na, S, c0 as ra, c1 as ia, c2 as aa, c3 as oa, a7 as sa, c4 as ca, c5 as ua, c6 as la, a0 as Oe, c7 as fn, c8 as wt, c9 as yr, ca as vt, cb as Qe, cc as Er, cd as Dt, ce as Ie, cf as da, cg as Sr, ch as fa, ci as ga, M as qn, T as ha, U as Nr, cj as ma, ck as pa, cl as ya, a1 as Ea, Q as Sa, ad as Na, a8 as _a, cm as Ca, _ as Ta, a3 as Aa, R as Oa } from "./main-ImnJo0vF.js";
2
- import { i as xa, c as ba, N as Ia, a as Vn } from "./VegaLite-DLUJMEwy.js";
1
+ import { b_ as mr, Y as pr, b$ as na, S, c0 as ra, c1 as ia, c2 as aa, c3 as oa, a7 as sa, c4 as ca, c5 as ua, c6 as la, a0 as Oe, c7 as fn, c8 as wt, c9 as yr, ca as vt, cb as Qe, cc as Er, cd as Dt, ce as Ie, cf as da, cg as Sr, ch as fa, ci as ga, M as zn, T as ha, U as Nr, cj as ma, ck as pa, cl as ya, a1 as Ea, Q as Sa, ad as Na, cm as _a, a8 as Ca, cn as Ta, _ as Aa, a3 as Oa, R as xa } from "./main-B1gC8olg.js";
2
+ import { i as ba, c as Ia, N as wa, a as qn } from "./VegaLite-CuwDXo4M.js";
3
3
  /**
4
4
  * @license lucide-react v0.485.0 - ISC
5
5
  *
6
6
  * This source code is licensed under the ISC license.
7
7
  * See the LICENSE file in the root directory of this source tree.
8
8
  */
9
- const wa = [
9
+ const va = [
10
10
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
11
11
  ["rect", { x: "15", y: "5", width: "4", height: "12", rx: "1", key: "q8uenq" }],
12
12
  ["rect", { x: "7", y: "8", width: "4", height: "9", rx: "1", key: "sr5ea" }]
13
- ], va = Nn("chart-column-big", wa);
13
+ ], Da = mr("chart-column-big", va);
14
14
  /**
15
15
  * @license lucide-react v0.485.0 - ISC
16
16
  *
17
17
  * This source code is licensed under the ISC license.
18
18
  * See the LICENSE file in the root directory of this source tree.
19
19
  */
20
- const Da = [
21
- ["path", { d: "M3 6h18", key: "d0wm0j" }],
22
- ["path", { d: "M7 12h10", key: "b7w52i" }],
23
- ["path", { d: "M10 18h4", key: "1ulq68" }]
24
- ], Fa = Nn("list-filter", Da);
25
- /**
26
- * @license lucide-react v0.485.0 - ISC
27
- *
28
- * This source code is licensed under the ISC license.
29
- * See the LICENSE file in the root directory of this source tree.
30
- */
31
- const ka = [
20
+ const Fa = [
32
21
  ["path", { d: "M10 12h11", key: "6m4ad9" }],
33
22
  ["path", { d: "M10 18h11", key: "11hvi2" }],
34
23
  ["path", { d: "M10 6h11", key: "c7qv1k" }],
35
24
  ["path", { d: "M4 10h2", key: "16xx2s" }],
36
25
  ["path", { d: "M4 6h1v4", key: "cnovpq" }],
37
26
  ["path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1", key: "m9a95d" }]
38
- ], Ra = Nn("list-ordered", ka);
27
+ ], Ra = mr("list-ordered", Fa);
39
28
  /*! *****************************************************************************
40
29
  Copyright (c) Microsoft Corporation. All rights reserved.
41
30
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -58,9 +47,9 @@ function Ge(e, t) {
58
47
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
59
48
  return n;
60
49
  }
61
- var zt = { exports: {} }, Kn;
62
- function Ua() {
63
- return Kn || (Kn = 1, function(e) {
50
+ var zt = { exports: {} }, Vn;
51
+ function ka() {
52
+ return Vn || (Vn = 1, function(e) {
64
53
  var t = function() {
65
54
  function n(d, g) {
66
55
  return g != null && d instanceof g;
@@ -188,10 +177,10 @@ function Ua() {
188
177
  e.exports && (e.exports = t);
189
178
  }(zt)), zt.exports;
190
179
  }
191
- Ua();
192
- var qt, Xn;
193
- function Ma() {
194
- return Xn || (Xn = 1, qt = function(e, t) {
180
+ ka();
181
+ var qt, Kn;
182
+ function Ua() {
183
+ return Kn || (Kn = 1, qt = function(e, t) {
195
184
  t || (t = {}), typeof t == "function" && (t = { cmp: t });
196
185
  var n = typeof t.cycles == "boolean" ? t.cycles : !1, a = t.cmp && /* @__PURE__ */ function(o) {
197
186
  return function(c) {
@@ -226,15 +215,15 @@ function Ma() {
226
215
  }(e);
227
216
  }), qt;
228
217
  }
229
- var Pa = Ma();
230
- const _r = /* @__PURE__ */ pr(Pa);
218
+ var Ma = Ua();
219
+ const _r = /* @__PURE__ */ pr(Ma);
231
220
  function He(e, t, n) {
232
221
  return e.fields = t || [], e.fname = n, e;
233
222
  }
234
223
  function Vt(e) {
235
224
  throw Error(e);
236
225
  }
237
- function _n(e) {
226
+ function Nn(e) {
238
227
  var t = [], n = null, a = 0, r = e.length, o = "", c, f, i;
239
228
  e = e + "";
240
229
  function s() {
@@ -256,18 +245,18 @@ const Ft = Array.isArray;
256
245
  function Cr(e) {
257
246
  return e === Object(e);
258
247
  }
259
- function Cn(e) {
248
+ function _n(e) {
260
249
  return typeof e == "string";
261
250
  }
262
- function Tn(e) {
263
- return Ft(e) ? "[" + e.map(Tn) + "]" : Cr(e) || Cn(e) ? (
251
+ function Cn(e) {
252
+ return Ft(e) ? "[" + e.map(Cn) + "]" : Cr(e) || _n(e) ? (
264
253
  // Output valid JSON and JS source strings.
265
254
  // See http://timelessrepo.com/json-isnt-a-javascript-subset
266
255
  JSON.stringify(e).replace("\u2028", "\\u2028").replace("\u2029", "\\u2029")
267
256
  ) : e;
268
257
  }
269
- function La(e, t) {
270
- var n = _n(e), a = "return _[" + n.map(Tn).join("][") + "];";
258
+ function Pa(e, t) {
259
+ var n = Nn(e), a = "return _[" + n.map(Cn).join("][") + "];";
271
260
  return He(
272
261
  Function("_", a),
273
262
  [e = n.length === 1 ? n[0] : e],
@@ -275,7 +264,7 @@ function La(e, t) {
275
264
  );
276
265
  }
277
266
  var et = [];
278
- La("id");
267
+ Pa("id");
279
268
  He(function(e) {
280
269
  return e;
281
270
  }, et, "identity");
@@ -295,28 +284,28 @@ function ot(e, t, n) {
295
284
  var a = [t].concat([].slice.call(n));
296
285
  console[e](...a);
297
286
  }
298
- var $a = 0, Ba = 1, Tr = 2, ja = 3, Ga = 4;
299
- function Ha(e, t) {
300
- var n = e || $a;
287
+ var La = 0, $a = 1, Tr = 2, Ba = 3, ja = 4;
288
+ function Ga(e, t) {
289
+ var n = e || La;
301
290
  return {
302
291
  level: function(a) {
303
292
  return arguments.length ? (n = +a, this) : n;
304
293
  },
305
294
  error: function() {
306
- return n >= Ba && ot("error", "ERROR", arguments), this;
295
+ return n >= $a && ot("error", "ERROR", arguments), this;
307
296
  },
308
297
  warn: function() {
309
298
  return n >= Tr && ot("warn", "WARN", arguments), this;
310
299
  },
311
300
  info: function() {
312
- return n >= ja && ot("log", "INFO", arguments), this;
301
+ return n >= Ba && ot("log", "INFO", arguments), this;
313
302
  },
314
303
  debug: function() {
315
- return n >= Ga && ot("log", "DEBUG", arguments), this;
304
+ return n >= ja && ot("log", "DEBUG", arguments), this;
316
305
  }
317
306
  };
318
307
  }
319
- function An(e) {
308
+ function Tn(e) {
320
309
  return typeof e == "boolean";
321
310
  }
322
311
  function We(e) {
@@ -330,7 +319,7 @@ const V = _r;
330
319
  function z(e, t) {
331
320
  return e.indexOf(t) > -1;
332
321
  }
333
- function Wa(e, t) {
322
+ function Ha(e, t) {
334
323
  let n = 0;
335
324
  for (const [a, r] of e.entries())
336
325
  if (t(r, a, n++))
@@ -338,38 +327,38 @@ function Wa(e, t) {
338
327
  return !1;
339
328
  }
340
329
  const le = Object.keys;
341
- function Ya(e) {
330
+ function Wa(e) {
342
331
  const t = e.replace(/\W/g, "_");
343
332
  return (e.match(/^\d+/) ? "_" : "") + t;
344
333
  }
345
- function za(e, t = "datum") {
346
- return `${t}[${Tn(_n(e).join("."))}]`;
334
+ function Ya(e, t = "datum") {
335
+ return `${t}[${Cn(Nn(e).join("."))}]`;
347
336
  }
348
- function qa(e) {
349
- return `${_n(e).map((t) => t.replace(".", "\\.")).join("\\.")}`;
337
+ function za(e) {
338
+ return `${Nn(e).map((t) => t.replace(".", "\\.")).join("\\.")}`;
350
339
  }
351
- function Va(...e) {
340
+ function qa(...e) {
352
341
  for (const t of e)
353
342
  if (t !== void 0)
354
343
  return t;
355
344
  }
356
- function Ka(e) {
357
- return Xa(e) ? e : `__${e}`;
345
+ function Va(e) {
346
+ return Ka(e) ? e : `__${e}`;
358
347
  }
359
- function Xa(e) {
348
+ function Ka(e) {
360
349
  return e.indexOf("__") === 0;
361
350
  }
362
- const ie = "row", Q = "column", Ar = "facet", F = "x", D = "y", On = "x2", xn = "y2", Or = "latitude", xr = "longitude", br = "latitude2", Ir = "longitude2", ce = "color", kt = "fill", Rt = "stroke", tt = "shape", Te = "size", Ut = "opacity", Mt = "fillOpacity", Pt = "strokeOpacity", Lt = "strokeWidth", bn = "text", wr = "order", In = "detail", vr = "key", Dr = "tooltip", Fr = "href", Ja = {
351
+ const ie = "row", Q = "column", Ar = "facet", F = "x", D = "y", An = "x2", On = "y2", Or = "latitude", xr = "longitude", br = "latitude2", Ir = "longitude2", ce = "color", Rt = "fill", kt = "stroke", tt = "shape", Te = "size", Ut = "opacity", Mt = "fillOpacity", Pt = "strokeOpacity", Lt = "strokeWidth", xn = "text", wr = "order", bn = "detail", vr = "key", Dr = "tooltip", Fr = "href", Xa = {
363
352
  x: 1,
364
353
  y: 1,
365
354
  x2: 1,
366
355
  y2: 1
367
- }, Za = {
356
+ }, Ja = {
368
357
  longitude: 1,
369
358
  longitude2: 1,
370
359
  latitude: 1,
371
360
  latitude2: 1
372
- }, wn = Object.assign({}, Ja, Za, {
361
+ }, In = Object.assign({}, Xa, Ja, {
373
362
  // color
374
363
  color: 1,
375
364
  fill: 1,
@@ -392,43 +381,43 @@ const ie = "row", Q = "column", Ar = "facet", F = "x", D = "y", On = "x2", xn =
392
381
  function dt(e) {
393
382
  return e === "color" || e === "fill" || e === "stroke";
394
383
  }
395
- const Qa = {
384
+ const Za = {
396
385
  row: 1,
397
386
  column: 1,
398
387
  facet: 1
399
- }, nt = Object.assign({}, wn, Qa), eo = le(nt), { order: yd, detail: Ed } = nt;
388
+ }, nt = Object.assign({}, In, Za), Qa = le(nt), { order: pd, detail: yd } = nt;
400
389
  Ge(nt, ["order", "detail"]);
401
- const { order: Sd, detail: Nd, row: _d, column: Cd, facet: Td } = nt;
390
+ const { order: Ed, detail: Sd, row: Nd, column: _d, facet: Cd } = nt;
402
391
  Ge(nt, ["order", "detail", "row", "column", "facet"]);
403
392
  const {
404
- x: Ad,
405
- y: Od,
393
+ x: Td,
394
+ y: Ad,
406
395
  // x2 and y2 share the same scale as x and y
407
- x2: xd,
408
- y2: bd,
409
- latitude: Id,
410
- longitude: wd,
411
- latitude2: vd,
412
- longitude2: Dd
413
- } = wn, vn = Ge(wn, ["x", "y", "x2", "y2", "latitude", "longitude", "latitude2", "longitude2"]), kr = le(vn), to = { x: 1, y: 1 }, {
396
+ x2: Od,
397
+ y2: xd,
398
+ latitude: bd,
399
+ longitude: Id,
400
+ latitude2: wd,
401
+ longitude2: vd
402
+ } = In, wn = Ge(In, ["x", "y", "x2", "y2", "latitude", "longitude", "latitude2", "longitude2"]), Rr = le(wn), eo = { x: 1, y: 1 }, {
414
403
  // x2 and y2 share the same scale as x and y
415
404
  // text and tooltip have format instead of scale,
416
405
  // href has neither format, nor scale
417
- text: Fd,
418
- tooltip: kd,
406
+ text: Dd,
407
+ tooltip: Fd,
419
408
  href: Rd,
420
409
  // detail and order have no scale
421
- detail: Ud,
422
- key: Md,
423
- order: Pd
424
- } = vn, no = Ge(vn, ["text", "tooltip", "href", "detail", "key", "order"]), ro = Object.assign({}, to, no);
425
- function io(e) {
426
- return !!ro[e];
410
+ detail: kd,
411
+ key: Ud,
412
+ order: Md
413
+ } = wn, to = Ge(wn, ["text", "tooltip", "href", "detail", "key", "order"]), no = Object.assign({}, eo, to);
414
+ function ro(e) {
415
+ return !!no[e];
427
416
  }
428
- function ao(e, t) {
429
- return so(e)[t];
417
+ function io(e, t) {
418
+ return oo(e)[t];
430
419
  }
431
- const Dn = {
420
+ const vn = {
432
421
  // all marks
433
422
  area: "always",
434
423
  bar: "always",
@@ -442,14 +431,14 @@ const Dn = {
442
431
  trail: "always",
443
432
  text: "always",
444
433
  tick: "always"
445
- }, { geoshape: Ld } = Dn, oo = Ge(Dn, ["geoshape"]);
446
- function so(e) {
434
+ }, { geoshape: Pd } = vn, ao = Ge(vn, ["geoshape"]);
435
+ function oo(e) {
447
436
  switch (e) {
448
437
  case ce:
449
- case kt:
450
438
  case Rt:
439
+ case kt:
451
440
  // falls through
452
- case In:
441
+ case bn:
453
442
  case vr:
454
443
  case Dr:
455
444
  case Fr:
@@ -464,14 +453,14 @@ function so(e) {
464
453
  case ie:
465
454
  // falls through
466
455
  case Q:
467
- return Dn;
456
+ return vn;
468
457
  case F:
469
458
  case D:
470
459
  case Or:
471
460
  case xr:
472
- return oo;
461
+ return ao;
462
+ case An:
473
463
  case On:
474
- case xn:
475
464
  case br:
476
465
  case Ir:
477
466
  return {
@@ -500,7 +489,7 @@ function so(e) {
500
489
  };
501
490
  case tt:
502
491
  return { point: "always", geoshape: "always" };
503
- case bn:
492
+ case xn:
504
493
  return { text: "always" };
505
494
  }
506
495
  }
@@ -514,36 +503,36 @@ function Kt(e) {
514
503
  case Mt:
515
504
  case Pt:
516
505
  // X2 and Y2 use X and Y scales, so they similarly have continuous range. [falls through]
506
+ case An:
517
507
  case On:
518
- case xn:
519
508
  return;
520
509
  case Ar:
521
510
  case ie:
522
511
  case Q:
523
512
  case tt:
524
513
  // TEXT, TOOLTIP, and HREF have no scale but have discrete output [falls through]
525
- case bn:
514
+ case xn:
526
515
  case Dr:
527
516
  case Fr:
528
517
  return "discrete";
529
518
  // Color can be either continuous or discrete, depending on scale type.
530
519
  case ce:
531
- case kt:
532
520
  case Rt:
521
+ case kt:
533
522
  return "flexible";
534
523
  // No scale, no range type.
535
524
  case Or:
536
525
  case xr:
537
526
  case br:
538
527
  case Ir:
539
- case In:
528
+ case bn:
540
529
  case vr:
541
530
  case wr:
542
531
  return;
543
532
  }
544
533
  throw new Error("rangeType not implemented for " + e);
545
534
  }
546
- const Rr = {
535
+ const kr = {
547
536
  orient: 1,
548
537
  bandPosition: 1,
549
538
  domain: 1,
@@ -610,9 +599,9 @@ const Rr = {
610
599
  titleY: 1,
611
600
  values: 1,
612
601
  zindex: 1
613
- }, co = Object.assign({}, Rr, { encoding: 1 });
614
- Object.assign({ gridScale: 1, scale: 1 }, Rr, { encode: 1 });
615
- const Ur = le(co), Mr = {
602
+ }, so = Object.assign({}, kr, { encoding: 1 });
603
+ Object.assign({ gridScale: 1, scale: 1 }, kr, { encode: 1 });
604
+ const Ur = le(so), Mr = {
616
605
  clipHeight: 1,
617
606
  columnPadding: 1,
618
607
  columns: 1,
@@ -686,261 +675,261 @@ Object.assign({}, Mr, {
686
675
  // encode
687
676
  encode: 1
688
677
  });
689
- const Pr = le(Mr), uo = "Invalid spec", lo = 'Autosize "fit" only works for single views and layered views.', fo = 'Cannot use a fixed value of "rangeStep" when "autosize" is "fit".';
690
- function go(e) {
678
+ const Pr = le(Mr), co = "Invalid spec", uo = 'Autosize "fit" only works for single views and layered views.', lo = 'Cannot use a fixed value of "rangeStep" when "autosize" is "fit".';
679
+ function fo(e) {
691
680
  return `Cannot project a selection on encoding channel "${e}", which has no field.`;
692
681
  }
693
- function ho(e) {
682
+ function go(e) {
694
683
  return `The "nearest" transform is not supported for ${e} marks.`;
695
684
  }
696
- function mo(e) {
685
+ function ho(e) {
697
686
  return `Selection not supported for ${e} yet`;
698
687
  }
699
- function po(e) {
688
+ function mo(e) {
700
689
  return `Cannot find a selection named "${e}"`;
701
690
  }
702
- const yo = "Scale bindings are currently only supported for scales with unbinned, continuous domains.", Eo = "Selections bound to scales cannot be separately initialized.";
703
- function So(e) {
691
+ const po = "Scale bindings are currently only supported for scales with unbinned, continuous domains.", yo = "Selections bound to scales cannot be separately initialized.";
692
+ function Eo(e) {
704
693
  return `Unknown repeated value "${e}".`;
705
694
  }
706
- function No(e) {
695
+ function So(e) {
707
696
  return `The "columns" property cannot be used when "${e}" has nested row/column.`;
708
697
  }
709
- const _o = "Axes cannot be shared in concatenated views yet (https://github.com/vega/vega-lite/issues/2415).", Co = "Axes cannot be shared in repeated views yet (https://github.com/vega/vega-lite/issues/2415).";
710
- function To(e) {
698
+ const No = "Axes cannot be shared in concatenated views yet (https://github.com/vega/vega-lite/issues/2415).", _o = "Axes cannot be shared in repeated views yet (https://github.com/vega/vega-lite/issues/2415).";
699
+ function Co(e) {
711
700
  return `Unrecognized parse "${e}".`;
712
701
  }
713
- function Ao(e, t, n) {
702
+ function To(e, t, n) {
714
703
  return `An ancestor parsed field "${e}" as ${n} but a child wants to parse the field as ${t}.`;
715
704
  }
716
- function Oo(e) {
705
+ function Ao(e) {
717
706
  return `Ignoring an invalid transform: ${V(e)}.`;
718
707
  }
719
- const xo = 'If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.';
720
- function bo(e) {
708
+ const Oo = 'If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.';
709
+ function xo(e) {
721
710
  return `Layer's shared ${e.join(",")} channel ${e.length === 1 ? "is" : "are"} overriden`;
722
711
  }
723
- function Io(e) {
712
+ function bo(e) {
724
713
  const { parentProjection: t, projection: n } = e;
725
714
  return `Layer's shared projection ${V(t)} is overridden by a child projection ${V(n)}.`;
726
715
  }
727
- function wo(e, t, n) {
716
+ function Io(e, t, n) {
728
717
  return `Channel ${e} is a ${t}. Converted to {value: ${V(n)}}.`;
729
718
  }
730
- function vo(e) {
719
+ function wo(e) {
731
720
  return `Invalid field type "${e}"`;
732
721
  }
733
- function Do(e, t, n) {
722
+ function vo(e, t, n) {
734
723
  return `A ${n.scaleType ? `${n.scaleType} scale` : n.zeroFalse ? "scale with zero=false" : "scale with custom domain that excludes zero"} is used to encode ${e}'s ${t}. This can be misleading as the ${t === "x" ? "width" : "height"} of the ${e} can be arbitrary based on the scale domain. You may want to use point mark instead.`;
735
724
  }
736
- function Fo(e, t) {
725
+ function Do(e, t) {
737
726
  return `Invalid field type "${e}" for aggregate: "${t}", using "quantitative" instead.`;
738
727
  }
739
- function ko(e) {
728
+ function Fo(e) {
740
729
  return `Invalid aggregation operator "${e}"`;
741
730
  }
742
731
  function Ro(e, t) {
743
732
  return `Missing type for channel "${e}", using "${t}" instead.`;
744
733
  }
745
- function Uo(e, t) {
734
+ function ko(e, t) {
746
735
  const { fill: n, stroke: a } = t;
747
736
  return `Dropping color ${e} as the plot also has ` + (n && a ? "fill and stroke" : n ? "fill" : "stroke");
748
737
  }
749
- function Mo(e, t) {
738
+ function Uo(e, t) {
750
739
  return `Dropping ${V(e)} from channel "${t}" since it does not contain data field or value.`;
751
740
  }
752
- function Po(e, t, n) {
741
+ function Mo(e, t, n) {
753
742
  return `${e}-encoding with type ${t} is deprecated. Replacing with ${n}-encoding.`;
754
743
  }
755
- const Lo = "Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";
756
- function $o(e, t, n) {
744
+ const Po = "Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";
745
+ function Lo(e, t, n) {
757
746
  return `${e} dropped as it is incompatible with "${t}"${n ? ` when ${n}` : ""}.`;
758
747
  }
759
- function Bo(e) {
748
+ function $o(e) {
760
749
  return `${e}-encoding is dropped as ${e} is not a valid encoding channel.`;
761
750
  }
762
- function jo(e) {
751
+ function Bo(e) {
763
752
  return `${e} encoding should be discrete (ordinal / nominal / binned).`;
764
753
  }
765
- function Go(e) {
754
+ function jo(e) {
766
755
  return `Facet encoding dropped as ${e.join(" and ")} ${e.length > 1 ? "are" : "is"} also specified.`;
767
756
  }
768
- function Ho(e, t) {
757
+ function Go(e, t) {
769
758
  return `Using discrete channel "${e}" to encode "${t}" field can be misleading as it does not encode ${t === "ordinal" ? "order" : "magnitude"}.`;
770
759
  }
771
- const Wo = "Bar mark should not be used with point scale when rangeStep is null. Please use band scale instead.";
772
- function Yo(e, t) {
760
+ const Ho = "Bar mark should not be used with point scale when rangeStep is null. Please use band scale instead.";
761
+ function Wo(e, t) {
773
762
  return `Line mark is for continuous lines and thus cannot be used with ${e && t ? "x2 and y2" : e ? "x2" : "y2"}. We will use the rule mark (line segments) instead.`;
774
763
  }
775
- function zo(e, t) {
764
+ function Yo(e, t) {
776
765
  return `Specified orient "${e}" overridden with "${t}"`;
777
766
  }
778
- const qo = "custom domain scale cannot be unioned with default field-based domain";
779
- function Vo(e) {
767
+ const zo = "custom domain scale cannot be unioned with default field-based domain";
768
+ function qo(e) {
780
769
  return `Cannot use the scale property "${e}" with non-color channel.`;
781
770
  }
782
- function Ko(e) {
771
+ function Vo(e) {
783
772
  return `Using unaggregated domain with raw field has no effect (${V(e)}).`;
784
773
  }
785
- function Xo(e) {
774
+ function Ko(e) {
786
775
  return `Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`;
787
776
  }
788
- function Jo(e) {
777
+ function Xo(e) {
789
778
  return `Unaggregated domain is currently unsupported for log scale (${V(e)}).`;
790
779
  }
791
- function Zo(e) {
780
+ function Jo(e) {
792
781
  return `Cannot apply size to non-oriented mark "${e}".`;
793
782
  }
794
- function Qo(e) {
783
+ function Zo(e) {
795
784
  return `rangeStep for "${e}" is dropped as top-level ${e === "x" ? "width" : "height"} is provided.`;
796
785
  }
797
- function es(e, t, n) {
786
+ function Qo(e, t, n) {
798
787
  return `Channel "${e}" does not work with "${t}" scale. We are using "${n}" scale instead.`;
799
788
  }
800
- function ts(e, t) {
789
+ function es(e, t) {
801
790
  return `FieldDef does not work with "${e}" scale. We are using "${t}" scale instead.`;
802
791
  }
803
- function ns(e, t, n) {
792
+ function ts(e, t, n) {
804
793
  return `${n}-scale's "${t}" is dropped as it does not work with ${e} scale.`;
805
794
  }
806
- function rs(e, t) {
795
+ function ns(e, t) {
807
796
  return `Scale type "${t}" does not work with mark "${e}".`;
808
797
  }
809
- function is(e, t, n, a) {
798
+ function rs(e, t, n, a) {
810
799
  return `Conflicting ${t.toString()} property "${e.toString()}" (${V(n)} and ${V(a)}). Using ${V(n)}.`;
811
800
  }
812
- function as(e, t, n, a) {
801
+ function is(e, t, n, a) {
813
802
  return `Conflicting ${t.toString()} property "${e.toString()}" (${V(n)} and ${V(a)}). Using the union of the two domains.`;
814
803
  }
815
- function os(e) {
804
+ function as(e) {
816
805
  return `Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`;
817
806
  }
818
- function ss(e) {
807
+ function os(e) {
819
808
  return `Dropping sort property ${V(e)} as unioned domains only support boolean or op 'count'.`;
820
809
  }
821
- const cs = "Unable to merge domains", us = "Domains that should be unioned has conflicting sort properties. Sort will be set to true.", ls = "Invalid channel for axis.";
822
- function ds(e) {
810
+ const ss = "Unable to merge domains", cs = "Domains that should be unioned has conflicting sort properties. Sort will be set to true.", us = "Invalid channel for axis.";
811
+ function ls(e) {
823
812
  return `Cannot stack "${e}" if there is already "${e}2"`;
824
813
  }
825
- function fs(e) {
814
+ function ds(e) {
826
815
  return `Cannot stack non-linear scale (${e})`;
827
816
  }
828
- function gs(e) {
817
+ function fs(e) {
829
818
  return `Stacking is applied even though the aggregate function is non-summative ("${e}")`;
830
819
  }
831
- function hs(e, t) {
820
+ function gs(e, t) {
832
821
  return `Invalid ${e}: ${V(t)}`;
833
822
  }
834
- function ms(e) {
823
+ function hs(e) {
835
824
  return `Time unit "${e}" is not supported. We are replacing it with ${e.replace("day", "date")}.`;
836
825
  }
837
- function ps(e) {
826
+ function ms(e) {
838
827
  return `Dropping day from datetime ${V(e)} as day cannot be combined with other units.`;
839
828
  }
840
- function ys(e, t) {
829
+ function ps(e, t) {
841
830
  return `${t ? "extent " : ""}${t && e ? "and " : ""}${e ? "center " : ""}${t && e ? "are " : "is "}not needed when data are aggregated.`;
842
831
  }
843
- function Es(e, t, n) {
832
+ function ys(e, t, n) {
844
833
  return `${e} is not usually used with ${t} for ${n}.`;
845
834
  }
846
- function Ss(e, t) {
835
+ function Es(e, t) {
847
836
  return `Continuous axis should not have customized aggregation function ${e}; ${t} already agregates the axis.`;
848
837
  }
849
- function Ns(e, t) {
838
+ function Ss(e, t) {
850
839
  return `Center is not needed to be specified in ${t} when extent is ${e}.`;
851
840
  }
852
- function _s(e) {
841
+ function Ns(e) {
853
842
  return `1D error band does not support ${e}`;
854
843
  }
855
- function Cs(e) {
844
+ function _s(e) {
856
845
  return `Channel ${e} is required for "binned" bin`;
857
846
  }
858
- function Ts(e) {
847
+ function Cs(e) {
859
848
  return `Domain for ${e} is required for threshold scale`;
860
849
  }
861
- const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
850
+ const Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
862
851
  __proto__: null,
863
- BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL: Wo,
864
- CANNOT_FIX_RANGE_STEP_WITH_FIT: fo,
865
- CANNOT_UNION_CUSTOM_DOMAIN_WITH_FIELD_DOMAIN: qo,
866
- CONCAT_CANNOT_SHARE_AXIS: _o,
867
- FIT_NON_SINGLE: lo,
868
- INVALID_CHANNEL_FOR_AXIS: ls,
869
- INVALID_SPEC: uo,
870
- LINE_WITH_VARYING_SIZE: Lo,
871
- MORE_THAN_ONE_SORT: us,
872
- NO_FIELDS_NEEDS_AS: xo,
873
- NO_INIT_SCALE_BINDINGS: Eo,
874
- REPEAT_CANNOT_SHARE_AXIS: Co,
875
- SCALE_BINDINGS_CONTINUOUS: yo,
876
- UNABLE_TO_MERGE_DOMAINS: cs,
877
- cannotApplySizeToNonOrientedMark: Zo,
878
- cannotProjectOnChannelWithoutField: go,
879
- cannotStackNonLinearScale: fs,
880
- cannotStackRangedMark: ds,
881
- cannotUseScalePropertyWithNonColor: Vo,
882
- channelRequiredForBinned: Cs,
883
- columnsNotSupportByRowCol: No,
884
- dayReplacedWithDate: ms,
885
- differentParse: Ao,
886
- discreteChannelCannotEncode: Ho,
887
- domainRequiredForThresholdScale: Ts,
888
- domainSortDropped: ss,
889
- droppedDay: ps,
890
- droppingColor: Uo,
891
- emptyFieldDef: Mo,
892
- encodingOverridden: bo,
893
- errorBand1DNotSupport: _s,
894
- errorBarCenterAndExtentAreNotNeeded: ys,
895
- errorBarCenterIsNotNeeded: Ns,
896
- errorBarCenterIsUsedWithWrongExtent: Es,
897
- errorBarContinuousAxisHasCustomizedAggregate: Ss,
898
- facetChannelDropped: Go,
899
- facetChannelShouldBeDiscrete: jo,
900
- incompatibleChannel: $o,
901
- independentScaleMeansIndependentGuide: os,
902
- invalidAggregate: ko,
903
- invalidEncodingChannel: Bo,
904
- invalidFieldType: vo,
905
- invalidFieldTypeForCountAggregate: Fo,
906
- invalidTimeUnit: hs,
907
- invalidTransformIgnored: Oo,
908
- latLongDeprecated: Po,
909
- lineWithRange: Yo,
910
- mergeConflictingDomainProperty: as,
911
- mergeConflictingProperty: is,
852
+ BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL: Ho,
853
+ CANNOT_FIX_RANGE_STEP_WITH_FIT: lo,
854
+ CANNOT_UNION_CUSTOM_DOMAIN_WITH_FIELD_DOMAIN: zo,
855
+ CONCAT_CANNOT_SHARE_AXIS: No,
856
+ FIT_NON_SINGLE: uo,
857
+ INVALID_CHANNEL_FOR_AXIS: us,
858
+ INVALID_SPEC: co,
859
+ LINE_WITH_VARYING_SIZE: Po,
860
+ MORE_THAN_ONE_SORT: cs,
861
+ NO_FIELDS_NEEDS_AS: Oo,
862
+ NO_INIT_SCALE_BINDINGS: yo,
863
+ REPEAT_CANNOT_SHARE_AXIS: _o,
864
+ SCALE_BINDINGS_CONTINUOUS: po,
865
+ UNABLE_TO_MERGE_DOMAINS: ss,
866
+ cannotApplySizeToNonOrientedMark: Jo,
867
+ cannotProjectOnChannelWithoutField: fo,
868
+ cannotStackNonLinearScale: ds,
869
+ cannotStackRangedMark: ls,
870
+ cannotUseScalePropertyWithNonColor: qo,
871
+ channelRequiredForBinned: _s,
872
+ columnsNotSupportByRowCol: So,
873
+ dayReplacedWithDate: hs,
874
+ differentParse: To,
875
+ discreteChannelCannotEncode: Go,
876
+ domainRequiredForThresholdScale: Cs,
877
+ domainSortDropped: os,
878
+ droppedDay: ms,
879
+ droppingColor: ko,
880
+ emptyFieldDef: Uo,
881
+ encodingOverridden: xo,
882
+ errorBand1DNotSupport: Ns,
883
+ errorBarCenterAndExtentAreNotNeeded: ps,
884
+ errorBarCenterIsNotNeeded: Ss,
885
+ errorBarCenterIsUsedWithWrongExtent: ys,
886
+ errorBarContinuousAxisHasCustomizedAggregate: Es,
887
+ facetChannelDropped: jo,
888
+ facetChannelShouldBeDiscrete: Bo,
889
+ incompatibleChannel: Lo,
890
+ independentScaleMeansIndependentGuide: as,
891
+ invalidAggregate: Fo,
892
+ invalidEncodingChannel: $o,
893
+ invalidFieldType: wo,
894
+ invalidFieldTypeForCountAggregate: Do,
895
+ invalidTimeUnit: gs,
896
+ invalidTransformIgnored: Ao,
897
+ latLongDeprecated: Mo,
898
+ lineWithRange: Wo,
899
+ mergeConflictingDomainProperty: is,
900
+ mergeConflictingProperty: rs,
912
901
  missingFieldType: Ro,
913
- nearestNotSupportForContinuous: ho,
914
- noSuchRepeatedValue: So,
915
- nonZeroScaleUsedWithLengthMark: Do,
916
- orientOverridden: zo,
917
- primitiveChannelDef: wo,
918
- projectionOverridden: Io,
919
- rangeStepDropped: Qo,
920
- scalePropertyNotWorkWithScaleType: ns,
921
- scaleTypeNotWorkWithChannel: es,
922
- scaleTypeNotWorkWithFieldDef: ts,
923
- scaleTypeNotWorkWithMark: rs,
924
- selectionNotFound: po,
925
- selectionNotSupported: mo,
926
- stackNonSummativeAggregate: gs,
927
- unaggregateDomainHasNoEffectForRawField: Ko,
928
- unaggregateDomainWithNonSharedDomainOp: Xo,
929
- unaggregatedDomainWithLogScale: Jo,
930
- unrecognizedParse: To
931
- }, Symbol.toStringTag, { value: "Module" })), ne = As, Os = Ha(Tr);
932
- let Jn = Os;
902
+ nearestNotSupportForContinuous: go,
903
+ noSuchRepeatedValue: Eo,
904
+ nonZeroScaleUsedWithLengthMark: vo,
905
+ orientOverridden: Yo,
906
+ primitiveChannelDef: Io,
907
+ projectionOverridden: bo,
908
+ rangeStepDropped: Zo,
909
+ scalePropertyNotWorkWithScaleType: ts,
910
+ scaleTypeNotWorkWithChannel: Qo,
911
+ scaleTypeNotWorkWithFieldDef: es,
912
+ scaleTypeNotWorkWithMark: ns,
913
+ selectionNotFound: mo,
914
+ selectionNotSupported: ho,
915
+ stackNonSummativeAggregate: fs,
916
+ unaggregateDomainHasNoEffectForRawField: Vo,
917
+ unaggregateDomainWithNonSharedDomainOp: Ko,
918
+ unaggregatedDomainWithLogScale: Xo,
919
+ unrecognizedParse: Co
920
+ }, Symbol.toStringTag, { value: "Module" })), ne = Ts, As = Ga(Tr);
921
+ let Xn = As;
933
922
  function Ae(...e) {
934
- Jn.warn.apply(Jn, arguments);
923
+ Xn.warn.apply(Xn, arguments);
935
924
  }
936
- const xs = {
925
+ const Os = {
937
926
  quantitative: 1,
938
927
  ordinal: 1,
939
928
  temporal: 1,
940
929
  nominal: 1,
941
930
  geojson: 1
942
- }, P = "quantitative", ae = "ordinal", Y = "temporal", re = "nominal", bs = "geojson";
943
- function Is(e) {
931
+ }, P = "quantitative", ae = "ordinal", Y = "temporal", re = "nominal", xs = "geojson";
932
+ function bs(e) {
944
933
  if (e)
945
934
  switch (e = e.toLowerCase(), e) {
946
935
  case "q":
@@ -955,15 +944,15 @@ function Is(e) {
955
944
  case "n":
956
945
  case re:
957
946
  return "nominal";
958
- case bs:
947
+ case xs:
959
948
  return "geojson";
960
949
  }
961
950
  }
962
- var k;
951
+ var R;
963
952
  (function(e) {
964
953
  e.LINEAR = "linear", e.LOG = "log", e.POW = "pow", e.SQRT = "sqrt", e.SYMLOG = "symlog", e.TIME = "time", e.UTC = "utc", e.QUANTILE = "quantile", e.QUANTIZE = "quantize", e.THRESHOLD = "threshold", e.BIN_ORDINAL = "bin-ordinal", e.ORDINAL = "ordinal", e.POINT = "point", e.BAND = "band";
965
- })(k || (k = {}));
966
- const ws = {
954
+ })(R || (R = {}));
955
+ const Is = {
967
956
  linear: "numeric",
968
957
  log: "numeric",
969
958
  pow: "numeric",
@@ -978,24 +967,24 @@ const ws = {
978
967
  quantile: "discretizing",
979
968
  quantize: "discretizing",
980
969
  threshold: "discretizing"
981
- }, vs = le(ws), Lr = ["linear", "log", "pow", "sqrt", "symlog", "time", "utc"], Ds = We(Lr), Fs = ["quantile", "quantize", "threshold"], ks = We(Fs), Rs = Lr.concat([
970
+ }, ws = le(Is), Lr = ["linear", "log", "pow", "sqrt", "symlog", "time", "utc"], vs = We(Lr), Ds = ["quantile", "quantize", "threshold"], Fs = We(Ds), Rs = Lr.concat([
982
971
  "quantile",
983
972
  "quantize",
984
973
  "threshold"
985
- ]), Us = We(Rs), Ms = ["ordinal", "bin-ordinal", "point", "band"], Ps = We(Ms);
974
+ ]), ks = We(Rs), Us = ["ordinal", "bin-ordinal", "point", "band"], Ms = We(Us);
986
975
  function ve(e) {
987
- return e in Ps;
976
+ return e in Ms;
988
977
  }
989
- function Ls(e) {
990
- return e in Us;
978
+ function Ps(e) {
979
+ return e in ks;
991
980
  }
992
981
  function Pe(e) {
993
- return e in Ds;
982
+ return e in vs;
994
983
  }
995
- function $s(e) {
996
- return e in ks;
984
+ function Ls(e) {
985
+ return e in Fs;
997
986
  }
998
- const Fn = {
987
+ const Dn = {
999
988
  type: 1,
1000
989
  domain: 1,
1001
990
  align: 1,
@@ -1019,9 +1008,9 @@ const Fn = {
1019
1008
  padding: 1,
1020
1009
  paddingInner: 1,
1021
1010
  paddingOuter: 1
1022
- }, $r = le(Fn), { type: $d, domain: Bd, range: jd, rangeStep: Gd, scheme: Hd } = Fn;
1023
- Ge(Fn, ["type", "domain", "range", "rangeStep", "scheme"]);
1024
- js();
1011
+ }, $r = le(Dn), { type: Ld, domain: $d, range: Bd, rangeStep: jd, scheme: Gd } = Dn;
1012
+ Ge(Dn, ["type", "domain", "range", "rangeStep", "scheme"]);
1013
+ Bs();
1025
1014
  function Xt(e, t) {
1026
1015
  switch (t) {
1027
1016
  case "type":
@@ -1055,7 +1044,7 @@ function Xt(e, t) {
1055
1044
  case "constant":
1056
1045
  return e === "symlog";
1057
1046
  case "zero":
1058
- return Ls(e) && !z([
1047
+ return Ps(e) && !z([
1059
1048
  "log",
1060
1049
  "time",
1061
1050
  "utc",
@@ -1065,7 +1054,7 @@ function Xt(e, t) {
1065
1054
  ], e);
1066
1055
  }
1067
1056
  }
1068
- function Bs(e, t) {
1057
+ function $s(e, t) {
1069
1058
  switch (t) {
1070
1059
  case "interpolate":
1071
1060
  case "scheme":
@@ -1091,15 +1080,15 @@ function Bs(e, t) {
1091
1080
  }
1092
1081
  }
1093
1082
  function Br(e, t) {
1094
- return z([ae, re], t) ? e === void 0 || ve(e) : t === Y ? z([k.TIME, k.UTC, void 0], e) : t === P ? z([
1095
- k.LOG,
1096
- k.POW,
1097
- k.SQRT,
1098
- k.SYMLOG,
1099
- k.QUANTILE,
1100
- k.QUANTIZE,
1101
- k.THRESHOLD,
1102
- k.LINEAR,
1083
+ return z([ae, re], t) ? e === void 0 || ve(e) : t === Y ? z([R.TIME, R.UTC, void 0], e) : t === P ? z([
1084
+ R.LOG,
1085
+ R.POW,
1086
+ R.SQRT,
1087
+ R.SYMLOG,
1088
+ R.QUANTILE,
1089
+ R.QUANTIZE,
1090
+ R.THRESHOLD,
1091
+ R.LINEAR,
1103
1092
  void 0
1104
1093
  ], e) : !0;
1105
1094
  }
@@ -1114,10 +1103,10 @@ function jr(e, t) {
1114
1103
  case Ut:
1115
1104
  case Mt:
1116
1105
  case Pt:
1117
- return Pe(t) || $s(t) || z(["band", "point"], t);
1106
+ return Pe(t) || Ls(t) || z(["band", "point"], t);
1118
1107
  case ce:
1119
- case kt:
1120
1108
  case Rt:
1109
+ case kt:
1121
1110
  return t !== "band";
1122
1111
  // band does not make sense with color
1123
1112
  case tt:
@@ -1125,22 +1114,22 @@ function jr(e, t) {
1125
1114
  }
1126
1115
  return !1;
1127
1116
  }
1128
- function js() {
1117
+ function Bs() {
1129
1118
  const e = {};
1130
- for (const t of eo)
1131
- for (const n of le(xs))
1132
- for (const a of vs) {
1133
- const r = Gs(t, n);
1119
+ for (const t of Qa)
1120
+ for (const n of le(Os))
1121
+ for (const a of ws) {
1122
+ const r = js(t, n);
1134
1123
  jr(t, a) && Br(a, n) && (e[r] = e[r] || [], e[r].push(a));
1135
1124
  }
1136
1125
  return e;
1137
1126
  }
1138
- function Gs(e, t) {
1127
+ function js(e, t) {
1139
1128
  return e + "_" + t;
1140
1129
  }
1141
- var Jt = { exports: {} }, Zn;
1130
+ var Jt = { exports: {} }, Jn;
1142
1131
  function rt() {
1143
- return Zn || (Zn = 1, function(e) {
1132
+ return Jn || (Jn = 1, function(e) {
1144
1133
  var t = e.exports, n = "__name__";
1145
1134
  t.namedfunc = function(i, s) {
1146
1135
  return s[n] = i, s;
@@ -1344,12 +1333,12 @@ function me(e, t) {
1344
1333
  return !0;
1345
1334
  return !1;
1346
1335
  }
1347
- function Hs(e, t) {
1336
+ function Gs(e, t) {
1348
1337
  return e.filter(function(n) {
1349
1338
  return !Z(t, n);
1350
1339
  });
1351
1340
  }
1352
- function Ws(e) {
1341
+ function Hs(e) {
1353
1342
  return Object.keys(e);
1354
1343
  }
1355
1344
  function ue(e) {
@@ -1371,11 +1360,11 @@ const Gr = {
1371
1360
  axis: 1,
1372
1361
  legend: 1,
1373
1362
  value: 1
1374
- }, kn = Ws(Gr);
1375
- function Ys(e) {
1363
+ }, Fn = Hs(Gr);
1364
+ function Ws(e) {
1376
1365
  return e in Gr;
1377
1366
  }
1378
- const zs = {
1367
+ const Ys = {
1379
1368
  bin: 1,
1380
1369
  scale: 1,
1381
1370
  sort: 1,
@@ -1383,13 +1372,13 @@ const zs = {
1383
1372
  legend: 1
1384
1373
  };
1385
1374
  function Rn(e) {
1386
- return zs[e];
1375
+ return Ys[e];
1387
1376
  }
1388
- const qs = ["maxbins", "divide", "extent", "base", "step", "steps", "minstep"], Vs = ["field", "op", "order"], Hr = qs.map((e) => ({ parent: "bin", child: e })), Un = Vs.map((e) => ({ parent: "sort", child: e })), mt = $r.map((e) => ({ parent: "scale", child: e })), Wr = Ur.map((e) => ({ parent: "axis", child: e })), Yr = Pr.map((e) => ({ parent: "legend", child: e })), $t = [].concat(Hr, Un, mt, Wr, Yr), zr = ["width", "height", "background", "padding", "title"], qr = ".";
1377
+ const zs = ["maxbins", "divide", "extent", "base", "step", "steps", "minstep"], qs = ["field", "op", "order"], Hr = zs.map((e) => ({ parent: "bin", child: e })), kn = qs.map((e) => ({ parent: "sort", child: e })), mt = $r.map((e) => ({ parent: "scale", child: e })), Wr = Ur.map((e) => ({ parent: "axis", child: e })), Yr = Pr.map((e) => ({ parent: "legend", child: e })), $t = [].concat(Hr, kn, mt, Wr, Yr), zr = ["width", "height", "background", "padding", "title"], qr = ".";
1389
1378
  function ft(e) {
1390
1379
  return ue(e) ? e.parent + qr + e.child : e;
1391
1380
  }
1392
- function Ks(e) {
1381
+ function Vs(e) {
1393
1382
  const t = e.split(qr);
1394
1383
  if (t.length === 1)
1395
1384
  return e;
@@ -1400,14 +1389,14 @@ function Ks(e) {
1400
1389
  };
1401
1390
  throw "Invalid property key with " + t.length + " dots: " + e;
1402
1391
  }
1403
- const Xs = $t.reduce((e, t) => (e[t.parent] = e[t.parent] || [], e[t.parent][t.child] = t, e), {});
1392
+ const Ks = $t.reduce((e, t) => (e[t.parent] = e[t.parent] || [], e[t.parent][t.child] = t, e), {});
1404
1393
  function pe(e, t) {
1405
- return (Xs[e] || {})[t];
1394
+ return (Ks[e] || {})[t];
1406
1395
  }
1407
1396
  function Vr(e) {
1408
- return Ys(e) || ue(e);
1397
+ return Ws(e) || ue(e);
1409
1398
  }
1410
- const Js = [].concat(kn, $t), Kr = [
1399
+ const Xs = [].concat(Fn, $t), Kr = [
1411
1400
  "type",
1412
1401
  "field",
1413
1402
  // Field Transform
@@ -1424,12 +1413,12 @@ const Js = [].concat(kn, $t), Kr = [
1424
1413
  "sort",
1425
1414
  "axis",
1426
1415
  "legend"
1427
- ].concat(Hr, mt, Wr, Yr, Un);
1416
+ ].concat(Hr, mt, Wr, Yr, kn);
1428
1417
  var m;
1429
1418
  (function(e) {
1430
1419
  e.MARK = "mark", e.TRANSFORM = "transform", e.STACK = "stack", e.FORMAT = "format", e.CHANNEL = "channel", e.AGGREGATE = "aggregate", e.AUTOCOUNT = "autoCount", e.BIN = "bin", e.HAS_FN = "hasFn", e.TIMEUNIT = "timeUnit", e.FIELD = "field", e.TYPE = "type", e.SORT = "sort", e.SCALE = "scale", e.AXIS = "axis", e.LEGEND = "legend", e.WIDTH = "width", e.HEIGHT = "height", e.BACKGROUND = "background", e.PADDING = "padding", e.TITLE = "title";
1431
1420
  })(m || (m = {}));
1432
- const be = "area", he = "bar", Ke = "line", Je = "point", gn = "rect", hn = "rule", pt = "text", Xe = "tick", yt = "circle", Et = "square", Zs = {
1421
+ const be = "area", he = "bar", Ke = "line", Je = "point", gn = "rect", hn = "rule", pt = "text", Xe = "tick", yt = "circle", Et = "square", Js = {
1433
1422
  area: 1,
1434
1423
  bar: 1,
1435
1424
  line: 1,
@@ -1443,15 +1432,15 @@ const be = "area", he = "bar", Ke = "line", Je = "point", gn = "rect", hn = "rul
1443
1432
  circle: 1,
1444
1433
  square: 1
1445
1434
  };
1446
- function Qs(e) {
1435
+ function Zs(e) {
1447
1436
  return z(["line", "area", "trail"], e);
1448
1437
  }
1449
- const ec = le(Zs);
1450
- function tc(e) {
1438
+ const Qs = le(Js);
1439
+ function ec(e) {
1451
1440
  return e.type;
1452
1441
  }
1453
- We(ec);
1454
- const nc = [
1442
+ We(Qs);
1443
+ const tc = [
1455
1444
  "january",
1456
1445
  "february",
1457
1446
  "march",
@@ -1465,14 +1454,14 @@ const nc = [
1465
1454
  "november",
1466
1455
  "december"
1467
1456
  ];
1457
+ tc.map((e) => e.substr(0, 3));
1458
+ const nc = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
1468
1459
  nc.map((e) => e.substr(0, 3));
1469
- const rc = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
1470
- rc.map((e) => e.substr(0, 3));
1471
1460
  var j;
1472
1461
  (function(e) {
1473
1462
  e.YEAR = "year", e.MONTH = "month", e.DAY = "day", e.DATE = "date", e.HOURS = "hours", e.MINUTES = "minutes", e.SECONDS = "seconds", e.MILLISECONDS = "milliseconds", e.YEARMONTH = "yearmonth", e.YEARMONTHDATE = "yearmonthdate", e.YEARMONTHDATEHOURS = "yearmonthdatehours", e.YEARMONTHDATEHOURSMINUTES = "yearmonthdatehoursminutes", e.YEARMONTHDATEHOURSMINUTESSECONDS = "yearmonthdatehoursminutesseconds", e.MONTHDATE = "monthdate", e.MONTHDATEHOURS = "monthdatehours", e.HOURSMINUTES = "hoursminutes", e.HOURSMINUTESSECONDS = "hoursminutesseconds", e.MINUTESSECONDS = "minutesseconds", e.SECONDSMILLISECONDS = "secondsmilliseconds", e.QUARTER = "quarter", e.YEARQUARTER = "yearquarter", e.QUARTERMONTH = "quartermonth", e.YEARQUARTERMONTH = "yearquartermonth", e.UTCYEAR = "utcyear", e.UTCMONTH = "utcmonth", e.UTCDAY = "utcday", e.UTCDATE = "utcdate", e.UTCHOURS = "utchours", e.UTCMINUTES = "utcminutes", e.UTCSECONDS = "utcseconds", e.UTCMILLISECONDS = "utcmilliseconds", e.UTCYEARMONTH = "utcyearmonth", e.UTCYEARMONTHDATE = "utcyearmonthdate", e.UTCYEARMONTHDATEHOURS = "utcyearmonthdatehours", e.UTCYEARMONTHDATEHOURSMINUTES = "utcyearmonthdatehoursminutes", e.UTCYEARMONTHDATEHOURSMINUTESSECONDS = "utcyearmonthdatehoursminutesseconds", e.UTCMONTHDATE = "utcmonthdate", e.UTCMONTHDATEHOURS = "utcmonthdatehours", e.UTCHOURSMINUTES = "utchoursminutes", e.UTCHOURSMINUTESSECONDS = "utchoursminutesseconds", e.UTCMINUTESSECONDS = "utcminutesseconds", e.UTCSECONDSMILLISECONDS = "utcsecondsmilliseconds", e.UTCQUARTER = "utcquarter", e.UTCYEARQUARTER = "utcyearquarter", e.UTCQUARTERMONTH = "utcquartermonth", e.UTCYEARQUARTERMONTH = "utcyearquartermonth";
1474
1463
  })(j || (j = {}));
1475
- const Mn = {
1464
+ const Un = {
1476
1465
  year: 1,
1477
1466
  quarter: 1,
1478
1467
  month: 1,
@@ -1482,11 +1471,11 @@ const Mn = {
1482
1471
  minutes: 1,
1483
1472
  seconds: 1,
1484
1473
  milliseconds: 1
1485
- }, Xr = le(Mn);
1486
- function ic(e) {
1487
- return !!Mn[e];
1474
+ }, Xr = le(Un);
1475
+ function rc(e) {
1476
+ return !!Un[e];
1488
1477
  }
1489
- const Pn = {
1478
+ const Mn = {
1490
1479
  utcyear: 1,
1491
1480
  utcquarter: 1,
1492
1481
  utcmonth: 1,
@@ -1497,10 +1486,10 @@ const Pn = {
1497
1486
  utcseconds: 1,
1498
1487
  utcmilliseconds: 1
1499
1488
  };
1500
- function ac(e) {
1501
- return !!Pn[e];
1489
+ function ic(e) {
1490
+ return !!Mn[e];
1502
1491
  }
1503
- const oc = {
1492
+ const ac = {
1504
1493
  yearquarter: 1,
1505
1494
  yearquartermonth: 1,
1506
1495
  yearmonth: 1,
@@ -1530,15 +1519,15 @@ const oc = {
1530
1519
  utchoursminutesseconds: 1,
1531
1520
  utcminutesseconds: 1,
1532
1521
  utcsecondsmilliseconds: 1
1533
- }, sc = Object.assign({}, Pn, Jr);
1534
- function cc(e) {
1535
- return !!sc[e];
1522
+ }, oc = Object.assign({}, Mn, Jr);
1523
+ function sc(e) {
1524
+ return !!oc[e];
1536
1525
  }
1537
- const uc = Object.assign({}, Mn, Pn, oc, Jr);
1538
- function lc(e) {
1539
- return !!uc[e];
1526
+ const cc = Object.assign({}, Un, Mn, ac, Jr);
1527
+ function uc(e) {
1528
+ return !!cc[e];
1540
1529
  }
1541
- const dc = {
1530
+ const lc = {
1542
1531
  year: "setFullYear",
1543
1532
  month: "setMonth",
1544
1533
  date: "setDate",
@@ -1550,8 +1539,8 @@ const dc = {
1550
1539
  quarter: null,
1551
1540
  day: null
1552
1541
  };
1553
- function fc(e, t) {
1554
- const n = cc(e), a = n ? (
1542
+ function dc(e, t) {
1543
+ const n = sc(e), a = n ? (
1555
1544
  // start with uniform date
1556
1545
  new Date(Date.UTC(1972, 0, 1, 0, 0, 0, 0))
1557
1546
  ) : new Date(1972, 0, 1, 0, 0, 0, 0);
@@ -1561,40 +1550,40 @@ function fc(e, t) {
1561
1550
  case j.DAY:
1562
1551
  throw new Error("Cannot convert to TimeUnits containing 'day'");
1563
1552
  case j.QUARTER: {
1564
- const { getDateMethod: o, setDateMethod: c } = Qn("month", n);
1553
+ const { getDateMethod: o, setDateMethod: c } = Zn("month", n);
1565
1554
  a[c](Math.floor(t[o]() / 3) * 3);
1566
1555
  break;
1567
1556
  }
1568
1557
  default: {
1569
- const { getDateMethod: o, setDateMethod: c } = Qn(r, n);
1558
+ const { getDateMethod: o, setDateMethod: c } = Zn(r, n);
1570
1559
  a[c](t[o]());
1571
1560
  }
1572
1561
  }
1573
1562
  return a;
1574
1563
  }
1575
- function Qn(e, t) {
1576
- const n = dc[e], a = t ? "setUTC" + n.substr(3) : n, r = "get" + (t ? "UTC" : "") + n.substr(3);
1564
+ function Zn(e, t) {
1565
+ const n = lc[e], a = t ? "setUTC" + n.substr(3) : n, r = "get" + (t ? "UTC" : "") + n.substr(3);
1577
1566
  return { setDateMethod: a, getDateMethod: r };
1578
1567
  }
1579
1568
  function Zr(e, t) {
1580
1569
  const n = e.indexOf(t);
1581
1570
  return n > -1 && (t !== j.SECONDS || n === 0 || e.charAt(n - 1) !== "i");
1582
1571
  }
1583
- const R = "?";
1572
+ const k = "?";
1584
1573
  function O(e) {
1585
- return Bt(e) || gc(e);
1574
+ return Bt(e) || fc(e);
1586
1575
  }
1587
1576
  function Bt(e) {
1588
- return e === R;
1577
+ return e === k;
1589
1578
  }
1590
- function gc(e) {
1579
+ function fc(e) {
1591
1580
  return e !== void 0 && e != null && (!!e.enum || !!e.name) && !I.isArray(e);
1592
1581
  }
1593
1582
  function Zt(e, t, n) {
1594
1583
  return I.extend({}, {
1595
1584
  name: t,
1596
1585
  enum: n
1597
- }, e === R ? {} : e);
1586
+ }, e === k ? {} : e);
1598
1587
  }
1599
1588
  function Qt(e) {
1600
1589
  let t = {}, n = {};
@@ -1664,7 +1653,7 @@ function qe(e) {
1664
1653
  return st[e];
1665
1654
  throw new Error("Default name undefined for " + e);
1666
1655
  }
1667
- const X = [!1, !0], hc = {
1656
+ const X = [!1, !0], gc = {
1668
1657
  maxbins: [5, 10, 20],
1669
1658
  extent: [void 0],
1670
1659
  base: [10],
@@ -1675,12 +1664,12 @@ const X = [!1, !0], hc = {
1675
1664
  binned: [!1],
1676
1665
  anchor: [void 0],
1677
1666
  nice: [!0]
1678
- }, mc = {
1667
+ }, hc = {
1679
1668
  field: [void 0],
1680
1669
  op: ["min", "mean"],
1681
1670
  order: ["ascending", "descending"]
1682
- }, pc = {
1683
- type: [void 0, k.LOG],
1671
+ }, mc = {
1672
+ type: [void 0, R.LOG],
1684
1673
  domain: [void 0],
1685
1674
  base: [void 0],
1686
1675
  exponent: [1, 2],
@@ -1698,7 +1687,7 @@ const X = [!1, !0], hc = {
1698
1687
  range: [void 0],
1699
1688
  rangeStep: [17, 21],
1700
1689
  scheme: [void 0]
1701
- }, yc = {
1690
+ }, pc = {
1702
1691
  zindex: [1, 0],
1703
1692
  offset: [void 0],
1704
1693
  orient: [void 0],
@@ -1766,7 +1755,7 @@ const X = [!1, !0], hc = {
1766
1755
  titlePadding: [void 0],
1767
1756
  titleX: [void 0],
1768
1757
  titleY: [void 0]
1769
- }, Ec = {
1758
+ }, yc = {
1770
1759
  orient: ["left", "right"],
1771
1760
  format: [void 0],
1772
1761
  type: [void 0],
@@ -1829,7 +1818,7 @@ const X = [!1, !0], hc = {
1829
1818
  titleOpacity: [void 0],
1830
1819
  titleOrient: [void 0],
1831
1820
  titlePadding: [void 0]
1832
- }, Sc = {
1821
+ }, Ec = {
1833
1822
  mark: [Je, he, Ke, be, gn, Xe, pt],
1834
1823
  channel: [F, D, ie, Q, Te, ce],
1835
1824
  aggregate: [void 0, "mean"],
@@ -1847,11 +1836,11 @@ const X = [!1, !0], hc = {
1847
1836
  scale: [!0],
1848
1837
  axis: X,
1849
1838
  legend: X,
1850
- binProps: hc,
1851
- sortProps: mc,
1852
- scaleProps: pc,
1853
- axisProps: yc,
1854
- legendProps: Ec
1839
+ binProps: gc,
1840
+ sortProps: hc,
1841
+ scaleProps: mc,
1842
+ axisProps: pc,
1843
+ legendProps: yc
1855
1844
  };
1856
1845
  function en(e, t, n) {
1857
1846
  if (e === "field" || ue(e) && e.parent === "sort" && e.child === "field")
@@ -1868,7 +1857,7 @@ const it = {
1868
1857
  scale: { useUnaggregatedDomain: !0 }
1869
1858
  },
1870
1859
  propertyPrecedence: Kr.map(ft),
1871
- enum: Sc,
1860
+ enum: Ec,
1872
1861
  numberNominalProportion: 0.05,
1873
1862
  numberNominalLimit: 40,
1874
1863
  // CONSTRAINTS
@@ -1913,7 +1902,7 @@ const it = {
1913
1902
  // HIGH CARDINALITY STRINGS
1914
1903
  minPercentUniqueForKey: 0.8,
1915
1904
  minCardinalityForKey: 50
1916
- }, Nc = {
1905
+ }, Sc = {
1917
1906
  argmax: 1,
1918
1907
  argmin: 1,
1919
1908
  average: 1,
@@ -1937,24 +1926,24 @@ const it = {
1937
1926
  variance: 1,
1938
1927
  variancep: 1
1939
1928
  };
1940
- function _c(e) {
1929
+ function Nc(e) {
1941
1930
  return !!e && !!e.argmin;
1942
1931
  }
1943
- function Cc(e) {
1932
+ function _c(e) {
1944
1933
  return !!e && !!e.argmax;
1945
1934
  }
1946
- function Tc(e) {
1947
- return Cn(e) && !!Nc[e];
1935
+ function Cc(e) {
1936
+ return _n(e) && !!Sc[e];
1948
1937
  }
1949
- const Qr = ["count", "sum", "distinct", "valid", "missing"], Ac = ["mean", "average", "median", "q1", "q3", "min", "max"];
1950
- We(Ac);
1951
- function Oc(e) {
1952
- return An(e) && (e = Dc(e, void 0)), "bin" + le(e).map((t) => Ya(`_${t}_${e[t]}`)).join("");
1938
+ const Qr = ["count", "sum", "distinct", "valid", "missing"], Tc = ["mean", "average", "median", "q1", "q3", "min", "max"];
1939
+ We(Tc);
1940
+ function Ac(e) {
1941
+ return Tn(e) && (e = vc(e, void 0)), "bin" + le(e).map((t) => Wa(`_${t}_${e[t]}`)).join("");
1953
1942
  }
1954
1943
  function ei(e) {
1955
- return e === !0 || xc(e) && !e.binned;
1944
+ return e === !0 || Oc(e) && !e.binned;
1956
1945
  }
1957
- function xc(e) {
1946
+ function Oc(e) {
1958
1947
  return Cr(e);
1959
1948
  }
1960
1949
  function mn(e) {
@@ -1963,8 +1952,8 @@ function mn(e) {
1963
1952
  case Q:
1964
1953
  case Te:
1965
1954
  case ce:
1966
- case kt:
1967
1955
  case Rt:
1956
+ case kt:
1968
1957
  case Lt:
1969
1958
  case Ut:
1970
1959
  case Mt:
@@ -1985,29 +1974,29 @@ function Ce(e) {
1985
1974
  return !!e && (!!e.field || e.aggregate === "count");
1986
1975
  }
1987
1976
  function tn(e) {
1988
- return Ce(e) && Cn(e.field);
1977
+ return Ce(e) && _n(e.field);
1989
1978
  }
1990
- function bc(e) {
1979
+ function xc(e) {
1991
1980
  return !!e.op;
1992
1981
  }
1993
1982
  function nn(e, t = {}) {
1994
1983
  let n = e.field;
1995
1984
  const a = t.prefix;
1996
1985
  let r = t.suffix, o = "";
1997
- if (wc(e))
1998
- n = Ka("count");
1986
+ if (Ic(e))
1987
+ n = Va("count");
1999
1988
  else {
2000
1989
  let c;
2001
1990
  if (!t.nofn)
2002
- if (bc(e))
1991
+ if (xc(e))
2003
1992
  c = e.op;
2004
1993
  else {
2005
1994
  const { bin: f, aggregate: i, timeUnit: s } = e;
2006
- ei(f) ? (c = Oc(f), r = (t.binSuffix || "") + (t.suffix || "")) : i ? Cc(i) ? (o = `.${n}`, n = `argmax_${i.argmax}`) : _c(i) ? (o = `.${n}`, n = `argmin_${i.argmin}`) : c = String(i) : s && (c = String(s));
1995
+ ei(f) ? (c = Ac(f), r = (t.binSuffix || "") + (t.suffix || "")) : i ? _c(i) ? (o = `.${n}`, n = `argmax_${i.argmax}`) : Nc(i) ? (o = `.${n}`, n = `argmin_${i.argmin}`) : c = String(i) : s && (c = String(s));
2007
1996
  }
2008
1997
  c && (n = n ? `${c}_${n}` : c);
2009
1998
  }
2010
- return r && (n = `${n}_${r}`), a && (n = `${a}_${n}`), t.forAs ? n : t.expr ? za(n, t.expr) + o : qa(n) + o;
1999
+ return r && (n = `${n}_${r}`), a && (n = `${a}_${n}`), t.forAs ? n : t.expr ? Ya(n, t.expr) + o : za(n) + o;
2011
2000
  }
2012
2001
  function ni(e) {
2013
2002
  switch (e.type) {
@@ -2022,25 +2011,25 @@ function ni(e) {
2022
2011
  }
2023
2012
  throw new Error(ne.invalidFieldType(e.type));
2024
2013
  }
2025
- function Ic(e) {
2014
+ function bc(e) {
2026
2015
  return !ni(e);
2027
2016
  }
2028
- function wc(e) {
2017
+ function Ic(e) {
2029
2018
  return e.aggregate === "count";
2030
2019
  }
2031
- function vc(e) {
2020
+ function wc(e) {
2032
2021
  if (Ce(e))
2033
2022
  return e;
2034
2023
  if (ti(e))
2035
2024
  return e.condition;
2036
2025
  }
2037
- function Dc(e, t) {
2038
- return An(e) ? { maxbins: mn(t) } : e === "binned" ? {
2026
+ function vc(e, t) {
2027
+ return Tn(e) ? { maxbins: mn(t) } : e === "binned" ? {
2039
2028
  binned: !0
2040
2029
  } : !e.maxbins && !e.step ? Object.assign({}, e, { maxbins: mn(t) }) : e;
2041
2030
  }
2042
2031
  const Me = { compatible: !0 };
2043
- function Fc(e, t) {
2032
+ function Dc(e, t) {
2044
2033
  const n = e.type;
2045
2034
  if (n === "geojson" && t !== "shape")
2046
2035
  return {
@@ -2051,7 +2040,7 @@ function Fc(e, t) {
2051
2040
  case "row":
2052
2041
  case "column":
2053
2042
  case "facet":
2054
- return Ic(e) ? {
2043
+ return bc(e) ? {
2055
2044
  compatible: !1,
2056
2045
  warning: ne.facetChannelShouldBeDiscrete(t)
2057
2046
  } : Me;
@@ -2098,9 +2087,9 @@ function Fc(e, t) {
2098
2087
  }
2099
2088
  throw new Error("channelCompatability not implemented for channel " + t);
2100
2089
  }
2101
- function kc(e, t, n, a) {
2090
+ function Fc(e, t, n, a) {
2102
2091
  const r = Rc(t, n, a), { type: o } = e;
2103
- return io(t) ? o !== void 0 ? jr(t, o) ? Br(o, n.type) ? o : (Ae(ne.scaleTypeNotWorkWithFieldDef(o, r)), r) : (Ae(ne.scaleTypeNotWorkWithChannel(t, o, r)), r) : r : null;
2092
+ return ro(t) ? o !== void 0 ? jr(t, o) ? Br(o, n.type) ? o : (Ae(ne.scaleTypeNotWorkWithFieldDef(o, r)), r) : (Ae(ne.scaleTypeNotWorkWithChannel(t, o, r)), r) : r : null;
2104
2093
  }
2105
2094
  function Rc(e, t, n) {
2106
2095
  switch (t.type) {
@@ -2120,7 +2109,7 @@ var oe;
2120
2109
  (function(e) {
2121
2110
  e.QUANTITATIVE = P, e.ORDINAL = ae, e.TEMPORAL = Y, e.NOMINAL = re, e.KEY = "key";
2122
2111
  })(oe || (oe = {}));
2123
- function er(e) {
2112
+ function Qn(e) {
2124
2113
  return e === ae || e === re || e === oe.KEY;
2125
2114
  }
2126
2115
  class K {
@@ -2152,20 +2141,20 @@ class K {
2152
2141
  return new K(this.index);
2153
2142
  }
2154
2143
  }
2155
- function tr(e, t) {
2144
+ function er(e, t) {
2156
2145
  const n = e && e[t];
2157
- return n ? Ft(n) ? Wa(n, (a) => !!a.field) : Ce(n) || ti(n) : !1;
2146
+ return n ? Ft(n) ? Ha(n, (a) => !!a.field) : Ce(n) || ti(n) : !1;
2158
2147
  }
2159
- const Uc = {
2148
+ const kc = {
2160
2149
  zero: 1,
2161
2150
  center: 1,
2162
2151
  normalize: 1
2163
2152
  };
2164
- function Mc(e) {
2165
- return !!Uc[e];
2153
+ function Uc(e) {
2154
+ return !!kc[e];
2166
2155
  }
2167
- const Pc = [he, be, hn, Je, yt, Et, Ke, pt, Xe], Lc = [he, be];
2168
- function $c(e) {
2156
+ const Mc = [he, be, hn, Je, yt, Et, Ke, pt, Xe], Pc = [he, be];
2157
+ function Lc(e) {
2169
2158
  const t = e.x, n = e.y;
2170
2159
  if (Ce(t) && Ce(n))
2171
2160
  if (t.type === "quantitative" && n.type === "quantitative") {
@@ -2188,18 +2177,18 @@ function $c(e) {
2188
2177
  return "y";
2189
2178
  }
2190
2179
  }
2191
- function Bc(e, t, n, a = {}) {
2192
- const r = tc(e) ? e.type : e;
2193
- if (!z(Pc, r))
2180
+ function $c(e, t, n, a = {}) {
2181
+ const r = ec(e) ? e.type : e;
2182
+ if (!z(Mc, r))
2194
2183
  return null;
2195
- const o = $c(t);
2184
+ const o = Lc(t);
2196
2185
  if (!o)
2197
2186
  return null;
2198
- const c = t[o], f = tn(c) ? nn(c, {}) : void 0, i = o === "x" ? "y" : "x", s = t[i], l = tn(s) ? nn(s, {}) : void 0, u = kr.reduce((g, h) => {
2199
- if (h !== "tooltip" && tr(t, h)) {
2187
+ const c = t[o], f = tn(c) ? nn(c, {}) : void 0, i = o === "x" ? "y" : "x", s = t[i], l = tn(s) ? nn(s, {}) : void 0, u = Rr.reduce((g, h) => {
2188
+ if (h !== "tooltip" && er(t, h)) {
2200
2189
  const p = t[h];
2201
2190
  (Ft(p) ? p : [p]).forEach((y) => {
2202
- const E = vc(y);
2191
+ const E = wc(y);
2203
2192
  if (E.aggregate)
2204
2193
  return;
2205
2194
  const N = tn(E) ? nn(E, {}) : void 0;
@@ -2211,42 +2200,42 @@ function Bc(e, t, n, a = {}) {
2211
2200
  return g;
2212
2201
  }, []);
2213
2202
  let d;
2214
- if (c.stack !== void 0 ? An(c.stack) ? d = c.stack ? "zero" : null : d = c.stack : u.length > 0 && (z(Lc, r) ? d = Va(n, "zero") : d = n), !d || !Mc(d))
2203
+ if (c.stack !== void 0 ? Tn(c.stack) ? d = c.stack ? "zero" : null : d = c.stack : u.length > 0 && (z(Pc, r) ? d = qa(n, "zero") : d = n), !d || !Uc(d))
2215
2204
  return null;
2216
- if (c.scale && c.scale.type && c.scale.type !== k.LINEAR) {
2205
+ if (c.scale && c.scale.type && c.scale.type !== R.LINEAR) {
2217
2206
  if (a.disallowNonLinearStack)
2218
2207
  return null;
2219
2208
  Ae(ne.cannotStackNonLinearScale(c.scale.type));
2220
2209
  }
2221
- return tr(t, o === F ? On : xn) ? (c.stack !== void 0 && Ae(ne.cannotStackRangedMark(o)), null) : (c.aggregate && !z(Qr, c.aggregate) && Ae(ne.stackNonSummativeAggregate(c.aggregate)), {
2210
+ return er(t, o === F ? An : On) ? (c.stack !== void 0 && Ae(ne.cannotStackRangedMark(o)), null) : (c.aggregate && !z(Qr, c.aggregate) && Ae(ne.stackNonSummativeAggregate(c.aggregate)), {
2222
2211
  groupbyChannel: s ? i : void 0,
2223
2212
  fieldChannel: o,
2224
- impute: Qs(r),
2213
+ impute: Zs(r),
2225
2214
  stackBy: u,
2226
2215
  offset: d
2227
2216
  });
2228
2217
  }
2229
- function jc(e) {
2218
+ function Bc(e) {
2230
2219
  return me(e.encodings, (t) => b(t) && !O(t.aggregate) && !!t.aggregate || jt(t));
2231
2220
  }
2232
2221
  function ri(e) {
2233
- if (!Wc(e))
2222
+ if (!Hc(e))
2234
2223
  return null;
2235
2224
  const t = oi(e.encodings, { schema: null, wildcardMode: "null" }), n = e.mark;
2236
- return Bc(n, t, void 0, { disallowNonLinearStack: !0 });
2225
+ return $c(n, t, void 0, { disallowNonLinearStack: !0 });
2237
2226
  }
2238
- function Gc(e) {
2227
+ function jc(e) {
2239
2228
  for (const t of e.encodings)
2240
2229
  if (t[m.STACK] !== void 0 && !O(t[m.STACK]))
2241
2230
  return t[m.STACK];
2242
2231
  }
2243
- function Hc(e) {
2232
+ function Gc(e) {
2244
2233
  for (const t of e.encodings)
2245
2234
  if (t[m.STACK] !== void 0 && !O(t.channel))
2246
2235
  return t.channel;
2247
2236
  return null;
2248
2237
  }
2249
- function Wc(e) {
2238
+ function Hc(e) {
2250
2239
  if (O(e.mark))
2251
2240
  return !1;
2252
2241
  const t = [
@@ -2259,7 +2248,7 @@ function Wc(e) {
2259
2248
  m.SCALE,
2260
2249
  pe("scale", "type"),
2261
2250
  m.TYPE
2262
- ], n = I.toMap(Hs(Js, t)), a = e.encodings.filter((r) => !te(r));
2251
+ ], n = I.toMap(Gs(Xs, t)), a = e.encodings.filter((r) => !te(r));
2263
2252
  for (const r of a)
2264
2253
  if (ii(r, { exclude: n }))
2265
2254
  return !1;
@@ -2273,21 +2262,21 @@ function ii(e, t = {}) {
2273
2262
  return !0;
2274
2263
  return !1;
2275
2264
  }
2276
- function Yc(e) {
2277
- return e.map((t) => zc(t));
2265
+ function Wc(e) {
2266
+ return e.map((t) => Yc(t));
2278
2267
  }
2279
- function zc(e) {
2268
+ function Yc(e) {
2280
2269
  return (t) => e[t] !== void 0 ? e[t] : t;
2281
2270
  }
2282
2271
  function we(e, t) {
2283
- return O(e) ? !Bt(e) && e.enum ? R + JSON.stringify(e.enum) : R : t ? t(e) : e;
2272
+ return O(e) ? !Bt(e) && e.enum ? k + JSON.stringify(e.enum) : k : t ? t(e) : e;
2284
2273
  }
2285
2274
  function gt(e, t) {
2286
2275
  return t ? t(e) : e;
2287
2276
  }
2288
- const Ln = new K(), $n = (
2277
+ const Pn = new K(), Ln = (
2289
2278
  // FIXME: remove manual TRANSFORM concat once we really support enumerating transform.
2290
- [].concat(Kr, Un, [m.TRANSFORM, m.STACK], zr).reduce((e, t) => e.set(t, !0), new K())
2279
+ [].concat(Kr, kn, [m.TRANSFORM, m.STACK], zr).reduce((e, t) => e.set(t, !0), new K())
2291
2280
  ), pn = {
2292
2281
  axis: { x: !0, y: !0, row: !0, column: !0 },
2293
2282
  legend: { color: !0, opacity: !0, size: !0, shape: !0 },
@@ -2295,7 +2284,7 @@ const Ln = new K(), $n = (
2295
2284
  sort: { x: !0, y: !0, path: !0, order: !0 },
2296
2285
  stack: { x: !0, y: !0 }
2297
2286
  };
2298
- function je(e, t = $n, n = Ln) {
2287
+ function je(e, t = Ln, n = Pn) {
2299
2288
  const a = [];
2300
2289
  t.get(m.MARK) && a.push(we(e.mark, n.get(m.MARK))), e.transform && e.transform.length > 0 && a.push("transform:" + JSON.stringify(e.transform));
2301
2290
  let r;
@@ -2303,7 +2292,7 @@ function je(e, t = $n, n = Ln) {
2303
2292
  const o = e.encodings.reduce((c, f) => {
2304
2293
  if (!te(f)) {
2305
2294
  let i;
2306
- r && f.channel === r.fieldChannel ? i = nr(Object.assign({}, f, { stack: r.offset }), t, n) : i = nr(f, t, n), i && c.push(i);
2295
+ r && f.channel === r.fieldChannel ? i = tr(Object.assign({}, f, { stack: r.offset }), t, n) : i = tr(f, t, n), i && c.push(i);
2307
2296
  }
2308
2297
  return c;
2309
2298
  }, []).sort().join("|");
@@ -2318,7 +2307,7 @@ function je(e, t = $n, n = Ln) {
2318
2307
  }
2319
2308
  return a.join("|");
2320
2309
  }
2321
- function nr(e, t = $n, n = Ln) {
2310
+ function tr(e, t = Ln, n = Pn) {
2322
2311
  const a = [];
2323
2312
  if (t.get(m.CHANNEL) && a.push(we(e.channel, n.get(m.CHANNEL))), b(e)) {
2324
2313
  const r = ai(e, t, n);
@@ -2326,10 +2315,10 @@ function nr(e, t = $n, n = Ln) {
2326
2315
  } else ee(e) ? a.push(e.value) : G(e) && a.push("autocount()");
2327
2316
  return a.join(":");
2328
2317
  }
2329
- function ai(e, t = $n, n = Ln) {
2318
+ function ai(e, t = Ln, n = Pn) {
2330
2319
  if (t.get(m.AGGREGATE) && te(e))
2331
2320
  return "-";
2332
- const a = qc(e, t, n), r = Vc(e, t, n);
2321
+ const a = zc(e, t, n), r = qc(e, t, n);
2333
2322
  let o;
2334
2323
  if (b(e)) {
2335
2324
  if (o = t.get("field") ? we(e.field, n.get("field")) : "...", t.get(m.TYPE))
@@ -2344,9 +2333,9 @@ function ai(e, t = $n, n = Ln) {
2344
2333
  return "," + c.key + "=" + f;
2345
2334
  }).join("");
2346
2335
  } else G(e) && (o = "*,q");
2347
- return o ? a ? (I.isString(a) ? a : R + (I.keys(a).length > 0 ? JSON.stringify(a) : "")) + "(" + o + ")" : o : null;
2336
+ return o ? a ? (I.isString(a) ? a : k + (I.keys(a).length > 0 ? JSON.stringify(a) : "")) + "(" + o + ")" : o : null;
2348
2337
  }
2349
- function qc(e, t, n) {
2338
+ function zc(e, t, n) {
2350
2339
  if (t.get(m.AGGREGATE) && e.aggregate && !O(e.aggregate))
2351
2340
  return gt(e.aggregate, n.get(m.AGGREGATE));
2352
2341
  if (t.get(m.AGGREGATE) && jt(e))
@@ -2364,7 +2353,7 @@ function qc(e, t, n) {
2364
2353
  return a && e.hasFn && (a.hasFn = !0), a;
2365
2354
  }
2366
2355
  }
2367
- function Vc(e, t, n) {
2356
+ function qc(e, t, n) {
2368
2357
  const a = [];
2369
2358
  if (!I.isBoolean(e.bin) && !Bt(e.bin)) {
2370
2359
  const r = e.bin;
@@ -2425,7 +2414,7 @@ function rn(e, t, n) {
2425
2414
  a.push("");
2426
2415
  return a;
2427
2416
  }
2428
- var rr;
2417
+ var nr;
2429
2418
  (function(e) {
2430
2419
  function t(o, c) {
2431
2420
  let f = c.indexOf("(") !== -1 ? r(c) : n(rn(c, ",", 2));
@@ -2434,7 +2423,7 @@ var rr;
2434
2423
  e.encoding = t;
2435
2424
  function n(o) {
2436
2425
  const c = {};
2437
- c.field = o[0], c.type = Is(o[1].toUpperCase()) || "?";
2426
+ c.field = o[0], c.type = bs(o[1].toUpperCase()) || "?";
2438
2427
  let f = o[2], i = 0, s = 0;
2439
2428
  for (; s < f.length; ) {
2440
2429
  let l = f.indexOf("=", s), u;
@@ -2475,16 +2464,16 @@ var rr;
2475
2464
  return Object.assign({}, c, n(rn(o.substring(f + 2, o.length - 1), ",", 2)));
2476
2465
  } else {
2477
2466
  let f = o.substring(0, o.indexOf("(")), i = o.substring(f.length + 1, o.length - 1), s = rn(i, ",", 2);
2478
- if (Tc(f))
2467
+ if (Cc(f))
2479
2468
  return Object.assign({ aggregate: f }, n(s));
2480
- if (lc(f))
2469
+ if (uc(f))
2481
2470
  return Object.assign({ timeUnit: f }, n(s));
2482
2471
  if (f === "bin")
2483
2472
  return Object.assign({ bin: {} }, n(s));
2484
2473
  }
2485
2474
  }
2486
2475
  e.fn = r;
2487
- })(rr || (rr = {}));
2476
+ })(nr || (nr = {}));
2488
2477
  function ee(e) {
2489
2478
  return e != null && e.value !== void 0;
2490
2479
  }
@@ -2500,7 +2489,7 @@ function te(e) {
2500
2489
  function jt(e) {
2501
2490
  return G(e) && e.autoCount === !0;
2502
2491
  }
2503
- const Kc = [
2492
+ const Vc = [
2504
2493
  m.AGGREGATE,
2505
2494
  m.BIN,
2506
2495
  m.TIMEUNIT,
@@ -2522,7 +2511,7 @@ function oi(e, t) {
2522
2511
  const { channel: o } = r;
2523
2512
  if (O(o))
2524
2513
  throw new Error("Cannot convert wildcard channel to a fixed channel");
2525
- const c = ee(r) ? Xc(r) : Bn(r, t);
2514
+ const c = ee(r) ? Kc(r) : $n(r, t);
2526
2515
  if (c === null) {
2527
2516
  if (t.wildcardMode === "null")
2528
2517
  return null;
@@ -2532,12 +2521,12 @@ function oi(e, t) {
2532
2521
  }
2533
2522
  return a;
2534
2523
  }
2535
- function Xc(e) {
2524
+ function Kc(e) {
2536
2525
  const { value: t } = e;
2537
2526
  return O(t) ? null : { value: t };
2538
2527
  }
2539
- function Bn(e, t = {}) {
2540
- const { props: n = Kc, schema: a, wildcardMode: r = "skip" } = t;
2528
+ function $n(e, t = {}) {
2529
+ const { props: n = Vc, schema: a, wildcardMode: r = "skip" } = t;
2541
2530
  if (b(e)) {
2542
2531
  const o = {};
2543
2532
  for (const c of n) {
@@ -2584,13 +2573,13 @@ function Ve(e) {
2584
2573
  }
2585
2574
  function _e(e) {
2586
2575
  if (b(e)) {
2587
- const t = Bn(e, { props: ["bin", "timeUnit", "type"] });
2576
+ const t = $n(e, { props: ["bin", "timeUnit", "type"] });
2588
2577
  return ni(t) || !!t.timeUnit;
2589
2578
  }
2590
2579
  return !1;
2591
2580
  }
2592
2581
  function De(e) {
2593
- const t = e.scale === !0 || e.scale === R ? {} : e.scale || {}, { type: n, channel: a, timeUnit: r, bin: o } = e, c = void 0;
2582
+ const t = e.scale === !0 || e.scale === k ? {} : e.scale || {}, { type: n, channel: a, timeUnit: r, bin: o } = e, c = void 0;
2594
2583
  if (O(t.type) || O(n) || O(a) || O(o))
2595
2584
  return;
2596
2585
  if (t.type)
@@ -2601,7 +2590,7 @@ function De(e) {
2601
2590
  type: n === oe.KEY ? "nominal" : n,
2602
2591
  bin: o
2603
2592
  };
2604
- return kc({ type: t.type }, a, i, c);
2593
+ return Fc({ type: t.type }, a, i, c);
2605
2594
  }
2606
2595
  var ct = { exports: {} }, an = /* @__PURE__ */ new Date(), on = /* @__PURE__ */ new Date();
2607
2596
  function W(e, t, n, a) {
@@ -2743,7 +2732,7 @@ const yi = W(function(e) {
2743
2732
  }, function(e) {
2744
2733
  return e.getUTCDate() - 1;
2745
2734
  });
2746
- function ke(e) {
2735
+ function Re(e) {
2747
2736
  return W(function(t) {
2748
2737
  t.setUTCHours(0, 0, 0, 0), t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7);
2749
2738
  }, function(t, n) {
@@ -2752,7 +2741,7 @@ function ke(e) {
2752
2741
  return (n - t) / 6048e5;
2753
2742
  });
2754
2743
  }
2755
- var Nt = ke(0), Ti = ke(1), Ai = ke(2), Oi = ke(3), xi = ke(4), bi = ke(5), Ii = ke(6);
2744
+ var Nt = Re(0), Ti = Re(1), Ai = Re(2), Oi = Re(3), xi = Re(4), bi = Re(5), Ii = Re(6);
2756
2745
  const wi = W(function(e) {
2757
2746
  e.setUTCHours(0, 0, 0, 0), e.setUTCDate(1);
2758
2747
  }, function(e, t) {
@@ -2770,76 +2759,76 @@ const wi = W(function(e) {
2770
2759
  }, function(e) {
2771
2760
  return e.getUTCFullYear();
2772
2761
  });
2773
- var Di = Ze.range, Jc = si.range, Zc = ci.range, Qc = ui.range, eu = li.range, tu = St.range, nu = di.range, ru = fi.range, iu = gi.range, au = hi.range, ou = mi.range, su = pi.range, cu = St.range, uu = yi.range, lu = Ei.range, du = Ze, fu = Di, gu = Si.range, hu = Ni.range, mu = _i.range, pu = Ci.range, yu = Nt.range, Eu = Ti.range, Su = Ai.range, Nu = Oi.range, _u = xi.range, Cu = bi.range, Tu = Ii.range, Au = Nt.range, Ou = wi.range, xu = vi.range;
2774
- const bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2762
+ var Di = Ze.range, Xc = si.range, Jc = ci.range, Zc = ui.range, Qc = li.range, eu = St.range, tu = di.range, nu = fi.range, ru = gi.range, iu = hi.range, au = mi.range, ou = pi.range, su = St.range, cu = yi.range, uu = Ei.range, lu = Ze, du = Di, fu = Si.range, gu = Ni.range, hu = _i.range, mu = Ci.range, pu = Nt.range, yu = Ti.range, Eu = Ai.range, Su = Oi.range, Nu = xi.range, _u = bi.range, Cu = Ii.range, Tu = Nt.range, Au = wi.range, Ou = vi.range;
2763
+ const xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2775
2764
  __proto__: null,
2776
2765
  day: li,
2777
- days: eu,
2766
+ days: Qc,
2778
2767
  friday: mi,
2779
- fridays: ou,
2768
+ fridays: au,
2780
2769
  hour: ui,
2781
- hours: Qc,
2770
+ hours: Zc,
2782
2771
  interval: W,
2783
2772
  millisecond: Ze,
2784
2773
  milliseconds: Di,
2785
2774
  minute: ci,
2786
- minutes: Zc,
2775
+ minutes: Jc,
2787
2776
  monday: di,
2788
- mondays: nu,
2777
+ mondays: tu,
2789
2778
  month: yi,
2790
- months: uu,
2779
+ months: cu,
2791
2780
  saturday: pi,
2792
- saturdays: su,
2781
+ saturdays: ou,
2793
2782
  second: si,
2794
- seconds: Jc,
2783
+ seconds: Xc,
2795
2784
  sunday: St,
2796
- sundays: tu,
2785
+ sundays: eu,
2797
2786
  thursday: hi,
2798
- thursdays: au,
2787
+ thursdays: iu,
2799
2788
  tuesday: fi,
2800
- tuesdays: ru,
2789
+ tuesdays: nu,
2801
2790
  utcDay: Ci,
2802
- utcDays: pu,
2791
+ utcDays: mu,
2803
2792
  utcFriday: bi,
2804
- utcFridays: Cu,
2793
+ utcFridays: _u,
2805
2794
  utcHour: _i,
2806
- utcHours: mu,
2807
- utcMillisecond: du,
2808
- utcMilliseconds: fu,
2795
+ utcHours: hu,
2796
+ utcMillisecond: lu,
2797
+ utcMilliseconds: du,
2809
2798
  utcMinute: Ni,
2810
- utcMinutes: hu,
2799
+ utcMinutes: gu,
2811
2800
  utcMonday: Ti,
2812
- utcMondays: Eu,
2801
+ utcMondays: yu,
2813
2802
  utcMonth: wi,
2814
- utcMonths: Ou,
2803
+ utcMonths: Au,
2815
2804
  utcSaturday: Ii,
2816
- utcSaturdays: Tu,
2805
+ utcSaturdays: Cu,
2817
2806
  utcSecond: Si,
2818
- utcSeconds: gu,
2807
+ utcSeconds: fu,
2819
2808
  utcSunday: Nt,
2820
- utcSundays: yu,
2809
+ utcSundays: pu,
2821
2810
  utcThursday: xi,
2822
- utcThursdays: _u,
2811
+ utcThursdays: Nu,
2823
2812
  utcTuesday: Ai,
2824
- utcTuesdays: Su,
2813
+ utcTuesdays: Eu,
2825
2814
  utcWednesday: Oi,
2826
- utcWednesdays: Nu,
2815
+ utcWednesdays: Su,
2827
2816
  utcWeek: Nt,
2828
- utcWeeks: Au,
2817
+ utcWeeks: Tu,
2829
2818
  utcYear: vi,
2830
- utcYears: xu,
2819
+ utcYears: Ou,
2831
2820
  wednesday: gi,
2832
- wednesdays: iu,
2821
+ wednesdays: ru,
2833
2822
  week: St,
2834
- weeks: cu,
2823
+ weeks: su,
2835
2824
  year: Ei,
2836
- years: lu
2837
- }, Symbol.toStringTag, { value: "Module" })), Iu = /* @__PURE__ */ na(bu);
2838
- var ir;
2839
- function wu() {
2840
- if (ir) return ct.exports;
2841
- ir = 1;
2842
- var e = Iu, t = /* @__PURE__ */ new Date(), n = new Date(0, 0, 1).setFullYear(0), a = new Date(Date.UTC(0, 0, 1)).setUTCFullYear(0);
2825
+ years: uu
2826
+ }, Symbol.toStringTag, { value: "Module" })), bu = /* @__PURE__ */ na(xu);
2827
+ var rr;
2828
+ function Iu() {
2829
+ if (rr) return ct.exports;
2830
+ rr = 1;
2831
+ var e = bu, t = /* @__PURE__ */ new Date(), n = new Date(0, 0, 1).setFullYear(0), a = new Date(Date.UTC(0, 0, 1)).setUTCFullYear(0);
2843
2832
  function r(d) {
2844
2833
  return t.setTime(+d), t;
2845
2834
  }
@@ -3086,11 +3075,11 @@ function wu() {
3086
3075
  }
3087
3076
  return ct.exports = u(f), ct.exports.utc = u(i), ct.exports;
3088
3077
  }
3089
- var sn, ar;
3090
- function vu() {
3091
- if (ar) return sn;
3092
- ar = 1;
3093
- var e = rt(), t = wu(), n = 1e-15;
3078
+ var sn, ir;
3079
+ function wu() {
3080
+ if (ir) return sn;
3081
+ ir = 1;
3082
+ var e = rt(), t = Iu(), n = 1e-15;
3094
3083
  function a(s) {
3095
3084
  if (!s)
3096
3085
  throw Error("Missing binning options.");
@@ -3152,12 +3141,12 @@ function vu() {
3152
3141
  return E.unit = y, E.index = i, s.raw || (E.value = f), E;
3153
3142
  }, sn = a, sn;
3154
3143
  }
3155
- var Du = vu();
3156
- const Fu = /* @__PURE__ */ pr(Du);
3157
- var cn, or;
3144
+ var vu = wu();
3145
+ const Du = /* @__PURE__ */ pr(vu);
3146
+ var cn, ar;
3158
3147
  function Fi() {
3159
- if (or) return cn;
3160
- or = 1;
3148
+ if (ar) return cn;
3149
+ ar = 1;
3161
3150
  var e = rt(), t = "__types__", n = {
3162
3151
  boolean: e.boolean,
3163
3152
  integer: e.number,
@@ -3225,9 +3214,9 @@ function Fi() {
3225
3214
  }
3226
3215
  return f.annotation = r, f.all = i, f.infer = s, f.inferAll = l, f.parsers = n, cn = f, cn;
3227
3216
  }
3228
- var ku = Fi(), un = { exports: {} }, ln = { exports: {} }, sr;
3217
+ var Fu = Fi(), un = { exports: {} }, ln = { exports: {} }, or;
3229
3218
  function Ru() {
3230
- return sr || (sr = 1, function(e) {
3219
+ return or || (or = 1, function(e) {
3231
3220
  var t = rt(), n = e.exports;
3232
3221
  n.repeat = function(a, r) {
3233
3222
  var o = Array(r), c;
@@ -3310,9 +3299,9 @@ function Ru() {
3310
3299
  };
3311
3300
  }(ln)), ln.exports;
3312
3301
  }
3313
- var cr;
3314
- function Uu() {
3315
- return cr || (cr = 1, function(e) {
3302
+ var sr;
3303
+ function ku() {
3304
+ return sr || (sr = 1, function(e) {
3316
3305
  var t = rt(), n = Fi(), a = Ru(), r = e.exports;
3317
3306
  r.unique = function(i, s, l) {
3318
3307
  s = t.$(s), l = l || [];
@@ -3591,11 +3580,11 @@ function Uu() {
3591
3580
  };
3592
3581
  }(un)), un.exports;
3593
3582
  }
3594
- var Mu = Uu();
3595
- const Pu = Fu;
3596
- function Lu(e, t = {}, n = { fields: [] }) {
3583
+ var Uu = ku();
3584
+ const Mu = Du;
3585
+ function Pu(e, t = {}, n = { fields: [] }) {
3597
3586
  t = I.extend({}, it, t);
3598
- let a = Mu.summary(e), r = ku.inferAll(e), o = n.fields.reduce((i, s) => (i[s.name] = s, i), {}), c = a.map(function(i, s) {
3587
+ let a = Uu.summary(e), r = Fu.inferAll(e), o = n.fields.reduce((i, s) => (i[s.name] = s, i), {}), c = a.map(function(i, s) {
3599
3588
  const l = i.field, u = r[l] === "date" ? $.DATETIME : r[l];
3600
3589
  let d = i.distinct, g;
3601
3590
  if (u === $.NUMBER)
@@ -3627,12 +3616,12 @@ function Lu(e, t = {}, n = { fields: [] }) {
3627
3616
  for (let i of c)
3628
3617
  if (i.vlType === P)
3629
3618
  for (let s of t.enum.binProps.maxbins)
3630
- i.binStats[s] = ki(s, i.stats);
3619
+ i.binStats[s] = Ri(s, i.stats);
3631
3620
  else if (i.vlType === Y)
3632
3621
  for (let s of t.enum.timeUnit)
3633
- s !== void 0 && (i.timeStats[s] = Ri(s, i.stats));
3622
+ s !== void 0 && (i.timeStats[s] = ki(s, i.stats));
3634
3623
  const f = Object.assign({}, n, { fields: c });
3635
- return new $u(f);
3624
+ return new Lu(f);
3636
3625
  }
3637
3626
  const ut = {
3638
3627
  nominal: 0,
@@ -3641,7 +3630,7 @@ const ut = {
3641
3630
  temporal: 3,
3642
3631
  quantitative: 4
3643
3632
  };
3644
- class $u {
3633
+ class Lu {
3645
3634
  constructor(t) {
3646
3635
  this._tableSchema = t, t.fields.sort(function(n, a) {
3647
3636
  return ut[n.vlType] < ut[a.vlType] ? -1 : ut[n.vlType] > ut[a.vlType] ? 1 : n.name.localeCompare(a.name);
@@ -3689,7 +3678,7 @@ class $u {
3689
3678
  enum: [!0, !1]
3690
3679
  } : o = t.bin;
3691
3680
  const c = o.maxbins;
3692
- return r.binStats[c] || (r.binStats[c] = ki(c, r.stats)), r.binStats[c].distinct;
3681
+ return r.binStats[c] || (r.binStats[c] = Ri(c, r.stats)), r.binStats[c].distinct;
3693
3682
  } else if (t.timeUnit) {
3694
3683
  if (n)
3695
3684
  switch (t.timeUnit) {
@@ -3712,9 +3701,9 @@ class $u {
3712
3701
  return 1e3;
3713
3702
  }
3714
3703
  let o = t.timeUnit, c = r.timeStats;
3715
- return (!c || !c[o]) && (c = Object.assign({}, c, { [o]: Ri(t.timeUnit, r.stats) })), a ? c[o].distinct - ur(c[o].unique, ["Invalid Date", null]) : c[o].distinct;
3704
+ return (!c || !c[o]) && (c = Object.assign({}, c, { [o]: ki(t.timeUnit, r.stats) })), a ? c[o].distinct - cr(c[o].unique, ["Invalid Date", null]) : c[o].distinct;
3716
3705
  } else
3717
- return r ? a ? r.stats.distinct - ur(r.stats.unique, [NaN, null]) : r.stats.distinct : null;
3706
+ return r ? a ? r.stats.distinct - cr(r.stats.unique, [NaN, null]) : r.stats.distinct : null;
3718
3707
  }
3719
3708
  /**
3720
3709
  * Given an EncodingQuery with a timeUnit, returns true if the date field
@@ -3754,23 +3743,23 @@ class $u {
3754
3743
  return n ? n.stats : null;
3755
3744
  }
3756
3745
  }
3757
- function ki(e, t) {
3758
- const n = Pu({
3746
+ function Ri(e, t) {
3747
+ const n = Mu({
3759
3748
  min: t.min,
3760
3749
  max: t.max,
3761
3750
  maxbins: e
3762
3751
  }), a = I.extend({}, t);
3763
- return a.unique = Bu(n, t.unique), a.distinct = (n.stop - n.start) / n.step, a.min = n.start, a.max = n.stop, a;
3752
+ return a.unique = $u(n, t.unique), a.distinct = (n.stop - n.start) / n.step, a.min = n.start, a.max = n.stop, a;
3764
3753
  }
3765
- function Ri(e, t) {
3754
+ function ki(e, t) {
3766
3755
  const n = I.extend({}, t);
3767
3756
  let a = {};
3768
3757
  return I.keys(t.unique).forEach(function(r) {
3769
3758
  let o = r === "null" ? null : new Date(r), c;
3770
- o === null ? c = null : isNaN(o.getTime()) ? c = "Invalid Date" : c = (e === j.DAY ? o.getDay() : fc(e, o)).toString(), a[c] = (a[c] || 0) + t.unique[r];
3759
+ o === null ? c = null : isNaN(o.getTime()) ? c = "Invalid Date" : c = (e === j.DAY ? o.getDay() : dc(e, o)).toString(), a[c] = (a[c] || 0) + t.unique[r];
3771
3760
  }), n.unique = a, n.distinct = I.keys(a).length, n;
3772
3761
  }
3773
- function Bu(e, t) {
3762
+ function $u(e, t) {
3774
3763
  const n = {};
3775
3764
  for (let a in t) {
3776
3765
  let r;
@@ -3778,7 +3767,7 @@ function Bu(e, t) {
3778
3767
  }
3779
3768
  return n;
3780
3769
  }
3781
- function ur(e, t) {
3770
+ function cr(e, t) {
3782
3771
  return t.reduce(function(n, a) {
3783
3772
  return e[a] ? n + 1 : n;
3784
3773
  }, 0);
@@ -3828,7 +3817,7 @@ const Pi = [
3828
3817
  properties: [m.TYPE, m.AGGREGATE],
3829
3818
  allowWildcardForProperties: !1,
3830
3819
  strict: !0,
3831
- satisfy: (e, t, n, a) => e.aggregate ? !er(e.type) : !0
3820
+ satisfy: (e, t, n, a) => e.aggregate ? !Qn(e.type) : !0
3832
3821
  },
3833
3822
  {
3834
3823
  name: "asteriskFieldWithCountOnly",
@@ -3871,8 +3860,8 @@ const Pi = [
3871
3860
  allowWildcardForProperties: !1,
3872
3861
  strict: !0,
3873
3862
  satisfy: (e, t, n, a) => {
3874
- const r = Object.assign({ field: "f" }, Bn(e, { schema: t, props: ["bin", "timeUnit", "type"] })), { compatible: o } = Fc(r, e.channel);
3875
- return o ? !0 : !!((e.channel === "row" || e.channel === "column") && (ic(r.timeUnit) || ac(r.timeUnit)));
3863
+ const r = Object.assign({ field: "f" }, $n(e, { schema: t, props: ["bin", "timeUnit", "type"] })), { compatible: o } = Dc(r, e.channel);
3864
+ return o ? !0 : !!((e.channel === "row" || e.channel === "column") && (rc(r.timeUnit) || ic(r.timeUnit)));
3876
3865
  }
3877
3866
  },
3878
3867
  {
@@ -3955,7 +3944,7 @@ const Pi = [
3955
3944
  for (let c in o) {
3956
3945
  if (!o.hasOwnProperty(c) || c === "type" || c === "name" || c === "enum")
3957
3946
  continue;
3958
- if (!(Bs(r, c) === void 0))
3947
+ if (!($s(r, c) === void 0))
3959
3948
  return !1;
3960
3949
  }
3961
3950
  }
@@ -4037,18 +4026,18 @@ const Pi = [
4037
4026
  satisfy: (e, t, n, a) => {
4038
4027
  if (e.scale) {
4039
4028
  const r = e.type, o = De(e);
4040
- if (er(r))
4029
+ if (Qn(r))
4041
4030
  return o === void 0 || ve(o);
4042
4031
  if (r === Y)
4043
- return e.timeUnit ? Z([k.TIME, k.UTC, void 0], o) || ve(o) : Z([k.TIME, k.UTC, void 0], o);
4032
+ return e.timeUnit ? Z([R.TIME, R.UTC, void 0], o) || ve(o) : Z([R.TIME, R.UTC, void 0], o);
4044
4033
  if (r === P)
4045
- return e.bin ? Z([k.LINEAR, void 0], o) : Z([
4046
- k.LOG,
4047
- k.POW,
4048
- k.SQRT,
4049
- k.QUANTILE,
4050
- k.QUANTIZE,
4051
- k.LINEAR,
4034
+ return e.bin ? Z([R.LINEAR, void 0], o) : Z([
4035
+ R.LOG,
4036
+ R.POW,
4037
+ R.SQRT,
4038
+ R.QUANTILE,
4039
+ R.QUANTIZE,
4040
+ R.LINEAR,
4052
4041
  void 0
4053
4042
  ], o);
4054
4043
  }
@@ -4065,7 +4054,7 @@ const Pi = [
4065
4054
  }
4066
4055
  ].map((e) => new Mi(e));
4067
4056
  Pi.reduce((e, t) => (e[t.name()] = t, e), {});
4068
- const ju = Pi.reduce((e, t) => {
4057
+ const Bu = Pi.reduce((e, t) => {
4069
4058
  for (const n of t.properties())
4070
4059
  e.set(n, e.get(n) || []), e.get(n).push(t);
4071
4060
  return e;
@@ -4080,19 +4069,19 @@ const ju = Pi.reduce((e, t) => {
4080
4069
  }
4081
4070
  ].map((e) => new Mi(e));
4082
4071
  Li.reduce((e, t) => (e[t.name()] = t, e), {});
4083
- const Gu = Li.reduce((e, t) => {
4072
+ const ju = Li.reduce((e, t) => {
4084
4073
  for (const n of t.properties())
4085
4074
  e.set(n, e.get(n) || []), e.get(n).push(t);
4086
4075
  return e;
4087
4076
  }, new K());
4088
- function Hu(e, t, n, a, r, o) {
4089
- const c = ju.get(e) || [], f = a.getEncodingQueryByIndex(n);
4077
+ function Gu(e, t, n, a, r, o) {
4078
+ const c = Bu.get(e) || [], f = a.getEncodingQueryByIndex(n);
4090
4079
  for (const s of c)
4091
4080
  if ((s.strict() || o[s.name()]) && !s.satisfy(f, r, a.wildcardIndex.encodings[n], o)) {
4092
4081
  let u = "(enc) " + s.name();
4093
4082
  return o.verbose && console.log(u + " failed with " + a.toShorthand() + " for " + t.name), u;
4094
4083
  }
4095
- const i = Gu.get(e) || [];
4084
+ const i = ju.get(e) || [];
4096
4085
  for (const s of i)
4097
4086
  if ((s.strict() || o[s.name()]) && ee(f) && !s.satisfy(f, r, a.wildcardIndex.encodings[n], o)) {
4098
4087
  let u = "(enc) " + s.name();
@@ -4100,8 +4089,8 @@ function Hu(e, t, n, a, r, o) {
4100
4089
  }
4101
4090
  return null;
4102
4091
  }
4103
- const Wu = kr.reduce((e, t) => (e[t] = !0, e), {});
4104
- class Yu extends Ui {
4092
+ const Hu = Rr.reduce((e, t) => (e[t] = !0, e), {});
4093
+ class Wu extends Ui {
4105
4094
  constructor(t) {
4106
4095
  super(t);
4107
4096
  }
@@ -4198,7 +4187,7 @@ const $i = [
4198
4187
  strict: !0,
4199
4188
  satisfy: (e, t, n) => {
4200
4189
  const a = e.getMark();
4201
- return O(a) ? !0 : se(e.getEncodings(), (r) => O(r.channel) ? !0 : !!ao(r.channel, a));
4190
+ return O(a) ? !0 : se(e.getEncodings(), (r) => O(r.channel) ? !0 : !!io(r.channel, a));
4202
4191
  }
4203
4192
  },
4204
4193
  {
@@ -4214,7 +4203,7 @@ const $i = [
4214
4203
  case Ke:
4215
4204
  return e.channelUsed(F) && e.channelUsed(D);
4216
4205
  case pt:
4217
- return e.channelUsed(bn);
4206
+ return e.channelUsed(xn);
4218
4207
  case he:
4219
4208
  case yt:
4220
4209
  case Et:
@@ -4307,7 +4296,7 @@ const $i = [
4307
4296
  const a = e.getMark(), r = e.getEncodings();
4308
4297
  if (a === be || a === he) {
4309
4298
  for (let o of r)
4310
- if (b(o) && (o.channel === F || o.channel === D) && o.scale && De(o) === k.LOG)
4299
+ if (b(o) && (o.channel === F || o.channel === D) && o.scale && De(o) === R.LOG)
4311
4300
  return !1;
4312
4301
  }
4313
4302
  return !0;
@@ -4327,7 +4316,7 @@ const $i = [
4327
4316
  if (ee(f) || te(f))
4328
4317
  continue;
4329
4318
  const i = f.channel;
4330
- if (!O(i) && Wu[i + ""] && (r += 1, e.wildcardIndex.hasEncodingProperty(c, m.CHANNEL) && (o = !0), r > 1 && (o || n.constraintManuallySpecifiedValue)))
4319
+ if (!O(i) && Hu[i + ""] && (r += 1, e.wildcardIndex.hasEncodingProperty(c, m.CHANNEL) && (o = !0), r > 1 && (o || n.constraintManuallySpecifiedValue)))
4331
4320
  return !1;
4332
4321
  }
4333
4322
  return !0;
@@ -4384,7 +4373,7 @@ const $i = [
4384
4373
  properties: [m.CHANNEL, m.AGGREGATE, m.AUTOCOUNT],
4385
4374
  allowWildcardForProperties: !1,
4386
4375
  strict: !0,
4387
- satisfy: (e, t, n) => e.isAggregate() ? !0 : se(e.specQuery.encodings, (a, r) => ee(a) || te(a) ? !0 : !(a.channel === In && (e.wildcardIndex.hasEncodingProperty(r, m.CHANNEL) || n.constraintManuallySpecifiedValue)))
4376
+ satisfy: (e, t, n) => e.isAggregate() ? !0 : se(e.specQuery.encodings, (a, r) => ee(a) || te(a) ? !0 : !(a.channel === bn && (e.wildcardIndex.hasEncodingProperty(r, m.CHANNEL) || n.constraintManuallySpecifiedValue)))
4388
4377
  },
4389
4378
  {
4390
4379
  name: "omitRepeatedField",
@@ -4542,15 +4531,15 @@ const $i = [
4542
4531
  return !0;
4543
4532
  }
4544
4533
  }
4545
- ].map((e) => new Yu(e));
4534
+ ].map((e) => new Wu(e));
4546
4535
  $i.reduce((e, t) => (e[t.name()] = t, e), {});
4547
- const zu = $i.reduce((e, t) => {
4536
+ const Yu = $i.reduce((e, t) => {
4548
4537
  for (const n of t.properties())
4549
4538
  e.set(n, e.get(n) || []), e.get(n).push(t);
4550
4539
  return e;
4551
4540
  }, new K());
4552
4541
  function Bi(e, t, n, a, r) {
4553
- const o = zu.get(e) || [];
4542
+ const o = Yu.get(e) || [];
4554
4543
  for (const c of o)
4555
4544
  if ((c.strict() || r[c.name()]) && !c.satisfy(n, a, r)) {
4556
4545
  let i = "(spec) " + c.name();
@@ -4559,13 +4548,13 @@ function Bi(e, t, n, a, r) {
4559
4548
  return null;
4560
4549
  }
4561
4550
  const Gt = new K();
4562
- function qu(e) {
4551
+ function zu(e) {
4563
4552
  return Gt.get(e);
4564
4553
  }
4565
4554
  Gt.set("mark", (e, t, n) => (a, r) => (r.getMark().enum.forEach((c) => {
4566
4555
  r.setMark(c), Bi("mark", e.mark, r, t, n) || a.push(r.duplicate());
4567
4556
  }), r.resetMark(), a));
4568
- kn.forEach((e) => {
4557
+ Fn.forEach((e) => {
4569
4558
  Gt.set(e, ji(e));
4570
4559
  });
4571
4560
  $t.forEach((e) => {
@@ -4587,22 +4576,22 @@ function ji(e) {
4587
4576
  te(u) || // nested encoding property might have its parent set to false
4588
4577
  // therefore, we no longer have to enumerate them
4589
4578
  !d ? f(i + 1) : (l.enum.forEach((g) => {
4590
- g === null && (g = void 0), o.setEncodingProperty(s, e, g, l), !(Hu(e, l, s, o, n, a) || Bi(e, l, o, n, a)) && f(i + 1);
4579
+ g === null && (g = void 0), o.setEncodingProperty(s, e, g, l), !(Gu(e, l, s, o, n, a) || Bi(e, l, o, n, a)) && f(i + 1);
4591
4580
  }), o.resetEncodingProperty(s, e, l));
4592
4581
  }
4593
4582
  return f(0), r;
4594
4583
  };
4595
4584
  }
4596
- function Vu(e) {
4585
+ function qu(e) {
4597
4586
  return I.isObject(e) && !!e.property;
4598
4587
  }
4599
4588
  function at(e, t, n) {
4600
4589
  return t = t || new K(), n = n || new K(), e.forEach((a) => {
4601
- Vu(a) ? (t.setByKey(a.property, !0), n.setByKey(a.property, a.replace)) : t.setByKey(a, !0);
4590
+ qu(a) ? (t.setByKey(a.property, !0), n.setByKey(a.property, a.replace)) : t.setByKey(a, !0);
4602
4591
  }), {
4603
4592
  include: t,
4604
4593
  replaceIndex: n,
4605
- replacer: Yc(n)
4594
+ replacer: Wc(n)
4606
4595
  };
4607
4596
  }
4608
4597
  const Gi = [
@@ -4612,7 +4601,7 @@ const Gi = [
4612
4601
  m.BIN,
4613
4602
  m.TIMEUNIT,
4614
4603
  m.STACK
4615
- ], Ku = Gi.concat([
4604
+ ], Vu = Gi.concat([
4616
4605
  {
4617
4606
  property: m.CHANNEL,
4618
4607
  replace: {
@@ -4627,12 +4616,12 @@ const Gi = [
4627
4616
  }
4628
4617
  }
4629
4618
  ]);
4630
- let jn = {};
4619
+ let Bn = {};
4631
4620
  function Ht(e, t) {
4632
- jn[e] = t;
4621
+ Bn[e] = t;
4633
4622
  }
4634
- const Xu = "field", Ju = "fieldTransform", Zu = "encoding", Qu = "spec";
4635
- function el(e, t) {
4623
+ const Ku = "field", Xu = "fieldTransform", Ju = "encoding", Zu = "spec";
4624
+ function Qu(e, t) {
4636
4625
  if (t) {
4637
4626
  const n = {
4638
4627
  name: "",
@@ -4653,7 +4642,7 @@ function el(e, t) {
4653
4642
  for (let l = 0; l < t.length; l++) {
4654
4643
  const u = s.groupBy = t[l].groupBy;
4655
4644
  s.orderGroupBy = t[l].orderGroupBy;
4656
- const d = I.isArray(u) ? je(f.specQuery, r[l], c[l]) : jn[u](f.specQuery);
4645
+ const d = I.isArray(u) ? je(f.specQuery, r[l], c[l]) : Bn[u](f.specQuery);
4657
4646
  i += "/" + d, a[i] || (a[i] = {
4658
4647
  name: d,
4659
4648
  path: i,
@@ -4669,17 +4658,17 @@ function el(e, t) {
4669
4658
  items: e
4670
4659
  };
4671
4660
  }
4672
- const tl = [m.FIELD], lr = at(tl);
4673
- function nl(e, t) {
4674
- return jn[t](e);
4661
+ const el = [m.FIELD], ur = at(el);
4662
+ function tl(e, t) {
4663
+ return Bn[t](e);
4675
4664
  }
4665
+ Ht(Ku, (e) => je(e, ur.include, ur.replacer));
4666
+ const lr = at(Gi);
4676
4667
  Ht(Xu, (e) => je(e, lr.include, lr.replacer));
4677
- const dr = at(Gi);
4668
+ const dr = at(Vu);
4678
4669
  Ht(Ju, (e) => je(e, dr.include, dr.replacer));
4679
- const fr = at(Ku);
4680
- Ht(Zu, (e) => je(e, fr.include, fr.replacer));
4681
- Ht(Qu, (e) => JSON.stringify(e));
4682
- class rl {
4670
+ Ht(Zu, (e) => JSON.stringify(e));
4671
+ class nl {
4683
4672
  constructor() {
4684
4673
  this._mark = void 0, this._encodings = {}, this._encodingIndicesByProperty = new K();
4685
4674
  }
@@ -4727,13 +4716,13 @@ class _t {
4727
4716
  * @return a SpecQueryModel that wraps the specQuery and the WildcardIndex.
4728
4717
  */
4729
4718
  static build(t, n, a) {
4730
- let r = new rl();
4719
+ let r = new nl();
4731
4720
  if (O(t.mark)) {
4732
4721
  const o = qe(m.MARK);
4733
4722
  t.mark = Zt(t.mark, o, a.enum.mark), r.setMark(t.mark);
4734
4723
  }
4735
4724
  if (t.encodings.forEach((o, c) => {
4736
- G(o) && (console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."), o.type = P), b(o) && o.type === void 0 && (o.type = R), kn.forEach((f) => {
4725
+ G(o) && (console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."), o.type = P), b(o) && o.type === void 0 && (o.type = k), Fn.forEach((f) => {
4737
4726
  if (O(o[f])) {
4738
4727
  const i = qe(f) + c, s = en(f, n, a), l = o[f] = Zt(o[f], i, s);
4739
4728
  r.setEncodingProperty(c, f, l);
@@ -4826,7 +4815,7 @@ class _t {
4826
4815
  return this._spec.encodings[t];
4827
4816
  }
4828
4817
  isAggregate() {
4829
- return jc(this._spec);
4818
+ return Bc(this._spec);
4830
4819
  }
4831
4820
  /**
4832
4821
  * @return The Vega-Lite `StackProperties` object that describes the stack
@@ -4840,19 +4829,19 @@ class _t {
4840
4829
  * is specified.
4841
4830
  */
4842
4831
  getStackOffset() {
4843
- return Gc(this._spec);
4832
+ return jc(this._spec);
4844
4833
  }
4845
4834
  /**
4846
4835
  * @return The `Channel` in which `stack` is specified in `this`, or
4847
4836
  * `null` if none is specified.
4848
4837
  */
4849
4838
  getStackChannel() {
4850
- return Hc(this._spec);
4839
+ return Gc(this._spec);
4851
4840
  }
4852
4841
  toShorthand(t) {
4853
4842
  if (t) {
4854
4843
  if (I.isString(t))
4855
- return nl(this.specQuery, t);
4844
+ return tl(this.specQuery, t);
4856
4845
  const n = at(t);
4857
4846
  return je(this._spec, n.include, n.replacer);
4858
4847
  }
@@ -4875,7 +4864,7 @@ class _t {
4875
4864
  this._rankingScore[t] = n;
4876
4865
  }
4877
4866
  }
4878
- function il(e) {
4867
+ function rl(e) {
4879
4868
  if (e.groupBy) {
4880
4869
  let t = {
4881
4870
  groupBy: e.groupBy
@@ -4912,7 +4901,7 @@ var J;
4912
4901
  (function(e) {
4913
4902
  e[e.Q = P] = "Q", e[e.BIN_Q = "bin_" + P] = "BIN_Q", e[e.T = Y] = "T", e[e.TIMEUNIT_T = "timeUnit_time"] = "TIMEUNIT_T", e[e.TIMEUNIT_O = "timeUnit_" + ae] = "TIMEUNIT_O", e[e.O = ae] = "O", e[e.N = re] = "N", e[e.K = oe.KEY] = "K", e[e.NONE = "-"] = "NONE";
4914
4903
  })(J || (J = {}));
4915
- const Wi = J.Q, Ct = J.BIN_Q, Gn = J.T, Le = J.TIMEUNIT_T, Tt = J.TIMEUNIT_O, At = J.O, Ot = J.N, En = J.K, xt = J.NONE;
4904
+ const Wi = J.Q, Ct = J.BIN_Q, jn = J.T, Le = J.TIMEUNIT_T, Tt = J.TIMEUNIT_O, At = J.O, Ot = J.N, En = J.K, xt = J.NONE;
4916
4905
  function bt(e) {
4917
4906
  if (e.bin)
4918
4907
  return J.BIN_Q;
@@ -4922,7 +4911,7 @@ function bt(e) {
4922
4911
  }
4923
4912
  return e.type;
4924
4913
  }
4925
- class al extends Ye {
4914
+ class il extends Ye {
4926
4915
  constructor() {
4927
4916
  super("Axis");
4928
4917
  }
@@ -4935,7 +4924,7 @@ class al extends Ye {
4935
4924
  opt: "preferredBinAxis"
4936
4925
  },
4937
4926
  {
4938
- feature: Gn,
4927
+ feature: jn,
4939
4928
  opt: "preferredTemporalAxis"
4940
4929
  },
4941
4930
  {
@@ -4971,7 +4960,7 @@ class al extends Ye {
4971
4960
  }, []);
4972
4961
  }
4973
4962
  }
4974
- class ol extends Ye {
4963
+ class al extends Ye {
4975
4964
  constructor() {
4976
4965
  super("Dimension");
4977
4966
  }
@@ -4996,7 +4985,7 @@ class ol extends Ye {
4996
4985
  }, { type: "Dimension", feature: "No Dimension", score: -5 }), [];
4997
4986
  }
4998
4987
  }
4999
- class sl extends Ye {
4988
+ class ol extends Ye {
5000
4989
  constructor() {
5001
4990
  super("Facet");
5002
4991
  }
@@ -5015,7 +5004,7 @@ class sl extends Ye {
5015
5004
  }, []);
5016
5005
  }
5017
5006
  }
5018
- class cl extends Ye {
5007
+ class sl extends Ye {
5019
5008
  constructor() {
5020
5009
  super("SizeChannel");
5021
5010
  }
@@ -5037,7 +5026,7 @@ class cl extends Ye {
5037
5026
  }
5038
5027
  }
5039
5028
  const lt = -10;
5040
- class ul extends Ye {
5029
+ class cl extends Ye {
5041
5030
  constructor() {
5042
5031
  super("TypeChannel");
5043
5032
  }
@@ -5055,7 +5044,7 @@ class ul extends Ye {
5055
5044
  column: lt,
5056
5045
  detail: 2 * lt
5057
5046
  };
5058
- [Wi, Gn, Le].forEach((o) => {
5047
+ [Wi, jn, Le].forEach((o) => {
5059
5048
  I.keys(n).forEach((c) => {
5060
5049
  t[this.featurize(o, c)] = n[c];
5061
5050
  });
@@ -5113,12 +5102,12 @@ class ul extends Ye {
5113
5102
  }), o;
5114
5103
  }
5115
5104
  }
5116
- class ll extends Ye {
5105
+ class ul extends Ye {
5117
5106
  constructor() {
5118
5107
  super("Mark");
5119
5108
  }
5120
5109
  initScore() {
5121
- return dl();
5110
+ return ll();
5122
5111
  }
5123
5112
  getScore(t, n, a) {
5124
5113
  let r = t.getMark();
@@ -5130,8 +5119,8 @@ class ll extends Ye {
5130
5119
  function B(e, t, n, a) {
5131
5120
  return e + "_" + t + "_" + n + "_" + a;
5132
5121
  }
5133
- function dl() {
5134
- const e = [Wi, Gn], n = [Ct, Tt, At, Ot, En].concat([xt]);
5122
+ function ll() {
5123
+ const e = [Wi, jn], n = [Ct, Tt, At, Ot, En].concat([xt]);
5135
5124
  let a = {};
5136
5125
  e.forEach((r) => {
5137
5126
  e.forEach((o) => {
@@ -5310,16 +5299,16 @@ function dl() {
5310
5299
  }
5311
5300
  return a;
5312
5301
  }
5313
- const fl = [
5302
+ const dl = [
5303
+ new il(),
5314
5304
  new al(),
5315
5305
  new ol(),
5306
+ new ul(),
5316
5307
  new sl(),
5317
- new ll(),
5318
- new cl(),
5319
- new ul()
5308
+ new cl()
5320
5309
  ];
5321
- function gl(e, t, n) {
5322
- const a = fl.reduce((r, o) => {
5310
+ function fl(e, t, n) {
5311
+ const a = dl.reduce((r, o) => {
5323
5312
  const c = o.getScore(e, t, n);
5324
5313
  return r.concat(c);
5325
5314
  }, []);
@@ -5329,14 +5318,14 @@ function gl(e, t, n) {
5329
5318
  };
5330
5319
  }
5331
5320
  const Ne = "aggregationQuality";
5332
- function hl(e, t, n) {
5333
- const a = ml(e);
5321
+ function gl(e, t, n) {
5322
+ const a = hl(e);
5334
5323
  return {
5335
5324
  score: a.score,
5336
5325
  features: [a]
5337
5326
  };
5338
5327
  }
5339
- function ml(e, t, n) {
5328
+ function hl(e, t, n) {
5340
5329
  const a = e.getEncodings();
5341
5330
  if (e.isAggregate()) {
5342
5331
  if (me(a, (o) => b(o) && (o.type === P && !o.bin && !o.aggregate || o.type === Y && !o.timeUnit)))
@@ -5377,8 +5366,8 @@ function ml(e, t, n) {
5377
5366
  feature: "Raw without measure"
5378
5367
  };
5379
5368
  }
5380
- const pl = "fieldOrder";
5381
- function yl(e, t, n) {
5369
+ const ml = "fieldOrder";
5370
+ function pl(e, t, n) {
5382
5371
  const a = e.wildcardIndex.encodingIndicesByProperty.get("field");
5383
5372
  if (!a)
5384
5373
  return {
@@ -5407,21 +5396,21 @@ function yl(e, t, n) {
5407
5396
  };
5408
5397
  }
5409
5398
  let Yi = {};
5410
- function Hn(e, t) {
5399
+ function Gn(e, t) {
5411
5400
  Yi[e] = t;
5412
5401
  }
5413
- function El(e) {
5402
+ function yl(e) {
5414
5403
  return Yi[e];
5415
5404
  }
5416
5405
  function zi(e, t, n, a) {
5417
- return !t.nest || a === t.nest.length ? (t.orderBy || t.chooseBy) && (e.items.sort(Sl(t.orderBy || t.chooseBy, n, t.config)), t.chooseBy && e.items.length > 0 && e.items.splice(1)) : (e.items.forEach((r) => {
5406
+ return !t.nest || a === t.nest.length ? (t.orderBy || t.chooseBy) && (e.items.sort(El(t.orderBy || t.chooseBy, n, t.config)), t.chooseBy && e.items.length > 0 && e.items.splice(1)) : (e.items.forEach((r) => {
5418
5407
  zi(r, t, n, a + 1);
5419
- }), t.nest[a].orderGroupBy && e.items.sort(Nl(t.nest[a].orderGroupBy, n, t.config))), e;
5408
+ }), t.nest[a].orderGroupBy && e.items.sort(Sl(t.nest[a].orderGroupBy, n, t.config))), e;
5420
5409
  }
5421
- function Sl(e, t, n) {
5410
+ function El(e, t, n) {
5422
5411
  return (a, r) => e instanceof Array ? It(e, a, r, t, n) : It([e], a, r, t, n);
5423
5412
  }
5424
- function Nl(e, t, n) {
5413
+ function Sl(e, t, n) {
5425
5414
  return (a, r) => {
5426
5415
  const o = yn(a), c = yn(r);
5427
5416
  return e instanceof Array ? It(e, o, c, t, n) : It([e], o, c, t, n);
@@ -5429,29 +5418,29 @@ function Nl(e, t, n) {
5429
5418
  }
5430
5419
  function It(e, t, n, a, r) {
5431
5420
  for (let o of e) {
5432
- let c = gr(n, o, a, r).score - gr(t, o, a, r).score;
5421
+ let c = fr(n, o, a, r).score - fr(t, o, a, r).score;
5433
5422
  if (c !== 0)
5434
5423
  return c;
5435
5424
  }
5436
5425
  return 0;
5437
5426
  }
5438
- function gr(e, t, n, a) {
5427
+ function fr(e, t, n, a) {
5439
5428
  if (e.getRankingScore(t) !== void 0)
5440
5429
  return e.getRankingScore(t);
5441
- const o = El(t)(e, n, a);
5430
+ const o = yl(t)(e, n, a);
5442
5431
  return e.setRankingScore(t, o), o;
5443
5432
  }
5444
- const _l = "effectiveness";
5445
- Hn(_l, gl);
5446
- Hn(Ne, hl);
5447
- Hn(pl, yl);
5448
- function Cl(e, t, n) {
5433
+ const Nl = "effectiveness";
5434
+ Gn(Nl, fl);
5435
+ Gn(Ne, gl);
5436
+ Gn(ml, pl);
5437
+ function _l(e, t, n) {
5449
5438
  let a = {};
5450
5439
  return e = e.map(function(r) {
5451
- return n.smallRangeStepForHighCardinalityOrFacet && (r = Tl(r, t, a, n)), n.nominalColorScaleForHighCardinality && (r = Al(r, t, a, n)), n.xAxisOnTopForHighYCardinalityWithoutColumn && (r = Ol(r, t, a, n)), r;
5440
+ return n.smallRangeStepForHighCardinalityOrFacet && (r = Cl(r, t, a, n)), n.nominalColorScaleForHighCardinality && (r = Tl(r, t, a, n)), n.xAxisOnTopForHighYCardinalityWithoutColumn && (r = Al(r, t, a, n)), r;
5452
5441
  }), e;
5453
5442
  }
5454
- function Tl(e, t, n, a) {
5443
+ function Cl(e, t, n, a) {
5455
5444
  [ie, D, Q, F].forEach((c) => {
5456
5445
  n[c] = e.getEncodingQueryByChannel(c);
5457
5446
  });
@@ -5469,12 +5458,12 @@ function Tl(e, t, n, a) {
5469
5458
  }
5470
5459
  return e;
5471
5460
  }
5472
- function Al(e, t, n, a) {
5461
+ function Tl(e, t, n, a) {
5473
5462
  n[ce] = e.getEncodingQueryByChannel(ce);
5474
5463
  const r = n[ce];
5475
5464
  return b(r) && r !== void 0 && (r.type === re || r.type === oe.KEY) && t.cardinality(r) > a.nominalColorScaleForHighCardinality.maxCardinality && (r.scale === void 0 && (r.scale = {}), r.scale && (r.scale.range || (r.scale.scheme = a.nominalColorScaleForHighCardinality.palette))), e;
5476
5465
  }
5477
- function Ol(e, t, n, a) {
5466
+ function Al(e, t, n, a) {
5478
5467
  if ([Q, F, D].forEach((r) => {
5479
5468
  n[r] = e.getEncodingQueryByChannel(r);
5480
5469
  }), n[Q] === void 0) {
@@ -5483,20 +5472,20 @@ function Ol(e, t, n, a) {
5483
5472
  }
5484
5473
  return e;
5485
5474
  }
5486
- function xl(e, t, n = it) {
5475
+ function Ol(e, t, n = it) {
5487
5476
  const a = _t.build(e, t, n), r = a.wildcardIndex;
5488
5477
  let o = [a];
5489
5478
  return n.propertyPrecedence.forEach((c) => {
5490
- const f = Ks(c);
5479
+ const f = Vs(c);
5491
5480
  if (r.hasProperty(f)) {
5492
- const s = qu(f)(r, t, n);
5481
+ const s = zu(f)(r, t, n);
5493
5482
  o = o.reduce(s, []);
5494
5483
  }
5495
- }), n.stylize && (n.nominalColorScaleForHighCardinality !== null || n.smallRangeStepForHighCardinalityOrFacet !== null || n.xAxisOnTopForHighYCardinalityWithoutColumn !== null) ? Cl(o, t, n) : o;
5484
+ }), n.stylize && (n.nominalColorScaleForHighCardinality !== null || n.smallRangeStepForHighCardinalityOrFacet !== null || n.xAxisOnTopForHighYCardinalityWithoutColumn !== null) ? _l(o, t, n) : o;
5496
5485
  }
5497
5486
  function qi(e, t, n) {
5498
- e = Object.assign({}, il(e), { config: Object.assign({}, it, n, e.config) });
5499
- const a = xl(e.spec, t, e.config), r = el(a, e.nest), o = zi(r, e, t, 0);
5487
+ e = Object.assign({}, rl(e), { config: Object.assign({}, it, n, e.config) });
5488
+ const a = Ol(e.spec, t, e.config), r = Qu(a, e.nest), o = zi(r, e, t, 0);
5500
5489
  return {
5501
5490
  query: e,
5502
5491
  result: o
@@ -5509,7 +5498,7 @@ const $e = {
5509
5498
  [$.STRING]: /* @__PURE__ */ S.jsx(ra, { className: "h-5 w-5 inline-flex opacity-60" }),
5510
5499
  [$.INTEGER]: /* @__PURE__ */ S.jsx(Ra, { className: "h-5 w-5 inline-flex opacity-60" })
5511
5500
  };
5512
- function Wn(e) {
5501
+ function Hn(e) {
5513
5502
  const {
5514
5503
  type: t,
5515
5504
  limit: n,
@@ -5534,50 +5523,50 @@ function Wn(e) {
5534
5523
  }
5535
5524
  };
5536
5525
  }
5537
- const bl = Wn({
5526
+ const xl = Hn({
5538
5527
  type: "addCategoricalField",
5539
5528
  limit: 4,
5540
5529
  additionalFieldQuery: {
5541
- channel: R,
5542
- field: R,
5530
+ channel: k,
5531
+ field: k,
5543
5532
  type: "nominal"
5544
5533
  }
5545
- }), Il = Wn({
5534
+ }), bl = Hn({
5546
5535
  type: "addQuantitativeField",
5547
5536
  limit: 4,
5548
5537
  additionalFieldQuery: {
5549
- channel: R,
5550
- bin: R,
5551
- aggregate: R,
5552
- field: R,
5538
+ channel: k,
5539
+ bin: k,
5540
+ aggregate: k,
5541
+ field: k,
5553
5542
  type: "quantitative"
5554
5543
  }
5555
- }), wl = Wn({
5544
+ }), Il = Hn({
5556
5545
  type: "addTemporalField",
5557
5546
  limit: 2,
5558
5547
  additionalFieldQuery: {
5559
- channel: R,
5548
+ channel: k,
5560
5549
  hasFn: !0,
5561
5550
  // Do not show raw time in the summary
5562
- timeUnit: R,
5563
- field: R,
5551
+ timeUnit: k,
5552
+ field: k,
5564
5553
  type: "temporal"
5565
5554
  }
5566
5555
  });
5567
- function vl(e) {
5556
+ function wl(e) {
5568
5557
  return e ? e === "bin" ? {
5569
5558
  bin: !0
5570
- } : xa(e) ? {
5559
+ } : ba(e) ? {
5571
5560
  aggregate: e
5572
- } : Dl(e) ? {
5561
+ } : vl(e) ? {
5573
5562
  timeUnit: e
5574
5563
  } : {} : {};
5575
5564
  }
5576
- function Dl(e) {
5565
+ function vl(e) {
5577
5566
  return e ? Vi.includes(e) || Ki.includes(e) : !1;
5578
5567
  }
5579
- const Fl = ["bin", "min", "max", "mean", "median", "sum"], Vi = ["year", "month", "date", "day", "hours", "minutes", "seconds", "milliseconds"], Ki = ["yearmonth", "yearmonthdate", "monthdate"];
5580
- function kl(e) {
5568
+ const Dl = ["bin", "min", "max", "mean", "median", "sum"], Vi = ["year", "month", "date", "day", "hours", "minutes", "seconds", "milliseconds"], Ki = ["yearmonth", "yearmonthdate", "monthdate"];
5569
+ function Fl(e) {
5581
5570
  const {
5582
5571
  aggregate: t,
5583
5572
  bin: n,
@@ -5603,11 +5592,11 @@ function Rl(e, t) {
5603
5592
  } = e;
5604
5593
  return {
5605
5594
  channel: t,
5606
- ...vl(n),
5595
+ ...wl(n),
5607
5596
  ...a
5608
5597
  };
5609
5598
  }
5610
- function Ul(e) {
5599
+ function kl(e) {
5611
5600
  const {
5612
5601
  aggregate: t,
5613
5602
  bin: n,
@@ -5625,7 +5614,7 @@ function Ul(e) {
5625
5614
  if (O(l))
5626
5615
  throw new Error("Wildcard not support");
5627
5616
  l === "ordinal" && (sa.warn("Ordinal type is not supported. Using nominal type instead."), l = "nominal");
5628
- const u = kl({
5617
+ const u = Fl({
5629
5618
  aggregate: t,
5630
5619
  bin: n,
5631
5620
  timeUnit: a
@@ -5641,10 +5630,10 @@ function Ul(e) {
5641
5630
  description: s
5642
5631
  });
5643
5632
  }
5644
- function Ml(e) {
5633
+ function Ul(e) {
5645
5634
  return !Zi(e).hasAnyWildcard;
5646
5635
  }
5647
- function Pl(e) {
5636
+ function Ml(e) {
5648
5637
  const t = ["x", "y", "color"], n = ["row", "column"], a = new Set(e.encodings.map((c) => c.channel)), r = t.every((c) => a.has(c)), o = n.some((c) => a.has(c));
5649
5638
  return r && o;
5650
5639
  }
@@ -5662,36 +5651,36 @@ function Zi(e) {
5662
5651
  hasWildcardChannel: a
5663
5652
  };
5664
5653
  }
5665
- function Ll(e) {
5654
+ function Pl(e) {
5666
5655
  return {
5667
5656
  mark: e.mark,
5668
- encodings: $l(e.encoding),
5657
+ encodings: Ll(e.encoding),
5669
5658
  config: e.config
5670
5659
  };
5671
5660
  }
5672
- function $l(e) {
5661
+ function Ll(e) {
5673
5662
  return Object.entries(e).map(([t, n]) => Rl(n, t));
5674
5663
  }
5675
5664
  const Qi = {
5676
5665
  name: "source"
5677
5666
  };
5678
- function Bl(e) {
5667
+ function $l(e) {
5679
5668
  let t = !1, n = !1, a = !1;
5680
5669
  return e.encodings.forEach((r) => {
5681
- r.channel === "x" || r.channel === "y" ? t = !0 : r.channel === "row" || r.channel === "column" ? a = !0 : typeof r.channel == "string" && ba(Ia, r.channel) && (n = !0);
5670
+ r.channel === "x" || r.channel === "y" ? t = !0 : r.channel === "row" || r.channel === "column" ? a = !0 : typeof r.channel == "string" && Ia(wa, r.channel) && (n = !0);
5682
5671
  }), {
5683
5672
  hasOpenPosition: t,
5684
5673
  hasStyleChannel: n,
5685
5674
  hasOpenFacet: a
5686
5675
  };
5687
5676
  }
5688
- function jl(e, t) {
5677
+ function Bl(e, t) {
5689
5678
  const n = {}, {
5690
5679
  hasOpenPosition: a,
5691
5680
  hasStyleChannel: r,
5692
5681
  hasOpenFacet: o
5693
- } = Bl(e.spec);
5694
- return (a || r) && (n.addQuantitativeField = ht(Il, e, t)), (a || r || o) && (n.addCategoricalField = ht(bl, e, t)), a && (n.addTemporalField = ht(wl, e, t)), n;
5682
+ } = $l(e.spec);
5683
+ return (a || r) && (n.addQuantitativeField = ht(bl, e, t)), (a || r || o) && (n.addCategoricalField = ht(xl, e, t)), a && (n.addTemporalField = ht(Il, e, t)), n;
5695
5684
  }
5696
5685
  function dn(e, t) {
5697
5686
  if (Ji(e.spec))
@@ -5716,26 +5705,26 @@ function ht(e, t, n) {
5716
5705
  };
5717
5706
  }
5718
5707
  function ea(e, t) {
5719
- return e.items.map((n) => Hi(n) ? hr(t, yn(n)) : hr(t, n));
5708
+ return e.items.map((n) => Hi(n) ? gr(t, yn(n)) : gr(t, n));
5720
5709
  }
5721
- function hr(e, t) {
5710
+ function gr(e, t) {
5722
5711
  return {
5723
5712
  fieldInfos: t.getEncodings().filter(b).map((a) => ({
5724
- fieldDef: Ul(a),
5713
+ fieldDef: kl(a),
5725
5714
  channel: a.channel
5726
5715
  })),
5727
5716
  spec: t.toSpec(e)
5728
5717
  };
5729
5718
  }
5730
- function Gl(e) {
5719
+ function jl(e) {
5731
5720
  const {
5732
5721
  spec: t,
5733
5722
  autoAddCount: n
5734
- } = e, a = Ll(t), {
5723
+ } = e, a = Pl(t), {
5735
5724
  hasAnyWildcard: r,
5736
5725
  hasWildcardFn: o,
5737
5726
  hasWildcardField: c
5738
- } = Zi(a), f = Hl({
5727
+ } = Zi(a), f = Gl({
5739
5728
  hasWildcardFn: o,
5740
5729
  hasWildcardField: c
5741
5730
  });
@@ -5749,30 +5738,30 @@ function Gl(e) {
5749
5738
  } : void 0
5750
5739
  };
5751
5740
  }
5752
- function Hl(e) {
5741
+ function Gl(e) {
5753
5742
  const {
5754
5743
  hasWildcardFn: t,
5755
5744
  hasWildcardField: n
5756
5745
  } = e;
5757
5746
  return t ? "fieldTransform" : n ? "field" : "encoding";
5758
5747
  }
5759
- const Wl = {
5748
+ const Hl = {
5760
5749
  type: "histograms",
5761
5750
  limit: 12,
5762
5751
  createQuery(e) {
5763
5752
  return {
5764
5753
  spec: {
5765
5754
  data: e.spec.data,
5766
- mark: R,
5755
+ mark: k,
5767
5756
  transform: e.spec.transform,
5768
5757
  encodings: [{
5769
- channel: R,
5770
- bin: R,
5771
- timeUnit: R,
5772
- field: R,
5773
- type: R
5758
+ channel: k,
5759
+ bin: k,
5760
+ timeUnit: k,
5761
+ field: k,
5762
+ type: k
5774
5763
  }, {
5775
- channel: R,
5764
+ channel: k,
5776
5765
  aggregate: "count",
5777
5766
  field: "*",
5778
5767
  type: "quantitative"
@@ -5787,9 +5776,9 @@ const Wl = {
5787
5776
  };
5788
5777
  }
5789
5778
  };
5790
- function Yl() {
5779
+ function Wl() {
5791
5780
  return {
5792
- mark: R,
5781
+ mark: k,
5793
5782
  encoding: {},
5794
5783
  config: {},
5795
5784
  schema: null
@@ -5797,8 +5786,8 @@ function Yl() {
5797
5786
  }
5798
5787
  const {
5799
5788
  valueAtom: Be,
5800
- useActions: zl
5801
- } = ua(Yl, {
5789
+ useActions: Yl
5790
+ } = ua(Wl, {
5802
5791
  setSchema: (e, t) => ({
5803
5792
  ...e,
5804
5793
  schema: t
@@ -5829,26 +5818,26 @@ const {
5829
5818
  }
5830
5819
  });
5831
5820
  function ta() {
5832
- return zl();
5821
+ return Yl();
5833
5822
  }
5834
- const ql = la((e) => {
5823
+ const zl = la((e) => {
5835
5824
  const t = e(Be);
5836
5825
  if (!t.schema)
5837
5826
  return {};
5838
- const n = Gl({
5827
+ const n = jl({
5839
5828
  spec: t,
5840
5829
  autoAddCount: !0
5841
5830
  });
5842
5831
  return Ji(n.spec) ? {
5843
5832
  main: dn(n, t.schema),
5844
- histograms: ht(Wl, n, t.schema)
5845
- } : Ml(n.spec) && !Pl(n.spec) ? {
5833
+ histograms: ht(Hl, n, t.schema)
5834
+ } : Ul(n.spec) && !Ml(n.spec) ? {
5846
5835
  main: dn(n, t.schema),
5847
- ...jl(n, t.schema)
5836
+ ...Bl(n, t.schema)
5848
5837
  } : {
5849
5838
  main: dn(n, t.schema)
5850
5839
  };
5851
- }), Vl = [R, "area", "bar", "circle", "geoshape", "line", "point", "rect", "rule", "square", "text", "tick", "trail"], Kl = ["x", "y", "row", "column"], Xl = ["color", "size", "shape"], Jl = (e) => {
5840
+ }), ql = [k, "area", "bar", "circle", "geoshape", "line", "point", "rect", "rule", "square", "text", "tick", "trail"], Vl = ["x", "y", "row", "column"], Kl = ["color", "size", "shape"], Xl = (e) => {
5852
5841
  const t = Oe.c(26), {
5853
5842
  schema: n,
5854
5843
  mark: a
@@ -5856,7 +5845,7 @@ const ql = la((e) => {
5856
5845
  let f;
5857
5846
  t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r.encoding ? (f = (_) => {
5858
5847
  const C = (_ === "row" || _ === "column") && !c;
5859
- return /* @__PURE__ */ S.jsx(Zl, { schema: n, label: _, disabled: C, fieldDefinition: r.encoding[_], onChange: (M) => o.setEncoding({
5848
+ return /* @__PURE__ */ S.jsx(Jl, { schema: n, label: _, disabled: C, fieldDefinition: r.encoding[_], onChange: (M) => o.setEncoding({
5860
5849
  [_]: M
5861
5850
  }) }, _);
5862
5851
  }, t[0] = o, t[1] = c, t[2] = n, t[3] = r.encoding, t[4] = f) : f = t[4];
@@ -5870,7 +5859,7 @@ const ql = la((e) => {
5870
5859
  let d;
5871
5860
  t[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S.jsx(vt, { children: /* @__PURE__ */ S.jsxs(Qe, { children: [
5872
5861
  /* @__PURE__ */ S.jsx(Er, { children: "Mark" }),
5873
- Vl.map(ed)
5862
+ ql.map(Ql)
5874
5863
  ] }) }), t[10] = d) : d = t[10];
5875
5864
  let g;
5876
5865
  t[11] !== s || t[12] !== l ? (g = /* @__PURE__ */ S.jsxs(Dt, { "data-testid": "marimo-plugin-data-explorer-mark-select", value: s, onValueChange: l, children: [
@@ -5881,7 +5870,7 @@ const ql = la((e) => {
5881
5870
  let p;
5882
5871
  t[14] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ S.jsx("span", { className: "col-span-2 flex items-center justify-between w-full", children: /* @__PURE__ */ S.jsx("div", { className: "text-sm font-semibold", children: "Encodings" }) }), t[14] = p) : p = t[14];
5883
5872
  let y;
5884
- t[15] !== i ? (y = Kl.map(i), t[15] = i, t[16] = y) : y = t[16];
5873
+ t[15] !== i ? (y = Vl.map(i), t[15] = i, t[16] = y) : y = t[16];
5885
5874
  let E;
5886
5875
  t[17] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ S.jsx("div", { children: "Mark" }), t[17] = E) : E = t[17];
5887
5876
  let N;
@@ -5890,7 +5879,7 @@ const ql = la((e) => {
5890
5879
  h
5891
5880
  ] }), t[18] = h, t[19] = N) : N = t[19];
5892
5881
  let T;
5893
- t[20] !== i ? (T = Xl.map(i), t[20] = i, t[21] = T) : T = t[21];
5882
+ t[20] !== i ? (T = Kl.map(i), t[20] = i, t[21] = T) : T = t[21];
5894
5883
  let A;
5895
5884
  return t[22] !== N || t[23] !== T || t[24] !== y ? (A = /* @__PURE__ */ S.jsxs("div", { className: "grid gap-x-2 gap-y-4 justify-items-start py-3 pl-4 pr-2 bg-[var(--slate-1)] border rounded items-center grid-template-columns-[repeat(2,_minmax(0,_min-content))] self-start", children: [
5896
5885
  p,
@@ -5898,7 +5887,7 @@ const ql = la((e) => {
5898
5887
  N,
5899
5888
  T
5900
5889
  ] }), t[22] = N, t[23] = T, t[24] = y, t[25] = A) : A = t[25], A;
5901
- }, Zl = (e) => {
5890
+ }, Jl = (e) => {
5902
5891
  const t = Oe.c(43), {
5903
5892
  label: n,
5904
5893
  schema: a,
@@ -5980,7 +5969,7 @@ const ql = la((e) => {
5980
5969
  x
5981
5970
  ] }), t[26] = o, t[27] = d, t[28] = x, t[29] = h, t[30] = E, t[31] = C) : C = t[31];
5982
5971
  let M;
5983
- t[32] !== r || t[33] !== c ? (M = r && /* @__PURE__ */ S.jsx(Ql, { field: r, onChange: c }), t[32] = r, t[33] = c, t[34] = M) : M = t[34];
5972
+ t[32] !== r || t[33] !== c ? (M = r && /* @__PURE__ */ S.jsx(Zl, { field: r, onChange: c }), t[32] = r, t[33] = c, t[34] = M) : M = t[34];
5984
5973
  let H;
5985
5974
  t[35] !== M ? (H = /* @__PURE__ */ S.jsx("div", { className: "w-[26px]", children: M }), t[35] = M, t[36] = H) : H = t[36];
5986
5975
  let v;
@@ -5993,7 +5982,7 @@ const ql = la((e) => {
5993
5982
  g,
5994
5983
  v
5995
5984
  ] }), t[40] = v, t[41] = g, t[42] = w) : w = t[42], w;
5996
- }, Sn = "__", Ql = (e) => {
5985
+ }, Sn = "__", Zl = (e) => {
5997
5986
  const t = Oe.c(15), {
5998
5987
  field: n,
5999
5988
  onChange: a
@@ -6005,7 +5994,7 @@ const ql = la((e) => {
6005
5994
  let o = r;
6006
5995
  if (n.type === oe.QUANTITATIVE) {
6007
5996
  let c;
6008
- t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = [["", Fl]], t[1] = c) : c = t[1], o = c;
5997
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = [["", Dl]], t[1] = c) : c = t[1], o = c;
6009
5998
  }
6010
5999
  if (n.type === oe.TEMPORAL) {
6011
6000
  let c;
@@ -6027,7 +6016,7 @@ const ql = la((e) => {
6027
6016
  t[9] !== o ? (l = /* @__PURE__ */ S.jsxs(vt, { children: [
6028
6017
  i,
6029
6018
  s,
6030
- o.map(nd)
6019
+ o.map(td)
6031
6020
  ] }), t[9] = o, t[10] = l) : l = t[10];
6032
6021
  let u;
6033
6022
  return t[11] !== n.fn || t[12] !== c || t[13] !== l ? (u = /* @__PURE__ */ S.jsxs(Dt, { "data-testid": "marimo-plugin-data-explorer-field-options", value: n.fn, onValueChange: c, children: [
@@ -6037,23 +6026,23 @@ const ql = la((e) => {
6037
6026
  }
6038
6027
  return null;
6039
6028
  };
6040
- function ed(e) {
6041
- return /* @__PURE__ */ S.jsx(Ie, { value: e, children: e === R ? "auto" : e }, e);
6029
+ function Ql(e) {
6030
+ return /* @__PURE__ */ S.jsx(Ie, { value: e, children: e === k ? "auto" : e }, e);
6042
6031
  }
6043
- function td(e) {
6032
+ function ed(e) {
6044
6033
  return /* @__PURE__ */ S.jsx(Ie, { value: e ?? Sn, children: fa(e) }, e);
6045
6034
  }
6046
- function nd(e) {
6035
+ function td(e) {
6047
6036
  const [t, n] = e;
6048
6037
  return /* @__PURE__ */ S.jsxs(Qe, { children: [
6049
6038
  t && /* @__PURE__ */ S.jsx(Er, { children: t }),
6050
- n.map(td)
6039
+ n.map(ed)
6051
6040
  ] }, t);
6052
6041
  }
6053
- const mr = 12, rd = (e) => {
6042
+ const hr = 12, nd = (e) => {
6054
6043
  const t = Oe.c(26), {
6055
6044
  schema: n
6056
- } = e, [a, r] = qn.useState(), [o, c] = qn.useState();
6045
+ } = e, [a, r] = zn.useState(), [o, c] = zn.useState();
6057
6046
  let f;
6058
6047
  if (t[0] !== n || t[1] !== a || t[2] !== o) {
6059
6048
  const i = n.fieldNames(), s = a ? n.stats({
@@ -6061,8 +6050,8 @@ const mr = 12, rd = (e) => {
6061
6050
  channel: "x"
6062
6051
  }) : void 0;
6063
6052
  let l;
6064
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ S.jsx(va, { className: "text-muted-foreground", width: 40, height: 40, strokeWidth: 1.5 }), t[4] = l) : l = t[4];
6065
- const u = l, d = o ? i : i.slice(0, mr), g = i.length > mr, h = i.length > 0 ? i.length : "No";
6053
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ S.jsx(Da, { className: "text-muted-foreground", width: 40, height: 40, strokeWidth: 1.5 }), t[4] = l) : l = t[4];
6054
+ const u = l, d = o ? i : i.slice(0, hr), g = i.length > hr, h = i.length > 0 ? i.length : "No";
6066
6055
  let p;
6067
6056
  t[5] !== h ? (p = /* @__PURE__ */ S.jsxs("span", { className: "text-muted-foreground font-semibold", children: [
6068
6057
  h,
@@ -6092,7 +6081,7 @@ const mr = 12, rd = (e) => {
6092
6081
  }, t[7] = n, t[8] = a, t[9] = y) : y = t[9];
6093
6082
  const E = d.map(y);
6094
6083
  let N;
6095
- t[10] !== g || t[11] !== o ? (N = g && /* @__PURE__ */ S.jsx(Nr, { "data-testid": "marimo-plugin-data-explorer-show-more-columns", variant: "link", size: "sm", className: "self-center col-span-3 -mt-1", onClick: () => c(od), children: o ? "Show less" : "Show more" }), t[10] = g, t[11] = o, t[12] = N) : N = t[12];
6084
+ t[10] !== g || t[11] !== o ? (N = g && /* @__PURE__ */ S.jsx(Nr, { "data-testid": "marimo-plugin-data-explorer-show-more-columns", variant: "link", size: "sm", className: "self-center col-span-3 -mt-1", onClick: () => c(ad), children: o ? "Show less" : "Show more" }), t[10] = g, t[11] = o, t[12] = N) : N = t[12];
6096
6085
  let T;
6097
6086
  t[13] !== E || t[14] !== N ? (T = /* @__PURE__ */ S.jsxs("div", { className: "hidden lg:grid grid-cols-2 xl:grid-cols-3 gap-2 p-2 bg-[var(--slate-1)] border rounded lg:items-center items-start w-fit grid-flow-dense max-h-[300px] overflow-auto", children: [
6098
6087
  E,
@@ -6126,16 +6115,16 @@ const mr = 12, rd = (e) => {
6126
6115
  p,
6127
6116
  T,
6128
6117
  v,
6129
- a && /* @__PURE__ */ S.jsx("div", { className: "grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 p-2 text-sm", children: id.map((w) => /* @__PURE__ */ S.jsxs("div", { className: "flex flex-row gap-2 min-w-[100px]", children: [
6118
+ a && /* @__PURE__ */ S.jsx("div", { className: "grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 p-2 text-sm", children: rd.map((w) => /* @__PURE__ */ S.jsxs("div", { className: "flex flex-row gap-2 min-w-[100px]", children: [
6130
6119
  /* @__PURE__ */ S.jsx("span", { className: "font-semibold", children: w }),
6131
- /* @__PURE__ */ S.jsx("span", { children: ad(s == null ? void 0 : s[w]) })
6120
+ /* @__PURE__ */ S.jsx("span", { children: id(s == null ? void 0 : s[w]) })
6132
6121
  ] }, w)) })
6133
6122
  ] }), t[0] = n, t[1] = a, t[2] = o, t[3] = f;
6134
6123
  } else
6135
6124
  f = t[3];
6136
6125
  return f;
6137
- }, id = ["distinct", "min", "max", "mean", "median", "q1", "q3", "stdev"];
6138
- function ad(e) {
6126
+ }, rd = ["distinct", "min", "max", "mean", "median", "q1", "q3", "stdev"];
6127
+ function id(e) {
6139
6128
  return typeof e == "number" ? new Intl.NumberFormat("en-US", {
6140
6129
  maximumFractionDigits: 2
6141
6130
  }).format(e) : typeof e == "string" ? e : typeof e == "object" && e instanceof Date ? new Intl.DateTimeFormat("en-US", {
@@ -6144,10 +6133,10 @@ function ad(e) {
6144
6133
  day: "numeric"
6145
6134
  }).format(e) : String(e);
6146
6135
  }
6147
- function od(e) {
6136
+ function ad(e) {
6148
6137
  return !e;
6149
6138
  }
6150
- const Wd = (e) => {
6139
+ const Hd = (e) => {
6151
6140
  const t = Oe.c(5);
6152
6141
  let n, a;
6153
6142
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = ma(), t[0] = a) : a = t[0], n = a;
@@ -6164,8 +6153,8 @@ const Wd = (e) => {
6164
6153
  return i && Object.keys(i).length > 0 && r.set(Be, i), f;
6165
6154
  }, t[1] = e, t[2] = o) : o = t[2], pa(o);
6166
6155
  let c;
6167
- return t[3] !== e ? (c = /* @__PURE__ */ S.jsx(ya, { store: r, children: /* @__PURE__ */ S.jsx(ud, { ...e }) }), t[3] = e, t[4] = c) : c = t[4], c;
6168
- }, sd = {
6156
+ return t[3] !== e ? (c = /* @__PURE__ */ S.jsx(ya, { store: r, children: /* @__PURE__ */ S.jsx(cd, { ...e }) }), t[3] = e, t[4] = c) : c = t[4], c;
6157
+ }, od = {
6169
6158
  export: {
6170
6159
  svg: !0,
6171
6160
  png: !0
@@ -6173,12 +6162,12 @@ const Wd = (e) => {
6173
6162
  source: !1,
6174
6163
  compiled: !1,
6175
6164
  editor: !1
6176
- }, cd = {
6165
+ }, sd = {
6177
6166
  left: 20,
6178
6167
  right: 20,
6179
6168
  top: 20,
6180
6169
  bottom: 20
6181
- }, ud = (e) => {
6170
+ }, cd = (e) => {
6182
6171
  var _, x, C, M, H, v, w, L, de, fe, ze, xe, ye, Ee;
6183
6172
  const t = Oe.c(43), {
6184
6173
  data: n
@@ -6187,12 +6176,12 @@ const Wd = (e) => {
6187
6176
  t[0] !== a || t[1] !== n ? (r = async () => {
6188
6177
  if (!n)
6189
6178
  return {};
6190
- const U = await Ta(n, {
6179
+ const U = await Aa(n, {
6191
6180
  type: "csv",
6192
6181
  parse: "auto"
6193
6182
  }, {
6194
6183
  replacePeriod: !0
6195
- }), ge = Lu(U);
6184
+ }), ge = Pu(U);
6196
6185
  return a.setSchema(ge), {
6197
6186
  chartData: U,
6198
6187
  schema: ge
@@ -6206,12 +6195,12 @@ const Wd = (e) => {
6206
6195
  error: i
6207
6196
  } = Ea(r, o), {
6208
6197
  mark: s
6209
- } = fn(Be), l = fn(ql), {
6198
+ } = fn(Be), l = fn(zl), {
6210
6199
  theme: u
6211
6200
  } = Sa();
6212
6201
  if (i) {
6213
6202
  let U;
6214
- return t[5] !== i ? (U = /* @__PURE__ */ S.jsx(Aa, { error: i }), t[5] = i, t[6] = U) : U = t[6], U;
6203
+ return t[5] !== i ? (U = /* @__PURE__ */ S.jsx(Oa, { error: i }), t[5] = i, t[6] = U) : U = t[6], U;
6215
6204
  }
6216
6205
  if (!c) {
6217
6206
  let U;
@@ -6228,28 +6217,28 @@ const Wd = (e) => {
6228
6217
  const h = (x = (_ = l.main) == null ? void 0 : _.plots) == null ? void 0 : x[0];
6229
6218
  let p, y, E, N;
6230
6219
  if (t[9] !== a || t[10] !== d || t[11] !== ((C = l.addCategoricalField) == null ? void 0 : C.plots) || t[12] !== ((M = l.addQuantitativeField) == null ? void 0 : M.plots) || t[13] !== ((H = l.addTemporalField) == null ? void 0 : H.plots) || t[14] !== ((v = l.histograms) == null ? void 0 : v.plots) || t[15] !== h || t[16] !== s || t[17] !== g || t[18] !== u) {
6231
- const U = new Set(h == null ? void 0 : h.fieldInfos.map(gd));
6220
+ const U = new Set(h == null ? void 0 : h.fieldInfos.map(fd));
6232
6221
  let ge;
6233
- t[23] !== d || t[24] !== h || t[25] !== g || t[26] !== u ? (ge = () => h ? /* @__PURE__ */ S.jsx("div", { className: "flex overflow-y-auto justify-center items-center flex-1 w-[90%]", children: /* @__PURE__ */ S.jsx(Vn, { data: {
6222
+ t[23] !== d || t[24] !== h || t[25] !== g || t[26] !== u ? (ge = () => h ? /* @__PURE__ */ S.jsx("div", { className: "flex overflow-y-auto justify-center items-center flex-1 w-[90%]", children: /* @__PURE__ */ S.jsx(qn, { data: {
6234
6223
  source: d
6235
- }, padding: cd, actions: sd, spec: fd(h.spec), theme: u === "dark" ? "dark" : void 0 }) }) : /* @__PURE__ */ S.jsx(rd, { schema: g }), t[23] = d, t[24] = h, t[25] = g, t[26] = u, t[27] = ge) : ge = t[27];
6224
+ }, padding: sd, actions: od, spec: dd(h.spec), theme: u === "dark" ? "dark" : void 0 }) }) : /* @__PURE__ */ S.jsx(nd, { schema: g }), t[23] = d, t[24] = h, t[25] = g, t[26] = u, t[27] = ge) : ge = t[27];
6236
6225
  const Wt = ge;
6237
6226
  E = "flex flex-col gap-2";
6238
- let Re;
6239
- t[28] !== s || t[29] !== g ? (Re = /* @__PURE__ */ S.jsx(Jl, { mark: s, schema: g }), t[28] = s, t[29] = g, t[30] = Re) : Re = t[30];
6227
+ let ke;
6228
+ t[28] !== s || t[29] !== g ? (ke = /* @__PURE__ */ S.jsx(Xl, { mark: s, schema: g }), t[28] = s, t[29] = g, t[30] = ke) : ke = t[30];
6240
6229
  let Ue;
6241
- t[31] !== Wt ? (Ue = Wt(), t[31] = Wt, t[32] = Ue) : Ue = t[32], t[33] !== Re || t[34] !== Ue ? (N = /* @__PURE__ */ S.jsxs("div", { className: "flex items-center gap-2", children: [
6242
- Re,
6230
+ t[31] !== Wt ? (Ue = Wt(), t[31] = Wt, t[32] = Ue) : Ue = t[32], t[33] !== ke || t[34] !== Ue ? (N = /* @__PURE__ */ S.jsxs("div", { className: "flex items-center gap-2", children: [
6231
+ ke,
6243
6232
  Ue
6244
- ] }), t[33] = Re, t[34] = Ue, t[35] = N) : N = t[35], p = ld, y = [(w = l.histograms) == null ? void 0 : w.plots, (L = l.addCategoricalField) == null ? void 0 : L.plots, (de = l.addQuantitativeField) == null ? void 0 : de.plots, (fe = l.addTemporalField) == null ? void 0 : fe.plots].filter(Boolean).flat().map((Yt, Yn) => /* @__PURE__ */ S.jsx(dd, { title: /* @__PURE__ */ S.jsx("div", { className: "flex flex-row gap-1", children: Yt.fieldInfos.map((Se) => {
6245
- const zn = Se.fieldDef.field === "*" ? "Count" : Se.fieldDef.fn ? `${Se.fieldDef.fn}(${Se.fieldDef.field})` : Se.fieldDef.field.toString();
6246
- return /* @__PURE__ */ S.jsx(Ca, { variant: U.has(Se.fieldDef.field) ? "secondary" : "defaultOutline", children: zn }, zn);
6233
+ ] }), t[33] = ke, t[34] = Ue, t[35] = N) : N = t[35], p = ud, y = [(w = l.histograms) == null ? void 0 : w.plots, (L = l.addCategoricalField) == null ? void 0 : L.plots, (de = l.addQuantitativeField) == null ? void 0 : de.plots, (fe = l.addTemporalField) == null ? void 0 : fe.plots].filter(Boolean).flat().map((Yt, Wn) => /* @__PURE__ */ S.jsx(ld, { title: /* @__PURE__ */ S.jsx("div", { className: "flex flex-row gap-1", children: Yt.fieldInfos.map((Se) => {
6234
+ const Yn = Se.fieldDef.field === "*" ? "Count" : Se.fieldDef.fn ? `${Se.fieldDef.fn}(${Se.fieldDef.field})` : Se.fieldDef.field.toString();
6235
+ return /* @__PURE__ */ S.jsx(Ta, { variant: U.has(Se.fieldDef.field) ? "secondary" : "defaultOutline", children: Yn }, Yn);
6247
6236
  }) }), actions: /* @__PURE__ */ S.jsx(Na, { content: "Make main plot", children: /* @__PURE__ */ S.jsx(Nr, { "data-testid": "marimo-plugin-data-explorer-make-main-plot", variant: "text", size: "icon", onClick: () => {
6248
- const Se = _a.fromEntries(Yt.fieldInfos.map(hd));
6237
+ const Se = Ca.fromEntries(Yt.fieldInfos.map(gd));
6249
6238
  a.setEncoding(Se);
6250
- }, children: /* @__PURE__ */ S.jsx(Fa, { className: "w-4 h-4" }) }) }), children: /* @__PURE__ */ S.jsx(Vn, { data: {
6239
+ }, children: /* @__PURE__ */ S.jsx(_a, { className: "w-4 h-4" }) }) }), children: /* @__PURE__ */ S.jsx(qn, { data: {
6251
6240
  source: d
6252
- }, actions: !1, spec: Yt.spec, theme: u === "dark" ? "dark" : void 0 }, Yn) }, Yn)), t[9] = a, t[10] = d, t[11] = (ze = l.addCategoricalField) == null ? void 0 : ze.plots, t[12] = (xe = l.addQuantitativeField) == null ? void 0 : xe.plots, t[13] = (ye = l.addTemporalField) == null ? void 0 : ye.plots, t[14] = (Ee = l.histograms) == null ? void 0 : Ee.plots, t[15] = h, t[16] = s, t[17] = g, t[18] = u, t[19] = p, t[20] = y, t[21] = E, t[22] = N;
6241
+ }, actions: !1, spec: Yt.spec, theme: u === "dark" ? "dark" : void 0 }, Wn) }, Wn)), t[9] = a, t[10] = d, t[11] = (ze = l.addCategoricalField) == null ? void 0 : ze.plots, t[12] = (xe = l.addQuantitativeField) == null ? void 0 : xe.plots, t[13] = (ye = l.addTemporalField) == null ? void 0 : ye.plots, t[14] = (Ee = l.histograms) == null ? void 0 : Ee.plots, t[15] = h, t[16] = s, t[17] = g, t[18] = u, t[19] = p, t[20] = y, t[21] = E, t[22] = N;
6253
6242
  } else
6254
6243
  p = t[19], y = t[20], E = t[21], N = t[22];
6255
6244
  let T;
@@ -6259,15 +6248,15 @@ const Wd = (e) => {
6259
6248
  N,
6260
6249
  T
6261
6250
  ] }), t[39] = E, t[40] = N, t[41] = T, t[42] = A) : A = t[42], A;
6262
- }, ld = (e) => {
6251
+ }, ud = (e) => {
6263
6252
  const t = Oe.c(2), {
6264
6253
  children: n
6265
6254
  } = e;
6266
- if (Oa.Children.count(n) === 0)
6255
+ if (xa.Children.count(n) === 0)
6267
6256
  return null;
6268
6257
  let a;
6269
6258
  return t[0] !== n ? (a = /* @__PURE__ */ S.jsx("div", { className: "flex flex-row overflow-x-auto overflow-y-hidden gap-4 snap-x pb-4", children: n }), t[0] = n, t[1] = a) : a = t[1], a;
6270
- }, dd = (e) => {
6259
+ }, ld = (e) => {
6271
6260
  const t = Oe.c(10), {
6272
6261
  title: n,
6273
6262
  children: a,
@@ -6288,17 +6277,17 @@ const Wd = (e) => {
6288
6277
  f
6289
6278
  ] }), t[7] = c, t[8] = f, t[9] = i) : i = t[9], i;
6290
6279
  };
6291
- function fd(e) {
6280
+ function dd(e) {
6292
6281
  var n, a;
6293
6282
  return !!((n = e.encoding) != null && n.row || (a = e.encoding) != null && a.column) || (e.width = "container"), e;
6294
6283
  }
6295
- function gd(e) {
6284
+ function fd(e) {
6296
6285
  return e.fieldDef.field;
6297
6286
  }
6298
- function hd(e) {
6287
+ function gd(e) {
6299
6288
  return [e.channel, e.fieldDef];
6300
6289
  }
6301
6290
  export {
6302
- ud as DataExplorerComponent,
6303
- Wd as default
6291
+ cd as DataExplorerComponent,
6292
+ Hd as default
6304
6293
  };