@marimo-team/islands 0.25.3-dev322 → 0.25.3-dev348
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-DkXBUBf3.js → ConnectedDataExplorerComponent-xliyyXNO.js} +16 -16
- package/dist/{ErrorBoundary-CYa6lyKz.js → ErrorBoundary-CIimOpqs.js} +7 -7
- package/dist/{abnfDiagram-VCTEODGH-BPS-pTU2.js → abnfDiagram-VCTEODGH-Dl9Nrtbf.js} +2 -2
- package/dist/{any-language-editor-DIS7IdV1.js → any-language-editor-CBHhdCC0.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-DB2MHOb7.js → architectureDiagram-5GKGNRK7-DTg032fQ.js} +1 -1
- package/dist/{assertNever-HbUt8DyH.js → assertNever-ie77PjMn.js} +13 -13
- package/dist/{chat-ui-85k50jaj.js → chat-ui-BV0qyfru.js} +51 -51
- package/dist/{check-CApDh1-n.js → check-DTIv5ZZ3.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CjFCedjx.js → chunk-IMKFNOWR-CsFB-2LW.js} +1 -1
- package/dist/{chunk-SHT3W25Y-Dptltg0_.js → chunk-SHT3W25Y-ByuJHeBL.js} +1 -1
- package/dist/{chunk-SVP7TREG-2jBN760m.js → chunk-SVP7TREG-9oBZhbrr.js} +1 -1
- package/dist/{chunk-TICWLB2K-CS8BE-b9.js → chunk-TICWLB2K-Bx4m0cJ1.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-HtQWp-Cm.js → classDiagram-ZZMXUADV-Cms37-C9.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DA9LETN-.js → classDiagram-v2-VYDZK3BY-qAom4Bi7.js} +2 -2
- package/dist/{code-visibility-CGcIJMGj.js → code-visibility-_-8-dvb4.js} +20 -20
- package/dist/{common-B-Ng3J3K.js → common-CNXuhphD.js} +620 -620
- package/dist/{config-B171m9zn.js → config-CvBnR945.js} +3 -3
- package/dist/{copy-icon-k2_Fx5Qv.js → copy-icon-DmtNidSa.js} +2 -2
- package/dist/{createReducer-BPPI11pP.js → createReducer-BxBCTvKn.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-eyocrg_E.js → cynefinDiagram-5FMLGOSQ-BjJZwMEz.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Dtm96Nvx.js → dagre-GXQ25YYZ-Bohu7_09.js} +1 -1
- package/dist/{data-grid-overlay-editor-CUD6F0Vj.js → data-grid-overlay-editor--4Gk_rwA.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-C09TrdNO.js → diagram-S7CK7UJ4-Chl0n835.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-vHUsSML6.js → diagram-UQ7AKVKN-DHx8nzy7.js} +1 -1
- package/dist/{diagram-VX7I27RA-Ch4mRgz8.js → diagram-VX7I27RA-CKdpv1U4.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DyFQNdAL.js → diagram-Z3DM3KII-sY-sI--2.js} +1 -1
- package/dist/{dialog-C2Muh059.js → dialog-Cqu5Hp5U.js} +21 -21
- package/dist/{dropdown-menu-BGbNnuFq.js → dropdown-menu-DXEYk99S.js} +707 -707
- package/dist/{ebnfDiagram-PWID7BFC-N3SvlrCs.js → ebnfDiagram-PWID7BFC-CD0P2xeH.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-RR2q2xtd.js → erDiagram-RLTQ6QDP-BaKQuYxC.js} +1 -1
- package/dist/{error-banner-3_4Lc93Y.js → error-banner-DUB_qUeL.js} +58 -58
- package/dist/{error-entries-BhNAZWU1.js → error-entries-CTb_cxXY.js} +310 -310
- package/dist/{feedback-button-DK6zUzAk.js → feedback-button-BaA4r2dl.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-nxd7WhlW.js → flowDiagram-HODETNUW-BcCpHh7-.js} +2 -2
- package/dist/{formats-aUcw6MrS.js → formats-hF6fETr6.js} +1 -1
- package/dist/{glide-data-editor-O-94UN5R.js → glide-data-editor-CRn3KXyR.js} +3129 -3119
- package/dist/{glide-utils-D4UP8TGv.js → glide-utils-Bnd_k48H.js} +2 -2
- package/dist/{globals-BVjYePCn.js → globals-_FmD97Ui.js} +3 -3
- package/dist/{html-to-image-DOOtP-4-.js → html-to-image-Bbl0PeC7.js} +478 -478
- package/dist/{infoDiagram-27XIBGKW-CUYXQKGf.js → infoDiagram-27XIBGKW-DWltseIa.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-v6gsCrlK.js → ishikawaDiagram-5VMMS53U-DHgepBPo.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-z236-0Ok.js → kanban-definition-UXKFOSKX-B2_BIjBq.js} +1 -1
- package/dist/main.js +6712 -6590
- package/dist/{mermaid-C7lQ_2LJ.js → mermaid--2K0cmt9.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX--pZF7OCY.js → mindmap-definition-YA3MSWOX-DNebycIP.js} +1 -1
- package/dist/{number-overlay-editor-jkzzCN4e.js → number-overlay-editor-Bcg25qrp.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-Bgw0Zz_6.js → pegDiagram-XKGWAZYB-CH4U3II-.js} +2 -2
- package/dist/{pencil-RXFY-Ek8.js → pencil-MMnw1YQh.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-B27tDYvK.js → pieDiagram-E7YTZNPT-pfcrdUCa.js} +1 -1
- package/dist/{process-output-CiX_Dl4L.js → process-output-Dw_sI4Xp.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-CBjPhGpj.js → railroadDiagram-O6MQD6OU-BZKpAbNG.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DDDrLEw9.js → requirementDiagram-BXWQKSXE-DnyfIHe3.js} +1 -1
- package/dist/{reveal-component-CvPmNI5C.js → reveal-component-BVC491am.js} +18 -18
- package/dist/{select-Cv6lR39D.js → select-suaAxFuo.js} +286 -286
- package/dist/{sequenceDiagram-WJ2MYXX4-DQPaMygQ.js → sequenceDiagram-WJ2MYXX4-BeYuWX7N.js} +1 -1
- package/dist/{spec-BoCLWa-M.js → spec-BQNx2-D7.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BDoDVVnq.js → stateDiagram-D77RDMKH-B8FxwAM2.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-KNko46uJ.js → stateDiagram-v2-MP3YSRHH-CzWLBqm1.js} +2 -2
- package/dist/{static-state-DgdOadIH.js → static-state-Al_hmf1n.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-boFjOuiI.js → swimlanes-42K2YHIH-CzKmGMts.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BC4FLNwY.js → swimlanesDiagram-VR7AAH4N-DnWIUN_9.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-CLVPYA-v.js → timeline-definition-24CTP7MA-Czf2QN2R.js} +1 -1
- package/dist/{toast-CUuX7uXg.js → toast-CsJa1nGj.js} +66 -66
- package/dist/{tooltip-DBv8QUvS.js → tooltip-BVbJPkcl.js} +49 -49
- package/dist/{use-restore-focus-BxJh5Zfa.js → use-restore-focus-tPmARo1Q.js} +1035 -1022
- package/dist/{useDateFormatter-2k4mHRBq.js → useDateFormatter-B4ygYuUU.js} +2 -2
- package/dist/{useDeepCompareMemoize-Cb2GRQIS.js → useDeepCompareMemoize-Bcu0DkCS.js} +1 -1
- package/dist/{useLifecycle-B2fV3c8N.js → useLifecycle-MTdtnR3-.js} +1 -1
- package/dist/{vega-component-do3stf0K.js → vega-component-BhBbP4S7.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-BLq7sNjb.js → vennDiagram-4TSXK5OY-BrHqWB1U.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-oyJEWWtb.js → wardleyDiagram-VM6X3IG4-Cms1K_3v.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DMjWgQPm.js → xychartDiagram-S5SC5T6Z-_kUiODzS.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +0 -2
- package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
- package/src/components/chat/chat-panel.tsx +33 -15
- package/src/components/chat/notebook-context.ts +80 -0
- package/src/components/editor/cell/StopButton.tsx +3 -3
- package/src/components/editor/cell/cell-context-menu.tsx +18 -2
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +38 -1
- package/src/components/editor/cell/code/cell-editor.tsx +2 -1
- package/src/components/editor/cell/code/language-toggle.tsx +6 -4
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +9 -6
- package/src/components/slides/slide-cell-view.tsx +2 -1
- package/src/components/ui/__tests__/fullscreen.test.tsx +56 -1
- package/src/components/ui/fullscreen.tsx +18 -2
- package/src/components/ui/slider.tsx +6 -2
- package/src/core/codemirror/copilot/getCodes.ts +1 -1
- package/src/core/edit-app.tsx +5 -4
- package/src/core/executions/__tests__/input.test.ts +1 -1
- package/src/core/executions/__tests__/interrupt.test.ts +200 -0
- package/src/core/executions/__tests__/run.test.ts +3 -3
- package/src/core/executions/index.ts +1 -0
- package/src/core/executions/interrupt.ts +49 -0
- package/src/core/islands/bridge.ts +0 -2
- package/src/core/network/requests-network.ts +0 -15
- package/src/core/network/requests-static.ts +0 -2
- package/src/core/network/requests-toasting.tsx +0 -2
- package/src/core/network/types.ts +0 -3
- package/src/core/notebook/document/__tests__/model.test.ts +4 -4
- package/src/core/notebook/document/__tests__/test-host.test.ts +6 -6
- package/src/core/notebook/document/__tests__/test-host.ts +42 -46
- package/src/core/notebook/document/__tests__/test-notebook.ts +5 -4
- package/src/core/notebook/document/sync.ts +12 -5
- package/src/core/notebook/replica/__tests__/fixtures.ts +8 -0
- package/src/core/notebook/replica/backend.ts +1 -1
- package/src/core/saving/__tests__/document.test.tsx +1 -1
- package/src/core/transports/__tests__/static.test.ts +1 -1
- package/src/core/transports/__tests__/wasm.test.ts +1 -1
- package/src/core/transports/static.ts +8 -2
- package/src/core/transports/wasm.ts +2 -4
- package/src/core/wasm/__tests__/bridge.test.ts +170 -26
- package/src/core/wasm/bridge.ts +64 -19
- package/src/core/wasm/worker/types.ts +0 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +32 -21
- package/src/plugins/impl/SliderPlugin.tsx +35 -3
- package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +103 -12
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +40 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +159 -4
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +30 -10
- package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
- package/src/plugins/layout/AccordionPlugin.tsx +2 -1
- package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
|
@@ -2,19 +2,19 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as t, h as n, p as r } from "./button-qQhINE7z.js";
|
|
3
3
|
import { t as i } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as a } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { i as o } from "./copy-icon-
|
|
6
|
-
import { f as s, h as c } from "./tooltip-
|
|
7
|
-
import { t as l } from "./check-
|
|
8
|
-
import { n as u, r as d } from "./assertNever-
|
|
5
|
+
import { i as o } from "./copy-icon-DmtNidSa.js";
|
|
6
|
+
import { f as s, h as c } from "./tooltip-BVbJPkcl.js";
|
|
7
|
+
import { t as l } from "./check-DTIv5ZZ3.js";
|
|
8
|
+
import { n as u, r as d } from "./assertNever-ie77PjMn.js";
|
|
9
9
|
import { t as f } from "./jsx-runtime-D8btoEHk.js";
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as le } from "./createReducer-
|
|
10
|
+
import { Bt as p, Ct as m, Lt as h, Mt as g, Nt as _, Ot as v, Pt as y, Tt as b, bt as x, dn as S, f as ee, fn as te, gn as ne, hn as re, kt as ie, pn as C, wt as ae, xt as w } from "./use-restore-focus-tPmARo1Q.js";
|
|
11
|
+
import { n as oe } from "./toast-CsJa1nGj.js";
|
|
12
|
+
import { t as se } from "./objects-DCmMvZtn.js";
|
|
13
|
+
import { t as T } from "./invariant-DLmrl-hA.js";
|
|
14
|
+
import { t as ce } from "./purify.es-DmnrIjg4.js";
|
|
15
|
+
import { t as le } from "./createReducer-BxBCTvKn.js";
|
|
16
16
|
import { M as ue, N as de, V as fe, g as pe } from "./dist-B_xgcU0N.js";
|
|
17
|
-
import { a as me, i as he, l as ge, m as _e, u as ve } from "./static-state-
|
|
17
|
+
import { a as me, i as he, l as ge, m as _e, u as ve } from "./static-state-Al_hmf1n.js";
|
|
18
18
|
import { t as ye } from "./capabilities-DKqMqBzm.js";
|
|
19
19
|
var be = c("external-link", [
|
|
20
20
|
["path", {
|
|
@@ -35,9 +35,9 @@ var be = c("external-link", [
|
|
|
35
35
|
}]]), E = /* @__PURE__ */ e(i(), 1), D = f(), Se = Object.defineProperty, O = (e, t) => Se(e, "name", {
|
|
36
36
|
value: t,
|
|
37
37
|
configurable: !0
|
|
38
|
-
}), Ce = "Checkbox", [we, Te] = re(Ce), [Ee,
|
|
39
|
-
function
|
|
40
|
-
let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] =
|
|
38
|
+
}), Ce = "Checkbox", [we, Te] = re(Ce), [Ee, De] = we(Ce);
|
|
39
|
+
function Oe(e) {
|
|
40
|
+
let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = te({
|
|
41
41
|
prop: n,
|
|
42
42
|
defaultProp: i ?? !1,
|
|
43
43
|
onChange: c,
|
|
@@ -54,7 +54,7 @@ function De(e) {
|
|
|
54
54
|
userClick: v,
|
|
55
55
|
onUserClick: y,
|
|
56
56
|
required: l,
|
|
57
|
-
defaultChecked: !
|
|
57
|
+
defaultChecked: !k(i) && i,
|
|
58
58
|
isFormControl: b,
|
|
59
59
|
bubbleInput: g,
|
|
60
60
|
setBubbleInput: _
|
|
@@ -62,12 +62,12 @@ function De(e) {
|
|
|
62
62
|
return /* @__PURE__ */ (0, D.jsx)(Ee, {
|
|
63
63
|
scope: t,
|
|
64
64
|
...x,
|
|
65
|
-
children:
|
|
65
|
+
children: Ie(d) ? d(x) : r
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
O(
|
|
69
|
-
var
|
|
70
|
-
let { control: o, value: s, disabled: c, checked: l, required: u, setControl: d, setChecked: f, onUserClick: p, isFormControl: m, bubbleInput: h } =
|
|
68
|
+
O(Oe, "CheckboxProvider");
|
|
69
|
+
var ke = "CheckboxTrigger", Ae = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(function({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...i }, a) {
|
|
70
|
+
let { control: o, value: s, disabled: c, checked: l, required: u, setControl: d, setChecked: f, onUserClick: p, isFormControl: m, bubbleInput: h } = De(ke, e), g = r(a, d), _ = E.useRef(l);
|
|
71
71
|
return E.useEffect(() => {
|
|
72
72
|
let e = o?.form;
|
|
73
73
|
if (e) {
|
|
@@ -77,28 +77,28 @@ var Oe = "CheckboxTrigger", ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(
|
|
|
77
77
|
}, [o, f]), /* @__PURE__ */ (0, D.jsx)(ne.button, {
|
|
78
78
|
type: "button",
|
|
79
79
|
role: "checkbox",
|
|
80
|
-
"aria-checked":
|
|
80
|
+
"aria-checked": k(l) ? "mixed" : l,
|
|
81
81
|
"aria-required": u,
|
|
82
|
-
"data-state":
|
|
82
|
+
"data-state": Le(l),
|
|
83
83
|
"data-disabled": c ? "" : void 0,
|
|
84
84
|
disabled: c,
|
|
85
85
|
value: s,
|
|
86
86
|
...i,
|
|
87
87
|
ref: g,
|
|
88
|
-
onKeyDown:
|
|
88
|
+
onKeyDown: C(t, (e) => {
|
|
89
89
|
e.key === "Enter" && e.preventDefault();
|
|
90
90
|
}),
|
|
91
|
-
onClick:
|
|
91
|
+
onClick: C(n, (e) => {
|
|
92
92
|
let t = e.isPropagationStopped();
|
|
93
93
|
p({
|
|
94
|
-
requestedChecked:
|
|
94
|
+
requestedChecked: k(l) ? !0 : !l,
|
|
95
95
|
hasConsumerStoppedPropagation: t
|
|
96
|
-
}), f((e) =>
|
|
96
|
+
}), f((e) => k(e) ? !0 : !e), h && m && (t || e.stopPropagation());
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
|
-
}, "CheckboxTrigger")),
|
|
99
|
+
}, "CheckboxTrigger")), je = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
100
100
|
let { __scopeCheckbox: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
|
|
101
|
-
return /* @__PURE__ */ (0, D.jsx)(
|
|
101
|
+
return /* @__PURE__ */ (0, D.jsx)(Oe, {
|
|
102
102
|
__scopeCheckbox: n,
|
|
103
103
|
checked: i,
|
|
104
104
|
defaultChecked: a,
|
|
@@ -108,18 +108,18 @@ var Oe = "CheckboxTrigger", ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(
|
|
|
108
108
|
name: r,
|
|
109
109
|
form: u,
|
|
110
110
|
value: c,
|
|
111
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(
|
|
111
|
+
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0, D.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, D.jsx)(Ae, {
|
|
112
112
|
...d,
|
|
113
113
|
ref: t,
|
|
114
114
|
__scopeCheckbox: n
|
|
115
|
-
}), e && /* @__PURE__ */ (0, D.jsx)(
|
|
115
|
+
}), e && /* @__PURE__ */ (0, D.jsx)(Fe, { __scopeCheckbox: n })] })
|
|
116
116
|
});
|
|
117
|
-
}, "Checkbox")),
|
|
118
|
-
let { __scopeCheckbox: n, forceMount: r, ...i } = e, a =
|
|
119
|
-
return /* @__PURE__ */ (0, D.jsx)(
|
|
120
|
-
present: r ||
|
|
117
|
+
}, "Checkbox")), Me = "CheckboxIndicator", Ne = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
118
|
+
let { __scopeCheckbox: n, forceMount: r, ...i } = e, a = De(Me, n);
|
|
119
|
+
return /* @__PURE__ */ (0, D.jsx)(S, {
|
|
120
|
+
present: r || k(a.checked) || a.checked === !0,
|
|
121
121
|
children: /* @__PURE__ */ (0, D.jsx)(ne.span, {
|
|
122
|
-
"data-state":
|
|
122
|
+
"data-state": Le(a.checked),
|
|
123
123
|
"data-disabled": a.disabled ? "" : void 0,
|
|
124
124
|
...i,
|
|
125
125
|
ref: t,
|
|
@@ -129,8 +129,8 @@ var Oe = "CheckboxTrigger", ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(
|
|
|
129
129
|
}
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
}, "CheckboxIndicator")),
|
|
133
|
-
let { control: a, userClick: o, checked: c, defaultChecked: l, required: u, disabled: d, name: f, value: p, form: m, bubbleInput: h, setBubbleInput: g } =
|
|
132
|
+
}, "CheckboxIndicator")), Pe = "CheckboxBubbleInput", Fe = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(function({ __scopeCheckbox: e, onClick: t, ...n }, i) {
|
|
133
|
+
let { control: a, userClick: o, checked: c, defaultChecked: l, required: u, disabled: d, name: f, value: p, form: m, bubbleInput: h, setBubbleInput: g } = De(Pe, e), _ = r(i, g), v = s(a), y = E.useRef(!1), b = E.useRef(c), x = E.useRef(o), S = E.useRef(null);
|
|
134
134
|
E.useEffect(() => {
|
|
135
135
|
let e = h;
|
|
136
136
|
if (!e) return;
|
|
@@ -139,23 +139,23 @@ var Oe = "CheckboxTrigger", ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(
|
|
|
139
139
|
let r = b.current !== c;
|
|
140
140
|
b.current = c;
|
|
141
141
|
let i = o !== null && o !== x.current;
|
|
142
|
-
if (x.current = o, i) S.current = r ? null : o, r && (e.indeterminate =
|
|
142
|
+
if (x.current = o, i) S.current = r ? null : o, r && (e.indeterminate = k(c), n.call(e, !k(c) && c)), e.dispatchEvent(new Event("click", { bubbles: !o.hasConsumerStoppedPropagation }));
|
|
143
143
|
else if (r) {
|
|
144
144
|
let t = S.current;
|
|
145
145
|
S.current = null;
|
|
146
146
|
let r = t?.requestedChecked === c;
|
|
147
|
-
y.current = !0, e.indeterminate =
|
|
147
|
+
y.current = !0, e.indeterminate = k(c), n.call(e, !k(c) && c), e.dispatchEvent(new Event("click", { bubbles: !(r && t.hasConsumerStoppedPropagation) })), y.current = !1;
|
|
148
148
|
}
|
|
149
149
|
}, [
|
|
150
150
|
h,
|
|
151
151
|
c,
|
|
152
152
|
o
|
|
153
153
|
]);
|
|
154
|
-
let
|
|
154
|
+
let ee = E.useRef(!k(c) && c);
|
|
155
155
|
return /* @__PURE__ */ (0, D.jsx)(ne.input, {
|
|
156
156
|
type: "checkbox",
|
|
157
157
|
"aria-hidden": !0,
|
|
158
|
-
defaultChecked: l ??
|
|
158
|
+
defaultChecked: l ?? ee.current,
|
|
159
159
|
required: u,
|
|
160
160
|
disabled: d,
|
|
161
161
|
name: f,
|
|
@@ -164,7 +164,7 @@ var Oe = "CheckboxTrigger", ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(
|
|
|
164
164
|
...n,
|
|
165
165
|
tabIndex: -1,
|
|
166
166
|
ref: _,
|
|
167
|
-
onClick:
|
|
167
|
+
onClick: C(t, (e) => {
|
|
168
168
|
y.current && e.stopPropagation();
|
|
169
169
|
}),
|
|
170
170
|
style: {
|
|
@@ -178,33 +178,33 @@ var Oe = "CheckboxTrigger", ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ O(
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}, "CheckboxBubbleInput"));
|
|
181
|
-
function
|
|
181
|
+
function Ie(e) {
|
|
182
182
|
return typeof e == "function";
|
|
183
183
|
}
|
|
184
|
-
O(
|
|
185
|
-
function
|
|
184
|
+
O(Ie, "isFunction");
|
|
185
|
+
function k(e) {
|
|
186
186
|
return e === "indeterminate";
|
|
187
187
|
}
|
|
188
|
-
O(
|
|
189
|
-
function
|
|
190
|
-
return
|
|
188
|
+
O(k, "isIndeterminate");
|
|
189
|
+
function Le(e) {
|
|
190
|
+
return k(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
191
191
|
}
|
|
192
|
-
O(
|
|
192
|
+
O(Le, "getState");
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region src/core/notebook/replica/connection.ts
|
|
195
|
-
var
|
|
195
|
+
var A = {
|
|
196
196
|
NOT_STARTED: "NOT_STARTED",
|
|
197
197
|
CONNECTING: "CONNECTING",
|
|
198
198
|
OPEN: "OPEN",
|
|
199
199
|
CLOSED: "CLOSED"
|
|
200
|
-
},
|
|
200
|
+
}, Re = {
|
|
201
201
|
KERNEL_DISCONNECTED: "KERNEL_DISCONNECTED",
|
|
202
202
|
KERNEL_STARTUP_ERROR: "KERNEL_STARTUP_ERROR"
|
|
203
|
-
},
|
|
203
|
+
}, ze = {
|
|
204
204
|
sourceChanged: !1,
|
|
205
205
|
inputsChanged: !1
|
|
206
206
|
};
|
|
207
|
-
function
|
|
207
|
+
function Be(e) {
|
|
208
208
|
let t = /* @__PURE__ */ new Map();
|
|
209
209
|
for (let n of e.executions.values()) for (let e of n.variables.values()) {
|
|
210
210
|
let n = t.get(e.name);
|
|
@@ -212,8 +212,8 @@ function ze(e) {
|
|
|
212
212
|
}
|
|
213
213
|
return t;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
let t =
|
|
215
|
+
function Ve(e) {
|
|
216
|
+
let t = Be(e.executions), n = /* @__PURE__ */ new Map(), r = (t) => e.executions.executions.get(t)?.record;
|
|
217
217
|
function i(e, n) {
|
|
218
218
|
let i = new Set(n).add(e.id);
|
|
219
219
|
for (let [n, a] of Object.entries(e.depends_on)) {
|
|
@@ -250,12 +250,12 @@ function Be(e) {
|
|
|
250
250
|
}
|
|
251
251
|
return (t) => {
|
|
252
252
|
let n = e.results.get(t);
|
|
253
|
-
return n == null ?
|
|
253
|
+
return n == null ? ze : o(n, /* @__PURE__ */ new Set());
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
//#endregion
|
|
257
257
|
//#region src/utils/time.ts
|
|
258
|
-
var
|
|
258
|
+
var He = class e {
|
|
259
259
|
ms;
|
|
260
260
|
static fromMilliseconds(t) {
|
|
261
261
|
return t == null ? null : new e(t);
|
|
@@ -284,125 +284,125 @@ var Ve = class e {
|
|
|
284
284
|
};
|
|
285
285
|
//#endregion
|
|
286
286
|
//#region src/core/executions/select.ts
|
|
287
|
-
function
|
|
287
|
+
function Ue(e) {
|
|
288
288
|
let t = e.outcome;
|
|
289
289
|
return t === null ? null : t.kind;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return e === null ? null :
|
|
291
|
+
function We(e) {
|
|
292
|
+
return e === null ? null : He.parse(e).toMilliseconds();
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Ge(e, t) {
|
|
295
295
|
let n = e.latest.get(t);
|
|
296
296
|
return n === void 0 ? null : e.executions.get(n) ?? null;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Ke(e, t) {
|
|
299
299
|
let n = e.cells.get(t);
|
|
300
300
|
return n !== void 0 && !n.config.disabled && !e.blocked.has(t);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
if (!
|
|
302
|
+
function qe(e, t) {
|
|
303
|
+
if (!Ke(e, t)) return !1;
|
|
304
304
|
if (e.requested.has(t)) return !0;
|
|
305
|
-
let n =
|
|
305
|
+
let n = Ge(e.executions, t)?.record.run_id ?? e.results.get(t)?.run_id;
|
|
306
306
|
for (let r of e.executions.runs.values()) if (r.status !== "completed" && r.id !== n && r.cells.includes(t)) return !0;
|
|
307
307
|
return !1;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
let n =
|
|
311
|
-
n !== null && n.record.status !== "completed" ? (i = n.record.status, a =
|
|
312
|
-
let s = i === "idle", c = s && r !== null && r.started_at !== null && r.completed_at !== null ?
|
|
309
|
+
function Je(e, t) {
|
|
310
|
+
let n = Ge(e.executions, t), r = e.results.get(t) ?? null, i = "idle", a = r === null ? null : We(r.started_at), o = !1;
|
|
311
|
+
n !== null && n.record.status !== "completed" ? (i = n.record.status, a = We(n.record.started_at) ?? a, o = n.record.outcome !== null) : qe(e, t) && (i = "queued");
|
|
312
|
+
let s = i === "idle", c = s && r !== null && r.started_at !== null && r.completed_at !== null ? He.parse(r.completed_at).since(He.parse(r.started_at)) : null;
|
|
313
313
|
return {
|
|
314
314
|
status: i,
|
|
315
315
|
blocked: e.blocked.has(t),
|
|
316
|
-
outcome: s && r !== null ?
|
|
316
|
+
outcome: s && r !== null ? Ue(r) : null,
|
|
317
317
|
startedAt: a,
|
|
318
318
|
duration: c,
|
|
319
319
|
rendered: o
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function Je(e) {
|
|
323
|
-
return [...e.executions.values()].filter((e) => e.record.status !== "completed");
|
|
324
|
-
}
|
|
325
322
|
function Ye(e) {
|
|
326
|
-
return
|
|
323
|
+
return [...e.executions.values()].filter((e) => e.record.status !== "completed");
|
|
327
324
|
}
|
|
328
325
|
function Xe(e) {
|
|
329
|
-
|
|
326
|
+
return Ye(e).some((e) => e.record.status === "running");
|
|
327
|
+
}
|
|
328
|
+
function Ze(e) {
|
|
329
|
+
let t = Ye(e.executions), n = new Set(t.flatMap((e) => e.record.cell_id === null ? [] : [e.record.cell_id])), r = new Set(e.requested);
|
|
330
330
|
for (let t of e.executions.runs.values()) if (t.status !== "completed") for (let e of t.cells) r.add(e);
|
|
331
331
|
let i = 0;
|
|
332
|
-
for (let t of r) !n.has(t) &&
|
|
332
|
+
for (let t of r) !n.has(t) && qe(e, t) && (i += 1);
|
|
333
333
|
return t.length + i;
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region src/core/executions/atoms.ts
|
|
337
|
-
var
|
|
337
|
+
var Qe = {
|
|
338
338
|
runs: /* @__PURE__ */ new Map(),
|
|
339
339
|
executions: /* @__PURE__ */ new Map(),
|
|
340
340
|
latest: /* @__PURE__ */ new Map()
|
|
341
|
-
},
|
|
342
|
-
function
|
|
341
|
+
}, $e = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Set(), rt = /* @__PURE__ */ new Set(), it = /* @__PURE__ */ new Map(), j = p(null), at = p(null);
|
|
342
|
+
function ot(e, t, n, r) {
|
|
343
343
|
return e !== null && e.notebook.replica === t && e.notebook.id === n ? e.value : r;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
let t = e.get(
|
|
345
|
+
function st(e) {
|
|
346
|
+
let t = e.get(b), n = t === null ? null : e.get(t.notebookAtom);
|
|
347
347
|
return t === null || n === null ? null : {
|
|
348
348
|
replica: t,
|
|
349
349
|
id: n.id
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
let n =
|
|
352
|
+
function ct(e, t) {
|
|
353
|
+
let n = st(e);
|
|
354
354
|
return n === null ? null : {
|
|
355
355
|
notebook: n,
|
|
356
356
|
value: t
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
let n = e.get(
|
|
359
|
+
function lt(e, t) {
|
|
360
|
+
let n = e.get(b);
|
|
361
361
|
if (n !== t.notebook.replica) return !1;
|
|
362
362
|
let r = e.get(n.notebookAtom);
|
|
363
363
|
return r === null || r.id === t.notebook.id;
|
|
364
364
|
}
|
|
365
|
-
var
|
|
366
|
-
let t = e(
|
|
367
|
-
return r.size === 0 ?
|
|
368
|
-
}),
|
|
369
|
-
let t = e(
|
|
365
|
+
var ut = p((e) => {
|
|
366
|
+
let t = e(b), n = t === null ? null : e(t.notebookAtom)?.id ?? null, r = ot(e(j), t, n, tt);
|
|
367
|
+
return r.size === 0 ? nt : new Set([...r].flatMap((e) => e.cells));
|
|
368
|
+
}), M = p((e) => {
|
|
369
|
+
let t = e(b), n = t === null ? null : e(t.notebookAtom)?.id ?? null, r = t === null ? null : e(t.documentAtom);
|
|
370
370
|
return {
|
|
371
|
-
executions: t === null ?
|
|
372
|
-
results: t === null ?
|
|
373
|
-
cells: r?.cells ??
|
|
374
|
-
requested: e(
|
|
375
|
-
blocked:
|
|
371
|
+
executions: t === null ? Qe : e(t.executionsAtom),
|
|
372
|
+
results: t === null ? $e : e(t.resultsAtom),
|
|
373
|
+
cells: r?.cells ?? et,
|
|
374
|
+
requested: e(ut),
|
|
375
|
+
blocked: ot(e(at), t, n, rt)
|
|
376
376
|
};
|
|
377
|
-
}),
|
|
378
|
-
let t = e(
|
|
377
|
+
}), dt = p((e) => {
|
|
378
|
+
let t = e(b), n = t === null ? null : e(t.documentAtom);
|
|
379
379
|
return t === null || n === null ? {
|
|
380
|
-
cells:
|
|
381
|
-
executions:
|
|
382
|
-
results:
|
|
380
|
+
cells: et,
|
|
381
|
+
executions: Qe,
|
|
382
|
+
results: $e
|
|
383
383
|
} : {
|
|
384
384
|
cells: n.cells,
|
|
385
385
|
executions: e(t.executionsAtom),
|
|
386
386
|
results: e(t.resultsAtom)
|
|
387
387
|
};
|
|
388
|
-
}),
|
|
389
|
-
|
|
390
|
-
let t = e(
|
|
388
|
+
}), ft = p((e) => Ve(e(dt))), pt = p(null);
|
|
389
|
+
p((e) => {
|
|
390
|
+
let t = e(b), n = t === null ? null : e(t.notebookAtom)?.id ?? null;
|
|
391
391
|
return {
|
|
392
|
-
executions: t === null ?
|
|
393
|
-
results: t === null ?
|
|
394
|
-
cleared:
|
|
392
|
+
executions: t === null ? Qe : e(t.executionsAtom),
|
|
393
|
+
results: t === null ? $e : e(t.resultsAtom),
|
|
394
|
+
cleared: ot(e(pt), t, n, it)
|
|
395
395
|
};
|
|
396
396
|
});
|
|
397
|
-
var
|
|
398
|
-
let t = e(
|
|
397
|
+
var mt = p((e) => {
|
|
398
|
+
let t = e(b);
|
|
399
399
|
return t === null ? null : e(t.runtimeAtom)?.status ?? null;
|
|
400
400
|
});
|
|
401
|
-
|
|
402
|
-
var
|
|
403
|
-
let t = e(
|
|
401
|
+
p((e) => Xe(e(M).executions)), p((e) => Ze(e(M)));
|
|
402
|
+
var ht = p((e) => {
|
|
403
|
+
let t = e(b);
|
|
404
404
|
if (t === null) return { refused: "No notebook is connected" };
|
|
405
|
-
if (e(t.connectionAtom).state ===
|
|
405
|
+
if (e(t.connectionAtom).state === A.CLOSED) return { refused: "The notebook is disconnected" };
|
|
406
406
|
if (e(t.notebookAtom) === null) return "waiting";
|
|
407
407
|
let n = e(t.runtimeAtom);
|
|
408
408
|
if (n === null) return { refused: "The notebook has no runtime" };
|
|
@@ -412,65 +412,65 @@ var pt = y((e) => {
|
|
|
412
412
|
default: return "waiting";
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
|
-
function
|
|
415
|
+
function gt(e) {
|
|
416
416
|
return new Promise((t, n) => {
|
|
417
|
-
let r = e.sub(
|
|
417
|
+
let r = e.sub(ht, i);
|
|
418
418
|
function i() {
|
|
419
|
-
let i = e.get(
|
|
419
|
+
let i = e.get(ht);
|
|
420
420
|
i !== "waiting" && (r(), i === "running" ? t() : n(Error(i.refused)));
|
|
421
421
|
}
|
|
422
422
|
i();
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
let n =
|
|
425
|
+
function _t(e, t) {
|
|
426
|
+
let n = st(e);
|
|
427
427
|
if (n === null) return null;
|
|
428
428
|
let r = {
|
|
429
429
|
notebook: n,
|
|
430
430
|
cells: [...t]
|
|
431
|
-
}, i = e.get(
|
|
432
|
-
return e.set(
|
|
431
|
+
}, i = e.get(j), a = i !== null && i.notebook.replica === n.replica && i.notebook.id === n.id ? i.value : tt;
|
|
432
|
+
return e.set(j, {
|
|
433
433
|
notebook: n,
|
|
434
434
|
value: new Set(a).add(r)
|
|
435
435
|
}), r;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
let n = e.get(
|
|
437
|
+
function vt(e, t) {
|
|
438
|
+
let n = e.get(j);
|
|
439
439
|
if (n === null || !n.value.has(t)) return;
|
|
440
440
|
let r = new Set(n.value);
|
|
441
|
-
r.delete(t), e.set(
|
|
441
|
+
r.delete(t), e.set(j, {
|
|
442
442
|
notebook: n.notebook,
|
|
443
443
|
value: r
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function yt(e, t, n) {
|
|
447
447
|
let { replica: r } = t.notebook, i = e.sub(r.executionsAtom, a);
|
|
448
448
|
function a() {
|
|
449
|
-
(!
|
|
449
|
+
(!lt(e, t) || e.get(r.executionsAtom).runs.has(n.id)) && (i(), vt(e, t));
|
|
450
450
|
}
|
|
451
451
|
a();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
let r = e.get(
|
|
453
|
+
function bt(e, t, n) {
|
|
454
|
+
let r = e.get(M).blocked;
|
|
455
455
|
if (r.has(t) === n) return;
|
|
456
456
|
let i = new Set(r);
|
|
457
|
-
n ? i.add(t) : i.delete(t), e.set(
|
|
457
|
+
n ? i.add(t) : i.delete(t), e.set(at, ct(e, i));
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
t.status != null &&
|
|
459
|
+
function xt(e, t) {
|
|
460
|
+
t.status != null && bt(e, t.cell_id, t.status === "disabled-transitively");
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/plugins/core/sanitize-html.ts
|
|
464
|
-
var
|
|
464
|
+
var St = a(), Ct = /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix|zotero):|[^a-z]|[-a-z+.]+(?:[^-a-z+.:]|$))/i;
|
|
465
465
|
if (typeof document < "u") {
|
|
466
466
|
let e = "data-temp-href-target";
|
|
467
|
-
|
|
467
|
+
ce.addHook("beforeSanitizeAttributes", (t) => {
|
|
468
468
|
t.tagName === "A" && (t.hasAttribute("target") || t.setAttribute("target", "_self"), t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") || ""));
|
|
469
|
-
}),
|
|
469
|
+
}), ce.addHook("afterSanitizeAttributes", (t) => {
|
|
470
470
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) || ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener noreferrer"));
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function wt(e) {
|
|
474
474
|
let t = {
|
|
475
475
|
USE_PROFILES: {
|
|
476
476
|
html: !0,
|
|
@@ -479,7 +479,7 @@ function St(e) {
|
|
|
479
479
|
},
|
|
480
480
|
ADD_TAGS: ["use"],
|
|
481
481
|
ADD_ATTR: ["href", "xlink:href"],
|
|
482
|
-
ALLOWED_URI_REGEXP:
|
|
482
|
+
ALLOWED_URI_REGEXP: Ct,
|
|
483
483
|
FORCE_BODY: !0,
|
|
484
484
|
CUSTOM_ELEMENT_HANDLING: {
|
|
485
485
|
tagNameCheck: /^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,
|
|
@@ -487,59 +487,59 @@ function St(e) {
|
|
|
487
487
|
},
|
|
488
488
|
SAFE_FOR_XML: !e.includes("marimo-mermaid")
|
|
489
489
|
};
|
|
490
|
-
return
|
|
490
|
+
return ce.sanitize(e, t);
|
|
491
491
|
}
|
|
492
492
|
//#endregion
|
|
493
493
|
//#region src/core/dom/outline.ts
|
|
494
|
-
var
|
|
494
|
+
var Tt = [
|
|
495
495
|
"marimo-carousel",
|
|
496
496
|
"marimo-tabs",
|
|
497
497
|
"marimo-accordion",
|
|
498
498
|
"marimo-sidebar"
|
|
499
|
-
],
|
|
500
|
-
function
|
|
499
|
+
], Et = "h1, h2, h3, h4, h5, h6";
|
|
500
|
+
function Dt(e) {
|
|
501
501
|
if (typeof DOMParser > "u") return null;
|
|
502
|
-
let t = [], n = new DOMParser().parseFromString(e, "text/html").querySelectorAll(
|
|
502
|
+
let t = [], n = new DOMParser().parseFromString(e, "text/html").querySelectorAll(Et);
|
|
503
503
|
for (let e of Array.from(n)) {
|
|
504
504
|
let n = e.textContent;
|
|
505
|
-
if (
|
|
505
|
+
if (Tt.some((t) => e.closest(t)) || !n) continue;
|
|
506
506
|
let r = Number.parseInt(e.tagName[1], 10), i = e.innerHTML, a = {
|
|
507
507
|
name: n,
|
|
508
508
|
level: r,
|
|
509
|
-
by:
|
|
509
|
+
by: kt(e)
|
|
510
510
|
};
|
|
511
|
-
i !== n && (a.html =
|
|
511
|
+
i !== n && (a.html = wt(i)), t.push(a);
|
|
512
512
|
}
|
|
513
513
|
return { items: t };
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ot(e) {
|
|
516
516
|
if (!e.includes("\"")) return `"${e}"`;
|
|
517
517
|
if (!e.includes("'")) return `'${e}'`;
|
|
518
518
|
let t = e.split("\""), n = [];
|
|
519
519
|
for (let [e, r] of t.entries()) r && n.push(`"${r}"`), e < t.length - 1 && n.push("'\"'");
|
|
520
520
|
return `concat(${n.join(", ")})`;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function kt(e) {
|
|
523
523
|
let t = e.id;
|
|
524
524
|
if (t) return { id: t };
|
|
525
525
|
let n = e.textContent ?? "";
|
|
526
|
-
return { path: `//${e.tagName}[contains(., ${
|
|
526
|
+
return { path: `//${e.tagName}[contains(., ${Ot(n)})]` };
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function At(e) {
|
|
529
529
|
return { items: e.filter(Boolean).flatMap((e) => e.items) };
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function jt(e) {
|
|
532
532
|
if (e == null || e.mimetype !== "text/html" && e.mimetype !== "text/markdown" || e.data == null) return null;
|
|
533
533
|
try {
|
|
534
|
-
return
|
|
534
|
+
return T(typeof e.data == "string", "expected string"), Dt(e.data);
|
|
535
535
|
} catch {
|
|
536
536
|
return t.error("Failed to parse outline"), null;
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Mt(e) {
|
|
540
540
|
return e != null && e.items.some((e) => e.level <= 3);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Nt(e, n) {
|
|
543
543
|
let r = (e) => e.items.length === 0 ? 7 : Math.min(...e.items.map((e) => e.level)), i = n[e];
|
|
544
544
|
if (i == null || i.items.length === 0) return t.warn("Failed to find a starting outline"), null;
|
|
545
545
|
let a = r(i), o = e + 1;
|
|
@@ -552,17 +552,17 @@ function jt(e, n) {
|
|
|
552
552
|
}
|
|
553
553
|
//#endregion
|
|
554
554
|
//#region src/core/codemirror/editing/commands.ts
|
|
555
|
-
function
|
|
555
|
+
function Pt(e) {
|
|
556
556
|
return (t) => {
|
|
557
557
|
let n = !1;
|
|
558
558
|
for (let r of t) r && (n = e(r) || n);
|
|
559
559
|
return n;
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
var
|
|
562
|
+
var Ft = Pt(pe), It = Pt(de);
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region src/utils/schedule-task.ts
|
|
565
|
-
function
|
|
565
|
+
function Lt() {
|
|
566
566
|
let e = globalThis.scheduler;
|
|
567
567
|
if (typeof e?.postTask == "function") return (t) => {
|
|
568
568
|
e.postTask(t, { priority: "user-visible" }).catch((e) => {
|
|
@@ -583,10 +583,10 @@ function Ft() {
|
|
|
583
583
|
setTimeout(e, 0);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
var
|
|
586
|
+
var Rt = Lt();
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region src/core/codemirror/editor-mount-scheduler.ts
|
|
589
|
-
function
|
|
589
|
+
function zt(e = Rt) {
|
|
590
590
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = !1;
|
|
591
591
|
function i() {
|
|
592
592
|
r || t.size === 0 || (r = !0, e(o));
|
|
@@ -629,21 +629,21 @@ function Lt(e = It) {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var Bt = zt();
|
|
633
633
|
//#endregion
|
|
634
634
|
//#region src/core/mime.ts
|
|
635
|
-
function
|
|
635
|
+
function Vt(e) {
|
|
636
636
|
return e === "application/vnd.marimo+error";
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function N(e) {
|
|
639
639
|
return e === "application/vnd.marimo+traceback";
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
641
|
+
function P(e) {
|
|
642
|
+
return Vt(e) || N(e);
|
|
643
643
|
}
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/components/editor/output/ansi-reduce.ts
|
|
646
|
-
var
|
|
646
|
+
var Ht = class e {
|
|
647
647
|
lines = [""];
|
|
648
648
|
cursor = {
|
|
649
649
|
row: 0,
|
|
@@ -732,7 +732,7 @@ var Vt = class e {
|
|
|
732
732
|
render() {
|
|
733
733
|
return this.lines.join("\n");
|
|
734
734
|
}
|
|
735
|
-
},
|
|
735
|
+
}, Ut = class {
|
|
736
736
|
ESC_REGEX = new RegExp(String.raw`\u001B(?:\[[0-9;]*[A-Za-z]|\([0-9A-Za-z])`, "gu");
|
|
737
737
|
parse(e) {
|
|
738
738
|
let t = [], n = 0;
|
|
@@ -751,9 +751,9 @@ var Vt = class e {
|
|
|
751
751
|
value: e.slice(n)
|
|
752
752
|
}), t;
|
|
753
753
|
}
|
|
754
|
-
},
|
|
755
|
-
parser = new
|
|
756
|
-
buffer = new
|
|
754
|
+
}, Wt = class {
|
|
755
|
+
parser = new Ut();
|
|
756
|
+
buffer = new Ht();
|
|
757
757
|
reduce(e) {
|
|
758
758
|
return this.reset(), this.append(e), this.render();
|
|
759
759
|
}
|
|
@@ -769,7 +769,7 @@ var Vt = class e {
|
|
|
769
769
|
for (let e of t) e.type === "text" ? this.processText(e.value) : this.buffer.handleEscape(e.value);
|
|
770
770
|
}
|
|
771
771
|
reset() {
|
|
772
|
-
this.buffer = new
|
|
772
|
+
this.buffer = new Ht();
|
|
773
773
|
}
|
|
774
774
|
render() {
|
|
775
775
|
return this.buffer.render();
|
|
@@ -812,20 +812,20 @@ var Vt = class e {
|
|
|
812
812
|
for (let t of e) t >= " " && (n += t);
|
|
813
813
|
return n;
|
|
814
814
|
}
|
|
815
|
-
},
|
|
815
|
+
}, F = class e {
|
|
816
816
|
mimetype;
|
|
817
817
|
channel;
|
|
818
818
|
timestamp;
|
|
819
819
|
code;
|
|
820
820
|
id;
|
|
821
821
|
input_id;
|
|
822
|
-
ansiReducer = new
|
|
822
|
+
ansiReducer = new Wt();
|
|
823
823
|
_data;
|
|
824
824
|
get data() {
|
|
825
825
|
return this._data;
|
|
826
826
|
}
|
|
827
827
|
static create(t) {
|
|
828
|
-
let n = new
|
|
828
|
+
let n = new Wt();
|
|
829
829
|
return n.append(t.data), new e({
|
|
830
830
|
mimetype: t.mimetype,
|
|
831
831
|
channel: t.channel,
|
|
@@ -862,32 +862,32 @@ var Vt = class e {
|
|
|
862
862
|
};
|
|
863
863
|
//#endregion
|
|
864
864
|
//#region src/core/cells/collapseConsoleOutputs.tsx
|
|
865
|
-
function
|
|
865
|
+
function Gt(e, t = 5e3) {
|
|
866
866
|
let n = [...e];
|
|
867
|
-
if (n.length < 2) return
|
|
867
|
+
if (n.length < 2) return Xt(n.map(qt), t);
|
|
868
868
|
let r = n[n.length - 1], i = n[n.length - 2];
|
|
869
|
-
return
|
|
869
|
+
return Kt(r, i) && (Yt(r), Yt(i), n[n.length - 2] = Jt(i, r), n.pop()), Xt(n, t);
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Kt(e, t) {
|
|
872
872
|
let n = e.mimetype === "text/plain" && t.mimetype === "text/plain";
|
|
873
873
|
if (!n) return !1;
|
|
874
874
|
let r = e.channel === t.channel, i = e.channel !== "stdin";
|
|
875
875
|
return n && r && i;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
return e instanceof
|
|
877
|
+
function qt(e) {
|
|
878
|
+
return e instanceof F ? e : typeof e.data == "string" ? F.create(e) : e;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
return e instanceof
|
|
880
|
+
function Jt(e, t) {
|
|
881
|
+
return e instanceof F ? e.appendData(t.data) : F.create(e).appendData(t.data);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
883
|
+
function Yt(e) {
|
|
884
|
+
T(typeof e.data == "string", "expected string output");
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function Xt(e, t) {
|
|
887
887
|
let n = 0, r;
|
|
888
888
|
for (r = e.length - 1; r >= 0 && n < t; r--) {
|
|
889
889
|
let t = e[r];
|
|
890
|
-
t.mimetype === "text/plain" ? (
|
|
890
|
+
t.mimetype === "text/plain" ? (T(typeof t.data == "string", "expected string"), n += t.data.split("\n").length) : n++;
|
|
891
891
|
}
|
|
892
892
|
if (n < t) return e;
|
|
893
893
|
let i = r + 1, a = {
|
|
@@ -898,7 +898,7 @@ function Yt(e, t) {
|
|
|
898
898
|
}, o = e[i];
|
|
899
899
|
if (o == null) return [a, ...e.slice(i + 1)];
|
|
900
900
|
if (o.mimetype === "text/plain") {
|
|
901
|
-
|
|
901
|
+
T(typeof o.data == "string", "expected string");
|
|
902
902
|
let r = o.data.split("\n"), s = t - (n - r.length);
|
|
903
903
|
return [
|
|
904
904
|
a,
|
|
@@ -913,16 +913,16 @@ function Yt(e, t) {
|
|
|
913
913
|
}
|
|
914
914
|
//#endregion
|
|
915
915
|
//#region src/core/cells/cell.ts
|
|
916
|
-
function
|
|
916
|
+
function Zt(e) {
|
|
917
917
|
return (e.at(-1)?.id ?? 0) + 1;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Qt(e) {
|
|
920
920
|
return e == null || e.mimetype !== "application/vnd.marimo+error" || !Array.isArray(e.data) ? [] : e.data.map((e) => e.type);
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function $t(e, t) {
|
|
923
923
|
let n = { ...e };
|
|
924
|
-
t.status === "queued" && (n.debuggerActive = !1), t.status === "running" &&
|
|
925
|
-
let r =
|
|
924
|
+
t.status === "queued" && (n.debuggerActive = !1), t.status === "running" && Qt(e.output).some((e) => e.includes("ancestor")) && (n.output = null), n.output = t.output ?? n.output, t.serialization !== void 0 && (n.serialization = t.serialization);
|
|
925
|
+
let r = Qt(t.output).includes("interruption"), i = e.consoleOutputs;
|
|
926
926
|
(r || t.status === "idle") && (n.debuggerActive = !1, i = i.map((e) => e.channel === "stdin" ? {
|
|
927
927
|
channel: e.channel,
|
|
928
928
|
mimetype: e.mimetype,
|
|
@@ -933,26 +933,26 @@ function Qt(e, t) {
|
|
|
933
933
|
response: e.response ?? ""
|
|
934
934
|
} : e));
|
|
935
935
|
let a = t.console;
|
|
936
|
-
a != null && (i =
|
|
936
|
+
a != null && (i = Gt(Array.isArray(a) ? a.map((e, t) => ({
|
|
937
937
|
...e,
|
|
938
938
|
id: t + 1
|
|
939
939
|
})) : [...i, {
|
|
940
940
|
...a,
|
|
941
|
-
id:
|
|
942
|
-
}])), n.consoleOutputs = i, n.outline =
|
|
941
|
+
id: Zt(i)
|
|
942
|
+
}])), n.consoleOutputs = i, n.outline = jt(n.output);
|
|
943
943
|
let o = [t.console].flat().filter(Boolean).filter((e) => e.channel === "pdb");
|
|
944
944
|
return o.length > 0 && o.some((e) => e.data === "start") && (n.debuggerActive = !0), n;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function en(e) {
|
|
947
947
|
return e === "running" || e === "queued";
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function tn(e, t, n) {
|
|
950
950
|
let { status: r, outcome: i, rendered: a } = e;
|
|
951
|
-
return
|
|
951
|
+
return en(r) ? !(r === "running" && a) : n && t.sourceChanged ? !0 : i !== "interrupted" && t.inputsChanged;
|
|
952
952
|
}
|
|
953
953
|
//#endregion
|
|
954
954
|
//#region src/core/cells/columns.ts
|
|
955
|
-
function
|
|
955
|
+
function nn(e) {
|
|
956
956
|
let t = /* @__PURE__ */ new Map(), n = 0;
|
|
957
957
|
for (let r of e.order) {
|
|
958
958
|
let i = e.cells.get(r)?.config.column;
|
|
@@ -960,9 +960,9 @@ function tn(e) {
|
|
|
960
960
|
}
|
|
961
961
|
return t;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function rn(e) {
|
|
964
964
|
let t = [[]];
|
|
965
|
-
for (let [n, r] of
|
|
965
|
+
for (let [n, r] of nn(e)) {
|
|
966
966
|
for (; t.length <= r;) t.push([]);
|
|
967
967
|
t[r].push(n);
|
|
968
968
|
}
|
|
@@ -970,18 +970,18 @@ function nn(e) {
|
|
|
970
970
|
}
|
|
971
971
|
//#endregion
|
|
972
972
|
//#region src/core/dom/ui-element-constants.ts
|
|
973
|
-
var
|
|
973
|
+
var an = "object-id", on = "random-id", sn = "abcdefghijklmnopqrstuvwxyz", cn = sn + sn.toUpperCase(), ln = /* @__PURE__ */ new Set(), I = "__scratch__", un = "setup", dn = { create() {
|
|
974
974
|
let e = 0, t;
|
|
975
975
|
do {
|
|
976
976
|
let n = "";
|
|
977
|
-
for (let e = 0; e < 4; e++) n +=
|
|
977
|
+
for (let e = 0; e < 4; e++) n += cn[Math.floor(Math.random() * 52)];
|
|
978
978
|
t = n, e++;
|
|
979
|
-
} while (
|
|
979
|
+
} while (ln.has(t) && e < 100);
|
|
980
980
|
if (e >= 100) throw Error("Failed to generate unique CellId after 100 attempts");
|
|
981
|
-
return
|
|
982
|
-
} },
|
|
981
|
+
return ln.add(t), t;
|
|
982
|
+
} }, L = {
|
|
983
983
|
create(e) {
|
|
984
|
-
return
|
|
984
|
+
return T(e != null, "cellId is required"), `cell-${e}`;
|
|
985
985
|
},
|
|
986
986
|
parse(e) {
|
|
987
987
|
return e.slice(5);
|
|
@@ -992,7 +992,7 @@ var rn = "object-id", an = "random-id", on = "abcdefghijklmnopqrstuvwxyz", sn =
|
|
|
992
992
|
findElementThroughShadowDOMs(e) {
|
|
993
993
|
let t = e;
|
|
994
994
|
for (; t;) {
|
|
995
|
-
let e =
|
|
995
|
+
let e = L.findElement(t);
|
|
996
996
|
if (e) return e;
|
|
997
997
|
let n = t.getRootNode();
|
|
998
998
|
if (t = n instanceof ShadowRoot ? n.host : t.parentElement, t === n) break;
|
|
@@ -1000,33 +1000,33 @@ var rn = "object-id", an = "random-id", on = "abcdefghijklmnopqrstuvwxyz", sn =
|
|
|
1000
1000
|
return null;
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
|
-
function
|
|
1004
|
-
let t = null, n =
|
|
1005
|
-
return n && (t =
|
|
1003
|
+
function fn(e) {
|
|
1004
|
+
let t = null, n = L.findElementThroughShadowDOMs(e);
|
|
1005
|
+
return n && (t = L.parse(n.id)), t;
|
|
1006
1006
|
}
|
|
1007
|
-
var
|
|
1007
|
+
var pn = {
|
|
1008
1008
|
parse(e) {
|
|
1009
|
-
return e.getAttribute(
|
|
1009
|
+
return e.getAttribute(an);
|
|
1010
1010
|
},
|
|
1011
1011
|
parseOrThrow(e) {
|
|
1012
|
-
let t =
|
|
1013
|
-
return
|
|
1012
|
+
let t = pn.parse(e);
|
|
1013
|
+
return T(t, "<marimo-ui-element/> missing object-id attribute"), t;
|
|
1014
1014
|
}
|
|
1015
|
-
},
|
|
1015
|
+
}, mn = { create(e) {
|
|
1016
1016
|
return `output-${e}`;
|
|
1017
|
-
} },
|
|
1018
|
-
function
|
|
1019
|
-
return `column-${
|
|
1017
|
+
} }, hn = p(/* @__PURE__ */ new Set()), R = p([]), z = p([]);
|
|
1018
|
+
function gn() {
|
|
1019
|
+
return `column-${dn.create()}`;
|
|
1020
1020
|
}
|
|
1021
|
-
var
|
|
1022
|
-
let r =
|
|
1021
|
+
var _n = p(null, (e, t, n) => {
|
|
1022
|
+
let r = rn(n).length, i = e(R);
|
|
1023
1023
|
if (i.length === r) return;
|
|
1024
|
-
let a = e(
|
|
1025
|
-
for (; o.length < r;) o.push(
|
|
1026
|
-
t(
|
|
1024
|
+
let a = e(z), o = [...i, ...a].slice(0, r);
|
|
1025
|
+
for (; o.length < r;) o.push(gn());
|
|
1026
|
+
t(R, o), t(z, a.slice(Math.max(0, r - i.length)));
|
|
1027
1027
|
});
|
|
1028
|
-
function
|
|
1029
|
-
return [...(e === null ? [[]] :
|
|
1028
|
+
function vn(e, t, n) {
|
|
1029
|
+
return [...(e === null ? [[]] : rn(e)).map((e, n) => ({
|
|
1030
1030
|
id: t[n] ?? `column-${n}`,
|
|
1031
1031
|
ids: e
|
|
1032
1032
|
})), ...n.map((e) => ({
|
|
@@ -1034,18 +1034,18 @@ function _n(e, t, n) {
|
|
|
1034
1034
|
ids: []
|
|
1035
1035
|
}))];
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function yn(e, t, n) {
|
|
1038
1038
|
let r = /* @__PURE__ */ new Map();
|
|
1039
1039
|
return e.forEach((i, a) => {
|
|
1040
1040
|
let o = t[a];
|
|
1041
1041
|
if (!n.has(i) || !o || o.items.length === 0) return;
|
|
1042
|
-
let s =
|
|
1042
|
+
let s = Nt(a, t);
|
|
1043
1043
|
s !== null && r.set(i, e.slice(a + 1, s[1] + 1));
|
|
1044
1044
|
}), r;
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function bn(e, t, n) {
|
|
1047
1047
|
return { columns: e.map(({ id: e, ids: r }) => {
|
|
1048
|
-
let i =
|
|
1048
|
+
let i = yn(r, r.map(t), n), a = new Set([...i.values()].flat());
|
|
1049
1049
|
return {
|
|
1050
1050
|
id: e,
|
|
1051
1051
|
ids: r,
|
|
@@ -1054,10 +1054,10 @@ function yn(e, t, n) {
|
|
|
1054
1054
|
};
|
|
1055
1055
|
}) };
|
|
1056
1056
|
}
|
|
1057
|
-
var
|
|
1058
|
-
let t = e(
|
|
1059
|
-
return
|
|
1060
|
-
}), xn = () =>
|
|
1057
|
+
var B = p((e) => {
|
|
1058
|
+
let t = e(ae), n = t === null ? null : e(t.documentAtom), r = e(yi);
|
|
1059
|
+
return bn(vn(n, e(R), e(z)), (e) => r[e] ?? null, e(hn));
|
|
1060
|
+
}), xn = () => h(B), Sn = p((e) => e(B).columns.length);
|
|
1061
1061
|
function Cn(e, t) {
|
|
1062
1062
|
return e.columns.find((e) => e.id === t);
|
|
1063
1063
|
}
|
|
@@ -1133,7 +1133,7 @@ function V(e) {
|
|
|
1133
1133
|
//#endregion
|
|
1134
1134
|
//#region src/core/cells/document.ts
|
|
1135
1135
|
function Fn(e, t) {
|
|
1136
|
-
let n = t.code ?? e.code, r =
|
|
1136
|
+
let n = t.code ?? e.code, r = y(e.config, t.config) ? e.config : Pn(t.config);
|
|
1137
1137
|
return n === e.code && t.name === e.name && r === e.config ? e : n === e.code ? {
|
|
1138
1138
|
...e,
|
|
1139
1139
|
name: t.name,
|
|
@@ -1146,7 +1146,7 @@ function Fn(e, t) {
|
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
1148
1148
|
function In(e, t) {
|
|
1149
|
-
let n =
|
|
1149
|
+
let n = y(t.order, e.cellIds) ? e.cellIds : [...t.order], { cellData: r, cellRuntime: i, cellHandles: a } = e;
|
|
1150
1150
|
for (let o of n) {
|
|
1151
1151
|
let n = t.cells.get(o), s = e.cellData[o];
|
|
1152
1152
|
if (n === void 0) continue;
|
|
@@ -1190,28 +1190,28 @@ function In(e, t) {
|
|
|
1190
1190
|
function Ln({ store: e, model: t, reconcile: n, signal: r }) {
|
|
1191
1191
|
let i = () => {
|
|
1192
1192
|
let r = e.get(t.documentAtom);
|
|
1193
|
-
r !== null && (n(r), e.set(
|
|
1193
|
+
r !== null && (n(r), e.set(_n, r));
|
|
1194
1194
|
}, a = e.sub(t.documentAtom, i);
|
|
1195
1195
|
r.addEventListener("abort", a, { once: !0 }), i();
|
|
1196
1196
|
}
|
|
1197
1197
|
async function Rn() {
|
|
1198
|
-
let e =
|
|
1199
|
-
e !== null &&
|
|
1198
|
+
let e = w.get(ae);
|
|
1199
|
+
e !== null && w.get(e.syncStatusAtom).status !== "unavailable" && await e.flush();
|
|
1200
1200
|
}
|
|
1201
1201
|
//#endregion
|
|
1202
1202
|
//#region src/core/cells/editor.ts
|
|
1203
|
-
var H =
|
|
1203
|
+
var H = p(/* @__PURE__ */ new Set());
|
|
1204
1204
|
function zn(e, t, n) {
|
|
1205
1205
|
return !!e && !t.has(n);
|
|
1206
1206
|
}
|
|
1207
|
-
|
|
1207
|
+
p(null, (e, t, { cellId: n }) => {
|
|
1208
1208
|
t(H, (e) => /* @__PURE__ */ new Set([...e, n]));
|
|
1209
|
-
}),
|
|
1209
|
+
}), p(null, (e, t, { cellId: n }) => e(H).has(n) ? (t(H, (e) => {
|
|
1210
1210
|
let t = new Set(e);
|
|
1211
1211
|
return t.delete(n), t;
|
|
1212
1212
|
}), !0) : !1);
|
|
1213
|
-
var Bn =
|
|
1214
|
-
|
|
1213
|
+
var Bn = p(/* @__PURE__ */ new Map());
|
|
1214
|
+
p(null, (e, t, { cellId: n }) => {
|
|
1215
1215
|
t(Bn, (e) => {
|
|
1216
1216
|
let t = new Map(e);
|
|
1217
1217
|
return t.delete(n), t;
|
|
@@ -1609,7 +1609,7 @@ function Yn(e) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
//#endregion
|
|
1611
1611
|
//#region src/core/errors/traceback-atom.ts
|
|
1612
|
-
var Xn =
|
|
1612
|
+
var Xn = p(null);
|
|
1613
1613
|
//#endregion
|
|
1614
1614
|
//#region src/core/cells/logs.ts
|
|
1615
1615
|
function Zn(e) {
|
|
@@ -1641,7 +1641,7 @@ function $n(e) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
|
-
if (t.forEach(er.log), n.length === 0 &&
|
|
1644
|
+
if (t.forEach(er.log), n.length === 0 && P(e.output?.mimetype) && Array.isArray(e.output.data)) {
|
|
1645
1645
|
e.output.data.forEach((t) => {
|
|
1646
1646
|
er.log({
|
|
1647
1647
|
level: "stderr",
|
|
@@ -1653,7 +1653,7 @@ function $n(e) {
|
|
|
1653
1653
|
message: JSON.stringify(t)
|
|
1654
1654
|
});
|
|
1655
1655
|
});
|
|
1656
|
-
let t = e.output.data.filter((e) => "type" in e && e.type === "exception" || e.type === "internal"), n =
|
|
1656
|
+
let t = e.output.data.filter((e) => "type" in e && e.type === "exception" || e.type === "internal"), n = w.get(he) === "read";
|
|
1657
1657
|
if (t.length > 0 && !Qn && n) {
|
|
1658
1658
|
Qn = !0;
|
|
1659
1659
|
let e = t.find((e) => e.traceback);
|
|
@@ -1661,10 +1661,10 @@ function $n(e) {
|
|
|
1661
1661
|
title: "An internal error occurred",
|
|
1662
1662
|
description: e.msg || "Click 'View' to see traceback",
|
|
1663
1663
|
variant: "danger",
|
|
1664
|
-
action: E.createElement(
|
|
1664
|
+
action: E.createElement(oe, {
|
|
1665
1665
|
altText: "View traceback",
|
|
1666
1666
|
onClick: () => {
|
|
1667
|
-
|
|
1667
|
+
w.set(Xn, {
|
|
1668
1668
|
traceback: e.traceback,
|
|
1669
1669
|
errorMessage: e.msg || "An internal error occurred"
|
|
1670
1670
|
});
|
|
@@ -1698,7 +1698,7 @@ function tr(e) {
|
|
|
1698
1698
|
//#endregion
|
|
1699
1699
|
//#region src/components/editor/navigation/focus-utils.ts
|
|
1700
1700
|
function nr(e, n) {
|
|
1701
|
-
let r = document.getElementById(
|
|
1701
|
+
let r = document.getElementById(L.create(e));
|
|
1702
1702
|
r ? ir(r, n) : t.warn(`[CellFocusManager] focusCell: element not found: ${e}`);
|
|
1703
1703
|
}
|
|
1704
1704
|
function rr() {
|
|
@@ -1754,7 +1754,7 @@ function dr(e) {
|
|
|
1754
1754
|
function fr(e, t, n) {
|
|
1755
1755
|
let { cellIds: r, cellData: i } = e;
|
|
1756
1756
|
return r.filter((e) => {
|
|
1757
|
-
let r =
|
|
1757
|
+
let r = Je(t, e);
|
|
1758
1758
|
return r.status === "idle" ? mr(r) || hr({
|
|
1759
1759
|
freshness: n(e),
|
|
1760
1760
|
interrupted: r.outcome === "interrupted",
|
|
@@ -1781,19 +1781,19 @@ function gr({ errored: e, stopped: t }) {
|
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|
|
1783
1783
|
function _r({ errored: e, interrupted: t, stopped: n, output: r, showErrorTracebacks: i }) {
|
|
1784
|
-
let a =
|
|
1784
|
+
let a = P(r?.mimetype), o = i && a && Array.isArray(r?.data) && r.data.some((e) => e.type === "exception" && "traceback" in e && e.traceback);
|
|
1785
1785
|
return (e || t || n || a) && !o;
|
|
1786
1786
|
}
|
|
1787
1787
|
//#endregion
|
|
1788
1788
|
//#region src/core/network/requests.ts
|
|
1789
|
-
var vr =
|
|
1789
|
+
var vr = p(null);
|
|
1790
1790
|
function yr() {
|
|
1791
|
-
let e =
|
|
1792
|
-
return
|
|
1791
|
+
let e = h(vr);
|
|
1792
|
+
return T(e, "useRequestClient() requires setting requestClientAtom."), e;
|
|
1793
1793
|
}
|
|
1794
1794
|
function br() {
|
|
1795
|
-
let e =
|
|
1796
|
-
return
|
|
1795
|
+
let e = w.get(vr);
|
|
1796
|
+
return T(e, "getRequestClient() requires requestClientAtom to be set."), e;
|
|
1797
1797
|
}
|
|
1798
1798
|
//#endregion
|
|
1799
1799
|
//#region src/utils/storage/storage.ts
|
|
@@ -1912,14 +1912,14 @@ function Ir(e) {
|
|
|
1912
1912
|
return Ar(e ?? "");
|
|
1913
1913
|
}
|
|
1914
1914
|
function Lr(e) {
|
|
1915
|
-
return
|
|
1915
|
+
return se.mapValues(e.dataset, (e) => typeof e == "string" ? Ir(e) : e);
|
|
1916
1916
|
}
|
|
1917
1917
|
function Rr(e, t) {
|
|
1918
|
-
let n = e.parentElement ?
|
|
1918
|
+
let n = e.parentElement ? pn.parse(e.parentElement) : void 0;
|
|
1919
1919
|
return n && t.has(n) ? t.lookupValue(n) : Ir(e.dataset.initialValue);
|
|
1920
1920
|
}
|
|
1921
1921
|
function zr() {
|
|
1922
|
-
if (
|
|
1922
|
+
if (ee()) return document.title || null;
|
|
1923
1923
|
if (_e()) {
|
|
1924
1924
|
let e = Fr.getFilename();
|
|
1925
1925
|
if (e) return e;
|
|
@@ -1931,10 +1931,10 @@ function zr() {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
//#endregion
|
|
1933
1933
|
//#region src/core/saving/file-state.ts
|
|
1934
|
-
var K =
|
|
1935
|
-
|
|
1936
|
-
var Br =
|
|
1937
|
-
|
|
1934
|
+
var K = p(zr());
|
|
1935
|
+
p(null);
|
|
1936
|
+
var Br = p(null);
|
|
1937
|
+
p(void 0);
|
|
1938
1938
|
//#endregion
|
|
1939
1939
|
//#region src/utils/storage/typed.ts
|
|
1940
1940
|
var Vr = class {
|
|
@@ -1984,11 +1984,11 @@ var Vr = class {
|
|
|
1984
1984
|
filename;
|
|
1985
1985
|
unsubscribeFromFilename;
|
|
1986
1986
|
constructor(e, t, n) {
|
|
1987
|
-
let r =
|
|
1987
|
+
let r = w.get(K);
|
|
1988
1988
|
super(t, n), this.filename = r;
|
|
1989
1989
|
try {
|
|
1990
|
-
this.unsubscribeFromFilename =
|
|
1991
|
-
let t =
|
|
1990
|
+
this.unsubscribeFromFilename = w.sub(K, () => {
|
|
1991
|
+
let t = w.get(K);
|
|
1992
1992
|
this.handleFilenameChange(e, t);
|
|
1993
1993
|
});
|
|
1994
1994
|
} catch {
|
|
@@ -2277,55 +2277,55 @@ function ii(e, t) {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
//#endregion
|
|
2279
2279
|
//#region src/core/network/connection.ts
|
|
2280
|
-
var X =
|
|
2281
|
-
|
|
2280
|
+
var X = p({ state: A.NOT_STARTED });
|
|
2281
|
+
ie(null, (e, t) => t === null ? null : {
|
|
2282
2282
|
phase: t.phase,
|
|
2283
2283
|
logs: t.log_mode === "append" && e?.phase === t.phase ? e.logs + t.logs : t.logs
|
|
2284
2284
|
});
|
|
2285
2285
|
function ai() {
|
|
2286
|
-
return
|
|
2286
|
+
return m(X, (e) => e.state === A.OPEN);
|
|
2287
2287
|
}
|
|
2288
2288
|
function oi() {
|
|
2289
2289
|
return me() ? ai() : Promise.resolve();
|
|
2290
2290
|
}
|
|
2291
|
-
|
|
2291
|
+
p((e) => e(X).state === A.CONNECTING), p((e) => e(X).state === A.OPEN), p((e) => {
|
|
2292
2292
|
let t = e(X);
|
|
2293
|
-
return t.state ===
|
|
2294
|
-
}),
|
|
2293
|
+
return t.state === A.OPEN || t.state === A.NOT_STARTED;
|
|
2294
|
+
}), p((e) => e(X).state === A.CLOSED);
|
|
2295
2295
|
//#endregion
|
|
2296
2296
|
//#region src/components/ui/checkbox.tsx
|
|
2297
2297
|
var si = E.forwardRef((e, t) => {
|
|
2298
|
-
let r = (0,
|
|
2298
|
+
let r = (0, St.c)(13), i, a;
|
|
2299
2299
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
2300
2300
|
let o;
|
|
2301
2301
|
r[3] === i ? o = r[4] : (o = n("flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground", i), r[3] = i, r[4] = o);
|
|
2302
2302
|
let s;
|
|
2303
2303
|
r[5] === Symbol.for("react.memo_cache_sentinel") ? (s = n("flex items-center justify-center text-current max-h-[14px] overflow-hidden"), r[5] = s) : s = r[5];
|
|
2304
2304
|
let c;
|
|
2305
|
-
r[6] === a.checked ? c = r[7] : (c = /* @__PURE__ */ (0, D.jsx)(
|
|
2305
|
+
r[6] === a.checked ? c = r[7] : (c = /* @__PURE__ */ (0, D.jsx)(Ne, {
|
|
2306
2306
|
className: s,
|
|
2307
2307
|
children: a.checked === "indeterminate" ? /* @__PURE__ */ (0, D.jsx)(xe, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, D.jsx)(l, { className: "h-4 w-4" })
|
|
2308
2308
|
}), r[6] = a.checked, r[7] = c);
|
|
2309
2309
|
let u;
|
|
2310
|
-
return r[8] !== a || r[9] !== t || r[10] !== o || r[11] !== c ? (u = /* @__PURE__ */ (0, D.jsx)(
|
|
2310
|
+
return r[8] !== a || r[9] !== t || r[10] !== o || r[11] !== c ? (u = /* @__PURE__ */ (0, D.jsx)(je, {
|
|
2311
2311
|
ref: t,
|
|
2312
2312
|
className: o,
|
|
2313
2313
|
...a,
|
|
2314
2314
|
children: c
|
|
2315
2315
|
}), r[8] = a, r[9] = t, r[10] = o, r[11] = c, r[12] = u) : u = r[12], u;
|
|
2316
2316
|
});
|
|
2317
|
-
si.displayName =
|
|
2317
|
+
si.displayName = je.displayName;
|
|
2318
2318
|
//#endregion
|
|
2319
2319
|
//#region src/core/cells/scrollCellIntoView.ts
|
|
2320
2320
|
function ci({ cellId: e, cell: n, isCodeHidden: r, codeFocus: i, variableName: a }) {
|
|
2321
2321
|
if (!n) return;
|
|
2322
|
-
let o = document.getElementById(
|
|
2322
|
+
let o = document.getElementById(L.create(e));
|
|
2323
2323
|
if (!o) t.warn("scrollCellIntoView: element not found");
|
|
2324
2324
|
else if (rr()) ir(o);
|
|
2325
2325
|
else {
|
|
2326
2326
|
if (r) ir(o);
|
|
2327
2327
|
else {
|
|
2328
|
-
|
|
2328
|
+
Bt.promote(e);
|
|
2329
2329
|
let r = n.current?.editorView;
|
|
2330
2330
|
if (!r) {
|
|
2331
2331
|
t.warn("scrollCellIntoView: editor not found", e);
|
|
@@ -2367,7 +2367,7 @@ function ui() {
|
|
|
2367
2367
|
});
|
|
2368
2368
|
}
|
|
2369
2369
|
function di(e) {
|
|
2370
|
-
let t = document.getElementById(
|
|
2370
|
+
let t = document.getElementById(L.create(e));
|
|
2371
2371
|
return t?.scrollIntoView({
|
|
2372
2372
|
behavior: "smooth",
|
|
2373
2373
|
block: "center"
|
|
@@ -2385,18 +2385,18 @@ function fi(e) {
|
|
|
2385
2385
|
return {
|
|
2386
2386
|
...e,
|
|
2387
2387
|
cellData: {
|
|
2388
|
-
[
|
|
2389
|
-
id:
|
|
2388
|
+
[I]: Nn({
|
|
2389
|
+
id: I,
|
|
2390
2390
|
config: t
|
|
2391
2391
|
}),
|
|
2392
2392
|
...e.cellData
|
|
2393
2393
|
},
|
|
2394
2394
|
cellRuntime: {
|
|
2395
|
-
[
|
|
2395
|
+
[I]: V(),
|
|
2396
2396
|
...e.cellRuntime
|
|
2397
2397
|
},
|
|
2398
2398
|
cellHandles: {
|
|
2399
|
-
[
|
|
2399
|
+
[I]: (0, E.createRef)(),
|
|
2400
2400
|
...e.cellHandles
|
|
2401
2401
|
}
|
|
2402
2402
|
};
|
|
@@ -2425,7 +2425,7 @@ var { reducer: mi, createActions: hi, useActions: gi, valueAtom: Z } = le(pi, {
|
|
|
2425
2425
|
let n = t.cell_id, r = Q({
|
|
2426
2426
|
state: e,
|
|
2427
2427
|
cellId: n,
|
|
2428
|
-
cellReducer: (e) =>
|
|
2428
|
+
cellReducer: (e) => $t(e, t)
|
|
2429
2429
|
});
|
|
2430
2430
|
return {
|
|
2431
2431
|
...r,
|
|
@@ -2465,7 +2465,7 @@ var { reducer: mi, createActions: hi, useActions: gi, valueAtom: Z } = le(pi, {
|
|
|
2465
2465
|
},
|
|
2466
2466
|
resetCellRuntimes: (e) => {
|
|
2467
2467
|
let t = _e(), n = { ...e.cellRuntime };
|
|
2468
|
-
for (let r of [...e.cellIds,
|
|
2468
|
+
for (let r of [...e.cellIds, I]) {
|
|
2469
2469
|
let i = e.cellRuntime[r];
|
|
2470
2470
|
n[r] = t && i !== void 0 && (i.output != null || i.consoleOutputs.length > 0) ? i : V();
|
|
2471
2471
|
}
|
|
@@ -2481,7 +2481,7 @@ var { reducer: mi, createActions: hi, useActions: gi, valueAtom: Z } = le(pi, {
|
|
|
2481
2481
|
return ci({
|
|
2482
2482
|
cellId: n,
|
|
2483
2483
|
cell: e.cellHandles[n],
|
|
2484
|
-
isCodeHidden: zn(e.cellData[n]?.config.hide_code,
|
|
2484
|
+
isCodeHidden: zn(e.cellData[n]?.config.hide_code, w.get(H), n),
|
|
2485
2485
|
codeFocus: void 0,
|
|
2486
2486
|
variableName: void 0
|
|
2487
2487
|
}), {
|
|
@@ -2489,8 +2489,8 @@ var { reducer: mi, createActions: hi, useActions: gi, valueAtom: Z } = le(pi, {
|
|
|
2489
2489
|
scrollKey: null
|
|
2490
2490
|
};
|
|
2491
2491
|
},
|
|
2492
|
-
foldAll: (e) => (
|
|
2493
|
-
unfoldAll: (e) => (
|
|
2492
|
+
foldAll: (e) => (Ft(Object.values(e.cellHandles).map((e) => e.current?.editorView)), e),
|
|
2493
|
+
unfoldAll: (e) => (It(Object.values(e.cellHandles).map((e) => e.current?.editorView)), e),
|
|
2494
2494
|
clearLogs: (e) => ({
|
|
2495
2495
|
...e,
|
|
2496
2496
|
cellLogs: []
|
|
@@ -2541,15 +2541,15 @@ function Q({ state: e, cellId: n, cellReducer: r }) {
|
|
|
2541
2541
|
} : (t.warn(`Cell ${n} not found in state`), e);
|
|
2542
2542
|
}
|
|
2543
2543
|
var _i = hi((e) => {
|
|
2544
|
-
|
|
2545
|
-
}).addLogs, $ =
|
|
2546
|
-
|
|
2547
|
-
var vi =
|
|
2544
|
+
w.set(Z, (t) => mi(t, e));
|
|
2545
|
+
}).addLogs, $ = p((e) => e(Z).cellIds);
|
|
2546
|
+
p((e) => e($).length === 1), p((e) => cr(e(Z)).length > 0), p((e) => lr(e(Z)).length > 0), p((e) => ur(e(Z))), p((e) => dr(e(Z))), p((e) => or(e(Z), e(M), e(ft)));
|
|
2547
|
+
var vi = p((e) => {
|
|
2548
2548
|
let { cellIds: t, cellRuntime: n, cellData: r } = e(Z);
|
|
2549
2549
|
return t.map((e) => {
|
|
2550
2550
|
let t = n[e], { name: i } = r[e];
|
|
2551
|
-
if (
|
|
2552
|
-
|
|
2551
|
+
if (P(t.output?.mimetype)) {
|
|
2552
|
+
T(Array.isArray(t.output.data), "Expected array data");
|
|
2553
2553
|
let n = t.output.data.filter((e) => !e.type.includes("ancestor"));
|
|
2554
2554
|
if (n.length > 0) return {
|
|
2555
2555
|
output: {
|
|
@@ -2562,47 +2562,47 @@ var vi = y((e) => {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
return null;
|
|
2564
2564
|
}).filter(Boolean);
|
|
2565
|
-
}), yi =
|
|
2565
|
+
}), yi = x(p((e) => {
|
|
2566
2566
|
let t = {};
|
|
2567
|
-
for (let [n, r] of
|
|
2567
|
+
for (let [n, r] of se.entries(e(Z).cellRuntime)) r.outline !== null && r.outline.items.length > 0 && (t[n] = r.outline);
|
|
2568
2568
|
return t;
|
|
2569
|
-
})), bi =
|
|
2569
|
+
})), bi = p((e) => {
|
|
2570
2570
|
let t = e($), n = e(Di);
|
|
2571
|
-
return
|
|
2571
|
+
return At(t.map((e) => n[e].outline));
|
|
2572
2572
|
});
|
|
2573
|
-
|
|
2574
|
-
var xi =
|
|
2573
|
+
p((e) => e(vi).length);
|
|
2574
|
+
var xi = x(p((e) => {
|
|
2575
2575
|
let { cellIds: t, cellData: n } = e(Z);
|
|
2576
|
-
return
|
|
2576
|
+
return se.fromEntries(t.map((e) => [e, n[e]?.name]));
|
|
2577
2577
|
}));
|
|
2578
|
-
|
|
2579
|
-
var Si = () =>
|
|
2580
|
-
let { cellIds: e, cellData: t } =
|
|
2578
|
+
p((e) => e(Z).scrollKey);
|
|
2579
|
+
var Si = () => h($), Ci = () => h(xi), wi = () => w.get(Z), Ti = () => w.get(Z).cellIds, Ei = () => {
|
|
2580
|
+
let { cellIds: e, cellData: t } = w.get(Z);
|
|
2581
2581
|
return e.map((e) => t[e]?.name).filter(Boolean);
|
|
2582
2582
|
};
|
|
2583
|
-
|
|
2584
|
-
var Di =
|
|
2585
|
-
|
|
2586
|
-
var Oi =
|
|
2583
|
+
_(g(Z, (e) => e.cellIds.map((t) => e.cellData[t])));
|
|
2584
|
+
var Di = p((e) => e(Z).cellRuntime);
|
|
2585
|
+
p((e) => e(Z).cellIds.length > 0);
|
|
2586
|
+
var Oi = v((e) => p((t) => t(Z).cellData[e])), ki = v((e) => p((t) => t(Z).cellRuntime[e])), Ai = v((e) => p((t) => t(Z).cellHandles[e]));
|
|
2587
2587
|
function ji(e) {
|
|
2588
2588
|
Oi.remove(e), ki.remove(e), Ai.remove(e);
|
|
2589
2589
|
}
|
|
2590
2590
|
var Mi = (e) => {
|
|
2591
|
-
let { cellHandles: t } =
|
|
2591
|
+
let { cellHandles: t } = w.get(Z);
|
|
2592
2592
|
return t[e].current?.editorView;
|
|
2593
|
-
}, Ni = (e) => (
|
|
2593
|
+
}, Ni = (e) => (Bt.promote(e), Mi(e));
|
|
2594
2594
|
function Pi() {
|
|
2595
2595
|
return gi();
|
|
2596
2596
|
}
|
|
2597
2597
|
//#endregion
|
|
2598
2598
|
//#region src/core/errors/error-entries.ts
|
|
2599
2599
|
function Fi(e) {
|
|
2600
|
-
if (
|
|
2600
|
+
if (Vt(e.mimetype)) {
|
|
2601
2601
|
if (!Array.isArray(e.data)) return null;
|
|
2602
2602
|
let t = e.data.filter((e) => !e.type.includes("ancestor"));
|
|
2603
2603
|
return t.length === 0 ? null : { errorData: t };
|
|
2604
2604
|
}
|
|
2605
|
-
return
|
|
2605
|
+
return N(e.mimetype) ? typeof e.data != "string" || e.data.length === 0 ? null : {
|
|
2606
2606
|
errorData: [],
|
|
2607
2607
|
tracebackHtml: e.data
|
|
2608
2608
|
} : null;
|
|
@@ -2611,7 +2611,7 @@ function Ii(e) {
|
|
|
2611
2611
|
return e.some((e) => "traceback" in e && e.traceback);
|
|
2612
2612
|
}
|
|
2613
2613
|
function Li(e) {
|
|
2614
|
-
let t = e?.find((e) =>
|
|
2614
|
+
let t = e?.find((e) => N(e.mimetype));
|
|
2615
2615
|
if (t && typeof t.data == "string" && t.data.length !== 0) return t.data;
|
|
2616
2616
|
}
|
|
2617
2617
|
function Ri(e, t) {
|
|
@@ -2622,7 +2622,7 @@ function zi(e) {
|
|
|
2622
2622
|
let { cellIds: t, cellRuntime: n, cellData: r } = e.get(Z), i = [];
|
|
2623
2623
|
for (let [e, a] of t.entries()) {
|
|
2624
2624
|
let t = n[a], o = t.output;
|
|
2625
|
-
if (!o || !
|
|
2625
|
+
if (!o || !P(o.mimetype)) continue;
|
|
2626
2626
|
let s = Fi(o);
|
|
2627
2627
|
if (!s) continue;
|
|
2628
2628
|
let c = jn(r[a].name, e), l = o.code ?? r[a].code;
|
|
@@ -2648,4 +2648,4 @@ function Hi(e) {
|
|
|
2648
2648
|
return e.tracebackHtml && t.push(G(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(Vi).join("\n\n")), t.join("\n\n");
|
|
2649
2649
|
}
|
|
2650
2650
|
//#endregion
|
|
2651
|
-
export { G as $, ii as A,
|
|
2651
|
+
export { G as $, ii as A, on as At, Ar as B, lt as Bt, li as C, mn as Ct, X as D, pn as Dt, si as E, un as Et, K as F, kt as Ft, vr as G, vt as Gt, Or as H, _t as Ht, Br as I, wt as It, sr as J, A as Jt, yr as K, Je as Kt, Ir as L, yt as Lt, Ur as M, en as Mt, Vr as N, tn as Nt, ai as O, fn as Ot, Hr as P, Mt as Pt, Yn as Q, Lr as R, M as Rt, ci as S, dn as St, ui as T, I as Tt, Cr as U, mt as Ut, jr as V, xt as Vt, br as W, gt as Wt, _r as X, be as Xt, gr as Y, xe as Yt, nr as Z, mi as _, En as _t, _i as a, Ln as at, Ci as b, Sn as bt, hi as c, Mn as ct, Ei as d, R as dt, Hn as et, Ti as f, wn as ft, bi as g, Dn as gt, Z as h, Tn as ht, zi as i, Rn as it, Gr as j, nn as jt, oi as k, an as kt, Ni as l, kn as lt, pi as m, Cn as mt, Hi as n, Bn as nt, Oi as o, jn as ot, wi as p, z as pt, mr as q, Re as qt, Vi as r, H as rt, $ as s, An as st, Bi as t, zn as tt, Mi as u, hn as ut, ji as v, B as vt, di as w, L as wt, Pi as x, xn as xt, Si as y, gn as yt, Rr as z, ft as zt };
|