@marimo-team/islands 0.13.4-dev12 → 0.13.4-dev14

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 (72) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DIoS9bwn.js → ConnectedDataExplorerComponent-qZ-yv801.js} +4 -4
  2. package/dist/{VegaLite-D-2b149F.js → VegaLite-ema0V8Mc.js} +3 -3
  3. package/dist/{_baseUniq-DylI4SSz.js → _baseUniq-C8f9371B.js} +1 -1
  4. package/dist/{any-language-editor-Ce74HvVA.js → any-language-editor-QkvIKJ1-.js} +13 -13
  5. package/dist/{architectureDiagram-IEHRJDOE-oA-Hzx_j.js → architectureDiagram-IEHRJDOE-CU4OZ086.js} +5 -5
  6. package/dist/assets/{save-worker-CYdkP5Ic.js → save-worker-9JEjyZ7F.js} +83 -76
  7. package/dist/assets/{worker-Bigsodg4.js → worker-C9lFbiFX.js} +157 -150
  8. package/dist/assets/{worker-DEw2ZetQ.js → worker-CCjA_vqR.js} +101 -94
  9. package/dist/{blockDiagram-JOT3LUYC-B3cvvaf_.js → blockDiagram-JOT3LUYC-DXGHPuz8.js} +4 -4
  10. package/dist/{c4Diagram-VJAJSXHY-CQa-y_o0.js → c4Diagram-VJAJSXHY-Cy2xmiqU.js} +2 -2
  11. package/dist/{channel-CYPNcaql.js → channel-Zb1YnAnV.js} +1 -1
  12. package/dist/{chunk-4BMEZGHF-BPT-4fDF.js → chunk-4BMEZGHF-ZqU833lX.js} +1 -1
  13. package/dist/{chunk-A2AXSNBT-dRsFdgw0.js → chunk-A2AXSNBT-B1MUOiAM.js} +2 -2
  14. package/dist/{chunk-AEK57VVT-Chudoaje.js → chunk-AEK57VVT-Cl6X2yOQ.js} +2 -2
  15. package/dist/{chunk-D6G4REZN-CESMB2II.js → chunk-D6G4REZN-BABcnU6F.js} +1 -1
  16. package/dist/{chunk-RZ5BOZE2-D7vzO7vA.js → chunk-RZ5BOZE2-BYx5sSRG.js} +1 -1
  17. package/dist/{chunk-XZIHB7SX-CaSH4_1v.js → chunk-XZIHB7SX-B1zhpukL.js} +1 -1
  18. package/dist/{classDiagram-GIVACNV2-VsqP06PO.js → classDiagram-GIVACNV2-CFopnBbp.js} +2 -2
  19. package/dist/{classDiagram-v2-COTLJTTW-VsqP06PO.js → classDiagram-v2-COTLJTTW-CFopnBbp.js} +2 -2
  20. package/dist/{clone-CRIfolAh.js → clone-esTXDqSa.js} +1 -1
  21. package/dist/{dagre-OKDRZEBW-Cuo0D85F.js → dagre-OKDRZEBW-Xj6DHe4Q.js} +6 -6
  22. package/dist/{data-editor-DXC6hk8y.js → data-editor-DcamEJAu.js} +2026 -2022
  23. package/dist/{diagram-SSKATNLV-Dg4khPjv.js → diagram-SSKATNLV-TIfiNgIH.js} +3 -3
  24. package/dist/{diagram-VNBRO52H-Dkebkde8.js → diagram-VNBRO52H-B2BIz5DF.js} +3 -3
  25. package/dist/{erDiagram-Q7BY3M3F-C8aWsGcH.js → erDiagram-Q7BY3M3F-D5pazpXi.js} +3 -3
  26. package/dist/{flowDiagram-4HSFHLVR-Di-P_sh3.js → flowDiagram-4HSFHLVR-Dk3cHb3L.js} +3 -3
  27. package/dist/{ganttDiagram-APWFNJXF-CkgdMKju.js → ganttDiagram-APWFNJXF-Dvhq8cNq.js} +4 -4
  28. package/dist/{gitGraphDiagram-7IBYFJ6S-BZb4gdPg.js → gitGraphDiagram-7IBYFJ6S-DiaA8Qf3.js} +4 -4
  29. package/dist/{graph-CPtRx-t2.js → graph-UD9kuaHT.js} +3 -3
  30. package/dist/{index-DDoHWrBb.js → index-3bPaMUll.js} +1 -1
  31. package/dist/{index-CKy91zpr.js → index-B-vLU0M0.js} +1 -1
  32. package/dist/{index-BsxSIZ-D.js → index-BSi1Dyyh.js} +1 -1
  33. package/dist/{index-Dv1X7sdf.js → index-BgkK5VfA.js} +1 -1
  34. package/dist/{index-BayZh964.js → index-CIpvwDeK.js} +1 -1
  35. package/dist/{index-DIQ_5e_0.js → index-CPMf9HbQ.js} +3 -3
  36. package/dist/{index-BSn-D95N.js → index-CkFxl0Pn.js} +1 -1
  37. package/dist/{index-DajvtIDK.js → index-CrnJs5xy.js} +1 -1
  38. package/dist/{index-Cq7vSpLF.js → index-DMyQUlU_.js} +1 -1
  39. package/dist/{index-CiUKfqMd.js → index-DU51_trV.js} +1 -1
  40. package/dist/{index-BmS4u3sP.js → index-IWs7L3gR.js} +1 -1
  41. package/dist/{index-DBDY2tfJ.js → index-VIQqQM5b.js} +1 -1
  42. package/dist/{index-DZb2oEje.js → index-cPzTP2bh.js} +1 -1
  43. package/dist/{index-Dm-SDqWl.js → index-eDbnfSRZ.js} +1 -1
  44. package/dist/{index-942PtDHP.js → index-pZalx2o7.js} +1 -1
  45. package/dist/{index-CIMNslbM.js → index-rIp-FyjU.js} +1 -1
  46. package/dist/{infoDiagram-PH2N3AL5-CMx1tEWn.js → infoDiagram-PH2N3AL5-L6CHM8NX.js} +2 -2
  47. package/dist/{journeyDiagram-U35MCT3I-B_UADJ_x.js → journeyDiagram-U35MCT3I-CQ2H7rVW.js} +2 -2
  48. package/dist/{kanban-definition-NDS4AKOZ-BHQJHD2G.js → kanban-definition-NDS4AKOZ-DJX8KIdB.js} +1 -1
  49. package/dist/{katex-BBtz5V9r.js → katex-9tX9hjoM.js} +9 -4
  50. package/dist/{layout-Bp89WP7H.js → layout-DYKcZqbt.js} +4 -4
  51. package/dist/{linear-DG6MAjqr.js → linear-DBglLSWW.js} +1 -1
  52. package/dist/{main-91kHSYZH.js → main-Diei4zhu.js} +12790 -12769
  53. package/dist/main.js +1 -1
  54. package/dist/{mermaid-O0okZGTu.js → mermaid-Dcn1ap9I.js} +29 -29
  55. package/dist/{mhchem-BrktSns0.js → mhchem-L5-rce7L.js} +1 -1
  56. package/dist/{min-Cx24vD9J.js → min-B1_ZVpOR.js} +2 -2
  57. package/dist/{mindmap-definition-ALO5MXBD-COD6pb4i.js → mindmap-definition-ALO5MXBD-B02aIzxX.js} +2 -2
  58. package/dist/{pieDiagram-IB7DONF6-Bniii6BB.js → pieDiagram-IB7DONF6-CBr3c9GH.js} +3 -3
  59. package/dist/{quadrantDiagram-7GDLP6J5-C7lY8YnQ.js → quadrantDiagram-7GDLP6J5-CzBGqiDf.js} +2 -2
  60. package/dist/{radar-MK3ICKWK-CMMmRu82.js → radar-MK3ICKWK-D0svdew0.js} +5 -5
  61. package/dist/{react-plotly-qhEGygfO.js → react-plotly-BhvYN2Gh.js} +1 -1
  62. package/dist/{requirementDiagram-KVF5MWMF-B1jZngFj.js → requirementDiagram-KVF5MWMF-DxH_rw_u.js} +2 -2
  63. package/dist/{sankeyDiagram-QLVOVGJD-DnJ3r7TB.js → sankeyDiagram-QLVOVGJD-C9edLWmH.js} +1 -1
  64. package/dist/{sequenceDiagram-X6HHIX6F-CQQDO6NB.js → sequenceDiagram-X6HHIX6F-C3IR_rC7.js} +3 -3
  65. package/dist/{slides-component-DALQx7xg.js → slides-component-YdPrrTYf.js} +1 -1
  66. package/dist/{stateDiagram-DGXRK772-Uu03Dm6P.js → stateDiagram-DGXRK772-C5TSmFLQ.js} +4 -4
  67. package/dist/{stateDiagram-v2-YXO3MK2T-DzVwkYML.js → stateDiagram-v2-YXO3MK2T-7blNEpO6.js} +2 -2
  68. package/dist/{time-BSv-tHZR.js → time-CKJmSVS-.js} +2 -2
  69. package/dist/{timeline-definition-BDJGKUSR-BaakiotV.js → timeline-definition-BDJGKUSR-ChzXpY1T.js} +1 -1
  70. package/dist/{vega-component-CAcEbOZ6.js → vega-component-BH9TXCmN.js} +2 -2
  71. package/dist/{xychartDiagram-VJFVF3MP-ChODyOew.js → xychartDiagram-VJFVF3MP-CIG9n9O7.js} +2 -2
  72. package/package.json +23 -23
@@ -165,7 +165,7 @@ var os = yr((ls, pt) => {
165
165
  "never",
166
166
  "map",
167
167
  "set"
168
- ]), W = (t) => {
168
+ ]), H = (t) => {
169
169
  switch (typeof t) {
170
170
  case "undefined":
171
171
  return p.undefined;
@@ -410,7 +410,7 @@ var os = yr((ls, pt) => {
410
410
  const y = Object.freeze({
411
411
  status: "aborted"
412
412
  }), ye = (t) => ({ status: "dirty", value: t }), C = (t) => ({ status: "valid", value: t }), at = (t) => t.status === "aborted", it = (t) => t.status === "dirty", ce = (t) => t.status === "valid", Ee = (t) => typeof Promise < "u" && t instanceof Promise;
413
- function We(t, e, r, n) {
413
+ function He(t, e, r, n) {
414
414
  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");
415
415
  return e.get(t);
416
416
  }
@@ -463,13 +463,13 @@ var os = yr((ls, pt) => {
463
463
  return this._def.description;
464
464
  }
465
465
  _getType(e) {
466
- return W(e.data);
466
+ return H(e.data);
467
467
  }
468
468
  _getOrReturnCtx(e, r) {
469
469
  return r || {
470
470
  common: e.parent.common,
471
471
  data: e.data,
472
- parsedType: W(e.data),
472
+ parsedType: H(e.data),
473
473
  schemaErrorMap: this._def.errorMap,
474
474
  path: e.path,
475
475
  parent: e.parent
@@ -481,7 +481,7 @@ var os = yr((ls, pt) => {
481
481
  ctx: {
482
482
  common: e.parent.common,
483
483
  data: e.data,
484
- parsedType: W(e.data),
484
+ parsedType: H(e.data),
485
485
  schemaErrorMap: this._def.errorMap,
486
486
  path: e.path,
487
487
  parent: e.parent
@@ -516,7 +516,7 @@ var os = yr((ls, pt) => {
516
516
  schemaErrorMap: this._def.errorMap,
517
517
  parent: null,
518
518
  data: e,
519
- parsedType: W(e)
519
+ parsedType: H(e)
520
520
  }, a = this._parseSync({ data: e, path: s.path, parent: s });
521
521
  return bt(s, a);
522
522
  }
@@ -531,7 +531,7 @@ var os = yr((ls, pt) => {
531
531
  schemaErrorMap: this._def.errorMap,
532
532
  parent: null,
533
533
  data: e,
534
- parsedType: W(e)
534
+ parsedType: H(e)
535
535
  };
536
536
  if (!this["~standard"].async)
537
537
  try {
@@ -570,7 +570,7 @@ var os = yr((ls, pt) => {
570
570
  schemaErrorMap: this._def.errorMap,
571
571
  parent: null,
572
572
  data: e,
573
- parsedType: W(e)
573
+ parsedType: H(e)
574
574
  }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (Ee(s) ? s : Promise.resolve(s));
575
575
  return bt(n, a);
576
576
  }
@@ -588,7 +588,7 @@ var os = yr((ls, pt) => {
588
588
  return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof r == "function" ? r(n, s) : r), !1));
589
589
  }
590
590
  _refinement(e) {
591
- return new M({
591
+ return new $({
592
592
  schema: this,
593
593
  typeName: m.ZodEffects,
594
594
  effect: { type: "refinement", refinement: e }
@@ -614,7 +614,7 @@ var os = yr((ls, pt) => {
614
614
  return this.nullable().optional();
615
615
  }
616
616
  array() {
617
- return F.create(this);
617
+ return M.create(this);
618
618
  }
619
619
  promise() {
620
620
  return we.create(this, this._def);
@@ -626,7 +626,7 @@ var os = yr((ls, pt) => {
626
626
  return Ce.create(this, e, this._def);
627
627
  }
628
628
  transform(e) {
629
- return new M({
629
+ return new $({
630
630
  ...v(this._def),
631
631
  schema: this,
632
632
  typeName: m.ZodEffects,
@@ -635,7 +635,7 @@ var os = yr((ls, pt) => {
635
635
  }
636
636
  default(e) {
637
637
  const r = typeof e == "function" ? e : () => e;
638
- return new Fe({
638
+ return new Me({
639
639
  ...v(this._def),
640
640
  innerType: this,
641
641
  defaultValue: r,
@@ -651,7 +651,7 @@ var os = yr((ls, pt) => {
651
651
  }
652
652
  catch(e) {
653
653
  const r = typeof e == "function" ? e : () => e;
654
- return new Me({
654
+ return new $e({
655
655
  ...v(this._def),
656
656
  innerType: this,
657
657
  catchValue: r,
@@ -669,7 +669,7 @@ var os = yr((ls, pt) => {
669
669
  return Le.create(this, e);
670
670
  }
671
671
  readonly() {
672
- return $e.create(this);
672
+ return Fe.create(this);
673
673
  }
674
674
  isOptional() {
675
675
  return this.safeParse(void 0).success;
@@ -680,7 +680,7 @@ var os = yr((ls, pt) => {
680
680
  }
681
681
  const xr = /^c[^\s-]{8,}$/i, Sr = /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,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])$/, Fr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Mr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, It = "((\\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])))", $r = new RegExp(`^${It}$`);
683
+ const Ir = /^(?:(?: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])$/, Pr = /^(?:(?: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])$/, Zr = /^(([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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-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, It = "((\\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])))", Fr = new RegExp(`^${It}$`);
684
684
  function Pt(t) {
685
685
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
686
686
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
@@ -829,7 +829,7 @@ var os = yr((ls, pt) => {
829
829
  code: l.invalid_string,
830
830
  validation: "datetime",
831
831
  message: a.message
832
- }), n.dirty()) : a.kind === "date" ? $r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
832
+ }), n.dirty()) : a.kind === "date" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
833
833
  code: l.invalid_string,
834
834
  validation: "date",
835
835
  message: a.message
@@ -853,11 +853,11 @@ var os = yr((ls, pt) => {
853
853
  validation: "cidr",
854
854
  code: l.invalid_string,
855
855
  message: a.message
856
- }), n.dirty()) : a.kind === "base64" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
856
+ }), n.dirty()) : a.kind === "base64" ? Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
857
857
  validation: "base64",
858
858
  code: l.invalid_string,
859
859
  message: a.message
860
- }), n.dirty()) : a.kind === "base64url" ? Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
860
+ }), n.dirty()) : a.kind === "base64url" ? $r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
861
861
  validation: "base64url",
862
862
  code: l.invalid_string,
863
863
  message: a.message
@@ -1504,7 +1504,7 @@ var os = yr((ls, pt) => {
1504
1504
  typeName: m.ZodDate,
1505
1505
  ...v(t)
1506
1506
  });
1507
- class He extends _ {
1507
+ class We extends _ {
1508
1508
  _parse(e) {
1509
1509
  if (this._getType(e) !== p.symbol) {
1510
1510
  const n = this._getOrReturnCtx(e);
@@ -1517,7 +1517,7 @@ var os = yr((ls, pt) => {
1517
1517
  return C(e.data);
1518
1518
  }
1519
1519
  }
1520
- He.create = (t) => new He({
1520
+ We.create = (t) => new We({
1521
1521
  typeName: m.ZodSymbol,
1522
1522
  ...v(t)
1523
1523
  });
@@ -1610,7 +1610,7 @@ var os = yr((ls, pt) => {
1610
1610
  typeName: m.ZodVoid,
1611
1611
  ...v(t)
1612
1612
  });
1613
- class F extends _ {
1613
+ class M extends _ {
1614
1614
  _parse(e) {
1615
1615
  const { ctx: r, status: n } = this._processInputParams(e), s = this._def;
1616
1616
  if (r.parsedType !== p.array)
@@ -1654,19 +1654,19 @@ var os = yr((ls, pt) => {
1654
1654
  return this._def.type;
1655
1655
  }
1656
1656
  min(e, r) {
1657
- return new F({
1657
+ return new M({
1658
1658
  ...this._def,
1659
1659
  minLength: { value: e, message: h.toString(r) }
1660
1660
  });
1661
1661
  }
1662
1662
  max(e, r) {
1663
- return new F({
1663
+ return new M({
1664
1664
  ...this._def,
1665
1665
  maxLength: { value: e, message: h.toString(r) }
1666
1666
  });
1667
1667
  }
1668
1668
  length(e, r) {
1669
- return new F({
1669
+ return new M({
1670
1670
  ...this._def,
1671
1671
  exactLength: { value: e, message: h.toString(r) }
1672
1672
  });
@@ -1675,7 +1675,7 @@ var os = yr((ls, pt) => {
1675
1675
  return this.min(1, e);
1676
1676
  }
1677
1677
  }
1678
- F.create = (t, e) => new F({
1678
+ M.create = (t, e) => new M({
1679
1679
  type: t,
1680
1680
  minLength: null,
1681
1681
  maxLength: null,
@@ -1694,7 +1694,7 @@ var os = yr((ls, pt) => {
1694
1694
  ...t._def,
1695
1695
  shape: () => e
1696
1696
  });
1697
- } else return t instanceof F ? new F({
1697
+ } else return t instanceof M ? new M({
1698
1698
  ...t._def,
1699
1699
  type: fe(t.element)
1700
1700
  }) : t instanceof D ? D.create(fe(t.unwrap())) : t instanceof Q ? Q.create(fe(t.unwrap())) : t instanceof z ? z.create(t.items.map((e) => fe(e))) : t;
@@ -2059,7 +2059,7 @@ var os = yr((ls, pt) => {
2059
2059
  typeName: m.ZodUnion,
2060
2060
  ...v(e)
2061
2061
  });
2062
- const B = (t) => t instanceof Pe ? B(t.schema) : t instanceof M ? B(t.innerType()) : t instanceof Ze ? [t.value] : t instanceof X ? t.options : t instanceof je ? k.objectValues(t.enum) : t instanceof Fe ? B(t._def.innerType) : t instanceof Ne ? [void 0] : t instanceof Re ? [null] : t instanceof D ? [void 0, ...B(t.unwrap())] : t instanceof Q ? [null, ...B(t.unwrap())] : t instanceof ht || t instanceof $e ? B(t.unwrap()) : t instanceof Me ? B(t._def.innerType) : [];
2062
+ const B = (t) => t instanceof Pe ? B(t.schema) : t instanceof $ ? B(t.innerType()) : t instanceof Ze ? [t.value] : t instanceof X ? t.options : t instanceof je ? k.objectValues(t.enum) : t instanceof Me ? B(t._def.innerType) : t instanceof Ne ? [void 0] : t instanceof Re ? [null] : t instanceof D ? [void 0, ...B(t.unwrap())] : t instanceof Q ? [null, ...B(t.unwrap())] : t instanceof ht || t instanceof Fe ? B(t.unwrap()) : t instanceof $e ? B(t._def.innerType) : [];
2063
2063
  class Xe extends _ {
2064
2064
  _parse(e) {
2065
2065
  const { ctx: r } = this._processInputParams(e);
@@ -2123,7 +2123,7 @@ var os = yr((ls, pt) => {
2123
2123
  }
2124
2124
  }
2125
2125
  function ot(t, e) {
2126
- const r = W(t), n = W(e);
2126
+ const r = H(t), n = H(e);
2127
2127
  if (t === e)
2128
2128
  return { valid: !0, data: t };
2129
2129
  if (r === p.object && n === p.object) {
@@ -2545,7 +2545,7 @@ var os = yr((ls, pt) => {
2545
2545
  code: l.invalid_type
2546
2546
  }), y;
2547
2547
  }
2548
- if (We(this, Se) || Ct(this, Se, new Set(this._def.values)), !We(this, Se).has(e.data)) {
2548
+ if (He(this, Se) || Ct(this, Se, new Set(this._def.values)), !He(this, Se).has(e.data)) {
2549
2549
  const r = this._getOrReturnCtx(e), n = this._def.values;
2550
2550
  return f(r, {
2551
2551
  received: r.data,
@@ -2605,7 +2605,7 @@ var os = yr((ls, pt) => {
2605
2605
  code: l.invalid_type
2606
2606
  }), y;
2607
2607
  }
2608
- if (We(this, Te) || Ct(this, Te, new Set(k.getValidEnumValues(this._def.values))), !We(this, Te).has(e.data)) {
2608
+ if (He(this, Te) || Ct(this, Te, new Set(k.getValidEnumValues(this._def.values))), !He(this, Te).has(e.data)) {
2609
2609
  const s = k.objectValues(r);
2610
2610
  return f(n, {
2611
2611
  received: n.data,
@@ -2649,7 +2649,7 @@ var os = yr((ls, pt) => {
2649
2649
  typeName: m.ZodPromise,
2650
2650
  ...v(e)
2651
2651
  });
2652
- class M extends _ {
2652
+ class $ extends _ {
2653
2653
  innerType() {
2654
2654
  return this._def.schema;
2655
2655
  }
@@ -2726,13 +2726,13 @@ var os = yr((ls, pt) => {
2726
2726
  k.assertNever(s);
2727
2727
  }
2728
2728
  }
2729
- M.create = (t, e, r) => new M({
2729
+ $.create = (t, e, r) => new $({
2730
2730
  schema: t,
2731
2731
  typeName: m.ZodEffects,
2732
2732
  effect: e,
2733
2733
  ...v(r)
2734
2734
  });
2735
- M.createWithPreprocess = (t, e, r) => new M({
2735
+ $.createWithPreprocess = (t, e, r) => new $({
2736
2736
  schema: e,
2737
2737
  effect: { type: "preprocess", transform: t },
2738
2738
  typeName: m.ZodEffects,
@@ -2764,7 +2764,7 @@ var os = yr((ls, pt) => {
2764
2764
  typeName: m.ZodNullable,
2765
2765
  ...v(e)
2766
2766
  });
2767
- class Fe extends _ {
2767
+ class Me extends _ {
2768
2768
  _parse(e) {
2769
2769
  const { ctx: r } = this._processInputParams(e);
2770
2770
  let n = r.data;
@@ -2778,13 +2778,13 @@ var os = yr((ls, pt) => {
2778
2778
  return this._def.innerType;
2779
2779
  }
2780
2780
  }
2781
- Fe.create = (t, e) => new Fe({
2781
+ Me.create = (t, e) => new Me({
2782
2782
  innerType: t,
2783
2783
  typeName: m.ZodDefault,
2784
2784
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2785
2785
  ...v(e)
2786
2786
  });
2787
- class Me extends _ {
2787
+ class $e extends _ {
2788
2788
  _parse(e) {
2789
2789
  const { ctx: r } = this._processInputParams(e), n = {
2790
2790
  ...r,
@@ -2821,7 +2821,7 @@ var os = yr((ls, pt) => {
2821
2821
  return this._def.innerType;
2822
2822
  }
2823
2823
  }
2824
- Me.create = (t, e) => new Me({
2824
+ $e.create = (t, e) => new $e({
2825
2825
  innerType: t,
2826
2826
  typeName: m.ZodCatch,
2827
2827
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
@@ -2898,7 +2898,7 @@ var os = yr((ls, pt) => {
2898
2898
  });
2899
2899
  }
2900
2900
  }
2901
- class $e extends _ {
2901
+ class Fe extends _ {
2902
2902
  _parse(e) {
2903
2903
  const r = this._def.innerType._parse(e), n = (s) => (ce(s) && (s.value = Object.freeze(s.value)), s);
2904
2904
  return Ee(r) ? r.then((s) => n(s)) : n(r);
@@ -2907,7 +2907,7 @@ var os = yr((ls, pt) => {
2907
2907
  return this._def.innerType;
2908
2908
  }
2909
2909
  }
2910
- $e.create = (t, e) => new $e({
2910
+ Fe.create = (t, e) => new Fe({
2911
2911
  innerType: t,
2912
2912
  typeName: m.ZodReadonly,
2913
2913
  ...v(e)
@@ -2916,7 +2916,7 @@ var os = yr((ls, pt) => {
2916
2916
  const r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
2917
2917
  return typeof r == "string" ? { message: r } : r;
2918
2918
  }
2919
- function Ft(t, e = {}, r) {
2919
+ function Mt(t, e = {}, r) {
2920
2920
  return t ? _e.create().superRefine((n, s) => {
2921
2921
  var a, i;
2922
2922
  const o = t(n);
@@ -2941,9 +2941,9 @@ var os = yr((ls, pt) => {
2941
2941
  (function(t) {
2942
2942
  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";
2943
2943
  })(m || (m = {}));
2944
- const Wr = (t, e = {
2944
+ const Hr = (t, e = {
2945
2945
  message: `Input not instance of ${t.name}`
2946
- }) => Ft((r) => r instanceof t, e), Mt = j.create, $t = K.create, Hr = Ke.create, Jr = G.create, Lt = Oe.create, Yr = de.create, Kr = He.create, Gr = Ne.create, Xr = Re.create, Qr = _e.create, en = oe.create, tn = J.create, rn = Je.create, nn = F.create, sn = E.create, an = E.strictCreate, on = Ae.create, cn = Xe.create, dn = Ce.create, ln = z.create, un = Ie.create, fn = Ye.create, pn = le.create, hn = ge.create, mn = Pe.create, yn = Ze.create, gn = X.create, vn = je.create, _n = we.create, St = M.create, wn = D.create, kn = Q.create, bn = M.createWithPreprocess, xn = Le.create, Sn = () => Mt().optional(), Tn = () => $t().optional(), En = () => Lt().optional(), On = {
2946
+ }) => Mt((r) => r instanceof t, e), $t = j.create, Ft = K.create, Wr = Ke.create, Jr = G.create, Lt = Oe.create, Yr = de.create, Kr = We.create, Gr = Ne.create, Xr = Re.create, Qr = _e.create, en = oe.create, tn = J.create, rn = Je.create, nn = M.create, sn = E.create, an = E.strictCreate, on = Ae.create, cn = Xe.create, dn = Ce.create, ln = z.create, un = Ie.create, fn = Ye.create, pn = le.create, hn = ge.create, mn = Pe.create, yn = Ze.create, gn = X.create, vn = je.create, _n = we.create, St = $.create, wn = D.create, kn = Q.create, bn = $.createWithPreprocess, xn = Le.create, Sn = () => $t().optional(), Tn = () => Ft().optional(), En = () => Lt().optional(), On = {
2947
2947
  string: (t) => j.create({ ...t, coerce: !0 }),
2948
2948
  number: (t) => K.create({ ...t, coerce: !0 }),
2949
2949
  boolean: (t) => Oe.create({
@@ -2976,7 +2976,7 @@ var os = yr((ls, pt) => {
2976
2976
  return st;
2977
2977
  },
2978
2978
  ZodParsedType: p,
2979
- getParsedType: W,
2979
+ getParsedType: H,
2980
2980
  ZodType: _,
2981
2981
  datetimeRegex: Zt,
2982
2982
  ZodString: j,
@@ -2984,14 +2984,14 @@ var os = yr((ls, pt) => {
2984
2984
  ZodBigInt: G,
2985
2985
  ZodBoolean: Oe,
2986
2986
  ZodDate: de,
2987
- ZodSymbol: He,
2987
+ ZodSymbol: We,
2988
2988
  ZodUndefined: Ne,
2989
2989
  ZodNull: Re,
2990
2990
  ZodAny: _e,
2991
2991
  ZodUnknown: oe,
2992
2992
  ZodNever: J,
2993
2993
  ZodVoid: Je,
2994
- ZodArray: F,
2994
+ ZodArray: M,
2995
2995
  ZodObject: E,
2996
2996
  ZodUnion: Ae,
2997
2997
  ZodDiscriminatedUnion: Xe,
@@ -3006,18 +3006,18 @@ var os = yr((ls, pt) => {
3006
3006
  ZodEnum: X,
3007
3007
  ZodNativeEnum: je,
3008
3008
  ZodPromise: we,
3009
- ZodEffects: M,
3010
- ZodTransformer: M,
3009
+ ZodEffects: $,
3010
+ ZodTransformer: $,
3011
3011
  ZodOptional: D,
3012
3012
  ZodNullable: Q,
3013
- ZodDefault: Fe,
3014
- ZodCatch: Me,
3013
+ ZodDefault: Me,
3014
+ ZodCatch: $e,
3015
3015
  ZodNaN: Ke,
3016
3016
  BRAND: Ur,
3017
3017
  ZodBranded: ht,
3018
3018
  ZodPipeline: Le,
3019
- ZodReadonly: $e,
3020
- custom: Ft,
3019
+ ZodReadonly: Fe,
3020
+ custom: Mt,
3021
3021
  Schema: _,
3022
3022
  ZodSchema: _,
3023
3023
  late: Br,
@@ -3034,17 +3034,17 @@ var os = yr((ls, pt) => {
3034
3034
  effect: St,
3035
3035
  enum: gn,
3036
3036
  function: hn,
3037
- instanceof: Wr,
3037
+ instanceof: Hr,
3038
3038
  intersection: dn,
3039
3039
  lazy: mn,
3040
3040
  literal: yn,
3041
3041
  map: fn,
3042
- nan: Hr,
3042
+ nan: Wr,
3043
3043
  nativeEnum: vn,
3044
3044
  never: tn,
3045
3045
  null: Xr,
3046
3046
  nullable: kn,
3047
- number: $t,
3047
+ number: Ft,
3048
3048
  object: sn,
3049
3049
  oboolean: En,
3050
3050
  onumber: Tn,
@@ -3056,7 +3056,7 @@ var os = yr((ls, pt) => {
3056
3056
  record: un,
3057
3057
  set: pn,
3058
3058
  strictObject: an,
3059
- string: Mt,
3059
+ string: $t,
3060
3060
  symbol: Kr,
3061
3061
  transformer: St,
3062
3062
  tuple: ln,
@@ -3148,14 +3148,14 @@ var os = yr((ls, pt) => {
3148
3148
  var ue;
3149
3149
  if (!n.send)
3150
3150
  throw Ve(["send"], "make requests");
3151
- const $ = d(), re = {
3151
+ const F = d(), re = {
3152
3152
  type: "request",
3153
- id: $,
3153
+ id: F,
3154
3154
  method: g,
3155
3155
  params: O
3156
3156
  };
3157
- u.set($, { resolve: T, reject: N }), o !== 1 / 0 && w.set($, setTimeout(() => {
3158
- w.delete($), N(new Error("RPC request timed out."));
3157
+ u.set(F, { resolve: T, reject: N }), o !== 1 / 0 && w.set(F, setTimeout(() => {
3158
+ w.delete(F), N(new Error("RPC request timed out."));
3159
3159
  }, o)), (ue = e.onSend) == null || ue.call(e, re), n.send(re);
3160
3160
  });
3161
3161
  }
@@ -3202,14 +3202,14 @@ var os = yr((ls, pt) => {
3202
3202
  if (g.type === "request") {
3203
3203
  if (!n.send || !a)
3204
3204
  throw Ve(["send", "requestHandler"], "handle requests");
3205
- const { id: T, method: N, params: $ } = g;
3205
+ const { id: T, method: N, params: F } = g;
3206
3206
  let re;
3207
3207
  try {
3208
3208
  re = {
3209
3209
  type: "response",
3210
3210
  id: T,
3211
3211
  success: !0,
3212
- payload: await a(N, $)
3212
+ payload: await a(N, F)
3213
3213
  };
3214
3214
  } catch (ue) {
3215
3215
  if (!(ue instanceof Error))
@@ -3227,8 +3227,8 @@ var os = yr((ls, pt) => {
3227
3227
  if (g.type === "response") {
3228
3228
  const T = w.get(g.id);
3229
3229
  T != null && clearTimeout(T);
3230
- const { resolve: N, reject: $ } = u.get(g.id) ?? {};
3231
- g.success ? N == null || N(g.payload) : $ == null || $(new Error(g.error));
3230
+ const { resolve: N, reject: F } = u.get(g.id) ?? {};
3231
+ g.success ? N == null || N(g.payload) : F == null || F(new Error(g.error));
3232
3232
  return;
3233
3233
  }
3234
3234
  if (g.type === "message") {
@@ -3264,7 +3264,7 @@ var os = yr((ls, pt) => {
3264
3264
  const { transportId: r } = e;
3265
3265
  return r != null ? { [Vt]: r, data: t } : t;
3266
3266
  }
3267
- function Fn(t, e) {
3267
+ function Mn(t, e) {
3268
3268
  const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
3269
3269
  if (r != null && s != null)
3270
3270
  throw new Error("Cannot use both `transportId` and `filter` at the same time");
@@ -3276,7 +3276,7 @@ var os = yr((ls, pt) => {
3276
3276
  }
3277
3277
  return s === !1 ? [!0] : [!1, a];
3278
3278
  }
3279
- function Mn(t, e = {}) {
3279
+ function $n(t, e = {}) {
3280
3280
  const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
3281
3281
  let o;
3282
3282
  return {
@@ -3285,7 +3285,7 @@ var os = yr((ls, pt) => {
3285
3285
  },
3286
3286
  registerHandler(c) {
3287
3287
  o = (d) => {
3288
- const u = d.data, [w, x] = Fn(u, {
3288
+ const u = d.data, [w, x] = Mn(u, {
3289
3289
  transportId: r,
3290
3290
  filter: () => n == null ? void 0 : n(d)
3291
3291
  });
@@ -3297,8 +3297,8 @@ var os = yr((ls, pt) => {
3297
3297
  }
3298
3298
  };
3299
3299
  }
3300
- function $n(t) {
3301
- return Mn(self, t);
3300
+ function Fn(t) {
3301
+ return $n(self, t);
3302
3302
  }
3303
3303
  const Ln = "marimo-transport";
3304
3304
  function zt(t, e) {
@@ -3402,7 +3402,7 @@ var os = yr((ls, pt) => {
3402
3402
  }, "ErrorStackParser$$parseFFOrSafari") };
3403
3403
  }
3404
3404
  b(Bt, "ErrorStackParser");
3405
- var qn = new Bt(), Un = qn, q = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Wt = q && typeof pt < "u" && typeof pt.exports < "u" && typeof qt < "u" && typeof __dirname < "u", Bn = q && !Wt, Wn = typeof Deno < "u", Ht = !q && !Wn, Hn = Ht && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Jn = Ht && typeof importScripts == "function" && typeof self == "object";
3405
+ var qn = new Bt(), Un = qn, q = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Ht = q && typeof pt < "u" && typeof pt.exports < "u" && typeof qt < "u" && typeof __dirname < "u", Bn = q && !Ht, Hn = typeof Deno < "u", Wt = !q && !Hn, Wn = Wt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Jn = Wt && typeof importScripts == "function" && typeof self == "object";
3406
3406
  typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
3407
3407
  var Jt, dt, Yt, Et, mt;
3408
3408
  async function yt() {
@@ -3445,7 +3445,7 @@ var os = yr((ls, pt) => {
3445
3445
  }
3446
3446
  b(er, "loadBinaryFile");
3447
3447
  var qe;
3448
- if (Hn) qe = b(async (t) => await import(t), "loadScript");
3448
+ if (Wn) qe = b(async (t) => await import(t), "loadScript");
3449
3449
  else if (Jn) qe = b(async (t) => {
3450
3450
  try {
3451
3451
  globalThis.importScripts(t);
@@ -3469,7 +3469,7 @@ var os = yr((ls, pt) => {
3469
3469
  }
3470
3470
  b(rr, "loadLockFile");
3471
3471
  async function nr() {
3472
- if (Wt) return __dirname;
3472
+ if (Ht) return __dirname;
3473
3473
  let t;
3474
3474
  try {
3475
3475
  throw new Error();
@@ -3617,28 +3617,35 @@ var os = yr((ls, pt) => {
3617
3617
  }
3618
3618
  b(or, "setEnvironment");
3619
3619
  function cr(t) {
3620
- return (e) => {
3621
- for (let r of t) e.FS.mkdirTree(r), e.FS.mount(e.FS.filesystems.NODEFS, { root: r }, r);
3622
- };
3620
+ return t ? [async (e) => {
3621
+ e.addRunDependency("fsInitHook");
3622
+ try {
3623
+ await t(e.FS, { sitePackages: e.API.sitePackages });
3624
+ } finally {
3625
+ e.removeRunDependency("fsInitHook");
3626
+ }
3627
+ }] : [];
3623
3628
  }
3624
- b(cr, "mountLocalDirectories");
3629
+ b(cr, "callFsInitHook");
3625
3630
  function dr(t) {
3626
3631
  let e = er(t);
3627
- return (r) => {
3632
+ return async (r) => {
3628
3633
  let n = r._py_version_major(), s = r._py_version_minor();
3629
- r.FS.mkdirTree("/lib"), r.FS.mkdirTree(`/lib/python${n}.${s}/site-packages`), r.addRunDependency("install-stdlib"), e.then((a) => {
3634
+ r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
3635
+ try {
3636
+ let a = await e;
3630
3637
  r.FS.writeFile(`/lib/python${n}${s}.zip`, a);
3631
- }).catch((a) => {
3638
+ } catch (a) {
3632
3639
  console.error("Error occurred while installing the standard library:"), console.error(a);
3633
- }).finally(() => {
3640
+ } finally {
3634
3641
  r.removeRunDependency("install-stdlib");
3635
- });
3642
+ }
3636
3643
  };
3637
3644
  }
3638
3645
  b(dr, "installStdlib");
3639
3646
  function lr(t) {
3640
3647
  let e;
3641
- return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [dr(e), ir(t.env.HOME), or(t.env), cr(t._node_mounts), sr];
3648
+ return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...cr(t.fsInit), dr(e), ir(t.env.HOME), or(t.env), sr];
3642
3649
  }
3643
3650
  b(lr, "getFileSystemInitializationFuncs");
3644
3651
  function ur(t) {
@@ -3658,13 +3665,13 @@ var os = yr((ls, pt) => {
3658
3665
  };
3659
3666
  }
3660
3667
  b(ur, "getInstantiateWasmFunc");
3661
- var ut = "0.27.4";
3668
+ var ut = "0.27.5";
3662
3669
  async function ft(t = {}) {
3663
3670
  var e, r;
3664
3671
  await yt();
3665
3672
  let n = t.indexURL || await nr();
3666
3673
  n = lt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
3667
- let s = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [], _node_mounts: [], env: {}, packageCacheDir: n, packages: [], enableRunUntilComplete: !1, checkAPIVersion: !0, BUILD_ID: "3688f170b8197d889daf1db299085c5cad369a4656ca9c57fbe1f8cdcc4c7cd3" }, a = Object.assign(s, t);
3674
+ 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);
3668
3675
  (e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
3669
3676
  let i = ar(a), o = i.API;
3670
3677
  if (o.lockFilePromise = rr(a.lockFileURL), typeof _createPyodideModule != "function") {
@@ -3871,21 +3878,21 @@ ${e}`;
3871
3878
  async function ns() {
3872
3879
  try {
3873
3880
  const t = is(), e = Gn(t), r = await A.wrapAsync(rs)(t);
3874
- self.controller = r, H.send.initializingMessage({
3881
+ self.controller = r, W.send.initializingMessage({
3875
3882
  message: "Loading marimo..."
3876
3883
  }), self.pyodide = await A.wrapAsync(r.bootstrap.bind(r))({
3877
3884
  version: t,
3878
3885
  pyodideVersion: e
3879
3886
  });
3880
3887
  } catch (t) {
3881
- Y.error("Error bootstrapping", t), H.send.initializedError({
3888
+ Y.error("Error bootstrapping", t), W.send.initializedError({
3882
3889
  error: Dt(t)
3883
3890
  });
3884
3891
  }
3885
3892
  }
3886
3893
  const fr = new _r(
3887
3894
  (t) => {
3888
- H.send.kernelMessage({ message: t });
3895
+ W.send.kernelMessage({ message: t });
3889
3896
  }
3890
3897
  ), Nt = new gr();
3891
3898
  let Rt = !1;
@@ -3908,11 +3915,11 @@ ${e}`;
3908
3915
  const n = A.wrapAsync(
3909
3916
  self.controller.startSession.bind(self.controller)
3910
3917
  ), s = Qn(() => {
3911
- H.send.initializingMessage({
3918
+ W.send.initializingMessage({
3912
3919
  message: "Initializing notebook..."
3913
- }), H.send.initialized({});
3920
+ }), W.send.initialized({});
3914
3921
  });
3915
- H.send.initializingMessage({
3922
+ W.send.initializingMessage({
3916
3923
  message: "Loading notebook and dependencies..."
3917
3924
  });
3918
3925
  const a = await n({
@@ -3926,7 +3933,7 @@ ${e}`;
3926
3933
  });
3927
3934
  Nt.resolve(a), Ot.end("ok");
3928
3935
  } catch (n) {
3929
- H.send.initializedError({
3936
+ W.send.initializedError({
3930
3937
  error: Dt(n)
3931
3938
  }), Ot.end("error");
3932
3939
  }
@@ -4050,14 +4057,14 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
4050
4057
  );
4051
4058
  return as.has(r) && ie.persistFilesToRemote(self.pyodide), e.end(), typeof i == "string" ? JSON.parse(i) : i;
4052
4059
  }
4053
- }, H = Zn({
4054
- transport: $n({
4060
+ }, W = Zn({
4061
+ transport: Fn({
4055
4062
  transportId: Ln
4056
4063
  }),
4057
4064
  requestHandler: ss
4058
4065
  });
4059
- H.send("ready", {});
4060
- H.addMessageListener("consumerReady", async () => {
4066
+ W.send("ready", {});
4067
+ W.addMessageListener("consumerReady", async () => {
4061
4068
  await L, fr.start();
4062
4069
  });
4063
4070
  const as = /* @__PURE__ */ new Set([