@marimo-team/islands 0.19.8-dev4 → 0.19.8-dev41
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/{Combination-Bg-xN8JV.js → Combination-BTMrlhzT.js} +11 -10
- package/dist/{ConnectedDataExplorerComponent-DewsKLl2.js → ConnectedDataExplorerComponent-BAeQ8DWw.js} +11 -11
- package/dist/{ImageComparisonComponent-Bijp8beW.js → ImageComparisonComponent-DkEXPki_.js} +2 -2
- package/dist/{any-language-editor-DZc6NCTp.js → any-language-editor-D0UQItkS.js} +6 -6
- package/dist/{architectureDiagram-VXUJARFQ--NkyBn9Y.js → architectureDiagram-VXUJARFQ-DPPYVq8H.js} +4 -4
- package/dist/assets/__vite-browser-external-6-UwTyQC.js +1 -0
- package/dist/assets/{worker-SqntmiwV.js → worker-D3e5wDxM.js} +4 -4
- package/dist/{blockDiagram-VD42YOAC-DEZZaTW0.js → blockDiagram-VD42YOAC-BA5N05Y9.js} +4 -4
- package/dist/{button-BWvsJ2Wr.js → button-Cy0ElmIm.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-Bj7hwWCO.js → c4Diagram-YG6GDRKO-DJLzuGJJ.js} +3 -3
- package/dist/{channel-B_QrFrGg.js → channel-Dob5kWXR.js} +1 -1
- package/dist/{check-CM_kewwn.js → check-DkNR52Mm.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-D5VFKHmt.js → chunk-5FQGJX7Z-BEb20Lzt.js} +3 -3
- package/dist/{chunk-ABZYJK2D-SZPYmRzN.js → chunk-ABZYJK2D-BXTC53mt.js} +1 -1
- package/dist/{chunk-ATLVNIR6-BI_WwH1o.js → chunk-ATLVNIR6-BJDjUR_c.js} +1 -1
- package/dist/{chunk-B4BG7PRW-BlI9Gm1l.js → chunk-B4BG7PRW-DzmUUpfH.js} +4 -4
- package/dist/{chunk-DI55MBZ5-BXxemMn5.js → chunk-DI55MBZ5-gTd3J8Tu.js} +4 -4
- package/dist/{chunk-EXTU4WIE-CzWtDV99.js → chunk-EXTU4WIE-DyoOs5QX.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-DQ-2ARfa.js → chunk-JA3XYJ7Z-BGnAIbOP.js} +2 -2
- package/dist/{chunk-JZLCHNYA-CVfjf2vv.js → chunk-JZLCHNYA-CIRgweVQ.js} +4 -4
- package/dist/{chunk-N4CR4FBY-BCZvQ7Jq.js → chunk-N4CR4FBY-DKSvXAIS.js} +5 -5
- package/dist/{chunk-QN33PNHL-DY_2Q2zl.js → chunk-QN33PNHL-B6zC8BTi.js} +1 -1
- package/dist/{chunk-QXUST7PY-BMCjAVR_.js → chunk-QXUST7PY-C7750n_u.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-Ddu0H4Qa.js → chunk-S3R3BYOJ-CBkH6JZZ.js} +1 -1
- package/dist/{chunk-TZMSLE5B-C2wVlbMl.js → chunk-TZMSLE5B-DObGL7xi.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-D-g7zbyO.js → classDiagram-2ON5EDUG-B9pkKjjc.js} +9 -9
- package/dist/{classDiagram-v2-WZHVMYZB-C7v5zNRD.js → classDiagram-v2-WZHVMYZB-CRhhA0tV.js} +9 -9
- package/dist/{click-outside-container-BCN5BtVO.js → click-outside-container-DNfggvIW.js} +1 -1
- package/dist/{code-block-37QAKDTI-eUgXqGNG.js → code-block-37QAKDTI-u5kgjqmr.js} +2 -2
- package/dist/{compiler-runtime-DHFVbq0b.js → compiler-runtime-B_OLMU9S.js} +1 -1
- package/dist/{copy-B59Bw3-w.js → copy-DRaXIb_a.js} +3 -3
- package/dist/{dagre-6UL2VRFP-DKIPL74O.js → dagre-6UL2VRFP-C2C2XxsB.js} +6 -6
- package/dist/{data-grid-overlay-editor-COyFwFmE.js → data-grid-overlay-editor-BXqtz1ia.js} +4 -4
- package/dist/{diagram-PSM6KHXK-CVTrAZaP.js → diagram-PSM6KHXK-DHBY-94p.js} +5 -5
- package/dist/{diagram-QEK2KX5R-BqHBzu3x.js → diagram-QEK2KX5R-CgMshOwn.js} +3 -3
- package/dist/{diagram-S2PKOQOG-CJD6owcg.js → diagram-S2PKOQOG-F1KPva3Y.js} +3 -3
- package/dist/{dist-Co5PD8Fb.js → dist-BBYTEAvO.js} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-CqOceSf9.js → erDiagram-Q2GNP2WA-18gGng8V.js} +9 -9
- package/dist/{error-banner-C7KLpECd.js → error-banner-D2zjeN_a.js} +5 -5
- package/dist/{esm-D4WO8J3G.js → esm-CgRNPmz8.js} +6 -6
- package/dist/{flowDiagram-NV44I4VS-K7-DUifo.js → flowDiagram-NV44I4VS-iHFiHYe0.js} +9 -9
- package/dist/{ganttDiagram-JELNMOA3-BwUFY9Nu.js → ganttDiagram-JELNMOA3-D7GixxiF.js} +2 -2
- package/dist/{gitGraphDiagram-NY62KEGX-CjGRtLb1.js → gitGraphDiagram-NY62KEGX-CJFHytRK.js} +2 -2
- package/dist/{glide-data-editor-C3T7HsLi.js → glide-data-editor-BYwb17Bf.js} +13 -13
- package/dist/{infoDiagram-WHAUD3N6-DNhmDn-6.js → infoDiagram-WHAUD3N6-B5Lkh3A9.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-BOdK47P8.js → journeyDiagram-XKPGCS4Q-CV_9R9iP.js} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-A0JC9d0g.js → kanban-definition-3W4ZIXB7-Dp21D5Ym.js} +6 -6
- package/dist/{katex-DJyOeQ91.js → katex-CX2BKujk.js} +1 -1
- package/dist/{katex-Dm9nZf6A.js → katex-Db0k5oV_.js} +1 -1
- package/dist/{label-C4PtQcza.js → label-CxU5JNBW.js} +6 -6
- package/dist/main.js +270 -206
- package/dist/mermaid-4DMBBIKO-BhDCqnO1.js +6 -0
- package/dist/{mermaid-Bqp2Xw99.js → mermaid-B__BZSXU.js} +39 -39
- package/dist/{mhchem-BqdXeZVX.js → mhchem-w1tkUnWr.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-CS6nKN_L.js → mindmap-definition-VGOIOE7T-B_5mfdYp.js} +8 -8
- package/dist/{number-overlay-editor-Bz_bDJQb.js → number-overlay-editor-D-4WQAGX.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-DSa60Grk.js → pieDiagram-ADFJNKIX-B-DGEopK.js} +3 -3
- package/dist/{quadrantDiagram-AYHSOK5B-CFnMbP2J.js → quadrantDiagram-AYHSOK5B-M_yRSIZn.js} +1 -1
- package/dist/{react-DdA8EBol.js → react-Bs6Z0kvn.js} +1 -1
- package/dist/{react-dom-DJW8xUDg.js → react-dom-CqtLRVZP.js} +2 -2
- package/dist/{react-plotly-jVjTu07w.js → react-plotly-BuRa9xtI.js} +1 -1
- package/dist/{react-vega-DgHpnZ04.js → react-vega-3WcLHYC7.js} +2 -2
- package/dist/{react-vega-CjiPWyw0.js → react-vega-DLFvGrpJ.js} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-ytLQrFTk.js → requirementDiagram-UZGBJVZJ-9Wt82hOZ.js} +8 -8
- package/dist/{sankeyDiagram-TZEHDZUN-KQqXDoky.js → sankeyDiagram-TZEHDZUN-x_aTXZeN.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-ByLI04T5.js → sequenceDiagram-WL72ISMW-CXXmJqiQ.js} +3 -3
- package/dist/{slides-component-BVjvNo92.js → slides-component-Dp-y50K9.js} +4 -4
- package/dist/{spec-Dmb1KfK3.js → spec-HoYHAQo2.js} +6 -6
- package/dist/{stateDiagram-FKZM4ZOC-Dfz8vBbP.js → stateDiagram-FKZM4ZOC-CiSKS_Mx.js} +9 -9
- package/dist/{stateDiagram-v2-4FDKWEC3-DRYoLdT5.js → stateDiagram-v2-4FDKWEC3-A43Itnjp.js} +9 -9
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-IT6M3QCI-CO48XU1B.js → timeline-definition-IT6M3QCI-DR26eWb4.js} +1 -1
- package/dist/{types-CzEZ3EWT.js → types-Bb-6p8hv.js} +8 -8
- package/dist/{useAsyncData-BjNwqCfS.js → useAsyncData-Dyq3DyOF.js} +3 -3
- package/dist/{useDeepCompareMemoize-CfoxVor3.js → useDeepCompareMemoize-CMGprt3H.js} +5 -5
- package/dist/{useIframeCapabilities-BBO_R0ww.js → useIframeCapabilities-DurI5SJh.js} +2 -2
- package/dist/{useTheme-BYG2SH8J.js → useTheme-SlKl8MlS.js} +5 -6
- package/dist/{vega-component-rDX7xwxH.js → vega-component-DU3aSp4m.js} +10 -10
- package/dist/{xychartDiagram-PRI3JC2R-CUIfjNVD.js → xychartDiagram-PRI3JC2R-BcVxCRox.js} +4 -4
- package/dist/{zod-DITCj31F.js → zod-bjADtMKr.js} +3 -3
- package/package.json +18 -18
- package/src/components/app-config/ai-config.tsx +11 -2
- package/src/components/app-config/user-config-form.tsx +0 -54
- package/src/components/chat/acp/__tests__/state.test.ts +69 -0
- package/src/components/chat/acp/state.ts +6 -6
- package/src/components/chat/chat-panel.tsx +47 -30
- package/src/components/data-table/__tests__/data-table.test.tsx +94 -2
- package/src/components/editor/actions/useCellActionButton.tsx +14 -1
- package/src/components/editor/cell/CreateCellButton.tsx +2 -1
- package/src/components/editor/cell/code/cell-editor.tsx +12 -0
- package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +15 -0
- package/src/components/editor/database/__tests__/as-code.test.ts +8 -0
- package/src/components/editor/database/as-code.ts +3 -0
- package/src/components/editor/database/schemas.ts +9 -0
- package/src/components/editor/renderers/cell-array.tsx +2 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -0
- package/src/components/pages/gallery-page.tsx +37 -6
- package/src/core/MarimoApp.tsx +12 -8
- package/src/core/ai/context/providers/file.ts +1 -1
- package/src/core/cells/__tests__/cells.test.ts +120 -0
- package/src/core/cells/__tests__/session.test.ts +37 -1
- package/src/core/cells/cells.ts +14 -0
- package/src/core/cells/session.ts +20 -8
- package/src/core/codemirror/language/languages/markdown.ts +7 -0
- package/src/core/config/feature-flag.tsx +0 -4
- package/src/core/dom/uiregistry.ts +4 -1
- package/src/core/run-app.tsx +11 -4
- package/src/core/static/__tests__/files.test.ts +195 -1
- package/src/core/static/files.ts +39 -9
- package/src/plugins/core/registerReactComponent.tsx +9 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +164 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/utils/__tests__/blob.test.ts +3 -3
- package/src/utils/__tests__/id-tree.test.ts +22 -7
- package/src/utils/__tests__/mime-types.test.ts +8 -10
- package/src/utils/__tests__/url-parser.test.ts +22 -0
- package/src/utils/blob.ts +14 -27
- package/src/utils/id-tree.tsx +11 -19
- package/src/utils/mime-types.ts +5 -5
- package/src/utils/url-parser.ts +1 -1
- package/dist/assets/__vite-browser-external-DRa9CT_O.js +0 -1
- package/dist/mermaid-4DMBBIKO-o3xNphpD.js +0 -6
package/dist/main.js
CHANGED
|
@@ -2,25 +2,25 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { a as __toCommonJS, n as __esmMin, o as __toDynamicImportESM, r as __export$1, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
|
-
import { t as require_react } from "./react-
|
|
6
|
-
import { t as require_compiler_runtime } from "./compiler-runtime-
|
|
7
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
8
|
-
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-
|
|
9
|
-
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive, M as composeEventHandlers$1, N as createLucideIcon, O as createSlot, S as useId$12, T as useCallbackRef, _ as Arrow, a as __awaiter, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$5, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, l as isInVscodeExtension, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$3, w as DismissableLayer, x as useSize, y as Root2$6 } from "./Combination-
|
|
10
|
-
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as useOnUnmount, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as ToggleLeft } from "./spec-
|
|
11
|
-
import { t as Check } from "./check-
|
|
12
|
-
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-
|
|
13
|
-
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-
|
|
14
|
-
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-
|
|
5
|
+
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
6
|
+
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
7
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DRaXIb_a.js";
|
|
8
|
+
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-BEb20Lzt.js";
|
|
9
|
+
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive, M as composeEventHandlers$1, N as createLucideIcon, O as createSlot, S as useId$12, T as useCallbackRef, _ as Arrow, a as __awaiter, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$5, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, l as isInVscodeExtension, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$3, w as DismissableLayer, x as useSize, y as Root2$6 } from "./Combination-BTMrlhzT.js";
|
|
10
|
+
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as useOnUnmount, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as ToggleLeft } from "./spec-HoYHAQo2.js";
|
|
11
|
+
import { t as Check } from "./check-DkNR52Mm.js";
|
|
12
|
+
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-CxU5JNBW.js";
|
|
13
|
+
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-Bb-6p8hv.js";
|
|
14
|
+
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-CMGprt3H.js";
|
|
15
15
|
import { n as clsx_default } from "./clsx-D2KVTYnW.js";
|
|
16
|
-
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-
|
|
16
|
+
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-Cy0ElmIm.js";
|
|
17
17
|
import { c as Functions, i as parseShortcut, l as throwNotImplemented, o as Objects, r as isPlatformMac, s as Logger, t as NOT_SET } from "./hotkeys-B5WnGZXF.js";
|
|
18
18
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
19
|
-
import { t as require_react_dom } from "./react-dom-
|
|
20
|
-
import { a as Portal$3, c as prettyError, d as TooltipPortal, f as TooltipProvider, h as TooltipProvider$1, i as Overlay, l as Tooltip, m as TooltipTrigger, n as ErrorBanner, o as Root$7, p as TooltipRoot, r as Content$4, s as CellNotInitializedError, t as Banner, u as TooltipContent } from "./error-banner-
|
|
21
|
-
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as historyField, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as insertTab } from "./esm-
|
|
19
|
+
import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
|
|
20
|
+
import { a as Portal$3, c as prettyError, d as TooltipPortal, f as TooltipProvider, h as TooltipProvider$1, i as Overlay, l as Tooltip, m as TooltipTrigger, n as ErrorBanner, o as Root$7, p as TooltipRoot, r as Content$4, s as CellNotInitializedError, t as Banner, u as TooltipContent } from "./error-banner-D2zjeN_a.js";
|
|
21
|
+
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as historyField, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as insertTab } from "./esm-CgRNPmz8.js";
|
|
22
22
|
import { t as purify } from "./purify.es-Brw-U87Q.js";
|
|
23
|
-
import { C as buildStore, _ as useAtom, a as getResolvedMarimoConfig, b as useStore, c as AppConfigSchema, d as useJotaiEffect, g as Provider, h as useEvent_default, i as autoInstantiateAtom, l as createDeepEqualAtom, m as isEqual_default, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useAtomValue, w as getBuildingBlocks, x as atom, y as useSetAtom } from "./useTheme-
|
|
23
|
+
import { C as buildStore, _ as useAtom, a as getResolvedMarimoConfig, b as useStore, c as AppConfigSchema, d as useJotaiEffect, g as Provider, h as useEvent_default, i as autoInstantiateAtom, l as createDeepEqualAtom, m as isEqual_default, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useAtomValue, w as getBuildingBlocks, x as atom, y as useSetAtom } from "./useTheme-SlKl8MlS.js";
|
|
24
24
|
import { $ as ViewPlugin, At as RangeSet, B as tags$1, Dt as Facet$1, E as getIndentUnit, Et as EditorState, Ft as Text$2, I as syntaxTree, It as Transaction, J as parseMixed, L as unfoldAll, Nt as StateEffect, Pt as StateField, Q as GutterMarker, S as foldInside, Tt as EditorSelection, Y as Decoration, Z as EditorView, _t as showPanel, b as foldAll, bt as Annotation, dt as keymap, et as WidgetType, f as StreamLanguage, kt as Prec, l as LanguageDescription, mt as placeholder, ot as gutter, u as LanguageSupport, ut as hoverTooltip, vt as showTooltip, w as foldNodeProp, wt as Compartment } from "./dist-D7jHtwN8.js";
|
|
25
25
|
import { d as snippet, n as acceptCompletion, o as closeCompletion, r as autocompletion, u as insertCompletionText } from "./dist-g1p2PEVs.js";
|
|
26
26
|
import { p as _baseTimes_default } from "./_baseFor-DSVmVciX.js";
|
|
@@ -32,10 +32,10 @@ import { a as get_default, t as _baseProperty_default } from "./_baseProperty-BV
|
|
|
32
32
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-DrOu5vvd.js";
|
|
33
33
|
import { t as isEmpty_default } from "./isEmpty-DQXRKNtW.js";
|
|
34
34
|
import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-B0KEFFi-.js";
|
|
35
|
-
import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, F as optional, G as parse$3, H as safeParseAsync, I as record, J as prettifyError, K as parseAsync, L as strictObject, M as never, N as number$2, O as lazy$4, P as object$1, R as string$2, S as _null, T as boolean$2, U as ZodError$1, V as unknown, W as toJSONSchema, _ as ZodString$1, a as ZodIssueCode$1, b as _enum, c as ZodBoolean$1, d as ZodDiscriminatedUnion$1, f as ZodEnum$1, g as ZodOptional$1, h as ZodObject$1, i as string$3, j as nan, k as literal, l as ZodDate$1, m as ZodNumber$1, n as date, o as ZodAny$1, p as ZodLiteral$1, q as $ZodError, r as number$3, s as ZodArray$1, t as zod_default, u as ZodDefault$1, v as ZodType$1, w as array$2, x as _instanceof, y as ZodUnion$1, z as tuple } from "./zod-
|
|
35
|
+
import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, F as optional, G as parse$3, H as safeParseAsync, I as record, J as prettifyError, K as parseAsync, L as strictObject, M as never, N as number$2, O as lazy$4, P as object$1, R as string$2, S as _null, T as boolean$2, U as ZodError$1, V as unknown, W as toJSONSchema, _ as ZodString$1, a as ZodIssueCode$1, b as _enum, c as ZodBoolean$1, d as ZodDiscriminatedUnion$1, f as ZodEnum$1, g as ZodOptional$1, h as ZodObject$1, i as string$3, j as nan, k as literal, l as ZodDate$1, m as ZodNumber$1, n as date, o as ZodAny$1, p as ZodLiteral$1, q as $ZodError, r as number$3, s as ZodArray$1, t as zod_default, u as ZodDefault$1, v as ZodType$1, w as array$2, x as _instanceof, y as ZodUnion$1, z as tuple } from "./zod-bjADtMKr.js";
|
|
36
36
|
import { t as invariant } from "./invariant-D9QLJ4SZ.js";
|
|
37
37
|
import { a as arrayInsert, c as arrayShallowEquals, i as arrayDelete, l as uniqueBy, n as once, o as arrayInsertMany, r as Arrays, s as arrayMove, t as memoizeLastValue, u as clamp } from "./once-BqS42WgZ.js";
|
|
38
|
-
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-
|
|
38
|
+
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-DurI5SJh.js";
|
|
39
39
|
import { i as main_exports, r as init_main } from "./main-DhFbkwoC.js";
|
|
40
40
|
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CPd_adhw.js";
|
|
41
41
|
import { a as markdown, s as markdownLanguage } from "./dist-CBA36Nuy.js";
|
|
@@ -47,10 +47,10 @@ import { n as stexMath } from "./stex-DrxP7bb3.js";
|
|
|
47
47
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm--WpIBtj8.js";
|
|
48
48
|
import { t as require_prop_types } from "./prop-types-C9QZf2SY.js";
|
|
49
49
|
import { n as formats } from "./vega-loader.browser-BJ1uJidF.js";
|
|
50
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
50
|
+
import { t as useAsyncData } from "./useAsyncData-Dyq3DyOF.js";
|
|
51
51
|
import "./defaultLocale-qS7DaAmi.js";
|
|
52
52
|
import "./defaultLocale-Bxoo2-30.js";
|
|
53
|
-
import { c as katex } from "./katex-
|
|
53
|
+
import { c as katex } from "./katex-Db0k5oV_.js";
|
|
54
54
|
import "./dist-9J8_3DZN.js";
|
|
55
55
|
import "./dist-CsN7lsea.js";
|
|
56
56
|
import "./dist-BbQ-5HAA.js";
|
|
@@ -5129,36 +5129,36 @@ let __tla = Promise.all([
|
|
|
5129
5129
|
key: "1q7to0"
|
|
5130
5130
|
}
|
|
5131
5131
|
]
|
|
5132
|
-
]),
|
|
5132
|
+
]), Scroll = createLucideIcon("scroll", [
|
|
5133
5133
|
[
|
|
5134
5134
|
"path",
|
|
5135
5135
|
{
|
|
5136
|
-
d: "
|
|
5137
|
-
key: "
|
|
5136
|
+
d: "M19 17V5a2 2 0 0 0-2-2H4",
|
|
5137
|
+
key: "zz82l3"
|
|
5138
5138
|
}
|
|
5139
5139
|
],
|
|
5140
5140
|
[
|
|
5141
5141
|
"path",
|
|
5142
5142
|
{
|
|
5143
|
-
d: "
|
|
5144
|
-
key: "
|
|
5143
|
+
d: "M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",
|
|
5144
|
+
key: "1ph1d7"
|
|
5145
5145
|
}
|
|
5146
|
-
]
|
|
5146
|
+
]
|
|
5147
|
+
]), ScrollText = createLucideIcon("scroll-text", [
|
|
5147
5148
|
[
|
|
5148
5149
|
"path",
|
|
5149
5150
|
{
|
|
5150
|
-
d: "
|
|
5151
|
-
key: "
|
|
5151
|
+
d: "M15 12h-5",
|
|
5152
|
+
key: "r7krc0"
|
|
5152
5153
|
}
|
|
5153
5154
|
],
|
|
5154
5155
|
[
|
|
5155
5156
|
"path",
|
|
5156
5157
|
{
|
|
5157
|
-
d: "
|
|
5158
|
-
key: "
|
|
5158
|
+
d: "M15 8h-5",
|
|
5159
|
+
key: "1khuty"
|
|
5159
5160
|
}
|
|
5160
|
-
]
|
|
5161
|
-
]), Scroll = createLucideIcon("scroll", [
|
|
5161
|
+
],
|
|
5162
5162
|
[
|
|
5163
5163
|
"path",
|
|
5164
5164
|
{
|
|
@@ -11455,7 +11455,7 @@ let __tla = Promise.all([
|
|
|
11455
11455
|
return _;
|
|
11456
11456
|
}, e, r || cacheKeyForEmptyKeyExtractor);
|
|
11457
11457
|
}
|
|
11458
|
-
var isPromiseLike$
|
|
11458
|
+
var isPromiseLike$2 = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
11459
11459
|
function createJSONStorage(e = () => {
|
|
11460
11460
|
try {
|
|
11461
11461
|
return window.localStorage;
|
|
@@ -11478,7 +11478,7 @@ let __tla = Promise.all([
|
|
|
11478
11478
|
}
|
|
11479
11479
|
return d;
|
|
11480
11480
|
}, y = ((_a3 = e()) == null ? void 0 : _a3.getItem(f2)) ?? null;
|
|
11481
|
-
return isPromiseLike$
|
|
11481
|
+
return isPromiseLike$2(y) ? y.then(v2) : v2(y);
|
|
11482
11482
|
},
|
|
11483
11483
|
setItem: (c2, d2) => {
|
|
11484
11484
|
var _a3;
|
|
@@ -11521,7 +11521,7 @@ let __tla = Promise.all([
|
|
|
11521
11521
|
return c.subscribe && (f2 = c.subscribe(e, d2, r)), f2;
|
|
11522
11522
|
}, atom((e2) => e2(f), (d2, _, v) => {
|
|
11523
11523
|
let y = typeof v == "function" ? v(d2(f)) : v;
|
|
11524
|
-
return y === RESET ? (_(f, r), c.removeItem(e)) : isPromiseLike$
|
|
11524
|
+
return y === RESET ? (_(f, r), c.removeItem(e)) : isPromiseLike$2(y) ? y.then((r2) => (_(f, r2), c.setItem(e, r2))) : (_(f, y), c.setItem(e, y));
|
|
11525
11525
|
});
|
|
11526
11526
|
}
|
|
11527
11527
|
var hydratedMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -12022,8 +12022,7 @@ ${d.join("\n")}`;
|
|
|
12022
12022
|
let c = [
|
|
12023
12023
|
...this.nodes
|
|
12024
12024
|
], d = c[r];
|
|
12025
|
-
|
|
12026
|
-
return c[r] = new TreeNode(d.value, false, []), c = arrayInsertMany(c, r + 1, d.children), this.withNodes(c);
|
|
12025
|
+
return d.isCollapsed ? (c[r] = new TreeNode(d.value, false, []), c = arrayInsertMany(c, r + 1, d.children), this.withNodes(c)) : this;
|
|
12027
12026
|
}
|
|
12028
12027
|
expandAll() {
|
|
12029
12028
|
let e2 = [
|
|
@@ -12071,12 +12070,8 @@ ${d.join("\n")}`;
|
|
|
12071
12070
|
return this.insert(e2, 0);
|
|
12072
12071
|
}
|
|
12073
12072
|
deleteAtIndex(e2) {
|
|
12074
|
-
let r = this.atOrThrow(e2), c = this.
|
|
12075
|
-
|
|
12076
|
-
c = c.expand(r);
|
|
12077
|
-
} catch {
|
|
12078
|
-
}
|
|
12079
|
-
return this.withNodes(arrayDelete(c.nodes, e2));
|
|
12073
|
+
let r = this.atOrThrow(e2), c = this.expand(r);
|
|
12074
|
+
return c.withNodes(arrayDelete(c.nodes, e2));
|
|
12080
12075
|
}
|
|
12081
12076
|
delete(e2) {
|
|
12082
12077
|
let r = this.indexOfOrThrow(e2);
|
|
@@ -12088,13 +12083,7 @@ ${d.join("\n")}`;
|
|
|
12088
12083
|
}
|
|
12089
12084
|
findAndExpandDeep(e2) {
|
|
12090
12085
|
let r = this.find(e2);
|
|
12091
|
-
|
|
12092
|
-
let c = this.withNodes(this.nodes);
|
|
12093
|
-
for (let e3 of r) try {
|
|
12094
|
-
c = c.expand(e3);
|
|
12095
|
-
} catch {
|
|
12096
|
-
}
|
|
12097
|
-
return c;
|
|
12086
|
+
return r.length === 0 ? this : r.reduce((e3, r2) => e3.expand(r2), this);
|
|
12098
12087
|
}
|
|
12099
12088
|
find(e2) {
|
|
12100
12089
|
function r(c, d) {
|
|
@@ -13114,11 +13103,11 @@ ${d.join("\n")}`;
|
|
|
13114
13103
|
var r = e.toUpperCase();
|
|
13115
13104
|
return methods.indexOf(r) > -1 ? r : e;
|
|
13116
13105
|
}
|
|
13117
|
-
function Request(e, r) {
|
|
13118
|
-
if (!(this instanceof Request)) throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
13106
|
+
function Request$1(e, r) {
|
|
13107
|
+
if (!(this instanceof Request$1)) throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
13119
13108
|
r || (r = {});
|
|
13120
13109
|
var c = r.body;
|
|
13121
|
-
if (e instanceof Request) {
|
|
13110
|
+
if (e instanceof Request$1) {
|
|
13122
13111
|
if (e.bodyUsed) throw TypeError("Already read");
|
|
13123
13112
|
this.url = e.url, this.credentials = e.credentials, r.headers || (this.headers = new Headers$2(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !c && e._bodyInit != null && (c = e._bodyInit, e.bodyUsed = true);
|
|
13124
13113
|
} else this.url = String(e);
|
|
@@ -13162,7 +13151,7 @@ ${d.join("\n")}`;
|
|
|
13162
13151
|
}
|
|
13163
13152
|
function fetch$1(e, r) {
|
|
13164
13153
|
return new Promise(function(c, d) {
|
|
13165
|
-
var f = new Request(e, r);
|
|
13154
|
+
var f = new Request$1(e, r);
|
|
13166
13155
|
if (f.signal && f.signal.aborted) return d(new DOMException$1("Aborted", "AbortError"));
|
|
13167
13156
|
var _ = new XMLHttpRequest();
|
|
13168
13157
|
function v() {
|
|
@@ -13280,11 +13269,11 @@ ${d.join("\n")}`;
|
|
|
13280
13269
|
"POST",
|
|
13281
13270
|
"PUT",
|
|
13282
13271
|
"TRACE"
|
|
13283
|
-
], Request.prototype.clone = function() {
|
|
13284
|
-
return new Request(this, {
|
|
13272
|
+
], Request$1.prototype.clone = function() {
|
|
13273
|
+
return new Request$1(this, {
|
|
13285
13274
|
body: this._bodyInit
|
|
13286
13275
|
});
|
|
13287
|
-
}, Body.call(Request.prototype), Body.call(Response$1.prototype), Response$1.prototype.clone = function() {
|
|
13276
|
+
}, Body.call(Request$1.prototype), Body.call(Response$1.prototype), Response$1.prototype.clone = function() {
|
|
13288
13277
|
return new Response$1(this._bodyInit, {
|
|
13289
13278
|
status: this.status,
|
|
13290
13279
|
statusText: this.statusText,
|
|
@@ -13319,7 +13308,7 @@ ${d.join("\n")}`;
|
|
|
13319
13308
|
this.message = e, this.name = r, this.stack = Error(e).stack;
|
|
13320
13309
|
}, DOMException$1.prototype = Object.create(Error.prototype), DOMException$1.prototype.constructor = DOMException$1;
|
|
13321
13310
|
}
|
|
13322
|
-
fetch$1.polyfill = true, g$3.fetch || (g$3.fetch = fetch$1, g$3.Headers = Headers$2, g$3.Request = Request, g$3.Response = Response$1);
|
|
13311
|
+
fetch$1.polyfill = true, g$3.fetch || (g$3.fetch = fetch$1, g$3.Headers = Headers$2, g$3.Request = Request$1, g$3.Response = Response$1);
|
|
13323
13312
|
})), require_fetch_npm_browserify = __commonJSMin(((e, r) => {
|
|
13324
13313
|
init_fetch(), r.exports = self.fetch.bind(self);
|
|
13325
13314
|
})), require_HTTPTransport = __commonJSMin(((e) => {
|
|
@@ -27321,7 +27310,7 @@ ${JSON.stringify(e2, null, 4)}`);
|
|
|
27321
27310
|
}
|
|
27322
27311
|
};
|
|
27323
27312
|
var Z9 = c.version;
|
|
27324
|
-
if (Z9 !== "19.2.
|
|
27313
|
+
if (Z9 !== "19.2.4") throw Error(f(527, Z9, "19.2.4"));
|
|
27325
27314
|
eX.findDOMNode = function(e10) {
|
|
27326
27315
|
var r10 = e10._reactInternals;
|
|
27327
27316
|
if (r10 === void 0) throw typeof e10.render == "function" ? Error(f(188)) : (e10 = Object.keys(e10).join(","), Error(f(268, e10)));
|
|
@@ -27329,10 +27318,10 @@ ${JSON.stringify(e2, null, 4)}`);
|
|
|
27329
27318
|
};
|
|
27330
27319
|
var Q9 = {
|
|
27331
27320
|
bundleType: 0,
|
|
27332
|
-
version: "19.2.
|
|
27321
|
+
version: "19.2.4",
|
|
27333
27322
|
rendererPackageName: "react-dom",
|
|
27334
27323
|
currentDispatcherRef: $Y,
|
|
27335
|
-
reconcilerVersion: "19.2.
|
|
27324
|
+
reconcilerVersion: "19.2.4"
|
|
27336
27325
|
};
|
|
27337
27326
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
|
|
27338
27327
|
var $9 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -30411,8 +30400,6 @@ ${c.sqlString}
|
|
|
30411
30400
|
markdown: true,
|
|
30412
30401
|
wasm_layouts: false,
|
|
30413
30402
|
rtc_v2: false,
|
|
30414
|
-
performant_table_charts: false,
|
|
30415
|
-
chat_modes: false,
|
|
30416
30403
|
cache_panel: false,
|
|
30417
30404
|
external_agents: false,
|
|
30418
30405
|
server_side_pdf_export: true
|
|
@@ -39752,6 +39739,17 @@ ${c.sqlString}
|
|
|
39752
39739
|
}
|
|
39753
39740
|
return e;
|
|
39754
39741
|
},
|
|
39742
|
+
markUntouched: (e, r) => {
|
|
39743
|
+
let { cellId: c } = r;
|
|
39744
|
+
if (!e.untouchedNewCells.has(c)) {
|
|
39745
|
+
let r2 = new Set(e.untouchedNewCells);
|
|
39746
|
+
return r2.add(c), {
|
|
39747
|
+
...e,
|
|
39748
|
+
untouchedNewCells: r2
|
|
39749
|
+
};
|
|
39750
|
+
}
|
|
39751
|
+
return e;
|
|
39752
|
+
},
|
|
39755
39753
|
scrollToTarget: (e) => {
|
|
39756
39754
|
let r = e.scrollKey;
|
|
39757
39755
|
if (r === null) return e;
|
|
@@ -41343,8 +41341,7 @@ ${c.sqlString}
|
|
|
41343
41341
|
return this.entries.has(e2);
|
|
41344
41342
|
}
|
|
41345
41343
|
set(e2, r) {
|
|
41346
|
-
|
|
41347
|
-
this.entries.set(e2, {
|
|
41344
|
+
this.entries.has(e2) && Logger.debug("UIElementRegistry overwriting entry for objectId.", e2), this.entries.set(e2, {
|
|
41348
41345
|
objectId: e2,
|
|
41349
41346
|
value: r,
|
|
41350
41347
|
elements: /* @__PURE__ */ new Set()
|
|
@@ -44049,6 +44046,9 @@ ${c.sqlString}
|
|
|
44049
44046
|
function isStaticNotebook() {
|
|
44050
44047
|
return (window == null ? void 0 : window.__MARIMO_STATIC__) !== void 0;
|
|
44051
44048
|
}
|
|
44049
|
+
function getStaticVirtualFiles() {
|
|
44050
|
+
return invariant(window.__MARIMO_STATIC__ !== void 0, "Not a static notebook"), window.__MARIMO_STATIC__.files;
|
|
44051
|
+
}
|
|
44052
44052
|
function shallowCompare(e, r) {
|
|
44053
44053
|
return e === r ? true : e == null || r == null ? false : Array.isArray(e) && Array.isArray(r) ? arrayShallowEquals(e, r) : typeof e == "object" && typeof r == "object" ? shallowCompareObjects(e, r) : false;
|
|
44054
44054
|
}
|
|
@@ -51307,7 +51307,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
51307
51307
|
type: "image",
|
|
51308
51308
|
url: e
|
|
51309
51309
|
}
|
|
51310
|
-
] : e.split(urlRegex).filter((e2) => e2
|
|
51310
|
+
] : e.split(urlRegex).filter((e2) => e2 !== "").map((e2) => urlRegex.test(e2) ? imageRegex.test(e2) || dataImageRegex.test(e2) || knownImageDomains.some((r) => e2.includes(r)) ? {
|
|
51311
51311
|
type: "image",
|
|
51312
51312
|
url: e2
|
|
51313
51313
|
} : {
|
|
@@ -52274,10 +52274,12 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52274
52274
|
let { visible: c, hidden: d } = applyHidingRules(new Set(e.map(([e2]) => e2)), r.hidingRules);
|
|
52275
52275
|
return {
|
|
52276
52276
|
entries: sortByPrecedence(e.filter(([e2]) => c.has(e2)), r.precedence),
|
|
52277
|
-
hidden:
|
|
52277
|
+
hidden: [
|
|
52278
|
+
...d
|
|
52279
|
+
]
|
|
52278
52280
|
};
|
|
52279
52281
|
}
|
|
52280
|
-
const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-
|
|
52282
|
+
const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-3WcLHYC7.js").then((e) => ({
|
|
52281
52283
|
default: e.VegaEmbed
|
|
52282
52284
|
})));
|
|
52283
52285
|
var import_compiler_runtime$127 = require_compiler_runtime();
|
|
@@ -58756,7 +58758,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
58756
58758
|
hasConsoleOutput: (v == null ? void 0 : v.consoleOutputs) != null
|
|
58757
58759
|
};
|
|
58758
58760
|
}
|
|
58759
|
-
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
58761
|
+
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-D0UQItkS.js"));
|
|
58760
58762
|
var import_compiler_runtime$114 = require_compiler_runtime(), extensions = [
|
|
58761
58763
|
EditorView.lineWrapping
|
|
58762
58764
|
], SUPPORTED_LANGUAGES = /* @__PURE__ */ new Set([
|
|
@@ -63542,10 +63544,10 @@ ${O}`,
|
|
|
63542
63544
|
}
|
|
63543
63545
|
var import_client$1 = __toESM(require_client(), 1);
|
|
63544
63546
|
function PluginSlotInternal({ hostElement: e, plugin: r, children: c, getInitialValue: d }, f) {
|
|
63545
|
-
let [_, v] = (0, import_react.useState)(c), [y, S] = (0, import_react.useState)(d()), { theme: w } = useTheme(), [E, O] = (0, import_react.useState)(() => r.validator.safeParse(parseDataset(e)));
|
|
63547
|
+
let [_, v] = (0, import_react.useState)(c), [y, S] = (0, import_react.useState)(d()), { theme: w } = useTheme(), [E, O] = (0, import_react.useState)(() => r.validator.safeParse(parseDataset(e))), [M, I] = (0, import_react.useState)(0);
|
|
63546
63548
|
(0, import_react.useImperativeHandle)(f, () => ({
|
|
63547
63549
|
reset: () => {
|
|
63548
|
-
S(d()), O(r.validator.safeParse(parseDataset(e)));
|
|
63550
|
+
S(d()), O(r.validator.safeParse(parseDataset(e))), I((e2) => e2 + 1);
|
|
63549
63551
|
},
|
|
63550
63552
|
setChildren: (e2) => {
|
|
63551
63553
|
v(e2);
|
|
@@ -63568,12 +63570,12 @@ ${O}`,
|
|
|
63568
63570
|
e,
|
|
63569
63571
|
r.validator
|
|
63570
63572
|
]);
|
|
63571
|
-
let
|
|
63573
|
+
let z = useEvent_default((r2) => {
|
|
63572
63574
|
S((c2) => {
|
|
63573
63575
|
let d2 = Functions.asUpdater(r2)(c2);
|
|
63574
63576
|
return shallowCompare(d2, c2) || e.dispatchEvent(createInputEvent(d2, e)), d2;
|
|
63575
63577
|
});
|
|
63576
|
-
}),
|
|
63578
|
+
}), G = (0, import_react.useMemo)(() => {
|
|
63577
63579
|
if (!r.functions) return {};
|
|
63578
63580
|
let c2 = {};
|
|
63579
63581
|
for (let [d2, f2] of Objects.entries(r.functions)) {
|
|
@@ -63606,7 +63608,8 @@ ${O}`,
|
|
|
63606
63608
|
return c2;
|
|
63607
63609
|
}, [
|
|
63608
63610
|
r.functions,
|
|
63609
|
-
e
|
|
63611
|
+
e,
|
|
63612
|
+
M
|
|
63610
63613
|
]);
|
|
63611
63614
|
return E.success ? (0, import_jsx_runtime.jsx)(StyleNamespace, {
|
|
63612
63615
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -63614,12 +63617,12 @@ ${O}`,
|
|
|
63614
63617
|
children: (0, import_jsx_runtime.jsx)(import_react.Suspense, {
|
|
63615
63618
|
fallback: (0, import_jsx_runtime.jsx)("div", {}),
|
|
63616
63619
|
children: r.render({
|
|
63617
|
-
setValue:
|
|
63620
|
+
setValue: z,
|
|
63618
63621
|
value: y,
|
|
63619
63622
|
data: E.data,
|
|
63620
63623
|
children: _,
|
|
63621
63624
|
host: e,
|
|
63622
|
-
functions:
|
|
63625
|
+
functions: G
|
|
63623
63626
|
})
|
|
63624
63627
|
})
|
|
63625
63628
|
})
|
|
@@ -64072,6 +64075,35 @@ ${O}`,
|
|
|
64072
64075
|
}
|
|
64073
64076
|
});
|
|
64074
64077
|
}
|
|
64078
|
+
function deserializeBlob(e) {
|
|
64079
|
+
var _a2;
|
|
64080
|
+
let [r, c] = e.split(",", 2), d = (_a2 = /^data:(.+);base64$/.exec(r)) == null ? void 0 : _a2[1], f = atob(c), _ = f.length, v = new Uint8Array(_);
|
|
64081
|
+
for (let e2 = 0; e2 < _; e2++) v[e2] = f.charCodeAt(e2);
|
|
64082
|
+
return new Blob([
|
|
64083
|
+
v
|
|
64084
|
+
], {
|
|
64085
|
+
type: d
|
|
64086
|
+
});
|
|
64087
|
+
}
|
|
64088
|
+
function withoutLeadingDot(e) {
|
|
64089
|
+
return e.startsWith(".") ? e.slice(1) : e;
|
|
64090
|
+
}
|
|
64091
|
+
function resolveVirtualFileURL(e, r = getStaticVirtualFiles()) {
|
|
64092
|
+
let c = maybeGetVirtualFile(e, r);
|
|
64093
|
+
if (!c) return e;
|
|
64094
|
+
let d = deserializeBlob(c);
|
|
64095
|
+
return URL.createObjectURL(d);
|
|
64096
|
+
}
|
|
64097
|
+
function maybeGetVirtualFile(e, r) {
|
|
64098
|
+
let c = document.baseURI;
|
|
64099
|
+
c.startsWith("blob:") && (c = c.replace("blob:", ""));
|
|
64100
|
+
let d = new URL(e, c).pathname, f = extractFilePath(e), _ = extractFilePath(d);
|
|
64101
|
+
return r[e] || r[withoutLeadingDot(e)] || r[d] || r[withoutLeadingDot(d)] || f && r[f] || _ && r[_];
|
|
64102
|
+
}
|
|
64103
|
+
function extractFilePath(e) {
|
|
64104
|
+
let r = e.indexOf("/@file/");
|
|
64105
|
+
return r === -1 ? null : e.slice(r);
|
|
64106
|
+
}
|
|
64075
64107
|
function createPlugin(e, r = {}) {
|
|
64076
64108
|
return {
|
|
64077
64109
|
withData(c) {
|
|
@@ -64339,10 +64371,13 @@ ${O}`,
|
|
|
64339
64371
|
return Logger.warn("AnyWidget value is not wire format:", e.value), e.value;
|
|
64340
64372
|
}, [
|
|
64341
64373
|
e.value
|
|
64342
|
-
]), { data: _, error: v, refetch: y } = useAsyncData(async () =>
|
|
64343
|
-
|
|
64344
|
-
return m2
|
|
64345
|
-
|
|
64374
|
+
]), { data: _, error: v, refetch: y } = useAsyncData(async () => {
|
|
64375
|
+
let e2 = asRemoteURL(c).toString();
|
|
64376
|
+
return isStaticNotebook() && (e2 = resolveVirtualFileURL(e2)), await import(e2).then(async (m2) => {
|
|
64377
|
+
await m2.__tla;
|
|
64378
|
+
return m2;
|
|
64379
|
+
});
|
|
64380
|
+
}, [
|
|
64346
64381
|
d
|
|
64347
64382
|
]), S = !!v;
|
|
64348
64383
|
(0, import_react.useEffect)(() => {
|
|
@@ -69097,7 +69132,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
69097
69132
|
}
|
|
69098
69133
|
};
|
|
69099
69134
|
_a6 = symbol6;
|
|
69100
|
-
var VERSION = "5.0.
|
|
69135
|
+
var VERSION = "5.0.124", dataContentSchema = union([
|
|
69101
69136
|
string$2(),
|
|
69102
69137
|
_instanceof(Uint8Array),
|
|
69103
69138
|
_instanceof(ArrayBuffer),
|
|
@@ -71093,25 +71128,6 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
71093
71128
|
}
|
|
71094
71129
|
};
|
|
71095
71130
|
const contextCallbacks = singleFacet();
|
|
71096
|
-
function deserializeBlob(e) {
|
|
71097
|
-
return new Promise((r, c) => {
|
|
71098
|
-
var _a2;
|
|
71099
|
-
try {
|
|
71100
|
-
let [c2, d] = e.split(",", 2), f = (_a2 = /^data:(.+);base64$/.exec(c2)) == null ? void 0 : _a2[1], _ = atob(d), v = _.length, y = new Uint8Array(v);
|
|
71101
|
-
for (let e2 = 0; e2 < v; e2++) y[e2] = _.charCodeAt(e2);
|
|
71102
|
-
r(new Blob([
|
|
71103
|
-
y
|
|
71104
|
-
], {
|
|
71105
|
-
type: f
|
|
71106
|
-
}));
|
|
71107
|
-
} catch (e2) {
|
|
71108
|
-
c(ensureError(e2));
|
|
71109
|
-
}
|
|
71110
|
-
});
|
|
71111
|
-
}
|
|
71112
|
-
function ensureError(e) {
|
|
71113
|
-
return e instanceof Error ? e : Error(`${e}`);
|
|
71114
|
-
}
|
|
71115
71131
|
var DEFAULT_FILE_SEARCH_CONFIG = {
|
|
71116
71132
|
maxDepth: 3,
|
|
71117
71133
|
maxResults: 20,
|
|
@@ -71243,7 +71259,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
71243
71259
|
type: S
|
|
71244
71260
|
});
|
|
71245
71261
|
else if (y.contents) try {
|
|
71246
|
-
E =
|
|
71262
|
+
E = deserializeBlob(base64ToDataURL(y.contents, S));
|
|
71247
71263
|
} catch {
|
|
71248
71264
|
E = new Blob([
|
|
71249
71265
|
y.contents
|
|
@@ -73175,7 +73191,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73175
73191
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
73176
73192
|
}
|
|
73177
73193
|
}
|
|
73178
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.8-
|
|
73194
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.8-dev41"), showCodeInRunModeAtom = atom(true);
|
|
73179
73195
|
atom(null);
|
|
73180
73196
|
var import_compiler_runtime$88 = require_compiler_runtime();
|
|
73181
73197
|
function useKeydownOnElement(e, r) {
|
|
@@ -74731,7 +74747,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74731
74747
|
function getVegaFieldTypes(e) {
|
|
74732
74748
|
return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
|
|
74733
74749
|
}
|
|
74734
|
-
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
74750
|
+
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-BYwb17Bf.js").then(async (m2) => {
|
|
74735
74751
|
await m2.__tla;
|
|
74736
74752
|
return m2;
|
|
74737
74753
|
}));
|
|
@@ -84801,7 +84817,7 @@ ${c}
|
|
|
84801
84817
|
fullWidth: y,
|
|
84802
84818
|
children: G
|
|
84803
84819
|
}), r[19] = y, r[20] = S, r[21] = c, r[22] = G, r[23] = q) : q = r[23], q;
|
|
84804
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
84820
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-BAeQ8DWw.js"));
|
|
84805
84821
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
|
|
84806
84822
|
label: string$2().nullish(),
|
|
84807
84823
|
data: string$2()
|
|
@@ -92248,8 +92264,11 @@ ${c}
|
|
|
92248
92264
|
code: TOO_MANY_FILES,
|
|
92249
92265
|
message: "Too many files"
|
|
92250
92266
|
};
|
|
92267
|
+
function isDataTransferItemWithEmptyType(e) {
|
|
92268
|
+
return e.type === "" && typeof e.getAsFile == "function";
|
|
92269
|
+
}
|
|
92251
92270
|
function fileAccepted(e, r) {
|
|
92252
|
-
var c = e.type === "application/x-moz-file" || accepts(e, r);
|
|
92271
|
+
var c = e.type === "application/x-moz-file" || accepts(e, r) || isDataTransferItemWithEmptyType(e);
|
|
92253
92272
|
return [
|
|
92254
92273
|
c,
|
|
92255
92274
|
c ? null : getInvalidTypeRejectionErr(r)
|
|
@@ -92543,6 +92562,7 @@ ${c}
|
|
|
92543
92562
|
isDragActive: false,
|
|
92544
92563
|
isDragAccept: false,
|
|
92545
92564
|
isDragReject: false,
|
|
92565
|
+
isDragGlobal: false,
|
|
92546
92566
|
acceptedFiles: [],
|
|
92547
92567
|
fileRejections: []
|
|
92548
92568
|
};
|
|
@@ -92580,16 +92600,47 @@ ${c}
|
|
|
92580
92600
|
JY,
|
|
92581
92601
|
nX
|
|
92582
92602
|
]);
|
|
92583
|
-
var iX = (0, import_react.useRef)([]), aX = function(e2) {
|
|
92603
|
+
var iX = (0, import_react.useRef)([]), aX = (0, import_react.useRef)([]), oX = function(e2) {
|
|
92584
92604
|
YY.current && YY.current.contains(e2.target) || (e2.preventDefault(), iX.current = []);
|
|
92585
92605
|
};
|
|
92586
92606
|
(0, import_react.useEffect)(function() {
|
|
92587
|
-
return RY && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
92588
|
-
RY && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
92607
|
+
return RY && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", oX, false)), function() {
|
|
92608
|
+
RY && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", oX));
|
|
92589
92609
|
};
|
|
92590
92610
|
}, [
|
|
92591
92611
|
YY,
|
|
92592
92612
|
RY
|
|
92613
|
+
]), (0, import_react.useEffect)(function() {
|
|
92614
|
+
var e2 = function(e3) {
|
|
92615
|
+
aX.current = [].concat(_toConsumableArray(aX.current), [
|
|
92616
|
+
e3.target
|
|
92617
|
+
]), isEvtWithFiles(e3) && $Y({
|
|
92618
|
+
isDragGlobal: true,
|
|
92619
|
+
type: "setDragGlobal"
|
|
92620
|
+
});
|
|
92621
|
+
}, r2 = function(e3) {
|
|
92622
|
+
aX.current = aX.current.filter(function(r3) {
|
|
92623
|
+
return r3 !== e3.target && r3 !== null;
|
|
92624
|
+
}), !(aX.current.length > 0) && $Y({
|
|
92625
|
+
isDragGlobal: false,
|
|
92626
|
+
type: "setDragGlobal"
|
|
92627
|
+
});
|
|
92628
|
+
}, c2 = function() {
|
|
92629
|
+
aX.current = [], $Y({
|
|
92630
|
+
isDragGlobal: false,
|
|
92631
|
+
type: "setDragGlobal"
|
|
92632
|
+
});
|
|
92633
|
+
}, d2 = function() {
|
|
92634
|
+
aX.current = [], $Y({
|
|
92635
|
+
isDragGlobal: false,
|
|
92636
|
+
type: "setDragGlobal"
|
|
92637
|
+
});
|
|
92638
|
+
};
|
|
92639
|
+
return document.addEventListener("dragenter", e2, false), document.addEventListener("dragleave", r2, false), document.addEventListener("dragend", c2, false), document.addEventListener("drop", d2, false), function() {
|
|
92640
|
+
document.removeEventListener("dragenter", e2), document.removeEventListener("dragleave", r2), document.removeEventListener("dragend", c2), document.removeEventListener("drop", d2);
|
|
92641
|
+
};
|
|
92642
|
+
}, [
|
|
92643
|
+
YY
|
|
92593
92644
|
]), (0, import_react.useEffect)(function() {
|
|
92594
92645
|
return !d && LY && YY.current && YY.current.focus(), function() {
|
|
92595
92646
|
};
|
|
@@ -92598,12 +92649,12 @@ ${c}
|
|
|
92598
92649
|
LY,
|
|
92599
92650
|
d
|
|
92600
92651
|
]);
|
|
92601
|
-
var
|
|
92652
|
+
var sX = (0, import_react.useCallback)(function(e2) {
|
|
92602
92653
|
UY ? UY(e2) : console.error(e2);
|
|
92603
92654
|
}, [
|
|
92604
92655
|
UY
|
|
92605
|
-
]),
|
|
92606
|
-
e2.preventDefault(), e2.persist(),
|
|
92656
|
+
]), cX = (0, import_react.useCallback)(function(e2) {
|
|
92657
|
+
e2.preventDefault(), e2.persist(), xX(e2), iX.current = [].concat(_toConsumableArray(iX.current), [
|
|
92607
92658
|
e2.target
|
|
92608
92659
|
]), isEvtWithFiles(e2) && Promise.resolve(f(e2)).then(function(r2) {
|
|
92609
92660
|
if (!(isPropagationStopped(e2) && !HY)) {
|
|
@@ -92624,12 +92675,12 @@ ${c}
|
|
|
92624
92675
|
}), w && w(e2);
|
|
92625
92676
|
}
|
|
92626
92677
|
}).catch(function(e3) {
|
|
92627
|
-
return
|
|
92678
|
+
return sX(e3);
|
|
92628
92679
|
});
|
|
92629
92680
|
}, [
|
|
92630
92681
|
f,
|
|
92631
92682
|
w,
|
|
92632
|
-
|
|
92683
|
+
sX,
|
|
92633
92684
|
HY,
|
|
92634
92685
|
GY,
|
|
92635
92686
|
v,
|
|
@@ -92637,8 +92688,8 @@ ${c}
|
|
|
92637
92688
|
y,
|
|
92638
92689
|
S,
|
|
92639
92690
|
WY
|
|
92640
|
-
]),
|
|
92641
|
-
e2.preventDefault(), e2.persist(),
|
|
92691
|
+
]), lX = (0, import_react.useCallback)(function(e2) {
|
|
92692
|
+
e2.preventDefault(), e2.persist(), xX(e2);
|
|
92642
92693
|
var r2 = isEvtWithFiles(e2);
|
|
92643
92694
|
if (r2 && e2.dataTransfer) try {
|
|
92644
92695
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -92648,8 +92699,8 @@ ${c}
|
|
|
92648
92699
|
}, [
|
|
92649
92700
|
O,
|
|
92650
92701
|
HY
|
|
92651
|
-
]),
|
|
92652
|
-
e2.preventDefault(), e2.persist(),
|
|
92702
|
+
]), uX = (0, import_react.useCallback)(function(e2) {
|
|
92703
|
+
e2.preventDefault(), e2.persist(), xX(e2);
|
|
92653
92704
|
var r2 = iX.current.filter(function(e3) {
|
|
92654
92705
|
return YY.current && YY.current.contains(e3);
|
|
92655
92706
|
}), c2 = r2.indexOf(e2.target);
|
|
@@ -92663,7 +92714,7 @@ ${c}
|
|
|
92663
92714
|
YY,
|
|
92664
92715
|
E,
|
|
92665
92716
|
HY
|
|
92666
|
-
]),
|
|
92717
|
+
]), dX = (0, import_react.useCallback)(function(e2, r2) {
|
|
92667
92718
|
var c2 = [], d2 = [];
|
|
92668
92719
|
e2.forEach(function(e3) {
|
|
92669
92720
|
var r3 = _slicedToArray(fileAccepted(e3, GY), 2), f2 = r3[0], y2 = r3[1], S2 = _slicedToArray(fileMatchSize(e3, v, _), 2), w2 = S2[0], E2 = S2[1], O2 = WY ? WY(e3) : null;
|
|
@@ -92704,20 +92755,20 @@ ${c}
|
|
|
92704
92755
|
I,
|
|
92705
92756
|
z,
|
|
92706
92757
|
WY
|
|
92707
|
-
]),
|
|
92708
|
-
e2.preventDefault(), e2.persist(),
|
|
92709
|
-
isPropagationStopped(e2) && !HY ||
|
|
92758
|
+
]), fX = (0, import_react.useCallback)(function(e2) {
|
|
92759
|
+
e2.preventDefault(), e2.persist(), xX(e2), iX.current = [], isEvtWithFiles(e2) && Promise.resolve(f(e2)).then(function(r2) {
|
|
92760
|
+
isPropagationStopped(e2) && !HY || dX(r2, e2);
|
|
92710
92761
|
}).catch(function(e3) {
|
|
92711
|
-
return
|
|
92762
|
+
return sX(e3);
|
|
92712
92763
|
}), $Y({
|
|
92713
92764
|
type: "reset"
|
|
92714
92765
|
});
|
|
92715
92766
|
}, [
|
|
92716
92767
|
f,
|
|
92717
|
-
|
|
92718
|
-
|
|
92768
|
+
dX,
|
|
92769
|
+
sX,
|
|
92719
92770
|
HY
|
|
92720
|
-
]),
|
|
92771
|
+
]), pX = (0, import_react.useCallback)(function() {
|
|
92721
92772
|
if (nX.current) {
|
|
92722
92773
|
$Y({
|
|
92723
92774
|
type: "openDialog"
|
|
@@ -92729,13 +92780,13 @@ ${c}
|
|
|
92729
92780
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
92730
92781
|
return f(e3);
|
|
92731
92782
|
}).then(function(e3) {
|
|
92732
|
-
|
|
92783
|
+
dX(e3, null), $Y({
|
|
92733
92784
|
type: "closeDialog"
|
|
92734
92785
|
});
|
|
92735
92786
|
}).catch(function(e3) {
|
|
92736
92787
|
isAbort(e3) ? (JY(e3), $Y({
|
|
92737
92788
|
type: "closeDialog"
|
|
92738
|
-
})) : isSecurityError(e3) ? (nX.current = false, XY.current ? (XY.current.value = null, XY.current.click()) :
|
|
92789
|
+
})) : isSecurityError(e3) ? (nX.current = false, XY.current ? (XY.current.value = null, XY.current.click()) : sX(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : sX(e3);
|
|
92739
92790
|
});
|
|
92740
92791
|
return;
|
|
92741
92792
|
}
|
|
@@ -92747,48 +92798,48 @@ ${c}
|
|
|
92747
92798
|
qY,
|
|
92748
92799
|
JY,
|
|
92749
92800
|
IY,
|
|
92750
|
-
|
|
92751
|
-
|
|
92801
|
+
dX,
|
|
92802
|
+
sX,
|
|
92752
92803
|
KY,
|
|
92753
92804
|
y
|
|
92754
|
-
]),
|
|
92755
|
-
!YY.current || !YY.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
92805
|
+
]), mX = (0, import_react.useCallback)(function(e2) {
|
|
92806
|
+
!YY.current || !YY.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), pX());
|
|
92756
92807
|
}, [
|
|
92757
92808
|
YY,
|
|
92758
|
-
|
|
92759
|
-
]),
|
|
92809
|
+
pX
|
|
92810
|
+
]), hX = (0, import_react.useCallback)(function() {
|
|
92760
92811
|
$Y({
|
|
92761
92812
|
type: "focus"
|
|
92762
92813
|
});
|
|
92763
|
-
}, []),
|
|
92814
|
+
}, []), gX = (0, import_react.useCallback)(function() {
|
|
92764
92815
|
$Y({
|
|
92765
92816
|
type: "blur"
|
|
92766
92817
|
});
|
|
92767
|
-
}, []),
|
|
92768
|
-
zY || (isIeOrEdge() ? setTimeout(
|
|
92818
|
+
}, []), _X = (0, import_react.useCallback)(function() {
|
|
92819
|
+
zY || (isIeOrEdge() ? setTimeout(pX, 0) : pX());
|
|
92769
92820
|
}, [
|
|
92770
92821
|
zY,
|
|
92771
|
-
|
|
92772
|
-
]),
|
|
92822
|
+
pX
|
|
92823
|
+
]), vX = function(e2) {
|
|
92773
92824
|
return d ? null : e2;
|
|
92774
|
-
}, vX = function(e2) {
|
|
92775
|
-
return BY ? null : _X(e2);
|
|
92776
92825
|
}, yX = function(e2) {
|
|
92777
|
-
return
|
|
92826
|
+
return BY ? null : vX(e2);
|
|
92778
92827
|
}, bX = function(e2) {
|
|
92828
|
+
return VY ? null : vX(e2);
|
|
92829
|
+
}, xX = function(e2) {
|
|
92779
92830
|
HY && e2.stopPropagation();
|
|
92780
|
-
},
|
|
92831
|
+
}, SX = (0, import_react.useMemo)(function() {
|
|
92781
92832
|
return function() {
|
|
92782
92833
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, f2 = e2.role, _2 = e2.onKeyDown, v2 = e2.onFocus, y2 = e2.onBlur, S2 = e2.onClick, w2 = e2.onDragEnter, E2 = e2.onDragOver, O2 = e2.onDragLeave, M2 = e2.onDrop, I2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
92783
92834
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
92784
|
-
onKeyDown:
|
|
92785
|
-
onFocus:
|
|
92786
|
-
onBlur:
|
|
92787
|
-
onClick:
|
|
92788
|
-
onDragEnter:
|
|
92789
|
-
onDragOver:
|
|
92790
|
-
onDragLeave:
|
|
92791
|
-
onDrop:
|
|
92835
|
+
onKeyDown: yX(composeEventHandlers(_2, mX)),
|
|
92836
|
+
onFocus: yX(composeEventHandlers(v2, hX)),
|
|
92837
|
+
onBlur: yX(composeEventHandlers(y2, gX)),
|
|
92838
|
+
onClick: vX(composeEventHandlers(S2, _X)),
|
|
92839
|
+
onDragEnter: bX(composeEventHandlers(w2, cX)),
|
|
92840
|
+
onDragOver: bX(composeEventHandlers(E2, lX)),
|
|
92841
|
+
onDragLeave: bX(composeEventHandlers(O2, uX)),
|
|
92842
|
+
onDrop: bX(composeEventHandlers(M2, fX)),
|
|
92792
92843
|
role: typeof f2 == "string" && f2 !== "" ? f2 : "presentation"
|
|
92793
92844
|
}, c2, YY), !d && !BY ? {
|
|
92794
92845
|
tabIndex: 0
|
|
@@ -92796,20 +92847,20 @@ ${c}
|
|
|
92796
92847
|
};
|
|
92797
92848
|
}, [
|
|
92798
92849
|
YY,
|
|
92799
|
-
pX,
|
|
92800
92850
|
mX,
|
|
92801
92851
|
hX,
|
|
92802
92852
|
gX,
|
|
92803
|
-
|
|
92853
|
+
_X,
|
|
92804
92854
|
cX,
|
|
92805
92855
|
lX,
|
|
92806
|
-
|
|
92856
|
+
uX,
|
|
92857
|
+
fX,
|
|
92807
92858
|
BY,
|
|
92808
92859
|
VY,
|
|
92809
92860
|
d
|
|
92810
|
-
]),
|
|
92861
|
+
]), CX = (0, import_react.useCallback)(function(e2) {
|
|
92811
92862
|
e2.stopPropagation();
|
|
92812
|
-
}, []),
|
|
92863
|
+
}, []), wX = (0, import_react.useMemo)(function() {
|
|
92813
92864
|
return function() {
|
|
92814
92865
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, d2 = e2.onChange, f2 = e2.onClick, _2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
92815
92866
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -92828,8 +92879,8 @@ ${c}
|
|
|
92828
92879
|
width: "1px",
|
|
92829
92880
|
whiteSpace: "nowrap"
|
|
92830
92881
|
},
|
|
92831
|
-
onChange:
|
|
92832
|
-
onClick:
|
|
92882
|
+
onChange: vX(composeEventHandlers(d2, fX)),
|
|
92883
|
+
onClick: vX(composeEventHandlers(f2, CX)),
|
|
92833
92884
|
tabIndex: -1
|
|
92834
92885
|
}, c2, XY)), _2);
|
|
92835
92886
|
};
|
|
@@ -92837,16 +92888,16 @@ ${c}
|
|
|
92837
92888
|
XY,
|
|
92838
92889
|
c,
|
|
92839
92890
|
y,
|
|
92840
|
-
|
|
92891
|
+
fX,
|
|
92841
92892
|
d
|
|
92842
92893
|
]);
|
|
92843
92894
|
return _objectSpread$7(_objectSpread$7({}, QY), {}, {
|
|
92844
92895
|
isFocused: eX && !d,
|
|
92845
|
-
getRootProps:
|
|
92846
|
-
getInputProps:
|
|
92896
|
+
getRootProps: SX,
|
|
92897
|
+
getInputProps: wX,
|
|
92847
92898
|
rootRef: YY,
|
|
92848
92899
|
inputRef: XY,
|
|
92849
|
-
open:
|
|
92900
|
+
open: vX(pX)
|
|
92850
92901
|
});
|
|
92851
92902
|
}
|
|
92852
92903
|
function reducer$1(e, r) {
|
|
@@ -92879,6 +92930,10 @@ ${c}
|
|
|
92879
92930
|
fileRejections: r.fileRejections,
|
|
92880
92931
|
isDragReject: r.isDragReject
|
|
92881
92932
|
});
|
|
92933
|
+
case "setDragGlobal":
|
|
92934
|
+
return _objectSpread$7(_objectSpread$7({}, e), {}, {
|
|
92935
|
+
isDragGlobal: r.isDragGlobal
|
|
92936
|
+
});
|
|
92882
92937
|
case "reset":
|
|
92883
92938
|
return _objectSpread$7({}, initialState);
|
|
92884
92939
|
default:
|
|
@@ -93943,7 +93998,7 @@ ${c}
|
|
|
93943
93998
|
});
|
|
93944
93999
|
}
|
|
93945
94000
|
};
|
|
93946
|
-
const LazyPlot = (0, import_react.lazy)(() => import("./react-plotly-
|
|
94001
|
+
const LazyPlot = (0, import_react.lazy)(() => import("./react-plotly-BuRa9xtI.js").then(__toDynamicImportESM(1)).then((e) => e.default));
|
|
93947
94002
|
var SUNBURST_DATA_KEYS = [
|
|
93948
94003
|
"color",
|
|
93949
94004
|
"curveNumber",
|
|
@@ -94975,7 +95030,7 @@ ${c}
|
|
|
94975
95030
|
return true;
|
|
94976
95031
|
}
|
|
94977
95032
|
}
|
|
94978
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
95033
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-DU3aSp4m.js")), VegaPlugin = class {
|
|
94979
95034
|
constructor() {
|
|
94980
95035
|
__publicField(this, "tagName", "marimo-vega");
|
|
94981
95036
|
__publicField(this, "validator", object$1({
|
|
@@ -95116,7 +95171,7 @@ ${c}
|
|
|
95116
95171
|
children: e.children
|
|
95117
95172
|
});
|
|
95118
95173
|
}
|
|
95119
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-
|
|
95174
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-Dp-y50K9.js"));
|
|
95120
95175
|
const DownloadPlugin = createPlugin("marimo-download").withData(object$1({
|
|
95121
95176
|
data: string$2(),
|
|
95122
95177
|
disabled: boolean$2().default(false),
|
|
@@ -95168,7 +95223,7 @@ ${c}
|
|
|
95168
95223
|
v
|
|
95169
95224
|
]
|
|
95170
95225
|
});
|
|
95171
|
-
}, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-
|
|
95226
|
+
}, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-DkEXPki_.js")), ImageComparisonPlugin = class {
|
|
95172
95227
|
constructor() {
|
|
95173
95228
|
__publicField(this, "tagName", "marimo-image-comparison");
|
|
95174
95229
|
__publicField(this, "validator", object$1({
|
|
@@ -95298,7 +95353,7 @@ ${c}
|
|
|
95298
95353
|
diagram: e.data.diagram
|
|
95299
95354
|
});
|
|
95300
95355
|
}
|
|
95301
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
95356
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-B__BZSXU.js").then(async (m2) => {
|
|
95302
95357
|
await m2.__tla;
|
|
95303
95358
|
return m2;
|
|
95304
95359
|
})), import_compiler_runtime$18 = require_compiler_runtime();
|
|
@@ -97330,8 +97385,8 @@ ${c}
|
|
|
97330
97385
|
tex: e.host.textContent || e.host.innerHTML
|
|
97331
97386
|
});
|
|
97332
97387
|
}
|
|
97333
|
-
}, importKatex = once(async () => (await import("./katex-
|
|
97334
|
-
await import("./mhchem-
|
|
97388
|
+
}, importKatex = once(async () => (await import("./katex-CX2BKujk.js")).default), importMhChem = once(async () => {
|
|
97389
|
+
await import("./mhchem-w1tkUnWr.js");
|
|
97335
97390
|
}), macros = {};
|
|
97336
97391
|
async function renderLatex(e, r) {
|
|
97337
97392
|
let [c] = await Promise.all([
|
|
@@ -101402,7 +101457,7 @@ ${c}
|
|
|
101402
101457
|
cells: []
|
|
101403
101458
|
})
|
|
101404
101459
|
};
|
|
101405
|
-
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-
|
|
101460
|
+
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-Dp-y50K9.js"));
|
|
101406
101461
|
const SlidesLayoutRenderer = (e) => {
|
|
101407
101462
|
let r = (0, import_compiler_runtime$8.c)(11), { cells: c, mode: d } = e, f = d === "read", _;
|
|
101408
101463
|
if (r[0] !== c || r[1] !== d) {
|
|
@@ -101891,6 +101946,10 @@ ${c}
|
|
|
101891
101946
|
function _temp4$1(e) {
|
|
101892
101947
|
return processOutput(e);
|
|
101893
101948
|
}
|
|
101949
|
+
const kernelStateAtom = atom({
|
|
101950
|
+
isInstantiated: false,
|
|
101951
|
+
error: null
|
|
101952
|
+
});
|
|
101894
101953
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
101895
101954
|
constructor() {
|
|
101896
101955
|
__publicField(this, "virtualFiles", /* @__PURE__ */ new Map());
|
|
@@ -101984,32 +102043,32 @@ ${c}
|
|
|
101984
102043
|
}), r[12] = y, r[13] = z, r[14] = G) : G = r[14], G;
|
|
101985
102044
|
};
|
|
101986
102045
|
var import_compiler_runtime$1 = require_compiler_runtime(), VerticalLayoutRenderer = (e) => {
|
|
101987
|
-
let r = (0, import_compiler_runtime$1.c)(
|
|
101988
|
-
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
101989
|
-
let
|
|
101990
|
-
r[1] !== v || r[2] !==
|
|
101991
|
-
if (!
|
|
101992
|
-
let e2 =
|
|
102046
|
+
let r = (0, import_compiler_runtime$1.c)(34), { cells: c, appConfig: d, mode: f } = e, { invisible: _ } = useDelayVisibility(c.length, f), v = useAtomValue(kioskModeAtom), y = useAtomValue(kernelStateAtom), [S] = useResolvedMarimoConfig(), w = useAtomValue(showCodeInRunModeAtom), E;
|
|
102047
|
+
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = new URLSearchParams(window.location.search), r[0] = E) : E = r[0];
|
|
102048
|
+
let O = E, M;
|
|
102049
|
+
r[1] !== v || r[2] !== w ? (M = () => {
|
|
102050
|
+
if (!w) return false;
|
|
102051
|
+
let e2 = O.get(KnownQueryParams.showCode);
|
|
101993
102052
|
return e2 === null ? isStaticNotebook() || isWasm() || v : e2 === "true";
|
|
101994
|
-
}, r[1] = v, r[2] =
|
|
101995
|
-
let [
|
|
101996
|
-
r[4] !== c || r[5] !== v || r[6] !== f ? (
|
|
102053
|
+
}, r[1] = v, r[2] = w, r[3] = M) : M = r[3];
|
|
102054
|
+
let [I, z] = (0, import_react.useState)(M), G;
|
|
102055
|
+
r[4] !== c || r[5] !== v || r[6] !== f ? (G = (() => {
|
|
101997
102056
|
let e2 = c.some(_temp$1);
|
|
101998
102057
|
if (v) return true;
|
|
101999
|
-
let r2 =
|
|
102058
|
+
let r2 = O.get(KnownQueryParams.includeCode);
|
|
102000
102059
|
return f === "read" && r2 !== "false" && e2;
|
|
102001
|
-
})(), r[4] = c, r[5] = v, r[6] = f, r[7] =
|
|
102002
|
-
let
|
|
102003
|
-
r[8] !==
|
|
102060
|
+
})(), r[4] = c, r[5] = v, r[6] = f, r[7] = G) : G = r[7];
|
|
102061
|
+
let q = G, IY;
|
|
102062
|
+
r[8] !== q || r[9] !== v || r[10] !== f || r[11] !== I || r[12] !== S ? (IY = (e2) => (0, import_jsx_runtime.jsx)(VerticalCell, {
|
|
102004
102063
|
cellId: e2.id,
|
|
102005
102064
|
output: e2.output,
|
|
102006
102065
|
consoleOutputs: e2.consoleOutputs,
|
|
102007
102066
|
status: e2.status,
|
|
102008
102067
|
code: e2.code,
|
|
102009
102068
|
config: e2.config,
|
|
102010
|
-
cellOutputArea:
|
|
102069
|
+
cellOutputArea: S.display.cell_output,
|
|
102011
102070
|
stopped: e2.stopped,
|
|
102012
|
-
showCode:
|
|
102071
|
+
showCode: I && q,
|
|
102013
102072
|
errored: e2.errored,
|
|
102014
102073
|
mode: f,
|
|
102015
102074
|
runStartTimestamp: e2.runStartTimestamp,
|
|
@@ -102017,18 +102076,18 @@ ${c}
|
|
|
102017
102076
|
staleInputs: e2.staleInputs,
|
|
102018
102077
|
name: e2.name,
|
|
102019
102078
|
kiosk: v
|
|
102020
|
-
}, e2.id), r[8] =
|
|
102021
|
-
let
|
|
102022
|
-
r[14] !== d.width || r[15] !== c || r[16] !== _ || r[17] !==
|
|
102079
|
+
}, e2.id), r[8] = q, r[9] = v, r[10] = f, r[11] = I, r[12] = S, r[13] = IY) : IY = r[13];
|
|
102080
|
+
let LY = IY, RY;
|
|
102081
|
+
r[14] !== d.width || r[15] !== c || r[16] !== _ || r[17] !== y || r[18] !== LY ? (RY = () => d.width === "columns" ? (0, import_jsx_runtime.jsx)("div", {
|
|
102023
102082
|
className: "flex flex-row gap-8 w-full",
|
|
102024
102083
|
children: groupCellsByColumn(c).map((e2) => {
|
|
102025
102084
|
let [r2, c2] = e2;
|
|
102026
102085
|
return (0, import_jsx_runtime.jsx)("div", {
|
|
102027
102086
|
className: "flex-1 flex flex-col gap-2 w-(--content-width)",
|
|
102028
|
-
children: c2.map(
|
|
102087
|
+
children: c2.map(LY)
|
|
102029
102088
|
}, r2);
|
|
102030
102089
|
})
|
|
102031
|
-
}) : c.length === 0 && !_ ? (0, import_jsx_runtime.jsx)("div", {
|
|
102090
|
+
}) : c.length === 0 && !_ ? y.isInstantiated ? (0, import_jsx_runtime.jsx)("div", {
|
|
102032
102091
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
102033
102092
|
children: (0, import_jsx_runtime.jsxs)(Alert, {
|
|
102034
102093
|
variant: "info",
|
|
@@ -102041,35 +102100,40 @@ ${c}
|
|
|
102041
102100
|
})
|
|
102042
102101
|
]
|
|
102043
102102
|
})
|
|
102103
|
+
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
102104
|
+
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
102105
|
+
children: (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
102106
|
+
className: "w-8 h-8 animate-spin text-muted-foreground"
|
|
102107
|
+
})
|
|
102044
102108
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
102045
|
-
children: c.map(
|
|
102046
|
-
}), r[14] = d.width, r[15] = c, r[16] = _, r[17] =
|
|
102047
|
-
let
|
|
102048
|
-
r[
|
|
102109
|
+
children: c.map(LY)
|
|
102110
|
+
}), r[14] = d.width, r[15] = c, r[16] = _, r[17] = y, r[18] = LY, r[19] = RY) : RY = r[19];
|
|
102111
|
+
let zY = RY, BY;
|
|
102112
|
+
r[20] !== q || r[21] !== zY || r[22] !== I ? (BY = I && q ? (0, import_jsx_runtime.jsxs)("div", {
|
|
102049
102113
|
className: "flex flex-col gap-5",
|
|
102050
102114
|
children: [
|
|
102051
102115
|
" ",
|
|
102052
|
-
|
|
102116
|
+
zY()
|
|
102053
102117
|
]
|
|
102054
|
-
}) :
|
|
102055
|
-
let BY;
|
|
102056
|
-
r[23] !== G || r[24] !== f || r[25] !== M ? (BY = f === "read" && (0, import_jsx_runtime.jsx)(ActionButtons, {
|
|
102057
|
-
canShowCode: G,
|
|
102058
|
-
showCode: M,
|
|
102059
|
-
onToggleShowCode: () => I(_temp2$1)
|
|
102060
|
-
}), r[23] = G, r[24] = f, r[25] = M, r[26] = BY) : BY = r[26];
|
|
102118
|
+
}) : zY(), r[20] = q, r[21] = zY, r[22] = I, r[23] = BY) : BY = r[23];
|
|
102061
102119
|
let VY;
|
|
102062
|
-
r[
|
|
102120
|
+
r[24] !== q || r[25] !== f || r[26] !== I ? (VY = f === "read" && (0, import_jsx_runtime.jsx)(ActionButtons, {
|
|
102121
|
+
canShowCode: q,
|
|
102122
|
+
showCode: I,
|
|
102123
|
+
onToggleShowCode: () => z(_temp2$1)
|
|
102124
|
+
}), r[24] = q, r[25] = f, r[26] = I, r[27] = VY) : VY = r[27];
|
|
102063
102125
|
let HY;
|
|
102064
|
-
|
|
102126
|
+
r[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (HY = (0, import_jsx_runtime.jsx)(FloatingOutline, {}), r[28] = HY) : HY = r[28];
|
|
102127
|
+
let UY;
|
|
102128
|
+
return r[29] !== d || r[30] !== _ || r[31] !== BY || r[32] !== VY ? (UY = (0, import_jsx_runtime.jsxs)(VerticalLayoutWrapper, {
|
|
102065
102129
|
invisible: _,
|
|
102066
102130
|
appConfig: d,
|
|
102067
102131
|
children: [
|
|
102068
|
-
zY,
|
|
102069
102132
|
BY,
|
|
102070
|
-
VY
|
|
102133
|
+
VY,
|
|
102134
|
+
HY
|
|
102071
102135
|
]
|
|
102072
|
-
}), r[
|
|
102136
|
+
}), r[29] = d, r[30] = _, r[31] = BY, r[32] = VY, r[33] = UY) : UY = r[33], UY;
|
|
102073
102137
|
}, ActionButtons = (e) => {
|
|
102074
102138
|
let r = (0, import_compiler_runtime$1.c)(26), { canShowCode: c, showCode: d, onToggleShowCode: f } = e, { readCode: _ } = useRequestClient(), v = _temp3, y = _temp4, S;
|
|
102075
102139
|
r[0] === _ ? S = r[1] : (S = async () => {
|
|
@@ -102979,7 +103043,7 @@ ${r}
|
|
|
102979
103043
|
return c ? parseIslandEditor(c.dataset.initialValue) : "";
|
|
102980
103044
|
}
|
|
102981
103045
|
const islandsInitializedAtom = atom(false), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
102982
|
-
var worker_default = "/assets/worker-
|
|
103046
|
+
var worker_default = "/assets/worker-D3e5wDxM.js", IslandsPyodideBridge = class e {
|
|
102983
103047
|
constructor() {
|
|
102984
103048
|
__publicField(this, "initialized", new Deferred());
|
|
102985
103049
|
__publicField(this, "sendComponentValues", async (e2) => (await this.putControlRequest({
|