@marimo-team/islands 0.25.3-dev250 → 0.25.3-dev252
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-BBihxHrr.js → ConnectedDataExplorerComponent-DGOAQFtf.js} +11 -11
- package/dist/{ErrorBoundary-Ks8L_DFj.js → ErrorBoundary-By2DNeOL.js} +7 -7
- package/dist/{abnfDiagram-VCTEODGH-DBcJVxYP.js → abnfDiagram-VCTEODGH-DzrZZXRD.js} +2 -2
- package/dist/{any-language-editor-jGaR0EAo.js → any-language-editor-Be7dA2VK.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-BcHZXF4S.js → architectureDiagram-5GKGNRK7-iF_snyFL.js} +1 -1
- package/dist/{button-B6RjDKJx.js → button-0-RqY1DW.js} +2 -1
- package/dist/{capabilities-CkVzWJEX.js → capabilities-B6yy_CBN.js} +1 -1
- package/dist/{chat-ui-DgaVxFrc.js → chat-ui-zbfp80GW.js} +1547 -1482
- package/dist/{check-Z_vtI3OL.js → check-CSvxZk5I.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CTZlwBAA.js → chunk-IMKFNOWR-B7xytD4B.js} +1 -1
- package/dist/{chunk-SHT3W25Y-53g_RZHm.js → chunk-SHT3W25Y-I8ZFP5L1.js} +1 -1
- package/dist/{chunk-SVP7TREG-P6abNGV_.js → chunk-SVP7TREG-Di-uAPdT.js} +1 -1
- package/dist/{chunk-TICWLB2K-BTJJqkyF.js → chunk-TICWLB2K-BFpUy0ud.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-BUGqOrTm.js → classDiagram-ZZMXUADV-Cqm4JGpx.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CXpQvO-s.js → classDiagram-v2-VYDZK3BY-DFHRJpN3.js} +2 -2
- package/dist/{code-visibility-CCCqFZYh.js → code-visibility-Byb3BN4h.js} +4 -4
- package/dist/{common-JXDK9IjO.js → common-CgWyYqpC.js} +262 -262
- package/dist/{config-DbjzjwxX.js → config-mwEjAmvP.js} +2 -2
- package/dist/{copy-icon-CG57cxwb.js → copy-icon-DD8bdw4L.js} +3 -3
- package/dist/{createReducer-DePYJ0F3.js → createReducer-Bx81cw8_.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-DOcnl8wW.js → cynefinDiagram-5FMLGOSQ-cuGOeTBC.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CuHR9QfG.js → dagre-GXQ25YYZ-DJ76aC4k.js} +1 -1
- package/dist/{data-grid-overlay-editor-QAJSeJpH.js → data-grid-overlay-editor-BP_fYnBa.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BPiG4kso.js → diagram-S7CK7UJ4-DLLc0sw7.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-_piBOvOC.js → diagram-UQ7AKVKN-Tz_d6qmk.js} +1 -1
- package/dist/{diagram-VX7I27RA-DCzVeJ8M.js → diagram-VX7I27RA-D7SzPrDN.js} +1 -1
- package/dist/{diagram-Z3DM3KII-D64CF1jQ.js → diagram-Z3DM3KII-qr37XV58.js} +1 -1
- package/dist/{dialog-DsZ49mmU.js → dialog-BHYPX87J.js} +3 -3
- package/dist/{dropdown-menu-BRiE7Vnp.js → dropdown-menu-Blu7V6Mk.js} +6 -6
- package/dist/{ebnfDiagram-PWID7BFC-BapQPML-.js → ebnfDiagram-PWID7BFC-BKOQb4J0.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CNQvC2_Q.js → erDiagram-RLTQ6QDP-CM15Vq68.js} +1 -1
- package/dist/{error-banner-IsonnvA0.js → error-banner-DbRFOd2O.js} +2 -2
- package/dist/{error-entries-CRPfxMqm.js → error-entries-BuIE3Ius.js} +9 -9
- package/dist/{feedback-button-Bg7zGcid.js → feedback-button-DPWFUVWl.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-BBt6S6oe.js → flowDiagram-HODETNUW-Dt3N5yFT.js} +2 -2
- package/dist/{formats-BK4VefeF.js → formats-gGospKWJ.js} +2 -2
- package/dist/{glide-data-editor-BuFe7QfV.js → glide-data-editor-GvhMU_kg.js} +10 -10
- package/dist/{glide-utils-CQddGpa-.js → glide-utils-qbkRZpEy.js} +3 -3
- package/dist/{globals-8EK96XwF.js → globals-RlhgvYCL.js} +2 -2
- package/dist/{html-to-image-Gx4q3ZoD.js → html-to-image-BXrAd5q8.js} +460 -455
- package/dist/{infoDiagram-27XIBGKW-Hd8Ifz82.js → infoDiagram-27XIBGKW-C7axJMCl.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CP7hnHWx.js → ishikawaDiagram-5VMMS53U-CdC9Eur7.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CX91sa9b.js → kanban-definition-UXKFOSKX-BHnMIgD7.js} +1 -1
- package/dist/{loader-BisjOLiW.js → loader-BVEtQ4F3.js} +1 -1
- package/dist/main.js +236 -236
- package/dist/{mermaid-Djb3Ni9t.js → mermaid-DFYN_PXd.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DgCNo07O.js → mindmap-definition-YA3MSWOX-BagHoCGU.js} +1 -1
- package/dist/{number-overlay-editor-BDJF1c8h.js → number-overlay-editor-Dg1EfcEs.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-SGJhnIKo.js → pegDiagram-XKGWAZYB-8IIZczip.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-1stXIWCQ.js → pieDiagram-E7YTZNPT-CE6dKBIr.js} +1 -1
- package/dist/{process-output-D2ISIyIs.js → process-output-D2ZjxrHe.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-DY1mojzB.js → railroadDiagram-O6MQD6OU-CkexPq3b.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-gHzhUp0D.js → requirementDiagram-BXWQKSXE-B0-OkuAe.js} +1 -1
- package/dist/{reveal-component-B_hNJfj-.js → reveal-component-UPs4Rd1M.js} +8 -8
- package/dist/{select-BSxlITBo.js → select-CcidPqlM.js} +5 -5
- package/dist/{sequenceDiagram-WJ2MYXX4-rjPtD9fB.js → sequenceDiagram-WJ2MYXX4-Dxysg8DX.js} +1 -1
- package/dist/{spec-Dq8RNplp.js → spec-ZwfZcgsm.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DMNxjUxV.js → stateDiagram-D77RDMKH-DTEN3-OJ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CumAaqGo.js → stateDiagram-v2-MP3YSRHH-vktk3Xc5.js} +2 -2
- package/dist/{strings-BGW-fXVJ.js → strings-BYJNyKmg.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BU14_Tej.js → swimlanes-42K2YHIH-Cjveh9OM.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CieAnPqJ.js → swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js} +2 -2
- package/dist/{swiper-component-Dir1o8ml.js → swiper-component-Dvj-goaD.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-CrVj4E1K.js → timeline-definition-24CTP7MA-KIuDcefn.js} +1 -1
- package/dist/{toast-BWIPi3aF.js → toast-CkB5Jq9K.js} +4 -4
- package/dist/{tooltip-C3UnvsRe.js → tooltip-Bzl4k00l.js} +2 -2
- package/dist/{use-restore-focus-BWO0z1lo.js → use-restore-focus-CmflVLWJ.js} +1 -1
- package/dist/{useDateFormatter-ChB4eyim.js → useDateFormatter-CYo5fm8s.js} +2 -2
- package/dist/{useIframeCapabilities-cMNQ80CK.js → useIframeCapabilities-BIolGsF1.js} +1 -1
- package/dist/{useLifecycle-BquH9ET-.js → useLifecycle-GNgvNwI-.js} +2 -2
- package/dist/{useTheme-DgOLVISn.js → useTheme-BZ2GGLgm.js} +141 -139
- package/dist/{vega-component-Bwg_Kuh-.js → vega-component-DOtem7Hf.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-ZLxQ8yhm.js → vennDiagram-4TSXK5OY-DrIOUHfb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-D88pcLY1.js → wardleyDiagram-VM6X3IG4-CJNjf4OH.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-_13d4g8g.js → xychartDiagram-S5SC5T6Z-DEshFho-.js} +1 -1
- package/package.json +1 -1
- package/src/__tests__/fixtures/pair-config.ts +1 -1
- package/src/components/app-config/__tests__/state.test.tsx +50 -0
- package/src/components/app-config/ai-config.tsx +1 -1
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
- package/src/components/chat/__tests__/chat-display.test.tsx +125 -0
- package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +51 -1
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
- package/src/components/chat/acp/agent-panel.tsx +4 -3
- package/src/components/chat/acp/blocks.tsx +10 -10
- package/src/components/chat/acp/common.tsx +4 -5
- package/src/components/chat/acp/model-selector.tsx +1 -1
- package/src/components/chat/capabilities-popover.tsx +1 -6
- package/src/components/chat/chat-components.tsx +7 -4
- package/src/components/chat/chat-display.tsx +51 -6
- package/src/components/chat/chat-history-popover.tsx +6 -1
- package/src/components/chat/chat-markdown.tsx +15 -0
- package/src/components/chat/chat-panel.tsx +105 -119
- package/src/components/chat/chat-typography.css +108 -0
- package/src/components/chat/chat-utils.ts +8 -3
- package/src/components/chat/notebook-access-selector.tsx +1 -1
- package/src/components/chat/reasoning-accordion.tsx +3 -3
- package/src/components/chat/tool-call/tool-activity-group.tsx +49 -0
- package/src/components/chat/tool-call/tool-history-row.tsx +3 -30
- package/src/components/chat/tool-call/tool-result.tsx +1 -1
- package/src/components/chat/use-chat-generation.ts +19 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +18 -37
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +5 -8
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +5 -19
- package/src/components/editor/actions/pair-with-agent-commands.ts +0 -1
- package/src/components/editor/actions/pair-with-agent-modal.tsx +7 -11
- package/src/components/editor/actions/pair-with-agent.tsx +3 -31
- package/src/components/editor/actions/useCellActionButton.tsx +1 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/ai/prompt-input.tsx +189 -0
- package/src/components/editor/cell/StagedAICell.tsx +3 -3
- package/src/components/editor/cell/code/cell-editor.tsx +14 -1
- package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
- package/src/components/editor/chrome/types.ts +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +53 -45
- package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +89 -72
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +5 -8
- package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
- package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
- package/src/components/editor/renderers/cell-array.tsx +10 -67
- package/src/components/markdown/markdown-renderer.tsx +35 -20
- package/src/components/mcp/mcp-status-indicator.tsx +18 -14
- package/src/core/ai/__tests__/staged-cells.test.ts +1 -467
- package/src/core/ai/context/context.ts +2 -0
- package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
- package/src/core/ai/context/providers/cell.ts +54 -0
- package/src/core/ai/staged-cells.ts +4 -280
- package/src/core/ai/state.ts +3 -0
- package/src/core/codemirror/__tests__/setup.test.ts +32 -0
- package/src/core/codemirror/cells/state.ts +1 -0
- package/src/core/codemirror/cm.ts +5 -1
- package/src/core/codemirror/config/types.ts +1 -1
- package/src/core/codemirror/language/languages/python.ts +3 -3
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +16 -0
- package/src/core/codemirror/placeholder/extensions.ts +57 -19
- package/src/core/hotkeys/hotkeys.ts +2 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +1 -0
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +1 -1
- package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
- package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
- package/src/components/editor/ai/staged-cell-submission.ts +0 -46
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -66
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { _ as t, c as n, f as r, g as i, h as a, m as o, n as s, p as c, s as l, t as u } from "./button-
|
|
2
|
+
import { _ as t, c as n, f as r, g as i, h as a, m as o, n as s, p as c, s as l, t as u } from "./button-0-RqY1DW.js";
|
|
3
3
|
import { t as d } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as f } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { i as p, n as m, r as h, t as g } from "./copy-icon-
|
|
6
|
-
import {
|
|
7
|
-
import { a as Ce, d as we, m as U, n as Te, o as Ee, r as De, t as Oe } from "./tooltip-
|
|
8
|
-
import { r as ke, s as Ae } from "./useLifecycle-
|
|
9
|
-
import { a as je, i as Me, n as Ne, o as Pe, r as Fe, t as Ie } from "./useDateFormatter-
|
|
10
|
-
import { t as Le } from "./check-
|
|
11
|
-
import { A as Re, C as ze, M as Be, S as Ve, T as He, _ as Ue, b as We, c as Ge, d as Ke, f as qe, g as Je, h as Ye, i as Xe, l as Ze, m as Qe, n as $e, s as et, t as tt, u as nt, v as rt, x as it, y as at } from "./select-
|
|
12
|
-
import { $ as ot, $t as st, A as ct, At as lt, B as ut, Bt as dt, C as ft, Ct as pt, D as mt, Dt as ht, E as gt, Et as _t, F as vt, Ft as yt, G as bt, Gt as xt, H as St, Ht as Ct, I as wt, It as Tt, Jt as Et, K as Dt, Kt as Ot, L as kt, Lt as At, M as jt, Mt, N as Nt, Nt as Pt, O as Ft, Ot as It, P as Lt, Pt as Rt, Q as zt, Qt as Bt, R as Vt, Rt as Ht, S as Ut, St as Wt, T as Gt, Tt as Kt, U as qt, Ut as Jt, V as Yt, Vt as Xt, W as Zt, Wt as Qt, X as $t, Xt as en, Yt as tn, Z as nn, Zt as rn, _ as an, _n as on, _t as sn, a as cn, an as ln, at as un, b as dn, bn as fn, bt as pn, cn as mn, ct as hn, d as gn, dn as _n, dt as vn, en as yn, et as bn, f as xn, ft as Sn, gn as Cn, gt as wn, h as Tn, hn as En, ht as Dn, i as On, it as kn, j as An, jt as jn, k as Mn, kt as Nn, l as Pn, lt as Fn, mn as In, mt as Ln, n as Rn, nn as zn, nt as Bn, o as Vn, on as Hn, ot as Un, pn as Wn, q as Gn, qt as Kn, rn as qn, rt as Jn, s as Yn, sn as Xn, st as Zn, t as Qn, tn as $n, tt as er, u as tr, un as nr, ut as rr, vn as ir, vt as ar, wt as or, x as sr, xn as cr, xt as lr, yn as ur, yt as dr, z as fr, zt as pr } from "./dropdown-menu-
|
|
13
|
-
import { a as mr, n as hr, r as gr, t as _r } from "./config-
|
|
14
|
-
import { A as vr, E as yr, G as br, H as xr, I as Sr, Lt as Cr, Nt as wr, Q as Tr, Rt as Er, T as Dr, Tt as Or, U as kr, V as Ar, b as jr, et as Mr, h as Nr, j as Pr, l as Fr, q as Ir, st as Lr, t as Rr, tt as zr, u as Br, wt as Vr, y as Hr, zt as Ur } from "./error-entries-
|
|
15
|
-
import { n as Wr, t as Gr } from "./ErrorBoundary-
|
|
16
|
-
import { i as Kr, r as qr, s as Jr, t as Yr } from "./strings-
|
|
5
|
+
import { i as p, n as m, r as h, t as g } from "./copy-icon-DD8bdw4L.js";
|
|
6
|
+
import { C as _, D as v, E as y, G as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, N as k, Nt as A, O as j, Ot as M, P as N, Pt as P, Rt as F, T as I, U as L, Ut as R, Vt as z, X as B, Xt as V, Y as ee, Yt as H, _ as te, _t as ne, b as re, bt as ie, ct as ae, d as oe, et as se, gt as ce, it as le, j as ue, n as de, ot as fe, q as pe, qt as me, r as he, s as ge, st as _e, t as ve, v as ye, vt as be, y as xe, zt as Se } from "./html-to-image-BXrAd5q8.js";
|
|
7
|
+
import { a as Ce, d as we, m as U, n as Te, o as Ee, r as De, t as Oe } from "./tooltip-Bzl4k00l.js";
|
|
8
|
+
import { r as ke, s as Ae } from "./useLifecycle-GNgvNwI-.js";
|
|
9
|
+
import { a as je, i as Me, n as Ne, o as Pe, r as Fe, t as Ie } from "./useDateFormatter-CYo5fm8s.js";
|
|
10
|
+
import { t as Le } from "./check-CSvxZk5I.js";
|
|
11
|
+
import { A as Re, C as ze, M as Be, S as Ve, T as He, _ as Ue, b as We, c as Ge, d as Ke, f as qe, g as Je, h as Ye, i as Xe, l as Ze, m as Qe, n as $e, s as et, t as tt, u as nt, v as rt, x as it, y as at } from "./select-CcidPqlM.js";
|
|
12
|
+
import { $ as ot, $t as st, A as ct, At as lt, B as ut, Bt as dt, C as ft, Ct as pt, D as mt, Dt as ht, E as gt, Et as _t, F as vt, Ft as yt, G as bt, Gt as xt, H as St, Ht as Ct, I as wt, It as Tt, Jt as Et, K as Dt, Kt as Ot, L as kt, Lt as At, M as jt, Mt, N as Nt, Nt as Pt, O as Ft, Ot as It, P as Lt, Pt as Rt, Q as zt, Qt as Bt, R as Vt, Rt as Ht, S as Ut, St as Wt, T as Gt, Tt as Kt, U as qt, Ut as Jt, V as Yt, Vt as Xt, W as Zt, Wt as Qt, X as $t, Xt as en, Yt as tn, Z as nn, Zt as rn, _ as an, _n as on, _t as sn, a as cn, an as ln, at as un, b as dn, bn as fn, bt as pn, cn as mn, ct as hn, d as gn, dn as _n, dt as vn, en as yn, et as bn, f as xn, ft as Sn, gn as Cn, gt as wn, h as Tn, hn as En, ht as Dn, i as On, it as kn, j as An, jt as jn, k as Mn, kt as Nn, l as Pn, lt as Fn, mn as In, mt as Ln, n as Rn, nn as zn, nt as Bn, o as Vn, on as Hn, ot as Un, pn as Wn, q as Gn, qt as Kn, rn as qn, rt as Jn, s as Yn, sn as Xn, st as Zn, t as Qn, tn as $n, tt as er, u as tr, un as nr, ut as rr, vn as ir, vt as ar, wt as or, x as sr, xn as cr, xt as lr, yn as ur, yt as dr, z as fr, zt as pr } from "./dropdown-menu-Blu7V6Mk.js";
|
|
13
|
+
import { a as mr, n as hr, r as gr, t as _r } from "./config-mwEjAmvP.js";
|
|
14
|
+
import { A as vr, E as yr, G as br, H as xr, I as Sr, Lt as Cr, Nt as wr, Q as Tr, Rt as Er, T as Dr, Tt as Or, U as kr, V as Ar, b as jr, et as Mr, h as Nr, j as Pr, l as Fr, q as Ir, st as Lr, t as Rr, tt as zr, u as Br, wt as Vr, y as Hr, zt as Ur } from "./error-entries-BuIE3Ius.js";
|
|
15
|
+
import { n as Wr, t as Gr } from "./ErrorBoundary-By2DNeOL.js";
|
|
16
|
+
import { i as Kr, r as qr, s as Jr, t as Yr } from "./strings-BYJNyKmg.js";
|
|
17
17
|
import { t as Xr } from "./clsx-CoeGtWvn.js";
|
|
18
18
|
import { t as Zr } from "./react-dom-DUmH0GXv.js";
|
|
19
19
|
import { t as Qr } from "./jsx-runtime-3BD1kT0s.js";
|
|
20
|
-
import { A as $r, F as ei, I as ti, M as ni, N as ri, a as ii, c as ai, d as oi, i as si, j as ci, l as li, m as ui, n as di, o as fi, p as pi } from "./use-restore-focus-
|
|
21
|
-
import { a as mi, c as hi, d as gi, f as _i, h as vi, l as yi, m as bi, n as xi, o as Si, p as Ci, s as wi, t as Ti, u as Ei } from "./error-banner-
|
|
22
|
-
import { n as Di } from "./toast-
|
|
20
|
+
import { A as $r, F as ei, I as ti, M as ni, N as ri, a as ii, c as ai, d as oi, i as si, j as ci, l as li, m as ui, n as di, o as fi, p as pi } from "./use-restore-focus-CmflVLWJ.js";
|
|
21
|
+
import { a as mi, c as hi, d as gi, f as _i, h as vi, l as yi, m as bi, n as xi, o as Si, p as Ci, s as wi, t as Ti, u as Ei } from "./error-banner-DbRFOd2O.js";
|
|
22
|
+
import { n as Di } from "./toast-CkB5Jq9K.js";
|
|
23
23
|
import { a as Oi } from "./_baseSet-BfI5FjBM.js";
|
|
24
|
-
import {
|
|
24
|
+
import { a as ki, f as Ai, i as ji, l as Mi, n as Ni, u as Pi } from "./useTheme-BZ2GGLgm.js";
|
|
25
25
|
import { C as Fi, D as Ii, E as Li, S as Ri, _ as zi, b as Bi, f as Vi, h as Hi, l as Ui, o as Wi, u as Gi, w as Ki, x as qi, y as Ji } from "./utils-DXkj82sK.js";
|
|
26
26
|
import { t as Yi } from "./invariant-DLmrl-hA.js";
|
|
27
27
|
import { t as Xi } from "./objects-DCmMvZtn.js";
|
|
28
|
-
import { t as Zi } from "./createReducer-
|
|
28
|
+
import { t as Zi } from "./createReducer-Bx81cw8_.js";
|
|
29
29
|
import { V as Qi } from "./dist-CYeqK4Xw.js";
|
|
30
30
|
import { c as $i, d as ea, f as ta, m as na, n as ra, p as ia, s as aa, u as oa } from "./static-state-BldGd99T.js";
|
|
31
|
-
import { a as sa, i as ca, n as la, r as ua, t as da } from "./formats-
|
|
31
|
+
import { a as sa, i as ca, n as la, r as ua, t as da } from "./formats-gGospKWJ.js";
|
|
32
32
|
import { C as fa, I as pa, N as ma } from "./schemas-CdscWNy_.js";
|
|
33
33
|
import { n as W, t as G } from "./objectWithoutPropertiesLoose-ai5NUqGa.js";
|
|
34
34
|
import { o as ha, t as ga } from "./arrays-DoQ-AILx.js";
|
|
35
35
|
import { n as _a, t as va } from "./once-NnpX_HnX.js";
|
|
36
36
|
import { o as ya } from "./dist-DU9ICsWZ.js";
|
|
37
|
-
import { a as ba, i as xa, n as Sa, o as Ca, r as wa, t as Ta } from "./dialog-
|
|
37
|
+
import { a as ba, i as xa, n as Sa, o as Ca, r as wa, t as Ta } from "./dialog-BHYPX87J.js";
|
|
38
38
|
import { t as Ea } from "./useAsyncData-DsZMvNXn.js";
|
|
39
39
|
import { D as Da, n as Oa } from "./vega-loader.browser-B9Pz0EGP.js";
|
|
40
|
-
import { a as ka, n as Aa, r as ja, t as Ma } from "./loader-
|
|
41
|
-
import { t as Na } from "./useIframeCapabilities-
|
|
40
|
+
import { a as ka, n as Aa, r as ja, t as Ma } from "./loader-BVEtQ4F3.js";
|
|
41
|
+
import { t as Na } from "./useIframeCapabilities-BIolGsF1.js";
|
|
42
42
|
var Pa = U("arrow-down-wide-narrow", [
|
|
43
43
|
["path", {
|
|
44
44
|
d: "m3 16 4 4 4-4",
|
|
@@ -6707,13 +6707,13 @@ var Yh = (e) => {
|
|
|
6707
6707
|
}, Xh = (e, t) => {
|
|
6708
6708
|
let [n, ...r] = t.split("."), i = (e.attribs.class || "").split(" ");
|
|
6709
6709
|
return e.tagName === n && r.every((e) => i.includes(e));
|
|
6710
|
-
}, Zh = (e) => e && Xh(e, "span.nb") && e.firstChild instanceof
|
|
6710
|
+
}, Zh = (e) => e && Xh(e, "span.nb") && e.firstChild instanceof V.Text && e.firstChild.nodeValue?.includes("__marimo__");
|
|
6711
6711
|
function Qh(e) {
|
|
6712
|
-
if (e instanceof
|
|
6712
|
+
if (e instanceof V.Element && e.firstChild instanceof V.Text && Xh(e, "span.nb")) {
|
|
6713
6713
|
let t = e.next;
|
|
6714
|
-
if (t && t instanceof
|
|
6714
|
+
if (t && t instanceof V.Text) {
|
|
6715
6715
|
let n = t.next;
|
|
6716
|
-
if (n && n instanceof
|
|
6716
|
+
if (n && n instanceof V.Element && n.firstChild instanceof V.Text && Xh(n, "span.m")) {
|
|
6717
6717
|
let t = Number.parseInt(n.firstChild.nodeValue || "0", 10);
|
|
6718
6718
|
if (e.firstChild.nodeValue?.includes("__marimo__")) {
|
|
6719
6719
|
let n = /__marimo__cell_(\w+)_/.exec(e.firstChild.nodeValue)?.[1];
|
|
@@ -6737,7 +6737,7 @@ function Qh(e) {
|
|
|
6737
6737
|
}
|
|
6738
6738
|
function $h(e) {
|
|
6739
6739
|
let t = [];
|
|
6740
|
-
return
|
|
6740
|
+
return H(e, { replace: (e) => {
|
|
6741
6741
|
let n = Qh(e);
|
|
6742
6742
|
if (n) return t.push(n), "dummy";
|
|
6743
6743
|
} }), t;
|
|
@@ -8470,9 +8470,9 @@ var uv = (0, K.createContext)({
|
|
|
8470
8470
|
isSelected: () => !1,
|
|
8471
8471
|
onSelect: t.NOOP
|
|
8472
8472
|
}), dv = (e) => {
|
|
8473
|
-
let t = (0, J.c)(106), n, r, i, o, s, c, l, u, d, f, p, m, h, g, _, v, y,
|
|
8474
|
-
t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17],
|
|
8475
|
-
let A =
|
|
8473
|
+
let t = (0, J.c)(106), n, r, i, o, s, c, l, u, d, f, p, m, h, g, _, v, y, x, S, C, T, E, O, k;
|
|
8474
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], x = t[18], S = t[19], C = t[20], T = t[21], E = t[22], O = t[23], k = t[24]) : ({children: n, displayValue: c, className: i, placeholder: g, value: k, defaultValue: s, onValueChange: m, multiple: x, shouldFilter: S, filterFn: l, open: h, defaultOpen: o, onOpenChange: f, inputPlaceholder: C, search: y, onSearchChange: p, emptyState: T, chips: E, chipsClassName: r, keepPopoverOpenOnSelect: d, id: u, disabled: O, renderValue: _, ...v} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = y, t[18] = x, t[19] = S, t[20] = C, t[21] = T, t[22] = E, t[23] = O, t[24] = k);
|
|
8475
|
+
let A = x !== void 0 && x, j = S === void 0 || S, M = C === void 0 ? "Search..." : C, N = T === void 0 ? "Nothing found." : T, P = E !== void 0 && E, F = O !== void 0 && O, I = o ?? !1, L;
|
|
8476
8476
|
t[25] !== f || t[26] !== h || t[27] !== I ? (L = {
|
|
8477
8477
|
prop: h,
|
|
8478
8478
|
defaultProp: I,
|
|
@@ -8528,7 +8528,7 @@ var uv = (0, K.createContext)({
|
|
|
8528
8528
|
let _e;
|
|
8529
8529
|
t[65] === Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ (0, q.jsx)(Be, { className: "ml-3 w-4 h-4 opacity-50 shrink-0" }), t[65] = _e) : _e = t[65];
|
|
8530
8530
|
let ve;
|
|
8531
|
-
t[66] !== F || t[67] !== u || t[68] !== B || t[69] !== me || t[70] !== ge ? (ve = /* @__PURE__ */ (0, q.jsx)(
|
|
8531
|
+
t[66] !== F || t[67] !== u || t[68] !== B || t[69] !== me || t[70] !== ge ? (ve = /* @__PURE__ */ (0, q.jsx)(w, {
|
|
8532
8532
|
asChild: !0,
|
|
8533
8533
|
children: /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
8534
8534
|
id: u,
|
|
@@ -8570,7 +8570,7 @@ var uv = (0, K.createContext)({
|
|
|
8570
8570
|
})
|
|
8571
8571
|
}), t[84] = l, t[85] = j, t[86] = ye, t[87] = Se, t[88] = Ce) : Ce = t[88];
|
|
8572
8572
|
let we;
|
|
8573
|
-
t[89] !== B || t[90] !== de || t[91] !== ve || t[92] !== Ce ? (we = /* @__PURE__ */ (0, q.jsxs)(
|
|
8573
|
+
t[89] !== B || t[90] !== de || t[91] !== ve || t[92] !== Ce ? (we = /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
8574
8574
|
open: B,
|
|
8575
8575
|
onOpenChange: de,
|
|
8576
8576
|
children: [ve, Ce]
|
|
@@ -8580,7 +8580,7 @@ var uv = (0, K.createContext)({
|
|
|
8580
8580
|
className: a("flex flex-col gap-1 items-start", r),
|
|
8581
8581
|
children: Array.isArray(H) && H.map((e) => e == null ? null : /* @__PURE__ */ (0, q.jsxs)(ke, {
|
|
8582
8582
|
variant: "secondary",
|
|
8583
|
-
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(
|
|
8583
|
+
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(D, {
|
|
8584
8584
|
onClick: () => {
|
|
8585
8585
|
F || ae(e);
|
|
8586
8586
|
},
|
|
@@ -11365,7 +11365,7 @@ function Fb() {
|
|
|
11365
11365
|
//#endregion
|
|
11366
11366
|
//#region src/components/editor/links/cell-link.tsx
|
|
11367
11367
|
var Ib = (e) => {
|
|
11368
|
-
let t = (0, J.c)(15), { className: n, cellId: r, variant: i, onClick: s, formatCellName: c, skipScroll: l } = e, u = jr()[r] ?? "", d = Hr().indexOf(r), { showCellIfHidden: f } =
|
|
11368
|
+
let t = (0, J.c)(15), { className: n, cellId: r, variant: i, onClick: s, formatCellName: c, skipScroll: l } = e, u = jr()[r] ?? "", d = Hr().indexOf(r), { showCellIfHidden: f } = L(), p = c ?? Bb, m;
|
|
11369
11369
|
t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${Or.create(r)}`, t[0] = r, t[1] = m);
|
|
11370
11370
|
let h;
|
|
11371
11371
|
t[2] === n ? h = t[3] : (h = a("inline-block cursor-pointer text-left text-link hover:underline focus-visible:outline focus-visible:outline-ring", n), t[2] = n, t[3] = h);
|
|
@@ -13119,7 +13119,7 @@ var tw = (0, K.memo)((e) => {
|
|
|
13119
13119
|
block: c
|
|
13120
13120
|
}), t[0] = i, t[1] = s, t[2] = c, t[3] = l) : l = t[3];
|
|
13121
13121
|
let u;
|
|
13122
|
-
t[4] !== o || t[5] !== n ? (u =
|
|
13122
|
+
t[4] !== o || t[5] !== n ? (u = S({
|
|
13123
13123
|
html: n,
|
|
13124
13124
|
alwaysSanitizeHtml: o
|
|
13125
13125
|
}), t[4] = o, t[5] = n, t[6] = u) : u = t[6];
|
|
@@ -13198,7 +13198,7 @@ var fw = "packages-install-input", pw = () => {
|
|
|
13198
13198
|
}, mw = (e) => {
|
|
13199
13199
|
e.openApplication("packages"), pw();
|
|
13200
13200
|
}, hw = "marimo:ai:chatState:v5", gw = Ki(null), _w = Ki(null);
|
|
13201
|
-
Hi("marimo:ai:chatOptions", { webSearch: !1 },
|
|
13201
|
+
Ki(!1), Hi("marimo:ai:chatOptions", { webSearch: !1 }, be), Hi("marimo:ai:includeOtherCells", !0, be);
|
|
13202
13202
|
function vw(e) {
|
|
13203
13203
|
let t = /* @__PURE__ */ new Map();
|
|
13204
13204
|
for (let [n, r] of e.entries()) {
|
|
@@ -13211,7 +13211,7 @@ function vw(e) {
|
|
|
13211
13211
|
}
|
|
13212
13212
|
return t;
|
|
13213
13213
|
}
|
|
13214
|
-
var yw =
|
|
13214
|
+
var yw = ne({
|
|
13215
13215
|
toSerializable: (e) => ({
|
|
13216
13216
|
chats: [...vw(e.chats).entries()],
|
|
13217
13217
|
activeChatId: e.activeChatId
|
|
@@ -13319,7 +13319,7 @@ function ww(e, t) {
|
|
|
13319
13319
|
description: "Fix the SQL statement",
|
|
13320
13320
|
fixType: "ai",
|
|
13321
13321
|
onFix: async (t) => {
|
|
13322
|
-
let n =
|
|
13322
|
+
let n = oe(t.cellId, Ui), r = `Fix the SQL statement: ${e.msg}.`;
|
|
13323
13323
|
n && (r += `\nDatabase schema: ${n}`), t.aiFix?.setAiCompletionCell({
|
|
13324
13324
|
cellId: t.cellId,
|
|
13325
13325
|
initialPrompt: r,
|
|
@@ -13359,7 +13359,7 @@ var Ew = {
|
|
|
13359
13359
|
}, Dw = Hi("marimo:acp:sessions:v1", {
|
|
13360
13360
|
sessions: [],
|
|
13361
13361
|
activeTabId: null
|
|
13362
|
-
},
|
|
13362
|
+
}, be);
|
|
13363
13363
|
Ki((e) => {
|
|
13364
13364
|
let t = e(Dw);
|
|
13365
13365
|
return t.activeTabId && t.sessions.find((e) => e.tabId === t.activeTabId) || null;
|
|
@@ -13382,7 +13382,7 @@ var Ow = (e) => {
|
|
|
13382
13382
|
e[0] !== n || e[1] !== t ? (r = async (e) => {
|
|
13383
13383
|
let r = { ai: e };
|
|
13384
13384
|
await n({ config: r }).then(() => {
|
|
13385
|
-
t((e) =>
|
|
13385
|
+
t((e) => Mi(e, r));
|
|
13386
13386
|
});
|
|
13387
13387
|
}, e[0] = n, e[1] = t, e[2] = r) : r = e[2];
|
|
13388
13388
|
let i = r, a;
|
|
@@ -13399,7 +13399,7 @@ var Ow = (e) => {
|
|
|
13399
13399
|
saveModelChange: o,
|
|
13400
13400
|
saveModeChange: c
|
|
13401
13401
|
}, e[7] = c, e[8] = o, e[9] = l) : l = e[9], l;
|
|
13402
|
-
}, Aw = Hi("marimo:chrome:ai-panel-tab", "chat",
|
|
13402
|
+
}, Aw = Hi("marimo:chrome:ai-panel-tab", "chat", be);
|
|
13403
13403
|
function jw() {
|
|
13404
13404
|
let e = (0, J.c)(3), [t, n] = Bi(Aw), r;
|
|
13405
13405
|
return e[0] !== t || e[1] !== n ? (r = {
|
|
@@ -13411,12 +13411,12 @@ function jw() {
|
|
|
13411
13411
|
//#region src/components/editor/chrome/wrapper/useOpenAiAssistant.ts
|
|
13412
13412
|
var Mw = "code_mode";
|
|
13413
13413
|
function Nw(e, t) {
|
|
13414
|
-
return e || (
|
|
13414
|
+
return e || (ie("external_agents") ? t : "chat");
|
|
13415
13415
|
}
|
|
13416
13416
|
function Pw() {
|
|
13417
|
-
let e = (0, J.c)(6), { openApplication: t } =
|
|
13417
|
+
let e = (0, J.c)(6), { openApplication: t } = ce(), { setAiPanelTab: n } = jw(), { saveModeChange: r } = kw(), i = Ri(_w), a = Fi(), o;
|
|
13418
13418
|
return e[0] !== t || e[1] !== r || e[2] !== n || e[3] !== i || e[4] !== a ? (o = async (e) => {
|
|
13419
|
-
let o = Nw(e.panel, a.get(Aw)), s = a.get(
|
|
13419
|
+
let o = Nw(e.panel, a.get(Aw)), s = a.get(ki), c = ie("external_agents") && a.get(Dw).sessions.length > 0;
|
|
13420
13420
|
if (!(o === "agents" ? c : s)) {
|
|
13421
13421
|
p({
|
|
13422
13422
|
title: o === "agents" ? "No agent session" : "AI not configured",
|
|
@@ -13436,7 +13436,7 @@ function Fw() {
|
|
|
13436
13436
|
}
|
|
13437
13437
|
//#endregion
|
|
13438
13438
|
//#region src/components/editor/errors/fix-mode.ts
|
|
13439
|
-
var Iw = Hi("marimo:ai-autofix-mode", "autofix",
|
|
13439
|
+
var Iw = Hi("marimo:ai-autofix-mode", "autofix", be);
|
|
13440
13440
|
function Lw() {
|
|
13441
13441
|
let e = (0, J.c)(3), [t, n] = Bi(Iw), r;
|
|
13442
13442
|
return e[0] !== t || e[1] !== n ? (r = {
|
|
@@ -13452,7 +13452,7 @@ function Rw(e, t) {
|
|
|
13452
13452
|
return n ? `My code gives the following error. Please fix it:\n\n${n}` : "Please fix this error.";
|
|
13453
13453
|
}
|
|
13454
13454
|
var zw = (e) => {
|
|
13455
|
-
let t = (0, J.c)(25), { errors: n, cellId: r, className: i } = e, o = Fi(), { createCell: s } =
|
|
13455
|
+
let t = (0, J.c)(25), { errors: n, cellId: r, className: i } = e, o = Fi(), { createCell: s } = L(), c = qi(ji), l;
|
|
13456
13456
|
if (t[0] !== c || t[1] !== n) {
|
|
13457
13457
|
let e;
|
|
13458
13458
|
t[3] === c ? e = t[4] : (e = (e) => ww(e, { aiEnabled: c }), t[3] = c, t[4] = e), l = n.flatMap(e), t[0] = c, t[1] = n, t[2] = l;
|
|
@@ -13498,7 +13498,7 @@ var zw = (e) => {
|
|
|
13498
13498
|
variant: "outline",
|
|
13499
13499
|
className: "font-normal",
|
|
13500
13500
|
onClick: () => g(!1),
|
|
13501
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
13501
|
+
children: [/* @__PURE__ */ (0, q.jsx)(A, { className: "h-3 w-3 mr-2" }), m.title]
|
|
13502
13502
|
})
|
|
13503
13503
|
}), t[16] = m.description, t[17] = m.fixType, t[18] = m.title, t[19] = g, t[20] = v, t[21] = b) : b = t[21];
|
|
13504
13504
|
let x;
|
|
@@ -13508,7 +13508,7 @@ var zw = (e) => {
|
|
|
13508
13508
|
}), t[22] = y, t[23] = b, t[24] = x) : x = t[24], x;
|
|
13509
13509
|
}, Bw = {
|
|
13510
13510
|
autofix: {
|
|
13511
|
-
Icon:
|
|
13511
|
+
Icon: A,
|
|
13512
13512
|
title: "Inline AI Fix",
|
|
13513
13513
|
description: "Apply AI fixes inline in the cell"
|
|
13514
13514
|
},
|
|
@@ -13947,7 +13947,7 @@ var gT = (e) => {
|
|
|
13947
13947
|
children: r
|
|
13948
13948
|
}), t[3] = r, t[4] = a, t[5] = o) : o = t[5], o;
|
|
13949
13949
|
}, _T = (e) => {
|
|
13950
|
-
if (!(e instanceof
|
|
13950
|
+
if (!(e instanceof V.Text)) return;
|
|
13951
13951
|
let t = fT(e.data);
|
|
13952
13952
|
if (!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(t)) return;
|
|
13953
13953
|
let n = [], r = /(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi, i;
|
|
@@ -13977,7 +13977,7 @@ var gT = (e) => {
|
|
|
13977
13977
|
}
|
|
13978
13978
|
return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: a });
|
|
13979
13979
|
}, vT = (e) => {
|
|
13980
|
-
if (!(e instanceof
|
|
13980
|
+
if (!(e instanceof V.Text)) return;
|
|
13981
13981
|
let t = e.data;
|
|
13982
13982
|
if (!/https?:\/\//.test(t)) return;
|
|
13983
13983
|
let n = hT(t);
|
|
@@ -13988,7 +13988,7 @@ var gT = (e) => {
|
|
|
13988
13988
|
if (e !== void 0) return e;
|
|
13989
13989
|
}
|
|
13990
13990
|
}, bT = (e, t) => {
|
|
13991
|
-
let n = dT.ansi_to_html(e), r =
|
|
13991
|
+
let n = dT.ansi_to_html(e), r = H(n, { replace: (e) => t(e) });
|
|
13992
13992
|
return /* @__PURE__ */ (0, q.jsx)("span", { children: r });
|
|
13993
13993
|
}, xT = (e) => {
|
|
13994
13994
|
let t = (0, J.c)(2), { text: n } = e, r;
|
|
@@ -14015,7 +14015,7 @@ var gT = (e) => {
|
|
|
14015
14015
|
let u;
|
|
14016
14016
|
t[10] !== r || t[11] !== n ? (u = r && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
14017
14017
|
className: "font-code text-sm mt-1 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
14018
|
-
children:
|
|
14018
|
+
children: S({ html: n })
|
|
14019
14019
|
}), t[10] = r, t[11] = n, t[12] = u) : u = t[12];
|
|
14020
14020
|
let d;
|
|
14021
14021
|
return t[13] !== l || t[14] !== u ? (d = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -14024,12 +14024,12 @@ var gT = (e) => {
|
|
|
14024
14024
|
}), t[13] = l, t[14] = u, t[15] = d) : d = t[15], d;
|
|
14025
14025
|
}, CT = (e) => {
|
|
14026
14026
|
let t = (0, J.c)(10), n = e.title ?? "Tip", r;
|
|
14027
|
-
t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, q.jsx)(
|
|
14027
|
+
t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, q.jsx)(re, {
|
|
14028
14028
|
className: "pt-2 pb-0 font-normal",
|
|
14029
14029
|
children: n
|
|
14030
14030
|
}), t[0] = n, t[1] = r);
|
|
14031
14031
|
let i;
|
|
14032
|
-
t[2] === e.children ? i = t[3] : (i = /* @__PURE__ */ (0, q.jsx)(
|
|
14032
|
+
t[2] === e.children ? i = t[3] : (i = /* @__PURE__ */ (0, q.jsx)(ye, {
|
|
14033
14033
|
className: "mr-24 text-[0.84375rem]",
|
|
14034
14034
|
wrapperClassName: "pt-0 pb-2",
|
|
14035
14035
|
children: e.children
|
|
@@ -14041,14 +14041,14 @@ var gT = (e) => {
|
|
|
14041
14041
|
children: [r, i]
|
|
14042
14042
|
}), t[4] = r, t[5] = i, t[6] = a) : a = t[6];
|
|
14043
14043
|
let o;
|
|
14044
|
-
return t[7] !== e.className || t[8] !== a ? (o = /* @__PURE__ */ (0, q.jsx)(
|
|
14044
|
+
return t[7] !== e.className || t[8] !== a ? (o = /* @__PURE__ */ (0, q.jsx)(te, {
|
|
14045
14045
|
type: "single",
|
|
14046
14046
|
collapsible: !0,
|
|
14047
14047
|
className: e.className,
|
|
14048
14048
|
children: a
|
|
14049
14049
|
}), t[7] = e.className, t[8] = a, t[9] = o) : o = t[9], o;
|
|
14050
14050
|
}, wT = (e) => {
|
|
14051
|
-
let t = (0, J.c)(44), { errors: n, cellId: r, code: i, className: o } = e, s =
|
|
14051
|
+
let t = (0, J.c)(44), { errors: n, cellId: r, code: i, className: o } = e, s = ce(), c = qi(Pi).display.cell_output === "above", l = qi($i).mode !== "edit", d = "This cell wasn't run because it has errors", f = "destructive", p = "text-error", m = null;
|
|
14052
14052
|
if (n.some(TT)) d = "Interrupted";
|
|
14053
14053
|
else if (n.some(ET)) d = "An internal error occurred";
|
|
14054
14054
|
else if (n.some(DT)) d = "Ancestor prevented from running", f = "default", p = "text-secondary-foreground";
|
|
@@ -14061,19 +14061,19 @@ var gT = (e) => {
|
|
|
14061
14061
|
let r = e;
|
|
14062
14062
|
r && "exception_type" in r && (d = r.exception_type);
|
|
14063
14063
|
}
|
|
14064
|
-
let h, g, _, y, b
|
|
14064
|
+
let h, g, _, v, y, b;
|
|
14065
14065
|
if (t[2] !== f || t[3] !== r || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== l || t[9] !== m || t[10] !== p || t[11] !== d) {
|
|
14066
|
-
let e = n.filter(MT), i = n.filter(NT),
|
|
14067
|
-
t[18] === s ?
|
|
14066
|
+
let e = n.filter(MT), i = n.filter(NT), x = n.filter(PT), S = n.filter(FT), C = n.filter(IT), w = n.filter(LT), T = n.filter(RT), E = n.filter(zT), D = n.filter(BT), O = n.filter(VT), k = n.filter(HT), A = n.filter(UT), j = n.filter(WT), M;
|
|
14067
|
+
t[18] === s ? M = t[19] : (M = () => {
|
|
14068
14068
|
s.openApplication("scratchpad");
|
|
14069
|
-
}, t[18] = s, t[19] =
|
|
14070
|
-
let
|
|
14069
|
+
}, t[18] = s, t[19] = M);
|
|
14070
|
+
let N = M, P = () => {
|
|
14071
14071
|
let t = [];
|
|
14072
|
-
if (
|
|
14073
|
-
let e =
|
|
14072
|
+
if (k.length > 0 || A.length > 0) {
|
|
14073
|
+
let e = k.some(GT), n = !e && k.some(KT);
|
|
14074
14074
|
t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14075
|
-
|
|
14076
|
-
|
|
14075
|
+
k.map(qT),
|
|
14076
|
+
A.map(JT),
|
|
14077
14077
|
e && /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
14078
14078
|
size: "xs",
|
|
14079
14079
|
variant: "outline",
|
|
@@ -14089,7 +14089,7 @@ var gT = (e) => {
|
|
|
14089
14089
|
children: [/* @__PURE__ */ (0, q.jsx)(vo, { className: "h-3.5 w-3.5 mr-1.5" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Open terminal" })]
|
|
14090
14090
|
}),
|
|
14091
14091
|
r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14092
|
-
errors: [...
|
|
14092
|
+
errors: [...k, ...A],
|
|
14093
14093
|
cellId: r
|
|
14094
14094
|
})
|
|
14095
14095
|
] }, "syntax-unknown"));
|
|
@@ -14176,16 +14176,16 @@ var gT = (e) => {
|
|
|
14176
14176
|
})
|
|
14177
14177
|
]
|
|
14178
14178
|
})
|
|
14179
|
-
] }, "cycle")),
|
|
14180
|
-
let e =
|
|
14179
|
+
] }, "cycle")), x.length > 0) {
|
|
14180
|
+
let e = x[0].name;
|
|
14181
14181
|
t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14182
14182
|
/* @__PURE__ */ (0, q.jsx)("p", {
|
|
14183
14183
|
className: "text-muted-foreground font-medium",
|
|
14184
14184
|
children: "This cell redefines variables from other cells."
|
|
14185
14185
|
}),
|
|
14186
|
-
|
|
14186
|
+
x.map(QT),
|
|
14187
14187
|
r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14188
|
-
errors:
|
|
14188
|
+
errors: x,
|
|
14189
14189
|
cellId: r
|
|
14190
14190
|
}),
|
|
14191
14191
|
/* @__PURE__ */ (0, q.jsxs)(CT, {
|
|
@@ -14230,17 +14230,17 @@ var gT = (e) => {
|
|
|
14230
14230
|
size: "xs",
|
|
14231
14231
|
variant: "link",
|
|
14232
14232
|
className: "my-2 font-normal mx-0 px-0",
|
|
14233
|
-
onClick:
|
|
14234
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
14233
|
+
onClick: N,
|
|
14234
|
+
children: [/* @__PURE__ */ (0, q.jsx)(F, { className: "h-3" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Try the scratchpad" })]
|
|
14235
14235
|
}), /* @__PURE__ */ (0, q.jsx)("span", { children: "to experiment without restrictions on variable names." })]
|
|
14236
14236
|
})
|
|
14237
14237
|
})
|
|
14238
14238
|
] }, "multiple-defs"));
|
|
14239
14239
|
}
|
|
14240
|
-
return
|
|
14241
|
-
|
|
14240
|
+
return S.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14241
|
+
S.map($T),
|
|
14242
14242
|
r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14243
|
-
errors:
|
|
14243
|
+
errors: S,
|
|
14244
14244
|
cellId: r
|
|
14245
14245
|
}),
|
|
14246
14246
|
/* @__PURE__ */ (0, q.jsxs)(CT, {
|
|
@@ -14274,11 +14274,11 @@ var gT = (e) => {
|
|
|
14274
14274
|
})
|
|
14275
14275
|
]
|
|
14276
14276
|
})
|
|
14277
|
-
] }, "import-star")),
|
|
14278
|
-
errors:
|
|
14277
|
+
] }, "import-star")), C.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [C.map(eE), r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14278
|
+
errors: C,
|
|
14279
14279
|
cellId: r
|
|
14280
|
-
})] }, "interruption")),
|
|
14281
|
-
|
|
14280
|
+
})] }, "interruption")), w.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("ul", { children: [
|
|
14281
|
+
w.map((e, t) => {
|
|
14282
14282
|
if (e.exception_type === "NameError" && e.msg.startsWith("name 'mo'")) return /* @__PURE__ */ (0, q.jsx)("li", {
|
|
14283
14283
|
className: "my-2",
|
|
14284
14284
|
children: /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)("p", {
|
|
@@ -14348,74 +14348,74 @@ var gT = (e) => {
|
|
|
14348
14348
|
] })
|
|
14349
14349
|
}, `exception-${t}`);
|
|
14350
14350
|
}),
|
|
14351
|
-
|
|
14351
|
+
w.some(tE) && /* @__PURE__ */ (0, q.jsx)(CT, { children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks." }),
|
|
14352
14352
|
r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14353
|
-
errors:
|
|
14353
|
+
errors: w,
|
|
14354
14354
|
cellId: r
|
|
14355
14355
|
})
|
|
14356
|
-
] }, "exception")),
|
|
14357
|
-
|
|
14356
|
+
] }, "exception")), T.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("ul", { children: [
|
|
14357
|
+
T.map(nE),
|
|
14358
14358
|
r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14359
|
-
errors:
|
|
14359
|
+
errors: T,
|
|
14360
14360
|
cellId: r
|
|
14361
14361
|
}),
|
|
14362
|
-
/* @__PURE__ */ (0, q.jsx)(CT, { children:
|
|
14363
|
-
] }, "strict-exception")),
|
|
14362
|
+
/* @__PURE__ */ (0, q.jsx)(CT, { children: T.some(rE) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution." })
|
|
14363
|
+
] }, "strict-exception")), E.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [E.map(iE), r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14364
|
+
errors: E,
|
|
14365
|
+
cellId: r
|
|
14366
|
+
})] }, "internal")), D.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [D.map(aE), r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14364
14367
|
errors: D,
|
|
14365
14368
|
cellId: r
|
|
14366
|
-
})] }, "
|
|
14369
|
+
})] }, "ancestor-prevented")), O.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [O.map(oE), r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14367
14370
|
errors: O,
|
|
14368
14371
|
cellId: r
|
|
14369
|
-
})] }, "ancestor-
|
|
14370
|
-
errors:
|
|
14371
|
-
cellId: r
|
|
14372
|
-
})] }, "ancestor-stopped")), M.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [M.map(sE), r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14373
|
-
errors: M,
|
|
14372
|
+
})] }, "ancestor-stopped")), j.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [j.map(sE), r && /* @__PURE__ */ (0, q.jsx)(zw, {
|
|
14373
|
+
errors: j,
|
|
14374
14374
|
cellId: r,
|
|
14375
14375
|
className: "mt-2.5"
|
|
14376
14376
|
})] }, "sql-errors")), t;
|
|
14377
|
-
},
|
|
14378
|
-
t[20] === m ?
|
|
14377
|
+
}, I;
|
|
14378
|
+
t[20] === m ? I = t[21] : (I = m && /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
14379
14379
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
14380
14380
|
children: [m, /* @__PURE__ */ (0, q.jsx)(Oe, {
|
|
14381
14381
|
content: "marimo didn't run this cell because it detected an error.",
|
|
14382
14382
|
delayDuration: 200,
|
|
14383
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
14383
|
+
children: /* @__PURE__ */ (0, q.jsx)(z, { className: "size-3 cursor-help" })
|
|
14384
14384
|
})]
|
|
14385
|
-
}), t[20] = m, t[21] =
|
|
14386
|
-
let
|
|
14387
|
-
t[22] !== p || t[23] !== d ? (
|
|
14385
|
+
}), t[20] = m, t[21] = I);
|
|
14386
|
+
let L;
|
|
14387
|
+
t[22] !== p || t[23] !== d ? (L = d && /* @__PURE__ */ (0, q.jsx)(ca, {
|
|
14388
14388
|
className: `font-code font-medium ${p}`,
|
|
14389
14389
|
children: d
|
|
14390
|
-
}), t[22] = p, t[23] = d, t[24] =
|
|
14391
|
-
let
|
|
14392
|
-
t[25] !==
|
|
14390
|
+
}), t[22] = p, t[23] = d, t[24] = L) : L = t[24];
|
|
14391
|
+
let R;
|
|
14392
|
+
t[25] !== I || t[26] !== L ? (R = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
14393
14393
|
className: "space-y-0.5",
|
|
14394
|
-
children: [
|
|
14395
|
-
}), t[25] =
|
|
14396
|
-
let B =
|
|
14397
|
-
h = la,
|
|
14398
|
-
} else h = t[12], g = t[13], _ = t[14],
|
|
14399
|
-
let
|
|
14400
|
-
t[30] !== g || t[31] !== _ ? (
|
|
14394
|
+
children: [I, L]
|
|
14395
|
+
}), t[25] = I, t[26] = L, t[27] = R) : R = t[27];
|
|
14396
|
+
let B = R;
|
|
14397
|
+
h = la, v = f, t[28] === o ? y = t[29] : (y = a("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[28] = o, t[29] = y), b = B, g = "flex flex-col gap-4", _ = P(), t[2] = f, t[3] = r, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = l, t[9] = m, t[10] = p, t[11] = d, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b;
|
|
14398
|
+
} else h = t[12], g = t[13], _ = t[14], v = t[15], y = t[16], b = t[17];
|
|
14399
|
+
let x;
|
|
14400
|
+
t[30] !== g || t[31] !== _ ? (x = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
14401
14401
|
className: g,
|
|
14402
14402
|
children: _
|
|
14403
|
-
}), t[30] = g, t[31] = _, t[32] =
|
|
14404
|
-
let
|
|
14405
|
-
t[33] !== r || t[34] !== i || t[35] !== n ? (
|
|
14403
|
+
}), t[30] = g, t[31] = _, t[32] = x) : x = t[32];
|
|
14404
|
+
let S;
|
|
14405
|
+
t[33] !== r || t[34] !== i || t[35] !== n ? (S = r && n.length > 0 && /* @__PURE__ */ (0, q.jsx)(rT, { getContent: () => aw(r, {
|
|
14406
14406
|
code: i,
|
|
14407
14407
|
errors: n
|
|
14408
|
-
}) }), t[33] = r, t[34] = i, t[35] = n, t[36] =
|
|
14409
|
-
let
|
|
14410
|
-
return t[37] !== h || t[38] !==
|
|
14411
|
-
variant:
|
|
14412
|
-
className:
|
|
14408
|
+
}) }), t[33] = r, t[34] = i, t[35] = n, t[36] = S) : S = t[36];
|
|
14409
|
+
let C;
|
|
14410
|
+
return t[37] !== h || t[38] !== v || t[39] !== y || t[40] !== b || t[41] !== x || t[42] !== S ? (C = /* @__PURE__ */ (0, q.jsxs)(h, {
|
|
14411
|
+
variant: v,
|
|
14412
|
+
className: y,
|
|
14413
14413
|
children: [
|
|
14414
|
+
b,
|
|
14414
14415
|
x,
|
|
14415
|
-
S
|
|
14416
|
-
C
|
|
14416
|
+
S
|
|
14417
14417
|
]
|
|
14418
|
-
}), t[37] = h, t[38] =
|
|
14418
|
+
}), t[37] = h, t[38] = v, t[39] = y, t[40] = b, t[41] = x, t[42] = S, t[43] = C) : C = t[43], C;
|
|
14419
14419
|
};
|
|
14420
14420
|
function TT(e) {
|
|
14421
14421
|
return e.type === "interruption";
|
|
@@ -14602,7 +14602,7 @@ var cE = (e) => {
|
|
|
14602
14602
|
}), t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
14603
14603
|
}, lE = (e) => {
|
|
14604
14604
|
let t = (0, J.c)(6), { src: n, className: r } = e;
|
|
14605
|
-
if (
|
|
14605
|
+
if (O()) {
|
|
14606
14606
|
let e;
|
|
14607
14607
|
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ (0, q.jsx)("video", {
|
|
14608
14608
|
className: r,
|
|
@@ -14717,7 +14717,7 @@ var gE = K.lazy(() => import("./vega-embed-container--LYZqguO.js").then((e) => (
|
|
|
14717
14717
|
let e = (0, J.c)(1), t;
|
|
14718
14718
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
14719
14719
|
className: "flex items-center gap-2 justify-center",
|
|
14720
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
14720
|
+
children: [/* @__PURE__ */ (0, q.jsx)(Se, {
|
|
14721
14721
|
className: "w-10 h-10 animate-spin",
|
|
14722
14722
|
strokeWidth: 1
|
|
14723
14723
|
}), /* @__PURE__ */ (0, q.jsx)("span", { children: "Loading chart..." })]
|
|
@@ -15360,7 +15360,7 @@ function tO(e, t, n) {
|
|
|
15360
15360
|
let r = e.options.meta?.rawData;
|
|
15361
15361
|
if (r) {
|
|
15362
15362
|
let e = r[t];
|
|
15363
|
-
if (
|
|
15363
|
+
if (se(e)) return e[n];
|
|
15364
15364
|
}
|
|
15365
15365
|
}
|
|
15366
15366
|
//#endregion
|
|
@@ -17193,7 +17193,7 @@ function Lk(e) {
|
|
|
17193
17193
|
p = null;
|
|
17194
17194
|
break bb0;
|
|
17195
17195
|
}
|
|
17196
|
-
let m =
|
|
17196
|
+
let m = fe[i || "unknown"], h;
|
|
17197
17197
|
t[11] === n ? h = t[12] : (h = n.getColumnFormatting?.(), t[11] = n, t[12] = h);
|
|
17198
17198
|
let g = h;
|
|
17199
17199
|
c = Pn, t[13] === m ? f = t[14] : (f = /* @__PURE__ */ (0, q.jsxs)(gn, { children: [/* @__PURE__ */ (0, q.jsx)(m, { className: "mo-dropdown-icon" }), "Format"] }), t[13] = m, t[14] = f), s = Vn, o = tr, t[15] === r ? l = t[16] : (l = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -17271,7 +17271,7 @@ function zk(e) {
|
|
|
17271
17271
|
let r;
|
|
17272
17272
|
t[5] === n ? r = t[6] : (r = () => n.pin("left"), t[5] = n, t[6] = r);
|
|
17273
17273
|
let i;
|
|
17274
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, q.jsx)(
|
|
17274
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, q.jsx)(v, { className: "mo-dropdown-icon" }), t[7] = i) : i = t[7];
|
|
17275
17275
|
let a;
|
|
17276
17276
|
t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, q.jsxs)(On, {
|
|
17277
17277
|
onClick: r,
|
|
@@ -17280,7 +17280,7 @@ function zk(e) {
|
|
|
17280
17280
|
let o;
|
|
17281
17281
|
t[10] === n ? o = t[11] : (o = () => n.pin("right"), t[10] = n, t[11] = o);
|
|
17282
17282
|
let s;
|
|
17283
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(
|
|
17283
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(j, { className: "mo-dropdown-icon" }), t[12] = s) : s = t[12];
|
|
17284
17284
|
let c;
|
|
17285
17285
|
t[13] === o ? c = t[14] : (c = /* @__PURE__ */ (0, q.jsxs)(On, {
|
|
17286
17286
|
onClick: o,
|
|
@@ -17989,9 +17989,9 @@ function hA(e) {
|
|
|
17989
17989
|
let t, n;
|
|
17990
17990
|
if (typeof e == "string") {
|
|
17991
17991
|
if (e.startsWith("./@file") || e.startsWith("/@file")) t = { url: _r(e).href }, n = "source_0";
|
|
17992
|
-
else if (
|
|
17992
|
+
else if (N(e)) {
|
|
17993
17993
|
n = "data_0";
|
|
17994
|
-
let r =
|
|
17994
|
+
let r = k(e), i = window.atob(r);
|
|
17995
17995
|
t = i.startsWith(mA) ? {
|
|
17996
17996
|
values: ue(r),
|
|
17997
17997
|
format: { type: "arrow" }
|
|
@@ -18927,7 +18927,7 @@ var JA = (e) => {
|
|
|
18927
18927
|
let u;
|
|
18928
18928
|
t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = () => a(!0), t[5] = u) : u = t[5];
|
|
18929
18929
|
let d;
|
|
18930
|
-
t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(
|
|
18930
|
+
t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(w, {
|
|
18931
18931
|
asChild: !0,
|
|
18932
18932
|
children: /* @__PURE__ */ (0, q.jsx)("div", {
|
|
18933
18933
|
className: "flex max-h-[80px] overflow-hidden cursor-pointer",
|
|
@@ -18956,7 +18956,7 @@ var JA = (e) => {
|
|
|
18956
18956
|
})
|
|
18957
18957
|
}), t[9] = n, t[10] = p);
|
|
18958
18958
|
let m;
|
|
18959
|
-
return t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(
|
|
18959
|
+
return t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
18960
18960
|
open: o,
|
|
18961
18961
|
onOpenChange: s,
|
|
18962
18962
|
children: [d, p]
|
|
@@ -19021,7 +19021,7 @@ var $A = (e) => {
|
|
|
19021
19021
|
className: "text-link hover:underline",
|
|
19022
19022
|
children: a
|
|
19023
19023
|
}), t[1] = a, t[2] = n, t[3] = s) : s = t[3], s;
|
|
19024
|
-
}, ej =
|
|
19024
|
+
}, ej = M, tj = "__m_column__", nj = "__select__", rj = 50;
|
|
19025
19025
|
function ij(e) {
|
|
19026
19026
|
return typeof e == "string" ? ["string", "string"] : typeof e == "number" ? ["number", "number"] : e instanceof Date ? ["datetime", "datetime"] : typeof e == "boolean" ? ["boolean", "boolean"] : ["unknown", "object"];
|
|
19027
19027
|
}
|
|
@@ -19155,7 +19155,7 @@ function oj({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: r, tex
|
|
|
19155
19155
|
}
|
|
19156
19156
|
var sj = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: r, contentClassName: i, scrollable: s = !1, wrapped: c, children: l, buttonText: d }) => {
|
|
19157
19157
|
let f = (0, K.useRef)(null), p = r !== void 0 && (r.leading.length > 0 || r.trailing.length > 0) ? n.slice(r.leading.length, n.length - r.trailing.length) : n;
|
|
19158
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
19158
|
+
return /* @__PURE__ */ (0, q.jsxs)(b, { children: [/* @__PURE__ */ (0, q.jsx)(w, {
|
|
19159
19159
|
ref: f,
|
|
19160
19160
|
className: a(e, "max-w-fit outline-hidden"),
|
|
19161
19161
|
onClick: t,
|
|
@@ -21749,10 +21749,10 @@ var zP = {
|
|
|
21749
21749
|
}
|
|
21750
21750
|
}, BP = 30, VP = ({ column: e, calculateTopKRows: t, chosenValues: n, onChange: r, creatable: i = !1 }) => {
|
|
21751
21751
|
let [a, o] = (0, K.useState)(n.length === 0), s = (0, K.useMemo)(() => new Set(n), [n]), c = (0, K.useMemo)(() => [...s].map((e) => ZD({ value: e })), [s]);
|
|
21752
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
21752
|
+
return /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
21753
21753
|
open: a,
|
|
21754
21754
|
onOpenChange: o,
|
|
21755
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
21755
|
+
children: [/* @__PURE__ */ (0, q.jsx)(w, {
|
|
21756
21756
|
asChild: !0,
|
|
21757
21757
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
21758
21758
|
type: "button",
|
|
@@ -22018,10 +22018,10 @@ var XP = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22018
22018
|
}), r();
|
|
22019
22019
|
}, A = () => {
|
|
22020
22020
|
i !== void 0 && t.setColumnFilters((e) => e.filter((e, t) => t !== i)), r();
|
|
22021
|
-
}, j = !mD.has(g), M = fD[m], N = (0, K.useRef)(null),
|
|
22021
|
+
}, j = !mD.has(g), M = fD[m], N = (0, K.useRef)(null), F = (0, K.useRef)(null);
|
|
22022
22022
|
return (0, K.useEffect)(() => {
|
|
22023
22023
|
let e = N.current?.querySelector("input, [role=\"spinbutton\"], [role=\"combobox\"], button");
|
|
22024
|
-
e ? e.focus() :
|
|
22024
|
+
e ? e.focus() : F.current?.focus();
|
|
22025
22025
|
}, [m, g]), /* @__PURE__ */ (0, q.jsxs)("form", {
|
|
22026
22026
|
className: "flex flex-row gap-4 items-end p-3",
|
|
22027
22027
|
onSubmit: (e) => {
|
|
@@ -22060,7 +22060,7 @@ var XP = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22060
22060
|
value: g,
|
|
22061
22061
|
onValueChange: (e) => T(e),
|
|
22062
22062
|
children: [/* @__PURE__ */ (0, q.jsx)(et, {
|
|
22063
|
-
ref:
|
|
22063
|
+
ref: F,
|
|
22064
22064
|
id: o,
|
|
22065
22065
|
className: "h-6 mb-1 bg-transparent",
|
|
22066
22066
|
children: /* @__PURE__ */ (0, q.jsx)(Ge, {})
|
|
@@ -22136,7 +22136,7 @@ var XP = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22136
22136
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
22137
22137
|
onClick: A,
|
|
22138
22138
|
"aria-label": "Remove filter",
|
|
22139
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22139
|
+
children: /* @__PURE__ */ (0, q.jsx)(P, {
|
|
22140
22140
|
className: "h-3.5 w-3.5",
|
|
22141
22141
|
"aria-hidden": !0
|
|
22142
22142
|
})
|
|
@@ -22386,7 +22386,7 @@ var nF = (e) => {
|
|
|
22386
22386
|
t[6] = o.x, t[7] = o.y, t[8] = f;
|
|
22387
22387
|
} else f = t[8];
|
|
22388
22388
|
let p;
|
|
22389
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(
|
|
22389
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(w, {}), t[9] = p) : p = t[9];
|
|
22390
22390
|
let m;
|
|
22391
22391
|
t[10] !== o.x || t[11] !== o.y ? (m = {
|
|
22392
22392
|
position: "fixed",
|
|
@@ -22435,14 +22435,14 @@ var nF = (e) => {
|
|
|
22435
22435
|
style: m,
|
|
22436
22436
|
children: [v, n]
|
|
22437
22437
|
}), t[18] = n, t[19] = r, t[20] = m, t[21] = v, t[22] = y) : y = t[22];
|
|
22438
|
-
let
|
|
22439
|
-
return t[23] !== i || t[24] !== y ? (
|
|
22438
|
+
let x;
|
|
22439
|
+
return t[23] !== i || t[24] !== y ? (x = /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
22440
22440
|
...i,
|
|
22441
22441
|
children: [p, y]
|
|
22442
|
-
}), t[23] = i, t[24] = y, t[25] =
|
|
22442
|
+
}), t[23] = i, t[24] = y, t[25] = x) : x = t[25], x;
|
|
22443
22443
|
}, rF = ({ table: e, calculateTopKRows: t, snapshot: n, onSnapshotChange: r }) => {
|
|
22444
22444
|
let i = YP(e);
|
|
22445
|
-
return i.length === 0 ? null : /* @__PURE__ */ (0, q.jsxs)(
|
|
22445
|
+
return i.length === 0 ? null : /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
22446
22446
|
open: n !== null,
|
|
22447
22447
|
onOpenChange: (e) => {
|
|
22448
22448
|
if (!e) {
|
|
@@ -22452,7 +22452,7 @@ var nF = (e) => {
|
|
|
22452
22452
|
n === null && r(JP(i[0]));
|
|
22453
22453
|
},
|
|
22454
22454
|
modal: !1,
|
|
22455
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22455
|
+
children: [/* @__PURE__ */ (0, q.jsx)(w, {
|
|
22456
22456
|
asChild: !0,
|
|
22457
22457
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
22458
22458
|
type: "button",
|
|
@@ -22532,7 +22532,7 @@ var nF = (e) => {
|
|
|
22532
22532
|
open: c,
|
|
22533
22533
|
onOpenChange: l,
|
|
22534
22534
|
className: "w-fit max-w-[min(90vw,40rem)] p-0",
|
|
22535
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22535
|
+
children: [/* @__PURE__ */ (0, q.jsx)(E, {
|
|
22536
22536
|
className: "absolute top-2 right-2",
|
|
22537
22537
|
"aria-label": "Close",
|
|
22538
22538
|
children: /* @__PURE__ */ (0, q.jsx)(Jr, {
|
|
@@ -22606,7 +22606,7 @@ var nF = (e) => {
|
|
|
22606
22606
|
"aria-hidden": !0
|
|
22607
22607
|
})
|
|
22608
22608
|
});
|
|
22609
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
22609
|
+
return /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
22610
22610
|
open: c,
|
|
22611
22611
|
onOpenChange: l,
|
|
22612
22612
|
modal: !1,
|
|
@@ -22618,7 +22618,7 @@ var nF = (e) => {
|
|
|
22618
22618
|
delayDuration: 600,
|
|
22619
22619
|
children: /* @__PURE__ */ (0, q.jsxs)("span", {
|
|
22620
22620
|
className: "inline-flex items-center",
|
|
22621
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22621
|
+
children: [/* @__PURE__ */ (0, q.jsx)(w, {
|
|
22622
22622
|
asChild: !0,
|
|
22623
22623
|
children: /* @__PURE__ */ (0, q.jsx)("button", {
|
|
22624
22624
|
type: "button",
|
|
@@ -24129,7 +24129,7 @@ var rL = ko, iL = jo, aL = ii(Mo), oL = fi(Po), sL = fi(Ho), cL = K.forwardRef((
|
|
|
24129
24129
|
inset: a
|
|
24130
24130
|
}), n[5] = i, n[6] = a, n[7] = s) : s = n[7];
|
|
24131
24131
|
let c;
|
|
24132
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(
|
|
24132
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(I, { className: "ml-auto h-4 w-4" }), n[8] = c) : c = n[8];
|
|
24133
24133
|
let l;
|
|
24134
24134
|
return n[9] !== r || n[10] !== o || n[11] !== t || n[12] !== s ? (l = /* @__PURE__ */ (0, q.jsxs)(Vo, {
|
|
24135
24135
|
ref: t,
|
|
@@ -24198,7 +24198,7 @@ var pL = K.forwardRef((e, t) => {
|
|
|
24198
24198
|
let l;
|
|
24199
24199
|
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
24200
24200
|
className: c,
|
|
24201
|
-
children: /* @__PURE__ */ (0, q.jsx)(zo, { children: /* @__PURE__ */ (0, q.jsx)(
|
|
24201
|
+
children: /* @__PURE__ */ (0, q.jsx)(zo, { children: /* @__PURE__ */ (0, q.jsx)(_, { className: "h-4 w-4" }) })
|
|
24202
24202
|
}), n[8] = l) : l = n[8];
|
|
24203
24203
|
let u;
|
|
24204
24204
|
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, q.jsxs)(Lo, {
|
|
@@ -24220,7 +24220,7 @@ var mL = K.forwardRef((e, t) => {
|
|
|
24220
24220
|
let c;
|
|
24221
24221
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
24222
24222
|
className: s,
|
|
24223
|
-
children: /* @__PURE__ */ (0, q.jsx)(zo, { children: /* @__PURE__ */ (0, q.jsx)(
|
|
24223
|
+
children: /* @__PURE__ */ (0, q.jsx)(zo, { children: /* @__PURE__ */ (0, q.jsx)(y, { className: "h-4 w-4 fill-current" }) })
|
|
24224
24224
|
}), n[7] = c) : c = n[7];
|
|
24225
24225
|
let l;
|
|
24226
24226
|
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, q.jsxs)(Ro, {
|
|
@@ -24320,7 +24320,7 @@ var bL = (e) => {
|
|
|
24320
24320
|
}
|
|
24321
24321
|
let t = n.current;
|
|
24322
24322
|
if (c(t), !t) return;
|
|
24323
|
-
let r = a.current?.querySelector(`[${
|
|
24323
|
+
let r = a.current?.querySelector(`[${ee}="${t.id}"]`);
|
|
24324
24324
|
if (!r) {
|
|
24325
24325
|
i.error("Context menu cell not found in table");
|
|
24326
24326
|
return;
|
|
@@ -24757,7 +24757,7 @@ var FL = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
24757
24757
|
tabIndex: 0,
|
|
24758
24758
|
role: e.options.enableCellSelection ? "gridcell" : void 0,
|
|
24759
24759
|
"aria-selected": e.options.enableCellSelection ? t.getIsSelected?.() : void 0,
|
|
24760
|
-
...
|
|
24760
|
+
...B(t.id),
|
|
24761
24761
|
key: t.id,
|
|
24762
24762
|
className: a("whitespace-pre truncate outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring border-r border-r-border/75", !i && "max-w-[300px]", t.column.getColumnWrapping && t.column.getColumnWrapping?.() === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", n),
|
|
24763
24763
|
style: o,
|
|
@@ -25079,12 +25079,12 @@ var YL = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25079
25079
|
let [r, i] = K.useState(!1), [o, s] = K.useState(""), c = K.useMemo(() => JL(o, t), [o, t]), l = (e) => {
|
|
25080
25080
|
n(e - 1), s(""), i(!1);
|
|
25081
25081
|
}, u = Math.min(c.count * KL, 240);
|
|
25082
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
25082
|
+
return /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
25083
25083
|
open: t > 1 && r,
|
|
25084
25084
|
onOpenChange: (e) => {
|
|
25085
25085
|
i(e), e || s("");
|
|
25086
25086
|
},
|
|
25087
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25087
|
+
children: [/* @__PURE__ */ (0, q.jsx)(w, {
|
|
25088
25088
|
asChild: !0,
|
|
25089
25089
|
disabled: t <= 1,
|
|
25090
25090
|
children: /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
@@ -25186,12 +25186,12 @@ var YL = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25186
25186
|
});
|
|
25187
25187
|
};
|
|
25188
25188
|
function ZL(e, t) {
|
|
25189
|
-
return `${Ut(e, t)} ${new
|
|
25189
|
+
return `${Ut(e, t)} ${new le("row").pluralize(e)}`;
|
|
25190
25190
|
}
|
|
25191
25191
|
var QL = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: r }) => {
|
|
25192
25192
|
let i = e === "too_many" ? "Unknown" : ZL(e, r), a = n ?? 0, o = t - a;
|
|
25193
25193
|
return {
|
|
25194
|
-
rowsAndColumns: [i, a > 0 ? `${Ut(o, r)} visible` : `${Ut(t, r)} ${new
|
|
25194
|
+
rowsAndColumns: [i, a > 0 ? `${Ut(o, r)} visible` : `${Ut(t, r)} ${new le("column").pluralize(t)}`].join(", "),
|
|
25195
25195
|
hiddenSuffix: a > 0 ? `(${Ut(a, r)} hidden)` : null
|
|
25196
25196
|
};
|
|
25197
25197
|
}, $L = 3, eR = (e) => {
|
|
@@ -25402,7 +25402,7 @@ var cR = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25402
25402
|
let t = (0, J.c)(7), { message: n, className: r, style: i } = e, o;
|
|
25403
25403
|
t[0] === r ? o = t[1] : (o = a("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", r), t[0] = r, t[1] = o);
|
|
25404
25404
|
let s;
|
|
25405
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(
|
|
25405
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(Se, { className: "h-4 w-4 animate-spin" }), t[2] = s) : s = t[2];
|
|
25406
25406
|
let c;
|
|
25407
25407
|
return t[3] !== n || t[4] !== i || t[5] !== o ? (c = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
25408
25408
|
className: o,
|
|
@@ -25420,8 +25420,8 @@ var cR = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25420
25420
|
}, pR = (e) => {
|
|
25421
25421
|
let t = (0, J.c)(12), { columnName: n, dataType: r, className: i } = e, o, s;
|
|
25422
25422
|
if (t[0] !== r) {
|
|
25423
|
-
let e =
|
|
25424
|
-
o =
|
|
25423
|
+
let e = ae(r);
|
|
25424
|
+
o = fe[e], s = _e(e), t[0] = r, t[1] = o, t[2] = s;
|
|
25425
25425
|
} else o = t[1], s = t[2];
|
|
25426
25426
|
let c = s, l;
|
|
25427
25427
|
t[3] === i ? l = t[4] : (l = a("flex flex-row items-center gap-1.5", i), t[3] = i, t[4] = l);
|
|
@@ -25486,10 +25486,10 @@ var _R = ({ table: e }) => {
|
|
|
25486
25486
|
visibleHideableColumnIds: s,
|
|
25487
25487
|
hideableColumnIdSet: new Set(i)
|
|
25488
25488
|
}, h = p.length > 0 || f.length > 0;
|
|
25489
|
-
return /* @__PURE__ */ (0, q.jsxs)(
|
|
25489
|
+
return /* @__PURE__ */ (0, q.jsxs)(b, {
|
|
25490
25490
|
open: d.open,
|
|
25491
25491
|
onOpenChange: d.setOpen,
|
|
25492
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25492
|
+
children: [/* @__PURE__ */ (0, q.jsx)(w, {
|
|
25493
25493
|
asChild: !0,
|
|
25494
25494
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
25495
25495
|
variant: "text",
|
|
@@ -25516,7 +25516,7 @@ var _R = ({ table: e }) => {
|
|
|
25516
25516
|
disabled: r.length === 0,
|
|
25517
25517
|
onSelect: () => l([]),
|
|
25518
25518
|
className: "cursor-pointer",
|
|
25519
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25519
|
+
children: [/* @__PURE__ */ (0, q.jsx)(R, { className: "w-3 h-3 mr-1.5" }), "Show all"]
|
|
25520
25520
|
}),
|
|
25521
25521
|
/* @__PURE__ */ (0, q.jsxs)(lv, {
|
|
25522
25522
|
value: "__hide_all__",
|
|
@@ -25546,7 +25546,7 @@ var _R = ({ table: e }) => {
|
|
|
25546
25546
|
onSelect: e.run,
|
|
25547
25547
|
className: "cursor-pointer",
|
|
25548
25548
|
children: [
|
|
25549
|
-
e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)(Za, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(
|
|
25549
|
+
e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)(Za, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(R, { className: "w-3 h-3 mr-1.5" }),
|
|
25550
25550
|
e.kind === "select-matching" ? "Hide" : "Show",
|
|
25551
25551
|
" ",
|
|
25552
25552
|
e.items.length,
|
|
@@ -25579,7 +25579,7 @@ var _R = ({ table: e }) => {
|
|
|
25579
25579
|
iconClassName: "w-3 h-3"
|
|
25580
25580
|
}), /* @__PURE__ */ (0, q.jsx)("span", {
|
|
25581
25581
|
className: a(r ? "text-primary" : "text-muted-foreground"),
|
|
25582
|
-
children: r ? /* @__PURE__ */ (0, q.jsx)(Za, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(
|
|
25582
|
+
children: r ? /* @__PURE__ */ (0, q.jsx)(Za, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(R, { className: "w-3 h-3" })
|
|
25583
25583
|
})]
|
|
25584
25584
|
})]
|
|
25585
25585
|
})] }, t.value);
|
|
@@ -25737,7 +25737,7 @@ async function OR(e) {
|
|
|
25737
25737
|
let { element: t, filename: n, prepare: r } = e, a = document.getElementById("App"), o = a?.scrollTop ?? 0, s;
|
|
25738
25738
|
r && (s = r(t));
|
|
25739
25739
|
try {
|
|
25740
|
-
return jR(await
|
|
25740
|
+
return jR(await ve(t), xR.toPNG(n)), !0;
|
|
25741
25741
|
} catch (e) {
|
|
25742
25742
|
return i.error("Error downloading as PNG", e), p({
|
|
25743
25743
|
title: "Failed to download as PNG",
|
|
@@ -25910,7 +25910,7 @@ var zR = [
|
|
|
25910
25910
|
label: "JSON",
|
|
25911
25911
|
format: "json",
|
|
25912
25912
|
description: "Raw JSON data",
|
|
25913
|
-
icon:
|
|
25913
|
+
icon: T,
|
|
25914
25914
|
canDownload: !0,
|
|
25915
25915
|
canCopy: !0
|
|
25916
25916
|
},
|
|
@@ -25934,7 +25934,7 @@ var zR = [
|
|
|
25934
25934
|
label: "Markdown",
|
|
25935
25935
|
format: "markdown",
|
|
25936
25936
|
description: "Preserves hyperlinks and formatting",
|
|
25937
|
-
icon:
|
|
25937
|
+
icon: x,
|
|
25938
25938
|
canDownload: !1,
|
|
25939
25939
|
canCopy: !0
|
|
25940
25940
|
}
|
|
@@ -26046,56 +26046,56 @@ var nz = (e) => {
|
|
|
26046
26046
|
t[9] !== S.error || t[10] !== S.status ? (w = S.status === "error" ? ZR(S.error) : null, t[9] = S.error, t[10] = S.status, t[11] = w) : w = t[11];
|
|
26047
26047
|
let T = w, [E, D] = K.useState(null), [O, k] = K.useState(null);
|
|
26048
26048
|
C !== O && (k(C), C && D((e) => e !== null && C.geometry_columns.some((t) => t.name === e) ? e : C.default_geometry_column));
|
|
26049
|
-
let A = !!C?.geometry_columns.length, [
|
|
26050
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
26051
|
-
_.current = !1,
|
|
26052
|
-
}),
|
|
26049
|
+
let A = !!C?.geometry_columns.length, [j, M] = K.useState(null), N = K.useRef(null), P = K.useRef(null), F = K.useRef(0), I, L;
|
|
26050
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (I = () => (_.current = !0, () => {
|
|
26051
|
+
_.current = !1, F.current += 1;
|
|
26052
|
+
}), L = [], t[12] = I, t[13] = L) : (I = t[12], L = t[13]), K.useLayoutEffect(I, L);
|
|
26053
|
+
let R;
|
|
26054
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
26055
|
+
F.current += 1;
|
|
26056
|
+
}, t[14] = R) : R = t[14];
|
|
26053
26057
|
let z;
|
|
26054
|
-
t[
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
let
|
|
26058
|
-
t[
|
|
26059
|
-
let V = qi(vR), ee = !!(V && e.sizeBytes != null && e.sizeBytes > V.limitBytes), H = !!(V && (e.sizeBytesIsLoading || ee)), te = H ? e.sizeBytesIsLoading ? "Checking download size…" : V?.unavailableMessage : "Export", ne = i ? "text-primary" : "text-muted-foreground", re;
|
|
26060
|
-
t[17] === ne ? re = t[18] : (re = a("print:hidden text-xs gap-1", ne), t[17] = ne, t[18] = re);
|
|
26058
|
+
t[15] === r ? z = t[16] : (z = [r], t[15] = r, t[16] = z), K.useEffect(R, z);
|
|
26059
|
+
let B = qi(vR), V = !!(B && e.sizeBytes != null && e.sizeBytes > B.limitBytes), ee = !!(B && (e.sizeBytesIsLoading || V)), H = ee ? e.sizeBytesIsLoading ? "Checking download size…" : B?.unavailableMessage : "Export", te = i ? "text-primary" : "text-muted-foreground", ne;
|
|
26060
|
+
t[17] === te ? ne = t[18] : (ne = a("print:hidden text-xs gap-1", te), t[17] = te, t[18] = ne);
|
|
26061
|
+
let re;
|
|
26062
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ (0, q.jsx)(Ja, { className: "w-3.5 h-3.5" }), t[19] = re) : re = t[19];
|
|
26061
26063
|
let ie;
|
|
26062
|
-
t[
|
|
26063
|
-
|
|
26064
|
-
t[20] !== H || t[21] !== re ? (ae = /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26065
|
-
ref: P,
|
|
26064
|
+
t[20] !== ee || t[21] !== ne ? (ie = /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26065
|
+
ref: N,
|
|
26066
26066
|
"data-testid": "export-button",
|
|
26067
26067
|
size: "xs",
|
|
26068
26068
|
variant: "text",
|
|
26069
|
-
disabled:
|
|
26070
|
-
className:
|
|
26071
|
-
children: [
|
|
26072
|
-
}), t[20] =
|
|
26073
|
-
let
|
|
26074
|
-
t[23] === r ?
|
|
26075
|
-
o(e), e || (
|
|
26076
|
-
}, t[23] = r, t[24] =
|
|
26077
|
-
let
|
|
26078
|
-
t[25] === g ?
|
|
26079
|
-
let e =
|
|
26080
|
-
return
|
|
26081
|
-
}, t[25] = g, t[26] =
|
|
26082
|
-
let
|
|
26083
|
-
t[27] === g ?
|
|
26084
|
-
e ===
|
|
26085
|
-
}, t[27] = g, t[28] =
|
|
26086
|
-
let
|
|
26087
|
-
t[29] !== E || t[30] !== e || t[31] !==
|
|
26069
|
+
disabled: ee,
|
|
26070
|
+
className: ne,
|
|
26071
|
+
children: [re, "Export"]
|
|
26072
|
+
}), t[20] = ee, t[21] = ne, t[22] = ie) : ie = t[22];
|
|
26073
|
+
let ae = ie, oe;
|
|
26074
|
+
t[23] === r ? oe = t[24] : (oe = (e) => {
|
|
26075
|
+
o(e), e || (F.current += 1, M(null), c(WR), D(null), f({ source: r }));
|
|
26076
|
+
}, t[23] = r, t[24] = oe);
|
|
26077
|
+
let se = oe, ce;
|
|
26078
|
+
t[25] === g ? ce = t[26] : (ce = () => {
|
|
26079
|
+
let e = F.current + 1;
|
|
26080
|
+
return F.current = e, g(null), e;
|
|
26081
|
+
}, t[25] = g, t[26] = ce);
|
|
26082
|
+
let le = ce, ue;
|
|
26083
|
+
t[27] === g ? ue = t[28] : (ue = (e, t) => {
|
|
26084
|
+
e === F.current && g(t);
|
|
26085
|
+
}, t[27] = g, t[28] = ue);
|
|
26086
|
+
let de = ue, fe;
|
|
26087
|
+
t[29] !== E || t[30] !== e || t[31] !== de || t[32] !== s ? (fe = async (t, n, r) => {
|
|
26088
26088
|
let i = KR(s, t, n.destination), a = {
|
|
26089
26089
|
format: t,
|
|
26090
26090
|
...i ? { options: i } : {},
|
|
26091
26091
|
...BR(t) && E !== null ? { geometry_column: E } : {}
|
|
26092
26092
|
}, o = await e.downloadAs(a);
|
|
26093
|
-
return r ===
|
|
26093
|
+
return r === F.current ? o.missing_packages && o.missing_packages.length > 0 ? (de(r, {
|
|
26094
26094
|
kind: "missing-packages",
|
|
26095
26095
|
packages: o.missing_packages,
|
|
26096
26096
|
description: o.error,
|
|
26097
26097
|
action: n
|
|
26098
|
-
}), null) : o.error || o.code || !o.url ? (
|
|
26098
|
+
}), null) : o.error || o.code || !o.url ? (de(r, {
|
|
26099
26099
|
kind: "error",
|
|
26100
26100
|
title: XR(n),
|
|
26101
26101
|
description: o.error ?? "The export did not produce a file.",
|
|
@@ -26104,17 +26104,17 @@ var nz = (e) => {
|
|
|
26104
26104
|
url: o.url,
|
|
26105
26105
|
filename: o.filename
|
|
26106
26106
|
} : null;
|
|
26107
|
-
}, t[29] = E, t[30] = e, t[31] =
|
|
26108
|
-
let
|
|
26109
|
-
t[34] !==
|
|
26107
|
+
}, t[29] = E, t[30] = e, t[31] = de, t[32] = s, t[33] = fe) : fe = t[33];
|
|
26108
|
+
let pe = fe, he;
|
|
26109
|
+
t[34] !== le || t[35] !== A || t[36] !== pe || t[37] !== de ? (he = async (e) => {
|
|
26110
26110
|
let t = {
|
|
26111
26111
|
destination: "download",
|
|
26112
26112
|
format: e
|
|
26113
|
-
}, n =
|
|
26113
|
+
}, n = le(), r = YR(e, A);
|
|
26114
26114
|
try {
|
|
26115
26115
|
await ER(`Preparing ${r} export...`, async () => {
|
|
26116
|
-
let r = await
|
|
26117
|
-
if (!r || n !==
|
|
26116
|
+
let r = await pe(e, t, n);
|
|
26117
|
+
if (!r || n !== F.current) return !1;
|
|
26118
26118
|
let i = (r.filename ?? "").trim(), a = `${xR.withoutExtension(i) || "download"}.${e}`, o = r.url;
|
|
26119
26119
|
if (!o.startsWith("data:")) {
|
|
26120
26120
|
let e = o.includes("?") ? "&" : "?", t = new URLSearchParams({
|
|
@@ -26127,18 +26127,18 @@ var nz = (e) => {
|
|
|
26127
26127
|
}) && p({ title: `${r} download started` });
|
|
26128
26128
|
} catch (e) {
|
|
26129
26129
|
let r = e;
|
|
26130
|
-
|
|
26130
|
+
de(n, {
|
|
26131
26131
|
kind: "error",
|
|
26132
26132
|
title: XR(t),
|
|
26133
26133
|
description: ZR(r),
|
|
26134
26134
|
action: t
|
|
26135
26135
|
});
|
|
26136
26136
|
}
|
|
26137
|
-
}, t[34] =
|
|
26137
|
+
}, t[34] = le, t[35] = A, t[36] = pe, t[37] = de, t[38] = he) : he = t[38];
|
|
26138
26138
|
let ge = he, _e;
|
|
26139
|
-
t[39] !==
|
|
26139
|
+
t[39] !== se || t[40] !== A || t[41] !== pe ? (_e = async (e, t, n) => {
|
|
26140
26140
|
await ER(`Preparing ${YR(e, A)} for clipboard...`, async () => {
|
|
26141
|
-
let r = VR[e], i = await
|
|
26141
|
+
let r = VR[e], i = await pe(r, t, n);
|
|
26142
26142
|
if (!i) return;
|
|
26143
26143
|
let a;
|
|
26144
26144
|
bb190: switch (e) {
|
|
@@ -26161,39 +26161,39 @@ var nz = (e) => {
|
|
|
26161
26161
|
Kr(e);
|
|
26162
26162
|
return;
|
|
26163
26163
|
}
|
|
26164
|
-
n ===
|
|
26164
|
+
n === F.current && (await m(a), p({ title: "Copied to clipboard" }), se(!1));
|
|
26165
26165
|
});
|
|
26166
|
-
}, t[39] =
|
|
26166
|
+
}, t[39] = se, t[40] = A, t[41] = pe, t[42] = _e) : _e = t[42];
|
|
26167
26167
|
let ve = _e, ye;
|
|
26168
|
-
t[43] !==
|
|
26168
|
+
t[43] !== le || t[44] !== ve || t[45] !== de ? (ye = async (e) => {
|
|
26169
26169
|
let t = {
|
|
26170
26170
|
destination: "copy",
|
|
26171
26171
|
format: e
|
|
26172
|
-
}, n =
|
|
26172
|
+
}, n = le();
|
|
26173
26173
|
try {
|
|
26174
26174
|
await ve(e, t, n);
|
|
26175
26175
|
} catch (e) {
|
|
26176
26176
|
let r = e;
|
|
26177
|
-
|
|
26177
|
+
de(n, {
|
|
26178
26178
|
kind: "error",
|
|
26179
26179
|
title: XR(t),
|
|
26180
26180
|
description: ZR(r),
|
|
26181
26181
|
action: t
|
|
26182
26182
|
});
|
|
26183
26183
|
}
|
|
26184
|
-
}, t[43] =
|
|
26184
|
+
}, t[43] = le, t[44] = ve, t[45] = de, t[46] = ye) : ye = t[46];
|
|
26185
26185
|
let be = ye, xe;
|
|
26186
26186
|
t[47] !== be || t[48] !== ge ? (xe = (e) => {
|
|
26187
26187
|
e.destination === "download" ? ge(e.format) : be(e.format);
|
|
26188
26188
|
}, t[47] = be, t[48] = ge, t[49] = xe) : xe = t[49];
|
|
26189
26189
|
let Se = xe, Ce;
|
|
26190
|
-
t[50] !== E || t[51] !== n || t[52] !== y || t[53] !== S || t[54] !== Se || t[55] !==
|
|
26190
|
+
t[50] !== E || t[51] !== n || t[52] !== y || t[53] !== S || t[54] !== Se || t[55] !== de || t[56] !== g ? (Ce = async (e, t) => {
|
|
26191
26191
|
if (!y(t)) return;
|
|
26192
26192
|
if (!BR(e.format) || !n) {
|
|
26193
26193
|
Se(e);
|
|
26194
26194
|
return;
|
|
26195
26195
|
}
|
|
26196
|
-
let r =
|
|
26196
|
+
let r = F.current, i = () => y(t) && r === F.current, a;
|
|
26197
26197
|
try {
|
|
26198
26198
|
a = await n({});
|
|
26199
26199
|
} catch {
|
|
@@ -26208,7 +26208,7 @@ var nz = (e) => {
|
|
|
26208
26208
|
Se(e);
|
|
26209
26209
|
return;
|
|
26210
26210
|
case "obsolete-geometry":
|
|
26211
|
-
D(a.default_geometry_column),
|
|
26211
|
+
D(a.default_geometry_column), de(r, {
|
|
26212
26212
|
kind: "error",
|
|
26213
26213
|
title: XR(e),
|
|
26214
26214
|
description: QR,
|
|
@@ -26223,7 +26223,7 @@ var nz = (e) => {
|
|
|
26223
26223
|
return;
|
|
26224
26224
|
default: Kr(o);
|
|
26225
26225
|
}
|
|
26226
|
-
}, t[50] = E, t[51] = n, t[52] = y, t[53] = S, t[54] = Se, t[55] =
|
|
26226
|
+
}, t[50] = E, t[51] = n, t[52] = y, t[53] = S, t[54] = Se, t[55] = de, t[56] = g, t[57] = Ce) : Ce = t[57];
|
|
26227
26227
|
let we = Ii(Ce), U;
|
|
26228
26228
|
t[58] !== d || t[59] !== we ? (U = (e) => {
|
|
26229
26229
|
let t = d;
|
|
@@ -26233,39 +26233,39 @@ var nz = (e) => {
|
|
|
26233
26233
|
}, t[58] = d, t[59] = we, t[60] = U) : U = t[60];
|
|
26234
26234
|
let Te = U, Ee;
|
|
26235
26235
|
t[61] === A ? Ee = t[62] : (Ee = (e) => {
|
|
26236
|
-
!GR(e) && !(BR(e) && A) ||
|
|
26236
|
+
!GR(e) && !(BR(e) && A) || M((t) => t === e ? null : e);
|
|
26237
26237
|
}, t[61] = A, t[62] = Ee);
|
|
26238
26238
|
let De = Ee, ke;
|
|
26239
|
-
t[63] !==
|
|
26239
|
+
t[63] !== ae || t[64] !== ee ? (ke = ee ? /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26240
26240
|
tabIndex: 0,
|
|
26241
26241
|
className: "inline-flex",
|
|
26242
|
-
children:
|
|
26242
|
+
children: ae
|
|
26243
26243
|
}) : /* @__PURE__ */ (0, q.jsx)(Ca, {
|
|
26244
26244
|
asChild: !0,
|
|
26245
|
-
children:
|
|
26246
|
-
}), t[63] =
|
|
26245
|
+
children: ae
|
|
26246
|
+
}), t[63] = ae, t[64] = ee, t[65] = ke) : ke = t[65];
|
|
26247
26247
|
let Ae;
|
|
26248
|
-
t[66] !== ke || t[67] !==
|
|
26249
|
-
content:
|
|
26248
|
+
t[66] !== ke || t[67] !== H ? (Ae = /* @__PURE__ */ (0, q.jsx)(Oe, {
|
|
26249
|
+
content: H,
|
|
26250
26250
|
children: ke
|
|
26251
|
-
}), t[66] = ke, t[67] =
|
|
26251
|
+
}), t[66] = ke, t[67] = H, t[68] = Ae) : Ae = t[68];
|
|
26252
26252
|
let je, Me;
|
|
26253
26253
|
t[69] === Symbol.for("react.memo_cache_sentinel") ? (je = (e) => {
|
|
26254
|
-
e.preventDefault(), F.current?.focus();
|
|
26255
|
-
}, Me = (e) => {
|
|
26256
26254
|
e.preventDefault(), P.current?.focus();
|
|
26255
|
+
}, Me = (e) => {
|
|
26256
|
+
e.preventDefault(), N.current?.focus();
|
|
26257
26257
|
}, t[69] = je, t[70] = Me) : (je = t[69], Me = t[70]);
|
|
26258
26258
|
let Ne;
|
|
26259
|
-
t[71] ===
|
|
26260
|
-
e.key === "Escape" &&
|
|
26261
|
-
}, t[71] =
|
|
26259
|
+
t[71] === se ? Ne = t[72] : (Ne = (e) => {
|
|
26260
|
+
e.key === "Escape" && se(!1);
|
|
26261
|
+
}, t[71] = se, t[72] = Ne);
|
|
26262
26262
|
let Pe;
|
|
26263
26263
|
t[73] === Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ (0, q.jsxs)(xa, { children: [/* @__PURE__ */ (0, q.jsx)(ba, { children: "Export table" }), /* @__PURE__ */ (0, q.jsx)(wa, { children: "Download a file or copy to the clipboard." })] }), t[73] = Pe) : Pe = t[73];
|
|
26264
26264
|
let Fe;
|
|
26265
|
-
if (t[74] !== Te || t[75] !==
|
|
26265
|
+
if (t[74] !== Te || t[75] !== j || t[76] !== h || t[77] !== E || t[78] !== n || t[79] !== be || t[80] !== ge || t[81] !== A || t[82] !== C || t[83] !== T || t[84] !== S.refetch || t[85] !== s || t[86] !== De) {
|
|
26266
26266
|
let e;
|
|
26267
26267
|
t[88] === A ? e = t[89] : (e = (e) => e.format !== "geojson" || A, t[88] = A, t[89] = e), Fe = zR.filter(e).map((e) => {
|
|
26268
|
-
let t = YR(e.format, A), r = GR(e.format) || BR(e.format) && A ? e.format : null, i = r !== null &&
|
|
26268
|
+
let t = YR(e.format, A), r = GR(e.format) || BR(e.format) && A ? e.format : null, i = r !== null && j === r, o = r ? "button" : "div", l = `export-options-${e.format}`, d = `${l}-description`, f = `${l}-summary`, p = h?.action.format === e.format ? h : null, m = BR(e.format) && A ? ez(E) ?? "Choose geometry" : JR(s, e.format), g = C?.geometry_columns.findIndex((e) => e.name === E) ?? -1, _ = BR(e.format) ? C?.formats[e.format] : void 0, v = BR(e.format) && C ? $R(C, e.format, E) : null, y = T ? `Could not load geometry options: ${T}` : _?.reason ?? tz(v, t, E), b = p?.kind === "missing-packages" ? p : null, x = b?.packages ?? (_?.available === !1 ? _.missing_packages : []), w = BR(e.format) && (!!n && !C || v !== null), O = BR(e.format) && (w || x.length > 0);
|
|
26269
26269
|
return /* @__PURE__ */ (0, q.jsxs)("li", {
|
|
26270
26270
|
"data-testid": `export-row-${e.format}`,
|
|
26271
26271
|
className: a(i && "bg-muted/40"),
|
|
@@ -26412,7 +26412,7 @@ var nz = (e) => {
|
|
|
26412
26412
|
children: /* @__PURE__ */ (0, q.jsxs)(la, {
|
|
26413
26413
|
variant: "destructive",
|
|
26414
26414
|
className: "p-3 has-[svg]:pl-9 [&>svg]:left-3 [&>svg]:top-3",
|
|
26415
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
26415
|
+
children: [/* @__PURE__ */ (0, q.jsx)(me, { className: "h-4 w-4" }), /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)(ca, {
|
|
26416
26416
|
className: "text-sm",
|
|
26417
26417
|
children: p.title
|
|
26418
26418
|
}), /* @__PURE__ */ (0, q.jsx)(ua, {
|
|
@@ -26423,7 +26423,7 @@ var nz = (e) => {
|
|
|
26423
26423
|
})
|
|
26424
26424
|
]
|
|
26425
26425
|
}, e.format);
|
|
26426
|
-
}), t[74] = Te, t[75] =
|
|
26426
|
+
}), t[74] = Te, t[75] = j, t[76] = h, t[77] = E, t[78] = n, t[79] = be, t[80] = ge, t[81] = A, t[82] = C, t[83] = T, t[84] = S.refetch, t[85] = s, t[86] = De, t[87] = Fe;
|
|
26427
26427
|
} else Fe = t[87];
|
|
26428
26428
|
let Ie;
|
|
26429
26429
|
t[90] === Fe ? Ie = t[91] : (Ie = /* @__PURE__ */ (0, q.jsx)("ul", {
|
|
@@ -26433,7 +26433,7 @@ var nz = (e) => {
|
|
|
26433
26433
|
}), t[90] = Fe, t[91] = Ie);
|
|
26434
26434
|
let Le;
|
|
26435
26435
|
t[92] !== Ne || t[93] !== Ie ? (Le = /* @__PURE__ */ (0, q.jsxs)(Sa, {
|
|
26436
|
-
ref:
|
|
26436
|
+
ref: P,
|
|
26437
26437
|
className: "print:hidden gap-4 sm:max-w-[540px]",
|
|
26438
26438
|
onOpenAutoFocus: je,
|
|
26439
26439
|
onCloseAutoFocus: Me,
|
|
@@ -26441,11 +26441,11 @@ var nz = (e) => {
|
|
|
26441
26441
|
children: [Pe, Ie]
|
|
26442
26442
|
}), t[92] = Ne, t[93] = Ie, t[94] = Le) : Le = t[94];
|
|
26443
26443
|
let Re;
|
|
26444
|
-
return t[95] !== i || t[96] !==
|
|
26444
|
+
return t[95] !== i || t[96] !== se || t[97] !== Ae || t[98] !== Le ? (Re = /* @__PURE__ */ (0, q.jsxs)(Ta, {
|
|
26445
26445
|
open: i,
|
|
26446
|
-
onOpenChange:
|
|
26446
|
+
onOpenChange: se,
|
|
26447
26447
|
children: [Ae, Le]
|
|
26448
|
-
}), t[95] = i, t[96] =
|
|
26448
|
+
}), t[95] = i, t[96] = se, t[97] = Ae, t[98] = Le, t[99] = Re) : Re = t[99], Re;
|
|
26449
26449
|
}, rz = (e) => {
|
|
26450
26450
|
let t = (0, J.c)(31), { format: n, settings: r, onChange: i } = e, a = K.useId(), o;
|
|
26451
26451
|
t[0] !== a || t[1] !== i ? (o = (e, t) => /* @__PURE__ */ (0, q.jsx)(iz, {
|
|
@@ -26542,7 +26542,7 @@ var nz = (e) => {
|
|
|
26542
26542
|
children: r
|
|
26543
26543
|
}), t[0] = n, t[1] = r, t[2] = o) : o = t[2];
|
|
26544
26544
|
let s = `${r} help`, c;
|
|
26545
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(
|
|
26545
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(z, { className: "h-3 w-3" }), t[3] = c) : c = t[3];
|
|
26546
26546
|
let l;
|
|
26547
26547
|
t[4] === s ? l = t[5] : (l = /* @__PURE__ */ (0, q.jsx)("button", {
|
|
26548
26548
|
type: "button",
|
|
@@ -26885,7 +26885,7 @@ function gz(e, t) {
|
|
|
26885
26885
|
//#region src/components/editor/output/MarimoTracebackOutput.tsx
|
|
26886
26886
|
var _z = (e) => {
|
|
26887
26887
|
let t = (0, J.c)(62), { onRefactorWithAI: n, traceback: r, tracebackFormat: i, cellId: a, code: o } = e, s = i === void 0 ? "html" : i, c;
|
|
26888
|
-
t[0] !== r || t[1] !== s ? (c = s === "text" ? /* @__PURE__ */ (0, q.jsx)("pre", { children: r }) :
|
|
26888
|
+
t[0] !== r || t[1] !== s ? (c = s === "text" ? /* @__PURE__ */ (0, q.jsx)("pre", { children: r }) : S({
|
|
26889
26889
|
html: r,
|
|
26890
26890
|
additionalReplacements: [
|
|
26891
26891
|
yz,
|
|
@@ -26897,15 +26897,15 @@ var _z = (e) => {
|
|
|
26897
26897
|
t[3] !== r || t[4] !== s ? (d = s === "html" ? Mr(Cr(r)) : r, t[3] = r, t[4] = s, t[5] = d) : d = t[5];
|
|
26898
26898
|
let f = d, p;
|
|
26899
26899
|
t[6] === f ? p = t[7] : (p = vz(f), t[6] = f, t[7] = p);
|
|
26900
|
-
let g = p, _ = qi(
|
|
26900
|
+
let g = p, _ = qi(ji), v = Pw(), y;
|
|
26901
26901
|
t[8] === r ? y = t[9] : (y = $h(r)?.at(0), t[8] = r, t[9] = y);
|
|
26902
26902
|
let b = y, x;
|
|
26903
26903
|
t[10] !== a || t[11] !== b ? (x = b && b.kind === "cell" && !na() && !ra() && a !== "__scratch__", t[10] = a, t[11] = b, t[12] = x) : x = t[12];
|
|
26904
|
-
let
|
|
26905
|
-
t[13] !== _ || t[14] !== n ? (
|
|
26906
|
-
let
|
|
26907
|
-
t[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
26908
|
-
let
|
|
26904
|
+
let C = x, w;
|
|
26905
|
+
t[13] !== _ || t[14] !== n ? (w = n && _ && !ra(), t[13] = _, t[14] = n, t[15] = w) : w = t[15];
|
|
26906
|
+
let T = w, E;
|
|
26907
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (E = ra(), t[16] = E) : E = t[16];
|
|
26908
|
+
let D = !E, [O, k] = (0, K.useState)(!0), A;
|
|
26909
26909
|
t[17] !== g || t[18] !== n ? (A = (e) => {
|
|
26910
26910
|
n?.({
|
|
26911
26911
|
prompt: `My code gives the following error:\n\n${g}`,
|
|
@@ -26946,14 +26946,14 @@ var _z = (e) => {
|
|
|
26946
26946
|
tracebackFormat: s
|
|
26947
26947
|
}) }), t[37] = a, t[38] = o, t[39] = g, t[40] = r, t[41] = s, t[42] = B) : B = t[42];
|
|
26948
26948
|
let V;
|
|
26949
|
-
t[43] !== j || t[44] !== N || t[45] !==
|
|
26949
|
+
t[43] !== j || t[44] !== N || t[45] !== T ? (V = T && /* @__PURE__ */ (0, q.jsx)(Hw, {
|
|
26950
26950
|
tooltip: "Fix with AI",
|
|
26951
26951
|
openPrompt: () => j(!1),
|
|
26952
26952
|
applyAutofix: () => j(!0),
|
|
26953
26953
|
openChat: N
|
|
26954
|
-
}), t[43] = j, t[44] = N, t[45] =
|
|
26954
|
+
}), t[43] = j, t[44] = N, t[45] = T, t[46] = V) : V = t[46];
|
|
26955
26955
|
let ee;
|
|
26956
|
-
t[47] !==
|
|
26956
|
+
t[47] !== C || t[48] !== b ? (ee = C && /* @__PURE__ */ (0, q.jsx)(Oe, {
|
|
26957
26957
|
content: "Attach pdb to the exception point.",
|
|
26958
26958
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26959
26959
|
size: "xs",
|
|
@@ -26963,9 +26963,9 @@ var _z = (e) => {
|
|
|
26963
26963
|
},
|
|
26964
26964
|
children: [/* @__PURE__ */ (0, q.jsx)(La, { className: "h-3 w-3 mr-2" }), "Launch debugger"]
|
|
26965
26965
|
})
|
|
26966
|
-
}), t[47] =
|
|
26966
|
+
}), t[47] = C, t[48] = b, t[49] = ee) : ee = t[49];
|
|
26967
26967
|
let H;
|
|
26968
|
-
t[50] !== g || t[51] !== f ? (H =
|
|
26968
|
+
t[50] !== g || t[51] !== f ? (H = D && /* @__PURE__ */ (0, q.jsxs)(Qn, { children: [/* @__PURE__ */ (0, q.jsx)(xn, {
|
|
26969
26969
|
asChild: !0,
|
|
26970
26970
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26971
26971
|
size: "xs",
|
|
@@ -27036,7 +27036,7 @@ function vz(e) {
|
|
|
27036
27036
|
var yz = (e) => {
|
|
27037
27037
|
let t = Qh(e);
|
|
27038
27038
|
if (t?.kind === "cell") {
|
|
27039
|
-
let e =
|
|
27039
|
+
let e = ie("debugger"), n = e ? /* @__PURE__ */ (0, q.jsx)(Cz, {}) : /* @__PURE__ */ (0, q.jsx)(Sz, {});
|
|
27040
27040
|
return /* @__PURE__ */ (0, q.jsx)("span", {
|
|
27041
27041
|
className: "nb",
|
|
27042
27042
|
children: /* @__PURE__ */ (0, q.jsxs)("span", {
|
|
@@ -27083,11 +27083,11 @@ var yz = (e) => {
|
|
|
27083
27083
|
})
|
|
27084
27084
|
});
|
|
27085
27085
|
}, bz = (e) => {
|
|
27086
|
-
if (!(e instanceof
|
|
27086
|
+
if (!(e instanceof V.Text) || !e.nodeValue || !dw(e.nodeValue)) return;
|
|
27087
27087
|
let t = uw(e.nodeValue);
|
|
27088
27088
|
return /* @__PURE__ */ (0, q.jsx)(Gw, { segments: t });
|
|
27089
27089
|
}, xz = (e) => {
|
|
27090
|
-
if (e instanceof
|
|
27090
|
+
if (e instanceof V.Text && e.nodeValue?.includes("File") && e.next instanceof V.Element && Zh(e.next)) return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: e.nodeValue.replace("File", "Cell") });
|
|
27091
27091
|
}, Sz = () => {
|
|
27092
27092
|
let e = (0, J.c)(1), t;
|
|
27093
27093
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [
|
|
@@ -27189,7 +27189,7 @@ var Tz = "__metadata__", Ez = (0, K.memo)((e) => {
|
|
|
27189
27189
|
case "image/svg+xml": {
|
|
27190
27190
|
if (Yi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`), p === "image/svg+xml" && !f.startsWith("data:image/svg+xml;base64,")) {
|
|
27191
27191
|
let e;
|
|
27192
|
-
return t[12] === f ? e = t[13] : (e =
|
|
27192
|
+
return t[12] === f ? e = t[13] : (e = S({
|
|
27193
27193
|
html: f,
|
|
27194
27194
|
alwaysSanitizeHtml: !0
|
|
27195
27195
|
}), t[12] = f, t[13] = e), e;
|
|
@@ -27423,7 +27423,7 @@ function Az() {
|
|
|
27423
27423
|
var jz = K.memo((e) => {
|
|
27424
27424
|
let t = (0, J.c)(34), r, i, s, c;
|
|
27425
27425
|
t[0] === e ? (r = t[1], i = t[2], s = t[3], c = t[4]) : ({cellId: r, children: i, forceExpand: s, ...c} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = s, t[4] = c);
|
|
27426
|
-
let l = (0, K.useRef)(null), [d, f] =
|
|
27426
|
+
let l = (0, K.useRef)(null), [d, f] = ge(r), p = uE(l), { hasFullscreen: m } = Na(), h = si(l);
|
|
27427
27427
|
n(h ? document : null, "keydown", Fz);
|
|
27428
27428
|
let g;
|
|
27429
27429
|
t[5] === m ? g = t[6] : (g = m && /* @__PURE__ */ (0, q.jsx)(Oe, {
|
|
@@ -27852,7 +27852,7 @@ var eB = (0, K.memo)((e) => {
|
|
|
27852
27852
|
eB.displayName = "Slide";
|
|
27853
27853
|
//#endregion
|
|
27854
27854
|
//#region src/components/slides/slide-form.tsx
|
|
27855
|
-
var tB = "slide", nB = "slide", rB = "center", iB = 36, aB = Hi("marimo:slides:config-open", !0,
|
|
27855
|
+
var tB = "slide", nB = "slide", rB = "center", iB = 36, aB = Hi("marimo:slides:config-open", !0, be, { getOnInit: !0 }), oB = [
|
|
27856
27856
|
{
|
|
27857
27857
|
value: "slide",
|
|
27858
27858
|
label: "Slide",
|