@marimo-team/frontend 0.23.7-dev1 → 0.23.7-dev10
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/assets/{CellStatus-CO_unhk0.js → CellStatus-CN4mKUXv.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-k8s9vETJ.js → ConnectedDataExplorerComponent-DeBM0cl9.js} +1 -1
- package/dist/assets/{JsonOutput-BalWi8Qq.js → JsonOutput-B0sjIMBK.js} +12 -12
- package/dist/assets/LazyAnyLanguageCodeMirror-pAFdCqyC.js +2 -0
- package/dist/assets/{MarimoErrorOutput-1q6qtvxi.js → MarimoErrorOutput-ClA7EZGX.js} +1 -1
- package/dist/assets/{RenderHTML-DkEHxB1r.js → RenderHTML-CruxVneu.js} +1 -1
- package/dist/assets/{add-cell-with-ai-D5JeNTNV.js → add-cell-with-ai-C7f_bUyB.js} +3 -3
- package/dist/assets/{add-connection-dialog-Dh2rjP3o.js → add-connection-dialog-DSOgwTlO.js} +1 -1
- package/dist/assets/{agent-panel-CiOQnIC9.js → agent-panel-CeDyKw1_.js} +1 -1
- package/dist/assets/{ai-model-dropdown-B-9yxYM4.js → ai-model-dropdown-kQdQhWyz.js} +1 -1
- package/dist/assets/{any-language-editor-C9DM60EN.js → any-language-editor-CwwS-naY.js} +1 -1
- package/dist/assets/apl-CaYjM5u2.js +1 -0
- package/dist/assets/{app-config-button-BOc_z0uX.js → app-config-button-dnmk7p6n.js} +1 -1
- package/dist/assets/{arc-ONRhTAm2.js → arc-D1owqr0z.js} +1 -1
- package/dist/assets/{architecture-7HQA4BMR-B8Ryu75w.js → architecture-7HQA4BMR-BzXB-NJy.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-JNogHSZh.js → architectureDiagram-VXUJARFQ-D6wy26r_.js} +1 -1
- package/dist/assets/asciiarmor-D2cJUKTq.js +1 -0
- package/dist/assets/asn1-CZDBKivQ.js +1 -0
- package/dist/assets/{blockDiagram-VD42YOAC-Dy-_c6-H.js → blockDiagram-VD42YOAC-CGtjuPGT.js} +1 -1
- package/dist/assets/brainfuck-D5O26WTe.js +1 -0
- package/dist/assets/{c4Diagram-YG6GDRKO-DHRUX7S-.js → c4Diagram-YG6GDRKO-BSjPyzdq.js} +1 -1
- package/dist/assets/{cache-panel-B_zs00Q_.js → cache-panel-DDJqyuAl.js} +1 -1
- package/dist/assets/{cell-editor-CtnFLzYa.js → cell-editor-DOImf428.js} +3 -3
- package/dist/assets/{cell-link-CC2MiW7a.js → cell-link-DqiCeeeS.js} +1 -1
- package/dist/assets/{cells-DAxz8J5R.js → cells-BBDzmUIS.js} +5 -5
- package/dist/assets/channel-D2-MhlpJ.js +1 -0
- package/dist/assets/{chat-display-BiUNr6dU.js → chat-display-Ct3Me0kL.js} +1 -1
- package/dist/assets/{chat-panel-BHsaaTzR.js → chat-panel-CXvtUFUU.js} +1 -1
- package/dist/assets/{chat-ui-CTYG4pnL.js → chat-ui-UFERs8Gx.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-mPGRpph5.js → chunk-4BX2VUAB-Co_nHYv2.js} +1 -1
- package/dist/assets/chunk-55IACEB6-CSG9iNvo.js +1 -0
- package/dist/assets/{chunk-5FQGJX7Z-e_arGD4o.js → chunk-5FQGJX7Z-BReOK4Lg.js} +2 -2
- package/dist/assets/{chunk-ABZYJK2D-BInZW7OW.js → chunk-ABZYJK2D-CvNlx3OC.js} +3 -3
- package/dist/assets/{chunk-ATLVNIR6-_9Zaw7IP.js → chunk-ATLVNIR6-EZIDpjkm.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-Bg43tpY1.js → chunk-B4BG7PRW-B3yrge9N.js} +1 -1
- package/dist/assets/{chunk-CVBHYZKI-Brsoob-W.js → chunk-CVBHYZKI-lxEaq00s.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DX01Gov5.js → chunk-DI55MBZ5-NrI5veM7.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-Cwo9-IiR.js → chunk-EXTU4WIE-DcGAJuBg.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-Bt9icXTy.js → chunk-FMBD7UC4-CD1D2uhs.js} +1 -1
- package/dist/assets/{chunk-HN2XXSSU-BBxJMYrA.js → chunk-HN2XXSSU-DNIvfs-V.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-C6cvGHie.js → chunk-JA3XYJ7Z-B-G51Lop.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-BM-e2D_8.js → chunk-JZLCHNYA-B1QJXpkc.js} +1 -1
- package/dist/assets/{chunk-MI3HLSF2-D6we5Ftb.js → chunk-MI3HLSF2-SpVCtnNg.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-BREYOeLP.js → chunk-N4CR4FBY-DaT7rK9q.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-DwGffwWu.js → chunk-QN33PNHL-eWaiYkN_.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-Q2jlSUop.js → chunk-QXUST7PY-yCShGuH_.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-CeNfSWg4.js → chunk-QZHKN3VN-Bf2ysi2t.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-DGKPoF4U.js → chunk-S3R3BYOJ-BuT2smkb.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-Bfbjtd_W.js → chunk-TZMSLE5B-tzDl0-3S.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-CSdm65qE.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-B2-GAMOQ.js +1 -0
- package/dist/assets/{clike-O99jWPIc.js → clike-TwxwxEw_.js} +1 -1
- package/dist/assets/clojure-B8dfjAV6.js +1 -0
- package/dist/assets/cmake-D3vlGJdL.js +1 -0
- package/dist/assets/cobol-S-4I_F1W.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-CtU_48GW.js → code-block-37QAKDTI-BZ77cXM8.js} +1 -1
- package/dist/assets/coffeescript-DG-Oj54u.js +1 -0
- package/dist/assets/{column-preview-C1-l9fq3.js → column-preview-Xuel1zsI.js} +1 -1
- package/dist/assets/{command-palette-0Bx056Jf.js → command-palette-CSa-ZC8t.js} +1 -1
- package/dist/assets/{common-Qy2P7rii.js → common-Dk5VdfJt.js} +1 -1
- package/dist/assets/commonlisp-CWlOS49U.js +1 -0
- package/dist/assets/{components-CZy03693.js → components-CTKNCmC_.js} +1 -1
- package/dist/assets/{components-D9aJNSr-.js → components-DsoH1pO3.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-DWjOkKYE.js → cose-bilkent-S5V4N54A-CEx_UMjg.js} +1 -1
- package/dist/assets/crystal-CD-LQ3E-.js +1 -0
- package/dist/assets/{css-Ctj1grpW.js → css-sdrF9ahV.js} +1 -1
- package/dist/assets/cypher-oiVTIRlU.js +1 -0
- package/dist/assets/d-KaoGirPa.js +1 -0
- package/dist/assets/{dagre-6UL2VRFP-DWD6iJku.js → dagre-6UL2VRFP-Ca6G800E.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-DvZ8PZ2g.js → data-grid-overlay-editor-D-UNM6-P.js} +1 -1
- package/dist/assets/{datasource-C1JWjcmE.js → datasource-CmTCEk66.js} +1 -1
- package/dist/assets/{dependency-graph-panel-DOHj-hNc.js → dependency-graph-panel-0u1-ZaOT.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-B_Cc0ttH.js → diagram-PSM6KHXK-B6oP3YWR.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-DhI0d2dH.js → diagram-QEK2KX5R-BjsoVcta.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-cc2LNQee.js → diagram-S2PKOQOG-CmzTe5KJ.js} +1 -1
- package/dist/assets/diff-Df1QxxZl.js +1 -0
- package/dist/assets/dist-2Z1sSg1x.js +1 -0
- package/dist/assets/{dist-CbOE2rpr.js → dist-7iwSqhl8.js} +1 -1
- package/dist/assets/dist-B6zNcPeA.js +1 -0
- package/dist/assets/{dist-Dq4wQg6C.js → dist-BiTPETny.js} +1 -1
- package/dist/assets/{dist-e6kaTCKJ.js → dist-BojrNCCU.js} +1 -1
- package/dist/assets/{dist-BvZKHNvJ.js → dist-CHMkheIP.js} +1 -1
- package/dist/assets/{dist-DMSWEOfO.js → dist-D1lU2Qzi.js} +1 -1
- package/dist/assets/{dist-Cn0rcGlX.js → dist-D8QLIJ8u.js} +1 -1
- package/dist/assets/dist-DOBJtV_h.js +1 -0
- package/dist/assets/dist-DUpLnFKL.js +1 -0
- package/dist/assets/{dist-R7_s36kw.js → dist-DZaaRVnC.js} +1 -1
- package/dist/assets/{dist-C204e66A.js → dist-DZq-MBWk.js} +1 -1
- package/dist/assets/{dist-Dn_fCOGr.js → dist-Iv0YPPAU.js} +1 -1
- package/dist/assets/{dist-D4HwuQrf.js → dist-YUbAFc_i.js} +1 -1
- package/dist/assets/{dist-BVBYIAbx.js → dist-bOUvGRGG.js} +1 -1
- package/dist/assets/{dockerfile-DERk1oNL.js → dockerfile-CImncS5w.js} +1 -1
- package/dist/assets/{documentation-panel-BM7hNnyp.js → documentation-panel-CcE7aGO9.js} +1 -1
- package/dist/assets/{download-CXTuIv7r.js → download-QGh9oR1D.js} +1 -1
- package/dist/assets/dtd-Aj5m459l.js +1 -0
- package/dist/assets/dylan-CdSB1nh8.js +1 -0
- package/dist/assets/ecl-CvwsCfi6.js +1 -0
- package/dist/assets/{edit-page-Q7KKSAbL.js → edit-page-CMzqgK6j.js} +3 -3
- package/dist/assets/eiffel-Bws25dAs.js +1 -0
- package/dist/assets/elm--WkcLZ1a.js +1 -0
- package/dist/assets/{erDiagram-Q2GNP2WA-CPtVWZYn.js → erDiagram-Q2GNP2WA-CK4Kc1gP.js} +1 -1
- package/dist/assets/erlang-Ct30wW1o.js +1 -0
- package/dist/assets/{error-banner-C6aBa98y.js → error-banner-C10O4l3y.js} +1 -1
- package/dist/assets/{error-panel-BN-anQD3.js → error-panel-ChlzbfWg.js} +1 -1
- package/dist/assets/{esm-BRNC35J6.js → esm-DN_A77ya.js} +1 -1
- package/dist/assets/{factor-BbYo7zsD.js → factor-B3fhZG6W.js} +1 -1
- package/dist/assets/factor-DbSpQa-0.js +1 -0
- package/dist/assets/file-explorer-panel-8dWLD2PY.js +26 -0
- package/dist/assets/{file-icons-5G4ZC70N.js → file-icons-Cs4oXsAy.js} +1 -1
- package/dist/assets/file-name-input-g7pBBCjk.js +3 -0
- package/dist/assets/fileToBase64-Dpv4aII5.js +1 -0
- package/dist/assets/{floating-outline-DHE0ukvC.js → floating-outline-CFUSr2du.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-LeaIbfPS.js → flowDiagram-NV44I4VS-hhUTWDGs.js} +1 -1
- package/dist/assets/{focus-Crs_4nnQ.js → focus-J47a1GCq.js} +1 -1
- package/dist/assets/{form-FbNsGFA8.js → form-CdFqEqTA.js} +1 -1
- package/dist/assets/forth-BP0pXyoR.js +1 -0
- package/dist/assets/fortran-DpX_2iww.js +1 -0
- package/dist/assets/{gallery-page-C4kMatxN.js → gallery-page-TIWZFnOT.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-Bj-STLOZ.js → ganttDiagram-JELNMOA3-Dpb7hBaR.js} +1 -1
- package/dist/assets/gas-CiUR6fHB.js +1 -0
- package/dist/assets/gherkin-C9v48C48.js +1 -0
- package/dist/assets/{gitGraph-G5XIXVHT-CiMGDHpk.js → gitGraph-G5XIXVHT-Xz2NQxVt.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-B9HDL4DZ.js → gitGraphDiagram-V2S2FVAM-DHCl4EFT.js} +1 -1
- package/dist/assets/{glide-data-editor-DqqLCmqF.js → glide-data-editor-ChlIFl33.js} +4 -4
- package/dist/assets/groovy-psUnKwK-.js +1 -0
- package/dist/assets/haskell-DZHQAKUV.js +1 -0
- package/dist/assets/haxe-AOvPCF-w.js +1 -0
- package/dist/assets/{home-page-BM_BZnw7.js → home-page-HhJfA35e.js} +1 -1
- package/dist/assets/{hooks-BgTKQ8y5.js → hooks-BpoZRNxw.js} +1 -1
- package/dist/assets/{html-to-image-v-_444d3.js → html-to-image-CAiN3VHj.js} +1 -1
- package/dist/assets/idl-CSA8C1ck.js +1 -0
- package/dist/assets/index-BbBhLC0d.css +2 -0
- package/dist/assets/index-fXenSTRv.js +42 -0
- package/dist/assets/{info-VBDWY6EO-yA01qfll.js → info-VBDWY6EO-BpskktdI.js} +1 -1
- package/dist/assets/infoDiagram-HS3SLOUP-C51uJjUn.js +2 -0
- package/dist/assets/javascript-XMYUq5-t.js +1 -0
- package/dist/assets/{journeyDiagram-XKPGCS4Q-D29tj64e.js → journeyDiagram-XKPGCS4Q-CD6bTQpr.js} +1 -1
- package/dist/assets/julia-oON8zLDW.js +1 -0
- package/dist/assets/{kanban-definition-3W4ZIXB7-DStZ4tGj.js → kanban-definition-3W4ZIXB7-D3rGxlSj.js} +1 -1
- package/dist/assets/katex-DPCeZ37j.js +1 -0
- package/dist/assets/{kiosk-mode-DKb6W1WN.js → kiosk-mode-Cr9yyT7A.js} +1 -1
- package/dist/assets/{layout-x1k2voam.js → layout-D5myrs5s.js} +3 -3
- package/dist/assets/{line-j0cbFv7-.js → line-BA7eTS55.js} +1 -1
- package/dist/assets/{linear-Cof2JLCQ.js → linear-Dmb_KwjK.js} +1 -1
- package/dist/assets/livescript--BxQO5G_.js +1 -0
- package/dist/assets/{logs-panel-BWCDk8Zy.js → logs-panel-B2tW94um.js} +1 -1
- package/dist/assets/{loro_wasm_bg-DWJCS9pK.js → loro_wasm_bg-CklgjGbG.js} +1 -1
- package/dist/assets/lua-CUyaVUOv.js +1 -0
- package/dist/assets/{markdown-renderer-CbuqHMPu.js → markdown-renderer-CVd_mMPt.js} +3 -3
- package/dist/assets/mathematica-ONd8izyd.js +1 -0
- package/dist/assets/mbox-kjl3g9N-.js +1 -0
- package/dist/assets/mermaid-4DMBBIKO-BeB_2G2B.js +1 -0
- package/dist/assets/{mermaid-BfdNvRSd.js → mermaid-ByDNZESx.js} +7 -7
- package/dist/assets/{mermaid-parser.core-BQULBKwL.js → mermaid-parser.core-CzmbMcI0.js} +2 -2
- package/dist/assets/{mhchem-BNLsaqjJ.js → mhchem-B4Y0i8Fp.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-Cy9nt356.js → mindmap-definition-VGOIOE7T-CmLdKdIH.js} +1 -1
- package/dist/assets/mirc-BZ6TyuOO.js +1 -0
- package/dist/assets/mllike-Dxt2U6MQ.js +1 -0
- package/dist/assets/modelica-B9sdhdtj.js +1 -0
- package/dist/assets/mscgen-5e5Z5trn.js +1 -0
- package/dist/assets/mumps-BUfWDrRe.js +1 -0
- package/dist/assets/{name-cell-input-DoYtA-nF.js → name-cell-input-DDQOQSsh.js} +1 -1
- package/dist/assets/nsis-Dq7T79DJ.js +1 -0
- package/dist/assets/{nsis-Cr8jf68z.js → nsis-QuE155sg.js} +1 -1
- package/dist/assets/ntriples-Dqzi7kwu.js +1 -0
- package/dist/assets/{number-overlay-editor-8-GuvfJX.js → number-overlay-editor-C8YnP6Ac.js} +1 -1
- package/dist/assets/octave-v4IgjFm5.js +1 -0
- package/dist/assets/{ordinal-K0JYqmCT.js → ordinal-C9PZ4yw5.js} +1 -1
- package/dist/assets/{outline-panel-C5bTOsj4.js → outline-panel-BuTQis3o.js} +1 -1
- package/dist/assets/oz-BtUsXhbc.js +1 -0
- package/dist/assets/{packages-panel-CHVjLKJK.js → packages-panel-CVu8Cpkz.js} +1 -1
- package/dist/assets/{packet-DYOGHKS2-D9yUvksZ.js → packet-DYOGHKS2-BqwwD9JS.js} +1 -1
- package/dist/assets/{panels-D0bfHEhi.js → panels-COAp5_gz.js} +1 -1
- package/dist/assets/pascal-DV7k6vJ0.js +1 -0
- package/dist/assets/perl-Bz7YaP_R.js +1 -0
- package/dist/assets/{pie-VRWISCQL-Cz1iTD2y.js → pie-VRWISCQL-BqNfdcWg.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-CqhovvcK.js → pieDiagram-ADFJNKIX-MH-0tvkn.js} +1 -1
- package/dist/assets/pig-BQWmcOEQ.js +1 -0
- package/dist/assets/powershell-CmIFs71i.js +1 -0
- package/dist/assets/{process-output-CKd9tbdL.js → process-output-DSqjZYr-.js} +1 -1
- package/dist/assets/properties-D7F2Eomu.js +1 -0
- package/dist/assets/protobuf-BMELuvny.js +1 -0
- package/dist/assets/pug-C2KbP_v3.js +1 -0
- package/dist/assets/{pug-CKg66ZCy.js → pug-NA-6TsNe.js} +1 -1
- package/dist/assets/puppet-C7MviiPj.js +1 -0
- package/dist/assets/python-BUl8uFIl.js +1 -0
- package/dist/assets/q-B5bIbNKB.js +1 -0
- package/dist/assets/{quadrantDiagram-AYHSOK5B-BNyiC3hL.js → quadrantDiagram-AYHSOK5B-BSw-Ouba.js} +1 -1
- package/dist/assets/r-B0lU_x8o.js +1 -0
- package/dist/assets/{radar-ZZBFDIW7-y2-V58qq.js → radar-ZZBFDIW7-CYyEWqrT.js} +1 -1
- package/dist/assets/{radio-group-BI3wOhfc.js → radio-group-CpHTexlq.js} +1 -1
- package/dist/assets/{react-vega-SibldZnp.js → react-vega-B30MPQ4_.js} +1 -1
- package/dist/assets/{react-vega-C1LnPwEN.js → react-vega-CXAF6OHL.js} +1 -1
- package/dist/assets/{readonly-python-code-CaKJ84fy.js → readonly-python-code-DOXF2p8K.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-U4CoEx7e.js → requirementDiagram-UZGBJVZJ-BtGFP-o9.js} +1 -1
- package/dist/assets/{reveal-component-CZjszfUY.js → reveal-component-CJYRD8Yf.js} +1 -1
- package/dist/assets/rpm-BqQ3VFpY.js +1 -0
- package/dist/assets/ruby-AFh8QoqR.js +1 -0
- package/dist/assets/{run-page-tVelC3Sm.js → run-page-CTQJzZGR.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-BXgCc5j4.js → sankeyDiagram-TZEHDZUN-yIdYlc6x.js} +1 -1
- package/dist/assets/sas-CeRTI9sn.js +1 -0
- package/dist/assets/scheme-D0VcE_o1.js +1 -0
- package/dist/assets/{scratchpad-panel-DB8GmXPG.js → scratchpad-panel-SgUSM06x.js} +1 -1
- package/dist/assets/{secrets-panel-DaR50P_m.js → secrets-panel-B8CbRNMo.js} +1 -1
- package/dist/assets/semaphore-QJCD9q3h.js +1 -0
- package/dist/assets/{sequenceDiagram-WL72ISMW-CB8apKmu.js → sequenceDiagram-WL72ISMW-DQwYuLw4.js} +1 -1
- package/dist/assets/{session-panel-DBKRhLd_.js → session-panel-DHfR6tDv.js} +1 -1
- package/dist/assets/shell-BBh9RTgS.js +1 -0
- package/dist/assets/sieve-BSX0MHaT.js +1 -0
- package/dist/assets/smalltalk-PvrpLgKW.js +1 -0
- package/dist/assets/{snippets-panel-BvuRa1mc.js → snippets-panel-CGs_ME5h.js} +1 -1
- package/dist/assets/sparql-CXsmb8zq.js +1 -0
- package/dist/assets/{src-nKy6a3tt.js → src-Cf4NnJCp.js} +1 -1
- package/dist/assets/state-B_kYpAQh.js +3 -0
- package/dist/assets/{state-DgRSUIT8.js → state-DzJiyfWW.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-3YqeHe0_.js → stateDiagram-FKZM4ZOC-CseMlyhB.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-Bpp9WfFj.js +1 -0
- package/dist/assets/{step-BE8c2ivx.js → step-CVy5FnKg.js} +1 -1
- package/dist/assets/stylus-B60bUBy2.js +1 -0
- package/dist/assets/swift-BwnHGvoR.js +1 -0
- package/dist/assets/tcl-Bj8phnhq.js +1 -0
- package/dist/assets/{terminal-zehb39z5.js → terminal-bb566dQu.js} +1 -1
- package/dist/assets/{textarea-GPxmW3rS.js → textarea-bAp21zYj.js} +1 -1
- package/dist/assets/textile-WPCmEeGb.js +1 -0
- package/dist/assets/{time-C12vLLcl.js → time-RwUekUwP.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-DZQqxPSn.js → timeline-definition-IT6M3QCI-Cac1cr1H.js} +1 -1
- package/dist/assets/toml-Cdfp0vaG.js +1 -0
- package/dist/assets/{tracing-CVQn241p.js → tracing-HakOQiQR.js} +1 -1
- package/dist/assets/{tracing-panel-TnogJs00.js → tracing-panel-eas_Nc-b.js} +2 -2
- package/dist/assets/{treemap-GDKQZRPO-C139r55s.js → treemap-GDKQZRPO-Bimjb3pR.js} +1 -1
- package/dist/assets/troff-D4suUzlg.js +1 -0
- package/dist/assets/ttcn-CvD_6RGm.js +1 -0
- package/dist/assets/ttcn-cfg-BX59kgnW.js +1 -0
- package/dist/assets/turtle-midFOTTV.js +1 -0
- package/dist/assets/{useCellActionButton-C8PCItmw.js → useCellActionButton-CHLJURZ7.js} +1 -1
- package/dist/assets/{useDeleteCell-DMZGFMOB.js → useDeleteCell-GFhvGBJ7.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-Jnl7B-vS.js → useDependencyPanelTab-DHd7_0b9.js} +1 -1
- package/dist/assets/{useNotebookActions-Bfp8EPmq.js → useNotebookActions-CrtC0jVZ.js} +1 -1
- package/dist/assets/{useRunCells-BMgfN_OV.js → useRunCells-RJeImyCn.js} +1 -1
- package/dist/assets/{useSplitCell-B5YK7yVe.js → useSplitCell-BRZ3fmLD.js} +1 -1
- package/dist/assets/vb-CSNH0UHQ.js +1 -0
- package/dist/assets/vbscript-DTgXfl5y.js +1 -0
- package/dist/assets/vega-component-Bq0lrkG7.js +1 -0
- package/dist/assets/velocity-CKgzALh9.js +1 -0
- package/dist/assets/verilog-NDqaS3bW.js +1 -0
- package/dist/assets/vhdl-BibQgFNM.js +1 -0
- package/dist/assets/webidl-BjqVurO-.js +1 -0
- package/dist/assets/xquery-DQLXMdMd.js +1 -0
- package/dist/assets/{xychartDiagram-PRI3JC2R-CmNNcgCM.js → xychartDiagram-PRI3JC2R-DwmHTbm4.js} +1 -1
- package/dist/assets/yacas-DlkZlCdY.js +1 -0
- package/dist/assets/z80-YKwwCjvZ.js +1 -0
- package/dist/index.html +31 -30
- package/package.json +1 -1
- package/src/components/data-table/TableTopBar.tsx +5 -1
- package/src/components/data-table/data-table.tsx +5 -0
- package/src/components/data-table/download-policy/atoms.ts +10 -0
- package/src/components/data-table/export-actions.tsx +31 -4
- package/src/components/editor/file-tree/requesting-tree.tsx +27 -25
- package/src/components/editor/file-tree/upload.tsx +23 -24
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +3 -3
- package/src/core/codemirror/markdown/commands.ts +1 -2
- package/src/core/network/requests-network.ts +21 -3
- package/src/core/network/types.ts +12 -1
- package/src/core/wasm/bridge.ts +14 -1
- package/src/plugins/core/__test__/sanitize.test.ts +8 -0
- package/src/plugins/impl/DataTablePlugin.tsx +12 -0
- package/src/plugins/impl/TabsPlugin.tsx +35 -7
- package/src/plugins/impl/__tests__/TabsPlugin.test.tsx +154 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +6 -0
- package/src/plugins/impl/vega/resolve-data.ts +8 -1
- package/src/plugins/layout/__test__/MermaidPlugin.test.ts +50 -0
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +11 -1
- package/src/plugins/layout/mermaid/mermaid.tsx +7 -3
- package/src/utils/__tests__/semaphore.test.ts +218 -0
- package/src/utils/fileToBase64.ts +8 -7
- package/src/utils/semaphore.ts +88 -0
- package/dist/assets/LazyAnyLanguageCodeMirror-BF3xpDgO.js +0 -2
- package/dist/assets/apl-m-AMVo9Q.js +0 -1
- package/dist/assets/asciiarmor-BCgPMx-s.js +0 -1
- package/dist/assets/asn1-f2_lxsgc.js +0 -1
- package/dist/assets/brainfuck-ZYebo2B9.js +0 -1
- package/dist/assets/channel-CWEEnT6g.js +0 -1
- package/dist/assets/chunk-55IACEB6-DD051KDZ.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-CBbpzZPu.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-B0cWCuuo.js +0 -1
- package/dist/assets/clojure-NE6UT6b9.js +0 -1
- package/dist/assets/cmake-7TIUAxVu.js +0 -1
- package/dist/assets/cobol-BdI6-uBH.js +0 -1
- package/dist/assets/coffeescript-CLx5m4GS.js +0 -1
- package/dist/assets/commonlisp-8d9AwdCm.js +0 -1
- package/dist/assets/crystal-Bn-cOTHZ.js +0 -1
- package/dist/assets/cypher-DnT9gfY3.js +0 -1
- package/dist/assets/d-DCjbmG72.js +0 -1
- package/dist/assets/diff-DtVdhdPz.js +0 -1
- package/dist/assets/dist-BkhaSQrg.js +0 -1
- package/dist/assets/dist-_KQbcsP1.js +0 -1
- package/dist/assets/dist-bvHsEZ9m.js +0 -1
- package/dist/assets/dist-jLyLmWUE.js +0 -1
- package/dist/assets/dtd-CHKGQo-k.js +0 -1
- package/dist/assets/dylan-DKXsKw9e.js +0 -1
- package/dist/assets/ecl-BJuToLkm.js +0 -1
- package/dist/assets/eiffel-Bs0gRCeB.js +0 -1
- package/dist/assets/elm-BXUbhN4m.js +0 -1
- package/dist/assets/erlang-B9b7RAaI.js +0 -1
- package/dist/assets/factor-C2NWkG3V.js +0 -1
- package/dist/assets/file-explorer-panel-Y0zOwZxs.js +0 -26
- package/dist/assets/file-name-input-C70pv8AE.js +0 -3
- package/dist/assets/fileToBase64-Bzn96tYq.js +0 -1
- package/dist/assets/forth-DAh7UX6C.js +0 -1
- package/dist/assets/fortran-Dy64-0b5.js +0 -1
- package/dist/assets/gas-DC-7PUFB.js +0 -1
- package/dist/assets/gherkin-ByiMyVl5.js +0 -1
- package/dist/assets/groovy-DaM0RAwa.js +0 -1
- package/dist/assets/haskell-BwRtIbXW.js +0 -1
- package/dist/assets/haxe-DFGSCjmC.js +0 -1
- package/dist/assets/idl-Ip8qszMi.js +0 -1
- package/dist/assets/index-DH5UUBE4.css +0 -2
- package/dist/assets/index-g2qQV71h.js +0 -42
- package/dist/assets/infoDiagram-HS3SLOUP-BDcw9LMK.js +0 -2
- package/dist/assets/javascript-DmUu6wxV.js +0 -1
- package/dist/assets/julia-C8K-9kxt.js +0 -1
- package/dist/assets/katex-S9z-JFdU.js +0 -1
- package/dist/assets/livescript-B3MfBDE2.js +0 -1
- package/dist/assets/lua-B2YpVx0h.js +0 -1
- package/dist/assets/mathematica-D9tSC-hw.js +0 -1
- package/dist/assets/mbox-CjoMCyMH.js +0 -1
- package/dist/assets/mermaid-4DMBBIKO-gHC2PS1m.js +0 -1
- package/dist/assets/mirc-DvJdMBLZ.js +0 -1
- package/dist/assets/mllike-5ykSeapn.js +0 -1
- package/dist/assets/modelica-laYOX8Zo.js +0 -1
- package/dist/assets/mscgen-z_sYErek.js +0 -1
- package/dist/assets/mumps-BwcCoPkA.js +0 -1
- package/dist/assets/nsis-CpSPdWjV.js +0 -1
- package/dist/assets/ntriples-D2ki9JZ6.js +0 -1
- package/dist/assets/octave-D817mWs9.js +0 -1
- package/dist/assets/oz-3GS03IG4.js +0 -1
- package/dist/assets/pascal-C08wXab2.js +0 -1
- package/dist/assets/perl-Ija-iETI.js +0 -1
- package/dist/assets/pig-BlBD3yVJ.js +0 -1
- package/dist/assets/powershell-CjOQ_PjD.js +0 -1
- package/dist/assets/properties-5yVGVBrw.js +0 -1
- package/dist/assets/protobuf-hlm5v2rk.js +0 -1
- package/dist/assets/pug-DifRb20b.js +0 -1
- package/dist/assets/puppet-BpFPuj45.js +0 -1
- package/dist/assets/python-B_AEFhuO.js +0 -1
- package/dist/assets/q-BzDxfEQq.js +0 -1
- package/dist/assets/r-BJ9VYyYa.js +0 -1
- package/dist/assets/rpm-Ez4HwV9T.js +0 -1
- package/dist/assets/ruby-BcHOM0EI.js +0 -1
- package/dist/assets/sas-Qmf5gHIU.js +0 -1
- package/dist/assets/scheme-Ctib9V77.js +0 -1
- package/dist/assets/shell-BtgVCAhn.js +0 -1
- package/dist/assets/sieve-CMsTkuH0.js +0 -1
- package/dist/assets/smalltalk-BKSCdMTS.js +0 -1
- package/dist/assets/sparql-TK6HapG4.js +0 -1
- package/dist/assets/state-CjlRDG08.js +0 -3
- package/dist/assets/stateDiagram-v2-4FDKWEC3-Dfvjjqh4.js +0 -1
- package/dist/assets/stylus-C8FKVvgQ.js +0 -1
- package/dist/assets/swift-D7BZKS_y.js +0 -1
- package/dist/assets/tcl-DFrjfFmM.js +0 -1
- package/dist/assets/textile-Bj913nF7.js +0 -1
- package/dist/assets/toml-B6qgmS36.js +0 -1
- package/dist/assets/troff-CysSpyUG.js +0 -1
- package/dist/assets/ttcn-DG1k5i1B.js +0 -1
- package/dist/assets/ttcn-cfg-p1jV7x_I.js +0 -1
- package/dist/assets/turtle-DSkxUncB.js +0 -1
- package/dist/assets/vb-BIvYC4My.js +0 -1
- package/dist/assets/vbscript-Coxg2EVQ.js +0 -1
- package/dist/assets/vega-component-DOyQwlmD.js +0 -1
- package/dist/assets/velocity-Cy90c7hC.js +0 -1
- package/dist/assets/verilog-CTtn3HA0.js +0 -1
- package/dist/assets/vhdl-D3r3mwOF.js +0 -1
- package/dist/assets/webidl-CHPMhkWI.js +0 -1
- package/dist/assets/xquery-d-YlNlXH.js +0 -1
- package/dist/assets/yacas-BfZ0gs5_.js +0 -1
- package/dist/assets/z80-cYJ4lyZA.js +0 -1
- /package/dist/assets/{ImageComparisonComponent-2VO41-VE.js → ImageComparisonComponent-MKB-qBjQ.js} +0 -0
- /package/dist/assets/{Inputs-BdyX096j.js → Inputs-NeZ9OMUu.js} +0 -0
- /package/dist/assets/{Plot-IawheWsD.js → Plot-KSPp-GdN.js} +0 -0
- /package/dist/assets/{apl-T0uH_RjM.js → apl-DHQPYmx2.js} +0 -0
- /package/dist/assets/{array-BCwZq3ts.js → array-Cf4PUXPA.js} +0 -0
- /package/dist/assets/{asciiarmor-D3ol7c2G.js → asciiarmor-fnQAw8T8.js} +0 -0
- /package/dist/assets/{asn1-DA-fXXsk.js → asn1-5lb7I37s.js} +0 -0
- /package/dist/assets/{asterisk-Cy-53Fu-.js → asterisk-XerxOHb_.js} +0 -0
- /package/dist/assets/{azure-ZuB1zQ8Q.js → azure-C2Di2emT.js} +0 -0
- /package/dist/assets/{blob-D-eV0cU3.js → blob-Daju1h1M.js} +0 -0
- /package/dist/assets/{brainfuck-exn1QR7H.js → brainfuck-D30bRgvC.js} +0 -0
- /package/dist/assets/{card-BsOjr9wU.js → card-ICvk7-qa.js} +0 -0
- /package/dist/assets/{chunk-4F5CHEZ2-BBsStyPF.js → chunk-4F5CHEZ2-CRKjiogH.js} +0 -0
- /package/dist/assets/{chunk-B2363JML-CPCjJ6tH.js → chunk-B2363JML-DvPUNzRx.js} +0 -0
- /package/dist/assets/{chunk-DR5Q36YT-DpSMafKt.js → chunk-DR5Q36YT-DrxpR6Mz.js} +0 -0
- /package/dist/assets/{chunk-FRFDVMJY-D6StbPqE.js → chunk-FRFDVMJY-DpWfc7R9.js} +0 -0
- /package/dist/assets/{chunk-PL6DKKU2-x3Qoia3Y.js → chunk-PL6DKKU2-D7_8iK_E.js} +0 -0
- /package/dist/assets/{chunk-SJTYNZTY-BNaCydHS.js → chunk-SJTYNZTY-DwmVeUIB.js} +0 -0
- /package/dist/assets/{chunk-TQ3KTPDO-DfYTN8Ct.js → chunk-TQ3KTPDO-BdfwTgi0.js} +0 -0
- /package/dist/assets/{chunk-UMXZTB3W-DsE6dCbX.js → chunk-UMXZTB3W-BZR4zVXt.js} +0 -0
- /package/dist/assets/{clear-button-DBrTU3uL.js → clear-button-DJUQ_tmP.js} +0 -0
- /package/dist/assets/{click-outside-container-BXzp0MYr.js → click-outside-container-Npdlddni.js} +0 -0
- /package/dist/assets/{clike-BK27e5qn.js → clike-jZeb2kFn.js} +0 -0
- /package/dist/assets/{clojure-Df1U5nhC.js → clojure-C0pkR8m2.js} +0 -0
- /package/dist/assets/{cmake-DrCf0yvp.js → cmake-DlvFtk_M.js} +0 -0
- /package/dist/assets/{cobol-BWxHqof4.js → cobol-C_yb45mr.js} +0 -0
- /package/dist/assets/{coffeescript-nKvg8y_U.js → coffeescript-DBK0AeMT.js} +0 -0
- /package/dist/assets/{colors-CI3VyX7X.js → colors-DUsH-HF1.js} +0 -0
- /package/dist/assets/{common-keywords-CU-S2Vqm.js → common-keywords-D2VmoaPb.js} +0 -0
- /package/dist/assets/{commonlisp-Dm562cBV.js → commonlisp-Bo8hOdn-.js} +0 -0
- /package/dist/assets/{crystal-CrCmK2Cb.js → crystal-DYrQEMVi.js} +0 -0
- /package/dist/assets/{css-jpfGFPDE.js → css-zh47N2UC.js} +0 -0
- /package/dist/assets/{cypher-RQ5M28al.js → cypher-BWPAHm69.js} +0 -0
- /package/dist/assets/{cytoscape.esm-BbAjzIsa.js → cytoscape.esm-B7Zr-PlQ.js} +0 -0
- /package/dist/assets/{d-CNQ_nPqU.js → d-CMuL95tt.js} +0 -0
- /package/dist/assets/{diff-DOODcY7A.js → diff-oor_HZ51.js} +0 -0
- /package/dist/assets/{dist-CsEqrZxx.js → dist-1sgFrolC.js} +0 -0
- /package/dist/assets/{dist-DBBYmRY4.js → dist-B847wb8t.js} +0 -0
- /package/dist/assets/{dist-_qPWf6sD.js → dist-BDZFwK9_.js} +0 -0
- /package/dist/assets/{dist-ooLAQ9IK.js → dist-BjkXqMhR.js} +0 -0
- /package/dist/assets/{dist-DggusHaA.js → dist-Bu99ARwH.js} +0 -0
- /package/dist/assets/{dist-HW7R98td.js → dist-Bxj5sO2I.js} +0 -0
- /package/dist/assets/{dist-D6wwIjcW.js → dist-CBX4gLSR.js} +0 -0
- /package/dist/assets/{dist-CEUFTp7U.js → dist-CPepgudT.js} +0 -0
- /package/dist/assets/{dist-CGDn0y-i.js → dist-CQG39nVX.js} +0 -0
- /package/dist/assets/{dist-Cmcbyg5X.js → dist-CSOCJn9h.js} +0 -0
- /package/dist/assets/{dist-DxxvVPQH.js → dist-CpSELpRR.js} +0 -0
- /package/dist/assets/{dist-B96NwXcp.js → dist-DLY3MFt_.js} +0 -0
- /package/dist/assets/{dist-DS5RCKZO.js → dist-D_yqofzt.js} +0 -0
- /package/dist/assets/{dist-rzeRelEY.js → dist-DaXyrkOa.js} +0 -0
- /package/dist/assets/{dist-9g-_Ln9y.js → dist-DdITFgCr.js} +0 -0
- /package/dist/assets/{dist-DCqWIRLq.js → dist-DsbE_iBm.js} +0 -0
- /package/dist/assets/{dist-_XomGjg6.js → dist-GYoBJCzF.js} +0 -0
- /package/dist/assets/{dist-Dw9UX7x1.js → dist-q4pwbvzW.js} +0 -0
- /package/dist/assets/{dtd-CRYKjxdR.js → dtd-Fe_Eikw6.js} +0 -0
- /package/dist/assets/{duckdb-keywords-CR9f4wu5.js → duckdb-keywords-qEANwaB-.js} +0 -0
- /package/dist/assets/{dylan-Bg0sO2y3.js → dylan-DjUZAjRK.js} +0 -0
- /package/dist/assets/{ebnf-BdwTqLUx.js → ebnf-BbpZiR1i.js} +0 -0
- /package/dist/assets/{ecl-DaBeV7OZ.js → ecl-qgyT1LqI.js} +0 -0
- /package/dist/assets/{eiffel-BtJc6fqQ.js → eiffel-Dgulx8rf.js} +0 -0
- /package/dist/assets/{elm-D9Rly7Qq.js → elm-BvFY4GJb.js} +0 -0
- /package/dist/assets/{empty-state-CsVQSqKA.js → empty-state-vCWg-_A9.js} +0 -0
- /package/dist/assets/{erlang-FZMRuv-7.js → erlang-Ba0XOLlj.js} +0 -0
- /package/dist/assets/{errors-TZBmrJmc.js → errors-CPlNr33a.js} +0 -0
- /package/dist/assets/{esm-D_nSG7uo.js → esm-C9WujutX.js} +0 -0
- /package/dist/assets/{fcl-BFWIADMy.js → fcl-CvYyfPhf.js} +0 -0
- /package/dist/assets/{formatting-TmuwpwTs.js → formatting-Chn6WhRe.js} +0 -0
- /package/dist/assets/{forth-C6jh4lHA.js → forth-gbBFxz8f.js} +0 -0
- /package/dist/assets/{fortran-DuxTe5qi.js → fortran-CXijpPbh.js} +0 -0
- /package/dist/assets/{gas-D7RWbiQ0.js → gas-CnHGSLCd.js} +0 -0
- /package/dist/assets/{gherkin-DV4l4nlf.js → gherkin-DfEZpSxY.js} +0 -0
- /package/dist/assets/{groovy-Ij7mXzwd.js → groovy-9JiNA9gq.js} +0 -0
- /package/dist/assets/{haskell-BT_ZNgUJ.js → haskell-CKr_RZFK.js} +0 -0
- /package/dist/assets/{haxe-DYYwGmM8.js → haxe-DsAAHfaR.js} +0 -0
- /package/dist/assets/{http-CgzOAOXj.js → http-BJwmEMko.js} +0 -0
- /package/dist/assets/{idl-CjBvIccU.js → idl-Djz72z1a.js} +0 -0
- /package/dist/assets/{init-DE_uL9Ns.js → init-DRQmrFIb.js} +0 -0
- /package/dist/assets/{javascript-DQz7szA1.js → javascript-CsBr0q2-.js} +0 -0
- /package/dist/assets/{julia-U0NSUEwm.js → julia-BCYfl68O.js} +0 -0
- /package/dist/assets/{katex-M9SX-Gs-.js → katex-BywUFgaS.js} +0 -0
- /package/dist/assets/{links-iy4RlM-h.js → links-BhX7oUFH.js} +0 -0
- /package/dist/assets/{livescript-D7jeebX7.js → livescript-BEw7FNJP.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-Bu4Ofw1K.js → loro_wasm_bg-BArxhAm3.js} +0 -0
- /package/dist/assets/{lua-CT4vrRvN.js → lua-DqxHXOsz.js} +0 -0
- /package/dist/assets/{marimo-icons-BSB-Z_W3.js → marimo-icons-Dk6YhPWV.js} +0 -0
- /package/dist/assets/{math-Bf0RgaKx.js → math-BJjKGmt3.js} +0 -0
- /package/dist/assets/{mathematica-DmzlinOc.js → mathematica-Do-octY0.js} +0 -0
- /package/dist/assets/{mbox-DYDL20A1.js → mbox-VgrgGytk.js} +0 -0
- /package/dist/assets/{mirc-6LiBC6Dw.js → mirc-DkD5mNIp.js} +0 -0
- /package/dist/assets/{mllike-orSu1SHG.js → mllike-C8Ah4kKN.js} +0 -0
- /package/dist/assets/{modelica-BsibU-7c.js → modelica-2q7w6nLE.js} +0 -0
- /package/dist/assets/{mscgen-vX4NsSXf.js → mscgen-BRqvO7u4.js} +0 -0
- /package/dist/assets/{multi-icon-DQxqgfM2.js → multi-icon-BvuxcR2m.js} +0 -0
- /package/dist/assets/{mumps-DIZYQE11.js → mumps-CjtiTT1a.js} +0 -0
- /package/dist/assets/{nginx-CFpObAqg.js → nginx-JMUOT8EG.js} +0 -0
- /package/dist/assets/{node-sql-parser-B8vXamqL.js → node-sql-parser-TdBo37ty.js} +0 -0
- /package/dist/assets/{ntriples-CwlUIE0o.js → ntriples-4lauqsM6.js} +0 -0
- /package/dist/assets/{octave-BWtN_wao.js → octave-A2kFK0nR.js} +0 -0
- /package/dist/assets/{oz-CJMVKlqL.js → oz-CvXDMSbl.js} +0 -0
- /package/dist/assets/{panel-context-B3J07LRC.js → panel-context-D-qi_oxP.js} +0 -0
- /package/dist/assets/{pascal-C9rPtth-.js → pascal-6Jinj26u.js} +0 -0
- /package/dist/assets/{path-LDcaQ64B.js → path-D7fidI_g.js} +0 -0
- /package/dist/assets/{perl-CF7pKLbl.js → perl-CXauYQdN.js} +0 -0
- /package/dist/assets/{pig-Bu0nn8JT.js → pig-Dl0QLQI6.js} +0 -0
- /package/dist/assets/{powershell-Bzwpi8yQ.js → powershell-6bdy_rHW.js} +0 -0
- /package/dist/assets/{properties-Cfh_Lj0j.js → properties-p1rx3aF7.js} +0 -0
- /package/dist/assets/{protobuf-Vz3fs9Hb.js → protobuf-BZ6p9Xh_.js} +0 -0
- /package/dist/assets/{puppet-JwSHf4DX.js → puppet-CjdIRV7D.js} +0 -0
- /package/dist/assets/{python-BRHQZrcc.js → python-uzyJYIWU.js} +0 -0
- /package/dist/assets/{q-DWFQ7YI_.js → q-CfD3i9uI.js} +0 -0
- /package/dist/assets/{r-DHkTNFL2.js → r-JyJdYHQB.js} +0 -0
- /package/dist/assets/{request-registry-BwzANGxx.js → request-registry-5ELz5pd2.js} +0 -0
- /package/dist/assets/{requests-BqcqF00P.js → requests-QKoDeQkn.js} +0 -0
- /package/dist/assets/{rpm-zbaZz_dk.js → rpm-DuGPfDyX.js} +0 -0
- /package/dist/assets/{ruby-COvM5Bj_.js → ruby-CA1TzLxZ.js} +0 -0
- /package/dist/assets/{runs-5odJFrfi.js → runs-DRld30N_.js} +0 -0
- /package/dist/assets/{sas-Be8P6y_s.js → sas-BJPWZC7M.js} +0 -0
- /package/dist/assets/{scheme-B9Zors0b.js → scheme-IRagAY3r.js} +0 -0
- /package/dist/assets/{share-DIVpiHPe.js → share-CqnSBwZy.js} +0 -0
- /package/dist/assets/{shell-CaaQwZ-W.js → shell-BVpF3W_J.js} +0 -0
- /package/dist/assets/{sieve-CdflT_3W.js → sieve-BSfPMeZl.js} +0 -0
- /package/dist/assets/{simple-mode-BJAT_N3M.js → simple-mode-BmS_AmGQ.js} +0 -0
- /package/dist/assets/{smalltalk-CRO88y3z.js → smalltalk-CkHVehky.js} +0 -0
- /package/dist/assets/{solr-BkyoAXqg.js → solr-BHjX6hxO.js} +0 -0
- /package/dist/assets/{sparql-DEker8ZS.js → sparql-CmKKjr-f.js} +0 -0
- /package/dist/assets/{spreadsheet-7FZkhkVo.js → spreadsheet-ColK3G9J.js} +0 -0
- /package/dist/assets/{sql-BNnXxKXA.js → sql-BfkgiLSh.js} +0 -0
- /package/dist/assets/{src-CmKhyEBC.js → src-HwYBNPfa.js} +0 -0
- /package/dist/assets/{state-Z-H4o98V.js → state-BV_qjCwT.js} +0 -0
- /package/dist/assets/{stylus-DAJwnVOa.js → stylus-D28PuRsm.js} +0 -0
- /package/dist/assets/{swift-D5F-FU3-.js → swift-D-jfpPuv.js} +0 -0
- /package/dist/assets/{swiper-component-B-P7FNP9.js → swiper-component-CBSZ9l9W.js} +0 -0
- /package/dist/assets/{tcl-DirNbhYm.js → tcl-BrQdCDVA.js} +0 -0
- /package/dist/assets/{textile-DhHo4rKl.js → textile-DXBc8HMq.js} +0 -0
- /package/dist/assets/{tiddlywiki-DE5lnTl3.js → tiddlywiki-DzM1IR9M.js} +0 -0
- /package/dist/assets/{tiki-Dt9oCY2i.js → tiki-DI4TiGi6.js} +0 -0
- /package/dist/assets/{timer-CIInKAPS.js → timer-ffBO1paY.js} +0 -0
- /package/dist/assets/{toml-CrP9HWVu.js → toml-ClSouHPE.js} +0 -0
- /package/dist/assets/{treemap-BKxvGXqJ.js → treemap-CZF0Enj1.js} +0 -0
- /package/dist/assets/{troff-BWD1WiE0.js → troff-BGDyQn9x.js} +0 -0
- /package/dist/assets/{ttcn-CQzcRj0D.js → ttcn-De1OdISX.js} +0 -0
- /package/dist/assets/{ttcn-cfg-jzTcqwRW.js → ttcn-cfg-CQMSrhCz.js} +0 -0
- /package/dist/assets/{turtle-BAqH2D2z.js → turtle-DNhfxysg.js} +0 -0
- /package/dist/assets/{types-z6Sk3JCV.js → types-Bhw3Hco_.js} +0 -0
- /package/dist/assets/{useInterval-CG264TRB.js → useInterval-CvFz96h2.js} +0 -0
- /package/dist/assets/{vb-CrUpzy4g.js → vb-BX7-Md9G.js} +0 -0
- /package/dist/assets/{vbscript-DEuHZ0Y0.js → vbscript-DNMzJOTU.js} +0 -0
- /package/dist/assets/{velocity-D99sTvXl.js → velocity-viirwPm7.js} +0 -0
- /package/dist/assets/{verilog-XWBMMjwd.js → verilog-CZguTLBV.js} +0 -0
- /package/dist/assets/{vhdl-BAGmVXDV.js → vhdl-CAEhCBOl.js} +0 -0
- /package/dist/assets/{web-vitals-BaJPM15X.js → web-vitals-CBsQ2DM_.js} +0 -0
- /package/dist/assets/{webidl-xagG_7hd.js → webidl-BNJg_7gX.js} +0 -0
- /package/dist/assets/{write-secret-modal-BFLUPDlo.js → write-secret-modal-D8Sww7eA.js} +0 -0
- /package/dist/assets/{ws-CtTwmdal.js → ws-BZQmQxZ7.js} +0 -0
- /package/dist/assets/{xquery-B8Mguhly.js → xquery-CGV_r322.js} +0 -0
- /package/dist/assets/{yacas-XW2NxGKw.js → yacas-uRzw7z7m.js} +0 -0
- /package/dist/assets/{z80-DhICfTcL.js → z80-CBK8t-9T.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as ze}from"./chunk-LvLJmgfZ.js";import{d as $,l as ht,p as mt,u as pe}from"./useEvent-D91BmmQi.js";import{t as pt}from"./react-Bj1aDYRI.js";import{Ai as ue,Dn as ut,E as We,En as ft,On as xt,Ur as yt,Xt as bt,_ as kt,dr as wt,gr as jt,h as _e,jn as gt,lt as Ne,ot as vt,pr as Ct,st as zt,t as Wt,xr as _t}from"./cells-DAxz8J5R.js";import{t as M}from"./compiler-runtime-B3qBwwSJ.js";import{n as Nt,x as Mt}from"./ai-model-dropdown-B-9yxYM4.js";import{_ as H,d as Me}from"./useEventListener-BR0C1MaI.js";import{y as St}from"./utils-BrXijSdZ.js";import{n as S,t as Se}from"./constants-DMpttj8Q.js";import{T as ae,n as Dt,o as At,v as Pt,w as It}from"./config-CPqw1wUv.js";import{n as Lt}from"./switch-BvybnC9P.js";import{t as Et}from"./jsx-runtime-BqBOg78p.js";import{o as Tt}from"./alert-dialog-BGBdrcqJ.js";import{a as Rt,c as fe,o as xe,s as $t}from"./popover-UExmgBsf.js";import{a as Ht,c as Ut,i as qt,n as Ot,r as Bt,s as Ft,t as Vt}from"./select-5i7URBEn.js";import{_t as Yt}from"./JsonOutput-BalWi8Qq.js";import{c as De,d as ye,n as Kt,o as Gt,r as be,t as Jt}from"./download-CXTuIv7r.js";import{t as Ae}from"./tooltip-Gcwqb_SK.js";import{r as Pe,t as U}from"./button-D9nb17Rw.js";import{i as Xt,r as Qt,t as Ie}from"./strings-md4mFbOQ.js";import{r as q}from"./requests-DIwGYs0l.js";import{t as g}from"./createLucideIcon-D5guW7EU.js";import{F as Zt,I as ea,L as Le,P as ta,R as aa,a as Ee,i as Te,u as Re}from"./layout-x1k2voam.js";import{t as ke}from"./check-BH35Ndha.js";import{n as oa}from"./maps-C48Oksn0.js";import{r as na}from"./useCellActionButton-C8PCItmw.js";import{t as $e}from"./copy-BwrPA9zQ.js";import{t as sa}from"./eye-off-n1Li95bE.js";import{t as oe}from"./file-BrdxGLRX.js";import{t as la}from"./github-BKS_2Qwn.js";import{u as ia}from"./form-FbNsGFA8.js";import{n as ra,r as da,t as ca}from"./youtube-CbdpN8oL.js";import{i as ha,n as He}from"./add-connection-dialog-Dh2rjP3o.js";import{t as ma}from"./house-mGK3v0Mm.js";import{t as pa}from"./image-DQHXdEQn.js";import{t as ua}from"./link-CfEtM3Rl.js";import{r as fa}from"./input-BX98vgAu.js";import{t as xa}from"./settings-DfFe0dWD.js";import{t as ya}from"./sparkles-CZ5WmLPA.js";import{y as ba}from"./textarea-GPxmW3rS.js";import{t as ka}from"./square-DMaNzePN.js";import{t as D}from"./use-toast-T0_cQDma.js";import{n as Ue,t as wa}from"./paths-BXWH6vv4.js";import{o as ja}from"./session-VtovaFBS.js";import{n as O}from"./copy-BCF-tANo.js";import{r as ga}from"./useRunCells-BMgfN_OV.js";import{a as qe,c as Oe,i as Be,n as Fe,r as Ve}from"./dialog-Dj0qTFnG.js";import{n as we}from"./ImperativeModal-D7lQ0Q7_.js";import{r as va,t as Ye}from"./share-DIVpiHPe.js";import{a as Ca}from"./cell-link-CC2MiW7a.js";import{a as za}from"./renderShortcut-Bfk4NjRL.js";import{t as Wa}from"./icons-D9TuFTJG.js";import{n as Ke}from"./marimo-icons-BSB-Z_W3.js";import{t as _a}from"./links-iy4RlM-h.js";import{r as Na,t as Ge}from"./hooks-BgTKQ8y5.js";import{t as Je}from"./types-z6Sk3JCV.js";var Ma=g("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),Sa=g("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Xe=g("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Qe=g("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),Ze=g("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Da=g("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),Aa=g("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]),Pa=g("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),Ia=g("notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]),La=g("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),et=g("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Ea=g("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Ta=g("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),tt=g("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),je=M(),A=ze(pt(),1),a=ze(Et(),1);function Ra(){return"uvx marimo@latest"}function $a(t,e,n){let o=n?" --with-token":"",s=`${Ra()} pair prompt --url '${e}'${o}`;switch(t){case"claude":return`claude "$(${s} --claude)"`;case"codex":return`codex "$(${s} --codex)"`;case"opencode":return`opencode --prompt "$(${s} --opencode)"`;default:Qt(t)}}function Ha(t){return t.length<=4?"****":`${"*".repeat(Math.min(t.length-4,8))}${t.slice(-4)}`}var Ua="npx skills add marimo-team/marimo-pair";function qa(){let t=(0,je.c)(2),[e,n]=(0,A.useState)(null),o,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{fetch(Dt("/auth/token").href,{headers:Lt.headers()}).then(Oa).then(r=>n((r==null?void 0:r.token)??null)).catch(()=>n(null))},s=[],t[0]=o,t[1]=s):(o=t[0],s=t[1]),(0,A.useEffect)(o,s),e}function Oa(t){return t.ok?t.json():null}const Ba=t=>{let e=(0,je.c)(32),{onClose:n}=t,[o,s]=(0,A.useState)("claude"),r=At(),i=qa(),l=!!i,d;e[0]!==o||e[1]!==l||e[2]!==r.httpURL?(d=$a(o,r.httpURL.toString(),l),e[0]=o,e[1]=l,e[2]=r.httpURL,e[3]=d):d=e[3];let c=d,p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(Oe,{children:"Pair with an agent"}),e[4]=p):p=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)(qe,{children:[p,(0,a.jsxs)(Ve,{children:["Use an AI coding agent to pair-program on this notebook."," ",(0,a.jsx)("a",{href:"https://links.marimo.app/marimo-pair",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Learn more"}),"."]})]}),e[5]=u):u=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:"1. Install the skill"}),(0,a.jsx)(B,{command:Ua})]}),e[6]=h):h=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)("span",{className:"text-sm font-medium",children:"2. Run in your terminal"}),e[7]=f):f=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=N=>s(N),e[8]=x):x=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsxs)($t,{className:"w-full",children:[(0,a.jsx)(fe,{value:"claude",className:"flex-1",children:"Claude"}),(0,a.jsx)(fe,{value:"codex",className:"flex-1",children:"Codex"}),(0,a.jsx)(fe,{value:"opencode",className:"flex-1",children:"OpenCode"})]}),e[9]=k):k=e[9];let y;e[10]===c?y=e[11]:(y=(0,a.jsx)(xe,{value:"claude",className:"mt-3",children:(0,a.jsx)(B,{command:c})}),e[10]=c,e[11]=y);let b;e[12]===c?b=e[13]:(b=(0,a.jsx)(xe,{value:"codex",className:"mt-3",children:(0,a.jsx)(B,{command:c})}),e[12]=c,e[13]=b);let w;e[14]===c?w=e[15]:(w=(0,a.jsx)(xe,{value:"opencode",className:"mt-3",children:(0,a.jsx)(B,{command:c})}),e[14]=c,e[15]=w);let j;e[16]!==o||e[17]!==w||e[18]!==y||e[19]!==b?(j=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[f,(0,a.jsxs)(Rt,{value:o,onValueChange:x,children:[k,y,b,w]})]}),e[16]=o,e[17]=w,e[18]=y,e[19]=b,e[20]=j):j=e[20];let z;e[21]!==i||e[22]!==l?(z=l&&i&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:"3. Paste when prompted for token"}),(0,a.jsx)(B,{command:i,display:Ha(i)})]}),e[21]=i,e[22]=l,e[23]=z):z=e[23];let v;e[24]!==j||e[25]!==z?(v=(0,a.jsxs)("div",{className:"flex flex-col gap-4 py-2",children:[h,j,z]}),e[24]=j,e[25]=z,e[26]=v):v=e[26];let W;e[27]===n?W=e[28]:(W=(0,a.jsx)(Be,{children:(0,a.jsx)(U,{variant:"secondary",onClick:n,children:"Close"})}),e[27]=n,e[28]=W);let _;return e[29]!==v||e[30]!==W?(_=(0,a.jsxs)(Fe,{className:"sm:max-w-lg",children:[u,v,W]}),e[29]=v,e[30]=W,e[31]=_):_=e[31],_};var B=t=>{let e=(0,je.c)(15),{command:n,display:o}=t,[s,r]=(0,A.useState)(!1),i;e[0]===n?i=e[1]:(i=Pe.stopPropagation(async x=>{x.preventDefault(),await O(n),r(!0),setTimeout(()=>r(!1),2e3)}),e[0]=n,e[1]=i);let l=i,d=o??n,c;e[2]===d?c=e[3]:(c=(0,a.jsx)("code",{className:"flex-1 select-all break-words",children:d}),e[2]=d,e[3]=c);let p;e[4]===s?p=e[5]:(p=s?(0,a.jsx)(ke,{size:14,strokeWidth:1.5}):(0,a.jsx)($e,{size:14,strokeWidth:1.5}),e[4]=s,e[5]=p);let u;e[6]!==l||e[7]!==p?(u=(0,a.jsx)(U,{onClick:l,size:"xs",variant:"ghost",children:p}),e[6]=l,e[7]=p,e[8]=u):u=e[8];let h;e[9]!==s||e[10]!==u?(h=(0,a.jsx)(Ae,{content:"Copied!",open:s,children:u}),e[9]=s,e[10]=u,e[11]=h):h=e[11];let f;return e[12]!==c||e[13]!==h?(f=(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-md bg-muted px-3 py-2 font-mono text-xs",children:[c,h]}),e[12]=c,e[13]=h,e[14]=f):f=e[14],f},at=M(),ne="https://static.marimo.app";const Fa=t=>{let e=(0,at.c)(25),{onClose:n}=t,[o,s]=(0,A.useState)(""),{exportAsHTML:r}=q(),i=`${o}-${Math.random().toString(36).slice(2,6)}`,l=`${ne}/static/${i}`,d;e[0]!==r||e[1]!==n||e[2]!==i?(d=async j=>{j.preventDefault(),n();let z=await r({download:!1,includeCode:!0,files:ta.INSTANCE.filenames()}),v=D({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${ne}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:z,path:i})}).catch(()=>{v.dismiss(),D({title:"Error uploading static page",description:(0,a.jsxs)("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",(0,a.jsx)("a",{href:S.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),v.dismiss(),D({title:"Static page uploaded!",description:(0,a.jsxs)("div",{children:["The URL has been copied to your clipboard.",(0,a.jsx)("br",{}),"You can share it with anyone."]})})},e[0]=r,e[1]=n,e[2]=i,e[3]=d):d=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(Oe,{children:"Share static notebook"}),e[4]=c):c=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsxs)(qe,{children:[c,(0,a.jsxs)(Ve,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",(0,a.jsx)("a",{href:ne,target:"_blank",children:ne}),"."]})]}),e[5]=p):p=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=j=>{s(j.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,""))},e[6]=u):u=e[6];let h;e[7]===o?h=e[8]:(h=(0,a.jsx)(fa,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[7]=o,e[8]=h);let f;e[9]===l?f=e[10]:(f=(0,a.jsxs)("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Va,{text:l}),(0,a.jsx)("span",{className:"text-primary",children:l})]})]}),e[9]=l,e[10]=f);let x;e[11]!==h||e[12]!==f?(x=(0,a.jsxs)("div",{className:"flex flex-col gap-6 py-4",children:[h,f]}),e[11]=h,e[12]=f,e[13]=x):x=e[13];let k;e[14]===n?k=e[15]:(k=(0,a.jsx)(U,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[14]=n,e[15]=k);let y;e[16]===l?y=e[17]:(y=(0,a.jsx)(U,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await O(l)},children:"Create"}),e[16]=l,e[17]=y);let b;e[18]!==k||e[19]!==y?(b=(0,a.jsxs)(Be,{children:[k,y]}),e[18]=k,e[19]=y,e[20]=b):b=e[20];let w;return e[21]!==d||e[22]!==b||e[23]!==x?(w=(0,a.jsx)(Fe,{className:"w-fit",children:(0,a.jsxs)("form",{onSubmit:d,children:[p,x,b]})}),e[21]=d,e[22]=b,e[23]=x,e[24]=w):w=e[24],w};var Va=t=>{let e=(0,at.c)(8),[n,o]=A.useState(!1),s;e[0]===t.text?s=e[1]:(s=Pe.stopPropagation(async c=>{c.preventDefault(),await O(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=s);let r=s,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)($e,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2];let l;e[3]===r?l=e[4]:(l=(0,a.jsx)(U,{"data-testid":"copy-static-notebook-url-button",onClick:r,size:"xs",variant:"secondary",children:i}),e[3]=r,e[4]=l);let d;return e[5]!==n||e[6]!==l?(d=(0,a.jsx)(Ae,{content:"Copied!",open:n,children:l}),e[5]=n,e[6]=l,e[7]=d):d=e[7],d},Ya=M();function Ka(){let t=document.getElementsByClassName(Se.outputArea);for(let e of t){let n=e.getBoundingClientRect();if(n.bottom>0&&n.top<window.innerHeight){let o=ue.findElement(e);if(!o){H.warn("Could not find HTMLCellId for visible output area",e);continue}return{cellId:ue.parse(o.id)}}}return H.warn("No visible output area found for scroll anchor"),null}function Ga(t){if(!t){H.warn("No scroll anchor provided to restore scroll position");return}let e=document.getElementById(ue.create(t.cellId));if(!e){H.warn("Could not find cell element to restore scroll position",t.cellId);return}if(!e.querySelector(`.${Se.outputArea}`)){H.warn("Could not find output area to restore scroll position",t.cellId);return}e.scrollIntoView({block:"start",behavior:"auto"})}function ot(){let t=(0,Ya.c)(2),e=$(Ne),n;return t[0]===e?n=t[1]:(n=()=>{let o=Ka();e(s=>({mode:zt(s.mode),cellAnchor:(o==null?void 0:o.cellId)??null})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ga(o)})})},t[0]=e,t[1]=n),n}const nt=mt(!1);var Ja=M();const Xa=()=>{let t=(0,Ja.c)(7),{selectedLayout:e}=Ee(),{setLayoutView:n}=Te();if(ae()&&!gt("wasm_layouts"))return null;let o;t[0]===n?o=t[1]:(o=l=>n(l),t[0]=n,t[1]=o);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(Ft,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:(0,a.jsx)(Ut,{placeholder:"Select a view"})}),t[2]=s):s=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(Ot,{children:(0,a.jsxs)(Bt,{children:[(0,a.jsx)(Ht,{children:"View as"}),Je.map(Za)]})}),t[3]=r):r=t[3];let i;return t[4]!==e||t[5]!==o?(i=(0,a.jsxs)(Vt,{"data-testid":"layout-select",value:e,onValueChange:o,children:[s,r]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function Qa(t){return(0,a.jsx)(st(t),{className:"h-4 w-4"})}function st(t){switch(t){case"vertical":return Pa;case"grid":return da;case"slides":return et;default:return Xt(t),ka}}function lt(t){return Ie.startCase(t)}function Za(t){return(0,a.jsx)(qt,{value:t,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 leading-5",children:[Qa(t),(0,a.jsx)("span",{children:lt(t)})]})},t)}async function eo(t){let{filename:e,preset:n,downloadPDF:o}=t;await o({filename:e,webpdf:!1,preset:n,includeInputs:!0,rasterServer:"static"})}var to=M();function ao(t){let e=(0,to.c)(5),{openPrompt:n,closeModal:o}=we(),{sendCopy:s}=q(),r;return e[0]!==o||e[1]!==n||e[2]!==s||e[3]!==t?(r=()=>{if(!t)return null;let i=wa.guessDeliminator(t);n({title:"Copy notebook",description:"Enter a new filename for the notebook copy.",defaultValue:`_${Ue.basename(t)}`,confirmText:"Copy notebook",spellCheck:!1,onConfirm:l=>{let d=i.join(Ue.dirname(t),l);s({source:t,destination:d}).then(()=>{o(),D({title:"Notebook copied",description:"A copy of the notebook has been created."}),_a(d)})}})},e[0]=o,e[1]=n,e[2]=s,e[3]=t,e[4]=r):r=e[4],r}const oo=()=>{let{updateCellConfig:t}=We(),{saveCellConfig:e}=q();return(0,A.useCallback)(async()=>{let n=new bt,o=_e(),s=o.cellIds.inOrderIds,r={};for(let l of s){if(o.cellData[l]===void 0)continue;let{code:d,config:c}=o.cellData[l];c.hide_code||n.isSupported(d)&&(r[l]={hide_code:!0})}let i=Me.entries(r);if(i.length!==0){await e({configs:r});for(let[l,d]of i)t({cellId:l,config:d})}},[t])};var no=M();function it(){let t=(0,no.c)(4),{openConfirm:e}=we(),n=$(Pt),{sendRestart:o}=q(),s;return t[0]!==e||t[1]!==o||t[2]!==n?(s=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:(0,a.jsx)(Tt,{onClick:async()=>{n({state:It.CLOSING}),await o(),va()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=o,t[2]=n,t[3]=s):s=t[3],s}var so=M(),T=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()};function lo(){var ve,Ce;let t=(0,so.c)(51),e=Ca(),{openModal:n,closeModal:o}=we(),{toggleApplication:s}=ft(),{selectedPanel:r}=ut(),[i]=ht(Ne),l=pe(vt),d=oo(),[c]=St(),{updateCellConfig:p,undoDeleteCell:u,clearAllCellOutputs:h,addSetupCellIfDoesntExist:f,collapseAllCells:x,expandAllCells:k}=We(),y=it(),b=ga(),w=ao(e),j=$(nt),z=$(Nt),v=$(Mt),{exportAsIPYNB:W,exportAsMarkdown:_,readCode:N,saveCellConfig:le,updateCellOutputs:P}=q(),I=Na(),ie=pe(kt),re=pe(Wt),{selectedLayout:F}=Ee(),{setLayoutView:de}=Te(),V=ot(),Y=((ve=c.sharing)==null?void 0:ve.html)??!0,K=((Ce=c.sharing)==null?void 0:Ce.wasm)??!0,ge=!ae(),ce=F==="slides",rt=zo,dt=Co,G;t[0]!==e||t[1]!==I||t[2]!==P?(G=async m=>{let{preset:C,title:R}=m;if(!e){se();return}await De(R,async me=>{await Ge({takeScreenshots:()=>I({progress:me}),updateCellOutputs:P}),await eo({filename:e,preset:C,downloadPDF:Kt})})},t[0]=e,t[1]=I,t[2]=P,t[3]=G):G=t[3];let L=G,J;t[4]===L?J=t[5]:(J=async()=>{if(ge){await L({preset:"document",title:"Downloading Document PDF..."});return}let m=new Event("export-beforeprint"),C=new Event("export-afterprint");window.dispatchEvent(m),setTimeout(vo,0),setTimeout(()=>window.dispatchEvent(C),0)},t[4]=L,t[5]=J);let X=J,Q;t[6]!==W||t[7]!==e||t[8]!==I||t[9]!==P?(Q=async()=>{if(!e){se();return}await De("Downloading IPYNB...",async m=>{await Ge({takeScreenshots:()=>I({progress:m}),updateCellOutputs:P});let C=await W({download:!1});be(new Blob([C],{type:"application/x-ipynb+json"}),ye.toIPYNB(document.title))})},t[6]=W,t[7]=e,t[8]=I,t[9]=P,t[10]=Q):Q=t[10];let he=Q,Z;t[11]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,a.jsx)(Yt,{size:14,strokeWidth:1.5}),t[11]=Z):Z=t[11];let ee;t[12]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,a.jsx)(Le,{size:14,strokeWidth:1.5}),t[12]=ee):ee=t[12];let E;t[13]===e?E=t[14]:(E=async()=>{if(!e){se();return}await Re({filename:e,includeCode:!0})},t[13]=e,t[14]=E);let te;return t[15]!==f||t[16]!==re||t[17]!==h||t[18]!==o||t[19]!==x||t[20]!==w||t[21]!==L||t[22]!==k||t[23]!==_||t[24]!==e||t[25]!==X||t[26]!==he||t[27]!==ie||t[28]!==d||t[29]!==ce||t[30]!==l||t[31]!==n||t[32]!==N||t[33]!==y||t[34]!==b||t[35]!==le||t[36]!==F||t[37]!==r||t[38]!==j||t[39]!==v||t[40]!==de||t[41]!==z||t[42]!==Y||t[43]!==K||t[44]!==E||t[45]!==s||t[46]!==V||t[47]!==u||t[48]!==p||t[49]!==i.mode?(te=[{icon:Z,label:"Download",handle:T,dropdown:[{icon:ee,label:"Download as HTML",handle:E},{icon:(0,a.jsx)(Le,{size:14,strokeWidth:1.5}),label:"Download as HTML (exclude code)",handle:async()=>{if(!e){se();return}await Re({filename:e,includeCode:!1})}},{icon:(0,a.jsx)(Wa,{strokeWidth:1.5,style:{width:14,height:14}}),label:"Download as Markdown",handle:async()=>{let m=await _({download:!1});be(new Blob([m],{type:"text/plain"}),ye.toMarkdown(document.title))}},{icon:(0,a.jsx)(Ia,{size:14,strokeWidth:1.5}),label:"Download as ipynb",handle:he},{icon:(0,a.jsx)(aa,{size:14,strokeWidth:1.5}),label:"Download Python code",handle:async()=>{let m=await N();be(new Blob([m.contents],{type:"text/plain"}),ye.toPY(document.title))}},{divider:!0,icon:(0,a.jsx)(pa,{size:14,strokeWidth:1.5}),label:"Download as PNG",disabled:i.mode!=="present",tooltip:i.mode==="present"?void 0:(0,a.jsxs)("span",{children:["Only available in app view. ",(0,a.jsx)("br",{}),"Toggle with: ",za("global.hideCode",!1)]}),handle:go},ce?{divider:!0,icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:T,dropdown:[{icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Document Layout",handle:X},{icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Slides Layout",rightElement:dt(!0),hidden:!ge,handle:async()=>{await L({preset:"slides",title:"Downloading Slides PDF..."})}}]}:{divider:!0,icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:X}]},{icon:(0,a.jsx)(ya,{size:14,strokeWidth:1.5}),label:"Pair with an agent",hidden:ae(),handle:async()=>{n((0,a.jsx)(Ba,{onClose:o}))}},{icon:(0,a.jsx)(Ea,{size:14,strokeWidth:1.5}),label:"Share",handle:T,hidden:!Y&&!K,dropdown:[{icon:(0,a.jsx)(ia,{size:14,strokeWidth:1.5}),label:"Publish HTML to web",hidden:!Y,handle:async()=>{n((0,a.jsx)(Fa,{onClose:o}))}},{icon:(0,a.jsx)(ua,{size:14,strokeWidth:1.5}),label:"Create WebAssembly link",hidden:!K,handle:async()=>{await O(Ye({code:(await N()).contents})),D({title:"Copied",description:"Link copied to clipboard."})}},{icon:(0,a.jsx)(Ke,{size:14,strokeWidth:1.5}),label:"Create molab notebook",handle:async()=>{let m=Ye({code:(await N()).contents,baseUrl:`${S.molab}/new`});window.open(m,"_blank")}}]},{icon:(0,a.jsx)(La,{size:14,strokeWidth:1.5}),label:"Helper panel",redundant:!0,handle:T,dropdown:xt.flatMap(m=>{let{type:C,Icon:R,hidden:me,additionalKeywords:ct}=m;return me?[]:{label:Ie.startCase(C),rightElement:rt(r===C),icon:(0,a.jsx)(R,{size:14,strokeWidth:1.5}),handle:()=>s(C),additionalKeywords:ct}})},{icon:(0,a.jsx)(et,{size:14,strokeWidth:1.5}),label:"Present as",handle:T,dropdown:[{icon:i.mode==="present"?(0,a.jsx)(ba,{size:14,strokeWidth:1.5}):(0,a.jsx)(Zt,{size:14,strokeWidth:1.5}),label:"Toggle app view",hotkey:"global.hideCode",handle:()=>{V()}},...Je.map((m,C)=>{let R=st(m);return{divider:C===0,label:lt(m),icon:(0,a.jsx)(R,{size:14,strokeWidth:1.5}),rightElement:(0,a.jsx)("div",{className:"w-8 flex justify-end",children:F===m&&(0,a.jsx)(ke,{size:14})}),handle:()=>{de(m),i.mode==="edit"&&V()}}})]},{icon:(0,a.jsx)(Aa,{size:14,strokeWidth:1.5}),label:"Duplicate notebook",hidden:!e||ae(),handle:w},{icon:(0,a.jsx)(Xe,{size:14,strokeWidth:1.5}),label:"Copy code to clipboard",hidden:!e,handle:async()=>{await O((await N()).contents),D({title:"Copied",description:"Code copied to clipboard."})}},{icon:(0,a.jsx)(na,{size:14,strokeWidth:1.5}),label:"Enable all cells",hidden:!ie||l,handle:async()=>{let m=yt(_e());await le({configs:Me.fromEntries(m.map(jo))});for(let C of m)p({cellId:C,config:{disabled:!1}})}},{divider:!0,icon:(0,a.jsx)(Ze,{size:14,strokeWidth:1.5}),label:"Add setup cell",handle:()=>{f({})}},{icon:(0,a.jsx)(Ct,{size:14,strokeWidth:1.5}),label:"Add database connection",handle:()=>{n((0,a.jsx)(He,{onClose:o}))}},{icon:(0,a.jsx)(ha,{size:14,strokeWidth:1.5}),label:"Add remote storage",handle:()=>{n((0,a.jsx)(He,{defaultTab:"storage",onClose:o}))}},{icon:(0,a.jsx)(tt,{size:14,strokeWidth:1.5}),label:"Undo cell deletion",hidden:!re||l,handle:()=>{u()}},{icon:(0,a.jsx)(Ta,{size:14,strokeWidth:1.5}),label:"Restart kernel",variant:"danger",handle:y,additionalKeywords:["reset","reload","restart"]},{icon:(0,a.jsx)(Da,{size:14,strokeWidth:1.5}),label:"Re-run all cells",redundant:!0,hotkey:"global.runAll",handle:async()=>{b()}},{icon:(0,a.jsx)(jt,{size:14,strokeWidth:1.5}),label:"Clear all outputs",redundant:!0,handle:()=>{h()}},{icon:(0,a.jsx)(sa,{size:14,strokeWidth:1.5}),label:"Hide all markdown code",handle:d,redundant:!0},{icon:(0,a.jsx)(Sa,{size:14,strokeWidth:1.5}),label:"Collapse all sections",hotkey:"global.collapseAllSections",handle:x,redundant:!0},{icon:(0,a.jsx)(Ma,{size:14,strokeWidth:1.5}),label:"Expand all sections",hotkey:"global.expandAllSections",handle:k,redundant:!0},{divider:!0,icon:(0,a.jsx)(Qe,{size:14,strokeWidth:1.5}),label:"Command palette",hotkey:"global.commandPalette",handle:()=>j(wo)},{icon:(0,a.jsx)(ea,{size:14,strokeWidth:1.5}),label:"Keyboard shortcuts",hotkey:"global.showHelp",handle:()=>v(ko)},{icon:(0,a.jsx)(xa,{size:14,strokeWidth:1.5}),label:"User settings",handle:()=>z(bo),redundant:!0,additionalKeywords:["preferences","options","configuration"]},{icon:(0,a.jsx)(oa,{size:14,strokeWidth:1.5}),label:"Resources",handle:T,dropdown:[{icon:(0,a.jsx)(_t,{size:14,strokeWidth:1.5}),label:"Documentation",handle:yo},{icon:(0,a.jsx)(la,{size:14,strokeWidth:1.5}),label:"GitHub",handle:xo},{icon:(0,a.jsx)(ra,{size:14,strokeWidth:1.5}),label:"Discord Community",handle:fo},{icon:(0,a.jsx)(ca,{size:14,strokeWidth:1.5}),label:"YouTube",handle:uo},{icon:(0,a.jsx)(wt,{size:14,strokeWidth:1.5}),label:"Changelog",handle:po}]},{divider:!0,icon:(0,a.jsx)(ma,{size:14,strokeWidth:1.5}),label:"Return home",hidden:!location.search.includes("file"),handle:mo},{icon:(0,a.jsx)(Ke,{size:14,strokeWidth:1.5}),label:"New notebook",hidden:!location.search.includes("file"),handle:ho}].filter(co).map(io),t[15]=f,t[16]=re,t[17]=h,t[18]=o,t[19]=x,t[20]=w,t[21]=L,t[22]=k,t[23]=_,t[24]=e,t[25]=X,t[26]=he,t[27]=ie,t[28]=d,t[29]=ce,t[30]=l,t[31]=n,t[32]=N,t[33]=y,t[34]=b,t[35]=le,t[36]=F,t[37]=r,t[38]=j,t[39]=v,t[40]=de,t[41]=z,t[42]=Y,t[43]=K,t[44]=E,t[45]=s,t[46]=V,t[47]=u,t[48]=p,t[49]=i.mode,t[50]=te):te=t[50],te}function io(t){return t.dropdown?{...t,dropdown:t.dropdown.filter(ro)}:t}function ro(t){return!t.hidden}function co(t){return!t.hidden}function ho(){let t=ja();window.open(t,"_blank")}function mo(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function po(){window.open(S.releasesPage,"_blank")}function uo(){window.open(S.youtube,"_blank")}function fo(){window.open(S.discordLink,"_blank")}function xo(){window.open(S.githubPage,"_blank")}function yo(){window.open(S.docsPage,"_blank")}function bo(t){return!t}function ko(t){return!t}function wo(t){return!t}function jo(t){return[t,{disabled:!1}]}async function go(){let t=document.getElementById("App");t&&await Gt({element:t,filename:document.title,prepare:Jt})}function vo(){return window.print()}function Co(t){return t?(0,a.jsx)("span",{className:"ml-3 shrink-0 rounded-full border border-emerald-200 bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-700",children:"Recommended"}):null}function zo(t){return(0,a.jsx)("div",{className:"w-8 flex justify-end",children:t&&(0,a.jsx)(ke,{size:14})})}function se(){D({title:"Error",description:"Notebooks must be named to be exported.",variant:"danger"})}export{ot as a,Qe as c,nt as i,Xe as l,it as n,tt as o,Xa as r,Ze as s,lo as t};
|
|
1
|
+
import{s as ze}from"./chunk-LvLJmgfZ.js";import{d as $,l as ht,p as mt,u as pe}from"./useEvent-D91BmmQi.js";import{t as pt}from"./react-Bj1aDYRI.js";import{Ai as ue,Dn as ut,E as We,En as ft,On as xt,Ur as yt,Xt as bt,_ as kt,dr as wt,gr as jt,h as _e,jn as gt,lt as Ne,ot as vt,pr as Ct,st as zt,t as Wt,xr as _t}from"./cells-BBDzmUIS.js";import{t as M}from"./compiler-runtime-B3qBwwSJ.js";import{n as Nt,x as Mt}from"./ai-model-dropdown-kQdQhWyz.js";import{_ as H,d as Me}from"./useEventListener-BR0C1MaI.js";import{y as St}from"./utils-BrXijSdZ.js";import{n as S,t as Se}from"./constants-DMpttj8Q.js";import{T as ae,n as Dt,o as At,v as Pt,w as It}from"./config-CPqw1wUv.js";import{n as Lt}from"./switch-BvybnC9P.js";import{t as Et}from"./jsx-runtime-BqBOg78p.js";import{o as Tt}from"./alert-dialog-BGBdrcqJ.js";import{a as Rt,c as fe,o as xe,s as $t}from"./popover-UExmgBsf.js";import{a as Ht,c as Ut,i as qt,n as Ot,r as Bt,s as Ft,t as Vt}from"./select-5i7URBEn.js";import{_t as Yt}from"./JsonOutput-B0sjIMBK.js";import{c as De,d as ye,n as Kt,o as Gt,r as be,t as Jt}from"./download-QGh9oR1D.js";import{t as Ae}from"./tooltip-Gcwqb_SK.js";import{r as Pe,t as U}from"./button-D9nb17Rw.js";import{i as Xt,r as Qt,t as Ie}from"./strings-md4mFbOQ.js";import{r as q}from"./requests-DIwGYs0l.js";import{t as g}from"./createLucideIcon-D5guW7EU.js";import{F as Zt,I as ea,L as Le,P as ta,R as aa,a as Ee,i as Te,u as Re}from"./layout-D5myrs5s.js";import{t as ke}from"./check-BH35Ndha.js";import{n as oa}from"./maps-C48Oksn0.js";import{r as na}from"./useCellActionButton-CHLJURZ7.js";import{t as $e}from"./copy-BwrPA9zQ.js";import{t as sa}from"./eye-off-n1Li95bE.js";import{t as oe}from"./file-BrdxGLRX.js";import{t as la}from"./github-BKS_2Qwn.js";import{u as ia}from"./form-CdFqEqTA.js";import{n as ra,r as da,t as ca}from"./youtube-CbdpN8oL.js";import{i as ha,n as He}from"./add-connection-dialog-DSOgwTlO.js";import{t as ma}from"./house-mGK3v0Mm.js";import{t as pa}from"./image-DQHXdEQn.js";import{t as ua}from"./link-CfEtM3Rl.js";import{r as fa}from"./input-BX98vgAu.js";import{t as xa}from"./settings-DfFe0dWD.js";import{t as ya}from"./sparkles-CZ5WmLPA.js";import{y as ba}from"./textarea-bAp21zYj.js";import{t as ka}from"./square-DMaNzePN.js";import{t as D}from"./use-toast-T0_cQDma.js";import{n as Ue,t as wa}from"./paths-BXWH6vv4.js";import{o as ja}from"./session-VtovaFBS.js";import{n as O}from"./copy-BCF-tANo.js";import{r as ga}from"./useRunCells-RJeImyCn.js";import{a as qe,c as Oe,i as Be,n as Fe,r as Ve}from"./dialog-Dj0qTFnG.js";import{n as we}from"./ImperativeModal-D7lQ0Q7_.js";import{r as va,t as Ye}from"./share-CqnSBwZy.js";import{a as Ca}from"./cell-link-DqiCeeeS.js";import{a as za}from"./renderShortcut-Bfk4NjRL.js";import{t as Wa}from"./icons-D9TuFTJG.js";import{n as Ke}from"./marimo-icons-Dk6YhPWV.js";import{t as _a}from"./links-BhX7oUFH.js";import{r as Na,t as Ge}from"./hooks-BpoZRNxw.js";import{t as Je}from"./types-Bhw3Hco_.js";var Ma=g("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),Sa=g("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Xe=g("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Qe=g("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),Ze=g("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Da=g("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),Aa=g("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]),Pa=g("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),Ia=g("notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]),La=g("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),et=g("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Ea=g("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Ta=g("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),tt=g("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),je=M(),A=ze(pt(),1),a=ze(Et(),1);function Ra(){return"uvx marimo@latest"}function $a(t,e,n){let o=n?" --with-token":"",s=`${Ra()} pair prompt --url '${e}'${o}`;switch(t){case"claude":return`claude "$(${s} --claude)"`;case"codex":return`codex "$(${s} --codex)"`;case"opencode":return`opencode --prompt "$(${s} --opencode)"`;default:Qt(t)}}function Ha(t){return t.length<=4?"****":`${"*".repeat(Math.min(t.length-4,8))}${t.slice(-4)}`}var Ua="npx skills add marimo-team/marimo-pair";function qa(){let t=(0,je.c)(2),[e,n]=(0,A.useState)(null),o,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{fetch(Dt("/auth/token").href,{headers:Lt.headers()}).then(Oa).then(r=>n((r==null?void 0:r.token)??null)).catch(()=>n(null))},s=[],t[0]=o,t[1]=s):(o=t[0],s=t[1]),(0,A.useEffect)(o,s),e}function Oa(t){return t.ok?t.json():null}const Ba=t=>{let e=(0,je.c)(32),{onClose:n}=t,[o,s]=(0,A.useState)("claude"),r=At(),i=qa(),l=!!i,d;e[0]!==o||e[1]!==l||e[2]!==r.httpURL?(d=$a(o,r.httpURL.toString(),l),e[0]=o,e[1]=l,e[2]=r.httpURL,e[3]=d):d=e[3];let c=d,p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(Oe,{children:"Pair with an agent"}),e[4]=p):p=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)(qe,{children:[p,(0,a.jsxs)(Ve,{children:["Use an AI coding agent to pair-program on this notebook."," ",(0,a.jsx)("a",{href:"https://links.marimo.app/marimo-pair",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Learn more"}),"."]})]}),e[5]=u):u=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:"1. Install the skill"}),(0,a.jsx)(B,{command:Ua})]}),e[6]=h):h=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)("span",{className:"text-sm font-medium",children:"2. Run in your terminal"}),e[7]=f):f=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=N=>s(N),e[8]=x):x=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsxs)($t,{className:"w-full",children:[(0,a.jsx)(fe,{value:"claude",className:"flex-1",children:"Claude"}),(0,a.jsx)(fe,{value:"codex",className:"flex-1",children:"Codex"}),(0,a.jsx)(fe,{value:"opencode",className:"flex-1",children:"OpenCode"})]}),e[9]=k):k=e[9];let y;e[10]===c?y=e[11]:(y=(0,a.jsx)(xe,{value:"claude",className:"mt-3",children:(0,a.jsx)(B,{command:c})}),e[10]=c,e[11]=y);let b;e[12]===c?b=e[13]:(b=(0,a.jsx)(xe,{value:"codex",className:"mt-3",children:(0,a.jsx)(B,{command:c})}),e[12]=c,e[13]=b);let w;e[14]===c?w=e[15]:(w=(0,a.jsx)(xe,{value:"opencode",className:"mt-3",children:(0,a.jsx)(B,{command:c})}),e[14]=c,e[15]=w);let j;e[16]!==o||e[17]!==w||e[18]!==y||e[19]!==b?(j=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[f,(0,a.jsxs)(Rt,{value:o,onValueChange:x,children:[k,y,b,w]})]}),e[16]=o,e[17]=w,e[18]=y,e[19]=b,e[20]=j):j=e[20];let z;e[21]!==i||e[22]!==l?(z=l&&i&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:"3. Paste when prompted for token"}),(0,a.jsx)(B,{command:i,display:Ha(i)})]}),e[21]=i,e[22]=l,e[23]=z):z=e[23];let v;e[24]!==j||e[25]!==z?(v=(0,a.jsxs)("div",{className:"flex flex-col gap-4 py-2",children:[h,j,z]}),e[24]=j,e[25]=z,e[26]=v):v=e[26];let W;e[27]===n?W=e[28]:(W=(0,a.jsx)(Be,{children:(0,a.jsx)(U,{variant:"secondary",onClick:n,children:"Close"})}),e[27]=n,e[28]=W);let _;return e[29]!==v||e[30]!==W?(_=(0,a.jsxs)(Fe,{className:"sm:max-w-lg",children:[u,v,W]}),e[29]=v,e[30]=W,e[31]=_):_=e[31],_};var B=t=>{let e=(0,je.c)(15),{command:n,display:o}=t,[s,r]=(0,A.useState)(!1),i;e[0]===n?i=e[1]:(i=Pe.stopPropagation(async x=>{x.preventDefault(),await O(n),r(!0),setTimeout(()=>r(!1),2e3)}),e[0]=n,e[1]=i);let l=i,d=o??n,c;e[2]===d?c=e[3]:(c=(0,a.jsx)("code",{className:"flex-1 select-all break-words",children:d}),e[2]=d,e[3]=c);let p;e[4]===s?p=e[5]:(p=s?(0,a.jsx)(ke,{size:14,strokeWidth:1.5}):(0,a.jsx)($e,{size:14,strokeWidth:1.5}),e[4]=s,e[5]=p);let u;e[6]!==l||e[7]!==p?(u=(0,a.jsx)(U,{onClick:l,size:"xs",variant:"ghost",children:p}),e[6]=l,e[7]=p,e[8]=u):u=e[8];let h;e[9]!==s||e[10]!==u?(h=(0,a.jsx)(Ae,{content:"Copied!",open:s,children:u}),e[9]=s,e[10]=u,e[11]=h):h=e[11];let f;return e[12]!==c||e[13]!==h?(f=(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-md bg-muted px-3 py-2 font-mono text-xs",children:[c,h]}),e[12]=c,e[13]=h,e[14]=f):f=e[14],f},at=M(),ne="https://static.marimo.app";const Fa=t=>{let e=(0,at.c)(25),{onClose:n}=t,[o,s]=(0,A.useState)(""),{exportAsHTML:r}=q(),i=`${o}-${Math.random().toString(36).slice(2,6)}`,l=`${ne}/static/${i}`,d;e[0]!==r||e[1]!==n||e[2]!==i?(d=async j=>{j.preventDefault(),n();let z=await r({download:!1,includeCode:!0,files:ta.INSTANCE.filenames()}),v=D({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${ne}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:z,path:i})}).catch(()=>{v.dismiss(),D({title:"Error uploading static page",description:(0,a.jsxs)("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",(0,a.jsx)("a",{href:S.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),v.dismiss(),D({title:"Static page uploaded!",description:(0,a.jsxs)("div",{children:["The URL has been copied to your clipboard.",(0,a.jsx)("br",{}),"You can share it with anyone."]})})},e[0]=r,e[1]=n,e[2]=i,e[3]=d):d=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(Oe,{children:"Share static notebook"}),e[4]=c):c=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsxs)(qe,{children:[c,(0,a.jsxs)(Ve,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",(0,a.jsx)("a",{href:ne,target:"_blank",children:ne}),"."]})]}),e[5]=p):p=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=j=>{s(j.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,""))},e[6]=u):u=e[6];let h;e[7]===o?h=e[8]:(h=(0,a.jsx)(fa,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[7]=o,e[8]=h);let f;e[9]===l?f=e[10]:(f=(0,a.jsxs)("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Va,{text:l}),(0,a.jsx)("span",{className:"text-primary",children:l})]})]}),e[9]=l,e[10]=f);let x;e[11]!==h||e[12]!==f?(x=(0,a.jsxs)("div",{className:"flex flex-col gap-6 py-4",children:[h,f]}),e[11]=h,e[12]=f,e[13]=x):x=e[13];let k;e[14]===n?k=e[15]:(k=(0,a.jsx)(U,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[14]=n,e[15]=k);let y;e[16]===l?y=e[17]:(y=(0,a.jsx)(U,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await O(l)},children:"Create"}),e[16]=l,e[17]=y);let b;e[18]!==k||e[19]!==y?(b=(0,a.jsxs)(Be,{children:[k,y]}),e[18]=k,e[19]=y,e[20]=b):b=e[20];let w;return e[21]!==d||e[22]!==b||e[23]!==x?(w=(0,a.jsx)(Fe,{className:"w-fit",children:(0,a.jsxs)("form",{onSubmit:d,children:[p,x,b]})}),e[21]=d,e[22]=b,e[23]=x,e[24]=w):w=e[24],w};var Va=t=>{let e=(0,at.c)(8),[n,o]=A.useState(!1),s;e[0]===t.text?s=e[1]:(s=Pe.stopPropagation(async c=>{c.preventDefault(),await O(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=s);let r=s,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)($e,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2];let l;e[3]===r?l=e[4]:(l=(0,a.jsx)(U,{"data-testid":"copy-static-notebook-url-button",onClick:r,size:"xs",variant:"secondary",children:i}),e[3]=r,e[4]=l);let d;return e[5]!==n||e[6]!==l?(d=(0,a.jsx)(Ae,{content:"Copied!",open:n,children:l}),e[5]=n,e[6]=l,e[7]=d):d=e[7],d},Ya=M();function Ka(){let t=document.getElementsByClassName(Se.outputArea);for(let e of t){let n=e.getBoundingClientRect();if(n.bottom>0&&n.top<window.innerHeight){let o=ue.findElement(e);if(!o){H.warn("Could not find HTMLCellId for visible output area",e);continue}return{cellId:ue.parse(o.id)}}}return H.warn("No visible output area found for scroll anchor"),null}function Ga(t){if(!t){H.warn("No scroll anchor provided to restore scroll position");return}let e=document.getElementById(ue.create(t.cellId));if(!e){H.warn("Could not find cell element to restore scroll position",t.cellId);return}if(!e.querySelector(`.${Se.outputArea}`)){H.warn("Could not find output area to restore scroll position",t.cellId);return}e.scrollIntoView({block:"start",behavior:"auto"})}function ot(){let t=(0,Ya.c)(2),e=$(Ne),n;return t[0]===e?n=t[1]:(n=()=>{let o=Ka();e(s=>({mode:zt(s.mode),cellAnchor:(o==null?void 0:o.cellId)??null})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ga(o)})})},t[0]=e,t[1]=n),n}const nt=mt(!1);var Ja=M();const Xa=()=>{let t=(0,Ja.c)(7),{selectedLayout:e}=Ee(),{setLayoutView:n}=Te();if(ae()&&!gt("wasm_layouts"))return null;let o;t[0]===n?o=t[1]:(o=l=>n(l),t[0]=n,t[1]=o);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(Ft,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:(0,a.jsx)(Ut,{placeholder:"Select a view"})}),t[2]=s):s=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(Ot,{children:(0,a.jsxs)(Bt,{children:[(0,a.jsx)(Ht,{children:"View as"}),Je.map(Za)]})}),t[3]=r):r=t[3];let i;return t[4]!==e||t[5]!==o?(i=(0,a.jsxs)(Vt,{"data-testid":"layout-select",value:e,onValueChange:o,children:[s,r]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function Qa(t){return(0,a.jsx)(st(t),{className:"h-4 w-4"})}function st(t){switch(t){case"vertical":return Pa;case"grid":return da;case"slides":return et;default:return Xt(t),ka}}function lt(t){return Ie.startCase(t)}function Za(t){return(0,a.jsx)(qt,{value:t,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 leading-5",children:[Qa(t),(0,a.jsx)("span",{children:lt(t)})]})},t)}async function eo(t){let{filename:e,preset:n,downloadPDF:o}=t;await o({filename:e,webpdf:!1,preset:n,includeInputs:!0,rasterServer:"static"})}var to=M();function ao(t){let e=(0,to.c)(5),{openPrompt:n,closeModal:o}=we(),{sendCopy:s}=q(),r;return e[0]!==o||e[1]!==n||e[2]!==s||e[3]!==t?(r=()=>{if(!t)return null;let i=wa.guessDeliminator(t);n({title:"Copy notebook",description:"Enter a new filename for the notebook copy.",defaultValue:`_${Ue.basename(t)}`,confirmText:"Copy notebook",spellCheck:!1,onConfirm:l=>{let d=i.join(Ue.dirname(t),l);s({source:t,destination:d}).then(()=>{o(),D({title:"Notebook copied",description:"A copy of the notebook has been created."}),_a(d)})}})},e[0]=o,e[1]=n,e[2]=s,e[3]=t,e[4]=r):r=e[4],r}const oo=()=>{let{updateCellConfig:t}=We(),{saveCellConfig:e}=q();return(0,A.useCallback)(async()=>{let n=new bt,o=_e(),s=o.cellIds.inOrderIds,r={};for(let l of s){if(o.cellData[l]===void 0)continue;let{code:d,config:c}=o.cellData[l];c.hide_code||n.isSupported(d)&&(r[l]={hide_code:!0})}let i=Me.entries(r);if(i.length!==0){await e({configs:r});for(let[l,d]of i)t({cellId:l,config:d})}},[t])};var no=M();function it(){let t=(0,no.c)(4),{openConfirm:e}=we(),n=$(Pt),{sendRestart:o}=q(),s;return t[0]!==e||t[1]!==o||t[2]!==n?(s=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:(0,a.jsx)(Tt,{onClick:async()=>{n({state:It.CLOSING}),await o(),va()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=o,t[2]=n,t[3]=s):s=t[3],s}var so=M(),T=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()};function lo(){var ve,Ce;let t=(0,so.c)(51),e=Ca(),{openModal:n,closeModal:o}=we(),{toggleApplication:s}=ft(),{selectedPanel:r}=ut(),[i]=ht(Ne),l=pe(vt),d=oo(),[c]=St(),{updateCellConfig:p,undoDeleteCell:u,clearAllCellOutputs:h,addSetupCellIfDoesntExist:f,collapseAllCells:x,expandAllCells:k}=We(),y=it(),b=ga(),w=ao(e),j=$(nt),z=$(Nt),v=$(Mt),{exportAsIPYNB:W,exportAsMarkdown:_,readCode:N,saveCellConfig:le,updateCellOutputs:P}=q(),I=Na(),ie=pe(kt),re=pe(Wt),{selectedLayout:F}=Ee(),{setLayoutView:de}=Te(),V=ot(),Y=((ve=c.sharing)==null?void 0:ve.html)??!0,K=((Ce=c.sharing)==null?void 0:Ce.wasm)??!0,ge=!ae(),ce=F==="slides",rt=zo,dt=Co,G;t[0]!==e||t[1]!==I||t[2]!==P?(G=async m=>{let{preset:C,title:R}=m;if(!e){se();return}await De(R,async me=>{await Ge({takeScreenshots:()=>I({progress:me}),updateCellOutputs:P}),await eo({filename:e,preset:C,downloadPDF:Kt})})},t[0]=e,t[1]=I,t[2]=P,t[3]=G):G=t[3];let L=G,J;t[4]===L?J=t[5]:(J=async()=>{if(ge){await L({preset:"document",title:"Downloading Document PDF..."});return}let m=new Event("export-beforeprint"),C=new Event("export-afterprint");window.dispatchEvent(m),setTimeout(vo,0),setTimeout(()=>window.dispatchEvent(C),0)},t[4]=L,t[5]=J);let X=J,Q;t[6]!==W||t[7]!==e||t[8]!==I||t[9]!==P?(Q=async()=>{if(!e){se();return}await De("Downloading IPYNB...",async m=>{await Ge({takeScreenshots:()=>I({progress:m}),updateCellOutputs:P});let C=await W({download:!1});be(new Blob([C],{type:"application/x-ipynb+json"}),ye.toIPYNB(document.title))})},t[6]=W,t[7]=e,t[8]=I,t[9]=P,t[10]=Q):Q=t[10];let he=Q,Z;t[11]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,a.jsx)(Yt,{size:14,strokeWidth:1.5}),t[11]=Z):Z=t[11];let ee;t[12]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,a.jsx)(Le,{size:14,strokeWidth:1.5}),t[12]=ee):ee=t[12];let E;t[13]===e?E=t[14]:(E=async()=>{if(!e){se();return}await Re({filename:e,includeCode:!0})},t[13]=e,t[14]=E);let te;return t[15]!==f||t[16]!==re||t[17]!==h||t[18]!==o||t[19]!==x||t[20]!==w||t[21]!==L||t[22]!==k||t[23]!==_||t[24]!==e||t[25]!==X||t[26]!==he||t[27]!==ie||t[28]!==d||t[29]!==ce||t[30]!==l||t[31]!==n||t[32]!==N||t[33]!==y||t[34]!==b||t[35]!==le||t[36]!==F||t[37]!==r||t[38]!==j||t[39]!==v||t[40]!==de||t[41]!==z||t[42]!==Y||t[43]!==K||t[44]!==E||t[45]!==s||t[46]!==V||t[47]!==u||t[48]!==p||t[49]!==i.mode?(te=[{icon:Z,label:"Download",handle:T,dropdown:[{icon:ee,label:"Download as HTML",handle:E},{icon:(0,a.jsx)(Le,{size:14,strokeWidth:1.5}),label:"Download as HTML (exclude code)",handle:async()=>{if(!e){se();return}await Re({filename:e,includeCode:!1})}},{icon:(0,a.jsx)(Wa,{strokeWidth:1.5,style:{width:14,height:14}}),label:"Download as Markdown",handle:async()=>{let m=await _({download:!1});be(new Blob([m],{type:"text/plain"}),ye.toMarkdown(document.title))}},{icon:(0,a.jsx)(Ia,{size:14,strokeWidth:1.5}),label:"Download as ipynb",handle:he},{icon:(0,a.jsx)(aa,{size:14,strokeWidth:1.5}),label:"Download Python code",handle:async()=>{let m=await N();be(new Blob([m.contents],{type:"text/plain"}),ye.toPY(document.title))}},{divider:!0,icon:(0,a.jsx)(pa,{size:14,strokeWidth:1.5}),label:"Download as PNG",disabled:i.mode!=="present",tooltip:i.mode==="present"?void 0:(0,a.jsxs)("span",{children:["Only available in app view. ",(0,a.jsx)("br",{}),"Toggle with: ",za("global.hideCode",!1)]}),handle:go},ce?{divider:!0,icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:T,dropdown:[{icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Document Layout",handle:X},{icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Slides Layout",rightElement:dt(!0),hidden:!ge,handle:async()=>{await L({preset:"slides",title:"Downloading Slides PDF..."})}}]}:{divider:!0,icon:(0,a.jsx)(oe,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:X}]},{icon:(0,a.jsx)(ya,{size:14,strokeWidth:1.5}),label:"Pair with an agent",hidden:ae(),handle:async()=>{n((0,a.jsx)(Ba,{onClose:o}))}},{icon:(0,a.jsx)(Ea,{size:14,strokeWidth:1.5}),label:"Share",handle:T,hidden:!Y&&!K,dropdown:[{icon:(0,a.jsx)(ia,{size:14,strokeWidth:1.5}),label:"Publish HTML to web",hidden:!Y,handle:async()=>{n((0,a.jsx)(Fa,{onClose:o}))}},{icon:(0,a.jsx)(ua,{size:14,strokeWidth:1.5}),label:"Create WebAssembly link",hidden:!K,handle:async()=>{await O(Ye({code:(await N()).contents})),D({title:"Copied",description:"Link copied to clipboard."})}},{icon:(0,a.jsx)(Ke,{size:14,strokeWidth:1.5}),label:"Create molab notebook",handle:async()=>{let m=Ye({code:(await N()).contents,baseUrl:`${S.molab}/new`});window.open(m,"_blank")}}]},{icon:(0,a.jsx)(La,{size:14,strokeWidth:1.5}),label:"Helper panel",redundant:!0,handle:T,dropdown:xt.flatMap(m=>{let{type:C,Icon:R,hidden:me,additionalKeywords:ct}=m;return me?[]:{label:Ie.startCase(C),rightElement:rt(r===C),icon:(0,a.jsx)(R,{size:14,strokeWidth:1.5}),handle:()=>s(C),additionalKeywords:ct}})},{icon:(0,a.jsx)(et,{size:14,strokeWidth:1.5}),label:"Present as",handle:T,dropdown:[{icon:i.mode==="present"?(0,a.jsx)(ba,{size:14,strokeWidth:1.5}):(0,a.jsx)(Zt,{size:14,strokeWidth:1.5}),label:"Toggle app view",hotkey:"global.hideCode",handle:()=>{V()}},...Je.map((m,C)=>{let R=st(m);return{divider:C===0,label:lt(m),icon:(0,a.jsx)(R,{size:14,strokeWidth:1.5}),rightElement:(0,a.jsx)("div",{className:"w-8 flex justify-end",children:F===m&&(0,a.jsx)(ke,{size:14})}),handle:()=>{de(m),i.mode==="edit"&&V()}}})]},{icon:(0,a.jsx)(Aa,{size:14,strokeWidth:1.5}),label:"Duplicate notebook",hidden:!e||ae(),handle:w},{icon:(0,a.jsx)(Xe,{size:14,strokeWidth:1.5}),label:"Copy code to clipboard",hidden:!e,handle:async()=>{await O((await N()).contents),D({title:"Copied",description:"Code copied to clipboard."})}},{icon:(0,a.jsx)(na,{size:14,strokeWidth:1.5}),label:"Enable all cells",hidden:!ie||l,handle:async()=>{let m=yt(_e());await le({configs:Me.fromEntries(m.map(jo))});for(let C of m)p({cellId:C,config:{disabled:!1}})}},{divider:!0,icon:(0,a.jsx)(Ze,{size:14,strokeWidth:1.5}),label:"Add setup cell",handle:()=>{f({})}},{icon:(0,a.jsx)(Ct,{size:14,strokeWidth:1.5}),label:"Add database connection",handle:()=>{n((0,a.jsx)(He,{onClose:o}))}},{icon:(0,a.jsx)(ha,{size:14,strokeWidth:1.5}),label:"Add remote storage",handle:()=>{n((0,a.jsx)(He,{defaultTab:"storage",onClose:o}))}},{icon:(0,a.jsx)(tt,{size:14,strokeWidth:1.5}),label:"Undo cell deletion",hidden:!re||l,handle:()=>{u()}},{icon:(0,a.jsx)(Ta,{size:14,strokeWidth:1.5}),label:"Restart kernel",variant:"danger",handle:y,additionalKeywords:["reset","reload","restart"]},{icon:(0,a.jsx)(Da,{size:14,strokeWidth:1.5}),label:"Re-run all cells",redundant:!0,hotkey:"global.runAll",handle:async()=>{b()}},{icon:(0,a.jsx)(jt,{size:14,strokeWidth:1.5}),label:"Clear all outputs",redundant:!0,handle:()=>{h()}},{icon:(0,a.jsx)(sa,{size:14,strokeWidth:1.5}),label:"Hide all markdown code",handle:d,redundant:!0},{icon:(0,a.jsx)(Sa,{size:14,strokeWidth:1.5}),label:"Collapse all sections",hotkey:"global.collapseAllSections",handle:x,redundant:!0},{icon:(0,a.jsx)(Ma,{size:14,strokeWidth:1.5}),label:"Expand all sections",hotkey:"global.expandAllSections",handle:k,redundant:!0},{divider:!0,icon:(0,a.jsx)(Qe,{size:14,strokeWidth:1.5}),label:"Command palette",hotkey:"global.commandPalette",handle:()=>j(wo)},{icon:(0,a.jsx)(ea,{size:14,strokeWidth:1.5}),label:"Keyboard shortcuts",hotkey:"global.showHelp",handle:()=>v(ko)},{icon:(0,a.jsx)(xa,{size:14,strokeWidth:1.5}),label:"User settings",handle:()=>z(bo),redundant:!0,additionalKeywords:["preferences","options","configuration"]},{icon:(0,a.jsx)(oa,{size:14,strokeWidth:1.5}),label:"Resources",handle:T,dropdown:[{icon:(0,a.jsx)(_t,{size:14,strokeWidth:1.5}),label:"Documentation",handle:yo},{icon:(0,a.jsx)(la,{size:14,strokeWidth:1.5}),label:"GitHub",handle:xo},{icon:(0,a.jsx)(ra,{size:14,strokeWidth:1.5}),label:"Discord Community",handle:fo},{icon:(0,a.jsx)(ca,{size:14,strokeWidth:1.5}),label:"YouTube",handle:uo},{icon:(0,a.jsx)(wt,{size:14,strokeWidth:1.5}),label:"Changelog",handle:po}]},{divider:!0,icon:(0,a.jsx)(ma,{size:14,strokeWidth:1.5}),label:"Return home",hidden:!location.search.includes("file"),handle:mo},{icon:(0,a.jsx)(Ke,{size:14,strokeWidth:1.5}),label:"New notebook",hidden:!location.search.includes("file"),handle:ho}].filter(co).map(io),t[15]=f,t[16]=re,t[17]=h,t[18]=o,t[19]=x,t[20]=w,t[21]=L,t[22]=k,t[23]=_,t[24]=e,t[25]=X,t[26]=he,t[27]=ie,t[28]=d,t[29]=ce,t[30]=l,t[31]=n,t[32]=N,t[33]=y,t[34]=b,t[35]=le,t[36]=F,t[37]=r,t[38]=j,t[39]=v,t[40]=de,t[41]=z,t[42]=Y,t[43]=K,t[44]=E,t[45]=s,t[46]=V,t[47]=u,t[48]=p,t[49]=i.mode,t[50]=te):te=t[50],te}function io(t){return t.dropdown?{...t,dropdown:t.dropdown.filter(ro)}:t}function ro(t){return!t.hidden}function co(t){return!t.hidden}function ho(){let t=ja();window.open(t,"_blank")}function mo(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function po(){window.open(S.releasesPage,"_blank")}function uo(){window.open(S.youtube,"_blank")}function fo(){window.open(S.discordLink,"_blank")}function xo(){window.open(S.githubPage,"_blank")}function yo(){window.open(S.docsPage,"_blank")}function bo(t){return!t}function ko(t){return!t}function wo(t){return!t}function jo(t){return[t,{disabled:!1}]}async function go(){let t=document.getElementById("App");t&&await Gt({element:t,filename:document.title,prepare:Jt})}function vo(){return window.print()}function Co(t){return t?(0,a.jsx)("span",{className:"ml-3 shrink-0 rounded-full border border-emerald-200 bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-700",children:"Recommended"}):null}function zo(t){return(0,a.jsx)("div",{className:"w-8 flex justify-end",children:t&&(0,a.jsx)(ke,{size:14})})}function se(){D({title:"Error",description:"Notebooks must be named to be exported.",variant:"danger"})}export{ot as a,Qe as c,nt as i,Xe as l,it as n,tt as o,Xa as r,Ze as s,lo as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,n as i,p as k}from"./useEvent-D91BmmQi.js";import{E as v,Jr as w,Wr as y,bt as F,h as d,zn as _}from"./cells-
|
|
1
|
+
import{d as g,n as i,p as k}from"./useEvent-D91BmmQi.js";import{E as v,Jr as w,Wr as y,bt as F,h as d,zn as _}from"./cells-BBDzmUIS.js";import{t as x}from"./compiler-runtime-B3qBwwSJ.js";import{_ as z}from"./useEventListener-BR0C1MaI.js";import{o as D}from"./dist-HlsDto3K.js";import{r as E}from"./requests-DIwGYs0l.js";var u=x();const I=k(!1);function H(){let r=(0,u.c)(2),n=f(),t;return r[0]===n?t=r[1]:(t=()=>n(w(d())),r[0]=n,r[1]=t),i(t)}function J(r){let n=(0,u.c)(3),t=f(),e;return n[0]!==r||n[1]!==t?(e=()=>{r!==void 0&&t([r])},n[0]=r,n[1]=t,n[2]=e):e=n[2],i(e)}function V(){let r=(0,u.c)(2),n=f(),t;return r[0]===n?t=r[1]:(t=()=>n(y(d())),r[0]=n,r[1]=t),i(t)}function f(){let r=(0,u.c)(4),{prepareForRun:n}=v(),{sendRun:t}=E(),e=g(I),o;return r[0]!==n||r[1]!==t||r[2]!==e?(o=async s=>{if(s.length===0)return;let c=d();return e(!0),b({cellIds:s,sendRun:t,prepareForRun:n,notebook:c})},r[0]=n,r[1]=t,r[2]=e,r[3]=o):o=r[3],i(o)}async function b({cellIds:r,sendRun:n,prepareForRun:t,notebook:e}){var m,h,R;if(r.length===0)return;let{cellHandles:o,cellData:s}=e,c=[];for(let a of r){let l=(h=(m=o[a])==null?void 0:m.current)==null?void 0:h.editorView,p;l?(_(l)!=="markdown"&&D(l),p=F(l)):p=((R=s[a])==null?void 0:R.code)||"",c.push(p),t({cellId:a})}await n({cellIds:r,codes:c}).catch(a=>{z.error(a)})}export{f as a,J as i,b as n,H as o,V as r,I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as m}from"./chunk-LvLJmgfZ.js";import{n as p}from"./useEvent-D91BmmQi.js";import{E as d,bt as f,f as u}from"./cells-
|
|
1
|
+
import{s as m}from"./chunk-LvLJmgfZ.js";import{n as p}from"./useEvent-D91BmmQi.js";import{E as d,bt as f,f as u}from"./cells-BBDzmUIS.js";import{t as c}from"./compiler-runtime-B3qBwwSJ.js";import{t as C}from"./jsx-runtime-BqBOg78p.js";import{t as b}from"./use-toast-T0_cQDma.js";import{r as h}from"./useDeleteCell-GFhvGBJ7.js";var v=c(),x=m(C(),1);function j(){let t=(0,v.c)(3),{splitCell:i,undoSplitCell:r}=d(),o;return t[0]!==i||t[1]!==r?(o=s=>{let l=u(s.cellId);if(!l)return;let a=f(l);i(s);let{dismiss:n}=b({title:"Cell split",action:(0,x.jsx)(h,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{r({...s,snapshot:a}),e()},children:"Undo"})}),e=n},t[0]=i,t[1]=r,t[2]=o):o=t[2],p(o)}export{j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as o}from"./vb-BX7-Md9G.js";export{o as vb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as r,t}from"./vbscript-DNMzJOTU.js";export{t as vbScript,r as vbScriptASP};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as Z}from"./chunk-LvLJmgfZ.js";import{n as C}from"./useEvent-D91BmmQi.js";import{t as Y}from"./react-Bj1aDYRI.js";import"./react-dom-CSu739Rf.js";import{t as tt}from"./compiler-runtime-B3qBwwSJ.js";import{t as et}from"./debounce-DhnxH9Rh.js";import{_,d as V}from"./useEventListener-BR0C1MaI.js";import{n as H}from"./config-CPqw1wUv.js";import{t as nt}from"./cn-DCUzRj2J.js";import{t as rt}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import{t as at}from"./tooltip-Gcwqb_SK.js";import{r as it}from"./button-D9nb17Rw.js";import{d as N}from"./arrays-DYDL-3-i.js";import{u as ot}from"./toDate-B5A0DFEz.js";import"./session-VtovaFBS.js";import{r as lt}from"./useTheme-DFXuDFj9.js";import{t as ct}from"./isValid-C8T5uJYI.js";import{a as st,r as mt,t as pt}from"./utils-CGtUbqcR.js";import{n as ut}from"./vega-loader.browser-BegSZk0G.js";import{t as ft}from"./react-vega-B30MPQ4_.js";import"./defaultLocale-YteS-k_t.js";import"./defaultLocale-B6z1Qyqt.js";import{r as dt,t as ht}from"./alert-DvqcBMUv.js";import{n as gt}from"./error-banner-C10O4l3y.js";import{n as yt}from"./useAsyncData-BFC6lWG9.js";import{t as vt}from"./formats-Dsc8AdCp.js";import{t as F}from"./useDeepCompareMemoize-D0WTlCXt.js";import{t as kt}from"./semaphore-QJCD9q3h.js";var bt=tt(),S=Z(Y(),1);function wt(t){return t.data&&"url"in t.data&&(t.data.url=H(t.data.url).href),t}const u={arc:"arc",area:"area",bar:"bar",image:"image",line:"line",point:"point",rect:"rect",rule:"rule",text:"text",tick:"tick",trail:"trail",circle:"circle",square:"square",geoshape:"geoshape"};var W=new Set(["boxplot","errorband","errorbar"]);const x={getMarkType(t){let e=typeof t=="string"?t:t.type;if(W.has(e))throw Error("Not supported");return e},isInteractive(t){let e=typeof t=="string"?t:t.type;return!W.has(e)},makeClickable(t){let e=typeof t=="string"?t:t.type;return e in u?typeof t=="string"?{type:t,cursor:"pointer",tooltip:!0}:{...t,type:e,cursor:"pointer",tooltip:!0}:t},getOpacity(t){return typeof t=="string"?null:"opacity"in t&&typeof t.opacity=="number"?t.opacity:null}},v={point(t){return t==null?"select_point":`select_point_${t}`},interval(t){return t==null?"select_interval":`select_interval_${t}`},legendSelection(t){return`legend_selection_${t}`},binColoring(t){return t==null?"bin_coloring":`bin_coloring_${t}`},HIGHLIGHT:"highlight",PAN_ZOOM:"pan_zoom",hasPoint(t){return t.some(e=>e.startsWith("select_point"))},hasInterval(t){return t.some(e=>e.startsWith("select_interval"))},hasLegend(t){return t.some(e=>e.startsWith("legend_selection"))},hasPanZoom(t){return t.some(e=>e.startsWith("pan_zoom"))},isBinColoring(t){return t.startsWith("bin_coloring")}},j={highlight(){return{name:v.HIGHLIGHT,select:{type:"point",on:"mouseover"}}},interval(t,e){return{name:v.interval(e),select:{type:"interval",encodings:D(t),mark:{fill:"#669EFF",fillOpacity:.07,stroke:"#669EFF",strokeOpacity:.4},on:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",translate:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]"}}},point(t,e){return{name:v.point(e),select:{type:"point",encodings:D(t),on:"click[!event.metaKey]"}}},binColoring(t){return{name:v.binColoring(t),select:{type:"point",on:"click[!event.metaKey]"}}},legend(t){return{name:v.legendSelection(t),select:{type:"point",fields:[t]},bind:"legend"}},panZoom(){return{name:v.PAN_ZOOM,bind:"scales",select:{type:"interval",on:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",translate:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",zoom:"wheel![event.metaKey]"}}}};function D(t){switch(x.getMarkType(t.mark)){case u.image:case u.trail:return;case u.area:case u.arc:return["color"];case u.bar:{let e=St(t);return e==="horizontal"?["y"]:e==="vertical"?["x"]:void 0}case u.circle:case u.geoshape:case u.line:case u.point:case u.rect:case u.rule:case u.square:case u.text:case u.tick:return["x","y"]}}function P(t){return"params"in t&&t.params&&t.params.length>0?N(t.params.filter(e=>e==null?!1:"select"in e&&e.select!==void 0).map(e=>e.name)):"layer"in t?N(t.layer.flatMap(P)):"vconcat"in t?N(t.vconcat.flatMap(P)):"hconcat"in t?N(t.hconcat.flatMap(P)):[]}function St(t){var a,i;if(!t||!("mark"in t))return;let e=(a=t.encoding)==null?void 0:a.x,n=(i=t.encoding)==null?void 0:i.y;if(e&&"type"in e&&e.type==="nominal")return"vertical";if(n&&"type"in n&&n.type==="nominal"||e&&"aggregate"in e)return"horizontal";if(n&&"aggregate"in n)return"vertical"}function xt(t){if(!t.encoding)return[];let e=[];for(let n of Object.values(t.encoding))n&&typeof n=="object"&&"bin"in n&&n.bin&&"field"in n&&typeof n.field=="string"&&e.push(n.field);return e}function G(t){if(!t||!("encoding"in t))return[];let{encoding:e}=t;return e?Object.entries(e).flatMap(n=>{let[a,i]=n;return!i||!At.has(a)?[]:"field"in i&&typeof i.field=="string"?[i.field]:"condition"in i&&i.condition&&typeof i.condition=="object"&&"field"in i.condition&&i.condition.field&&typeof i.condition.field=="string"?[i.condition.field]:[]}):[]}var At=new Set(["color","fill","fillOpacity","opacity","shape","size"]);function $(t,e,n,a){let i=n.filter(o=>v.isBinColoring(o)),r={and:(i.length>0?i:n).map(o=>({param:o}))};if(t==="opacity"){let o=x.getOpacity(a)||1;return{...e,opacity:{condition:{test:r,value:o},value:o/5}}}else return e}function _t(t){if(!("select"in t)||!t.select)return JSON.stringify(t);let e=t.select;if(typeof e=="string")return JSON.stringify({type:e,bind:t.bind});let n={type:e.type,encodings:"encodings"in e&&e.encodings?[...e.encodings].toSorted():void 0,fields:"fields"in e&&e.fields?[...e.fields].toSorted():void 0,bind:t.bind};return JSON.stringify(n)}function q(t){let e=E(t);if(e.length===0)return t;let n=jt(e);return n.length===0?t:{...L(K(t,new Set(n.map(a=>a.name))),n.map(a=>a.name)),params:[...t.params||[],...n]}}function E(t){let e=[];if("vconcat"in t&&Array.isArray(t.vconcat))for(let n of t.vconcat)e.push(...E(n));else if("hconcat"in t&&Array.isArray(t.hconcat))for(let n of t.hconcat)e.push(...E(n));else{if("layer"in t)return[];"mark"in t&&"params"in t&&t.params&&t.params.length>0&&e.push({params:t.params})}return e}function jt(t){if(t.length===0)return[];let e=new Map,n=t.length;for(let{params:i}of t){let r=new Set;for(let o of i){let s=_t(o);r.has(s)||(r.add(s),e.has(s)||e.set(s,{count:0,param:o}),e.get(s).count++)}}let a=[];for(let[,{count:i,param:r}]of e)i===n&&a.push(r);return a}function K(t,e){if("vconcat"in t&&Array.isArray(t.vconcat))return{...t,vconcat:t.vconcat.map(n=>K(n,e))};if("hconcat"in t&&Array.isArray(t.hconcat))return{...t,hconcat:t.hconcat.map(n=>K(n,e))};if("mark"in t&&"params"in t&&t.params){let n=t.params,a=[];for(let i of n){if(!i||typeof i!="object"||!("name"in i)){a.push(i);continue}e.has(i.name)||a.push(i)}if(a.length===0){let{params:i,...r}=t;return r}return{...t,params:a}}return t}function L(t,e){return"vconcat"in t&&Array.isArray(t.vconcat)?{...t,vconcat:t.vconcat.map(n=>L(n,e))}:"hconcat"in t&&Array.isArray(t.hconcat)?{...t,hconcat:t.hconcat.map(n=>L(n,e))}:"layer"in t?t:"mark"in t&&x.isInteractive(t.mark)?{...t,mark:x.makeClickable(t.mark),encoding:$("opacity",t.encoding||{},e,t.mark)}:t}function T(t,e){var s,h;let{chartSelection:n=!0,fieldSelection:a=!0}=e;if(!n&&!a)return t;(s=t.params)!=null&&s.some(l=>l.bind==="legend")&&(a=!1);let i=(h=t.params)==null?void 0:h.some(l=>!l.bind);i&&(n=!1);let r="vconcat"in t||"hconcat"in t;if(i&&r)return t;if("vconcat"in t){let l=t.vconcat.map(m=>"mark"in m?T(m,{chartSelection:n,fieldSelection:a}):m);return q({...t,vconcat:l})}if("hconcat"in t){let l=t.hconcat.map(m=>"mark"in m?T(m,{chartSelection:n,fieldSelection:a}):m);return q({...t,hconcat:l})}if("layer"in t){let l=t.params&&t.params.length>0,m=a!==!1&&!l,k=[];if(m){let p=t.layer.flatMap(f=>"mark"in f?G(f):[]);k=[...new Set(p)],Array.isArray(a)&&(k=k.filter(f=>a.includes(f)))}let w=t.layer.map((p,f)=>{if(!("mark"in p))return p;let g=p;if(f===0&&k.length>0){let O=k.map(M=>j.legend(M));g={...g,params:[...g.params||[],...O]}}return g=z(g,n,f),g=J(g),f===0&&(g=B(g)),g});return{...t,layer:w}}if(!("mark"in t)||!x.isInteractive(t.mark))return t;let o=t;return o=Ot(o,a),o=z(o,n,void 0),o=J(o),o=B(o),o}function Ot(t,e){if(e===!1)return t;let n=G(t);Array.isArray(e)&&(n=n.filter(r=>e.includes(r)));let a=n.map(r=>j.legend(r)),i=[...t.params||[],...a];return{...t,params:i}}function z(t,e,n){if(e===!1)return t;let a;try{a=x.getMarkType(t.mark)}catch{return t}if(a==="geoshape")return t;let i=xt(t),r=e===!0?i.length>0?["point"]:Mt(a):[e];if(!r||r.length===0)return t;let o=r.map(h=>h==="interval"?j.interval(t,n):j.point(t,n)),s=[...t.params||[],...o];return i.length>0&&r.includes("point")&&s.push(j.binColoring(n)),{...t,params:s}}function B(t){let e;try{e=x.getMarkType(t.mark)}catch{}if(e==="geoshape")return t;let n=t.params||[];return n.some(a=>a.bind==="scales")?t:{...t,params:[...n,j.panZoom()]}}function J(t){let e="encoding"in t?t.encoding:void 0,n=t.params||[],a=n.map(i=>i.name);return n.length===0||!x.isInteractive(t.mark)?t:{...t,mark:x.makeClickable(t.mark),encoding:$("opacity",e||{},a,t.mark)}}function Mt(t){switch(t){case"arc":case"area":return["point"];case"text":case"bar":return["point","interval"];case"line":return;default:return["point","interval"]}}var Nt=5;async function Pt(t){if(!t)return t;let e="datasets"in t?{...t.datasets}:{},n=new kt(Nt),a=async r=>{if(!r)return r;if("layer"in r){let l=await Promise.all(r.layer.map(a));r={...r,layer:l}}if("hconcat"in r){let l=await Promise.all(r.hconcat.map(a));r={...r,hconcat:l}}if("vconcat"in r){let l=await Promise.all(r.vconcat.map(a));r={...r,vconcat:l}}if("spec"in r&&(r={...r,spec:await a(r.spec)}),!r.data||!("url"in r.data))return r;let o;try{o=H(r.data.url)}catch{return r}let s=r.data.format,h=await n.run(()=>st(o.href,s));return e[o.pathname]=h,{...r,data:{name:o.pathname}}},i=await a(t);return Object.keys(e).length===0?i:{...i,datasets:e}}var d=Z(rt(),1);ut("arrow",vt);var It=t=>{let e=(0,bt.c)(12),{value:n,setValue:a,chartSelection:i,fieldSelection:r,spec:o,embedOptions:s}=t,h,l;e[0]===o?(h=e[1],l=e[2]):(h=async()=>Pt(o),l=[o],e[0]=o,e[1]=h,e[2]=l);let{data:m,error:k}=yt(h,l);if(k){let p;return e[3]===k?p=e[4]:(p=(0,d.jsx)(gt,{error:k}),e[3]=k,e[4]=p),p}if(!m)return null;let w;return e[5]!==i||e[6]!==s||e[7]!==r||e[8]!==m||e[9]!==a||e[10]!==n?(w=(0,d.jsx)(Ct,{value:n,setValue:a,chartSelection:i,fieldSelection:r,spec:m,embedOptions:s}),e[5]=i,e[6]=s,e[7]=r,e[8]=m,e[9]=a,e[10]=n,e[11]=w):w=e[11],w},Ct=({value:t,setValue:e,chartSelection:n,fieldSelection:a,spec:i,embedOptions:r})=>{let{theme:o}=lt(),s=(0,S.useRef)(null),h=(0,S.useRef)(void 0),[l,m]=(0,S.useState)(),k=(0,S.useMemo)(()=>r&&"actions"in r?r.actions:{source:!1,compiled:!1},[r]),w=F(i),p=(0,S.useMemo)(()=>T(wt(w),{chartSelection:n,fieldSelection:a}),[w,n,a]),f=(0,S.useMemo)(()=>P(p),[p]),g=C(c=>{e({...t,...c})}),O=(0,S.useMemo)(()=>et((c,y)=>{_.debug("[Vega signal]",c,y);let b=V.mapValues(y,Kt);b=V.mapValues(b,Et),g({[c]:b})},100),[g]),M=F(f),I=(0,S.useMemo)(()=>M.reduce((c,y)=>(v.PAN_ZOOM===y||v.isBinColoring(y)||c.push({signalName:y,handler:(b,X)=>O(b,X)}),c),[]),[M,O]),R=C(c=>{_.error(c),_.debug(p),m(c)}),Q=C(c=>{_.debug("[Vega view] created",c),h.current=c,m(void 0)}),U=()=>{let c=[];return v.hasPoint(f)&&c.push(["Point selection","click to select a point; hold shift for multi-select"]),v.hasInterval(f)&&c.push(["Interval selection","click and drag to select an interval"]),v.hasLegend(f)&&c.push(["Legend selection","click to select a legend item; hold shift for multi-select"]),v.hasPanZoom(f)&&c.push(["Pan","hold the meta key and drag"],["Zoom","hold the meta key and scroll"]),c.length===0?null:(0,d.jsx)(at,{delayDuration:300,side:"left",content:(0,d.jsx)("div",{className:"text-xs flex flex-col",children:c.map((y,b)=>(0,d.jsxs)("div",{children:[(0,d.jsxs)("span",{className:"font-bold tracking-wide",children:[y[0],":"]})," ",y[1]]},b))}),children:(0,d.jsx)(ot,{className:"absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground"})})},A=ft({ref:s,spec:p,options:{theme:o==="dark"?"dark":void 0,actions:k,mode:"vega-lite",tooltip:mt.call,renderer:"canvas"},onError:R,onEmbed:Q});return(0,S.useEffect)(()=>(I.forEach(({signalName:c,handler:y})=>{try{A==null||A.view.addSignalListener(c,y)}catch(b){_.error(b)}}),()=>{I.forEach(({signalName:c,handler:y})=>{try{A==null||A.view.removeSignalListener(c,y)}catch(b){_.error(b)}})}),[A,I]),(0,d.jsxs)(d.Fragment,{children:[l&&(0,d.jsxs)(ht,{variant:"destructive",children:[(0,d.jsx)(dt,{children:l.message}),(0,d.jsx)("div",{className:"text-md",children:l.stack})]}),(0,d.jsxs)("div",{className:nt("relative"),onPointerDown:it.stopPropagation(),children:[(0,d.jsx)("div",{ref:s,"data-container-width":pt(p)}),U()]})]})};function Et(t){return t instanceof Set?[...t]:t}function Kt(t){return Array.isArray(t)?t.map(e=>e instanceof Date&&ct(e)?new Date(e).getTime():e):t}var Lt=It;export{Lt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as o}from"./velocity-viirwPm7.js";export{o as velocity};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as o,t as r}from"./verilog-CZguTLBV.js";export{r as tlv,o as verilog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as o}from"./vhdl-CAEhCBOl.js";export{o as vhdl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./webidl-BNJg_7gX.js";export{e as webIDL};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r}from"./xquery-CGV_r322.js";export{r as xQuery};
|
package/dist/assets/{xychartDiagram-PRI3JC2R-CmNNcgCM.js → xychartDiagram-PRI3JC2R-DwmHTbm4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var j,Q,K,Z,q,J,tt,it,et,st;import"./purify.es-DBmVz-Wl.js";import{t as zt}from"./linear-
|
|
1
|
+
var j,Q,K,Z,q,J,tt,it,et,st;import"./purify.es-DBmVz-Wl.js";import{t as zt}from"./linear-Dmb_KwjK.js";import{n as ui}from"./ordinal-C9PZ4yw5.js";import{t as xi}from"./range-7fnH_zLA.js";import"./defaultLocale-YteS-k_t.js";import"./src-Cf4NnJCp.js";import{t as Ot}from"./line-BA7eTS55.js";import{i as Wt}from"./chunk-S3R3BYOJ-BuT2smkb.js";import{n as di}from"./init-DRQmrFIb.js";import{n,r as Ft}from"./src-HwYBNPfa.js";import{B as pi,C as Xt,I as fi,T as mi,U as yi,_ as bi,a as Ai,c as Ci,d as wi,v as Si,y as mt,z as ki}from"./chunk-ABZYJK2D-CvNlx3OC.js";import{t as _i}from"./chunk-EXTU4WIE-DcGAJuBg.js";import"./dist-CpSELpRR.js";import{t as Ti}from"./chunk-JA3XYJ7Z-B-G51Lop.js";function yt(){var e=ui().unknown(void 0),t=e.domain,i=e.range,s=0,a=1,l,g,f=!1,p=0,_=0,L=.5;delete e.unknown;function w(){var b=t().length,v=a<s,D=v?a:s,P=v?s:a;l=(P-D)/Math.max(1,b-p+_*2),f&&(l=Math.floor(l)),D+=(P-D-l*(b-p))*L,g=l*(1-p),f&&(D=Math.round(D),g=Math.round(g));var E=xi(b).map(function(m){return D+l*m});return i(v?E.reverse():E)}return e.domain=function(b){return arguments.length?(t(b),w()):t()},e.range=function(b){return arguments.length?([s,a]=b,s=+s,a=+a,w()):[s,a]},e.rangeRound=function(b){return[s,a]=b,s=+s,a=+a,f=!0,w()},e.bandwidth=function(){return g},e.step=function(){return l},e.round=function(b){return arguments.length?(f=!!b,w()):f},e.padding=function(b){return arguments.length?(p=Math.min(1,_=+b),w()):p},e.paddingInner=function(b){return arguments.length?(p=Math.min(1,b),w()):p},e.paddingOuter=function(b){return arguments.length?(_=+b,w()):_},e.align=function(b){return arguments.length?(L=Math.max(0,Math.min(1,b)),w()):L},e.copy=function(){return yt(t(),[s,a]).round(f).paddingInner(p).paddingOuter(_).align(L)},di.apply(w(),arguments)}var bt=(function(){var e=n(function(h,A,x,u){for(x||(x={}),u=h.length;u--;x[h[u]]=A);return x},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],l=[1,6],g=[1,7],f=[1,5,10,12,14,16,18,19,21,23,34,35,36],p=[1,25],_=[1,26],L=[1,28],w=[1,29],b=[1,30],v=[1,31],D=[1,32],P=[1,33],E=[1,34],m=[1,35],T=[1,36],r=[1,37],z=[1,43],O=[1,42],V=[1,47],S=[1,50],c=[1,10,12,14,16,18,19,21,23,34,35,36],M=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],y=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Y=[1,64],U={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(h,A,x,u,k,o,at){var d=o.length-1;switch(k){case 5:u.setOrientation(o[d]);break;case 9:u.setDiagramTitle(o[d].text.trim());break;case 12:u.setLineData({text:"",type:"text"},o[d]);break;case 13:u.setLineData(o[d-1],o[d]);break;case 14:u.setBarData({text:"",type:"text"},o[d]);break;case 15:u.setBarData(o[d-1],o[d]);break;case 16:this.$=o[d].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=o[d].trim(),u.setAccDescription(this.$);break;case 19:this.$=o[d-1];break;case 20:this.$=[Number(o[d-2]),...o[d]];break;case 21:this.$=[Number(o[d])];break;case 22:u.setXAxisTitle(o[d]);break;case 23:u.setXAxisTitle(o[d-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(o[d]);break;case 26:u.setXAxisRangeData(Number(o[d-2]),Number(o[d]));break;case 27:this.$=o[d-1];break;case 28:this.$=[o[d-2],...o[d]];break;case 29:this.$=[o[d]];break;case 30:u.setYAxisTitle(o[d]);break;case 31:u.setYAxisTitle(o[d-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(o[d-2]),Number(o[d]));break;case 37:this.$={text:o[d],type:"text"};break;case 38:this.$={text:o[d],type:"text"};break;case 39:this.$={text:o[d],type:"markdown"};break;case 40:this.$=o[d];break;case 41:this.$=o[d-1]+""+o[d];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:a,35:l,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:a,35:l,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:l,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:a,35:l,36:g}),{1:[2,3]},e(f,[2,5]),e(t,[2,7],{4:22,34:a,35:l,36:g}),{11:23,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:39,13:38,24:z,27:O,29:40,30:41,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:45,15:44,27:V,33:46,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:49,17:48,24:S,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:52,17:51,24:S,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{20:[1,53]},{22:[1,54]},e(c,[2,18]),{1:[2,2]},e(c,[2,8]),e(c,[2,9]),e(M,[2,37],{40:55,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r}),e(M,[2,38]),e(M,[2,39]),e(y,[2,40]),e(y,[2,42]),e(y,[2,43]),e(y,[2,44]),e(y,[2,45]),e(y,[2,46]),e(y,[2,47]),e(y,[2,48]),e(y,[2,49]),e(y,[2,50]),e(y,[2,51]),e(c,[2,10]),e(c,[2,22],{30:41,29:56,24:z,27:O}),e(c,[2,24]),e(c,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},e(c,[2,11]),e(c,[2,30],{33:60,27:V}),e(c,[2,32]),{31:[1,61]},e(c,[2,12]),{17:62,24:S},{25:63,27:Y},e(c,[2,14]),{17:65,24:S},e(c,[2,16]),e(c,[2,17]),e(y,[2,41]),e(c,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(c,[2,31]),{27:[1,69]},e(c,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(c,[2,15]),e(c,[2,26]),e(c,[2,27]),{11:59,32:72,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},e(c,[2,33]),e(c,[2,19]),{25:73,27:Y},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(h,A){if(A.recoverable)this.trace(h);else{var x=Error(h);throw x.hash=A,x}},"parseError"),parse:n(function(h){var A=this,x=[0],u=[],k=[null],o=[],at=this.table,d="",rt=0,vt=0,Et=0,ri=2,Mt=1,li=o.slice.call(arguments,1),R=Object.create(this.lexer),X={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(X.yy[xt]=this.yy[xt]);R.setInput(h,X.yy),X.yy.lexer=R,X.yy.parser=this,R.yylloc===void 0&&(R.yylloc={});var dt=R.yylloc;o.push(dt);var ci=R.options&&R.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gi(B){x.length-=2*B,k.length-=B,o.length-=B}n(gi,"popStack");function It(){var B=u.pop()||R.lex()||Mt;return typeof B!="number"&&(B instanceof Array&&(u=B,B=u.pop()),B=A.symbols_[B]||B),B}n(It,"lex");for(var I,pt,N,$,ft,H={},lt,W,$t,ct;;){if(N=x[x.length-1],this.defaultActions[N]?$=this.defaultActions[N]:(I??(I=It()),$=at[N]&&at[N][I]),$===void 0||!$.length||!$[0]){var Bt="";for(lt in ct=[],at[N])this.terminals_[lt]&<>ri&&ct.push("'"+this.terminals_[lt]+"'");Bt=R.showPosition?"Parse error on line "+(rt+1)+`:
|
|
2
2
|
`+R.showPosition()+`
|
|
3
3
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[I]||I)+"'":"Parse error on line "+(rt+1)+": Unexpected "+(I==Mt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Bt,{text:R.match,token:this.terminals_[I]||I,line:R.yylineno,loc:dt,expected:ct})}if($[0]instanceof Array&&$.length>1)throw Error("Parse Error: multiple actions possible at state: "+N+", token: "+I);switch($[0]){case 1:x.push(I),k.push(R.yytext),o.push(R.yylloc),x.push($[1]),I=null,pt?(I=pt,pt=null):(vt=R.yyleng,d=R.yytext,rt=R.yylineno,dt=R.yylloc,Et>0&&Et--);break;case 2:if(W=this.productions_[$[1]][1],H.$=k[k.length-W],H._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},ci&&(H._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),ft=this.performAction.apply(H,[d,vt,rt,X.yy,$[1],k,o].concat(li)),ft!==void 0)return ft;W&&(x=x.slice(0,-1*W*2),k=k.slice(0,-1*W),o=o.slice(0,-1*W)),x.push(this.productions_[$[1]][0]),k.push(H.$),o.push(H._$),$t=at[x[x.length-2]][x[x.length-1]],x.push($t);break;case 3:return!0}}return!0},"parse")};U.lexer=(function(){return{EOF:1,parseError:n(function(h,A){if(this.yy.parser)this.yy.parser.parseError(h,A);else throw Error(h)},"parseError"),setInput:n(function(h,A){return this.yy=A||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var h=this._input[0];return this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h,h.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var A=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===u.length?this.yylloc.first_column:0)+u[u.length-x.length].length-x[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),A=Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a}from"./yacas-uRzw7z7m.js";export{a as yacas};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as a,t as e}from"./z80-CBK8t-9T.js";export{e as ez80,a as z80};
|
package/dist/index.html
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
|
|
67
67
|
<!-- /TODO -->
|
|
68
68
|
<title>{{ title }}</title>
|
|
69
|
-
<script type="module" crossorigin src="./assets/index-
|
|
69
|
+
<script type="module" crossorigin src="./assets/index-fXenSTRv.js"></script>
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DItdS47A.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="./assets/chunk-LvLJmgfZ.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="./assets/react-Bj1aDYRI.js">
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
<link rel="modulepreload" crossorigin href="./assets/debounce-DhnxH9Rh.js">
|
|
134
134
|
<link rel="modulepreload" crossorigin href="./assets/database-zap-kIkTfzTX.js">
|
|
135
135
|
<link rel="modulepreload" crossorigin href="./assets/main-B0OX4z33.js">
|
|
136
|
-
<link rel="modulepreload" crossorigin href="./assets/cells-
|
|
136
|
+
<link rel="modulepreload" crossorigin href="./assets/cells-BBDzmUIS.js">
|
|
137
137
|
<link rel="modulepreload" crossorigin href="./assets/ErrorBoundary-DzYV_VeY.js">
|
|
138
138
|
<link rel="modulepreload" crossorigin href="./assets/kbd-B3Breaz2.js">
|
|
139
139
|
<link rel="modulepreload" crossorigin href="./assets/useInstallPackage-D0NLybAx.js">
|
|
@@ -147,36 +147,36 @@
|
|
|
147
147
|
<link rel="modulepreload" crossorigin href="./assets/usePress-CfcdTqJM.js">
|
|
148
148
|
<link rel="modulepreload" crossorigin href="./assets/input-BX98vgAu.js">
|
|
149
149
|
<link rel="modulepreload" crossorigin href="./assets/ImperativeModal-D7lQ0Q7_.js">
|
|
150
|
-
<link rel="modulepreload" crossorigin href="./assets/cell-link-
|
|
150
|
+
<link rel="modulepreload" crossorigin href="./assets/cell-link-DqiCeeeS.js">
|
|
151
151
|
<link rel="modulepreload" crossorigin href="./assets/multi-map-rafH3cg3.js">
|
|
152
152
|
<link rel="modulepreload" crossorigin href="./assets/alert-DvqcBMUv.js">
|
|
153
153
|
<link rel="modulepreload" crossorigin href="./assets/chevron-right-CG5QYXYk.js">
|
|
154
154
|
<link rel="modulepreload" crossorigin href="./assets/dropdown-menu-D1A3cFC8.js">
|
|
155
155
|
<link rel="modulepreload" crossorigin href="./assets/links-Dpap8NI2.js">
|
|
156
|
-
<link rel="modulepreload" crossorigin href="./assets/useRunCells-
|
|
156
|
+
<link rel="modulepreload" crossorigin href="./assets/useRunCells-RJeImyCn.js">
|
|
157
157
|
<link rel="modulepreload" crossorigin href="./assets/copy-BCF-tANo.js">
|
|
158
158
|
<link rel="modulepreload" crossorigin href="./assets/copy-BwrPA9zQ.js">
|
|
159
159
|
<link rel="modulepreload" crossorigin href="./assets/copy-icon-BYNydU7b.js">
|
|
160
|
-
<link rel="modulepreload" crossorigin href="./assets/RenderHTML-
|
|
161
|
-
<link rel="modulepreload" crossorigin href="./assets/datasource-
|
|
162
|
-
<link rel="modulepreload" crossorigin href="./assets/state-
|
|
160
|
+
<link rel="modulepreload" crossorigin href="./assets/RenderHTML-CruxVneu.js">
|
|
161
|
+
<link rel="modulepreload" crossorigin href="./assets/datasource-CmTCEk66.js">
|
|
162
|
+
<link rel="modulepreload" crossorigin href="./assets/state-DzJiyfWW.js">
|
|
163
163
|
<link rel="modulepreload" crossorigin href="./assets/sparkles-CZ5WmLPA.js">
|
|
164
|
-
<link rel="modulepreload" crossorigin href="./assets/MarimoErrorOutput-
|
|
164
|
+
<link rel="modulepreload" crossorigin href="./assets/MarimoErrorOutput-ClA7EZGX.js">
|
|
165
165
|
<link rel="modulepreload" crossorigin href="./assets/spinner-Bhir8k53.js">
|
|
166
|
-
<link rel="modulepreload" crossorigin href="./assets/html-to-image-
|
|
167
|
-
<link rel="modulepreload" crossorigin href="./assets/focus-
|
|
166
|
+
<link rel="modulepreload" crossorigin href="./assets/html-to-image-CAiN3VHj.js">
|
|
167
|
+
<link rel="modulepreload" crossorigin href="./assets/focus-J47a1GCq.js">
|
|
168
168
|
<link rel="modulepreload" crossorigin href="./assets/useAsyncData-BFC6lWG9.js">
|
|
169
|
-
<link rel="modulepreload" crossorigin href="./assets/LazyAnyLanguageCodeMirror-
|
|
169
|
+
<link rel="modulepreload" crossorigin href="./assets/LazyAnyLanguageCodeMirror-pAFdCqyC.js">
|
|
170
170
|
<link rel="modulepreload" crossorigin href="./assets/micromark-factory-space-DzSMahmM.js">
|
|
171
|
-
<link rel="modulepreload" crossorigin href="./assets/chunk-5FQGJX7Z-
|
|
172
|
-
<link rel="modulepreload" crossorigin href="./assets/markdown-renderer-
|
|
171
|
+
<link rel="modulepreload" crossorigin href="./assets/chunk-5FQGJX7Z-BReOK4Lg.js">
|
|
172
|
+
<link rel="modulepreload" crossorigin href="./assets/markdown-renderer-CVd_mMPt.js">
|
|
173
173
|
<link rel="modulepreload" crossorigin href="./assets/command-CBCkexpx.js">
|
|
174
174
|
<link rel="modulepreload" crossorigin href="./assets/popover-UExmgBsf.js">
|
|
175
|
-
<link rel="modulepreload" crossorigin href="./assets/errors-
|
|
176
|
-
<link rel="modulepreload" crossorigin href="./assets/download-
|
|
175
|
+
<link rel="modulepreload" crossorigin href="./assets/errors-CPlNr33a.js">
|
|
176
|
+
<link rel="modulepreload" crossorigin href="./assets/download-QGh9oR1D.js">
|
|
177
177
|
<link rel="modulepreload" crossorigin href="./assets/table-DPyRV1LT.js">
|
|
178
178
|
<link rel="modulepreload" crossorigin href="./assets/useIframeCapabilities-BvE4n6hj.js">
|
|
179
|
-
<link rel="modulepreload" crossorigin href="./assets/error-banner-
|
|
179
|
+
<link rel="modulepreload" crossorigin href="./assets/error-banner-C10O4l3y.js">
|
|
180
180
|
<link rel="modulepreload" crossorigin href="./assets/formats-Dsc8AdCp.js">
|
|
181
181
|
<link rel="modulepreload" crossorigin href="./assets/en-US-D_il4jD7.js">
|
|
182
182
|
<link rel="modulepreload" crossorigin href="./assets/isValid-C8T5uJYI.js">
|
|
@@ -191,47 +191,48 @@
|
|
|
191
191
|
<link rel="modulepreload" crossorigin href="./assets/message-circle-CWm2KnSx.js">
|
|
192
192
|
<link rel="modulepreload" crossorigin href="./assets/trash-2-CKlZA04n.js">
|
|
193
193
|
<link rel="modulepreload" crossorigin href="./assets/react-resizable-panels.browser.esm-BUNcfKXO.js">
|
|
194
|
-
<link rel="modulepreload" crossorigin href="./assets/JsonOutput-
|
|
194
|
+
<link rel="modulepreload" crossorigin href="./assets/JsonOutput-B0sjIMBK.js">
|
|
195
195
|
<link rel="modulepreload" crossorigin href="./assets/chart-no-axes-column-nqk474t8.js">
|
|
196
196
|
<link rel="modulepreload" crossorigin href="./assets/square-function-D1dlJvD8.js">
|
|
197
197
|
<link rel="modulepreload" crossorigin href="./assets/spec-Cq8FVoTf.js">
|
|
198
198
|
<link rel="modulepreload" crossorigin href="./assets/ellipsis-vertical-CkwWkOQL.js">
|
|
199
199
|
<link rel="modulepreload" crossorigin href="./assets/refresh-cw-DHwG4Mac.js">
|
|
200
200
|
<link rel="modulepreload" crossorigin href="./assets/tree-actions-Ci3CV3hN.js">
|
|
201
|
-
<link rel="modulepreload" crossorigin href="./assets/components-
|
|
202
|
-
<link rel="modulepreload" crossorigin href="./assets/column-preview-
|
|
201
|
+
<link rel="modulepreload" crossorigin href="./assets/components-CTKNCmC_.js">
|
|
202
|
+
<link rel="modulepreload" crossorigin href="./assets/column-preview-Xuel1zsI.js">
|
|
203
203
|
<link rel="modulepreload" crossorigin href="./assets/icons-D9TuFTJG.js">
|
|
204
|
-
<link rel="modulepreload" crossorigin href="./assets/radio-group-
|
|
205
|
-
<link rel="modulepreload" crossorigin href="./assets/floating-outline-
|
|
204
|
+
<link rel="modulepreload" crossorigin href="./assets/radio-group-CpHTexlq.js">
|
|
205
|
+
<link rel="modulepreload" crossorigin href="./assets/floating-outline-CFUSr2du.js">
|
|
206
206
|
<link rel="modulepreload" crossorigin href="./assets/objectWithoutPropertiesLoose-DaPAPabU.js">
|
|
207
207
|
<link rel="modulepreload" crossorigin href="./assets/esm-BmrwxxCo.js">
|
|
208
208
|
<link rel="modulepreload" crossorigin href="./assets/eye-off-n1Li95bE.js">
|
|
209
209
|
<link rel="modulepreload" crossorigin href="./assets/plus-BgB18UzY.js">
|
|
210
|
-
<link rel="modulepreload" crossorigin href="./assets/readonly-python-code-
|
|
210
|
+
<link rel="modulepreload" crossorigin href="./assets/readonly-python-code-DOXF2p8K.js">
|
|
211
211
|
<link rel="modulepreload" crossorigin href="./assets/file-headphone-BrQspHac.js">
|
|
212
212
|
<link rel="modulepreload" crossorigin href="./assets/file-BrdxGLRX.js">
|
|
213
213
|
<link rel="modulepreload" crossorigin href="./assets/image-DQHXdEQn.js">
|
|
214
|
-
<link rel="modulepreload" crossorigin href="./assets/file-icons-
|
|
214
|
+
<link rel="modulepreload" crossorigin href="./assets/file-icons-Cs4oXsAy.js">
|
|
215
215
|
<link rel="modulepreload" crossorigin href="./assets/switch-BvybnC9P.js">
|
|
216
216
|
<link rel="modulepreload" crossorigin href="./assets/events-BRAWQiYK.js">
|
|
217
217
|
<link rel="modulepreload" crossorigin href="./assets/globals-DUw71mRV.js">
|
|
218
|
-
<link rel="modulepreload" crossorigin href="./assets/share-
|
|
219
|
-
<link rel="modulepreload" crossorigin href="./assets/blob-
|
|
218
|
+
<link rel="modulepreload" crossorigin href="./assets/share-CqnSBwZy.js">
|
|
219
|
+
<link rel="modulepreload" crossorigin href="./assets/blob-Daju1h1M.js">
|
|
220
220
|
<link rel="modulepreload" crossorigin href="./assets/memoize-Tp7rARFe.js">
|
|
221
221
|
<link rel="modulepreload" crossorigin href="./assets/get-C-qh_et5.js">
|
|
222
222
|
<link rel="modulepreload" crossorigin href="./assets/_baseSet-CxV9N1bc.js">
|
|
223
|
-
<link rel="modulepreload" crossorigin href="./assets/state-
|
|
223
|
+
<link rel="modulepreload" crossorigin href="./assets/state-B_kYpAQh.js">
|
|
224
224
|
<link rel="modulepreload" crossorigin href="./assets/label-DTR8T0AE.js">
|
|
225
|
-
<link rel="modulepreload" crossorigin href="./assets/textarea-
|
|
225
|
+
<link rel="modulepreload" crossorigin href="./assets/textarea-bAp21zYj.js">
|
|
226
226
|
<link rel="modulepreload" crossorigin href="./assets/refresh-ccw-C-n2VFP5.js">
|
|
227
|
-
<link rel="modulepreload" crossorigin href="./assets/form-
|
|
227
|
+
<link rel="modulepreload" crossorigin href="./assets/form-CdFqEqTA.js">
|
|
228
228
|
<link rel="modulepreload" crossorigin href="./assets/renderShortcut-Bfk4NjRL.js">
|
|
229
229
|
<link rel="modulepreload" crossorigin href="./assets/field-BrLPDxsA.js">
|
|
230
230
|
<link rel="modulepreload" crossorigin href="./assets/RSPContexts-CINae4Gg.js">
|
|
231
231
|
<link rel="modulepreload" crossorigin href="./assets/useBoolean-xXcxYCaI.js">
|
|
232
232
|
<link rel="modulepreload" crossorigin href="./assets/useDeepCompareMemoize-D0WTlCXt.js">
|
|
233
233
|
<link rel="modulepreload" crossorigin href="./assets/types-W8WWuumF.js">
|
|
234
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
234
|
+
<link rel="modulepreload" crossorigin href="./assets/semaphore-QJCD9q3h.js">
|
|
235
|
+
<link rel="modulepreload" crossorigin href="./assets/fileToBase64-Dpv4aII5.js">
|
|
235
236
|
<link rel="modulepreload" crossorigin href="./assets/pathUtils-DOhgNpTR.js">
|
|
236
237
|
<link rel="modulepreload" crossorigin href="./assets/prop-types-BiQYf0aU.js">
|
|
237
238
|
<link rel="modulepreload" crossorigin href="./assets/es-DaYh1PsD.js">
|
|
@@ -246,7 +247,7 @@
|
|
|
246
247
|
<link rel="stylesheet" crossorigin href="./assets/cells-jmgGt1lS.css">
|
|
247
248
|
<link rel="stylesheet" crossorigin href="./assets/markdown-renderer-DdDKmWlR.css">
|
|
248
249
|
<link rel="stylesheet" crossorigin href="./assets/JsonOutput-B7vuddcd.css">
|
|
249
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
250
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BbBhLC0d.css">
|
|
250
251
|
</head>
|
|
251
252
|
<body>
|
|
252
253
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@ interface TableTopBarProps extends Partial<ExportActionProps> {
|
|
|
34
34
|
showTableExplorer?: boolean;
|
|
35
35
|
togglePanel?: (panelType: PanelType) => void;
|
|
36
36
|
isAnyPanelOpen?: boolean;
|
|
37
|
+
sizeBytes?: number | null;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export const TableTopBar: React.FC<TableTopBarProps> = ({
|
|
@@ -48,6 +49,7 @@ export const TableTopBar: React.FC<TableTopBarProps> = ({
|
|
|
48
49
|
togglePanel,
|
|
49
50
|
isAnyPanelOpen,
|
|
50
51
|
downloadAs,
|
|
52
|
+
sizeBytes,
|
|
51
53
|
}) => {
|
|
52
54
|
const [internalValue, setInternalValue] = useState(searchQuery || "");
|
|
53
55
|
const debouncedSearch = useDebounce(internalValue, 500);
|
|
@@ -130,7 +132,9 @@ export const TableTopBar: React.FC<TableTopBarProps> = ({
|
|
|
130
132
|
Explore
|
|
131
133
|
</Button>
|
|
132
134
|
)}
|
|
133
|
-
{downloadAs &&
|
|
135
|
+
{downloadAs && (
|
|
136
|
+
<ExportMenu downloadAs={downloadAs} sizeBytes={sizeBytes} />
|
|
137
|
+
)}
|
|
134
138
|
</div>
|
|
135
139
|
</div>
|
|
136
140
|
);
|
|
@@ -70,6 +70,9 @@ interface DataTableProps<TData> extends Partial<ExportActionProps> {
|
|
|
70
70
|
setSorting?: OnChangeFn<SortingState>; // controlled sorting
|
|
71
71
|
// Pagination
|
|
72
72
|
totalRows: number | TooManyRows;
|
|
73
|
+
// JSON-serialized size of the currently-rendered data. Forwarded to
|
|
74
|
+
// ExportMenu so hosts can size-gate the Export button via downloadSizeLimitAtom.
|
|
75
|
+
sizeBytes?: number | null;
|
|
73
76
|
totalColumns: number;
|
|
74
77
|
pagination?: boolean;
|
|
75
78
|
manualPagination?: boolean; // server-side pagination
|
|
@@ -121,6 +124,7 @@ const DataTableInternal = <TData,>({
|
|
|
121
124
|
selection,
|
|
122
125
|
totalColumns,
|
|
123
126
|
totalRows,
|
|
127
|
+
sizeBytes,
|
|
124
128
|
manualSorting = false,
|
|
125
129
|
sorting,
|
|
126
130
|
setSorting,
|
|
@@ -309,6 +313,7 @@ const DataTableInternal = <TData,>({
|
|
|
309
313
|
togglePanel={togglePanel}
|
|
310
314
|
isAnyPanelOpen={isAnyPanelOpen}
|
|
311
315
|
downloadAs={downloadAs}
|
|
316
|
+
sizeBytes={sizeBytes}
|
|
312
317
|
/>
|
|
313
318
|
<Table
|
|
314
319
|
className={cn(
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
+
import { useAtomValue } from "jotai";
|
|
3
4
|
import {
|
|
4
5
|
BracesIcon,
|
|
5
6
|
BrickWallIcon,
|
|
@@ -9,6 +10,7 @@ import {
|
|
|
9
10
|
} from "lucide-react";
|
|
10
11
|
import React from "react";
|
|
11
12
|
import { useLocale } from "react-aria";
|
|
13
|
+
import { downloadSizeLimitAtom } from "./download-policy/atoms";
|
|
12
14
|
import { logNever } from "@/utils/assertNever";
|
|
13
15
|
import { cn } from "@/utils/cn";
|
|
14
16
|
import { copyToClipboard } from "@/utils/copy";
|
|
@@ -84,6 +86,11 @@ export interface ExportActionProps {
|
|
|
84
86
|
error?: string | null;
|
|
85
87
|
missing_packages?: string[] | null;
|
|
86
88
|
}>;
|
|
89
|
+
// JSON-serialized size of the currently-rendered data. Used together with
|
|
90
|
+
// downloadSizeLimitAtom to disable the Export button when a host (e.g.,
|
|
91
|
+
// marimo-lsp inside VS Code) declares a download size cap. Null/undefined
|
|
92
|
+
// means "no info" and the gate stays disabled (fail-open).
|
|
93
|
+
sizeBytes?: number | null;
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
const labelForDownloadFormat = (format: DownloadFormat): string =>
|
|
@@ -94,12 +101,19 @@ const labelForCopyFormat = (format: CopyFormat): string =>
|
|
|
94
101
|
export const ExportMenu: React.FC<ExportActionProps> = (props) => {
|
|
95
102
|
const { locale } = useLocale();
|
|
96
103
|
const [open, setOpen] = React.useState(false);
|
|
104
|
+
const policy = useAtomValue(downloadSizeLimitAtom);
|
|
105
|
+
const disabled = !!(
|
|
106
|
+
policy &&
|
|
107
|
+
props.sizeBytes != null &&
|
|
108
|
+
props.sizeBytes > policy.limitBytes
|
|
109
|
+
);
|
|
97
110
|
|
|
98
111
|
const button = (
|
|
99
112
|
<Button
|
|
100
113
|
data-testid="export-button"
|
|
101
114
|
size="xs"
|
|
102
115
|
variant="text"
|
|
116
|
+
disabled={disabled}
|
|
103
117
|
className={cn(
|
|
104
118
|
"print:hidden text-xs gap-1",
|
|
105
119
|
open ? "text-primary" : "text-muted-foreground",
|
|
@@ -113,7 +127,10 @@ export const ExportMenu: React.FC<ExportActionProps> = (props) => {
|
|
|
113
127
|
const resolveDownloadUrl = async (
|
|
114
128
|
format: DownloadFormat,
|
|
115
129
|
onRetry: () => void,
|
|
116
|
-
): Promise<{
|
|
130
|
+
): Promise<{
|
|
131
|
+
url: string;
|
|
132
|
+
filename: string;
|
|
133
|
+
} | null> => {
|
|
117
134
|
let response: Awaited<ReturnType<typeof props.downloadAs>>;
|
|
118
135
|
try {
|
|
119
136
|
response = await props.downloadAs({ format });
|
|
@@ -143,7 +160,10 @@ export const ExportMenu: React.FC<ExportActionProps> = (props) => {
|
|
|
143
160
|
return null;
|
|
144
161
|
}
|
|
145
162
|
|
|
146
|
-
return {
|
|
163
|
+
return {
|
|
164
|
+
url: response.url,
|
|
165
|
+
filename: response.filename,
|
|
166
|
+
};
|
|
147
167
|
};
|
|
148
168
|
|
|
149
169
|
const handleDownload = async (format: DownloadFormat) => {
|
|
@@ -229,8 +249,15 @@ export const ExportMenu: React.FC<ExportActionProps> = (props) => {
|
|
|
229
249
|
|
|
230
250
|
return (
|
|
231
251
|
<DropdownMenu modal={false} open={open} onOpenChange={setOpen}>
|
|
232
|
-
<Tooltip
|
|
233
|
-
|
|
252
|
+
<Tooltip
|
|
253
|
+
content={disabled ? policy?.unavailableMessage : "Export"}
|
|
254
|
+
open={open ? false : undefined}
|
|
255
|
+
>
|
|
256
|
+
<DropdownMenuTrigger asChild={true} disabled={disabled}>
|
|
257
|
+
<span tabIndex={disabled ? 0 : -1} className="inline-flex">
|
|
258
|
+
{button}
|
|
259
|
+
</span>
|
|
260
|
+
</DropdownMenuTrigger>
|
|
234
261
|
</Tooltip>
|
|
235
262
|
<DropdownMenuContent side="bottom" className="print:hidden">
|
|
236
263
|
<DropdownMenuLabel className="text-xs text-muted-foreground">
|