@marimo-team/islands 0.13.16-dev10 → 0.13.16-dev101

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-A7fdApN8.js → ConnectedDataExplorerComponent-CXakwumf.js} +252 -253
  2. package/dist/ImageComparisonComponent-CHsi_5dR.js +248 -0
  3. package/dist/{VegaLite-cH0d7AKe.js → VegaLite-CyRNIzn6.js} +11085 -11380
  4. package/dist/{_baseUniq-VGkfS0ac.js → _baseUniq-CrN-wpGh.js} +1 -1
  5. package/dist/{any-language-editor-zP_MHtqz.js → any-language-editor-zxRjTZVZ.js} +15 -15
  6. package/dist/{architectureDiagram-IEHRJDOE-9bzqI9xU.js → architectureDiagram-IEHRJDOE-DLDOHzzx.js} +5 -5
  7. package/dist/assets/{save-worker-DwN_qfSx.js → save-worker-CtVuV4Hi.js} +471 -470
  8. package/dist/assets/{worker-BzMPE1Lq.js → worker-BU1a2jgP.js} +406 -405
  9. package/dist/assets/{worker-ISYYr8IB.js → worker-Tb399Bgs.js} +3430 -3428
  10. package/dist/{blockDiagram-JOT3LUYC-BJAMR_en.js → blockDiagram-JOT3LUYC-DrDD3Oa1.js} +4 -4
  11. package/dist/{c4Diagram-VJAJSXHY-BgKfLoA5.js → c4Diagram-VJAJSXHY-MowbawnJ.js} +2 -2
  12. package/dist/{channel-JUB4CnY6.js → channel-9b6EGbeS.js} +1 -1
  13. package/dist/{chunk-4BMEZGHF-DeJtdwCO.js → chunk-4BMEZGHF-ldyoLG6i.js} +1 -1
  14. package/dist/{chunk-A2AXSNBT-C9Pp_tIO.js → chunk-A2AXSNBT-BoPlSbb2.js} +2 -2
  15. package/dist/{chunk-AEK57VVT-DVA0-Gak.js → chunk-AEK57VVT-yYPlFzSh.js} +2 -2
  16. package/dist/{chunk-D6G4REZN-AoVGIQ0P.js → chunk-D6G4REZN-BUfQYyiO.js} +1 -1
  17. package/dist/{chunk-RZ5BOZE2-DP2jcZaE.js → chunk-RZ5BOZE2-C-dlhwEX.js} +1 -1
  18. package/dist/{chunk-XZIHB7SX-i32Q4Gjs.js → chunk-XZIHB7SX-drMwzTzE.js} +1 -1
  19. package/dist/{classDiagram-GIVACNV2-inGz81ig.js → classDiagram-GIVACNV2-B_Tfvd3c.js} +2 -2
  20. package/dist/{classDiagram-v2-COTLJTTW-inGz81ig.js → classDiagram-v2-COTLJTTW-B_Tfvd3c.js} +2 -2
  21. package/dist/{clone-1JkOwsMD.js → clone-BW-4yG65.js} +1 -1
  22. package/dist/{dagre-OKDRZEBW-D0K43h5Z.js → dagre-OKDRZEBW-D_mGL0zZ.js} +6 -6
  23. package/dist/{data-editor-BFIc09s8.js → data-editor-CVrtr7tJ.js} +1 -1
  24. package/dist/{diagram-SSKATNLV--ZKj5ozg.js → diagram-SSKATNLV-BKZ6pRj5.js} +3 -3
  25. package/dist/{diagram-VNBRO52H-l9MGj2bj.js → diagram-VNBRO52H-CwbHMIYw.js} +3 -3
  26. package/dist/{erDiagram-Q7BY3M3F-CToy4jJO.js → erDiagram-Q7BY3M3F-BVBIZSV3.js} +3 -3
  27. package/dist/{flowDiagram-4HSFHLVR-DPXjhssW.js → flowDiagram-4HSFHLVR-62b_P_o9.js} +3 -3
  28. package/dist/{ganttDiagram-APWFNJXF-BCg0UNz5.js → ganttDiagram-APWFNJXF-Hoxlq0Jl.js} +4 -4
  29. package/dist/{gitGraphDiagram-7IBYFJ6S-T865D8lM.js → gitGraphDiagram-7IBYFJ6S-DwVHGow9.js} +4 -4
  30. package/dist/{graph-Dh5RCoo-.js → graph-Bll7YfM8.js} +3 -3
  31. package/dist/{index-BQdo5ytW.js → index-Dnn1T153.js} +3 -3
  32. package/dist/{index-BWKSupvt.js → index-Q2DOv1hL.js} +1 -1
  33. package/dist/{index-B96oNQ4E.js → index-cgPKgVm9.js} +15 -15
  34. package/dist/{index-DovrtkqJ.js → index-uqQxG-YV.js} +1 -1
  35. package/dist/{infoDiagram-PH2N3AL5-D4bq4naO.js → infoDiagram-PH2N3AL5-BU4PZemj.js} +2 -2
  36. package/dist/{journeyDiagram-U35MCT3I-DMPNH8T3.js → journeyDiagram-U35MCT3I-0Vy-PR_z.js} +2 -2
  37. package/dist/{kanban-definition-NDS4AKOZ-DeQvOmMv.js → kanban-definition-NDS4AKOZ-CU3rew6m.js} +1 -1
  38. package/dist/{layout--Y05TO_e.js → layout-CNmu8kTe.js} +4 -4
  39. package/dist/{linear-m2dqs0Bo.js → linear-CtjM0VX6.js} +1 -1
  40. package/dist/{main-D5eHkxiP.js → main-BKFOpkWC.js} +143549 -145203
  41. package/dist/main.js +1 -1
  42. package/dist/{mermaid-DQHS9Tyo.js → mermaid-BiFRk7fS.js} +274 -274
  43. package/dist/{min-5Jyzc0Gu.js → min-Beq8rsty.js} +2 -2
  44. package/dist/{mindmap-definition-ALO5MXBD-J2fSs--m.js → mindmap-definition-ALO5MXBD-DdZ2dNd4.js} +2 -2
  45. package/dist/{pieDiagram-IB7DONF6-CnRqJ6qw.js → pieDiagram-IB7DONF6-7WzESgCy.js} +3 -3
  46. package/dist/{quadrantDiagram-7GDLP6J5-DU1mM55g.js → quadrantDiagram-7GDLP6J5-BDSHfjh4.js} +2 -2
  47. package/dist/{radar-MK3ICKWK-C8KCYibk.js → radar-MK3ICKWK-_buuYrUT.js} +5 -5
  48. package/dist/{react-plotly-CYVkXG9F.js → react-plotly-CeF1Yey8.js} +1 -1
  49. package/dist/{requirementDiagram-KVF5MWMF-B-hCcu3Q.js → requirementDiagram-KVF5MWMF-CC1WjxAh.js} +2 -2
  50. package/dist/{sankeyDiagram-QLVOVGJD-DpAHW2rB.js → sankeyDiagram-QLVOVGJD-PSDF9xf8.js} +1 -1
  51. package/dist/{sequenceDiagram-X6HHIX6F-BM3qubVZ.js → sequenceDiagram-X6HHIX6F-wL9XrWSn.js} +3 -3
  52. package/dist/{slides-component-xKVgBacc.js → slides-component-CRcSvXKv.js} +3223 -3223
  53. package/dist/{stateDiagram-DGXRK772-BVRyX2q1.js → stateDiagram-DGXRK772-kYO_59RM.js} +4 -4
  54. package/dist/{stateDiagram-v2-YXO3MK2T-CYUvPmam.js → stateDiagram-v2-YXO3MK2T-BBTbrBHT.js} +2 -2
  55. package/dist/style.css +1 -1
  56. package/dist/{time-B6BhXG57.js → time-exdFVpJD.js} +2 -2
  57. package/dist/{timeline-definition-BDJGKUSR-C_PK56hq.js → timeline-definition-BDJGKUSR-CN8nBucr.js} +1 -1
  58. package/dist/{vega-component-DV9kb7Lh.js → vega-component-DUACooAT.js} +38 -38
  59. package/dist/{xychartDiagram-VJFVF3MP-B9Zwahd0.js → xychartDiagram-VJFVF3MP-6PE9WpyO.js} +2 -2
  60. package/package.json +26 -26
@@ -1,23 +1,205 @@
1
1
  var _r = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
2
2
  var ls = _r((ps, mt) => {
3
- class wr {
4
- constructor() {
5
- this.status = "pending", this.promise = new Promise((e, r) => {
6
- this.reject = (n) => {
7
- this.status = "rejected", r(n);
8
- }, this.resolve = (n) => {
9
- this.status = "resolved", e(n);
3
+ const wr = 1e10, kr = 1e3;
4
+ function De(t, e) {
5
+ const r = t.map((n) => `"${n}"`).join(", ");
6
+ return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
7
+ }
8
+ function br(t = {}) {
9
+ let e = {};
10
+ function r(g) {
11
+ e = g;
12
+ }
13
+ let n = {};
14
+ function s(g) {
15
+ n.unregisterHandler && n.unregisterHandler(), n = g, n.registerHandler?.(vr);
16
+ }
17
+ let a;
18
+ function i(g) {
19
+ if (typeof g == "function") {
20
+ a = g;
21
+ return;
22
+ }
23
+ a = (S, E) => {
24
+ const N = g[S];
25
+ if (N)
26
+ return N(E);
27
+ const F = g._;
28
+ if (!F)
29
+ throw new Error(`The requested method has no handler: ${S}`);
30
+ return F(S, E);
31
+ };
32
+ }
33
+ const { maxRequestTime: o = kr } = t;
34
+ t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
35
+ let c = 0;
36
+ function d() {
37
+ return c <= wr ? ++c : c = 0;
38
+ }
39
+ const u = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
40
+ function x(g, ...S) {
41
+ const E = S[0];
42
+ return new Promise((N, F) => {
43
+ if (!n.send)
44
+ throw De(["send"], "make requests");
45
+ const J = d(), bt = {
46
+ type: "request",
47
+ id: J,
48
+ method: g,
49
+ params: E
10
50
  };
51
+ u.set(J, { resolve: N, reject: F }), o !== 1 / 0 && w.set(J, setTimeout(() => {
52
+ w.delete(J), F(new Error("RPC request timed out."));
53
+ }, o)), e.onSend?.(bt), n.send(bt);
11
54
  });
12
55
  }
56
+ const P = new Proxy(x, {
57
+ get: (g, S, E) => S in g ? Reflect.get(g, S, E) : (N) => x(S, N)
58
+ }), q = P;
59
+ function Le(g, ...S) {
60
+ const E = S[0];
61
+ if (!n.send)
62
+ throw De(["send"], "send messages");
63
+ const N = {
64
+ type: "message",
65
+ id: g,
66
+ payload: E
67
+ };
68
+ e.onSend?.(N), n.send(N);
69
+ }
70
+ const wt = new Proxy(Le, {
71
+ get: (g, S, E) => S in g ? Reflect.get(g, S, E) : (N) => Le(S, N)
72
+ }), kt = wt, te = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Set();
73
+ function yr(g, S) {
74
+ if (!n.registerHandler)
75
+ throw De(["registerHandler"], "register message listeners");
76
+ if (g === "*") {
77
+ rt.add(S);
78
+ return;
79
+ }
80
+ te.has(g) || te.set(g, /* @__PURE__ */ new Set()), te.get(g)?.add(S);
81
+ }
82
+ function gr(g, S) {
83
+ if (g === "*") {
84
+ rt.delete(S);
85
+ return;
86
+ }
87
+ te.get(g)?.delete(S), te.get(g)?.size === 0 && te.delete(g);
88
+ }
89
+ async function vr(g) {
90
+ if (e.onReceive?.(g), !("type" in g))
91
+ throw new Error("Message does not contain a type.");
92
+ if (g.type === "request") {
93
+ if (!n.send || !a)
94
+ throw De(["send", "requestHandler"], "handle requests");
95
+ const { id: S, method: E, params: N } = g;
96
+ let F;
97
+ try {
98
+ F = {
99
+ type: "response",
100
+ id: S,
101
+ success: !0,
102
+ payload: await a(E, N)
103
+ };
104
+ } catch (J) {
105
+ if (!(J instanceof Error))
106
+ throw J;
107
+ F = {
108
+ type: "response",
109
+ id: S,
110
+ success: !1,
111
+ error: J.message
112
+ };
113
+ }
114
+ e.onSend?.(F), n.send(F);
115
+ return;
116
+ }
117
+ if (g.type === "response") {
118
+ const S = w.get(g.id);
119
+ S != null && clearTimeout(S);
120
+ const { resolve: E, reject: N } = u.get(g.id) ?? {};
121
+ g.success ? E?.(g.payload) : N?.(new Error(g.error));
122
+ return;
123
+ }
124
+ if (g.type === "message") {
125
+ for (const E of rt)
126
+ E(g.id, g.payload);
127
+ const S = te.get(g.id);
128
+ if (!S)
129
+ return;
130
+ for (const E of S)
131
+ E(g.payload);
132
+ return;
133
+ }
134
+ throw new Error(`Unexpected RPC message type: ${g.type}`);
135
+ }
136
+ return {
137
+ setTransport: s,
138
+ setRequestHandler: i,
139
+ request: P,
140
+ requestProxy: q,
141
+ send: wt,
142
+ sendProxy: kt,
143
+ addMessageListener: yr,
144
+ removeMessageListener: gr,
145
+ proxy: { send: kt, request: q },
146
+ _setDebugHooks: r
147
+ };
13
148
  }
14
- function be(t) {
15
- return t.FS;
149
+ function xr(t) {
150
+ return br(t);
151
+ }
152
+ const Pt = "[transport-id]";
153
+ function Sr(t, e) {
154
+ const { transportId: r } = e;
155
+ return r != null ? { [Pt]: r, data: t } : t;
156
+ }
157
+ function Tr(t, e) {
158
+ const { transportId: r, filter: n } = e, s = n?.();
159
+ if (r != null && s != null)
160
+ throw new Error("Cannot use both `transportId` and `filter` at the same time");
161
+ let a = t;
162
+ if (r) {
163
+ if (t[Pt] !== r)
164
+ return [!0];
165
+ a = t.data;
166
+ }
167
+ return s === !1 ? [!0] : [!1, a];
168
+ }
169
+ function Er(t, e = {}) {
170
+ const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
171
+ let o;
172
+ return {
173
+ send(c) {
174
+ i.postMessage(Sr(c, { transportId: r }));
175
+ },
176
+ registerHandler(c) {
177
+ o = (d) => {
178
+ const u = d.data, [w, x] = Tr(u, {
179
+ transportId: r,
180
+ filter: () => n?.(d)
181
+ });
182
+ w || c(x);
183
+ }, a.addEventListener("message", o);
184
+ },
185
+ unregisterHandler() {
186
+ o && a.removeEventListener("message", o);
187
+ }
188
+ };
189
+ }
190
+ function Or(t) {
191
+ return Er(self, t);
192
+ }
193
+ function Nr(t) {
194
+ let e, r = !1;
195
+ return function(...n) {
196
+ return r || (r = !0, e = t.apply(this, n)), e;
197
+ };
16
198
  }
17
199
  const _e = {
18
200
  NOOP: () => {
19
201
  }
20
- }, Pt = (t, e) => {
202
+ }, Ct = (t, e) => {
21
203
  const r = `[${t}]`;
22
204
  return {
23
205
  debug: (...n) => e.debug(r, ...n),
@@ -25,7 +207,7 @@ var ls = _r((ps, mt) => {
25
207
  warn: (...n) => e.warn(r, ...n),
26
208
  error: (...n) => e.error(r, ...n),
27
209
  trace: (...n) => e.trace(r, ...n),
28
- get: (n) => Pt(`${t}.${n}`, e),
210
+ get: (n) => Ct(`${t}.${n}`, e),
29
211
  disabled: (n = !0) => n ? Ue : e
30
212
  };
31
213
  }, qe = {
@@ -44,7 +226,7 @@ var ls = _r((ps, mt) => {
44
226
  trace: (...t) => {
45
227
  console.trace(...t);
46
228
  },
47
- get: (t) => Pt(t, qe),
229
+ get: (t) => Ct(t, qe),
48
230
  disabled: (t = !0) => t ? Ue : qe
49
231
  }, Ue = {
50
232
  debug: () => _e.NOOP,
@@ -55,73 +237,19 @@ var ls = _r((ps, mt) => {
55
237
  get: () => Ue,
56
238
  disabled: () => Ue
57
239
  };
58
- function kr() {
240
+ function Rr() {
59
241
  return typeof window < "u" && window.Logger || qe;
60
242
  }
61
- const Y = kr(), at = (t) => new TextDecoder().decode(t), we = "notebook.py", ke = "/marimo", ae = {
62
- NOTEBOOK_FILENAME: we,
63
- HOME_DIR: ke,
64
- createHomeDir: (t) => {
65
- const e = be(t);
66
- try {
67
- e.mkdirTree(ke);
68
- } catch {
69
- }
70
- e.chdir(ke);
71
- },
72
- mountFS: (t) => {
73
- be(t).mount(t.FS.filesystems.IDBFS, { root: "." }, ke);
74
- },
75
- populateFilesToMemory: async (t) => {
76
- await xt(t, !0);
77
- },
78
- persistFilesToRemote: async (t) => {
79
- await xt(t, !1);
80
- },
81
- readNotebook: (t) => {
82
- const e = be(t), r = `${ke}/${we}`;
83
- return at(e.readFile(r));
84
- },
85
- initNotebookCode: (t) => {
86
- const { pyodide: e, filename: r, code: n } = t, s = be(e), a = (i) => {
87
- try {
88
- return at(s.readFile(i));
89
- } catch {
90
- return null;
91
- }
92
- };
93
- if (r && r !== we) {
94
- const i = a(r);
95
- if (i)
96
- return {
97
- code: i,
98
- filename: r
99
- };
100
- }
101
- return s.writeFile(we, n), {
102
- code: n,
103
- filename: we
104
- };
105
- }
106
- };
107
- function xt(t, e) {
108
- return new Promise((r, n) => {
109
- be(t).syncfs(e, (s) => {
110
- if (s instanceof Error) {
111
- n(s);
112
- return;
113
- }
114
- r();
243
+ const Y = Rr(), at = (t) => new TextDecoder().decode(t);
244
+ class Ar {
245
+ constructor() {
246
+ this.status = "pending", this.promise = new Promise((e, r) => {
247
+ this.reject = (n) => {
248
+ this.status = "rejected", r(n);
249
+ }, this.resolve = (n) => {
250
+ this.status = "resolved", e(n);
251
+ };
115
252
  });
116
- });
117
- }
118
- class br {
119
- constructor(e) {
120
- this.onMessage = e, this.started = !1, this.push = (r) => {
121
- this.started ? this.onMessage(r) : this.buffer.push(r);
122
- }, this.start = () => {
123
- this.started = !0, this.buffer.forEach((r) => this.onMessage(r)), this.buffer = [];
124
- }, this.buffer = [];
125
253
  }
126
254
  }
127
255
  var k;
@@ -227,7 +355,7 @@ var ls = _r((ps, mt) => {
227
355
  "invalid_intersection_types",
228
356
  "not_multiple_of",
229
357
  "not_finite"
230
- ]), xr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
358
+ ]), Pr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
231
359
  class C extends Error {
232
360
  get errors() {
233
361
  return this.issues;
@@ -344,12 +472,12 @@ var ls = _r((ps, mt) => {
344
472
  }
345
473
  return { message: r };
346
474
  };
347
- let Ct = ye;
348
- function Sr(t) {
349
- Ct = t;
475
+ let It = ye;
476
+ function Cr(t) {
477
+ It = t;
350
478
  }
351
479
  function Be() {
352
- return Ct;
480
+ return It;
353
481
  }
354
482
  const He = (t) => {
355
483
  const { data: e, path: r, errorMaps: n, issueData: s } = t, a = [...r, ...s.path || []], i = {
@@ -371,7 +499,7 @@ var ls = _r((ps, mt) => {
371
499
  path: a,
372
500
  message: o
373
501
  };
374
- }, Tr = [];
502
+ }, Ir = [];
375
503
  function f(t, e) {
376
504
  const r = Be(), n = He({
377
505
  issueData: e,
@@ -438,7 +566,7 @@ var ls = _r((ps, mt) => {
438
566
  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");
439
567
  return e.get(t);
440
568
  }
441
- function It(t, e, r, n, s) {
569
+ function Zt(t, e, r, n, s) {
442
570
  if (typeof e == "function" ? t !== e || !0 : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
443
571
  return e.set(t, r), r;
444
572
  }
@@ -446,7 +574,7 @@ var ls = _r((ps, mt) => {
446
574
  (function(t) {
447
575
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
448
576
  })(h || (h = {}));
449
- var xe, Se;
577
+ var be, xe;
450
578
  class D {
451
579
  constructor(e, r, n, s) {
452
580
  this._cachedPath = [], this.parent = e, this.data = r, this._path = n, this._key = s;
@@ -455,7 +583,7 @@ var ls = _r((ps, mt) => {
455
583
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
456
584
  }
457
585
  }
458
- const St = (t, e) => {
586
+ const xt = (t, e) => {
459
587
  if (oe(e))
460
588
  return { success: !0, data: e.value };
461
589
  if (!t.common.issues.length)
@@ -542,7 +670,7 @@ var ls = _r((ps, mt) => {
542
670
  data: e,
543
671
  parsedType: B(e)
544
672
  }, a = this._parseSync({ data: e, path: s.path, parent: s });
545
- return St(s, a);
673
+ return xt(s, a);
546
674
  }
547
675
  "~validate"(e) {
548
676
  var r, n;
@@ -596,7 +724,7 @@ var ls = _r((ps, mt) => {
596
724
  data: e,
597
725
  parsedType: B(e)
598
726
  }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (Te(s) ? s : Promise.resolve(s));
599
- return St(n, a);
727
+ return xt(n, a);
600
728
  }
601
729
  refine(e, r) {
602
730
  const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
@@ -702,26 +830,26 @@ var ls = _r((ps, mt) => {
702
830
  return this.safeParse(null).success;
703
831
  }
704
832
  }
705
- const Er = /^c[^\s-]{8,}$/i, Or = /^[0-9a-z]+$/, Nr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Rr = /^[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, Ar = /^[a-z0-9_-]{21}$/i, Pr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Cr = /^[-+]?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)?)??$/, Ir = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Zr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
833
+ const Zr = /^c[^\s-]{8,}$/i, jr = /^[0-9a-z]+$/, $r = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Fr = /^[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, Mr = /^[a-z0-9_-]{21}$/i, Lr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Dr = /^[-+]?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)?)??$/, Vr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, zr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
706
834
  let nt;
707
- const jr = /^(?:(?: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])$/, $r = /^(?:(?: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])$/, Fr = /^(([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]))$/, Mr = /^(([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])$/, Lr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Dr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Zt = "((\\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])))", Vr = new RegExp(`^${Zt}$`);
708
- function jt(t) {
835
+ const qr = /^(?:(?: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])$/, Ur = /^(?:(?: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])$/, Br = /^(([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]))$/, Hr = /^(([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])$/, Wr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Jr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, jt = "((\\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])))", Yr = new RegExp(`^${jt}$`);
836
+ function $t(t) {
709
837
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
710
838
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
711
839
  }
712
- function zr(t) {
713
- return new RegExp(`^${jt(t)}$`);
840
+ function Kr(t) {
841
+ return new RegExp(`^${$t(t)}$`);
714
842
  }
715
- function $t(t) {
716
- let e = `${Zt}T${jt(t)}`;
843
+ function Ft(t) {
844
+ let e = `${jt}T${$t(t)}`;
717
845
  const r = [];
718
846
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
719
847
  }
720
- function qr(t, e) {
721
- return !!((e === "v4" || !e) && jr.test(t) || (e === "v6" || !e) && Fr.test(t));
848
+ function Gr(t, e) {
849
+ return !!((e === "v4" || !e) && qr.test(t) || (e === "v6" || !e) && Br.test(t));
722
850
  }
723
- function Ur(t, e) {
724
- if (!Pr.test(t))
851
+ function Xr(t, e) {
852
+ if (!Lr.test(t))
725
853
  return !1;
726
854
  try {
727
855
  const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
@@ -730,8 +858,8 @@ var ls = _r((ps, mt) => {
730
858
  return !1;
731
859
  }
732
860
  }
733
- function Br(t, e) {
734
- return !!((e === "v4" || !e) && $r.test(t) || (e === "v6" || !e) && Mr.test(t));
861
+ function Qr(t, e) {
862
+ return !!((e === "v4" || !e) && Ur.test(t) || (e === "v6" || !e) && Hr.test(t));
735
863
  }
736
864
  class Z extends _ {
737
865
  _parse(e) {
@@ -782,43 +910,43 @@ var ls = _r((ps, mt) => {
782
910
  message: a.message
783
911
  }), n.dirty());
784
912
  } else if (a.kind === "email")
785
- Ir.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
913
+ Vr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
786
914
  validation: "email",
787
915
  code: l.invalid_string,
788
916
  message: a.message
789
917
  }), n.dirty());
790
918
  else if (a.kind === "emoji")
791
- nt || (nt = new RegExp(Zr, "u")), nt.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
919
+ nt || (nt = new RegExp(zr, "u")), nt.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
792
920
  validation: "emoji",
793
921
  code: l.invalid_string,
794
922
  message: a.message
795
923
  }), n.dirty());
796
924
  else if (a.kind === "uuid")
797
- Rr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
925
+ Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
798
926
  validation: "uuid",
799
927
  code: l.invalid_string,
800
928
  message: a.message
801
929
  }), n.dirty());
802
930
  else if (a.kind === "nanoid")
803
- Ar.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
931
+ Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
804
932
  validation: "nanoid",
805
933
  code: l.invalid_string,
806
934
  message: a.message
807
935
  }), n.dirty());
808
936
  else if (a.kind === "cuid")
809
- Er.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
937
+ Zr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
810
938
  validation: "cuid",
811
939
  code: l.invalid_string,
812
940
  message: a.message
813
941
  }), n.dirty());
814
942
  else if (a.kind === "cuid2")
815
- Or.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
943
+ jr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
816
944
  validation: "cuid2",
817
945
  code: l.invalid_string,
818
946
  message: a.message
819
947
  }), n.dirty());
820
948
  else if (a.kind === "ulid")
821
- Nr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
949
+ $r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
822
950
  validation: "ulid",
823
951
  code: l.invalid_string,
824
952
  message: a.message
@@ -849,39 +977,39 @@ var ls = _r((ps, mt) => {
849
977
  code: l.invalid_string,
850
978
  validation: { endsWith: a.value },
851
979
  message: a.message
852
- }), n.dirty()) : a.kind === "datetime" ? $t(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
980
+ }), n.dirty()) : a.kind === "datetime" ? Ft(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
853
981
  code: l.invalid_string,
854
982
  validation: "datetime",
855
983
  message: a.message
856
- }), n.dirty()) : a.kind === "date" ? Vr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
984
+ }), n.dirty()) : a.kind === "date" ? Yr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
857
985
  code: l.invalid_string,
858
986
  validation: "date",
859
987
  message: a.message
860
- }), n.dirty()) : a.kind === "time" ? zr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
988
+ }), n.dirty()) : a.kind === "time" ? Kr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
861
989
  code: l.invalid_string,
862
990
  validation: "time",
863
991
  message: a.message
864
- }), n.dirty()) : a.kind === "duration" ? Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
992
+ }), n.dirty()) : a.kind === "duration" ? Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
865
993
  validation: "duration",
866
994
  code: l.invalid_string,
867
995
  message: a.message
868
- }), n.dirty()) : a.kind === "ip" ? qr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
996
+ }), n.dirty()) : a.kind === "ip" ? Gr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
869
997
  validation: "ip",
870
998
  code: l.invalid_string,
871
999
  message: a.message
872
- }), n.dirty()) : a.kind === "jwt" ? Ur(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
1000
+ }), n.dirty()) : a.kind === "jwt" ? Xr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
873
1001
  validation: "jwt",
874
1002
  code: l.invalid_string,
875
1003
  message: a.message
876
- }), n.dirty()) : a.kind === "cidr" ? Br(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
1004
+ }), n.dirty()) : a.kind === "cidr" ? Qr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
877
1005
  validation: "cidr",
878
1006
  code: l.invalid_string,
879
1007
  message: a.message
880
- }), n.dirty()) : a.kind === "base64" ? Lr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
1008
+ }), n.dirty()) : a.kind === "base64" ? Wr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
881
1009
  validation: "base64",
882
1010
  code: l.invalid_string,
883
1011
  message: a.message
884
- }), n.dirty()) : a.kind === "base64url" ? Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
1012
+ }), n.dirty()) : a.kind === "base64url" ? Jr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
885
1013
  validation: "base64url",
886
1014
  code: l.invalid_string,
887
1015
  message: a.message
@@ -1120,7 +1248,7 @@ var ls = _r((ps, mt) => {
1120
1248
  ...v(t)
1121
1249
  });
1122
1250
  };
1123
- function Hr(t, e) {
1251
+ function en(t, e) {
1124
1252
  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(".", ""));
1125
1253
  return a % i / Math.pow(10, s);
1126
1254
  }
@@ -1159,7 +1287,7 @@ var ls = _r((ps, mt) => {
1159
1287
  inclusive: a.inclusive,
1160
1288
  exact: !1,
1161
1289
  message: a.message
1162
- }), s.dirty()) : a.kind === "multipleOf" ? Hr(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
1290
+ }), s.dirty()) : a.kind === "multipleOf" ? en(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
1163
1291
  code: l.not_multiple_of,
1164
1292
  multipleOf: a.value,
1165
1293
  message: a.message
@@ -1986,7 +2114,7 @@ var ls = _r((ps, mt) => {
1986
2114
  });
1987
2115
  }
1988
2116
  keyof() {
1989
- return Ft(k.objectKeys(this.shape));
2117
+ return Mt(k.objectKeys(this.shape));
1990
2118
  }
1991
2119
  }
1992
2120
  T.create = (t, e) => new T({
@@ -2549,7 +2677,7 @@ var ls = _r((ps, mt) => {
2549
2677
  typeName: m.ZodLiteral,
2550
2678
  ...v(e)
2551
2679
  });
2552
- function Ft(t, e) {
2680
+ function Mt(t, e) {
2553
2681
  return new X({
2554
2682
  values: t,
2555
2683
  typeName: m.ZodEnum,
@@ -2558,7 +2686,7 @@ var ls = _r((ps, mt) => {
2558
2686
  }
2559
2687
  class X extends _ {
2560
2688
  constructor() {
2561
- super(...arguments), xe.set(this, void 0);
2689
+ super(...arguments), be.set(this, void 0);
2562
2690
  }
2563
2691
  _parse(e) {
2564
2692
  if (typeof e.data != "string") {
@@ -2569,7 +2697,7 @@ var ls = _r((ps, mt) => {
2569
2697
  code: l.invalid_type
2570
2698
  }), y;
2571
2699
  }
2572
- if (We(this, xe) || It(this, xe, new Set(this._def.values)), !We(this, xe).has(e.data)) {
2700
+ if (We(this, be) || Zt(this, be, new Set(this._def.values)), !We(this, be).has(e.data)) {
2573
2701
  const r = this._getOrReturnCtx(e), n = this._def.values;
2574
2702
  return f(r, {
2575
2703
  received: r.data,
@@ -2613,11 +2741,11 @@ var ls = _r((ps, mt) => {
2613
2741
  });
2614
2742
  }
2615
2743
  }
2616
- xe = /* @__PURE__ */ new WeakMap();
2617
- X.create = Ft;
2744
+ be = /* @__PURE__ */ new WeakMap();
2745
+ X.create = Mt;
2618
2746
  class Ze extends _ {
2619
2747
  constructor() {
2620
- super(...arguments), Se.set(this, void 0);
2748
+ super(...arguments), xe.set(this, void 0);
2621
2749
  }
2622
2750
  _parse(e) {
2623
2751
  const r = k.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
@@ -2629,7 +2757,7 @@ var ls = _r((ps, mt) => {
2629
2757
  code: l.invalid_type
2630
2758
  }), y;
2631
2759
  }
2632
- if (We(this, Se) || It(this, Se, new Set(k.getValidEnumValues(this._def.values))), !We(this, Se).has(e.data)) {
2760
+ if (We(this, xe) || Zt(this, xe, new Set(k.getValidEnumValues(this._def.values))), !We(this, xe).has(e.data)) {
2633
2761
  const s = k.objectValues(r);
2634
2762
  return f(n, {
2635
2763
  received: n.data,
@@ -2643,7 +2771,7 @@ var ls = _r((ps, mt) => {
2643
2771
  return this._def.values;
2644
2772
  }
2645
2773
  }
2646
- Se = /* @__PURE__ */ new WeakMap();
2774
+ xe = /* @__PURE__ */ new WeakMap();
2647
2775
  Ze.create = (t, e) => new Ze({
2648
2776
  values: t,
2649
2777
  typeName: m.ZodNativeEnum,
@@ -2868,7 +2996,7 @@ var ls = _r((ps, mt) => {
2868
2996
  typeName: m.ZodNaN,
2869
2997
  ...v(t)
2870
2998
  });
2871
- const Wr = Symbol("zod_brand");
2999
+ const tn = Symbol("zod_brand");
2872
3000
  class yt extends _ {
2873
3001
  _parse(e) {
2874
3002
  const { ctx: r } = this._processInputParams(e), n = r.data;
@@ -2936,11 +3064,11 @@ var ls = _r((ps, mt) => {
2936
3064
  typeName: m.ZodReadonly,
2937
3065
  ...v(e)
2938
3066
  });
2939
- function Tt(t, e) {
3067
+ function St(t, e) {
2940
3068
  const r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
2941
3069
  return typeof r == "string" ? { message: r } : r;
2942
3070
  }
2943
- function Mt(t, e = {}, r) {
3071
+ function Lt(t, e = {}, r) {
2944
3072
  return t ? ge.create().superRefine((n, s) => {
2945
3073
  var a, i;
2946
3074
  const o = t(n);
@@ -2948,26 +3076,26 @@ var ls = _r((ps, mt) => {
2948
3076
  return o.then((c) => {
2949
3077
  var d, u;
2950
3078
  if (!c) {
2951
- const w = Tt(e, n), x = (u = (d = w.fatal) !== null && d !== void 0 ? d : r) !== null && u !== void 0 ? u : !0;
3079
+ const w = St(e, n), x = (u = (d = w.fatal) !== null && d !== void 0 ? d : r) !== null && u !== void 0 ? u : !0;
2952
3080
  s.addIssue({ code: "custom", ...w, fatal: x });
2953
3081
  }
2954
3082
  });
2955
3083
  if (!o) {
2956
- const c = Tt(e, n), d = (i = (a = c.fatal) !== null && a !== void 0 ? a : r) !== null && i !== void 0 ? i : !0;
3084
+ const c = St(e, n), d = (i = (a = c.fatal) !== null && a !== void 0 ? a : r) !== null && i !== void 0 ? i : !0;
2957
3085
  s.addIssue({ code: "custom", ...c, fatal: d });
2958
3086
  }
2959
3087
  }) : ge.create();
2960
3088
  }
2961
- const Jr = {
3089
+ const rn = {
2962
3090
  object: T.lazycreate
2963
3091
  };
2964
3092
  var m;
2965
3093
  (function(t) {
2966
3094
  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";
2967
3095
  })(m || (m = {}));
2968
- const Yr = (t, e = {
3096
+ const nn = (t, e = {
2969
3097
  message: `Input not instance of ${t.name}`
2970
- }) => Mt((r) => r instanceof t, e), Lt = Z.create, Dt = K.create, Kr = Ge.create, Gr = G.create, Vt = Ee.create, Xr = ce.create, Qr = Je.create, en = Oe.create, tn = Ne.create, rn = ge.create, nn = ie.create, sn = W.create, an = Ye.create, on = j.create, cn = T.create, dn = T.strictCreate, ln = Re.create, un = et.create, fn = Ae.create, pn = V.create, hn = Pe.create, mn = Ke.create, yn = de.create, gn = me.create, vn = Ce.create, _n = Ie.create, wn = X.create, kn = Ze.create, bn = ve.create, Et = $.create, xn = L.create, Sn = Q.create, Tn = $.createWithPreprocess, En = Me.create, On = () => Lt().optional(), Nn = () => Dt().optional(), Rn = () => Vt().optional(), An = {
3098
+ }) => Lt((r) => r instanceof t, e), Dt = Z.create, Vt = K.create, sn = Ge.create, an = G.create, zt = Ee.create, on = ce.create, cn = Je.create, dn = Oe.create, ln = Ne.create, un = ge.create, fn = ie.create, pn = W.create, hn = Ye.create, mn = j.create, yn = T.create, gn = T.strictCreate, vn = Re.create, _n = et.create, wn = Ae.create, kn = V.create, bn = Pe.create, xn = Ke.create, Sn = de.create, Tn = me.create, En = Ce.create, On = Ie.create, Nn = X.create, Rn = Ze.create, An = ve.create, Tt = $.create, Pn = L.create, Cn = Q.create, In = $.createWithPreprocess, Zn = Me.create, jn = () => Dt().optional(), $n = () => Vt().optional(), Fn = () => zt().optional(), Mn = {
2971
3099
  string: (t) => Z.create({ ...t, coerce: !0 }),
2972
3100
  number: (t) => K.create({ ...t, coerce: !0 }),
2973
3101
  boolean: (t) => Ee.create({
@@ -2976,14 +3104,14 @@ var ls = _r((ps, mt) => {
2976
3104
  }),
2977
3105
  bigint: (t) => G.create({ ...t, coerce: !0 }),
2978
3106
  date: (t) => ce.create({ ...t, coerce: !0 })
2979
- }, Pn = y;
3107
+ }, Ln = y;
2980
3108
  var Xe = /* @__PURE__ */ Object.freeze({
2981
3109
  __proto__: null,
2982
3110
  defaultErrorMap: ye,
2983
- setErrorMap: Sr,
3111
+ setErrorMap: Cr,
2984
3112
  getErrorMap: Be,
2985
3113
  makeIssue: He,
2986
- EMPTY_PATH: Tr,
3114
+ EMPTY_PATH: Ir,
2987
3115
  addIssueToContext: f,
2988
3116
  ParseStatus: O,
2989
3117
  INVALID: y,
@@ -3002,7 +3130,7 @@ var ls = _r((ps, mt) => {
3002
3130
  ZodParsedType: p,
3003
3131
  getParsedType: B,
3004
3132
  ZodType: _,
3005
- datetimeRegex: $t,
3133
+ datetimeRegex: Ft,
3006
3134
  ZodString: Z,
3007
3135
  ZodNumber: K,
3008
3136
  ZodBigInt: G,
@@ -3037,79 +3165,79 @@ var ls = _r((ps, mt) => {
3037
3165
  ZodDefault: je,
3038
3166
  ZodCatch: $e,
3039
3167
  ZodNaN: Ge,
3040
- BRAND: Wr,
3168
+ BRAND: tn,
3041
3169
  ZodBranded: yt,
3042
3170
  ZodPipeline: Me,
3043
3171
  ZodReadonly: Fe,
3044
- custom: Mt,
3172
+ custom: Lt,
3045
3173
  Schema: _,
3046
3174
  ZodSchema: _,
3047
- late: Jr,
3175
+ late: rn,
3048
3176
  get ZodFirstPartyTypeKind() {
3049
3177
  return m;
3050
3178
  },
3051
- coerce: An,
3052
- any: rn,
3053
- array: on,
3054
- bigint: Gr,
3055
- boolean: Vt,
3056
- date: Xr,
3057
- discriminatedUnion: un,
3058
- effect: Et,
3059
- enum: wn,
3060
- function: gn,
3061
- instanceof: Yr,
3062
- intersection: fn,
3063
- lazy: vn,
3064
- literal: _n,
3065
- map: mn,
3066
- nan: Kr,
3067
- nativeEnum: kn,
3068
- never: sn,
3069
- null: tn,
3070
- nullable: Sn,
3071
- number: Dt,
3072
- object: cn,
3073
- oboolean: Rn,
3074
- onumber: Nn,
3075
- optional: xn,
3076
- ostring: On,
3077
- pipeline: En,
3078
- preprocess: Tn,
3079
- promise: bn,
3080
- record: hn,
3081
- set: yn,
3082
- strictObject: dn,
3083
- string: Lt,
3084
- symbol: Qr,
3085
- transformer: Et,
3086
- tuple: pn,
3087
- undefined: en,
3088
- union: ln,
3089
- unknown: nn,
3090
- void: an,
3091
- NEVER: Pn,
3179
+ coerce: Mn,
3180
+ any: un,
3181
+ array: mn,
3182
+ bigint: an,
3183
+ boolean: zt,
3184
+ date: on,
3185
+ discriminatedUnion: _n,
3186
+ effect: Tt,
3187
+ enum: Nn,
3188
+ function: Tn,
3189
+ instanceof: nn,
3190
+ intersection: wn,
3191
+ lazy: En,
3192
+ literal: On,
3193
+ map: xn,
3194
+ nan: sn,
3195
+ nativeEnum: Rn,
3196
+ never: pn,
3197
+ null: ln,
3198
+ nullable: Cn,
3199
+ number: Vt,
3200
+ object: yn,
3201
+ oboolean: Fn,
3202
+ onumber: $n,
3203
+ optional: Pn,
3204
+ ostring: jn,
3205
+ pipeline: Zn,
3206
+ preprocess: In,
3207
+ promise: An,
3208
+ record: bn,
3209
+ set: Sn,
3210
+ strictObject: gn,
3211
+ string: Dt,
3212
+ symbol: cn,
3213
+ transformer: Tt,
3214
+ tuple: kn,
3215
+ undefined: dn,
3216
+ union: vn,
3217
+ unknown: fn,
3218
+ void: hn,
3219
+ NEVER: Ln,
3092
3220
  ZodIssueCode: l,
3093
- quotelessJson: xr,
3221
+ quotelessJson: Pr,
3094
3222
  ZodError: C
3095
3223
  });
3096
3224
  const lt = Xe.object({
3097
3225
  detail: Xe.string()
3098
- }), zt = Xe.object({
3226
+ }), qt = Xe.object({
3099
3227
  error: Xe.string()
3100
3228
  });
3101
- function qt(t) {
3229
+ function Ut(t) {
3102
3230
  if (!t)
3103
3231
  return "Unknown error";
3104
3232
  if (t instanceof Error) {
3105
3233
  const e = lt.safeParse(t.cause);
3106
- return e.success ? e.data.detail : Cn(t.message);
3234
+ return e.success ? e.data.detail : Dn(t.message);
3107
3235
  }
3108
3236
  if (typeof t == "object") {
3109
3237
  const e = lt.safeParse(t);
3110
3238
  if (e.success)
3111
3239
  return e.data.detail;
3112
- const r = zt.safeParse(t);
3240
+ const r = qt.safeParse(t);
3113
3241
  if (r.success)
3114
3242
  return r.data.error;
3115
3243
  }
@@ -3119,217 +3247,87 @@ var ls = _r((ps, mt) => {
3119
3247
  return String(t);
3120
3248
  }
3121
3249
  }
3122
- function Cn(t) {
3123
- const e = In(t);
3250
+ function Dn(t) {
3251
+ const e = Vn(t);
3124
3252
  if (!e)
3125
3253
  return t;
3126
3254
  const r = lt.safeParse(e);
3127
3255
  if (r.success)
3128
3256
  return r.data.detail;
3129
- const n = zt.safeParse(e);
3257
+ const n = qt.safeParse(e);
3130
3258
  return n.success ? n.data.error : t;
3131
3259
  }
3132
- function In(t) {
3260
+ function Vn(t) {
3133
3261
  try {
3134
3262
  return JSON.parse(t);
3135
3263
  } catch {
3136
3264
  return t;
3137
3265
  }
3138
3266
  }
3139
- const Zn = 1e10, jn = 1e3;
3140
- function De(t, e) {
3141
- const r = t.map((n) => `"${n}"`).join(", ");
3142
- return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
3267
+ function Bt(t, e) {
3268
+ if (!t)
3269
+ throw new Error(e);
3143
3270
  }
3144
- function $n(t = {}) {
3145
- let e = {};
3146
- function r(g) {
3147
- e = g;
3148
- }
3149
- let n = {};
3150
- function s(g) {
3151
- n.unregisterHandler && n.unregisterHandler(), n = g, n.registerHandler?.(vr);
3152
- }
3153
- let a;
3154
- function i(g) {
3155
- if (typeof g == "function") {
3156
- a = g;
3157
- return;
3158
- }
3159
- a = (S, E) => {
3160
- const N = g[S];
3161
- if (N)
3162
- return N(E);
3163
- const F = g._;
3164
- if (!F)
3165
- throw new Error(`The requested method has no handler: ${S}`);
3166
- return F(S, E);
3167
- };
3168
- }
3169
- const { maxRequestTime: o = jn } = t;
3170
- t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
3171
- let c = 0;
3172
- function d() {
3173
- return c <= Zn ? ++c : c = 0;
3174
- }
3175
- const u = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
3176
- function x(g, ...S) {
3177
- const E = S[0];
3178
- return new Promise((N, F) => {
3179
- if (!n.send)
3180
- throw De(["send"], "make requests");
3181
- const J = d(), bt = {
3182
- type: "request",
3183
- id: J,
3184
- method: g,
3185
- params: E
3186
- };
3187
- u.set(J, { resolve: N, reject: F }), o !== 1 / 0 && w.set(J, setTimeout(() => {
3188
- w.delete(J), F(new Error("RPC request timed out."));
3189
- }, o)), e.onSend?.(bt), n.send(bt);
3190
- });
3191
- }
3192
- const P = new Proxy(x, {
3193
- get: (g, S, E) => S in g ? Reflect.get(g, S, E) : (N) => x(S, N)
3194
- }), q = P;
3195
- function Le(g, ...S) {
3196
- const E = S[0];
3197
- if (!n.send)
3198
- throw De(["send"], "send messages");
3199
- const N = {
3200
- type: "message",
3201
- id: g,
3202
- payload: E
3203
- };
3204
- e.onSend?.(N), n.send(N);
3205
- }
3206
- const wt = new Proxy(Le, {
3207
- get: (g, S, E) => S in g ? Reflect.get(g, S, E) : (N) => Le(S, N)
3208
- }), kt = wt, te = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Set();
3209
- function yr(g, S) {
3210
- if (!n.registerHandler)
3211
- throw De(["registerHandler"], "register message listeners");
3212
- if (g === "*") {
3213
- rt.add(S);
3214
- return;
3215
- }
3216
- te.has(g) || te.set(g, /* @__PURE__ */ new Set()), te.get(g)?.add(S);
3217
- }
3218
- function gr(g, S) {
3219
- if (g === "*") {
3220
- rt.delete(S);
3221
- return;
3271
+ const zn = "marimo-transport";
3272
+ function Se(t) {
3273
+ return t.FS;
3274
+ }
3275
+ const we = "notebook.py", ke = "/marimo", ae = {
3276
+ NOTEBOOK_FILENAME: we,
3277
+ HOME_DIR: ke,
3278
+ createHomeDir: (t) => {
3279
+ const e = Se(t);
3280
+ try {
3281
+ e.mkdirTree(ke);
3282
+ } catch {
3222
3283
  }
3223
- te.get(g)?.delete(S), te.get(g)?.size === 0 && te.delete(g);
3224
- }
3225
- async function vr(g) {
3226
- if (e.onReceive?.(g), !("type" in g))
3227
- throw new Error("Message does not contain a type.");
3228
- if (g.type === "request") {
3229
- if (!n.send || !a)
3230
- throw De(["send", "requestHandler"], "handle requests");
3231
- const { id: S, method: E, params: N } = g;
3232
- let F;
3284
+ e.chdir(ke);
3285
+ },
3286
+ mountFS: (t) => {
3287
+ Se(t).mount(t.FS.filesystems.IDBFS, { root: "." }, ke);
3288
+ },
3289
+ populateFilesToMemory: async (t) => {
3290
+ await Et(t, !0);
3291
+ },
3292
+ persistFilesToRemote: async (t) => {
3293
+ await Et(t, !1);
3294
+ },
3295
+ readNotebook: (t) => {
3296
+ const e = Se(t), r = `${ke}/${we}`;
3297
+ return at(e.readFile(r));
3298
+ },
3299
+ initNotebookCode: (t) => {
3300
+ const { pyodide: e, filename: r, code: n } = t, s = Se(e), a = (i) => {
3233
3301
  try {
3234
- F = {
3235
- type: "response",
3236
- id: S,
3237
- success: !0,
3238
- payload: await a(E, N)
3239
- };
3240
- } catch (J) {
3241
- if (!(J instanceof Error))
3242
- throw J;
3243
- F = {
3244
- type: "response",
3245
- id: S,
3246
- success: !1,
3247
- error: J.message
3248
- };
3302
+ return at(s.readFile(i));
3303
+ } catch {
3304
+ return null;
3249
3305
  }
3250
- e.onSend?.(F), n.send(F);
3251
- return;
3252
- }
3253
- if (g.type === "response") {
3254
- const S = w.get(g.id);
3255
- S != null && clearTimeout(S);
3256
- const { resolve: E, reject: N } = u.get(g.id) ?? {};
3257
- g.success ? E?.(g.payload) : N?.(new Error(g.error));
3258
- return;
3259
- }
3260
- if (g.type === "message") {
3261
- for (const E of rt)
3262
- E(g.id, g.payload);
3263
- const S = te.get(g.id);
3264
- if (!S)
3265
- return;
3266
- for (const E of S)
3267
- E(g.payload);
3268
- return;
3306
+ };
3307
+ if (r && r !== we) {
3308
+ const i = a(r);
3309
+ if (i)
3310
+ return {
3311
+ code: i,
3312
+ filename: r
3313
+ };
3269
3314
  }
3270
- throw new Error(`Unexpected RPC message type: ${g.type}`);
3271
- }
3272
- return {
3273
- setTransport: s,
3274
- setRequestHandler: i,
3275
- request: P,
3276
- requestProxy: q,
3277
- send: wt,
3278
- sendProxy: kt,
3279
- addMessageListener: yr,
3280
- removeMessageListener: gr,
3281
- proxy: { send: kt, request: q },
3282
- _setDebugHooks: r
3283
- };
3284
- }
3285
- function Fn(t) {
3286
- return $n(t);
3287
- }
3288
- const Ut = "[transport-id]";
3289
- function Mn(t, e) {
3290
- const { transportId: r } = e;
3291
- return r != null ? { [Ut]: r, data: t } : t;
3292
- }
3293
- function Ln(t, e) {
3294
- const { transportId: r, filter: n } = e, s = n?.();
3295
- if (r != null && s != null)
3296
- throw new Error("Cannot use both `transportId` and `filter` at the same time");
3297
- let a = t;
3298
- if (r) {
3299
- if (t[Ut] !== r)
3300
- return [!0];
3301
- a = t.data;
3315
+ return s.writeFile(we, n), {
3316
+ code: n,
3317
+ filename: we
3318
+ };
3302
3319
  }
3303
- return s === !1 ? [!0] : [!1, a];
3304
- }
3305
- function Dn(t, e = {}) {
3306
- const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
3307
- let o;
3308
- return {
3309
- send(c) {
3310
- i.postMessage(Mn(c, { transportId: r }));
3311
- },
3312
- registerHandler(c) {
3313
- o = (d) => {
3314
- const u = d.data, [w, x] = Ln(u, {
3315
- transportId: r,
3316
- filter: () => n?.(d)
3317
- });
3318
- w || c(x);
3319
- }, a.addEventListener("message", o);
3320
- },
3321
- unregisterHandler() {
3322
- o && a.removeEventListener("message", o);
3323
- }
3324
- };
3325
- }
3326
- function Vn(t) {
3327
- return Dn(self, t);
3328
- }
3329
- const zn = "marimo-transport";
3330
- function Bt(t, e) {
3331
- if (!t)
3332
- throw new Error(e);
3320
+ };
3321
+ function Et(t, e) {
3322
+ return new Promise((r, n) => {
3323
+ Se(t).syncfs(e, (s) => {
3324
+ if (s instanceof Error) {
3325
+ n(s);
3326
+ return;
3327
+ }
3328
+ r();
3329
+ });
3330
+ });
3333
3331
  }
3334
3332
  var qn = Object.defineProperty, b = (t, e) => qn(t, "name", { value: e, configurable: !0 }), Ht = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
3335
3333
  if (typeof require < "u") return require.apply(this, arguments);
@@ -3721,11 +3719,7 @@ var ls = _r((ps, mt) => {
3721
3719
  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;
3722
3720
  }
3723
3721
  b(ht, "loadPyodide");
3724
- const Qn = !1;
3725
- function es(t) {
3726
- return t.includes("dev") && Qn ? "dev" : `v${pt}`;
3727
- }
3728
- class ts {
3722
+ class Qn {
3729
3723
  constructor() {
3730
3724
  this.spans = [];
3731
3725
  }
@@ -3767,16 +3761,10 @@ var ls = _r((ps, mt) => {
3767
3761
  logSpans() {
3768
3762
  }
3769
3763
  }
3770
- const R = new ts();
3764
+ const R = new Qn();
3771
3765
  globalThis.t = R;
3772
- function rs(t) {
3773
- let e, r = !1;
3774
- return function(...n) {
3775
- return r || (r = !0, e = t.apply(this, n)), e;
3776
- };
3777
- }
3778
- const ns = !1;
3779
- class ss {
3766
+ const es = !1;
3767
+ class ts {
3780
3768
  constructor() {
3781
3769
  this.pyodide = null;
3782
3770
  }
@@ -3801,7 +3789,7 @@ var ls = _r((ps, mt) => {
3801
3789
  "narwhals",
3802
3790
  "packaging"
3803
3791
  ],
3804
- _makeSnapshot: ns,
3792
+ _makeSnapshot: es,
3805
3793
  lockFileURL: `https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,
3806
3794
  // Without this, this fails in Firefox with
3807
3795
  // `Could not extract indexURL path from pyodide module`
@@ -3890,20 +3878,33 @@ ${e}`;
3890
3878
  }), a.end();
3891
3879
  }
3892
3880
  }
3893
- async function as(t) {
3881
+ async function rs(t) {
3894
3882
  try {
3895
3883
  return await import(
3896
3884
  /* @vite-ignore */
3897
3885
  `/wasm/controller.js?version=${t}`
3898
3886
  );
3899
3887
  } catch {
3900
- return new ss();
3888
+ return new ts();
3889
+ }
3890
+ }
3891
+ const ns = !1;
3892
+ function ss(t) {
3893
+ return t.includes("dev") && ns ? "dev" : `v${pt}`;
3894
+ }
3895
+ class as {
3896
+ constructor(e) {
3897
+ this.onMessage = e, this.started = !1, this.push = (r) => {
3898
+ this.started ? this.onMessage(r) : this.buffer.push(r);
3899
+ }, this.start = () => {
3900
+ this.started = !0, this.buffer.forEach((r) => this.onMessage(r)), this.buffer = [];
3901
+ }, this.buffer = [];
3901
3902
  }
3902
3903
  }
3903
3904
  const Nt = R.startSpan("worker:init");
3904
3905
  async function is() {
3905
3906
  try {
3906
- const t = ds(), e = es(t), r = await R.wrapAsync(as)(t);
3907
+ const t = ds(), e = ss(t), r = await R.wrapAsync(rs)(t);
3907
3908
  self.controller = r, H.send.initializingMessage({
3908
3909
  message: "Loading marimo..."
3909
3910
  }), self.pyodide = await R.wrapAsync(r.bootstrap.bind(r))({
@@ -3912,15 +3913,15 @@ ${e}`;
3912
3913
  });
3913
3914
  } catch (t) {
3914
3915
  Y.error("Error bootstrapping", t), H.send.initializedError({
3915
- error: qt(t)
3916
+ error: Ut(t)
3916
3917
  });
3917
3918
  }
3918
3919
  }
3919
- const mr = new br(
3920
+ const mr = new as(
3920
3921
  (t) => {
3921
3922
  H.send.kernelMessage({ message: t });
3922
3923
  }
3923
- ), Rt = new wr();
3924
+ ), Rt = new Ar();
3924
3925
  let At = !1;
3925
3926
  const os = {
3926
3927
  /**
@@ -3939,7 +3940,7 @@ ${e}`;
3939
3940
  });
3940
3941
  const e = R.wrapAsync(
3941
3942
  self.controller.startSession.bind(self.controller)
3942
- ), r = rs(() => {
3943
+ ), r = Nr(() => {
3943
3944
  H.send.initializingMessage({
3944
3945
  message: "Initializing notebook..."
3945
3946
  }), H.send.initialized({});
@@ -3959,7 +3960,7 @@ ${e}`;
3959
3960
  Rt.resolve(n), Nt.end("ok");
3960
3961
  } catch (e) {
3961
3962
  H.send.initializedError({
3962
- error: qt(e)
3963
+ error: Ut(e)
3963
3964
  }), Nt.end("error");
3964
3965
  }
3965
3966
  },
@@ -4082,8 +4083,8 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
4082
4083
  );
4083
4084
  return cs.has(r) && ae.persistFilesToRemote(self.pyodide), e.end(), typeof i == "string" ? JSON.parse(i) : i;
4084
4085
  }
4085
- }, H = Fn({
4086
- transport: Vn({
4086
+ }, H = xr({
4087
+ transport: Or({
4087
4088
  transportId: zn
4088
4089
  }),
4089
4090
  requestHandler: os