@marimo-team/islands 0.13.8-dev18 → 0.13.8-dev2
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.
- package/dist/{ConnectedDataExplorerComponent-DKKPYtzM.js → ConnectedDataExplorerComponent-Fe4ZjS1r.js} +2 -2
- package/dist/{VegaLite-DudEAK-N.js → VegaLite-3czckaAO.js} +3 -3
- package/dist/{_baseUniq-BHYSmbjI.js → _baseUniq-DQZqalaE.js} +1 -1
- package/dist/{any-language-editor-ChgPB-2F.js → any-language-editor-DsQ07zxk.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-oORmAx_w.js → architectureDiagram-IEHRJDOE-BVVrzzJ6.js} +5 -5
- package/dist/assets/{worker-C7cQgmFi.js → worker-PjUOGXtl.js} +191 -192
- package/dist/{blockDiagram-JOT3LUYC-vglDZd8l.js → blockDiagram-JOT3LUYC-B6kievE1.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-BTsNMvmG.js → c4Diagram-VJAJSXHY-7Q_JJG7_.js} +2 -2
- package/dist/{channel-CWF4XQOA.js → channel-BH_qogkF.js} +1 -1
- package/dist/{chunk-4BMEZGHF-fGwMA0WT.js → chunk-4BMEZGHF-CdC2arV5.js} +1 -1
- package/dist/{chunk-A2AXSNBT-0ETBjTOO.js → chunk-A2AXSNBT-Bj--bs8H.js} +2 -2
- package/dist/{chunk-AEK57VVT-BTMJQ66K.js → chunk-AEK57VVT-BPSxqtbH.js} +2 -2
- package/dist/{chunk-D6G4REZN-BSfGSdUq.js → chunk-D6G4REZN-CiHAnpgs.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-DtqkCXWE.js → chunk-RZ5BOZE2-DjjOnI9g.js} +1 -1
- package/dist/{chunk-XZIHB7SX-DRznLAew.js → chunk-XZIHB7SX-BFpG8dKo.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-COwW2CLQ.js → classDiagram-GIVACNV2-OJnnF3Hy.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-COwW2CLQ.js → classDiagram-v2-COTLJTTW-OJnnF3Hy.js} +2 -2
- package/dist/{clone-CZ8Z_Tmp.js → clone-BCfD4sPw.js} +1 -1
- package/dist/{dagre-OKDRZEBW-DsT0h3Am.js → dagre-OKDRZEBW-y2dtg82Y.js} +6 -6
- package/dist/{data-editor-CDmcmirH.js → data-editor-CT1pJxYu.js} +1 -1
- package/dist/{diagram-SSKATNLV-GflyXCKx.js → diagram-SSKATNLV-C7xoF0Dt.js} +3 -3
- package/dist/{diagram-VNBRO52H-BGAXloQY.js → diagram-VNBRO52H-BHnhmoGI.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-BDE00BLH.js → erDiagram-Q7BY3M3F-RXvd64sE.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-DSj0wuUu.js → flowDiagram-4HSFHLVR-DWdorjcn.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-Bv-I6M-J.js → ganttDiagram-APWFNJXF-l5uD1kBR.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S-DjBkpRCV.js → gitGraphDiagram-7IBYFJ6S-DJmXGrF1.js} +4 -4
- package/dist/{graph-D08xDZsJ.js → graph-BoWRFXIY.js} +3 -3
- package/dist/{index-H1rzximx.js → index-Brcytcj8.js} +1 -1
- package/dist/{index-2ra4WXgp.js → index-CMlARz6p.js} +3 -3
- package/dist/{index-B7F6tYDc.js → index-CiTrPWOq.js} +1 -1
- package/dist/{index-r1xYYJHu.js → index-_zgUDdo0.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-DmNCmWQR.js → infoDiagram-PH2N3AL5-BmJdL2Av.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-BhzKnPLF.js → journeyDiagram-U35MCT3I-D896HpjX.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-fgO7XNgq.js → kanban-definition-NDS4AKOZ-Br3Syb_T.js} +1 -1
- package/dist/{layout-D6l-Di9U.js → layout-BE6ri86u.js} +4 -4
- package/dist/{linear-C2n_WOKB.js → linear-88bMSbNs.js} +1 -1
- package/dist/{main-BkYnlXlY.js → main-CxIvQbeW.js} +29487 -29488
- package/dist/main.js +1 -1
- package/dist/{mermaid-CtEPSqQW.js → mermaid-CxQnxD9L.js} +28 -28
- package/dist/{min-VoRQdcIL.js → min-DStyWNjg.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-Cp7zWude.js → mindmap-definition-ALO5MXBD-C-S3yK3h.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-CK92RoKg.js → pieDiagram-IB7DONF6-DS0nY2lY.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-Dazwn490.js → quadrantDiagram-7GDLP6J5-2iExgvlY.js} +2 -2
- package/dist/{radar-MK3ICKWK-D6BAIHVK.js → radar-MK3ICKWK-CZQi5ASq.js} +5 -5
- package/dist/{react-plotly-CktX8a62.js → react-plotly-DxAPxF5r.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-Cuh9brXm.js → requirementDiagram-KVF5MWMF-BNgOwIhJ.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-elDzVF8j.js → sankeyDiagram-QLVOVGJD-DsWfgKjA.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-h2QMp15g.js → sequenceDiagram-X6HHIX6F-B3EDXmsK.js} +3 -3
- package/dist/{slides-component---8YAsKd.js → slides-component-BZDry54N.js} +2 -2
- package/dist/{stateDiagram-DGXRK772-BQavjERU.js → stateDiagram-DGXRK772-Bf68DrTh.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-C08Z-qGY.js → stateDiagram-v2-YXO3MK2T-Cwjs1cSy.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-Ddg68GC-.js → time-CsML6S6u.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-Bz3zxVDT.js → timeline-definition-BDJGKUSR-zN3vJ4kF.js} +1 -1
- package/dist/{vega-component-RXOuIYDw.js → vega-component-xZx6pm07.js} +2 -2
- package/dist/{xychartDiagram-VJFVF3MP-kwoLcUsO.js → xychartDiagram-VJFVF3MP-BIbPJyyG.js} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var ps =
|
|
3
|
-
class
|
|
1
|
+
var vr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
|
|
2
|
+
var ps = vr((ys, yt) => {
|
|
3
|
+
class _r {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.status = "pending", this.promise = new Promise((e, r) => {
|
|
6
6
|
this.reject = (n) => {
|
|
@@ -114,7 +114,7 @@ var ps = _r((ys, yt) => {
|
|
|
114
114
|
"invalid_intersection_types",
|
|
115
115
|
"not_multiple_of",
|
|
116
116
|
"not_finite"
|
|
117
|
-
]),
|
|
117
|
+
]), wr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
118
118
|
class P extends Error {
|
|
119
119
|
get errors() {
|
|
120
120
|
return this.issues;
|
|
@@ -232,7 +232,7 @@ var ps = _r((ys, yt) => {
|
|
|
232
232
|
return { message: r };
|
|
233
233
|
};
|
|
234
234
|
let At = ge;
|
|
235
|
-
function
|
|
235
|
+
function br(t) {
|
|
236
236
|
At = t;
|
|
237
237
|
}
|
|
238
238
|
function He() {
|
|
@@ -258,7 +258,7 @@ var ps = _r((ys, yt) => {
|
|
|
258
258
|
path: a,
|
|
259
259
|
message: o
|
|
260
260
|
};
|
|
261
|
-
},
|
|
261
|
+
}, kr = [];
|
|
262
262
|
function f(t, e) {
|
|
263
263
|
const r = He(), n = We({
|
|
264
264
|
issueData: e,
|
|
@@ -589,14 +589,14 @@ var ps = _r((ys, yt) => {
|
|
|
589
589
|
return this.safeParse(null).success;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const xr = /^c[^\s-]{8,}$/i, Sr = /^[0-9a-z]+$/, Tr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Er = /^[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, Or = /^[a-z0-9_-]{21}$/i, Nr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Rr = /^[-+]?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)?)??$/, Ar = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Cr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
593
593
|
let at;
|
|
594
|
-
const
|
|
594
|
+
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])$/, jr = /^(([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]))$/, 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-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])$/, $r = /^([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])))", Fr = new RegExp(`^${It}$`);
|
|
595
595
|
function Pt(t) {
|
|
596
596
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
597
597
|
return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Dr(t) {
|
|
600
600
|
return new RegExp(`^${Pt(t)}$`);
|
|
601
601
|
}
|
|
602
602
|
function jt(t) {
|
|
@@ -604,11 +604,11 @@ var ps = _r((ys, yt) => {
|
|
|
604
604
|
const r = [];
|
|
605
605
|
return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
return !!((e === "v4" || !e) &&
|
|
607
|
+
function Lr(t, e) {
|
|
608
|
+
return !!((e === "v4" || !e) && Ir.test(t) || (e === "v6" || !e) && jr.test(t));
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
if (!
|
|
610
|
+
function Vr(t, e) {
|
|
611
|
+
if (!Nr.test(t))
|
|
612
612
|
return !1;
|
|
613
613
|
try {
|
|
614
614
|
const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
|
|
@@ -617,8 +617,8 @@ var ps = _r((ys, yt) => {
|
|
|
617
617
|
return !1;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return !!((e === "v4" || !e) &&
|
|
620
|
+
function zr(t, e) {
|
|
621
|
+
return !!((e === "v4" || !e) && Pr.test(t) || (e === "v6" || !e) && Zr.test(t));
|
|
622
622
|
}
|
|
623
623
|
class Z extends w {
|
|
624
624
|
_parse(e) {
|
|
@@ -669,43 +669,43 @@ var ps = _r((ys, yt) => {
|
|
|
669
669
|
message: a.message
|
|
670
670
|
}), n.dirty());
|
|
671
671
|
} else if (a.kind === "email")
|
|
672
|
-
|
|
672
|
+
Ar.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
673
673
|
validation: "email",
|
|
674
674
|
code: u.invalid_string,
|
|
675
675
|
message: a.message
|
|
676
676
|
}), n.dirty());
|
|
677
677
|
else if (a.kind === "emoji")
|
|
678
|
-
at || (at = new RegExp(
|
|
678
|
+
at || (at = new RegExp(Cr, "u")), at.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
679
679
|
validation: "emoji",
|
|
680
680
|
code: u.invalid_string,
|
|
681
681
|
message: a.message
|
|
682
682
|
}), n.dirty());
|
|
683
683
|
else if (a.kind === "uuid")
|
|
684
|
-
|
|
684
|
+
Er.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
685
685
|
validation: "uuid",
|
|
686
686
|
code: u.invalid_string,
|
|
687
687
|
message: a.message
|
|
688
688
|
}), n.dirty());
|
|
689
689
|
else if (a.kind === "nanoid")
|
|
690
|
-
|
|
690
|
+
Or.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
691
691
|
validation: "nanoid",
|
|
692
692
|
code: u.invalid_string,
|
|
693
693
|
message: a.message
|
|
694
694
|
}), n.dirty());
|
|
695
695
|
else if (a.kind === "cuid")
|
|
696
|
-
|
|
696
|
+
xr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
697
697
|
validation: "cuid",
|
|
698
698
|
code: u.invalid_string,
|
|
699
699
|
message: a.message
|
|
700
700
|
}), n.dirty());
|
|
701
701
|
else if (a.kind === "cuid2")
|
|
702
|
-
|
|
702
|
+
Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
703
703
|
validation: "cuid2",
|
|
704
704
|
code: u.invalid_string,
|
|
705
705
|
message: a.message
|
|
706
706
|
}), n.dirty());
|
|
707
707
|
else if (a.kind === "ulid")
|
|
708
|
-
|
|
708
|
+
Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
709
709
|
validation: "ulid",
|
|
710
710
|
code: u.invalid_string,
|
|
711
711
|
message: a.message
|
|
@@ -740,35 +740,35 @@ var ps = _r((ys, yt) => {
|
|
|
740
740
|
code: u.invalid_string,
|
|
741
741
|
validation: "datetime",
|
|
742
742
|
message: a.message
|
|
743
|
-
}), n.dirty()) : a.kind === "date" ?
|
|
743
|
+
}), n.dirty()) : a.kind === "date" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
744
744
|
code: u.invalid_string,
|
|
745
745
|
validation: "date",
|
|
746
746
|
message: a.message
|
|
747
|
-
}), n.dirty()) : a.kind === "time" ?
|
|
747
|
+
}), n.dirty()) : a.kind === "time" ? Dr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
748
748
|
code: u.invalid_string,
|
|
749
749
|
validation: "time",
|
|
750
750
|
message: a.message
|
|
751
|
-
}), n.dirty()) : a.kind === "duration" ?
|
|
751
|
+
}), n.dirty()) : a.kind === "duration" ? Rr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
752
752
|
validation: "duration",
|
|
753
753
|
code: u.invalid_string,
|
|
754
754
|
message: a.message
|
|
755
|
-
}), n.dirty()) : a.kind === "ip" ?
|
|
755
|
+
}), n.dirty()) : a.kind === "ip" ? Lr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
756
756
|
validation: "ip",
|
|
757
757
|
code: u.invalid_string,
|
|
758
758
|
message: a.message
|
|
759
|
-
}), n.dirty()) : a.kind === "jwt" ?
|
|
759
|
+
}), n.dirty()) : a.kind === "jwt" ? Vr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
760
760
|
validation: "jwt",
|
|
761
761
|
code: u.invalid_string,
|
|
762
762
|
message: a.message
|
|
763
|
-
}), n.dirty()) : a.kind === "cidr" ?
|
|
763
|
+
}), n.dirty()) : a.kind === "cidr" ? zr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
764
764
|
validation: "cidr",
|
|
765
765
|
code: u.invalid_string,
|
|
766
766
|
message: a.message
|
|
767
|
-
}), n.dirty()) : a.kind === "base64" ?
|
|
767
|
+
}), n.dirty()) : a.kind === "base64" ? $r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
768
768
|
validation: "base64",
|
|
769
769
|
code: u.invalid_string,
|
|
770
770
|
message: a.message
|
|
771
|
-
}), n.dirty()) : a.kind === "base64url" ?
|
|
771
|
+
}), n.dirty()) : a.kind === "base64url" ? Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
772
772
|
validation: "base64url",
|
|
773
773
|
code: u.invalid_string,
|
|
774
774
|
message: a.message
|
|
@@ -1970,7 +1970,7 @@ var ps = _r((ys, yt) => {
|
|
|
1970
1970
|
typeName: y.ZodUnion,
|
|
1971
1971
|
..._(e)
|
|
1972
1972
|
});
|
|
1973
|
-
const
|
|
1973
|
+
const q = (t) => t instanceof je ? q(t.schema) : t instanceof M ? q(t.innerType()) : t instanceof Ze ? [t.value] : t instanceof G ? t.options : t instanceof $e ? k.objectValues(t.enum) : t instanceof Me ? q(t._def.innerType) : t instanceof Re ? [void 0] : t instanceof Ae ? [null] : t instanceof D ? [void 0, ...q(t.unwrap())] : t instanceof K ? [null, ...q(t.unwrap())] : t instanceof gt || t instanceof De ? q(t.unwrap()) : t instanceof Fe ? q(t._def.innerType) : [];
|
|
1974
1974
|
class rt extends w {
|
|
1975
1975
|
_parse(e) {
|
|
1976
1976
|
const { ctx: r } = this._processInputParams(e);
|
|
@@ -2015,7 +2015,7 @@ var ps = _r((ys, yt) => {
|
|
|
2015
2015
|
static create(e, r, n) {
|
|
2016
2016
|
const s = /* @__PURE__ */ new Map();
|
|
2017
2017
|
for (const a of r) {
|
|
2018
|
-
const i =
|
|
2018
|
+
const i = q(a.shape[e]);
|
|
2019
2019
|
if (!i.length)
|
|
2020
2020
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
2021
2021
|
for (const o of i) {
|
|
@@ -2755,7 +2755,7 @@ var ps = _r((ys, yt) => {
|
|
|
2755
2755
|
typeName: y.ZodNaN,
|
|
2756
2756
|
..._(t)
|
|
2757
2757
|
});
|
|
2758
|
-
const
|
|
2758
|
+
const qr = Symbol("zod_brand");
|
|
2759
2759
|
class gt extends w {
|
|
2760
2760
|
_parse(e) {
|
|
2761
2761
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
@@ -2845,16 +2845,16 @@ var ps = _r((ys, yt) => {
|
|
|
2845
2845
|
}
|
|
2846
2846
|
}) : ve.create();
|
|
2847
2847
|
}
|
|
2848
|
-
const
|
|
2848
|
+
const Br = {
|
|
2849
2849
|
object: O.lazycreate
|
|
2850
2850
|
};
|
|
2851
2851
|
var y;
|
|
2852
2852
|
(function(t) {
|
|
2853
2853
|
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";
|
|
2854
2854
|
})(y || (y = {}));
|
|
2855
|
-
const
|
|
2855
|
+
const Hr = (t, e = {
|
|
2856
2856
|
message: `Input not instance of ${t.name}`
|
|
2857
|
-
}) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create,
|
|
2857
|
+
}) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create, Wr = Xe.create, Jr = Y.create, Dt = Ne.create, Yr = oe.create, Gr = Ye.create, Kr = Re.create, Xr = Ae.create, Qr = ve.create, en = ae.create, tn = H.create, rn = Ge.create, nn = $.create, sn = O.create, an = O.strictCreate, on = Ce.create, dn = rt.create, cn = Ie.create, un = V.create, ln = Pe.create, fn = Ke.create, pn = de.create, hn = ye.create, mn = je.create, yn = Ze.create, gn = G.create, vn = $e.create, _n = _e.create, Tt = M.create, wn = D.create, bn = K.create, kn = M.createWithPreprocess, xn = Le.create, Sn = () => Mt().optional(), Tn = () => Ft().optional(), En = () => Dt().optional(), On = {
|
|
2858
2858
|
string: (t) => Z.create({ ...t, coerce: !0 }),
|
|
2859
2859
|
number: (t) => J.create({ ...t, coerce: !0 }),
|
|
2860
2860
|
boolean: (t) => Ne.create({
|
|
@@ -2863,14 +2863,14 @@ var ps = _r((ys, yt) => {
|
|
|
2863
2863
|
}),
|
|
2864
2864
|
bigint: (t) => Y.create({ ...t, coerce: !0 }),
|
|
2865
2865
|
date: (t) => oe.create({ ...t, coerce: !0 })
|
|
2866
|
-
},
|
|
2866
|
+
}, Nn = g;
|
|
2867
2867
|
var m = /* @__PURE__ */ Object.freeze({
|
|
2868
2868
|
__proto__: null,
|
|
2869
2869
|
defaultErrorMap: ge,
|
|
2870
|
-
setErrorMap:
|
|
2870
|
+
setErrorMap: br,
|
|
2871
2871
|
getErrorMap: He,
|
|
2872
2872
|
makeIssue: We,
|
|
2873
|
-
EMPTY_PATH:
|
|
2873
|
+
EMPTY_PATH: kr,
|
|
2874
2874
|
addIssueToContext: f,
|
|
2875
2875
|
ParseStatus: A,
|
|
2876
2876
|
INVALID: g,
|
|
@@ -2924,60 +2924,60 @@ var ps = _r((ys, yt) => {
|
|
|
2924
2924
|
ZodDefault: Me,
|
|
2925
2925
|
ZodCatch: Fe,
|
|
2926
2926
|
ZodNaN: Xe,
|
|
2927
|
-
BRAND:
|
|
2927
|
+
BRAND: qr,
|
|
2928
2928
|
ZodBranded: gt,
|
|
2929
2929
|
ZodPipeline: Le,
|
|
2930
2930
|
ZodReadonly: De,
|
|
2931
2931
|
custom: $t,
|
|
2932
2932
|
Schema: w,
|
|
2933
2933
|
ZodSchema: w,
|
|
2934
|
-
late:
|
|
2934
|
+
late: Br,
|
|
2935
2935
|
get ZodFirstPartyTypeKind() {
|
|
2936
2936
|
return y;
|
|
2937
2937
|
},
|
|
2938
|
-
coerce:
|
|
2939
|
-
any:
|
|
2940
|
-
array:
|
|
2941
|
-
bigint:
|
|
2938
|
+
coerce: On,
|
|
2939
|
+
any: Qr,
|
|
2940
|
+
array: nn,
|
|
2941
|
+
bigint: Jr,
|
|
2942
2942
|
boolean: Dt,
|
|
2943
|
-
date:
|
|
2944
|
-
discriminatedUnion:
|
|
2943
|
+
date: Yr,
|
|
2944
|
+
discriminatedUnion: dn,
|
|
2945
2945
|
effect: Tt,
|
|
2946
|
-
enum:
|
|
2947
|
-
function:
|
|
2948
|
-
instanceof:
|
|
2949
|
-
intersection:
|
|
2950
|
-
lazy:
|
|
2951
|
-
literal:
|
|
2952
|
-
map:
|
|
2953
|
-
nan:
|
|
2954
|
-
nativeEnum:
|
|
2955
|
-
never:
|
|
2956
|
-
null:
|
|
2957
|
-
nullable:
|
|
2946
|
+
enum: gn,
|
|
2947
|
+
function: hn,
|
|
2948
|
+
instanceof: Hr,
|
|
2949
|
+
intersection: cn,
|
|
2950
|
+
lazy: mn,
|
|
2951
|
+
literal: yn,
|
|
2952
|
+
map: fn,
|
|
2953
|
+
nan: Wr,
|
|
2954
|
+
nativeEnum: vn,
|
|
2955
|
+
never: tn,
|
|
2956
|
+
null: Xr,
|
|
2957
|
+
nullable: bn,
|
|
2958
2958
|
number: Ft,
|
|
2959
|
-
object:
|
|
2960
|
-
oboolean:
|
|
2961
|
-
onumber:
|
|
2962
|
-
optional:
|
|
2963
|
-
ostring:
|
|
2964
|
-
pipeline:
|
|
2965
|
-
preprocess:
|
|
2966
|
-
promise:
|
|
2967
|
-
record:
|
|
2968
|
-
set:
|
|
2969
|
-
strictObject:
|
|
2959
|
+
object: sn,
|
|
2960
|
+
oboolean: En,
|
|
2961
|
+
onumber: Tn,
|
|
2962
|
+
optional: wn,
|
|
2963
|
+
ostring: Sn,
|
|
2964
|
+
pipeline: xn,
|
|
2965
|
+
preprocess: kn,
|
|
2966
|
+
promise: _n,
|
|
2967
|
+
record: ln,
|
|
2968
|
+
set: pn,
|
|
2969
|
+
strictObject: an,
|
|
2970
2970
|
string: Mt,
|
|
2971
|
-
symbol:
|
|
2971
|
+
symbol: Gr,
|
|
2972
2972
|
transformer: Tt,
|
|
2973
|
-
tuple:
|
|
2974
|
-
undefined:
|
|
2975
|
-
union:
|
|
2976
|
-
unknown:
|
|
2977
|
-
void:
|
|
2978
|
-
NEVER:
|
|
2973
|
+
tuple: un,
|
|
2974
|
+
undefined: Kr,
|
|
2975
|
+
union: on,
|
|
2976
|
+
unknown: en,
|
|
2977
|
+
void: rn,
|
|
2978
|
+
NEVER: Nn,
|
|
2979
2979
|
ZodIssueCode: u,
|
|
2980
|
-
quotelessJson:
|
|
2980
|
+
quotelessJson: wr,
|
|
2981
2981
|
ZodError: P
|
|
2982
2982
|
});
|
|
2983
2983
|
const lt = m.object({
|
|
@@ -2988,7 +2988,7 @@ var ps = _r((ys, yt) => {
|
|
|
2988
2988
|
return "Unknown error";
|
|
2989
2989
|
if (t instanceof Error) {
|
|
2990
2990
|
const e = lt.safeParse(t.cause);
|
|
2991
|
-
return e.success ? e.data.detail :
|
|
2991
|
+
return e.success ? e.data.detail : Rn(t.message);
|
|
2992
2992
|
}
|
|
2993
2993
|
if (typeof t == "object") {
|
|
2994
2994
|
const e = lt.safeParse(t);
|
|
@@ -3001,26 +3001,26 @@ var ps = _r((ys, yt) => {
|
|
|
3001
3001
|
return String(t);
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3005
|
-
const e =
|
|
3004
|
+
function Rn(t) {
|
|
3005
|
+
const e = An(t);
|
|
3006
3006
|
if (!e)
|
|
3007
3007
|
return t;
|
|
3008
3008
|
const r = lt.safeParse(e);
|
|
3009
3009
|
return r.success ? r.data.detail : t;
|
|
3010
3010
|
}
|
|
3011
|
-
function
|
|
3011
|
+
function An(t) {
|
|
3012
3012
|
try {
|
|
3013
3013
|
return JSON.parse(t);
|
|
3014
3014
|
} catch {
|
|
3015
3015
|
return t;
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
|
-
const
|
|
3018
|
+
const Cn = 1e10, In = 1e3;
|
|
3019
3019
|
function ze(t, e) {
|
|
3020
3020
|
const r = t.map((n) => `"${n}"`).join(", ");
|
|
3021
3021
|
return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3023
|
+
function Pn(t = {}) {
|
|
3024
3024
|
let e = {};
|
|
3025
3025
|
function r(v) {
|
|
3026
3026
|
e = v;
|
|
@@ -3028,7 +3028,7 @@ var ps = _r((ys, yt) => {
|
|
|
3028
3028
|
let n = {};
|
|
3029
3029
|
function s(v) {
|
|
3030
3030
|
var T;
|
|
3031
|
-
n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n,
|
|
3031
|
+
n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n, gr);
|
|
3032
3032
|
}
|
|
3033
3033
|
let a;
|
|
3034
3034
|
function i(v) {
|
|
@@ -3046,11 +3046,11 @@ var ps = _r((ys, yt) => {
|
|
|
3046
3046
|
return R(T, N);
|
|
3047
3047
|
};
|
|
3048
3048
|
}
|
|
3049
|
-
const { maxRequestTime: o =
|
|
3049
|
+
const { maxRequestTime: o = In } = t;
|
|
3050
3050
|
t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
|
|
3051
3051
|
let d = 0;
|
|
3052
3052
|
function c() {
|
|
3053
|
-
return d <=
|
|
3053
|
+
return d <= Cn ? ++d : d = 0;
|
|
3054
3054
|
}
|
|
3055
3055
|
const l = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
3056
3056
|
function S(v, ...T) {
|
|
@@ -3072,7 +3072,7 @@ var ps = _r((ys, yt) => {
|
|
|
3072
3072
|
}
|
|
3073
3073
|
const I = new Proxy(S, {
|
|
3074
3074
|
get: (v, T, N) => T in v ? Reflect.get(v, T, N) : (E) => S(T, E)
|
|
3075
|
-
}),
|
|
3075
|
+
}), U = I;
|
|
3076
3076
|
function Ve(v, ...T) {
|
|
3077
3077
|
var R;
|
|
3078
3078
|
const N = T[0];
|
|
@@ -3088,7 +3088,7 @@ var ps = _r((ys, yt) => {
|
|
|
3088
3088
|
const bt = new Proxy(Ve, {
|
|
3089
3089
|
get: (v, T, N) => T in v ? Reflect.get(v, T, N) : (E) => Ve(T, E)
|
|
3090
3090
|
}), kt = bt, Q = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Set();
|
|
3091
|
-
function
|
|
3091
|
+
function mr(v, T) {
|
|
3092
3092
|
var N;
|
|
3093
3093
|
if (!n.registerHandler)
|
|
3094
3094
|
throw ze(["registerHandler"], "register message listeners");
|
|
@@ -3098,7 +3098,7 @@ var ps = _r((ys, yt) => {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
Q.has(v) || Q.set(v, /* @__PURE__ */ new Set()), (N = Q.get(v)) == null || N.add(T);
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3101
|
+
function yr(v, T) {
|
|
3102
3102
|
var N, E;
|
|
3103
3103
|
if (v === "*") {
|
|
3104
3104
|
st.delete(T);
|
|
@@ -3106,7 +3106,7 @@ var ps = _r((ys, yt) => {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
(N = Q.get(v)) == null || N.delete(T), ((E = Q.get(v)) == null ? void 0 : E.size) === 0 && Q.delete(v);
|
|
3108
3108
|
}
|
|
3109
|
-
async function
|
|
3109
|
+
async function gr(v) {
|
|
3110
3110
|
var T, N;
|
|
3111
3111
|
if ((T = e.onReceive) == null || T.call(e, v), !("type" in v))
|
|
3112
3112
|
throw new Error("Message does not contain a type.");
|
|
@@ -3158,24 +3158,24 @@ var ps = _r((ys, yt) => {
|
|
|
3158
3158
|
setTransport: s,
|
|
3159
3159
|
setRequestHandler: i,
|
|
3160
3160
|
request: I,
|
|
3161
|
-
requestProxy:
|
|
3161
|
+
requestProxy: U,
|
|
3162
3162
|
send: bt,
|
|
3163
3163
|
sendProxy: kt,
|
|
3164
|
-
addMessageListener:
|
|
3165
|
-
removeMessageListener:
|
|
3166
|
-
proxy: { send: kt, request:
|
|
3164
|
+
addMessageListener: mr,
|
|
3165
|
+
removeMessageListener: yr,
|
|
3166
|
+
proxy: { send: kt, request: U },
|
|
3167
3167
|
_setDebugHooks: r
|
|
3168
3168
|
};
|
|
3169
3169
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return
|
|
3170
|
+
function jn(t) {
|
|
3171
|
+
return Pn(t);
|
|
3172
3172
|
}
|
|
3173
3173
|
const Vt = "[transport-id]";
|
|
3174
|
-
function
|
|
3174
|
+
function Zn(t, e) {
|
|
3175
3175
|
const { transportId: r } = e;
|
|
3176
3176
|
return r != null ? { [Vt]: r, data: t } : t;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function $n(t, e) {
|
|
3179
3179
|
const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
|
|
3180
3180
|
if (r != null && s != null)
|
|
3181
3181
|
throw new Error("Cannot use both `transportId` and `filter` at the same time");
|
|
@@ -3187,16 +3187,16 @@ var ps = _r((ys, yt) => {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
return s === !1 ? [!0] : [!1, a];
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function Mn(t, e = {}) {
|
|
3191
3191
|
const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
|
|
3192
3192
|
let o;
|
|
3193
3193
|
return {
|
|
3194
3194
|
send(d) {
|
|
3195
|
-
i.postMessage(
|
|
3195
|
+
i.postMessage(Zn(d, { transportId: r }));
|
|
3196
3196
|
},
|
|
3197
3197
|
registerHandler(d) {
|
|
3198
3198
|
o = (c) => {
|
|
3199
|
-
const l = c.data, [b, S] =
|
|
3199
|
+
const l = c.data, [b, S] = $n(l, {
|
|
3200
3200
|
transportId: r,
|
|
3201
3201
|
filter: () => n == null ? void 0 : n(c)
|
|
3202
3202
|
});
|
|
@@ -3208,15 +3208,15 @@ var ps = _r((ys, yt) => {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
};
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3212
|
-
return
|
|
3211
|
+
function Fn(t) {
|
|
3212
|
+
return Mn(self, t);
|
|
3213
3213
|
}
|
|
3214
3214
|
function zt(t, e) {
|
|
3215
3215
|
if (!t)
|
|
3216
3216
|
throw new Error(e);
|
|
3217
3217
|
}
|
|
3218
|
-
const
|
|
3219
|
-
class
|
|
3218
|
+
const Dn = "marimo-transport";
|
|
3219
|
+
class Ln {
|
|
3220
3220
|
constructor(e) {
|
|
3221
3221
|
this.onMessage = e, this.started = !1, this.push = (r) => {
|
|
3222
3222
|
this.started ? this.onMessage(r) : this.buffer.push(r);
|
|
@@ -3228,7 +3228,7 @@ var ps = _r((ys, yt) => {
|
|
|
3228
3228
|
const be = {
|
|
3229
3229
|
NOOP: () => {
|
|
3230
3230
|
}
|
|
3231
|
-
},
|
|
3231
|
+
}, Ut = (t, e) => {
|
|
3232
3232
|
const r = `[${t}]`;
|
|
3233
3233
|
return {
|
|
3234
3234
|
debug: (...n) => e.debug(r, ...n),
|
|
@@ -3236,7 +3236,7 @@ var ps = _r((ys, yt) => {
|
|
|
3236
3236
|
warn: (...n) => e.warn(r, ...n),
|
|
3237
3237
|
error: (...n) => e.error(r, ...n),
|
|
3238
3238
|
trace: (...n) => e.trace(r, ...n),
|
|
3239
|
-
get: (n) =>
|
|
3239
|
+
get: (n) => Ut(`${t}.${n}`, e),
|
|
3240
3240
|
disabled: (n = !0) => n ? et : e
|
|
3241
3241
|
};
|
|
3242
3242
|
}, Qe = {
|
|
@@ -3255,7 +3255,7 @@ var ps = _r((ys, yt) => {
|
|
|
3255
3255
|
trace: (...t) => {
|
|
3256
3256
|
console.trace(...t);
|
|
3257
3257
|
},
|
|
3258
|
-
get: (t) =>
|
|
3258
|
+
get: (t) => Ut(t, Qe),
|
|
3259
3259
|
disabled: (t = !0) => t ? et : Qe
|
|
3260
3260
|
}, et = {
|
|
3261
3261
|
debug: () => be.NOOP,
|
|
@@ -3266,28 +3266,28 @@ var ps = _r((ys, yt) => {
|
|
|
3266
3266
|
get: () => et,
|
|
3267
3267
|
disabled: () => et
|
|
3268
3268
|
};
|
|
3269
|
-
function
|
|
3269
|
+
function Vn() {
|
|
3270
3270
|
return typeof window < "u" && window.Logger || Qe;
|
|
3271
3271
|
}
|
|
3272
|
-
const W =
|
|
3272
|
+
const W = Vn(), zn = [
|
|
3273
3273
|
"pip",
|
|
3274
3274
|
"uv",
|
|
3275
3275
|
"rye",
|
|
3276
3276
|
"poetry",
|
|
3277
3277
|
"pixi"
|
|
3278
|
-
],
|
|
3278
|
+
], qt = [
|
|
3279
3279
|
"normal",
|
|
3280
3280
|
"compact",
|
|
3281
3281
|
"medium",
|
|
3282
3282
|
"full",
|
|
3283
3283
|
"columns"
|
|
3284
|
-
],
|
|
3284
|
+
], Un = [
|
|
3285
3285
|
"auto",
|
|
3286
3286
|
"native",
|
|
3287
3287
|
"polars",
|
|
3288
3288
|
"lazy-polars",
|
|
3289
3289
|
"pandas"
|
|
3290
|
-
],
|
|
3290
|
+
], qn = m.object({
|
|
3291
3291
|
completion: m.object({
|
|
3292
3292
|
activate_on_typing: m.boolean().default(!0),
|
|
3293
3293
|
copilot: m.union([m.boolean(), m.enum(["github", "codeium", "custom"])]).default(!1).transform((t) => t === !0 ? "github" : t),
|
|
@@ -3309,8 +3309,7 @@ var ps = _r((ys, yt) => {
|
|
|
3309
3309
|
auto_instantiate: m.boolean().default(!0),
|
|
3310
3310
|
on_cell_change: m.enum(["lazy", "autorun"]).default("autorun"),
|
|
3311
3311
|
auto_reload: m.enum(["off", "lazy", "autorun"]).default("off"),
|
|
3312
|
-
watcher_on_save: m.enum(["lazy", "autorun"]).default("lazy")
|
|
3313
|
-
default_sql_output: m.enum(Bt).default("auto")
|
|
3312
|
+
watcher_on_save: m.enum(["lazy", "autorun"]).default("lazy")
|
|
3314
3313
|
}).passthrough().default({}),
|
|
3315
3314
|
display: m.object({
|
|
3316
3315
|
theme: m.enum(["light", "dark", "system"]).default("light"),
|
|
@@ -3318,10 +3317,10 @@ var ps = _r((ys, yt) => {
|
|
|
3318
3317
|
cell_output: m.enum(["above", "below"]).default("above"),
|
|
3319
3318
|
dataframes: m.enum(["rich", "plain"]).default("rich"),
|
|
3320
3319
|
default_table_page_size: m.number().default(10),
|
|
3321
|
-
default_width: m.enum(
|
|
3320
|
+
default_width: m.enum(qt).default("medium").transform((t) => t === "normal" ? "compact" : t)
|
|
3322
3321
|
}).passthrough().default({}),
|
|
3323
3322
|
package_management: m.object({
|
|
3324
|
-
manager: m.enum(
|
|
3323
|
+
manager: m.enum(zn).default("pip")
|
|
3325
3324
|
}).passthrough().default({ manager: "pip" }),
|
|
3326
3325
|
ai: m.object({
|
|
3327
3326
|
rules: m.string().default(""),
|
|
@@ -3356,9 +3355,9 @@ var ps = _r((ys, yt) => {
|
|
|
3356
3355
|
rules: "",
|
|
3357
3356
|
open_ai: {}
|
|
3358
3357
|
}
|
|
3359
|
-
}), Bn = m.string(), Hn = m.enum(
|
|
3358
|
+
}), Bn = m.string(), Hn = m.enum(Un).default("auto");
|
|
3360
3359
|
m.object({
|
|
3361
|
-
width: m.enum(
|
|
3360
|
+
width: m.enum(qt).default("medium").transform((t) => t === "normal" ? "compact" : t),
|
|
3362
3361
|
app_title: Bn.nullish(),
|
|
3363
3362
|
css_file: m.string().nullish(),
|
|
3364
3363
|
html_head_file: m.string().nullish(),
|
|
@@ -3366,16 +3365,16 @@ var ps = _r((ys, yt) => {
|
|
|
3366
3365
|
sql_output: Hn
|
|
3367
3366
|
}).default({ width: "medium", auto_download: [] });
|
|
3368
3367
|
function Wn() {
|
|
3369
|
-
return
|
|
3368
|
+
return qn.parse({});
|
|
3370
3369
|
}
|
|
3371
|
-
var Jn = Object.defineProperty, x = (t, e) => Jn(t, "name", { value: e, configurable: !0 }),
|
|
3370
|
+
var Jn = Object.defineProperty, x = (t, e) => Jn(t, "name", { value: e, configurable: !0 }), Bt = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
|
|
3372
3371
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
3373
3372
|
throw new Error('Dynamic require of "' + t + '" is not supported');
|
|
3374
3373
|
});
|
|
3375
|
-
function
|
|
3374
|
+
function Ht(t) {
|
|
3376
3375
|
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
3377
3376
|
}
|
|
3378
|
-
x(
|
|
3377
|
+
x(Ht, "_isNumber");
|
|
3379
3378
|
function X(t) {
|
|
3380
3379
|
return t.charAt(0).toUpperCase() + t.substring(1);
|
|
3381
3380
|
}
|
|
@@ -3386,9 +3385,9 @@ var ps = _r((ys, yt) => {
|
|
|
3386
3385
|
};
|
|
3387
3386
|
}
|
|
3388
3387
|
x(nt, "_getter");
|
|
3389
|
-
var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Yn = ["args"], Gn = ["evalOrigin"],
|
|
3388
|
+
var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Yn = ["args"], Gn = ["evalOrigin"], Ue = le.concat(fe, pe, Yn, Gn);
|
|
3390
3389
|
function j(t) {
|
|
3391
|
-
if (t) for (var e = 0; e <
|
|
3390
|
+
if (t) for (var e = 0; e < Ue.length; e++) t[Ue[e]] !== void 0 && this["set" + X(Ue[e])](t[Ue[e]]);
|
|
3392
3391
|
}
|
|
3393
3392
|
x(j, "StackFrame");
|
|
3394
3393
|
j.prototype = { getArgs: function() {
|
|
@@ -3419,7 +3418,7 @@ var ps = _r((ys, yt) => {
|
|
|
3419
3418
|
var te;
|
|
3420
3419
|
for (re = 0; re < fe.length; re++) j.prototype["get" + X(fe[re])] = nt(fe[re]), j.prototype["set" + X(fe[re])] = /* @__PURE__ */ function(t) {
|
|
3421
3420
|
return function(e) {
|
|
3422
|
-
if (!
|
|
3421
|
+
if (!Ht(e)) throw new TypeError(t + " must be a Number");
|
|
3423
3422
|
this[t] = Number(e);
|
|
3424
3423
|
};
|
|
3425
3424
|
}(fe[re]);
|
|
@@ -3430,7 +3429,7 @@ var ps = _r((ys, yt) => {
|
|
|
3430
3429
|
};
|
|
3431
3430
|
}(pe[ne]);
|
|
3432
3431
|
var ne, it = j;
|
|
3433
|
-
function
|
|
3432
|
+
function Wt() {
|
|
3434
3433
|
var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
|
|
3435
3434
|
return { parse: x(function(r) {
|
|
3436
3435
|
if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
|
|
@@ -3464,52 +3463,52 @@ var ps = _r((ys, yt) => {
|
|
|
3464
3463
|
}, this);
|
|
3465
3464
|
}, "ErrorStackParser$$parseFFOrSafari") };
|
|
3466
3465
|
}
|
|
3467
|
-
x(
|
|
3468
|
-
var Kn = new
|
|
3466
|
+
x(Wt, "ErrorStackParser");
|
|
3467
|
+
var Kn = new Wt(), Xn = Kn, z = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Jt = z && typeof yt < "u" && typeof yt.exports < "u" && typeof Bt < "u" && typeof __dirname < "u", Qn = z && !Jt, es = typeof Deno < "u", Yt = !z && !es, ts = Yt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", rs = Yt && typeof importScripts == "function" && typeof self == "object";
|
|
3469
3468
|
typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
|
|
3470
|
-
var
|
|
3469
|
+
var Gt, ft, Kt, Et, vt;
|
|
3471
3470
|
async function _t() {
|
|
3472
|
-
if (!z || (
|
|
3471
|
+
if (!z || (Gt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Et = await import("./__vite-browser-external-CPvbk0mb.js"), vt = await import("./__vite-browser-external-CPvbk0mb.js"), Kt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, ft = await import("./__vite-browser-external-CPvbk0mb.js"), wt = ft.sep, typeof Bt < "u")) return;
|
|
3473
3472
|
let t = Et, 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 };
|
|
3474
3473
|
globalThis.require = function(a) {
|
|
3475
3474
|
return s[a];
|
|
3476
3475
|
};
|
|
3477
3476
|
}
|
|
3478
3477
|
x(_t, "initNodeModules");
|
|
3479
|
-
function
|
|
3478
|
+
function Xt(t, e) {
|
|
3480
3479
|
return ft.resolve(e || ".", t);
|
|
3481
3480
|
}
|
|
3482
|
-
x(
|
|
3483
|
-
function
|
|
3481
|
+
x(Xt, "node_resolvePath");
|
|
3482
|
+
function Qt(t, e) {
|
|
3484
3483
|
return e === void 0 && (e = location), new URL(t, e).toString();
|
|
3485
3484
|
}
|
|
3486
|
-
x(
|
|
3485
|
+
x(Qt, "browser_resolvePath");
|
|
3487
3486
|
var pt;
|
|
3488
|
-
z ? pt =
|
|
3487
|
+
z ? pt = Xt : pt = Qt;
|
|
3489
3488
|
var wt;
|
|
3490
3489
|
z || (wt = "/");
|
|
3491
|
-
function
|
|
3490
|
+
function er(t, e) {
|
|
3492
3491
|
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)) };
|
|
3493
3492
|
}
|
|
3494
|
-
x(
|
|
3495
|
-
function
|
|
3493
|
+
x(er, "node_getBinaryResponse");
|
|
3494
|
+
function tr(t, e) {
|
|
3496
3495
|
let r = new URL(t, location);
|
|
3497
3496
|
return { response: fetch(r, e ? { integrity: e } : {}) };
|
|
3498
3497
|
}
|
|
3499
|
-
x(
|
|
3498
|
+
x(tr, "browser_getBinaryResponse");
|
|
3500
3499
|
var tt;
|
|
3501
|
-
z ? tt =
|
|
3502
|
-
async function
|
|
3500
|
+
z ? tt = er : tt = tr;
|
|
3501
|
+
async function rr(t, e) {
|
|
3503
3502
|
let { response: r, binary: n } = tt(t, e);
|
|
3504
3503
|
if (n) return n;
|
|
3505
3504
|
let s = await r;
|
|
3506
3505
|
if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
|
|
3507
3506
|
return new Uint8Array(await s.arrayBuffer());
|
|
3508
3507
|
}
|
|
3509
|
-
x(
|
|
3510
|
-
var
|
|
3511
|
-
if (ts)
|
|
3512
|
-
else if (rs)
|
|
3508
|
+
x(rr, "loadBinaryFile");
|
|
3509
|
+
var qe;
|
|
3510
|
+
if (ts) qe = x(async (t) => await import(t), "loadScript");
|
|
3511
|
+
else if (rs) qe = x(async (t) => {
|
|
3513
3512
|
try {
|
|
3514
3513
|
globalThis.importScripts(t);
|
|
3515
3514
|
} catch (e) {
|
|
@@ -3517,22 +3516,22 @@ var ps = _r((ys, yt) => {
|
|
|
3517
3516
|
else throw e;
|
|
3518
3517
|
}
|
|
3519
3518
|
}, "loadScript");
|
|
3520
|
-
else if (z)
|
|
3519
|
+
else if (z) qe = nr;
|
|
3521
3520
|
else throw new Error("Cannot determine runtime environment");
|
|
3522
|
-
async function
|
|
3523
|
-
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ?
|
|
3521
|
+
async function nr(t) {
|
|
3522
|
+
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Kt.runInThisContext(await (await fetch(t)).text()) : await import(Gt.pathToFileURL(t).href);
|
|
3524
3523
|
}
|
|
3525
|
-
x(
|
|
3526
|
-
async function
|
|
3524
|
+
x(nr, "nodeLoadScript");
|
|
3525
|
+
async function sr(t) {
|
|
3527
3526
|
if (z) {
|
|
3528
3527
|
await _t();
|
|
3529
3528
|
let e = await vt.readFile(t, { encoding: "utf8" });
|
|
3530
3529
|
return JSON.parse(e);
|
|
3531
3530
|
} else return await (await fetch(t)).json();
|
|
3532
3531
|
}
|
|
3533
|
-
x(
|
|
3534
|
-
async function
|
|
3535
|
-
if (
|
|
3532
|
+
x(sr, "loadLockFile");
|
|
3533
|
+
async function ar() {
|
|
3534
|
+
if (Jt) return __dirname;
|
|
3536
3535
|
let t;
|
|
3537
3536
|
try {
|
|
3538
3537
|
throw new Error();
|
|
@@ -3548,8 +3547,8 @@ var ps = _r((ys, yt) => {
|
|
|
3548
3547
|
if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
|
|
3549
3548
|
return e.slice(0, r);
|
|
3550
3549
|
}
|
|
3551
|
-
x(
|
|
3552
|
-
function
|
|
3550
|
+
x(ar, "calculateDirname");
|
|
3551
|
+
function ir(t) {
|
|
3553
3552
|
let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
|
|
3554
3553
|
if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
|
|
3555
3554
|
return r.mount.apply(null, arguments);
|
|
@@ -3613,8 +3612,8 @@ var ps = _r((ys, yt) => {
|
|
|
3613
3612
|
}, reconcile: async (a, i, o) => {
|
|
3614
3613
|
let d = 0, c = [];
|
|
3615
3614
|
Object.keys(i.entries).forEach(function(S) {
|
|
3616
|
-
let I = i.entries[S],
|
|
3617
|
-
(!
|
|
3615
|
+
let I = i.entries[S], U = o.entries[S];
|
|
3616
|
+
(!U || e.isFile(I.mode) && I.timestamp.getTime() > U.timestamp.getTime()) && (c.push(S), d++);
|
|
3618
3617
|
}), c.sort();
|
|
3619
3618
|
let l = [];
|
|
3620
3619
|
if (Object.keys(o.entries).forEach(function(S) {
|
|
@@ -3624,11 +3623,11 @@ var ps = _r((ys, yt) => {
|
|
|
3624
3623
|
for (let S of c) {
|
|
3625
3624
|
let I = n.normalize(S.replace(a.mountpoint, "/")).substring(1);
|
|
3626
3625
|
if (o.type === "local") {
|
|
3627
|
-
let
|
|
3626
|
+
let U = b.get(I), Ve = await s.loadRemoteEntry(U);
|
|
3628
3627
|
s.storeLocalEntry(S, Ve);
|
|
3629
3628
|
} else {
|
|
3630
|
-
let
|
|
3631
|
-
await s.storeRemoteEntry(b, I,
|
|
3629
|
+
let U = s.loadLocalEntry(S);
|
|
3630
|
+
await s.storeRemoteEntry(b, I, U);
|
|
3632
3631
|
}
|
|
3633
3632
|
}
|
|
3634
3633
|
for (let S of l) if (o.type === "local") s.removeLocalEntry(S);
|
|
@@ -3639,7 +3638,7 @@ var ps = _r((ys, yt) => {
|
|
|
3639
3638
|
} };
|
|
3640
3639
|
t.FS.filesystems.NATIVEFS_ASYNC = s;
|
|
3641
3640
|
}
|
|
3642
|
-
x(
|
|
3641
|
+
x(ir, "initializeNativeFS");
|
|
3643
3642
|
var ns = x(async (t) => {
|
|
3644
3643
|
let e = [];
|
|
3645
3644
|
async function r(s) {
|
|
@@ -3654,14 +3653,14 @@ var ps = _r((ys, yt) => {
|
|
|
3654
3653
|
}
|
|
3655
3654
|
return n;
|
|
3656
3655
|
}, "getFsHandles");
|
|
3657
|
-
function
|
|
3658
|
-
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun:
|
|
3656
|
+
function or(t) {
|
|
3657
|
+
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: fr(t), quit(r, n) {
|
|
3659
3658
|
throw e.exited = { status: r, toThrow: n }, n;
|
|
3660
|
-
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm:
|
|
3659
|
+
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: pr(t.indexURL) };
|
|
3661
3660
|
return e;
|
|
3662
3661
|
}
|
|
3663
|
-
x(
|
|
3664
|
-
function
|
|
3662
|
+
x(or, "createSettings");
|
|
3663
|
+
function dr(t) {
|
|
3665
3664
|
return function(e) {
|
|
3666
3665
|
let r = "/";
|
|
3667
3666
|
try {
|
|
@@ -3672,14 +3671,14 @@ var ps = _r((ys, yt) => {
|
|
|
3672
3671
|
e.FS.chdir(t);
|
|
3673
3672
|
};
|
|
3674
3673
|
}
|
|
3675
|
-
x(
|
|
3676
|
-
function
|
|
3674
|
+
x(dr, "createHomeDirectory");
|
|
3675
|
+
function cr(t) {
|
|
3677
3676
|
return function(e) {
|
|
3678
3677
|
Object.assign(e.ENV, t);
|
|
3679
3678
|
};
|
|
3680
3679
|
}
|
|
3681
|
-
x(
|
|
3682
|
-
function
|
|
3680
|
+
x(cr, "setEnvironment");
|
|
3681
|
+
function ur(t) {
|
|
3683
3682
|
return t ? [async (e) => {
|
|
3684
3683
|
e.addRunDependency("fsInitHook");
|
|
3685
3684
|
try {
|
|
@@ -3689,9 +3688,9 @@ var ps = _r((ys, yt) => {
|
|
|
3689
3688
|
}
|
|
3690
3689
|
}] : [];
|
|
3691
3690
|
}
|
|
3692
|
-
x(
|
|
3693
|
-
function
|
|
3694
|
-
let e =
|
|
3691
|
+
x(ur, "callFsInitHook");
|
|
3692
|
+
function lr(t) {
|
|
3693
|
+
let e = rr(t);
|
|
3695
3694
|
return async (r) => {
|
|
3696
3695
|
let n = r._py_version_major(), s = r._py_version_minor();
|
|
3697
3696
|
r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
|
|
@@ -3705,13 +3704,13 @@ var ps = _r((ys, yt) => {
|
|
|
3705
3704
|
}
|
|
3706
3705
|
};
|
|
3707
3706
|
}
|
|
3708
|
-
x(
|
|
3709
|
-
function
|
|
3707
|
+
x(lr, "installStdlib");
|
|
3708
|
+
function fr(t) {
|
|
3710
3709
|
let e;
|
|
3711
|
-
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...
|
|
3710
|
+
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...ur(t.fsInit), lr(e), dr(t.env.HOME), cr(t.env), ir];
|
|
3712
3711
|
}
|
|
3713
|
-
x(
|
|
3714
|
-
function
|
|
3712
|
+
x(fr, "getFileSystemInitializationFuncs");
|
|
3713
|
+
function pr(t) {
|
|
3715
3714
|
if (typeof WasmOffsetConverter < "u") return;
|
|
3716
3715
|
let { binary: e, response: r } = tt(t + "pyodide.asm.wasm");
|
|
3717
3716
|
return function(n, s) {
|
|
@@ -3727,19 +3726,19 @@ var ps = _r((ys, yt) => {
|
|
|
3727
3726
|
}(), {};
|
|
3728
3727
|
};
|
|
3729
3728
|
}
|
|
3730
|
-
x(
|
|
3729
|
+
x(pr, "getInstantiateWasmFunc");
|
|
3731
3730
|
var ht = "0.27.5";
|
|
3732
3731
|
async function mt(t = {}) {
|
|
3733
3732
|
var e, r;
|
|
3734
3733
|
await _t();
|
|
3735
|
-
let n = t.indexURL || await
|
|
3734
|
+
let n = t.indexURL || await ar();
|
|
3736
3735
|
n = pt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
|
|
3737
3736
|
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);
|
|
3738
3737
|
(e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
|
|
3739
|
-
let i =
|
|
3740
|
-
if (o.lockFilePromise =
|
|
3738
|
+
let i = or(a), o = i.API;
|
|
3739
|
+
if (o.lockFilePromise = sr(a.lockFileURL), typeof _createPyodideModule != "function") {
|
|
3741
3740
|
let S = `${a.indexURL}pyodide.asm.js`;
|
|
3742
|
-
await
|
|
3741
|
+
await qe(S);
|
|
3743
3742
|
}
|
|
3744
3743
|
let d;
|
|
3745
3744
|
if (t._loadSnapshot) {
|
|
@@ -4021,11 +4020,11 @@ ${e}`;
|
|
|
4021
4020
|
});
|
|
4022
4021
|
}
|
|
4023
4022
|
}
|
|
4024
|
-
const Be = us(),
|
|
4023
|
+
const Be = us(), hr = new Ln(
|
|
4025
4024
|
(t) => {
|
|
4026
4025
|
we.send.kernelMessage({ message: t });
|
|
4027
4026
|
}
|
|
4028
|
-
), Rt = new
|
|
4027
|
+
), Rt = new _r(), ls = {
|
|
4029
4028
|
/**
|
|
4030
4029
|
* Start the session
|
|
4031
4030
|
*/
|
|
@@ -4038,7 +4037,7 @@ ${e}`;
|
|
|
4038
4037
|
filename: `app-${t.appId}.py`
|
|
4039
4038
|
}), r = await self.controller.startSession({
|
|
4040
4039
|
...e,
|
|
4041
|
-
onMessage:
|
|
4040
|
+
onMessage: hr.push
|
|
4042
4041
|
});
|
|
4043
4042
|
Rt.resolve(r), we.send.initialized({});
|
|
4044
4043
|
} catch (e) {
|
|
@@ -4074,15 +4073,15 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
|
|
|
4074
4073
|
);
|
|
4075
4074
|
return typeof a == "string" ? JSON.parse(a) : a;
|
|
4076
4075
|
}
|
|
4077
|
-
}, we =
|
|
4078
|
-
transport:
|
|
4079
|
-
transportId:
|
|
4076
|
+
}, we = jn({
|
|
4077
|
+
transport: Fn({
|
|
4078
|
+
transportId: Dn
|
|
4080
4079
|
}),
|
|
4081
4080
|
requestHandler: ls
|
|
4082
4081
|
});
|
|
4083
4082
|
we.send("ready", {});
|
|
4084
4083
|
we.addMessageListener("consumerReady", async () => {
|
|
4085
|
-
await Be,
|
|
4084
|
+
await Be, hr.start();
|
|
4086
4085
|
});
|
|
4087
4086
|
function fs() {
|
|
4088
4087
|
return self.name;
|