@marimo-team/islands 0.13.11-dev9 → 0.13.12-dev0

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 (60) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DNFNhFao.js → ConnectedDataExplorerComponent-FNbGSvi8.js} +2 -2
  2. package/dist/{VegaLite-DKhvOxhd.js → VegaLite-B3o5ox9T.js} +3 -3
  3. package/dist/{_baseUniq-Cnmb3ubw.js → _baseUniq-DtgA5XPY.js} +54 -54
  4. package/dist/{any-language-editor-DDfK2m6u.js → any-language-editor-8d2qvq0F.js} +1 -1
  5. package/dist/{architectureDiagram-IEHRJDOE-BJKDueJ9.js → architectureDiagram-IEHRJDOE-CB6bOsZM.js} +5 -5
  6. package/dist/assets/{save-worker-BPdUArx2.js → save-worker-9HEtFDM0.js} +286 -278
  7. package/dist/assets/{worker-ClUJakx7.js → worker-BGGm0KYZ.js} +343 -335
  8. package/dist/assets/{worker-C7cQgmFi.js → worker-e6AF4zgJ.js} +221 -213
  9. package/dist/{blockDiagram-JOT3LUYC-DhMhm8Xe.js → blockDiagram-JOT3LUYC-t44G8uzR.js} +4 -4
  10. package/dist/{c4Diagram-VJAJSXHY-DIvwawx4.js → c4Diagram-VJAJSXHY-CST113S2.js} +2 -2
  11. package/dist/{channel-TMoqPr80.js → channel-Bwf01f3R.js} +1 -1
  12. package/dist/{chunk-4BMEZGHF-DnSQqNNW.js → chunk-4BMEZGHF-C9AAA_rW.js} +1 -1
  13. package/dist/{chunk-A2AXSNBT-Dq3BgLsK.js → chunk-A2AXSNBT-BwmTl1_u.js} +2 -2
  14. package/dist/{chunk-AEK57VVT-CwaeaYJL.js → chunk-AEK57VVT-B8tLbxDM.js} +2 -2
  15. package/dist/{chunk-D6G4REZN-BOTOoqo0.js → chunk-D6G4REZN-BAMJhwxD.js} +1 -1
  16. package/dist/{chunk-RZ5BOZE2-CVxHuaLv.js → chunk-RZ5BOZE2-4pJ3_scN.js} +1 -1
  17. package/dist/{chunk-XZIHB7SX-DNNYFdyl.js → chunk-XZIHB7SX-Cx0pSget.js} +1 -1
  18. package/dist/{classDiagram-GIVACNV2-uTqqFExw.js → classDiagram-GIVACNV2-gz-oy0MW.js} +2 -2
  19. package/dist/{classDiagram-v2-COTLJTTW-uTqqFExw.js → classDiagram-v2-COTLJTTW-gz-oy0MW.js} +2 -2
  20. package/dist/{clone-CDpSWalN.js → clone-dnzW62XO.js} +1 -1
  21. package/dist/{dagre-OKDRZEBW-JNTKltpU.js → dagre-OKDRZEBW-CXolCKwF.js} +6 -6
  22. package/dist/{data-editor-D3fd2FeE.js → data-editor-DgNYCz0Q.js} +1 -1
  23. package/dist/{diagram-SSKATNLV-CTMqjD6s.js → diagram-SSKATNLV-U-H97Xtz.js} +3 -3
  24. package/dist/{diagram-VNBRO52H-DSee8eIJ.js → diagram-VNBRO52H-esuvkFar.js} +3 -3
  25. package/dist/{erDiagram-Q7BY3M3F-CyV9O6sy.js → erDiagram-Q7BY3M3F-FytgjBzQ.js} +3 -3
  26. package/dist/{flowDiagram-4HSFHLVR-2u7K98LJ.js → flowDiagram-4HSFHLVR-CCo-m8L6.js} +3 -3
  27. package/dist/{ganttDiagram-APWFNJXF-BB8Zg5Y4.js → ganttDiagram-APWFNJXF-C8agL4qD.js} +55 -55
  28. package/dist/{gitGraphDiagram-7IBYFJ6S-aYU1F4wa.js → gitGraphDiagram-7IBYFJ6S-BJiSpnCC.js} +4 -4
  29. package/dist/{graph-l3qinZrG.js → graph-C9ZqAPxA.js} +3 -3
  30. package/dist/{index-B9NppCsQ.js → index-BD-RvQwV.js} +3 -3
  31. package/dist/{index-CY7Dqfcn.js → index-BKbHLeTh.js} +1 -1
  32. package/dist/{index-R1DxFaFx.js → index-CaoFhmu4.js} +1 -1
  33. package/dist/{index-DrK53x_G.js → index-D-xHZTYe.js} +1 -1
  34. package/dist/{infoDiagram-PH2N3AL5-D1ZvUr5q.js → infoDiagram-PH2N3AL5-C53SsZF9.js} +2 -2
  35. package/dist/{journeyDiagram-U35MCT3I-Cv7KahYc.js → journeyDiagram-U35MCT3I-CCegkd26.js} +2 -2
  36. package/dist/{kanban-definition-NDS4AKOZ-Bwsom9hq.js → kanban-definition-NDS4AKOZ-DFlPdoaw.js} +1 -1
  37. package/dist/{layout-B7xmxBzS.js → layout-CNfguXUJ.js} +51 -51
  38. package/dist/{linear-Z-9vruHe.js → linear-CNsS8TrU.js} +32 -32
  39. package/dist/{main-BqO9_FY3.js → main-g8NhKoTu.js} +31433 -31024
  40. package/dist/main.js +1 -1
  41. package/dist/{mermaid-DfXzT8eM.js → mermaid-CtQrLDj5.js} +28 -28
  42. package/dist/min-DxFsVG0s.js +80 -0
  43. package/dist/{mindmap-definition-ALO5MXBD-0DD2ibro.js → mindmap-definition-ALO5MXBD-DODIWOcX.js} +2 -2
  44. package/dist/{pieDiagram-IB7DONF6-DLEMxUEw.js → pieDiagram-IB7DONF6-idZ3yXbW.js} +3 -3
  45. package/dist/{quadrantDiagram-7GDLP6J5-DdXTrGLY.js → quadrantDiagram-7GDLP6J5-CsqzLGmr.js} +2 -2
  46. package/dist/{radar-MK3ICKWK-BHmvEDfD.js → radar-MK3ICKWK-CP2VGUCO.js} +11 -11
  47. package/dist/{react-plotly-DBvyHI0-.js → react-plotly-Q_pQo456.js} +1 -1
  48. package/dist/{requirementDiagram-KVF5MWMF-CdmrpKf0.js → requirementDiagram-KVF5MWMF-D7NXQSqV.js} +2 -2
  49. package/dist/{sankeyDiagram-QLVOVGJD-BiZAVzWW.js → sankeyDiagram-QLVOVGJD-aml_jM75.js} +1 -1
  50. package/dist/{sequenceDiagram-X6HHIX6F-Cj_aORDs.js → sequenceDiagram-X6HHIX6F-81wcdr36.js} +3 -3
  51. package/dist/{slides-component-B5CgdIYY.js → slides-component-Or7SgqNJ.js} +1 -1
  52. package/dist/{stateDiagram-DGXRK772-D4DF1dAO.js → stateDiagram-DGXRK772-4X0GNAMA.js} +4 -4
  53. package/dist/{stateDiagram-v2-YXO3MK2T-DRog8-R0.js → stateDiagram-v2-YXO3MK2T-aAVlUYKE.js} +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/{time-BBAeUx5g.js → time-DL1wn8El.js} +2 -2
  56. package/dist/{timeline-definition-BDJGKUSR-CgE2J3r1.js → timeline-definition-BDJGKUSR-Br4M07XC.js} +1 -1
  57. package/dist/{vega-component-DJbPN8Ym.js → vega-component-0d4DZiso.js} +2 -2
  58. package/dist/{xychartDiagram-VJFVF3MP-B-qILb0h.js → xychartDiagram-VJFVF3MP-C_0y0XwM.js} +2 -2
  59. package/package.json +2 -2
  60. package/dist/min-C88XdK-I.js +0 -85
@@ -1,5 +1,5 @@
1
- var pr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
2
- var rs = pr((as, yt) => {
1
+ var hr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
2
+ var ns = hr((is, gt) => {
3
3
  var b;
4
4
  (function(t) {
5
5
  t.assertEqual = (s) => s;
@@ -36,14 +36,14 @@ var rs = pr((as, yt) => {
36
36
  }
37
37
  t.joinValues = n, t.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
38
38
  })(b || (b = {}));
39
- var at;
39
+ var it;
40
40
  (function(t) {
41
41
  t.mergeShapes = (e, r) => ({
42
42
  ...e,
43
43
  ...r
44
44
  // second overwrites first
45
45
  });
46
- })(at || (at = {}));
46
+ })(it || (it = {}));
47
47
  const p = b.arrayToEnum([
48
48
  "string",
49
49
  "nan",
@@ -103,7 +103,7 @@ var rs = pr((as, yt) => {
103
103
  "invalid_intersection_types",
104
104
  "not_multiple_of",
105
105
  "not_finite"
106
- ]), hr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
106
+ ]), mr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
107
107
  class I extends Error {
108
108
  get errors() {
109
109
  return this.issues;
@@ -221,7 +221,7 @@ var rs = pr((as, yt) => {
221
221
  return { message: r };
222
222
  };
223
223
  let Rt = me;
224
- function mr(t) {
224
+ function yr(t) {
225
225
  Rt = t;
226
226
  }
227
227
  function ze() {
@@ -247,7 +247,7 @@ var rs = pr((as, yt) => {
247
247
  path: a,
248
248
  message: o
249
249
  };
250
- }, yr = [];
250
+ }, gr = [];
251
251
  function f(t, e) {
252
252
  const r = ze(), n = qe({
253
253
  issueData: e,
@@ -309,7 +309,7 @@ var rs = pr((as, yt) => {
309
309
  }
310
310
  const y = Object.freeze({
311
311
  status: "aborted"
312
- }), pe = (t) => ({ status: "dirty", value: t }), A = (t) => ({ status: "valid", value: t }), it = (t) => t.status === "aborted", ot = (t) => t.status === "dirty", se = (t) => t.status === "valid", Se = (t) => typeof Promise < "u" && t instanceof Promise;
312
+ }), pe = (t) => ({ status: "dirty", value: t }), A = (t) => ({ status: "valid", value: t }), ot = (t) => t.status === "aborted", dt = (t) => t.status === "dirty", se = (t) => t.status === "valid", Se = (t) => typeof Promise < "u" && t instanceof Promise;
313
313
  function Be(t, e, r, n) {
314
314
  if (typeof e == "function" ? t !== e || !0 : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
315
315
  return e.get(t);
@@ -331,7 +331,7 @@ var rs = pr((as, yt) => {
331
331
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
332
332
  }
333
333
  }
334
- const xt = (t, e) => {
334
+ const Tt = (t, e) => {
335
335
  if (se(e))
336
336
  return { success: !0, data: e.value };
337
337
  if (!t.common.issues.length)
@@ -418,7 +418,7 @@ var rs = pr((as, yt) => {
418
418
  data: e,
419
419
  parsedType: q(e)
420
420
  }, a = this._parseSync({ data: e, path: s.path, parent: s });
421
- return xt(s, a);
421
+ return Tt(s, a);
422
422
  }
423
423
  "~validate"(e) {
424
424
  var r, n;
@@ -472,7 +472,7 @@ var rs = pr((as, yt) => {
472
472
  data: e,
473
473
  parsedType: q(e)
474
474
  }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (Se(s) ? s : Promise.resolve(s));
475
- return xt(n, a);
475
+ return Tt(n, a);
476
476
  }
477
477
  refine(e, r) {
478
478
  const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
@@ -543,7 +543,7 @@ var rs = pr((as, yt) => {
543
543
  });
544
544
  }
545
545
  brand() {
546
- return new gt({
546
+ return new vt({
547
547
  typeName: m.ZodBranded,
548
548
  type: this,
549
549
  ...v(this._def)
@@ -578,14 +578,14 @@ var rs = pr((as, yt) => {
578
578
  return this.safeParse(null).success;
579
579
  }
580
580
  }
581
- const gr = /^c[^\s-]{8,}$/i, vr = /^[0-9a-z]+$/, _r = /^[0-9A-HJKMNP-TV-Z]{26}$/i, wr = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, br = /^[a-z0-9_-]{21}$/i, kr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, xr = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Tr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Sr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
582
- let rt;
583
- const Er = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Or = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Nr = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Rr = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ar = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Cr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ct = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ir = new RegExp(`^${Ct}$`);
581
+ const vr = /^c[^\s-]{8,}$/i, _r = /^[0-9a-z]+$/, wr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, br = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, kr = /^[a-z0-9_-]{21}$/i, xr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Tr = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Sr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Er = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
582
+ let nt;
583
+ const Or = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Nr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Rr = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Ar = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Cr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ir = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ct = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Pr = new RegExp(`^${Ct}$`);
584
584
  function It(t) {
585
585
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
586
586
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
587
587
  }
588
- function Pr(t) {
588
+ function Zr(t) {
589
589
  return new RegExp(`^${It(t)}$`);
590
590
  }
591
591
  function Pt(t) {
@@ -593,11 +593,11 @@ var rs = pr((as, yt) => {
593
593
  const r = [];
594
594
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
595
595
  }
596
- function Zr(t, e) {
597
- return !!((e === "v4" || !e) && Er.test(t) || (e === "v6" || !e) && Nr.test(t));
598
- }
599
596
  function jr(t, e) {
600
- if (!kr.test(t))
597
+ return !!((e === "v4" || !e) && Or.test(t) || (e === "v6" || !e) && Rr.test(t));
598
+ }
599
+ function $r(t, e) {
600
+ if (!xr.test(t))
601
601
  return !1;
602
602
  try {
603
603
  const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
@@ -606,8 +606,8 @@ var rs = pr((as, yt) => {
606
606
  return !1;
607
607
  }
608
608
  }
609
- function $r(t, e) {
610
- return !!((e === "v4" || !e) && Or.test(t) || (e === "v6" || !e) && Rr.test(t));
609
+ function Fr(t, e) {
610
+ return !!((e === "v4" || !e) && Nr.test(t) || (e === "v6" || !e) && Ar.test(t));
611
611
  }
612
612
  class Z extends _ {
613
613
  _parse(e) {
@@ -658,43 +658,43 @@ var rs = pr((as, yt) => {
658
658
  message: a.message
659
659
  }), n.dirty());
660
660
  } else if (a.kind === "email")
661
- Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
661
+ Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
662
662
  validation: "email",
663
663
  code: u.invalid_string,
664
664
  message: a.message
665
665
  }), n.dirty());
666
666
  else if (a.kind === "emoji")
667
- rt || (rt = new RegExp(Sr, "u")), rt.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
667
+ nt || (nt = new RegExp(Er, "u")), nt.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
668
668
  validation: "emoji",
669
669
  code: u.invalid_string,
670
670
  message: a.message
671
671
  }), n.dirty());
672
672
  else if (a.kind === "uuid")
673
- wr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
673
+ br.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
674
674
  validation: "uuid",
675
675
  code: u.invalid_string,
676
676
  message: a.message
677
677
  }), n.dirty());
678
678
  else if (a.kind === "nanoid")
679
- br.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
679
+ kr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
680
680
  validation: "nanoid",
681
681
  code: u.invalid_string,
682
682
  message: a.message
683
683
  }), n.dirty());
684
684
  else if (a.kind === "cuid")
685
- gr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
685
+ vr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
686
686
  validation: "cuid",
687
687
  code: u.invalid_string,
688
688
  message: a.message
689
689
  }), n.dirty());
690
690
  else if (a.kind === "cuid2")
691
- vr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
691
+ _r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
692
692
  validation: "cuid2",
693
693
  code: u.invalid_string,
694
694
  message: a.message
695
695
  }), n.dirty());
696
696
  else if (a.kind === "ulid")
697
- _r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
697
+ wr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
698
698
  validation: "ulid",
699
699
  code: u.invalid_string,
700
700
  message: a.message
@@ -729,35 +729,35 @@ var rs = pr((as, yt) => {
729
729
  code: u.invalid_string,
730
730
  validation: "datetime",
731
731
  message: a.message
732
- }), n.dirty()) : a.kind === "date" ? Ir.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
732
+ }), n.dirty()) : a.kind === "date" ? Pr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
733
733
  code: u.invalid_string,
734
734
  validation: "date",
735
735
  message: a.message
736
- }), n.dirty()) : a.kind === "time" ? Pr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
736
+ }), n.dirty()) : a.kind === "time" ? Zr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
737
737
  code: u.invalid_string,
738
738
  validation: "time",
739
739
  message: a.message
740
- }), n.dirty()) : a.kind === "duration" ? xr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
740
+ }), n.dirty()) : a.kind === "duration" ? Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
741
741
  validation: "duration",
742
742
  code: u.invalid_string,
743
743
  message: a.message
744
- }), n.dirty()) : a.kind === "ip" ? Zr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
744
+ }), n.dirty()) : a.kind === "ip" ? jr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
745
745
  validation: "ip",
746
746
  code: u.invalid_string,
747
747
  message: a.message
748
- }), n.dirty()) : a.kind === "jwt" ? jr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
748
+ }), n.dirty()) : a.kind === "jwt" ? $r(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
749
749
  validation: "jwt",
750
750
  code: u.invalid_string,
751
751
  message: a.message
752
- }), n.dirty()) : a.kind === "cidr" ? $r(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
752
+ }), n.dirty()) : a.kind === "cidr" ? Fr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
753
753
  validation: "cidr",
754
754
  code: u.invalid_string,
755
755
  message: a.message
756
- }), n.dirty()) : a.kind === "base64" ? Ar.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
756
+ }), n.dirty()) : a.kind === "base64" ? Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
757
757
  validation: "base64",
758
758
  code: u.invalid_string,
759
759
  message: a.message
760
- }), n.dirty()) : a.kind === "base64url" ? Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
760
+ }), n.dirty()) : a.kind === "base64url" ? Ir.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
761
761
  validation: "base64url",
762
762
  code: u.invalid_string,
763
763
  message: a.message
@@ -996,7 +996,7 @@ var rs = pr((as, yt) => {
996
996
  ...v(t)
997
997
  });
998
998
  };
999
- function Fr(t, e) {
999
+ function Mr(t, e) {
1000
1000
  const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = parseInt(t.toFixed(s).replace(".", "")), i = parseInt(e.toFixed(s).replace(".", ""));
1001
1001
  return a % i / Math.pow(10, s);
1002
1002
  }
@@ -1035,7 +1035,7 @@ var rs = pr((as, yt) => {
1035
1035
  inclusive: a.inclusive,
1036
1036
  exact: !1,
1037
1037
  message: a.message
1038
- }), s.dirty()) : a.kind === "multipleOf" ? Fr(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
1038
+ }), s.dirty()) : a.kind === "multipleOf" ? Mr(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
1039
1039
  code: u.not_multiple_of,
1040
1040
  multipleOf: a.value,
1041
1041
  message: a.message
@@ -1959,8 +1959,8 @@ var rs = pr((as, yt) => {
1959
1959
  typeName: m.ZodUnion,
1960
1960
  ...v(e)
1961
1961
  });
1962
- const z = (t) => t instanceof Ie ? z(t.schema) : t instanceof $ ? z(t.innerType()) : t instanceof Pe ? [t.value] : t instanceof Y ? t.options : t instanceof Ze ? b.objectValues(t.enum) : t instanceof je ? z(t._def.innerType) : t instanceof Oe ? [void 0] : t instanceof Ne ? [null] : t instanceof M ? [void 0, ...z(t.unwrap())] : t instanceof K ? [null, ...z(t.unwrap())] : t instanceof gt || t instanceof Fe ? z(t.unwrap()) : t instanceof $e ? z(t._def.innerType) : [];
1963
- class Qe extends _ {
1962
+ const z = (t) => t instanceof Ie ? z(t.schema) : t instanceof $ ? z(t.innerType()) : t instanceof Pe ? [t.value] : t instanceof Y ? t.options : t instanceof Ze ? b.objectValues(t.enum) : t instanceof je ? z(t._def.innerType) : t instanceof Oe ? [void 0] : t instanceof Ne ? [null] : t instanceof M ? [void 0, ...z(t.unwrap())] : t instanceof K ? [null, ...z(t.unwrap())] : t instanceof vt || t instanceof Fe ? z(t.unwrap()) : t instanceof $e ? z(t._def.innerType) : [];
1963
+ class et extends _ {
1964
1964
  _parse(e) {
1965
1965
  const { ctx: r } = this._processInputParams(e);
1966
1966
  if (r.parsedType !== p.object)
@@ -2013,7 +2013,7 @@ var rs = pr((as, yt) => {
2013
2013
  s.set(o, a);
2014
2014
  }
2015
2015
  }
2016
- return new Qe({
2016
+ return new et({
2017
2017
  typeName: m.ZodDiscriminatedUnion,
2018
2018
  discriminator: e,
2019
2019
  options: r,
@@ -2022,14 +2022,14 @@ var rs = pr((as, yt) => {
2022
2022
  });
2023
2023
  }
2024
2024
  }
2025
- function dt(t, e) {
2025
+ function ct(t, e) {
2026
2026
  const r = q(t), n = q(e);
2027
2027
  if (t === e)
2028
2028
  return { valid: !0, data: t };
2029
2029
  if (r === p.object && n === p.object) {
2030
2030
  const s = b.objectKeys(e), a = b.objectKeys(t).filter((o) => s.indexOf(o) !== -1), i = { ...t, ...e };
2031
2031
  for (const o of a) {
2032
- const d = dt(t[o], e[o]);
2032
+ const d = ct(t[o], e[o]);
2033
2033
  if (!d.valid)
2034
2034
  return { valid: !1 };
2035
2035
  i[o] = d.data;
@@ -2040,7 +2040,7 @@ var rs = pr((as, yt) => {
2040
2040
  return { valid: !1 };
2041
2041
  const s = [];
2042
2042
  for (let a = 0; a < t.length; a++) {
2043
- const i = t[a], o = e[a], d = dt(i, o);
2043
+ const i = t[a], o = e[a], d = ct(i, o);
2044
2044
  if (!d.valid)
2045
2045
  return { valid: !1 };
2046
2046
  s.push(d.data);
@@ -2051,10 +2051,10 @@ var rs = pr((as, yt) => {
2051
2051
  class Ae extends _ {
2052
2052
  _parse(e) {
2053
2053
  const { status: r, ctx: n } = this._processInputParams(e), s = (a, i) => {
2054
- if (it(a) || it(i))
2054
+ if (ot(a) || ot(i))
2055
2055
  return y;
2056
- const o = dt(a.value, i.value);
2057
- return o.valid ? ((ot(a) || ot(i)) && r.dirty(), { status: r.value, value: o.data }) : (f(n, {
2056
+ const o = ct(a.value, i.value);
2057
+ return o.valid ? ((dt(a) || dt(i)) && r.dirty(), { status: r.value, value: o.data }) : (f(n, {
2058
2058
  code: u.invalid_intersection_types
2059
2059
  }), y);
2060
2060
  };
@@ -2744,8 +2744,8 @@ var rs = pr((as, yt) => {
2744
2744
  typeName: m.ZodNaN,
2745
2745
  ...v(t)
2746
2746
  });
2747
- const Mr = Symbol("zod_brand");
2748
- class gt extends _ {
2747
+ const Lr = Symbol("zod_brand");
2748
+ class vt extends _ {
2749
2749
  _parse(e) {
2750
2750
  const { ctx: r } = this._processInputParams(e), n = r.data;
2751
2751
  return this._def.type._parse({
@@ -2812,7 +2812,7 @@ var rs = pr((as, yt) => {
2812
2812
  typeName: m.ZodReadonly,
2813
2813
  ...v(e)
2814
2814
  });
2815
- function Tt(t, e) {
2815
+ function St(t, e) {
2816
2816
  const r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
2817
2817
  return typeof r == "string" ? { message: r } : r;
2818
2818
  }
@@ -2824,26 +2824,26 @@ var rs = pr((as, yt) => {
2824
2824
  return o.then((d) => {
2825
2825
  var c, l;
2826
2826
  if (!d) {
2827
- const w = Tt(e, n), x = (l = (c = w.fatal) !== null && c !== void 0 ? c : r) !== null && l !== void 0 ? l : !0;
2827
+ const w = St(e, n), x = (l = (c = w.fatal) !== null && c !== void 0 ? c : r) !== null && l !== void 0 ? l : !0;
2828
2828
  s.addIssue({ code: "custom", ...w, fatal: x });
2829
2829
  }
2830
2830
  });
2831
2831
  if (!o) {
2832
- const d = Tt(e, n), c = (i = (a = d.fatal) !== null && a !== void 0 ? a : r) !== null && i !== void 0 ? i : !0;
2832
+ const d = St(e, n), c = (i = (a = d.fatal) !== null && a !== void 0 ? a : r) !== null && i !== void 0 ? i : !0;
2833
2833
  s.addIssue({ code: "custom", ...d, fatal: c });
2834
2834
  }
2835
2835
  }) : ye.create();
2836
2836
  }
2837
- const Lr = {
2837
+ const Dr = {
2838
2838
  object: E.lazycreate
2839
2839
  };
2840
2840
  var m;
2841
2841
  (function(t) {
2842
2842
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
2843
2843
  })(m || (m = {}));
2844
- const Dr = (t, e = {
2844
+ const Vr = (t, e = {
2845
2845
  message: `Input not instance of ${t.name}`
2846
- }) => jt((r) => r instanceof t, e), $t = Z.create, Ft = W.create, Vr = Ye.create, Ur = J.create, Mt = Ee.create, zr = ae.create, qr = He.create, Br = Oe.create, Hr = Ne.create, Wr = ye.create, Jr = ne.create, Yr = B.create, Kr = We.create, Gr = j.create, Xr = E.create, Qr = E.strictCreate, en = Re.create, tn = Qe.create, rn = Ae.create, nn = D.create, sn = Ce.create, an = Je.create, on = ie.create, dn = he.create, cn = Ie.create, un = Pe.create, ln = Y.create, fn = Ze.create, pn = ge.create, St = $.create, hn = M.create, mn = K.create, yn = $.createWithPreprocess, gn = Me.create, vn = () => $t().optional(), _n = () => Ft().optional(), wn = () => Mt().optional(), bn = {
2846
+ }) => jt((r) => r instanceof t, e), $t = Z.create, Ft = W.create, Ur = Ye.create, zr = J.create, Mt = Ee.create, qr = ae.create, Br = He.create, Hr = Oe.create, Wr = Ne.create, Jr = ye.create, Yr = ne.create, Kr = B.create, Gr = We.create, Xr = j.create, Qr = E.create, en = E.strictCreate, tn = Re.create, rn = et.create, nn = Ae.create, sn = D.create, an = Ce.create, on = Je.create, dn = ie.create, cn = he.create, un = Ie.create, ln = Pe.create, fn = Y.create, pn = Ze.create, hn = ge.create, Et = $.create, mn = M.create, yn = K.create, gn = $.createWithPreprocess, vn = Me.create, _n = () => $t().optional(), wn = () => Ft().optional(), bn = () => Mt().optional(), kn = {
2847
2847
  string: (t) => Z.create({ ...t, coerce: !0 }),
2848
2848
  number: (t) => W.create({ ...t, coerce: !0 }),
2849
2849
  boolean: (t) => Ee.create({
@@ -2852,28 +2852,28 @@ var rs = pr((as, yt) => {
2852
2852
  }),
2853
2853
  bigint: (t) => J.create({ ...t, coerce: !0 }),
2854
2854
  date: (t) => ae.create({ ...t, coerce: !0 })
2855
- }, kn = y;
2856
- var Et = /* @__PURE__ */ Object.freeze({
2855
+ }, xn = y;
2856
+ var Ke = /* @__PURE__ */ Object.freeze({
2857
2857
  __proto__: null,
2858
2858
  defaultErrorMap: me,
2859
- setErrorMap: mr,
2859
+ setErrorMap: yr,
2860
2860
  getErrorMap: ze,
2861
2861
  makeIssue: qe,
2862
- EMPTY_PATH: yr,
2862
+ EMPTY_PATH: gr,
2863
2863
  addIssueToContext: f,
2864
2864
  ParseStatus: R,
2865
2865
  INVALID: y,
2866
2866
  DIRTY: pe,
2867
2867
  OK: A,
2868
- isAborted: it,
2869
- isDirty: ot,
2868
+ isAborted: ot,
2869
+ isDirty: dt,
2870
2870
  isValid: se,
2871
2871
  isAsync: Se,
2872
2872
  get util() {
2873
2873
  return b;
2874
2874
  },
2875
2875
  get objectUtil() {
2876
- return at;
2876
+ return it;
2877
2877
  },
2878
2878
  ZodParsedType: p,
2879
2879
  getParsedType: q,
@@ -2894,7 +2894,7 @@ var rs = pr((as, yt) => {
2894
2894
  ZodArray: j,
2895
2895
  ZodObject: E,
2896
2896
  ZodUnion: Re,
2897
- ZodDiscriminatedUnion: Qe,
2897
+ ZodDiscriminatedUnion: et,
2898
2898
  ZodIntersection: Ae,
2899
2899
  ZodTuple: D,
2900
2900
  ZodRecord: Ce,
@@ -2913,76 +2913,81 @@ var rs = pr((as, yt) => {
2913
2913
  ZodDefault: je,
2914
2914
  ZodCatch: $e,
2915
2915
  ZodNaN: Ye,
2916
- BRAND: Mr,
2917
- ZodBranded: gt,
2916
+ BRAND: Lr,
2917
+ ZodBranded: vt,
2918
2918
  ZodPipeline: Me,
2919
2919
  ZodReadonly: Fe,
2920
2920
  custom: jt,
2921
2921
  Schema: _,
2922
2922
  ZodSchema: _,
2923
- late: Lr,
2923
+ late: Dr,
2924
2924
  get ZodFirstPartyTypeKind() {
2925
2925
  return m;
2926
2926
  },
2927
- coerce: bn,
2928
- any: Wr,
2929
- array: Gr,
2930
- bigint: Ur,
2927
+ coerce: kn,
2928
+ any: Jr,
2929
+ array: Xr,
2930
+ bigint: zr,
2931
2931
  boolean: Mt,
2932
- date: zr,
2933
- discriminatedUnion: tn,
2934
- effect: St,
2935
- enum: ln,
2936
- function: dn,
2937
- instanceof: Dr,
2938
- intersection: rn,
2939
- lazy: cn,
2940
- literal: un,
2941
- map: an,
2942
- nan: Vr,
2943
- nativeEnum: fn,
2944
- never: Yr,
2945
- null: Hr,
2946
- nullable: mn,
2932
+ date: qr,
2933
+ discriminatedUnion: rn,
2934
+ effect: Et,
2935
+ enum: fn,
2936
+ function: cn,
2937
+ instanceof: Vr,
2938
+ intersection: nn,
2939
+ lazy: un,
2940
+ literal: ln,
2941
+ map: on,
2942
+ nan: Ur,
2943
+ nativeEnum: pn,
2944
+ never: Kr,
2945
+ null: Wr,
2946
+ nullable: yn,
2947
2947
  number: Ft,
2948
- object: Xr,
2949
- oboolean: wn,
2950
- onumber: _n,
2951
- optional: hn,
2952
- ostring: vn,
2953
- pipeline: gn,
2954
- preprocess: yn,
2955
- promise: pn,
2956
- record: sn,
2957
- set: on,
2958
- strictObject: Qr,
2948
+ object: Qr,
2949
+ oboolean: bn,
2950
+ onumber: wn,
2951
+ optional: mn,
2952
+ ostring: _n,
2953
+ pipeline: vn,
2954
+ preprocess: gn,
2955
+ promise: hn,
2956
+ record: an,
2957
+ set: dn,
2958
+ strictObject: en,
2959
2959
  string: $t,
2960
- symbol: qr,
2961
- transformer: St,
2962
- tuple: nn,
2963
- undefined: Br,
2964
- union: en,
2965
- unknown: Jr,
2966
- void: Kr,
2967
- NEVER: kn,
2960
+ symbol: Br,
2961
+ transformer: Et,
2962
+ tuple: sn,
2963
+ undefined: Hr,
2964
+ union: tn,
2965
+ unknown: Yr,
2966
+ void: Gr,
2967
+ NEVER: xn,
2968
2968
  ZodIssueCode: u,
2969
- quotelessJson: hr,
2969
+ quotelessJson: mr,
2970
2970
  ZodError: I
2971
2971
  });
2972
- const ct = Et.object({
2973
- detail: Et.string()
2972
+ const ut = Ke.object({
2973
+ detail: Ke.string()
2974
+ }), Lt = Ke.object({
2975
+ error: Ke.string()
2974
2976
  });
2975
- function xn(t) {
2977
+ function Tn(t) {
2976
2978
  if (!t)
2977
2979
  return "Unknown error";
2978
2980
  if (t instanceof Error) {
2979
- const e = ct.safeParse(t.cause);
2980
- return e.success ? e.data.detail : Tn(t.message);
2981
+ const e = ut.safeParse(t.cause);
2982
+ return e.success ? e.data.detail : Sn(t.message);
2981
2983
  }
2982
2984
  if (typeof t == "object") {
2983
- const e = ct.safeParse(t);
2985
+ const e = ut.safeParse(t);
2984
2986
  if (e.success)
2985
2987
  return e.data.detail;
2988
+ const r = Lt.safeParse(t);
2989
+ if (r.success)
2990
+ return r.data.error;
2986
2991
  }
2987
2992
  try {
2988
2993
  return JSON.stringify(t);
@@ -2990,26 +2995,29 @@ var rs = pr((as, yt) => {
2990
2995
  return String(t);
2991
2996
  }
2992
2997
  }
2993
- function Tn(t) {
2994
- const e = Sn(t);
2998
+ function Sn(t) {
2999
+ const e = En(t);
2995
3000
  if (!e)
2996
3001
  return t;
2997
- const r = ct.safeParse(e);
2998
- return r.success ? r.data.detail : t;
3002
+ const r = ut.safeParse(e);
3003
+ if (r.success)
3004
+ return r.data.detail;
3005
+ const n = Lt.safeParse(e);
3006
+ return n.success ? n.data.error : t;
2999
3007
  }
3000
- function Sn(t) {
3008
+ function En(t) {
3001
3009
  try {
3002
3010
  return JSON.parse(t);
3003
3011
  } catch {
3004
3012
  return t;
3005
3013
  }
3006
3014
  }
3007
- const En = 1e10, On = 1e3;
3015
+ const On = 1e10, Nn = 1e3;
3008
3016
  function De(t, e) {
3009
3017
  const r = t.map((n) => `"${n}"`).join(", ");
3010
3018
  return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
3011
3019
  }
3012
- function Nn(t = {}) {
3020
+ function Rn(t = {}) {
3013
3021
  let e = {};
3014
3022
  function r(g) {
3015
3023
  e = g;
@@ -3017,7 +3025,7 @@ var rs = pr((as, yt) => {
3017
3025
  let n = {};
3018
3026
  function s(g) {
3019
3027
  var T;
3020
- n.unregisterHandler && n.unregisterHandler(), n = g, (T = n.registerHandler) == null || T.call(n, fr);
3028
+ n.unregisterHandler && n.unregisterHandler(), n = g, (T = n.registerHandler) == null || T.call(n, pr);
3021
3029
  }
3022
3030
  let a;
3023
3031
  function i(g) {
@@ -3035,11 +3043,11 @@ var rs = pr((as, yt) => {
3035
3043
  return N(T, O);
3036
3044
  };
3037
3045
  }
3038
- const { maxRequestTime: o = On } = t;
3046
+ const { maxRequestTime: o = Nn } = t;
3039
3047
  t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
3040
3048
  let d = 0;
3041
3049
  function c() {
3042
- return d <= En ? ++d : d = 0;
3050
+ return d <= On ? ++d : d = 0;
3043
3051
  }
3044
3052
  const l = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
3045
3053
  function x(g, ...T) {
@@ -3074,28 +3082,28 @@ var rs = pr((as, yt) => {
3074
3082
  };
3075
3083
  (N = e.onSend) == null || N.call(e, S), n.send(S);
3076
3084
  }
3077
- const bt = new Proxy(Le, {
3085
+ const kt = new Proxy(Le, {
3078
3086
  get: (g, T, O) => T in g ? Reflect.get(g, T, O) : (S) => Le(T, S)
3079
- }), kt = bt, X = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Set();
3080
- function ur(g, T) {
3087
+ }), xt = kt, X = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Set();
3088
+ function lr(g, T) {
3081
3089
  var O;
3082
3090
  if (!n.registerHandler)
3083
3091
  throw De(["registerHandler"], "register message listeners");
3084
3092
  if (g === "*") {
3085
- tt.add(T);
3093
+ rt.add(T);
3086
3094
  return;
3087
3095
  }
3088
3096
  X.has(g) || X.set(g, /* @__PURE__ */ new Set()), (O = X.get(g)) == null || O.add(T);
3089
3097
  }
3090
- function lr(g, T) {
3098
+ function fr(g, T) {
3091
3099
  var O, S;
3092
3100
  if (g === "*") {
3093
- tt.delete(T);
3101
+ rt.delete(T);
3094
3102
  return;
3095
3103
  }
3096
3104
  (O = X.get(g)) == null || O.delete(T), ((S = X.get(g)) == null ? void 0 : S.size) === 0 && X.delete(g);
3097
3105
  }
3098
- async function fr(g) {
3106
+ async function pr(g) {
3099
3107
  var T, O;
3100
3108
  if ((T = e.onReceive) == null || T.call(e, g), !("type" in g))
3101
3109
  throw new Error("Message does not contain a type.");
@@ -3132,7 +3140,7 @@ var rs = pr((as, yt) => {
3132
3140
  return;
3133
3141
  }
3134
3142
  if (g.type === "message") {
3135
- for (const N of tt)
3143
+ for (const N of rt)
3136
3144
  N(g.id, g.payload);
3137
3145
  const S = X.get(g.id);
3138
3146
  if (!S)
@@ -3148,44 +3156,44 @@ var rs = pr((as, yt) => {
3148
3156
  setRequestHandler: i,
3149
3157
  request: C,
3150
3158
  requestProxy: U,
3151
- send: bt,
3152
- sendProxy: kt,
3153
- addMessageListener: ur,
3154
- removeMessageListener: lr,
3155
- proxy: { send: kt, request: U },
3159
+ send: kt,
3160
+ sendProxy: xt,
3161
+ addMessageListener: lr,
3162
+ removeMessageListener: fr,
3163
+ proxy: { send: xt, request: U },
3156
3164
  _setDebugHooks: r
3157
3165
  };
3158
3166
  }
3159
- function Rn(t) {
3160
- return Nn(t);
3167
+ function An(t) {
3168
+ return Rn(t);
3161
3169
  }
3162
- const Lt = "[transport-id]";
3163
- function An(t, e) {
3170
+ const Dt = "[transport-id]";
3171
+ function Cn(t, e) {
3164
3172
  const { transportId: r } = e;
3165
- return r != null ? { [Lt]: r, data: t } : t;
3173
+ return r != null ? { [Dt]: r, data: t } : t;
3166
3174
  }
3167
- function Cn(t, e) {
3175
+ function In(t, e) {
3168
3176
  const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
3169
3177
  if (r != null && s != null)
3170
3178
  throw new Error("Cannot use both `transportId` and `filter` at the same time");
3171
3179
  let a = t;
3172
3180
  if (r) {
3173
- if (t[Lt] !== r)
3181
+ if (t[Dt] !== r)
3174
3182
  return [!0];
3175
3183
  a = t.data;
3176
3184
  }
3177
3185
  return s === !1 ? [!0] : [!1, a];
3178
3186
  }
3179
- function In(t, e = {}) {
3187
+ function Pn(t, e = {}) {
3180
3188
  const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
3181
3189
  let o;
3182
3190
  return {
3183
3191
  send(d) {
3184
- i.postMessage(An(d, { transportId: r }));
3192
+ i.postMessage(Cn(d, { transportId: r }));
3185
3193
  },
3186
3194
  registerHandler(d) {
3187
3195
  o = (c) => {
3188
- const l = c.data, [w, x] = Cn(l, {
3196
+ const l = c.data, [w, x] = In(l, {
3189
3197
  transportId: r,
3190
3198
  filter: () => n == null ? void 0 : n(c)
3191
3199
  });
@@ -3197,13 +3205,13 @@ var rs = pr((as, yt) => {
3197
3205
  }
3198
3206
  };
3199
3207
  }
3200
- function Pn(t) {
3201
- return In(self, t);
3208
+ function Zn(t) {
3209
+ return Pn(self, t);
3202
3210
  }
3203
3211
  const ve = {
3204
3212
  NOOP: () => {
3205
3213
  }
3206
- }, Dt = (t, e) => {
3214
+ }, Vt = (t, e) => {
3207
3215
  const r = `[${t}]`;
3208
3216
  return {
3209
3217
  debug: (...n) => e.debug(r, ...n),
@@ -3211,10 +3219,10 @@ var rs = pr((as, yt) => {
3211
3219
  warn: (...n) => e.warn(r, ...n),
3212
3220
  error: (...n) => e.error(r, ...n),
3213
3221
  trace: (...n) => e.trace(r, ...n),
3214
- get: (n) => Dt(`${t}.${n}`, e),
3215
- disabled: (n = !0) => n ? Ge : e
3222
+ get: (n) => Vt(`${t}.${n}`, e),
3223
+ disabled: (n = !0) => n ? Xe : e
3216
3224
  };
3217
- }, Ke = {
3225
+ }, Ge = {
3218
3226
  debug: (...t) => {
3219
3227
  console.debug(...t);
3220
3228
  },
@@ -3230,40 +3238,40 @@ var rs = pr((as, yt) => {
3230
3238
  trace: (...t) => {
3231
3239
  console.trace(...t);
3232
3240
  },
3233
- get: (t) => Dt(t, Ke),
3234
- disabled: (t = !0) => t ? Ge : Ke
3235
- }, Ge = {
3241
+ get: (t) => Vt(t, Ge),
3242
+ disabled: (t = !0) => t ? Xe : Ge
3243
+ }, Xe = {
3236
3244
  debug: () => ve.NOOP,
3237
3245
  log: () => ve.NOOP,
3238
3246
  warn: () => ve.NOOP,
3239
3247
  error: () => ve.NOOP,
3240
3248
  trace: () => ve.NOOP,
3241
- get: () => Ge,
3242
- disabled: () => Ge
3249
+ get: () => Xe,
3250
+ disabled: () => Xe
3243
3251
  };
3244
- function Zn() {
3245
- return typeof window < "u" && window.Logger || Ke;
3252
+ function jn() {
3253
+ return typeof window < "u" && window.Logger || Ge;
3246
3254
  }
3247
- const xe = Zn(), jn = "marimo-transport";
3248
- var $n = Object.defineProperty, k = (t, e) => $n(t, "name", { value: e, configurable: !0 }), Vt = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
3255
+ const xe = jn(), $n = "marimo-transport";
3256
+ var Fn = Object.defineProperty, k = (t, e) => Fn(t, "name", { value: e, configurable: !0 }), Ut = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
3249
3257
  if (typeof require < "u") return require.apply(this, arguments);
3250
3258
  throw new Error('Dynamic require of "' + t + '" is not supported');
3251
3259
  });
3252
- function Ut(t) {
3260
+ function zt(t) {
3253
3261
  return !isNaN(parseFloat(t)) && isFinite(t);
3254
3262
  }
3255
- k(Ut, "_isNumber");
3263
+ k(zt, "_isNumber");
3256
3264
  function G(t) {
3257
3265
  return t.charAt(0).toUpperCase() + t.substring(1);
3258
3266
  }
3259
3267
  k(G, "_capitalize");
3260
- function et(t) {
3268
+ function tt(t) {
3261
3269
  return function() {
3262
3270
  return this[t];
3263
3271
  };
3264
3272
  }
3265
- k(et, "_getter");
3266
- var ce = ["isConstructor", "isEval", "isNative", "isToplevel"], ue = ["columnNumber", "lineNumber"], le = ["fileName", "functionName", "source"], Fn = ["args"], Mn = ["evalOrigin"], Ve = ce.concat(ue, le, Fn, Mn);
3273
+ k(tt, "_getter");
3274
+ var ce = ["isConstructor", "isEval", "isNative", "isToplevel"], ue = ["columnNumber", "lineNumber"], le = ["fileName", "functionName", "source"], Mn = ["args"], Ln = ["evalOrigin"], Ve = ce.concat(ue, le, Mn, Ln);
3267
3275
  function P(t) {
3268
3276
  if (t) for (var e = 0; e < Ve.length; e++) t[Ve[e]] !== void 0 && this["set" + G(Ve[e])](t[Ve[e]]);
3269
3277
  }
@@ -3288,26 +3296,26 @@ var rs = pr((as, yt) => {
3288
3296
  if (a.indexOf("@") === 0) var i = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a, ""), o = i[1], d = i[2], c = i[3];
3289
3297
  return new P({ functionName: n, args: s || void 0, fileName: o, lineNumber: d || void 0, columnNumber: c || void 0 });
3290
3298
  }, "StackFrame$$fromString");
3291
- for (ee = 0; ee < ce.length; ee++) P.prototype["get" + G(ce[ee])] = et(ce[ee]), P.prototype["set" + G(ce[ee])] = /* @__PURE__ */ function(t) {
3299
+ for (ee = 0; ee < ce.length; ee++) P.prototype["get" + G(ce[ee])] = tt(ce[ee]), P.prototype["set" + G(ce[ee])] = /* @__PURE__ */ function(t) {
3292
3300
  return function(e) {
3293
3301
  this[t] = !!e;
3294
3302
  };
3295
3303
  }(ce[ee]);
3296
3304
  var ee;
3297
- for (te = 0; te < ue.length; te++) P.prototype["get" + G(ue[te])] = et(ue[te]), P.prototype["set" + G(ue[te])] = /* @__PURE__ */ function(t) {
3305
+ for (te = 0; te < ue.length; te++) P.prototype["get" + G(ue[te])] = tt(ue[te]), P.prototype["set" + G(ue[te])] = /* @__PURE__ */ function(t) {
3298
3306
  return function(e) {
3299
- if (!Ut(e)) throw new TypeError(t + " must be a Number");
3307
+ if (!zt(e)) throw new TypeError(t + " must be a Number");
3300
3308
  this[t] = Number(e);
3301
3309
  };
3302
3310
  }(ue[te]);
3303
3311
  var te;
3304
- for (re = 0; re < le.length; re++) P.prototype["get" + G(le[re])] = et(le[re]), P.prototype["set" + G(le[re])] = /* @__PURE__ */ function(t) {
3312
+ for (re = 0; re < le.length; re++) P.prototype["get" + G(le[re])] = tt(le[re]), P.prototype["set" + G(le[re])] = /* @__PURE__ */ function(t) {
3305
3313
  return function(e) {
3306
3314
  this[t] = String(e);
3307
3315
  };
3308
3316
  }(le[re]);
3309
- var re, nt = P;
3310
- function zt() {
3317
+ var re, st = P;
3318
+ function qt() {
3311
3319
  var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
3312
3320
  return { parse: k(function(r) {
3313
3321
  if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
@@ -3327,7 +3335,7 @@ var rs = pr((as, yt) => {
3327
3335
  var a = s.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), i = a.match(/ (\(.+\)$)/);
3328
3336
  a = i ? a.replace(i[0], "") : a;
3329
3337
  var o = this.extractLocation(i ? i[1] : a), d = i && a || void 0, c = ["eval", "<anonymous>"].indexOf(o[0]) > -1 ? void 0 : o[0];
3330
- return new nt({ functionName: d, fileName: c, lineNumber: o[1], columnNumber: o[2], source: s });
3338
+ return new st({ functionName: d, fileName: c, lineNumber: o[1], columnNumber: o[2], source: s });
3331
3339
  }, this);
3332
3340
  }, "ErrorStackParser$$parseV8OrIE"), parseFFOrSafari: k(function(r) {
3333
3341
  var n = r.stack.split(`
@@ -3335,58 +3343,58 @@ var rs = pr((as, yt) => {
3335
3343
  return !s.match(e);
3336
3344
  }, this);
3337
3345
  return n.map(function(s) {
3338
- if (s.indexOf(" > eval") > -1 && (s = s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), s.indexOf("@") === -1 && s.indexOf(":") === -1) return new nt({ functionName: s });
3346
+ if (s.indexOf(" > eval") > -1 && (s = s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), s.indexOf("@") === -1 && s.indexOf(":") === -1) return new st({ functionName: s });
3339
3347
  var a = /((.*".+"[^@]*)?[^@]*)(?:@)/, i = s.match(a), o = i && i[1] ? i[1] : void 0, d = this.extractLocation(s.replace(a, ""));
3340
- return new nt({ functionName: o, fileName: d[0], lineNumber: d[1], columnNumber: d[2], source: s });
3348
+ return new st({ functionName: o, fileName: d[0], lineNumber: d[1], columnNumber: d[2], source: s });
3341
3349
  }, this);
3342
3350
  }, "ErrorStackParser$$parseFFOrSafari") };
3343
3351
  }
3344
- k(zt, "ErrorStackParser");
3345
- var Ln = new zt(), Dn = Ln, V = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, qt = V && typeof yt < "u" && typeof yt.exports < "u" && typeof Vt < "u" && typeof __dirname < "u", Vn = V && !qt, Un = typeof Deno < "u", Bt = !V && !Un, zn = Bt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", qn = Bt && typeof importScripts == "function" && typeof self == "object";
3352
+ k(qt, "ErrorStackParser");
3353
+ var Dn = new qt(), Vn = Dn, V = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Bt = V && typeof gt < "u" && typeof gt.exports < "u" && typeof Ut < "u" && typeof __dirname < "u", Un = V && !Bt, zn = typeof Deno < "u", Ht = !V && !zn, qn = Ht && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Bn = Ht && typeof importScripts == "function" && typeof self == "object";
3346
3354
  typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
3347
- var Ht, ut, Wt, Ot, vt;
3348
- async function _t() {
3349
- if (!V || (Ht = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Ot = await import("./__vite-browser-external-CPvbk0mb.js"), vt = await import("./__vite-browser-external-CPvbk0mb.js"), Wt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, ut = await import("./__vite-browser-external-CPvbk0mb.js"), wt = ut.sep, typeof Vt < "u")) return;
3355
+ var Wt, lt, Jt, Ot, _t;
3356
+ async function wt() {
3357
+ if (!V || (Wt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Ot = await import("./__vite-browser-external-CPvbk0mb.js"), _t = await import("./__vite-browser-external-CPvbk0mb.js"), Jt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, lt = await import("./__vite-browser-external-CPvbk0mb.js"), bt = lt.sep, typeof Ut < "u")) return;
3350
3358
  let t = Ot, e = await import("./__vite-browser-external-CPvbk0mb.js"), r = await import("./__vite-browser-external-CPvbk0mb.js"), n = await import("./__vite-browser-external-CPvbk0mb.js"), s = { fs: t, crypto: e, ws: r, child_process: n };
3351
3359
  globalThis.require = function(a) {
3352
3360
  return s[a];
3353
3361
  };
3354
3362
  }
3355
- k(_t, "initNodeModules");
3356
- function Jt(t, e) {
3357
- return ut.resolve(e || ".", t);
3358
- }
3359
- k(Jt, "node_resolvePath");
3363
+ k(wt, "initNodeModules");
3360
3364
  function Yt(t, e) {
3361
- return e === void 0 && (e = location), new URL(t, e).toString();
3365
+ return lt.resolve(e || ".", t);
3362
3366
  }
3363
- k(Yt, "browser_resolvePath");
3364
- var lt;
3365
- V ? lt = Jt : lt = Yt;
3366
- var wt;
3367
- V || (wt = "/");
3367
+ k(Yt, "node_resolvePath");
3368
3368
  function Kt(t, e) {
3369
- return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: vt.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
3369
+ return e === void 0 && (e = location), new URL(t, e).toString();
3370
3370
  }
3371
- k(Kt, "node_getBinaryResponse");
3371
+ k(Kt, "browser_resolvePath");
3372
+ var ft;
3373
+ V ? ft = Yt : ft = Kt;
3374
+ var bt;
3375
+ V || (bt = "/");
3372
3376
  function Gt(t, e) {
3377
+ return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: _t.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
3378
+ }
3379
+ k(Gt, "node_getBinaryResponse");
3380
+ function Xt(t, e) {
3373
3381
  let r = new URL(t, location);
3374
3382
  return { response: fetch(r, e ? { integrity: e } : {}) };
3375
3383
  }
3376
- k(Gt, "browser_getBinaryResponse");
3377
- var Xe;
3378
- V ? Xe = Kt : Xe = Gt;
3379
- async function Xt(t, e) {
3380
- let { response: r, binary: n } = Xe(t, e);
3384
+ k(Xt, "browser_getBinaryResponse");
3385
+ var Qe;
3386
+ V ? Qe = Gt : Qe = Xt;
3387
+ async function Qt(t, e) {
3388
+ let { response: r, binary: n } = Qe(t, e);
3381
3389
  if (n) return n;
3382
3390
  let s = await r;
3383
3391
  if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
3384
3392
  return new Uint8Array(await s.arrayBuffer());
3385
3393
  }
3386
- k(Xt, "loadBinaryFile");
3394
+ k(Qt, "loadBinaryFile");
3387
3395
  var Ue;
3388
- if (zn) Ue = k(async (t) => await import(t), "loadScript");
3389
- else if (qn) Ue = k(async (t) => {
3396
+ if (qn) Ue = k(async (t) => await import(t), "loadScript");
3397
+ else if (Bn) Ue = k(async (t) => {
3390
3398
  try {
3391
3399
  globalThis.importScripts(t);
3392
3400
  } catch (e) {
@@ -3394,39 +3402,39 @@ var rs = pr((as, yt) => {
3394
3402
  else throw e;
3395
3403
  }
3396
3404
  }, "loadScript");
3397
- else if (V) Ue = Qt;
3405
+ else if (V) Ue = er;
3398
3406
  else throw new Error("Cannot determine runtime environment");
3399
- async function Qt(t) {
3400
- t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Wt.runInThisContext(await (await fetch(t)).text()) : await import(Ht.pathToFileURL(t).href);
3401
- }
3402
- k(Qt, "nodeLoadScript");
3403
3407
  async function er(t) {
3408
+ t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Jt.runInThisContext(await (await fetch(t)).text()) : await import(Wt.pathToFileURL(t).href);
3409
+ }
3410
+ k(er, "nodeLoadScript");
3411
+ async function tr(t) {
3404
3412
  if (V) {
3405
- await _t();
3406
- let e = await vt.readFile(t, { encoding: "utf8" });
3413
+ await wt();
3414
+ let e = await _t.readFile(t, { encoding: "utf8" });
3407
3415
  return JSON.parse(e);
3408
3416
  } else return await (await fetch(t)).json();
3409
3417
  }
3410
- k(er, "loadLockFile");
3411
- async function tr() {
3412
- if (qt) return __dirname;
3418
+ k(tr, "loadLockFile");
3419
+ async function rr() {
3420
+ if (Bt) return __dirname;
3413
3421
  let t;
3414
3422
  try {
3415
3423
  throw new Error();
3416
3424
  } catch (n) {
3417
3425
  t = n;
3418
3426
  }
3419
- let e = Dn.parse(t)[0].fileName;
3420
- if (V && !e.startsWith("file://") && (e = `file://${e}`), Vn) {
3427
+ let e = Vn.parse(t)[0].fileName;
3428
+ if (V && !e.startsWith("file://") && (e = `file://${e}`), Un) {
3421
3429
  let n = await import("./__vite-browser-external-CPvbk0mb.js");
3422
3430
  return (await import("./__vite-browser-external-CPvbk0mb.js")).fileURLToPath(n.dirname(e));
3423
3431
  }
3424
- let r = e.lastIndexOf(wt);
3432
+ let r = e.lastIndexOf(bt);
3425
3433
  if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
3426
3434
  return e.slice(0, r);
3427
3435
  }
3428
- k(tr, "calculateDirname");
3429
- function rr(t) {
3436
+ k(rr, "calculateDirname");
3437
+ function nr(t) {
3430
3438
  let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
3431
3439
  if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
3432
3440
  return r.mount.apply(null, arguments);
@@ -3454,7 +3462,7 @@ var rs = pr((as, yt) => {
3454
3462
  }
3455
3463
  return { type: "local", entries: i };
3456
3464
  }, getRemoteSet: async (a) => {
3457
- let i = /* @__PURE__ */ Object.create(null), o = await Bn(a.opts.fileSystemHandle);
3465
+ let i = /* @__PURE__ */ Object.create(null), o = await Hn(a.opts.fileSystemHandle);
3458
3466
  for (let [d, c] of o) d !== "." && (i[n.join2(a.mountpoint, d)] = { timestamp: c.kind === "file" ? new Date((await c.getFile()).lastModified) : /* @__PURE__ */ new Date(), mode: c.kind === "file" ? s.FILE_MODE : s.DIR_MODE });
3459
3467
  return { type: "remote", entries: i, handles: o };
3460
3468
  }, loadLocalEntry: (a) => {
@@ -3516,8 +3524,8 @@ var rs = pr((as, yt) => {
3516
3524
  } };
3517
3525
  t.FS.filesystems.NATIVEFS_ASYNC = s;
3518
3526
  }
3519
- k(rr, "initializeNativeFS");
3520
- var Bn = k(async (t) => {
3527
+ k(nr, "initializeNativeFS");
3528
+ var Hn = k(async (t) => {
3521
3529
  let e = [];
3522
3530
  async function r(s) {
3523
3531
  for await (let a of s.values()) e.push(a), a.kind === "directory" && await r(a);
@@ -3531,14 +3539,14 @@ var rs = pr((as, yt) => {
3531
3539
  }
3532
3540
  return n;
3533
3541
  }, "getFsHandles");
3534
- function nr(t) {
3535
- let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: dr(t), quit(r, n) {
3542
+ function sr(t) {
3543
+ let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: cr(t), quit(r, n) {
3536
3544
  throw e.exited = { status: r, toThrow: n }, n;
3537
- }, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: cr(t.indexURL) };
3545
+ }, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: ur(t.indexURL) };
3538
3546
  return e;
3539
3547
  }
3540
- k(nr, "createSettings");
3541
- function sr(t) {
3548
+ k(sr, "createSettings");
3549
+ function ar(t) {
3542
3550
  return function(e) {
3543
3551
  let r = "/";
3544
3552
  try {
@@ -3549,14 +3557,14 @@ var rs = pr((as, yt) => {
3549
3557
  e.FS.chdir(t);
3550
3558
  };
3551
3559
  }
3552
- k(sr, "createHomeDirectory");
3553
- function ar(t) {
3560
+ k(ar, "createHomeDirectory");
3561
+ function ir(t) {
3554
3562
  return function(e) {
3555
3563
  Object.assign(e.ENV, t);
3556
3564
  };
3557
3565
  }
3558
- k(ar, "setEnvironment");
3559
- function ir(t) {
3566
+ k(ir, "setEnvironment");
3567
+ function or(t) {
3560
3568
  return t ? [async (e) => {
3561
3569
  e.addRunDependency("fsInitHook");
3562
3570
  try {
@@ -3566,9 +3574,9 @@ var rs = pr((as, yt) => {
3566
3574
  }
3567
3575
  }] : [];
3568
3576
  }
3569
- k(ir, "callFsInitHook");
3570
- function or(t) {
3571
- let e = Xt(t);
3577
+ k(or, "callFsInitHook");
3578
+ function dr(t) {
3579
+ let e = Qt(t);
3572
3580
  return async (r) => {
3573
3581
  let n = r._py_version_major(), s = r._py_version_minor();
3574
3582
  r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
@@ -3582,15 +3590,15 @@ var rs = pr((as, yt) => {
3582
3590
  }
3583
3591
  };
3584
3592
  }
3585
- k(or, "installStdlib");
3586
- function dr(t) {
3593
+ k(dr, "installStdlib");
3594
+ function cr(t) {
3587
3595
  let e;
3588
- return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...ir(t.fsInit), or(e), sr(t.env.HOME), ar(t.env), rr];
3596
+ return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...or(t.fsInit), dr(e), ar(t.env.HOME), ir(t.env), nr];
3589
3597
  }
3590
- k(dr, "getFileSystemInitializationFuncs");
3591
- function cr(t) {
3598
+ k(cr, "getFileSystemInitializationFuncs");
3599
+ function ur(t) {
3592
3600
  if (typeof WasmOffsetConverter < "u") return;
3593
- let { binary: e, response: r } = Xe(t + "pyodide.asm.wasm");
3601
+ let { binary: e, response: r } = Qe(t + "pyodide.asm.wasm");
3594
3602
  return function(n, s) {
3595
3603
  return async function() {
3596
3604
  try {
@@ -3604,17 +3612,17 @@ var rs = pr((as, yt) => {
3604
3612
  }(), {};
3605
3613
  };
3606
3614
  }
3607
- k(cr, "getInstantiateWasmFunc");
3608
- var ft = "0.27.5";
3609
- async function pt(t = {}) {
3615
+ k(ur, "getInstantiateWasmFunc");
3616
+ var pt = "0.27.5";
3617
+ async function ht(t = {}) {
3610
3618
  var e, r;
3611
- await _t();
3612
- let n = t.indexURL || await tr();
3613
- n = lt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
3619
+ await wt();
3620
+ let n = t.indexURL || await rr();
3621
+ n = ft(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
3614
3622
  let s = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [], env: {}, packageCacheDir: n, packages: [], enableRunUntilComplete: !1, checkAPIVersion: !0, BUILD_ID: "bd0388b62e760f8ba04185eb443fec955f25434f49c7b951efe5b1f792dbe5d4" }, a = Object.assign(s, t);
3615
3623
  (e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
3616
- let i = nr(a), o = i.API;
3617
- if (o.lockFilePromise = er(a.lockFileURL), typeof _createPyodideModule != "function") {
3624
+ let i = sr(a), o = i.API;
3625
+ if (o.lockFilePromise = tr(a.lockFileURL), typeof _createPyodideModule != "function") {
3618
3626
  let x = `${a.indexURL}pyodide.asm.js`;
3619
3627
  await Ue(x);
3620
3628
  }
@@ -3625,7 +3633,7 @@ var rs = pr((as, yt) => {
3625
3633
  }
3626
3634
  let c = await _createPyodideModule(i);
3627
3635
  if (i.exited) throw i.exited.toThrow;
3628
- if (t.pyproxyToStringRepr && o.setPyProxyToStringMethod(!0), o.version !== ft && a.checkAPIVersion) throw new Error(`Pyodide version does not match: '${ft}' <==> '${o.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);
3636
+ if (t.pyproxyToStringRepr && o.setPyProxyToStringMethod(!0), o.version !== pt && a.checkAPIVersion) throw new Error(`Pyodide version does not match: '${pt}' <==> '${o.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);
3629
3637
  c.locateFile = (x) => {
3630
3638
  throw new Error("Didn't expect to load any more file_packager files!");
3631
3639
  };
@@ -3634,15 +3642,15 @@ var rs = pr((as, yt) => {
3634
3642
  let w = o.finalizeBootstrap(l, t._snapshotDeserializer);
3635
3643
  return o.sys.path.insert(0, o.config.env.HOME), w.version.includes("dev") || o.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${w.version}/full/`), o._pyodide.set_excepthook(), await o.packageIndexReady, o.initializeStreams(a.stdin, a.stdout, a.stderr), w;
3636
3644
  }
3637
- k(pt, "loadPyodide");
3638
- const Hn = !1;
3639
- function Wn(t) {
3640
- return t.includes("dev") && Hn ? "dev" : `v${ft}`;
3645
+ k(ht, "loadPyodide");
3646
+ const Wn = !1;
3647
+ function Jn(t) {
3648
+ return t.includes("dev") && Wn ? "dev" : `v${pt}`;
3641
3649
  }
3642
3650
  function Te(t) {
3643
3651
  return t.FS;
3644
3652
  }
3645
- const ht = (t) => new TextDecoder().decode(t), _e = "notebook.py", we = "/marimo", H = {
3653
+ const mt = (t) => new TextDecoder().decode(t), _e = "notebook.py", we = "/marimo", H = {
3646
3654
  NOTEBOOK_FILENAME: _e,
3647
3655
  HOME_DIR: we,
3648
3656
  createHomeDir: (t) => {
@@ -3664,12 +3672,12 @@ var rs = pr((as, yt) => {
3664
3672
  },
3665
3673
  readNotebook: (t) => {
3666
3674
  const e = Te(t), r = `${we}/${_e}`;
3667
- return ht(e.readFile(r));
3675
+ return mt(e.readFile(r));
3668
3676
  },
3669
3677
  initNotebookCode: (t) => {
3670
3678
  const { pyodide: e, filename: r, code: n } = t, s = Te(e), a = (i) => {
3671
3679
  try {
3672
- return ht(s.readFile(i));
3680
+ return mt(s.readFile(i));
3673
3681
  } catch {
3674
3682
  return null;
3675
3683
  }
@@ -3699,11 +3707,11 @@ var rs = pr((as, yt) => {
3699
3707
  });
3700
3708
  });
3701
3709
  }
3702
- function Jn(t, e) {
3710
+ function Yn(t, e) {
3703
3711
  if (!t)
3704
3712
  throw new Error(e);
3705
3713
  }
3706
- class Yn {
3714
+ class Kn {
3707
3715
  constructor() {
3708
3716
  this.spans = [];
3709
3717
  }
@@ -3745,25 +3753,25 @@ var rs = pr((as, yt) => {
3745
3753
  logSpans() {
3746
3754
  }
3747
3755
  }
3748
- const fe = new Yn();
3756
+ const fe = new Kn();
3749
3757
  globalThis.t = fe;
3750
- const Kn = !1;
3751
- class Gn {
3758
+ const Gn = !1;
3759
+ class Xn {
3752
3760
  constructor() {
3753
3761
  this.pyodide = null;
3754
3762
  }
3755
3763
  get requirePyodide() {
3756
- return Jn(this.pyodide, "Pyodide not loaded"), this.pyodide;
3764
+ return Yn(this.pyodide, "Pyodide not loaded"), this.pyodide;
3757
3765
  }
3758
3766
  async bootstrap(e) {
3759
3767
  return await this.loadPyodideAndPackages(e);
3760
3768
  }
3761
3769
  async loadPyodideAndPackages(e) {
3762
- if (!pt)
3770
+ if (!ht)
3763
3771
  throw new Error("loadPyodide is not defined");
3764
3772
  const r = fe.startSpan("loadPyodide");
3765
3773
  try {
3766
- const n = await pt({
3774
+ const n = await ht({
3767
3775
  // Perf: These get loaded while pyodide is being bootstrapped
3768
3776
  packages: [
3769
3777
  "micropip",
@@ -3773,7 +3781,7 @@ var rs = pr((as, yt) => {
3773
3781
  "narwhals",
3774
3782
  "packaging"
3775
3783
  ],
3776
- _makeSnapshot: Kn,
3784
+ _makeSnapshot: Gn,
3777
3785
  lockFileURL: `https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,
3778
3786
  // Without this, this fails in Firefox with
3779
3787
  // `Could not extract indexURL path from pyodide module`
@@ -3862,50 +3870,50 @@ ${e}`;
3862
3870
  }), a.end();
3863
3871
  }
3864
3872
  }
3865
- async function Xn(t) {
3873
+ async function Qn(t) {
3866
3874
  try {
3867
3875
  return await import(
3868
3876
  /* @vite-ignore */
3869
3877
  `/wasm/controller.js?version=${t}`
3870
3878
  );
3871
3879
  } catch {
3872
- return new Gn();
3880
+ return new Xn();
3873
3881
  }
3874
3882
  }
3875
- async function Qn() {
3883
+ async function es() {
3876
3884
  var t;
3877
3885
  try {
3878
- const e = ts(), r = Wn(e), n = await Xn(e);
3886
+ const e = rs(), r = Jn(e), n = await Qn(e);
3879
3887
  self.controller = n, self.pyodide = await n.bootstrap({
3880
3888
  version: e,
3881
3889
  pyodideVersion: r
3882
3890
  }), await ((t = n.mountFilesystem) == null ? void 0 : t.call(n, {
3883
3891
  code: "",
3884
3892
  filename: null
3885
- })), mt.send.initialized({});
3893
+ })), yt.send.initialized({});
3886
3894
  } catch (e) {
3887
- xe.error("Error bootstrapping", e), mt.send.initializedError({ error: xn(e) });
3895
+ xe.error("Error bootstrapping", e), yt.send.initializedError({ error: Tn(e) });
3888
3896
  }
3889
3897
  }
3890
- const st = Qn(), es = {
3891
- readFile: async (t) => (await st, ht(self.pyodide.FS.readFile(t))),
3892
- readNotebook: async () => (await st, H.readNotebook(self.pyodide)),
3898
+ const at = es(), ts = {
3899
+ readFile: async (t) => (await at, mt(self.pyodide.FS.readFile(t))),
3900
+ readNotebook: async () => (await at, H.readNotebook(self.pyodide)),
3893
3901
  saveNotebook: async (t) => {
3894
- await st, await self.pyodide.runPython(`
3902
+ await at, await self.pyodide.runPython(`
3895
3903
  from marimo._pyodide.bootstrap import save_file
3896
3904
 
3897
3905
  save_file
3898
3906
  `)(JSON.stringify(t), H.NOTEBOOK_FILENAME), await H.persistFilesToRemote(self.pyodide);
3899
3907
  }
3900
- }, mt = Rn({
3901
- transport: Pn({
3902
- transportId: jn
3908
+ }, yt = An({
3909
+ transport: Zn({
3910
+ transportId: $n
3903
3911
  }),
3904
- requestHandler: es
3912
+ requestHandler: ts
3905
3913
  });
3906
- mt.send("ready", {});
3907
- function ts() {
3914
+ yt.send("ready", {});
3915
+ function rs() {
3908
3916
  return self.name;
3909
3917
  }
3910
3918
  });
3911
- export default rs();
3919
+ export default ns();