@marimo-team/frontend 0.17.7 → 0.17.8
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-DPXKKvLP.js +1 -0
- package/dist/assets/Combination-CJczP3q7.js +41 -0
- package/dist/assets/ConnectedDataExplorerComponent-CrybKOL3.js +1 -0
- package/dist/assets/ConsoleOutput-BwPQWTZk.js +4 -0
- package/dist/assets/ErrorBoundary-Bu1xrDr8.js +1 -0
- package/dist/assets/ImageComparisonComponent-8Ap5uC96.js +1 -0
- package/dist/assets/ImperativeModal-kroC_7ut.js +1 -0
- package/dist/assets/Inputs-BbLBkwsf.js +1 -0
- package/dist/assets/LazyAnyLanguageCodeMirror-C5EeHVjE.js +2 -0
- package/dist/assets/MarimoErrorOutput-CkZl2oHu.js +9 -0
- package/dist/assets/Output-bwodJiCi.js +142 -0
- package/dist/assets/RenderHTML-DII6L-pL.js +1 -0
- package/dist/assets/SSRProvider-3gFeNiun.js +1 -0
- package/dist/assets/TinyCode-DJQhIrSL.js +1 -0
- package/dist/assets/VisuallyHidden-BhVlvbgE.js +1 -0
- package/dist/assets/__vite-browser-external-CuxDRaqz.js +1 -0
- package/dist/assets/__vite-browser-external-D9FJ-Z-a.js +1 -0
- package/dist/assets/activity-BNdjhxvI.js +1 -0
- package/dist/assets/add-cell-with-ai-B5g8vtHB.js +81 -0
- package/dist/assets/add-database-form-B0YECN2g.js +111 -0
- package/dist/assets/add-missing-import-CgnlhMvv.js +1 -0
- package/dist/assets/agent-panel-BYnzVe0R.js +287 -0
- package/dist/assets/ai-model-dropdown-BuNmF2aO.js +2 -0
- package/dist/assets/alert-DZiaW65G.js +1 -0
- package/dist/assets/alert-dialog-DkIHCxse.js +11 -0
- package/dist/assets/any-language-editor-B7W68S9J.js +3 -0
- package/dist/assets/api-B8WZp3pa.js +1 -0
- package/dist/assets/apl-DiFyycVh.js +1 -0
- package/dist/assets/app-config-button-BnK3MhdN.js +1 -0
- package/dist/assets/arc-b6bpmWtg.js +1 -0
- package/dist/assets/architecture-O4VJ6CD3-D5UQoxsD.js +1 -0
- package/dist/assets/architectureDiagram-W76B3OCA-1_iwowZU.js +36 -0
- package/dist/assets/arrow-left-qLn5JMUD.js +1 -0
- package/dist/assets/asciiarmor-BAWhqgpM.js +1 -0
- package/dist/assets/asn1-CtTMtM_b.js +1 -0
- package/dist/assets/badge-DrRlgkPx.js +1 -0
- package/dist/assets/between-horizontal-start-DDhAeomy.js +1 -0
- package/dist/assets/blockDiagram-QIGZ2CNN-DCAPq0ef.js +122 -0
- package/dist/assets/brainfuck-D-g39Tsa.js +1 -0
- package/dist/assets/bundle.esm-CC-LjhS-.js +1 -0
- package/dist/assets/button-DCB7VoVL.js +1 -0
- package/dist/assets/c4Diagram-FPNF74CW-4lagj5hx.js +10 -0
- package/dist/assets/cache-panel-BLbtgeIs.js +1 -0
- package/dist/assets/capabilities-MLRWIHmO.js +1 -0
- package/dist/assets/cell-actions-CwdXjy3R.js +1 -0
- package/dist/assets/cell-editor-D0N0SRM2.js +23 -0
- package/dist/assets/cell-link-CGc-QK-U.js +1 -0
- package/dist/assets/cells-CAMtfgeb.js +143 -0
- package/dist/assets/channel-BPB6RU50.js +1 -0
- package/dist/assets/chart-no-axes-column-C14EHesU.js +1 -0
- package/dist/assets/chat-components-BFOUN3AU.js +4 -0
- package/dist/assets/chat-panel-B_haFrpw.js +3 -0
- package/dist/assets/check-DqnGmZZE.js +1 -0
- package/dist/assets/chevron-right-Bu29x-gp.js +1 -0
- package/dist/assets/chunk-3AY6CYHV-DcvWgaJi.js +7 -0
- package/dist/assets/chunk-4BX2VUAB-CvXXOeUJ.js +1 -0
- package/dist/assets/chunk-55IACEB6-BD22fxS8.js +1 -0
- package/dist/assets/chunk-6OXUPJBA-D35vZZTe.js +2 -0
- package/dist/assets/chunk-7GE3RBXV-Ds_00JTJ.js +1 -0
- package/dist/assets/chunk-ABZYJK2D-4pv2vB7F.js +80 -0
- package/dist/assets/chunk-BN7GFLIU-B1gloQOG.js +1 -0
- package/dist/assets/chunk-CVBHYZKI-SXlNTOC2.js +1 -0
- package/dist/assets/chunk-CXMOBAN2-I90XR5Ox.js +54 -0
- package/dist/assets/chunk-EXTU4WIE-C6pnnksK.js +1 -0
- package/dist/assets/chunk-FMBD7UC4-CDBZqENA.js +15 -0
- package/dist/assets/chunk-JA3XYJ7Z-B2fvRAXr.js +11 -0
- package/dist/assets/chunk-JEIROHC2-CnPazemR.js +1 -0
- package/dist/assets/chunk-K7UQS3LO-CHpuNy1n.js +165 -0
- package/dist/assets/chunk-KMC2YHZD-B3DMNOXh.js +1 -0
- package/dist/assets/chunk-QN33PNHL-smsGJyAL.js +1 -0
- package/dist/assets/chunk-QYVHNE3D-BzVwaz8x.js +1 -0
- package/dist/assets/chunk-QZHKN3VN-tC69h88k.js +1 -0
- package/dist/assets/chunk-S3R3BYOJ-Oudh3LU4.js +2 -0
- package/dist/assets/chunk-T44TD3VJ-BZiyoqMg.js +1 -0
- package/dist/assets/chunk-TVAH2DTR-Cpequ-Jj.js +220 -0
- package/dist/assets/chunk-TZMSLE5B-DjoDt_XA.js +1 -0
- package/dist/assets/chunk-WFRQ32O7-CbRYDoKx.js +1 -0
- package/dist/assets/chunk-WFWHJNB7-CsCaphr8.js +1 -0
- package/dist/assets/chunk-XRWGC2XP-yBfdbqfJ.js +1 -0
- package/dist/assets/chunk-ZPAFE4SF-Di6HadFg.js +32 -0
- package/dist/assets/circle-check-CBK5T4zt.js +1 -0
- package/dist/assets/circle-play-CeluX0l1.js +1 -0
- package/dist/assets/circle-plus-gt8rkr_9.js +1 -0
- package/dist/assets/circle-x-65ujNh_O.js +1 -0
- package/dist/assets/classDiagram-KNZD7YFC-BnNfNWns.js +1 -0
- package/dist/assets/classDiagram-v2-RKCZMP56-Clk73TSx.js +1 -0
- package/dist/assets/clear-button-BVzc0Myi.js +1 -0
- package/dist/assets/click-outside-container-C6DEV18a.js +1 -0
- package/dist/assets/client-DwlQbzrX.js +2 -0
- package/dist/assets/clike-Del1aM7V.js +1 -0
- package/dist/assets/clipboard-paste-BBZtk4_E.js +1 -0
- package/dist/assets/clojure-DmTswoFG.js +1 -0
- package/dist/assets/cmake-DAoCuUDE.js +1 -0
- package/dist/assets/cobol-BE9N6AQ-.js +1 -0
- package/dist/assets/coffeescript-BRP8S7ZW.js +1 -0
- package/dist/assets/column-preview-CEDUFvMb.js +1 -0
- package/dist/assets/command-CgWi9W7A.js +1 -0
- package/dist/assets/command-palette-ChAq8XO9.js +1 -0
- package/dist/assets/common-CO0-iaVr.js +1 -0
- package/dist/assets/commonlisp-BS8oQjGE.js +1 -0
- package/dist/assets/compiler-runtime-bbSa6V1W.js +1 -0
- package/dist/assets/config-DOzlN8_n.js +1 -0
- package/dist/assets/connection-DOETP_K0.js +1 -0
- package/dist/assets/context-By5V2JVn.js +1 -0
- package/dist/assets/copy-4VJP-N0g.js +1 -0
- package/dist/assets/copy-icon-DFLZbTfh.js +1 -0
- package/dist/assets/copy-zuiMeyCQ.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-B9AnQXpu.js +1 -0
- package/dist/assets/createLucideIcon-DbfgBYhq.js +1 -0
- package/dist/assets/createReducer-CTvsuJZY.js +1 -0
- package/dist/assets/crystal-CRDMNjDv.js +1 -0
- package/dist/assets/css-us97Iddy.js +1 -0
- package/dist/assets/cypher-CBH6XzVc.js +1 -0
- package/dist/assets/cytoscape.esm-Cim8wi13.js +321 -0
- package/dist/assets/d-CKwQ35PI.js +1 -0
- package/dist/assets/dagre-5GWH7T2D-DWxayQuB.js +4 -0
- package/dist/assets/data-grid-overlay-editor-CAOCvAeu.js +1 -0
- package/dist/assets/database-zap-90vKfRkX.js +1 -0
- package/dist/assets/datasources-panel-BhiR0CNG.js +1 -0
- package/dist/assets/dependency-graph-panel-bUxgpxDE.js +4 -0
- package/dist/assets/diagram-N5W7TBWH-D3ZhjCs3.js +24 -0
- package/dist/assets/diagram-QEK2KX5R-Cb35QTLr.js +43 -0
- package/dist/assets/diagram-S2PKOQOG-CIOc0Udk.js +24 -0
- package/dist/assets/dialog-DZWinI5N.js +1 -0
- package/dist/assets/diff-BtPrcYlV.js +1 -0
- package/dist/assets/dist--8e9VGsl.js +1 -0
- package/dist/assets/dist-0FJpM7wG.js +1 -0
- package/dist/assets/dist-2rBXr-aS.js +1 -0
- package/dist/assets/dist-4GQeuWFQ.js +1 -0
- package/dist/assets/dist-B1wJF59y.js +1 -0
- package/dist/assets/dist-BFSjfL-I.js +2 -0
- package/dist/assets/dist-BGeFWVD6.js +1 -0
- package/dist/assets/dist-BGgBzoiO.js +1 -0
- package/dist/assets/dist-BN-1z8mm.js +1 -0
- package/dist/assets/dist-BUfDRi87.js +1 -0
- package/dist/assets/dist-BdkKJ3G3.js +1 -0
- package/dist/assets/dist-BrS3KFEl.js +1 -0
- package/dist/assets/dist-Bu5OuYeo.js +1 -0
- package/dist/assets/dist-BuEd4VGV.js +1 -0
- package/dist/assets/dist-Bw_ceTOd.js +1 -0
- package/dist/assets/dist-C6GW8SWp.js +13 -0
- package/dist/assets/dist-CAFoFFJF.js +1 -0
- package/dist/assets/dist-CIThMDB8.js +1 -0
- package/dist/assets/dist-CJIkd1DM.js +1 -0
- package/dist/assets/dist-CNZQfa8W.js +1 -0
- package/dist/assets/dist-COUwO6Q6.js +1 -0
- package/dist/assets/dist-CXTAKsYC.js +1 -0
- package/dist/assets/dist-CZkQ2hcE.js +1 -0
- package/dist/assets/dist-CbT0RiD0.js +260 -0
- package/dist/assets/dist-Cl7otIMy.js +3 -0
- package/dist/assets/dist-CmEn1nMp.js +1 -0
- package/dist/assets/dist-Cn3C5h2V.js +1 -0
- package/dist/assets/dist-CoVfzd-4.js +1 -0
- package/dist/assets/dist-CrvuMM2L.js +1 -0
- package/dist/assets/dist-CvIoRIOp.js +2 -0
- package/dist/assets/dist-CzaCAuEN.js +1 -0
- package/dist/assets/dist-D4dFcbt8.js +7 -0
- package/dist/assets/dist-D5QNAo1x.js +1 -0
- package/dist/assets/dist-D84pVwY7.js +1 -0
- package/dist/assets/dist-DFOg0cu_.js +1 -0
- package/dist/assets/dist-DOLcWI7m.js +1 -0
- package/dist/assets/dist-DSJ2ZFEM.js +1 -0
- package/dist/assets/dist-DXvMjqJ4.js +1 -0
- package/dist/assets/dist-DZAt7AHl.js +1 -0
- package/dist/assets/dist-DrAMGx2E.js +6 -0
- package/dist/assets/dist-Ducx4jqX.js +1 -0
- package/dist/assets/dist-DvTgOH5F.js +13 -0
- package/dist/assets/dist-ORyWvZpp.js +1 -0
- package/dist/assets/dist-SXxUBTmG.js +1 -0
- package/dist/assets/dist-USFTKxJR.js +1 -0
- package/dist/assets/dist-YP2XXp1Z.js +3 -0
- package/dist/assets/dist-_GzJQFYT.js +1 -0
- package/dist/assets/dist-rxj5KoqT.js +1 -0
- package/dist/assets/dockerfile-fDdOK3ov.js +1 -0
- package/dist/assets/documentation-panel-DDZFqk2y.js +1 -0
- package/dist/assets/download-BYnrx3yk.js +1 -0
- package/dist/assets/download-C81Fxkfa.js +2 -0
- package/dist/assets/dropdown-menu-k3cvSs56.js +1 -0
- package/dist/assets/dtd-BNqeF3HB.js +1 -0
- package/dist/assets/dylan-C2KE_ARv.js +1 -0
- package/dist/assets/ecl-CLD3EYom.js +1 -0
- package/dist/assets/edit-page-B50Sqg43.js +12 -0
- package/dist/assets/eiffel-C3QxGicN.js +1 -0
- package/dist/assets/ellipsis-mCYmaIQe.js +1 -0
- package/dist/assets/ellipsis-vertical-GzpLMS30.js +1 -0
- package/dist/assets/elm-Dc9b15sa.js +1 -0
- package/dist/assets/empty-state-Dfk0qult.js +1 -0
- package/dist/assets/en-US-Cok_jNd9.js +1 -0
- package/dist/assets/erDiagram-AWTI2OKA-D8ge3j7Z.js +60 -0
- package/dist/assets/erlang-59AUz-n0.js +1 -0
- package/dist/assets/error-banner-B98iBZZ2.js +1 -0
- package/dist/assets/error-panel-ChSJzsqJ.js +1 -0
- package/dist/assets/es-Bve1w9dd.js +5 -0
- package/dist/assets/esm-BJLcBgU0.js +1 -0
- package/dist/assets/esm-DXZXojh_.js +1 -0
- package/dist/assets/eye-off-DNEZNQI7.js +1 -0
- package/dist/assets/factor-B2ESt4eh.js +1 -0
- package/dist/assets/factor-DIE032fN.js +1 -0
- package/dist/assets/field-D6TVJZGU.js +1 -0
- package/dist/assets/file-DU2hKpP7.js +1 -0
- package/dist/assets/file-explorer-panel-D1u7ZSov.js +1 -0
- package/dist/assets/file-plus-2-C6zNvKzj.js +1 -0
- package/dist/assets/file-text-KeEJTZsk.js +1 -0
- package/dist/assets/file-video-camera-Bt4f7oOT.js +1 -0
- package/dist/assets/floating-outline-DJ1FXuVN.js +1 -0
- package/dist/assets/flowDiagram-PVAE7QVJ-C8c0HQqL.js +162 -0
- package/dist/assets/focus-Bg0Cm8D6.js +1 -0
- package/dist/assets/form-CAATHPdC.js +2 -0
- package/dist/assets/form-x7Qa7Rrh.js +1 -0
- package/dist/assets/formats-Dmio8FVx.js +1 -0
- package/dist/assets/forth-DjCo7dIs.js +1 -0
- package/dist/assets/fortran-CZmOENAN.js +1 -0
- package/dist/assets/ganttDiagram-OWAHRB6G-BYhkRcPP.js +267 -0
- package/dist/assets/gas-SoBzL_Tr.js +1 -0
- package/dist/assets/gherkin-DLggx8YE.js +1 -0
- package/dist/assets/gitGraph-ZV4HHKMB-DxnUFMI1.js +1 -0
- package/dist/assets/gitGraphDiagram-NY62KEGX-CCC74nFs.js +65 -0
- package/dist/assets/glide-data-editor-BiQxT1mz.js +132 -0
- package/dist/assets/globals-DlvGFwxH.js +1 -0
- package/dist/assets/globe-DW6c4--m.js +1 -0
- package/dist/assets/groovy-9IQPpZra.js +1 -0
- package/dist/assets/haskell-CgXYOX9c.js +1 -0
- package/dist/assets/haxe-aSjlIDiq.js +1 -0
- package/dist/assets/home-page-Ow0eLqO9.js +4 -0
- package/dist/assets/icons-DVWpV4I_.js +1 -0
- package/dist/assets/idl-BADcUAqn.js +1 -0
- package/dist/assets/image-DVFLPjWH.js +1 -0
- package/dist/assets/index-CYOH-TAt.css +2 -0
- package/dist/assets/index-DUlb-6KU.js +44 -0
- package/dist/assets/info-63CPKGFF-CGz90yJ6.js +1 -0
- package/dist/assets/infoDiagram-STP46IZ2-e1r2QvWV.js +2 -0
- package/dist/assets/input-lkQFhlrZ.js +1 -0
- package/dist/assets/isValid-BhOWABEg.js +1 -0
- package/dist/assets/javascript-C7hPrwf3.js +1 -0
- package/dist/assets/jotai-C7U7c6dd.js +1 -0
- package/dist/assets/journeyDiagram-BIP6EPQ6-l_zOcPgv.js +139 -0
- package/dist/assets/kanban-definition-6OIFK2YF-DCaGC54T.js +89 -0
- package/dist/assets/katex-CmcM9wns.js +1 -0
- package/dist/assets/kbd-BEZA_QXE.js +1 -0
- package/dist/assets/key-CaC9xuXQ.js +1 -0
- package/dist/assets/kiosk-mode-DIAVlB9d.js +1 -0
- package/dist/assets/label-BnC8-64i.js +1 -0
- package/dist/assets/layout-BITT6czF.js +4 -0
- package/dist/assets/lazy-NLnLn6Pi.js +2 -0
- package/dist/assets/line-BCUKzinT.js +1 -0
- package/dist/assets/linear-B0yoSdze.js +1 -0
- package/dist/assets/link-CWX-dQ90.js +1 -0
- package/dist/assets/links-Cd3tV5IK.js +1 -0
- package/dist/assets/links-Lztpt8X-.js +1 -0
- package/dist/assets/logs-panel-D8uwhqvR.js +1 -0
- package/dist/assets/loro_wasm_bg-C1LA9JRY.js +1 -0
- package/dist/assets/maps-B9m998ly.js +1 -0
- package/dist/assets/menu-items-CKlDAcIy.js +1 -0
- package/dist/assets/mermaid-CEnPf8cP.js +1 -0
- package/dist/assets/mermaid-parser.core-1z0w_R7X.js +4 -0
- package/dist/assets/mermaid.core-B_mKPVgh.js +11 -0
- package/dist/assets/mermaid.core-P1tMYu0J.js +1 -0
- package/dist/assets/mhchem-BxE_4AeM.js +1 -0
- package/dist/assets/mindmap-definition-Q6HEUPPD-BOzcEjkC.js +68 -0
- package/dist/assets/mllike-CvMT7BHA.js +1 -0
- package/dist/assets/mode-BAOMKXFj.js +1 -0
- package/dist/assets/multi-icon-DgSEPrIf.js +1 -0
- package/dist/assets/multi-map-CMSc8wqP.js +1 -0
- package/dist/assets/name-cell-input-kfZkR5qv.js +1 -0
- package/dist/assets/nsis-Bu9c7jg8.js +1 -0
- package/dist/assets/nsis-z1VCt9tx.js +1 -0
- package/dist/assets/number-overlay-editor-4hcbz-Xy.js +9 -0
- package/dist/assets/numbers-BrVMv_xq.js +1 -0
- package/dist/assets/ordinal-B3kMb9G4.js +1 -0
- package/dist/assets/outline-panel-PgZ3OoWh.js +1 -0
- package/dist/assets/packages-panel-w4yEg0ed.js +1 -0
- package/dist/assets/packet-HUATNLJX-CG6ZWPeY.js +1 -0
- package/dist/assets/panels-Cs4PsVT4.js +1 -0
- package/dist/assets/pie-WTHONI2E-DySJN2Hx.js +1 -0
- package/dist/assets/pieDiagram-ADFJNKIX-Cyw5_yhH.js +30 -0
- package/dist/assets/plug-DZNnmiy1.js +1 -0
- package/dist/assets/plus-VNKMcdhl.js +1 -0
- package/dist/assets/popover-ieUH9gue.js +1 -0
- package/dist/assets/precisionRound-JPbfj2M2.js +1 -0
- package/dist/assets/pug-CaaLw7eE.js +1 -0
- package/dist/assets/pug-i6atkyz7.js +1 -0
- package/dist/assets/purify.es-BNe8OHFA.js +2 -0
- package/dist/assets/python-01S0WAiq.js +1 -0
- package/dist/assets/quadrantDiagram-LMRXKWRM-r1syOKnp.js +7 -0
- package/dist/assets/radar-NJJJXTRR-CgK-l6zu.js +1 -0
- package/dist/assets/react-dom-BjyRIiB0.js +1 -0
- package/dist/assets/react-plotly-z6K2kWRZ.js +4030 -0
- package/dist/assets/react-vega-BQZ6J9sh.js +190 -0
- package/dist/assets/react-vega-C-rZsP2h.js +1 -0
- package/dist/assets/readonly-python-code-B1LohqR_.js +1 -0
- package/dist/assets/refresh-ccw-Dmg0YI4-.js +1 -0
- package/dist/assets/refresh-cw-z53rVhjq.js +1 -0
- package/dist/assets/renderShortcut-Cp1zXREV.js +1 -0
- package/dist/assets/request-registry-C9ZqbErC.js +1 -0
- package/dist/assets/requests-CftYh9v2.js +1 -0
- package/dist/assets/requests-hYqt4rnB.js +1 -0
- package/dist/assets/requirementDiagram-4UW4RH46-TZbgexkl.js +64 -0
- package/dist/assets/run-page-DQq6Ubq2.js +1 -0
- package/dist/assets/runs-DJSbp-nt.js +1 -0
- package/dist/assets/sankeyDiagram-GR3RE2ED-DOAaeXih.js +10 -0
- package/dist/assets/save-Dxp7SN8k.js +1 -0
- package/dist/assets/save-worker-1SpfMMps.js +58 -0
- package/dist/assets/scratchpad-panel-BHyTMkB-.js +1 -0
- package/dist/assets/secrets-panel-aLSYHai4.js +1 -0
- package/dist/assets/select-E33nSIDn.js +1 -0
- package/dist/assets/send-DjnZs47z.js +1 -0
- package/dist/assets/sequenceDiagram-C3RYC4MD-DR5X4rBt.js +145 -0
- package/dist/assets/settings-Dt7V2Blo.js +1 -0
- package/dist/assets/share-Cyx6Ke3B.js +1 -0
- package/dist/assets/shim-DuR5ZJNr.js +1 -0
- package/dist/assets/slides-component-ZimwIaSa.js +1 -0
- package/dist/assets/snippets-panel-q84abuax.js +1 -0
- package/dist/assets/spec-D64rpvwX.js +1 -0
- package/dist/assets/spinner-CM1AwwT-.js +1 -0
- package/dist/assets/square-C2sucLEB.js +1 -0
- package/dist/assets/square-function-C7Ij9TAd.js +1 -0
- package/dist/assets/square-terminal-DcEZ9Ivs.js +1 -0
- package/dist/assets/src-FiBAYfGy.js +1 -0
- package/dist/assets/state-CtYWaPuR.js +1 -0
- package/dist/assets/state-DLUXyYyB.js +1 -0
- package/dist/assets/state-dWjslxDZ.js +1 -0
- package/dist/assets/stateDiagram-KXAO66HF-DvUJNAH4.js +1 -0
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-BBB1Z0py.js +1 -0
- package/dist/assets/step-DgNh0Im1.js +1 -0
- package/dist/assets/strings-jhyl_xMu.js +2 -0
- package/dist/assets/switch-DBfU9QHL.js +1 -0
- package/dist/assets/table-CTK995oK.js +1 -0
- package/dist/assets/table-Ny605LgF.js +1 -0
- package/dist/assets/tabs-DvBunSCS.js +1 -0
- package/dist/assets/terminal-BYIts0Wd.js +10 -0
- package/dist/assets/text-search-BtXNkEHU.js +1 -0
- package/dist/assets/textarea-faXBMy_c.js +1 -0
- package/dist/assets/time-B11NhaT8.js +1 -0
- package/dist/assets/timeline-definition-XQNQX7LJ-Dmpxcd08.js +61 -0
- package/dist/assets/toDate-CbcWqY6f.js +1 -0
- package/dist/assets/toggle-6a-IWcUo.js +1 -0
- package/dist/assets/tooltip-CyyA9NKX.js +61 -0
- package/dist/assets/tooltip-QlUG_0sW.js +1 -0
- package/dist/assets/tracing-panel-BNnuwoJ6.js +2 -0
- package/dist/assets/tracing-wtfV19jS.js +1 -0
- package/dist/assets/trash-2-BsccpX3E.js +1 -0
- package/dist/assets/trash-C8_hvhi2.js +1 -0
- package/dist/assets/tree-ThjH84Vh.js +11 -0
- package/dist/assets/treemap-75Q7IDZK-Chid_ihL.js +1 -0
- package/dist/assets/triangle-alert-DoSv9yQr.js +1 -0
- package/dist/assets/type-CnQq0uaD.js +1 -0
- package/dist/assets/types-BfF9hgo8.js +1 -0
- package/dist/assets/types-CKcqkReK.js +17 -0
- package/dist/assets/use-toast-BBrPeu2N.js +1 -0
- package/dist/assets/useAddCell-C5hu4Wun.js +1 -0
- package/dist/assets/useAsyncData-BIQYiPhO.js +1 -0
- package/dist/assets/useBoolean-Do2iSPXV.js +1 -0
- package/dist/assets/useCellActionButton-l2j8uD5l.js +1 -0
- package/dist/assets/useDateFormatter-DHQNk42q.js +1 -0
- package/dist/assets/useDebounce-Dc646H0x.js +1 -0
- package/dist/assets/useDeepCompareMemoize-DVzR9zu0.js +1 -0
- package/dist/assets/useDeleteCell-yV4YK-xy.js +1 -0
- package/dist/assets/useEvent-mw3fc-le.js +1 -0
- package/dist/assets/useEventListener-DVwjxFkt.js +1 -0
- package/dist/assets/useHotkey-VwOksnmL.js +1 -0
- package/dist/assets/useIframeCapabilities-CRfeZulz.js +1 -0
- package/dist/assets/useInstallPackage-CX-LUKF-.js +1 -0
- package/dist/assets/useInterval-DcwlGTe6.js +1 -0
- package/dist/assets/useLifecycle-DiLWmtpP.js +1 -0
- package/dist/assets/useNonce-CElEIK4R.js +1 -0
- package/dist/assets/useNotebookActions-DLx3Fygp.js +1 -0
- package/dist/assets/useNumberFormatter-BFHkt56k.js +1 -0
- package/dist/assets/usePress-CqxmpITG.js +7 -0
- package/dist/assets/useRunCells-DSf9mKXo.js +1 -0
- package/dist/assets/useSplitCell-CPKZi1bG.js +1 -0
- package/dist/assets/useTheme-Dsb69ewj.js +1 -0
- package/dist/assets/utilities.esm-BUZA9ZNB.js +3 -0
- package/dist/assets/utils-BPcfRUDE.js +1 -0
- package/dist/assets/variable-panel-DyYTOTCM.js +1 -0
- package/dist/assets/vega-component-vMEXqPyr.js +1 -0
- package/dist/assets/vega-loader.browser-BJKnSXO3.js +6 -0
- package/dist/assets/worker-DFkS7cAN.js +101 -0
- package/dist/assets/workflow-CgyFQnIM.js +1 -0
- package/dist/assets/write-secret-modal-zRnaYcIL.js +1 -0
- package/dist/assets/ws-BNjYz4sN.js +22 -0
- package/dist/assets/xychartDiagram-6GGTOJPD-CC5m3Qr2.js +7 -0
- package/dist/assets/youtube-BEn_4a_V.js +1 -0
- package/dist/index.html +204 -204
- package/package.json +13 -13
- package/src/__mocks__/notebook.ts +1 -1
- package/src/components/app-config/ai-config.tsx +1 -0
- package/src/components/data-table/charts/charts.tsx +49 -4
- package/src/components/data-table/columns.tsx +15 -0
- package/src/components/data-table/download-actions.tsx +4 -1
- package/src/components/editor/Output.tsx +37 -7
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +9 -18
- package/src/components/editor/file-tree/file-viewer.tsx +35 -6
- package/src/components/editor/output/MarimoErrorOutput.tsx +42 -17
- package/src/components/editor/output/__tests__/ansi-reduce.test.ts +560 -0
- package/src/components/editor/output/ansi-reduce.ts +392 -0
- package/src/components/pages/run-page.tsx +1 -6
- package/src/components/ui/alert.tsx +2 -0
- package/src/components/ui/query-param-preserving-link.tsx +3 -0
- package/src/core/cells/__tests__/cells.test.ts +23 -16
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +398 -1
- package/src/core/cells/cell.ts +6 -7
- package/src/core/cells/collapseConsoleOutputs.tsx +35 -45
- package/src/core/export/hooks.ts +4 -3
- package/src/core/static/__tests__/virtual-file-tracker.test.ts +42 -0
- package/src/core/static/virtual-file-tracker.ts +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +2 -0
- package/src/plugins/impl/FileBrowserPlugin.tsx +30 -5
- package/src/utils/__tests__/json-parser.test.ts +50 -9
- package/src/utils/json/json-parser.ts +22 -2
- package/dist/assets/CellStatus-CJ5BnF-2.js +0 -1
- package/dist/assets/Combination-BjaZc6gK.js +0 -41
- package/dist/assets/ConnectedDataExplorerComponent-BiJPD-um.js +0 -1
- package/dist/assets/ConsoleOutput-BJP_UIwR.js +0 -4
- package/dist/assets/ErrorBoundary-_uEOjNWh.js +0 -1
- package/dist/assets/ImageComparisonComponent-WABs9NdN.js +0 -1
- package/dist/assets/ImperativeModal-C4fZHLKz.js +0 -1
- package/dist/assets/Inputs-237ZzRAb.js +0 -1
- package/dist/assets/LazyAnyLanguageCodeMirror-BovGLUi6.js +0 -2
- package/dist/assets/MarimoErrorOutput-BATnwNYX.js +0 -9
- package/dist/assets/Output-DWmT-7NV.js +0 -142
- package/dist/assets/RenderHTML-DTLkV9Uh.js +0 -1
- package/dist/assets/SSRProvider-B8x7qo1c.js +0 -1
- package/dist/assets/TinyCode-GLDQZf34.js +0 -1
- package/dist/assets/VisuallyHidden-DqOWapbP.js +0 -1
- package/dist/assets/__vite-browser-external-BJyYPVNm.js +0 -1
- package/dist/assets/__vite-browser-external-D_SJt3Xu.js +0 -1
- package/dist/assets/activity-DdWPIGQX.js +0 -1
- package/dist/assets/add-cell-with-ai-Bf3hYYIu.js +0 -77
- package/dist/assets/add-database-form-D9ltJYvM.js +0 -111
- package/dist/assets/add-missing-import-Bc1Nj8aC.js +0 -1
- package/dist/assets/agent-panel-CPGu8Erd.js +0 -287
- package/dist/assets/ai-model-dropdown-CvhbTHha.js +0 -2
- package/dist/assets/alert-BqjCH_7t.js +0 -1
- package/dist/assets/alert-dialog-8EwWlboa.js +0 -11
- package/dist/assets/any-language-editor-I1TeVFID.js +0 -3
- package/dist/assets/api-YJHlT7KM.js +0 -1
- package/dist/assets/apl-C8IztUHV.js +0 -1
- package/dist/assets/app-config-button-B-Faif0q.js +0 -1
- package/dist/assets/arc-tAqWLv-B.js +0 -1
- package/dist/assets/architecture-O4VJ6CD3-BA-L7b4v.js +0 -1
- package/dist/assets/architectureDiagram-W76B3OCA-5dGU5TQs.js +0 -36
- package/dist/assets/arrow-left-C_-paiHG.js +0 -1
- package/dist/assets/asciiarmor-DYFmjXYU.js +0 -1
- package/dist/assets/asn1-Cfc8H1Ev.js +0 -1
- package/dist/assets/badge-Jfhpc30N.js +0 -1
- package/dist/assets/between-horizontal-start-CC0exyFi.js +0 -1
- package/dist/assets/blockDiagram-QIGZ2CNN-CxEhKvDB.js +0 -122
- package/dist/assets/brainfuck-JvCPN9qf.js +0 -1
- package/dist/assets/bundle.esm-BEDtDq85.js +0 -1
- package/dist/assets/button-ZC2axIBq.js +0 -1
- package/dist/assets/c4Diagram-FPNF74CW-BV6AZZEM.js +0 -10
- package/dist/assets/cache-panel-ClGFjnuH.js +0 -1
- package/dist/assets/capabilities-srilPYuF.js +0 -1
- package/dist/assets/cell-actions-DDza1yZz.js +0 -1
- package/dist/assets/cell-editor-4oTwitxm.js +0 -23
- package/dist/assets/cell-link-D75IV6D1.js +0 -1
- package/dist/assets/cells-A69p56PE.js +0 -141
- package/dist/assets/channel-CYaFLAI3.js +0 -1
- package/dist/assets/chart-no-axes-column-DYZiSI6e.js +0 -1
- package/dist/assets/chat-components-C2ryFVKe.js +0 -4
- package/dist/assets/chat-panel-CjjOlUPZ.js +0 -3
- package/dist/assets/check-CuBLr6Cm.js +0 -1
- package/dist/assets/chevron-right-BV0VfNbL.js +0 -1
- package/dist/assets/chunk-3AY6CYHV-CGvUwVix.js +0 -7
- package/dist/assets/chunk-4BX2VUAB-CEk5Yddb.js +0 -1
- package/dist/assets/chunk-55IACEB6-DkQ-sTvr.js +0 -1
- package/dist/assets/chunk-6OXUPJBA-C8TM1_vW.js +0 -2
- package/dist/assets/chunk-7GE3RBXV-H12zLBKj.js +0 -1
- package/dist/assets/chunk-ABZYJK2D-Cm5Mq_1V.js +0 -80
- package/dist/assets/chunk-BN7GFLIU-B2OO_dsW.js +0 -1
- package/dist/assets/chunk-CVBHYZKI-CMFQpulc.js +0 -1
- package/dist/assets/chunk-CXMOBAN2-7ndVTSz1.js +0 -54
- package/dist/assets/chunk-EXTU4WIE-DUVoiM8z.js +0 -1
- package/dist/assets/chunk-FMBD7UC4-CmHQ0YbI.js +0 -15
- package/dist/assets/chunk-JA3XYJ7Z-D3VjadO-.js +0 -11
- package/dist/assets/chunk-JEIROHC2-DJ3tpwJA.js +0 -1
- package/dist/assets/chunk-K7UQS3LO-Dv8pkZsr.js +0 -165
- package/dist/assets/chunk-KMC2YHZD-aZ_clHHw.js +0 -1
- package/dist/assets/chunk-QN33PNHL-kpDAjAtU.js +0 -1
- package/dist/assets/chunk-QYVHNE3D-D8NpnEYd.js +0 -1
- package/dist/assets/chunk-QZHKN3VN-B7PBWDfB.js +0 -1
- package/dist/assets/chunk-S3R3BYOJ-BW8g0Zog.js +0 -2
- package/dist/assets/chunk-T44TD3VJ-ob7Tm16D.js +0 -1
- package/dist/assets/chunk-TVAH2DTR-CG4Xr_vq.js +0 -220
- package/dist/assets/chunk-TZMSLE5B-B4Mtcg_D.js +0 -1
- package/dist/assets/chunk-WFRQ32O7-DaR0-qal.js +0 -1
- package/dist/assets/chunk-WFWHJNB7-BdOad_I6.js +0 -1
- package/dist/assets/chunk-XRWGC2XP-bK3mWGs8.js +0 -1
- package/dist/assets/chunk-ZPAFE4SF--QJ9WeVC.js +0 -36
- package/dist/assets/circle-check-BjYuTjAK.js +0 -1
- package/dist/assets/circle-play-BwTqLQdh.js +0 -1
- package/dist/assets/circle-plus-a4tnn8hI.js +0 -1
- package/dist/assets/circle-x-Dm9uA-wT.js +0 -1
- package/dist/assets/classDiagram-KNZD7YFC-Dd-A0E6y.js +0 -1
- package/dist/assets/classDiagram-v2-RKCZMP56-z-Bnr2ps.js +0 -1
- package/dist/assets/clear-button-B9Kao2Ra.js +0 -1
- package/dist/assets/click-outside-container-D--uGE-1.js +0 -1
- package/dist/assets/client-CtbBEHVn.js +0 -2
- package/dist/assets/clike-BZaAHvVH.js +0 -1
- package/dist/assets/clipboard-paste-BLsIEx19.js +0 -1
- package/dist/assets/clojure-BSAKKQkc.js +0 -1
- package/dist/assets/cmake-BseABbbj.js +0 -1
- package/dist/assets/cobol-BGW4k037.js +0 -1
- package/dist/assets/coffeescript-C208hoAn.js +0 -1
- package/dist/assets/column-preview-WPlkULp9.js +0 -1
- package/dist/assets/command-Dlk4i3l7.js +0 -1
- package/dist/assets/command-palette-4W9o2iPI.js +0 -1
- package/dist/assets/common-CoBkdbNK.js +0 -1
- package/dist/assets/commonlisp-BIQQ1lKt.js +0 -1
- package/dist/assets/compiler-runtime-Cr9loedd.js +0 -1
- package/dist/assets/config-C6qInAhC.js +0 -1
- package/dist/assets/connection-Bs4SQ_vu.js +0 -1
- package/dist/assets/context-CcLKJeA2.js +0 -1
- package/dist/assets/copy-Dy_tLkL8.js +0 -1
- package/dist/assets/copy-LsxoSTiV.js +0 -1
- package/dist/assets/copy-icon-CE7wmMnS.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A--pmwFpj9.js +0 -1
- package/dist/assets/createLucideIcon-CNVopWor.js +0 -6
- package/dist/assets/createReducer-CeLhipaI.js +0 -1
- package/dist/assets/crystal-DCEDH3ZU.js +0 -1
- package/dist/assets/css-Dibnw1Cg.js +0 -1
- package/dist/assets/cypher-DJc3_Mb6.js +0 -1
- package/dist/assets/cytoscape.esm-iv-4upz4.js +0 -325
- package/dist/assets/d-512gkUMN.js +0 -1
- package/dist/assets/dagre-5GWH7T2D-CgiaNo9T.js +0 -4
- package/dist/assets/data-grid-overlay-editor-x2IZajht.js +0 -1
- package/dist/assets/database-zap-CCB1mGaP.js +0 -1
- package/dist/assets/datasources-panel-CQJ_xth2.js +0 -1
- package/dist/assets/dependency-graph-panel-CoeP9rzE.js +0 -4
- package/dist/assets/diagram-N5W7TBWH-DTy9MJII.js +0 -24
- package/dist/assets/diagram-QEK2KX5R-DjOP6gtV.js +0 -43
- package/dist/assets/diagram-S2PKOQOG-C_ZX_NyS.js +0 -24
- package/dist/assets/dialog-BfhgTWm1.js +0 -1
- package/dist/assets/diff-BSd0dkd6.js +0 -1
- package/dist/assets/dist--UfXdLiW.js +0 -1
- package/dist/assets/dist-8_YHxBVW.js +0 -1
- package/dist/assets/dist-B0B_Xnwd.js +0 -1
- package/dist/assets/dist-BCDo28Nu.js +0 -1
- package/dist/assets/dist-BXsTBu5U.js +0 -1
- package/dist/assets/dist-BcgNLefj.js +0 -1
- package/dist/assets/dist-BcppZLnk.js +0 -1
- package/dist/assets/dist-BjGT2Oog.js +0 -1
- package/dist/assets/dist-BkzQhIvQ.js +0 -1
- package/dist/assets/dist-C14Sk-Bd.js +0 -6
- package/dist/assets/dist-C7a7PPDV.js +0 -1
- package/dist/assets/dist-C9Pig92i.js +0 -1
- package/dist/assets/dist-CB99JjHy.js +0 -1
- package/dist/assets/dist-CGXP1wxK.js +0 -1
- package/dist/assets/dist-CMHCymvx.js +0 -7
- package/dist/assets/dist-CPUmJw_F.js +0 -1
- package/dist/assets/dist-CXL8T4lt.js +0 -1
- package/dist/assets/dist-CZtlXGHc.js +0 -3
- package/dist/assets/dist-CbvGwhr0.js +0 -2
- package/dist/assets/dist-Cc4LX4VW.js +0 -1
- package/dist/assets/dist-Cf7ieNCu.js +0 -1
- package/dist/assets/dist-ChBFqf3d.js +0 -1
- package/dist/assets/dist-ColdUi54.js +0 -1
- package/dist/assets/dist-Cq5s066k.js +0 -1
- package/dist/assets/dist-CtrBG6dK.js +0 -1
- package/dist/assets/dist-D-JTXier.js +0 -1
- package/dist/assets/dist-DE0uRLJL.js +0 -1
- package/dist/assets/dist-DJV2CjUA.js +0 -1
- package/dist/assets/dist-DM2w8f7r.js +0 -1
- package/dist/assets/dist-DMn_q1Eh.js +0 -1
- package/dist/assets/dist-DPVK6wJ-.js +0 -1
- package/dist/assets/dist-DRTi9ht4.js +0 -1
- package/dist/assets/dist-DTIHGyk9.js +0 -1
- package/dist/assets/dist-DcDuMWp5.js +0 -13
- package/dist/assets/dist-DlH6tuAC.js +0 -1
- package/dist/assets/dist-Dp1bFraz.js +0 -1
- package/dist/assets/dist-DuCOj_GR.js +0 -1
- package/dist/assets/dist-GE2AwHvG.js +0 -1
- package/dist/assets/dist-GHMC1DDU.js +0 -1
- package/dist/assets/dist-MHIqsPCF.js +0 -13
- package/dist/assets/dist-Oad1venD.js +0 -2
- package/dist/assets/dist-__vbIzp1.js +0 -260
- package/dist/assets/dist-j2I9I0a7.js +0 -1
- package/dist/assets/dist-nhBdVy6b.js +0 -1
- package/dist/assets/dist-o-4-WxUj.js +0 -1
- package/dist/assets/dist-ta4iJSan.js +0 -1
- package/dist/assets/dist-vBG1bGij.js +0 -3
- package/dist/assets/dockerfile-BUQq43xK.js +0 -1
- package/dist/assets/documentation-panel-D-JV0cpO.js +0 -1
- package/dist/assets/download-ByFIcaoi.js +0 -2
- package/dist/assets/download-ptuQ0M1w.js +0 -1
- package/dist/assets/dropdown-menu-uN_XMhZm.js +0 -1
- package/dist/assets/dtd-CfC4g15q.js +0 -1
- package/dist/assets/dylan-CCWaDx6W.js +0 -1
- package/dist/assets/ecl-48jJnqW6.js +0 -1
- package/dist/assets/edit-page-2tBABnJo.js +0 -12
- package/dist/assets/eiffel-KeAY_tfp.js +0 -1
- package/dist/assets/ellipsis-BgenFu2j.js +0 -1
- package/dist/assets/ellipsis-vertical-D4kjq0HQ.js +0 -1
- package/dist/assets/elm-6ttzFDzl.js +0 -1
- package/dist/assets/empty-state-DTECRwMh.js +0 -1
- package/dist/assets/en-US-D2gH55FJ.js +0 -1
- package/dist/assets/erDiagram-AWTI2OKA-BhuG3Zob.js +0 -60
- package/dist/assets/erlang-B81tzdld.js +0 -1
- package/dist/assets/error-banner-DoSAS3iD.js +0 -1
- package/dist/assets/error-panel-DV7lr4JL.js +0 -1
- package/dist/assets/es-vLBD1nBl.js +0 -5
- package/dist/assets/esm-B3nKz9z-.js +0 -1
- package/dist/assets/esm-DtCFmQ1n.js +0 -1
- package/dist/assets/eye-off-_Bp7Ir5E.js +0 -1
- package/dist/assets/factor-CsqObdFm.js +0 -1
- package/dist/assets/factor-DhbRkYZ5.js +0 -1
- package/dist/assets/field-CaHPDBhq.js +0 -1
- package/dist/assets/file-Cz8xVTWu.js +0 -1
- package/dist/assets/file-explorer-panel-CPQDFtpj.js +0 -1
- package/dist/assets/file-plus-2-SQa07cq2.js +0 -1
- package/dist/assets/file-text-CFgIi1A4.js +0 -1
- package/dist/assets/file-video-camera-DJUITpag.js +0 -1
- package/dist/assets/floating-outline-1_-JOoBX.js +0 -1
- package/dist/assets/flowDiagram-PVAE7QVJ-ChyCNRpp.js +0 -162
- package/dist/assets/focus-BaSDCTOl.js +0 -1
- package/dist/assets/form-CaSJmn0I.js +0 -1
- package/dist/assets/form-DaO98mWt.js +0 -2
- package/dist/assets/formats-BN93kMCb.js +0 -1
- package/dist/assets/forth-CQqhzzpN.js +0 -1
- package/dist/assets/fortran-CDldiiXx.js +0 -1
- package/dist/assets/ganttDiagram-OWAHRB6G-DvugH8E5.js +0 -267
- package/dist/assets/gas-Db3M7m4F.js +0 -1
- package/dist/assets/gherkin-CdoWQypz.js +0 -1
- package/dist/assets/gitGraph-ZV4HHKMB-ZSfPRi38.js +0 -1
- package/dist/assets/gitGraphDiagram-NY62KEGX--4NNxjip.js +0 -65
- package/dist/assets/glide-data-editor-Bkx-E5b2.js +0 -132
- package/dist/assets/globals-Dp5TPAWC.js +0 -1
- package/dist/assets/globe-mi3m-i9B.js +0 -1
- package/dist/assets/groovy-DOqC0xtQ.js +0 -1
- package/dist/assets/haskell-CUXnT_9K.js +0 -1
- package/dist/assets/haxe-C2WjsaV6.js +0 -1
- package/dist/assets/home-page-BhB8MZrH.js +0 -4
- package/dist/assets/icons-DaFojEUL.js +0 -1
- package/dist/assets/idl-pJdLdBWn.js +0 -1
- package/dist/assets/image-DW_EcY4T.js +0 -1
- package/dist/assets/index-BXqkmYCF.js +0 -44
- package/dist/assets/index-BmcO-QYJ.css +0 -2
- package/dist/assets/info-63CPKGFF-Bd3YpYFu.js +0 -1
- package/dist/assets/infoDiagram-STP46IZ2-2g5NTHp_.js +0 -2
- package/dist/assets/input-BNb8K99m.js +0 -1
- package/dist/assets/isValid-BJSfXqfd.js +0 -1
- package/dist/assets/javascript-DE5LhuW5.js +0 -1
- package/dist/assets/jinja2-BIbcpWyF.js +0 -1
- package/dist/assets/jinja2-DZTBdZHU.js +0 -1
- package/dist/assets/jotai-BTnrNcC1.js +0 -1
- package/dist/assets/journeyDiagram-BIP6EPQ6-DjdU63y1.js +0 -139
- package/dist/assets/kanban-definition-6OIFK2YF-DeCdxrC0.js +0 -89
- package/dist/assets/katex-CMd6pbfG.js +0 -1
- package/dist/assets/kbd-DbVT085u.js +0 -1
- package/dist/assets/key-Cx1qY8eM.js +0 -1
- package/dist/assets/kiosk-mode-Cw6z28XS.js +0 -1
- package/dist/assets/label-Dcu3RhQ4.js +0 -1
- package/dist/assets/layout-sf56kneH.js +0 -4
- package/dist/assets/lazy-oPCv0nK8.js +0 -2
- package/dist/assets/line-DorFmRYv.js +0 -1
- package/dist/assets/linear-CPlUB2Oz.js +0 -1
- package/dist/assets/link-BFkQTs0I.js +0 -1
- package/dist/assets/links-CMl0qG9J.js +0 -1
- package/dist/assets/links-uXibXl2j.js +0 -1
- package/dist/assets/logs-panel-DsJnG9V6.js +0 -1
- package/dist/assets/loro_wasm_bg-cCDMQ_Gu.js +0 -1
- package/dist/assets/maps-B1z3jt-a.js +0 -1
- package/dist/assets/menu-items-DwOFR2Zi.js +0 -1
- package/dist/assets/mermaid-D_qr_rHI.js +0 -1
- package/dist/assets/mermaid-parser.core-NXSENIcQ.js +0 -4
- package/dist/assets/mermaid.core-Cge03puN.js +0 -1
- package/dist/assets/mermaid.core-mcEAuawO.js +0 -11
- package/dist/assets/mhchem-DNnsXr4C.js +0 -1
- package/dist/assets/mindmap-definition-Q6HEUPPD-Da_059Wn.js +0 -68
- package/dist/assets/mllike-kwEb_VdR.js +0 -1
- package/dist/assets/mode-Bq6LjPC-.js +0 -1
- package/dist/assets/multi-icon-Dgzg2G90.js +0 -1
- package/dist/assets/multi-map-D9JaQ_m6.js +0 -1
- package/dist/assets/name-cell-input-DND1MD7b.js +0 -1
- package/dist/assets/nsis-B-5miwZp.js +0 -1
- package/dist/assets/nsis-znELVT3h.js +0 -1
- package/dist/assets/number-overlay-editor-7APxtkWt.js +0 -9
- package/dist/assets/numbers-CTSqyVyD.js +0 -1
- package/dist/assets/ordinal-Dd9FQufD.js +0 -1
- package/dist/assets/outline-panel-C9yH5I9w.js +0 -1
- package/dist/assets/packages-panel-BPiwOYBi.js +0 -1
- package/dist/assets/packet-HUATNLJX-sz1oFfYu.js +0 -1
- package/dist/assets/pie-WTHONI2E-C0bj5Jbu.js +0 -1
- package/dist/assets/pieDiagram-ADFJNKIX-DiHtCIiJ.js +0 -30
- package/dist/assets/plug-BTyO2pk-.js +0 -1
- package/dist/assets/plus-CRGccegF.js +0 -1
- package/dist/assets/popover-F0Sfc1dn.js +0 -1
- package/dist/assets/precisionRound-Qxa8hC2h.js +0 -1
- package/dist/assets/pug-CloLgaX6.js +0 -1
- package/dist/assets/pug-DUVdXXqU.js +0 -1
- package/dist/assets/purify.es-CPMOFAIu.js +0 -2
- package/dist/assets/python-BoGSLipj.js +0 -1
- package/dist/assets/quadrantDiagram-LMRXKWRM-DxicdQmH.js +0 -7
- package/dist/assets/radar-NJJJXTRR-BIKsYvRT.js +0 -1
- package/dist/assets/react-dom-D6bRRS5R.js +0 -1
- package/dist/assets/react-plotly-Bg7bY4cj.js +0 -4066
- package/dist/assets/react-vega-CRwVRb9c.js +0 -194
- package/dist/assets/react-vega-CYoD34Uk.js +0 -1
- package/dist/assets/readonly-python-code-B4MS39iL.js +0 -1
- package/dist/assets/refresh-ccw-Dg4gNnPm.js +0 -1
- package/dist/assets/refresh-cw-Duwwh0cP.js +0 -1
- package/dist/assets/renderShortcut-DJmsjON-.js +0 -1
- package/dist/assets/request-registry-k13VJQbm.js +0 -1
- package/dist/assets/requests-BACZP_uj.js +0 -1
- package/dist/assets/requests-BZ9D3oC1.js +0 -1
- package/dist/assets/requirementDiagram-4UW4RH46-DvqbriSU.js +0 -64
- package/dist/assets/run-page-iDx4MSjp.js +0 -1
- package/dist/assets/runs-Cc1E9Ytb.js +0 -1
- package/dist/assets/sankeyDiagram-GR3RE2ED-B7imli8w.js +0 -10
- package/dist/assets/save-M3l4CifW.js +0 -1
- package/dist/assets/save-worker-Bn51_kZE.js +0 -58
- package/dist/assets/scratchpad-panel-C_xpdU9y.js +0 -1
- package/dist/assets/secrets-panel-Bzd6Mi0U.js +0 -1
- package/dist/assets/select-5fcaZwou.js +0 -1
- package/dist/assets/send-CTRovYct.js +0 -1
- package/dist/assets/sequenceDiagram-C3RYC4MD-D3QreZOB.js +0 -145
- package/dist/assets/settings-p8vTgdrN.js +0 -1
- package/dist/assets/share-8z32Sr0F.js +0 -1
- package/dist/assets/shim-Cc3VMan6.js +0 -1
- package/dist/assets/slides-component-BT4-csZq.js +0 -1
- package/dist/assets/snippets-panel-BNdYY1W6.js +0 -1
- package/dist/assets/spec-C5SzKl5N.js +0 -1
- package/dist/assets/spinner-CuquyDWA.js +0 -1
- package/dist/assets/square-CYRwTwZO.js +0 -1
- package/dist/assets/square-function-sjebOKTF.js +0 -1
- package/dist/assets/square-terminal-CpNRLkoY.js +0 -1
- package/dist/assets/src-BwH0YUPh.js +0 -1
- package/dist/assets/state-BfH78XJJ.js +0 -1
- package/dist/assets/state-Cm3cZhI-.js +0 -1
- package/dist/assets/state-JZFfOGr9.js +0 -1
- package/dist/assets/stateDiagram-KXAO66HF-C4A-1CGX.js +0 -1
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-Ya_YeL_T.js +0 -1
- package/dist/assets/step-BDtirdXu.js +0 -1
- package/dist/assets/storage-DNJOpVBd.js +0 -1
- package/dist/assets/strings-DHsDEFo-.js +0 -2
- package/dist/assets/switch-4s4187gV.js +0 -1
- package/dist/assets/table-C2gUjtJV.js +0 -1
- package/dist/assets/table-DU76OrPF.js +0 -1
- package/dist/assets/tabs-l9npw3ob.js +0 -1
- package/dist/assets/terminal-NtPz9Wz1.js +0 -10
- package/dist/assets/text-search-IpK7VCPx.js +0 -1
- package/dist/assets/textarea-DeG5mMSH.js +0 -1
- package/dist/assets/time-4HenLWop.js +0 -1
- package/dist/assets/timeline-definition-XQNQX7LJ-DgMQvm3R.js +0 -61
- package/dist/assets/toDate-C3oOx2yr.js +0 -1
- package/dist/assets/toggle-DlfY8wql.js +0 -1
- package/dist/assets/tooltip-BFMRXuzR.js +0 -61
- package/dist/assets/tooltip-BHnVWzH0.js +0 -1
- package/dist/assets/tracing-DOTFVxLy.js +0 -1
- package/dist/assets/tracing-panel-DBh_LItF.js +0 -2
- package/dist/assets/trash-2-BPux4_UF.js +0 -1
- package/dist/assets/trash-CRcefzxk.js +0 -1
- package/dist/assets/tree-CN8xDCJX.js +0 -11
- package/dist/assets/treemap-75Q7IDZK-Bao34u2H.js +0 -1
- package/dist/assets/type-o43RKOcp.js +0 -1
- package/dist/assets/types-Bh2kSb2q.js +0 -17
- package/dist/assets/types-CHAkS4Oz.js +0 -1
- package/dist/assets/use-toast-midBZAtS.js +0 -1
- package/dist/assets/useAddCell-CREgcbTt.js +0 -1
- package/dist/assets/useAsyncData-CngUoIwV.js +0 -1
- package/dist/assets/useBoolean-CpaqzlKu.js +0 -1
- package/dist/assets/useCellActionButton-BIG30Gtv.js +0 -1
- package/dist/assets/useDateFormatter-CPDTrKqK.js +0 -1
- package/dist/assets/useDebounce-DzG_89QJ.js +0 -1
- package/dist/assets/useDeepCompareMemoize-DiJVYA6I.js +0 -1
- package/dist/assets/useDeleteCell-CEsjHDdl.js +0 -1
- package/dist/assets/useEvent-CRDKqG3C.js +0 -1
- package/dist/assets/useEventListener-D1FLsfmf.js +0 -1
- package/dist/assets/useHotkey-NDxGNWnW.js +0 -1
- package/dist/assets/useIframeCapabilities-DXQ78nsN.js +0 -1
- package/dist/assets/useInstallPackage-I3kefbOO.js +0 -1
- package/dist/assets/useInterval-D5tVoshg.js +0 -1
- package/dist/assets/useLifecycle-DogGOXPh.js +0 -1
- package/dist/assets/useNonce-VIoWEX5z.js +0 -1
- package/dist/assets/useNotebookActions-BqA-N7b_.js +0 -1
- package/dist/assets/useNumberFormatter-F8R3LBxf.js +0 -1
- package/dist/assets/usePress-BO20vkQb.js +0 -7
- package/dist/assets/useRunCells-BLpH_l8E.js +0 -1
- package/dist/assets/useSplitCell-xUizPIKw.js +0 -1
- package/dist/assets/useTheme-Biy2QI0v.js +0 -1
- package/dist/assets/utilities.esm-Bjl8-mRM.js +0 -3
- package/dist/assets/utils-DEDX0RLo.js +0 -1
- package/dist/assets/variable-panel-91Oy0ioR.js +0 -1
- package/dist/assets/vega-component-DiS0PwuN.js +0 -1
- package/dist/assets/vega-loader.browser-D2m26-DP.js +0 -6
- package/dist/assets/worker-CUYGINRG.js +0 -101
- package/dist/assets/workflow-D14sQBPI.js +0 -1
- package/dist/assets/write-secret-modal-8_TgMfIA.js +0 -1
- package/dist/assets/ws-DBqs0vJU.js +0 -27
- package/dist/assets/xychartDiagram-6GGTOJPD-DReRhuio.js +0 -7
- package/dist/assets/youtube-CYW7gZLB.js +0 -1
- /package/dist/assets/{apl-BGS-6pM9.js → apl-CAJ5Afpm.js} +0 -0
- /package/dist/assets/{array-4wub28GG.js → array-DAkwBc1M.js} +0 -0
- /package/dist/assets/{asciiarmor-CbQH35y7.js → asciiarmor-B3glo3Hy.js} +0 -0
- /package/dist/assets/{asn1-P7HrFGaM.js → asn1-iaUkdUJn.js} +0 -0
- /package/dist/assets/{blob-ISoY06EG.js → blob-BgGJeXvG.js} +0 -0
- /package/dist/assets/{brainfuck-CSxeyQc4.js → brainfuck-C1Bv_mwK.js} +0 -0
- /package/dist/assets/{chunk-4KMFLZZN-ezSWKPWV.js → chunk-4KMFLZZN-Btk-7pZW.js} +0 -0
- /package/dist/assets/{chunk-57QY23SG-C65JnZtK.js → chunk-57QY23SG-CNHrXEp-.js} +0 -0
- /package/dist/assets/{clike-Bg9duJDo.js → clike-BEDWkorR.js} +0 -0
- /package/dist/assets/{clojure-B94DOmFw.js → clojure-g07QXTjj.js} +0 -0
- /package/dist/assets/{cmake-DQEKyMNG.js → cmake-DnTqIimN.js} +0 -0
- /package/dist/assets/{cn-ZXtYmczU.js → cn-BaXqCYqP.js} +0 -0
- /package/dist/assets/{cobol-CY4gVoPW.js → cobol-BKtG7u9D.js} +0 -0
- /package/dist/assets/{coffeescript-BwWb96Ts.js → coffeescript-D5EX_wGl.js} +0 -0
- /package/dist/assets/{colors-xHoM1JAe.js → colors-vEZNI1u9.js} +0 -0
- /package/dist/assets/{commonlisp-Cq_n1sF6.js → commonlisp-QBdsjaTi.js} +0 -0
- /package/dist/assets/{constants-ClC7lqCE.js → constants-BjxvUqyK.js} +0 -0
- /package/dist/assets/{crystal-BLTq7Sqq.js → crystal-B0kV858U.js} +0 -0
- /package/dist/assets/{css-CmDcdojQ.js → css-lnqtDlV_.js} +0 -0
- /package/dist/assets/{cypher-ByytCYVx.js → cypher-B_ciRc6O.js} +0 -0
- /package/dist/assets/{d-xLFRg71F.js → d-sGSUUdz9.js} +0 -0
- /package/dist/assets/{dagre-DzeXZWsr.js → dagre-DlsQLQOP.js} +0 -0
- /package/dist/assets/{defaultLocale-YmL2k7Vp.js → defaultLocale-D-ie3mwB.js} +0 -0
- /package/dist/assets/{defaultLocale-zQltfbSS.js → defaultLocale-DzEPn_Ia.js} +0 -0
- /package/dist/assets/{diff-VF6GbDch.js → diff-okFUO1eS.js} +0 -0
- /package/dist/assets/{dist-DiomJpDg.js → dist-Bi0uUSZq.js} +0 -0
- /package/dist/assets/{dist-DBrqGLzW.js → dist-D4J1GeSh.js} +0 -0
- /package/dist/assets/{dtd-D8qb8bJW.js → dtd-Covqp7FW.js} +0 -0
- /package/dist/assets/{dylan-CIkom9X4.js → dylan-Bf_wFnkY.js} +0 -0
- /package/dist/assets/{ecl-8wcmTiom.js → ecl-BON4bJzJ.js} +0 -0
- /package/dist/assets/{eiffel-D2ZBcT03.js → eiffel-CWbinnR3.js} +0 -0
- /package/dist/assets/{elm-Cpg3TnMc.js → elm-DKVclpIr.js} +0 -0
- /package/dist/assets/{emotion-is-prop-valid.esm-OoyWz_0l.js → emotion-is-prop-valid.esm-DY_d0mBI.js} +0 -0
- /package/dist/assets/{erlang-B4A2pXCG.js → erlang-D7Lapqoo.js} +0 -0
- /package/dist/assets/{extends-dwNt6GDg.js → extends-BADOB1Xm.js} +0 -0
- /package/dist/assets/{forth-C5F1F4pC.js → forth-CCfEYbe1.js} +0 -0
- /package/dist/assets/{fortran-D7Gl3Tli.js → fortran-ph1UcBiZ.js} +0 -0
- /package/dist/assets/{gas-BS2f8qHc.js → gas-BwHh1zIK.js} +0 -0
- /package/dist/assets/{gherkin-CVZcskwU.js → gherkin-a-S-92sq.js} +0 -0
- /package/dist/assets/{groovy-BhQsBMwW.js → groovy-W6xB3OYy.js} +0 -0
- /package/dist/assets/{haskell-BPbxlKgK.js → haskell-DCE9UteQ.js} +0 -0
- /package/dist/assets/{haxe-TKSAmiMf.js → haxe-CLcQehNU.js} +0 -0
- /package/dist/assets/{hotkeys-ClCtr3_I.js → hotkeys-jCLisiwR.js} +0 -0
- /package/dist/assets/{icon-32x32-YsJOs0Ms.js → icon-32x32-BbDKn-R9.js} +0 -0
- /package/dist/assets/{idl-DFgQu5Ek.js → idl-VKcM9gU6.js} +0 -0
- /package/dist/assets/{init-D34LU3qG.js → init-F9jkgvKE.js} +0 -0
- /package/dist/assets/{javascript-dAA8UGkz.js → javascript-3wn7R2v8.js} +0 -0
- /package/dist/assets/{jsx-runtime-mwDPpfh_.js → jsx-runtime-DmpivWpf.js} +0 -0
- /package/dist/assets/{katex-CkJcqOLL.js → katex-vhOJuooG.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-CfNzVF4q.js → loro_wasm_bg-CnDIZbF4.js} +0 -0
- /package/dist/assets/{math-B-uM5inP.js → math-C9UoZaXa.js} +0 -0
- /package/dist/assets/{mllike-ClozcVVR.js → mllike-BBifUJsv.js} +0 -0
- /package/dist/assets/{objectWithoutPropertiesLoose-COpOcp6W.js → objectWithoutPropertiesLoose-BhduYW5j.js} +0 -0
- /package/dist/assets/{storage-DT9nZQTa.css → panels-DT9nZQTa.css} +0 -0
- /package/dist/assets/{path-CXR-wni1.js → path-C9KI-dzZ.js} +0 -0
- /package/dist/assets/{prop-types-Dr_68tMt.js → prop-types-DVt2dPhq.js} +0 -0
- /package/dist/assets/{python-Bwt6zAaD.js → python-Dt99D71K.js} +0 -0
- /package/dist/assets/{range-Dwpz5kHq.js → range-D-BEpYZE.js} +0 -0
- /package/dist/assets/{react-BcIddLXZ.js → react-cj45iF1i.js} +0 -0
- /package/dist/assets/{simple-mode-BrL6eoj-.js → simple-mode-NsCUKpko.js} +0 -0
- /package/dist/assets/{src-BuVGraFB.js → src-Ci62OB0C.js} +0 -0
- /package/dist/assets/{timer-CTpu0Fa6.js → timer-DTwym5Fp.js} +0 -0
- /package/dist/assets/{treemap-C6-dXGkc.js → treemap-Bw2ef0_x.js} +0 -0
- /package/dist/assets/{types-CmDbpUqg.js → types-idb4QoTQ.js} +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=e=>t=>c(t.default,e),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")});function d(e){return e}function f(e,t){let n=e.map(e=>`"${e}"`).join(`, `);return Error(`This RPC instance cannot ${t} because the transport did not provide one or more of these methods: ${n}`)}function p(e={}){let t={};function n(e){t=e}let r={};function i(e){r.unregisterHandler&&r.unregisterHandler(),r=e,r.registerHandler?.(oe)}let a;function o(e){if(typeof e==`function`){a=e;return}a=(t,n)=>{let r=e[t];if(r)return r(n);let i=e._;if(!i)throw Error(`The requested method has no handler: ${t}`);return i(t,n)}}let{maxRequestTime:s=1e3}=e;e.transport&&i(e.transport),e.requestHandler&&o(e.requestHandler),e._debugHooks&&n(e._debugHooks);let c=0;function l(){return c<=1e10?++c:c=0}let u=new Map,d=new Map;function p(e,...n){let i=n[0];return new Promise((n,a)=>{if(!r.send)throw f([`send`],`make requests`);let o=l(),c={type:`request`,id:o,method:e,params:i};u.set(o,{resolve:n,reject:a}),s!==1/0&&d.set(o,setTimeout(()=>{d.delete(o),a(Error(`RPC request timed out.`))},s)),t.onSend?.(c),r.send(c)})}let ee=new Proxy(p,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>p(t,e)}),te=ee;function ne(e,...n){let i=n[0];if(!r.send)throw f([`send`],`send messages`);let a={type:`message`,id:e,payload:i};t.onSend?.(a),r.send(a)}let re=new Proxy(ne,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>ne(t,e)}),ie=re,m=new Map,h=new Set;function ae(e,t){if(!r.registerHandler)throw f([`registerHandler`],`register message listeners`);if(e===`*`){h.add(t);return}m.has(e)||m.set(e,new Set),m.get(e)?.add(t)}function g(e,t){if(e===`*`){h.delete(t);return}m.get(e)?.delete(t),m.get(e)?.size===0&&m.delete(e)}async function oe(e){if(t.onReceive?.(e),!(`type`in e))throw Error(`Message does not contain a type.`);if(e.type===`request`){if(!r.send||!a)throw f([`send`,`requestHandler`],`handle requests`);let{id:n,method:i,params:o}=e,s;try{s={type:`response`,id:n,success:!0,payload:await a(i,o)}}catch(e){if(!(e instanceof Error))throw e;s={type:`response`,id:n,success:!1,error:e.message}}t.onSend?.(s),r.send(s);return}if(e.type===`response`){let t=d.get(e.id);t!=null&&clearTimeout(t);let{resolve:n,reject:r}=u.get(e.id)??{};e.success?n?.(e.payload):r?.(Error(e.error));return}if(e.type===`message`){for(let t of h)t(e.id,e.payload);let t=m.get(e.id);if(!t)return;for(let n of t)n(e.payload);return}throw Error(`Unexpected RPC message type: ${e.type}`)}return{setTransport:i,setRequestHandler:o,request:ee,requestProxy:te,send:re,sendProxy:ie,addMessageListener:ae,removeMessageListener:g,proxy:{send:ie,request:te},_setDebugHooks:n}}function ee(e){return p(e)}const te=`[transport-id]`;function ne(e,t){let{transportId:n}=t;return n==null?e:{[te]:n,data:e}}function re(e,t){let{transportId:n,filter:r}=t,i=r?.();if(n!=null&&i!=null)throw Error("Cannot use both `transportId` and `filter` at the same time");let a=e;if(n){if(e[te]!==n)return[!0];a=e.data}return i===!1?[!0]:[!1,a]}function ie(e,t={}){let{transportId:n,filter:r,remotePort:i}=t,a=e,o=i??e,s;return{send(e){o.postMessage(ne(e,{transportId:n}))},registerHandler(e){s=t=>{let i=t.data,[a,o]=re(i,{transportId:n,filter:()=>r?.(t)});a||e(o)},a.addEventListener(`message`,s)},unregisterHandler(){s&&a.removeEventListener(`message`,s)}}}function m(e){return ie(self,e)}function h(e,t){if(!e)throw Error(t)}function ae(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}const g={NOOP:()=>{},ASYNC_NOOP:async()=>{},THROW:()=>{throw Error(`Should not be called`)},asUpdater:e=>typeof e==`function`?e:()=>e,identity:e=>e},oe=(e,t)=>{let n=`[${e}]`;return{debug:(...e)=>console.debug(n,...e),log:(...e)=>t.log(n,...e),warn:(...e)=>t.warn(n,...e),error:(...e)=>t.error(n,...e),trace:(...e)=>t.trace(n,...e),get:n=>oe(`${e}:${n}`,t),disabled:(e=!0)=>e?ce:t}},se={debug:(...e)=>{console.debug(...e)},log:(...e)=>{console.log(...e)},warn:(...e)=>{console.warn(...e)},error:(...e)=>{console.error(...e)},trace:(...e)=>{console.trace(...e)},get:e=>oe(`marimo:${e}`,se),disabled:(e=!0)=>e?ce:se},ce={debug:()=>g.NOOP,log:()=>g.NOOP,warn:()=>g.NOOP,error:()=>g.NOOP,trace:()=>g.NOOP,get:()=>ce,disabled:()=>ce};function le(){return typeof window<`u`&&window.Logger||se}const _=le(),ue=e=>new TextDecoder().decode(e);var de=class{promise;resolve;reject;status=`pending`;constructor(){this.promise=new Promise((e,t)=>{this.reject=e=>{this.status=`rejected`,t(e)},this.resolve=t=>{this.status=`resolved`,e(t)}})}};Object.freeze({status:`aborted`});function v(e,t,n){function r(n,r){var i;for(let a in Object.defineProperty(n,`_zod`,{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),o.prototype)a in n||Object.defineProperty(n,a,{value:o.prototype[a].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var y=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},fe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};const pe={};function b(e){return e&&Object.assign(pe,e),pe}function me(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function he(e,t){return typeof t==`bigint`?t.toString():t}function ge(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function _e(e){return e==null}function ve(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const ye=Symbol(`evaluating`);function x(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ye)return r===void 0&&(r=ye,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function S(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function C(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function be(e){return JSON.stringify(e)}const xe=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Se(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Ce=ge(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function w(e){if(Se(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(Se(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function we(e){return w(e)?{...e}:Array.isArray(e)?[...e]:e}const Te=new Set([`string`,`number`,`symbol`]);function Ee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function T(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function E(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function De(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Oe(e,t){let n=e._zod.def;return T(e,C(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return S(this,`shape`,e),e},checks:[]}))}function ke(e,t){let n=e._zod.def;return T(e,C(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return S(this,`shape`,r),r},checks:[]}))}function Ae(e,t){if(!w(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return T(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return S(this,`shape`,n),n},checks:[]}))}function je(e,t){if(!w(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return T(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return S(this,`shape`,n),n},checks:e._zod.def.checks})}function Me(e,t){return T(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return S(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Ne(e,t,n){return T(t,C(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return S(this,`shape`,i),i},checks:[]}))}function Pe(e,t,n){return T(t,C(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return S(this,`shape`,i),i},checks:[]}))}function D(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Fe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ie(e){return typeof e==`string`?e:e?.message}function O(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Ie(e.inst?._zod.def?.error?.(e))??Ie(t?.error?.(e))??Ie(n.customError?.(e))??Ie(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Le(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function k(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Re=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,he,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},ze=v(`$ZodError`,Re),Be=v(`$ZodError`,Re,{Parent:Error});function Ve(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function He(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if(t.code===`invalid_union`&&t.errors.length)t.errors.map(e=>i({issues:e}));else if(t.code===`invalid_key`)i({issues:t.issues});else if(t.code===`invalid_element`)i({issues:t.issues});else if(t.path.length===0)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}const Ue=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new y;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,b())));throw xe(t,i?.callee),t}return o.value},We=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,b())));throw xe(t,i?.callee),t}return o.value},Ge=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new y;return a.issues.length?{success:!1,error:new(e??ze)(a.issues.map(e=>O(e,i,b())))}:{success:!0,data:a.value}},Ke=Ge(Be),qe=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>O(e,i,b())))}:{success:!0,data:a.value}},Je=qe(Be),Ye=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ue(e)(t,n,i)},Xe=e=>(t,n,r)=>Ue(e)(t,n,r),Ze=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return We(e)(t,n,i)},Qe=e=>async(t,n,r)=>We(e)(t,n,r),$e=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ge(e)(t,n,i)},et=e=>(t,n,r)=>Ge(e)(t,n,r),tt=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return qe(e)(t,n,i)},nt=e=>async(t,n,r)=>qe(e)(t,n,r),rt=/^[cC][^\s-]{8,}$/,it=/^[0-9a-z]+$/,at=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ot=/^[0-9a-vA-V]{20}$/,st=/^[A-Za-z0-9]{27}$/,ct=/^[a-zA-Z0-9_-]{21}$/,lt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ut=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,dt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ft=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function pt(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const mt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ht=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,gt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_t=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yt=/^[A-Za-z0-9_-]*$/,bt=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,xt=/^\+(?:[0-9]){6,14}[0-9]$/,St=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Ct=RegExp(`^${St}$`);function wt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Tt(e){return RegExp(`^${wt(e)}$`)}function Et(e){let t=wt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${St}T(?:${r})$`)}const Dt=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Ot=/^[^A-Z]*$/,kt=/^[^a-z]*$/,A=v(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),At=v(`$ZodCheckMaxLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_e(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Le(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jt=v(`$ZodCheckMinLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_e(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Le(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Mt=v(`$ZodCheckLengthEquals`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_e(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Le(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Nt=v(`$ZodCheckStringFormat`,(e,t)=>{var n,r;A.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Pt=v(`$ZodCheckRegex`,(e,t)=>{Nt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ft=v(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Ot,Nt.init(e,t)}),It=v(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=kt,Nt.init(e,t)}),Lt=v(`$ZodCheckIncludes`,(e,t)=>{A.init(e,t);let n=Ee(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Rt=v(`$ZodCheckStartsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`^${Ee(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),zt=v(`$ZodCheckEndsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`.*${Ee(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Bt=v(`$ZodCheckOverwrite`,(e,t)=>{A.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var Vt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
2
|
-
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
3
|
-
`))}};const Ht={major:4,minor:1,patch:11},j=v(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ht;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=D(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new y;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=D(e,t))});else{if(e.issues.length===t)continue;r||=D(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(D(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(e=>t(e,r,a))}return t(o,r,a)}}e[`~standard`]={validate:t=>{try{let n=Ke(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Je(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}}),Ut=v(`$ZodString`,(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Dt(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),M=v(`$ZodStringFormat`,(e,t)=>{Nt.init(e,t),Ut.init(e,t)}),Wt=v(`$ZodGUID`,(e,t)=>{t.pattern??=ut,M.init(e,t)}),Gt=v(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=dt(e)}else t.pattern??=dt();M.init(e,t)}),Kt=v(`$ZodEmail`,(e,t)=>{t.pattern??=ft,M.init(e,t)}),qt=v(`$ZodURL`,(e,t)=>{M.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:bt.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Jt=v(`$ZodEmoji`,(e,t)=>{t.pattern??=pt(),M.init(e,t)}),Yt=v(`$ZodNanoID`,(e,t)=>{t.pattern??=ct,M.init(e,t)}),Xt=v(`$ZodCUID`,(e,t)=>{t.pattern??=rt,M.init(e,t)}),Zt=v(`$ZodCUID2`,(e,t)=>{t.pattern??=it,M.init(e,t)}),Qt=v(`$ZodULID`,(e,t)=>{t.pattern??=at,M.init(e,t)}),$t=v(`$ZodXID`,(e,t)=>{t.pattern??=ot,M.init(e,t)}),en=v(`$ZodKSUID`,(e,t)=>{t.pattern??=st,M.init(e,t)}),tn=v(`$ZodISODateTime`,(e,t)=>{t.pattern??=Et(t),M.init(e,t)}),nn=v(`$ZodISODate`,(e,t)=>{t.pattern??=Ct,M.init(e,t)}),rn=v(`$ZodISOTime`,(e,t)=>{t.pattern??=Tt(t),M.init(e,t)}),an=v(`$ZodISODuration`,(e,t)=>{t.pattern??=lt,M.init(e,t)}),on=v(`$ZodIPv4`,(e,t)=>{t.pattern??=mt,M.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv4`})}),sn=v(`$ZodIPv6`,(e,t)=>{t.pattern??=ht,M.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv6`}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),cn=v(`$ZodCIDRv4`,(e,t)=>{t.pattern??=gt,M.init(e,t)}),ln=v(`$ZodCIDRv6`,(e,t)=>{t.pattern??=_t,M.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function un(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const dn=v(`$ZodBase64`,(e,t)=>{t.pattern??=vt,M.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64`}),e._zod.check=n=>{un(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function fn(e){if(!yt.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return un(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const pn=v(`$ZodBase64URL`,(e,t)=>{t.pattern??=yt,M.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64url`}),e._zod.check=n=>{fn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),mn=v(`$ZodE164`,(e,t)=>{t.pattern??=xt,M.init(e,t)});function hn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const gn=v(`$ZodJWT`,(e,t)=>{M.init(e,t),e._zod.check=n=>{hn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),_n=v(`$ZodUnknown`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),vn=v(`$ZodNever`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function yn(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}const bn=v(`$ZodArray`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>yn(t,n,e))):yn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function xn(e,t,n,r){e.issues.length&&t.issues.push(...Fe(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Sn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=De(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Cn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i of Object.keys(t)){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>xn(e,n,i,t))):xn(a,n,i,t)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const wn=v(`$ZodObject`,(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ge(()=>Sn(t));x(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Se,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>xn(n,t,e,s))):xn(n,t,e,s)}return i?Cn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Tn=v(`$ZodObjectJIT`,(e,t)=>{wn.init(e,t);let n=e._zod.parse,r=ge(()=>Sn(t)),i=e=>{let t=new Vt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=be(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=be(e);t.write(`const ${n} = ${i(e)};`),t.write(`
|
|
4
|
-
if (${n}.issues.length) {
|
|
5
|
-
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
6
|
-
...iss,
|
|
7
|
-
path: iss.path ? [${r}, ...iss.path] : [${r}]
|
|
8
|
-
})));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (${n}.value === undefined) {
|
|
13
|
-
if (${r} in input) {
|
|
14
|
-
newResult[${r}] = undefined;
|
|
15
|
-
}
|
|
16
|
-
} else {
|
|
17
|
-
newResult[${r}] = ${n}.value;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Se,s=!pe.jitless,c=s&&Ce.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Cn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function En(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!D(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>O(e,r,b())))}),t)}const Dn=v(`$ZodUnion`,(e,t)=>{j.init(e,t),x(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),x(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),x(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),x(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ve(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>En(t,i,e,a)):En(s,i,e,a)}}),On=v(`$ZodIntersection`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>An(e,t,n)):An(e,i,a)}});function kn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(w(e)&&w(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=kn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=kn(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function An(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),D(e))return e;let r=kn(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const jn=v(`$ZodEnum`,(e,t)=>{j.init(e,t);let n=me(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Te.has(typeof e)).map(e=>typeof e==`string`?Ee(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Mn=v(`$ZodTransform`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new fe(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new y;return n.value=i,n}});function Nn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Pn=v(`$ZodOptional`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ve(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Nn(t,e.value)):Nn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Fn=v(`$ZodNullable`,(e,t)=>{j.init(e,t),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),x(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ve(e.source)}|null)$`):void 0}),x(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),In=v(`$ZodDefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ln(e,t)):Ln(r,t)}});function Ln(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Rn=v(`$ZodPrefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),zn=v(`$ZodNonOptional`,(e,t)=>{j.init(e,t),x(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Bn(t,e)):Bn(i,e)}});function Bn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const Vn=v(`$ZodCatch`,(e,t)=>{j.init(e,t),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,b()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,b()))},input:e.value}),e.issues=[]),e)}}),Hn=v(`$ZodPipe`,(e,t)=>{j.init(e,t),x(e._zod,`values`,()=>t.in._zod.values),x(e._zod,`optin`,()=>t.in._zod.optin),x(e._zod,`optout`,()=>t.out._zod.optout),x(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Un(e,t.in,n)):Un(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Un(e,t.out,n)):Un(r,t.out,n)}});function Un(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Wn=v(`$ZodReadonly`,(e,t)=>{j.init(e,t),x(e._zod,`propValues`,()=>t.innerType._zod.propValues),x(e._zod,`values`,()=>t.innerType._zod.values),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Gn):Gn(r)}});function Gn(e){return e.value=Object.freeze(e.value),e}const Kn=v(`$ZodCustom`,(e,t)=>{A.init(e,t),j.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>qn(t,n,r,e));qn(i,n,r,e)}});function qn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(k(e))}}var Jn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Yn(){return new Jn}const Xn=Yn();function Zn(e,t){return new e({type:`string`,...E(t)})}function Qn(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function $n(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function er(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function tr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function nr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function rr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function ir(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function ar(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function or(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function sr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function cr(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function lr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function ur(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function dr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function fr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function pr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function mr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function hr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function gr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function _r(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function vr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function yr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function br(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function xr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function Sr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function Cr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function wr(e){return new e({type:`unknown`})}function Tr(e,t){return new e({type:`never`,...E(t)})}function Er(e,t){return new At({check:`max_length`,...E(t),maximum:e})}function Dr(e,t){return new jt({check:`min_length`,...E(t),minimum:e})}function Or(e,t){return new Mt({check:`length_equals`,...E(t),length:e})}function kr(e,t){return new Pt({check:`string_format`,format:`regex`,...E(t),pattern:e})}function Ar(e){return new Ft({check:`string_format`,format:`lowercase`,...E(e)})}function jr(e){return new It({check:`string_format`,format:`uppercase`,...E(e)})}function Mr(e,t){return new Lt({check:`string_format`,format:`includes`,...E(t),includes:e})}function Nr(e,t){return new Rt({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function Pr(e,t){return new zt({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function N(e){return new Bt({check:`overwrite`,tx:e})}function Fr(e){return N(t=>t.normalize(e))}function Ir(){return N(e=>e.trim())}function Lr(){return N(e=>e.toLowerCase())}function Rr(){return N(e=>e.toUpperCase())}function zr(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Br(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function Vr(e){let t=Hr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(k(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(k(r))}},e(n.value,n)));return t}function Hr(e,t){let n=new A({check:`custom`,...E(t)});return n._zod.check=e,n}const Ur=v(`ZodISODateTime`,(e,t)=>{tn.init(e,t),I.init(e,t)});function Wr(e){return br(Ur,e)}const Gr=v(`ZodISODate`,(e,t)=>{nn.init(e,t),I.init(e,t)});function Kr(e){return xr(Gr,e)}const qr=v(`ZodISOTime`,(e,t)=>{rn.init(e,t),I.init(e,t)});function Jr(e){return Sr(qr,e)}const Yr=v(`ZodISODuration`,(e,t)=>{an.init(e,t),I.init(e,t)});function Xr(e){return Cr(Yr,e)}const Zr=(e,t)=>{ze.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>He(e,t)},flatten:{value:t=>Ve(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,he,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,he,2)}},isEmpty:{get(){return e.issues.length===0}}})};v(`ZodError`,Zr);const P=v(`ZodError`,Zr,{Parent:Error}),Qr=Ue(P),$r=We(P),ei=Ge(P),ti=qe(P),ni=Ye(P),ri=Xe(P),ii=Ze(P),ai=Qe(P),oi=$e(P),si=et(P),ci=tt(P),li=nt(P),F=v(`ZodType`,(e,t)=>(j.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(C(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>T(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Qr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ei(e,t,n),e.parseAsync=async(t,n)=>$r(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ti(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ni(e,t,n),e.decode=(t,n)=>ri(e,t,n),e.encodeAsync=async(t,n)=>ii(e,t,n),e.decodeAsync=async(t,n)=>ai(e,t,n),e.safeEncode=(t,n)=>oi(e,t,n),e.safeDecode=(t,n)=>si(e,t,n),e.safeEncodeAsync=async(t,n)=>ci(e,t,n),e.safeDecodeAsync=async(t,n)=>li(e,t,n),e.refine=(t,n)=>e.check(da(t,n)),e.superRefine=t=>e.check(fa(t)),e.overwrite=t=>e.check(N(t)),e.optional=()=>Yi(e),e.nullable=()=>Zi(e),e.nullish=()=>Yi(Zi(e)),e.nonoptional=t=>ra(e,t),e.array=()=>Li(e),e.or=t=>Vi([e,t]),e.and=t=>Ui(e,t),e.transform=t=>sa(e,qi(t)),e.default=t=>$i(e,t),e.prefault=t=>ta(e,t),e.catch=t=>aa(e,t),e.pipe=t=>sa(e,t),e.readonly=()=>la(e),e.describe=t=>{let n=e.clone();return Xn.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Xn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Xn.get(e);let n=e.clone();return Xn.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ui=v(`_ZodString`,(e,t)=>{Ut.init(e,t),F.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(kr(...t)),e.includes=(...t)=>e.check(Mr(...t)),e.startsWith=(...t)=>e.check(Nr(...t)),e.endsWith=(...t)=>e.check(Pr(...t)),e.min=(...t)=>e.check(Dr(...t)),e.max=(...t)=>e.check(Er(...t)),e.length=(...t)=>e.check(Or(...t)),e.nonempty=(...t)=>e.check(Dr(1,...t)),e.lowercase=t=>e.check(Ar(t)),e.uppercase=t=>e.check(jr(t)),e.trim=()=>e.check(Ir()),e.normalize=(...t)=>e.check(Fr(...t)),e.toLowerCase=()=>e.check(Lr()),e.toUpperCase=()=>e.check(Rr())}),di=v(`ZodString`,(e,t)=>{Ut.init(e,t),ui.init(e,t),e.email=t=>e.check(Qn(pi,t)),e.url=t=>e.check(ir(gi,t)),e.jwt=t=>e.check(yr(ji,t)),e.emoji=t=>e.check(ar(_i,t)),e.guid=t=>e.check($n(mi,t)),e.uuid=t=>e.check(er(hi,t)),e.uuidv4=t=>e.check(tr(hi,t)),e.uuidv6=t=>e.check(nr(hi,t)),e.uuidv7=t=>e.check(rr(hi,t)),e.nanoid=t=>e.check(or(vi,t)),e.guid=t=>e.check($n(mi,t)),e.cuid=t=>e.check(sr(yi,t)),e.cuid2=t=>e.check(cr(bi,t)),e.ulid=t=>e.check(lr(xi,t)),e.base64=t=>e.check(gr(Oi,t)),e.base64url=t=>e.check(_r(ki,t)),e.xid=t=>e.check(ur(Si,t)),e.ksuid=t=>e.check(dr(Ci,t)),e.ipv4=t=>e.check(fr(wi,t)),e.ipv6=t=>e.check(pr(Ti,t)),e.cidrv4=t=>e.check(mr(Ei,t)),e.cidrv6=t=>e.check(hr(Di,t)),e.e164=t=>e.check(vr(Ai,t)),e.datetime=t=>e.check(Wr(t)),e.date=t=>e.check(Kr(t)),e.time=t=>e.check(Jr(t)),e.duration=t=>e.check(Xr(t))});function fi(e){return Zn(di,e)}const I=v(`ZodStringFormat`,(e,t)=>{M.init(e,t),ui.init(e,t)}),pi=v(`ZodEmail`,(e,t)=>{Kt.init(e,t),I.init(e,t)}),mi=v(`ZodGUID`,(e,t)=>{Wt.init(e,t),I.init(e,t)}),hi=v(`ZodUUID`,(e,t)=>{Gt.init(e,t),I.init(e,t)}),gi=v(`ZodURL`,(e,t)=>{qt.init(e,t),I.init(e,t)}),_i=v(`ZodEmoji`,(e,t)=>{Jt.init(e,t),I.init(e,t)}),vi=v(`ZodNanoID`,(e,t)=>{Yt.init(e,t),I.init(e,t)}),yi=v(`ZodCUID`,(e,t)=>{Xt.init(e,t),I.init(e,t)}),bi=v(`ZodCUID2`,(e,t)=>{Zt.init(e,t),I.init(e,t)}),xi=v(`ZodULID`,(e,t)=>{Qt.init(e,t),I.init(e,t)}),Si=v(`ZodXID`,(e,t)=>{$t.init(e,t),I.init(e,t)}),Ci=v(`ZodKSUID`,(e,t)=>{en.init(e,t),I.init(e,t)}),wi=v(`ZodIPv4`,(e,t)=>{on.init(e,t),I.init(e,t)}),Ti=v(`ZodIPv6`,(e,t)=>{sn.init(e,t),I.init(e,t)}),Ei=v(`ZodCIDRv4`,(e,t)=>{cn.init(e,t),I.init(e,t)}),Di=v(`ZodCIDRv6`,(e,t)=>{ln.init(e,t),I.init(e,t)}),Oi=v(`ZodBase64`,(e,t)=>{dn.init(e,t),I.init(e,t)}),ki=v(`ZodBase64URL`,(e,t)=>{pn.init(e,t),I.init(e,t)}),Ai=v(`ZodE164`,(e,t)=>{mn.init(e,t),I.init(e,t)}),ji=v(`ZodJWT`,(e,t)=>{gn.init(e,t),I.init(e,t)}),Mi=v(`ZodUnknown`,(e,t)=>{_n.init(e,t),F.init(e,t)});function Ni(){return wr(Mi)}const Pi=v(`ZodNever`,(e,t)=>{vn.init(e,t),F.init(e,t)});function Fi(e){return Tr(Pi,e)}const Ii=v(`ZodArray`,(e,t)=>{bn.init(e,t),F.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Dr(t,n)),e.nonempty=t=>e.check(Dr(1,t)),e.max=(t,n)=>e.check(Er(t,n)),e.length=(t,n)=>e.check(Or(t,n)),e.unwrap=()=>e.element});function Li(e,t){return zr(Ii,e,t)}const Ri=v(`ZodObject`,(e,t)=>{Tn.init(e,t),F.init(e,t),x(e,`shape`,()=>t.shape),e.keyof=()=>Gi(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ni()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ni()}),e.strict=()=>e.clone({...e._zod.def,catchall:Fi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Ae(e,t),e.safeExtend=t=>je(e,t),e.merge=t=>Me(e,t),e.pick=t=>Oe(e,t),e.omit=t=>ke(e,t),e.partial=(...t)=>Ne(Ji,e,t[0]),e.required=(...t)=>Pe(na,e,t[0])});function zi(e,t){return new Ri({type:`object`,shape:e??{},...E(t)})}const Bi=v(`ZodUnion`,(e,t)=>{Dn.init(e,t),F.init(e,t),e.options=t.options});function Vi(e,t){return new Bi({type:`union`,options:e,...E(t)})}const Hi=v(`ZodIntersection`,(e,t)=>{On.init(e,t),F.init(e,t)});function Ui(e,t){return new Hi({type:`intersection`,left:e,right:t})}const Wi=v(`ZodEnum`,(e,t)=>{jn.init(e,t),F.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Wi({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Wi({...t,checks:[],...E(r),entries:i})}});function Gi(e,t){return new Wi({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}const Ki=v(`ZodTransform`,(e,t)=>{Mn.init(e,t),F.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new fe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(k(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(k(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function qi(e){return new Ki({type:`transform`,transform:e})}const Ji=v(`ZodOptional`,(e,t)=>{Pn.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Yi(e){return new Ji({type:`optional`,innerType:e})}const Xi=v(`ZodNullable`,(e,t)=>{Fn.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Zi(e){return new Xi({type:`nullable`,innerType:e})}const Qi=v(`ZodDefault`,(e,t)=>{In.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $i(e,t){return new Qi({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():we(t)}})}const ea=v(`ZodPrefault`,(e,t)=>{Rn.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ta(e,t){return new ea({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():we(t)}})}const na=v(`ZodNonOptional`,(e,t)=>{zn.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ra(e,t){return new na({type:`nonoptional`,innerType:e,...E(t)})}const ia=v(`ZodCatch`,(e,t)=>{Vn.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function aa(e,t){return new ia({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const oa=v(`ZodPipe`,(e,t)=>{Hn.init(e,t),F.init(e,t),e.in=t.in,e.out=t.out});function sa(e,t){return new oa({type:`pipe`,in:e,out:t})}const ca=v(`ZodReadonly`,(e,t)=>{Wn.init(e,t),F.init(e,t),e.unwrap=()=>e._zod.def.innerType});function la(e){return new ca({type:`readonly`,innerType:e})}const ua=v(`ZodCustom`,(e,t)=>{Kn.init(e,t),F.init(e,t)});function da(e,t={}){return Br(ua,e,t)}function fa(e){return Vr(e)}const pa=zi({detail:fi()}),ma=zi({error:fi()});function ha(e){if(!e)return`Unknown error`;if(e instanceof Error){let t=pa.safeParse(e.cause);return t.success?t.data.detail:ga(e.message)}if(typeof e==`object`){let t=pa.safeParse(e);if(t.success)return t.data.detail;let n=ma.safeParse(e);if(n.success)return n.data.error}try{return JSON.stringify(e)}catch{return String(e)}}function ga(e){let t=_a(e);if(!t)return e;let n=pa.safeParse(t);if(n.success)return n.data.detail;let r=ma.safeParse(t);return r.success?r.data.error:e}function _a(e){try{return JSON.parse(e)}catch{return e}}function L(e){return e.FS}const R=`notebook.py`,z=`/marimo`,B={NOTEBOOK_FILENAME:R,HOME_DIR:z,createHomeDir:e=>{let t=L(e);try{t.mkdirTree(z)}catch{}t.chdir(z)},mountFS:e=>{L(e).mount(e.FS.filesystems.IDBFS,{root:`.`},z)},populateFilesToMemory:async e=>{await va(e,!0)},persistFilesToRemote:async e=>{await va(e,!1)},readNotebook:e=>{let t=L(e),n=`${z}/${R}`;return ue(t.readFile(n))},initNotebookCode:e=>{let{pyodide:t,filename:n,code:r}=e,i=L(t),a=e=>{try{return ue(i.readFile(e))}catch{return null}};if(n&&n!==R){let e=a(n);if(e)return{code:e,filename:n}}return i.writeFile(R,r),{code:r,filename:R}}};function va(e,t){return new Promise((n,r)=>{L(e).syncfs(t,e=>{if(e instanceof Error){r(e);return}n()})})}var ya=Object.defineProperty,V=(e,t)=>ya(e,`name`,{value:t,configurable:!0}),ba=(e=>typeof u<`u`?u:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof u<`u`?u:e)[t]}):e)(function(e){if(typeof u<`u`)return u.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});function xa(e){return!isNaN(parseFloat(e))&&isFinite(e)}V(xa,`_isNumber`);function H(e){return e.charAt(0).toUpperCase()+e.substring(1)}V(H,`_capitalize`);function Sa(e){return function(){return this[e]}}V(Sa,`_getter`);var U=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],W=[`columnNumber`,`lineNumber`],G=[`fileName`,`functionName`,`source`],Ca=U.concat(W,G,[`args`],[`evalOrigin`]);function K(e){if(e)for(var t=0;t<Ca.length;t++)e[Ca[t]]!==void 0&&this[`set`+H(Ca[t])](e[Ca[t]])}for(V(K,`StackFrame`),K.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof K)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new K(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},K.fromString=V(function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),s=o[1],c=o[2],l=o[3];return new K({functionName:r,args:i||void 0,fileName:s,lineNumber:c||void 0,columnNumber:l||void 0})},`StackFrame$$fromString`),q=0;q<U.length;q++)K.prototype[`get`+H(U[q])]=Sa(U[q]),K.prototype[`set`+H(U[q])]=function(e){return function(t){this[e]=!!t}}(U[q]);var q;for(J=0;J<W.length;J++)K.prototype[`get`+H(W[J])]=Sa(W[J]),K.prototype[`set`+H(W[J])]=function(e){return function(t){if(!xa(t))throw TypeError(e+` must be a Number`);this[e]=Number(t)}}(W[J]);var J;for(Y=0;Y<G.length;Y++)K.prototype[`get`+H(G[Y])]=Sa(G[Y]),K.prototype[`set`+H(G[Y])]=function(e){return function(t){this[e]=String(t)}}(G[Y]);var Y,wa=K;function Ta(){var e=/^\s*at .*(\S+:\d+|\(native\))/m,t=/^(eval@)?(\[native code])?$/;return{parse:V(function(t){if(t.stack&&t.stack.match(e))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw Error(`Cannot parse given Error object`)},`ErrorStackParser$$parse`),extractLocation:V(function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},`ErrorStackParser$$extractLocation`),parseV8OrIE:V(function(t){return t.stack.split(`
|
|
21
|
-
`).filter(function(t){return!!t.match(e)},this).map(function(e){e.indexOf(`(eval `)>-1&&(e=e.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));var t=e.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],``):t;var r=this.extractLocation(n?n[1]:t);return new wa({functionName:n&&t||void 0,fileName:[`eval`,`<anonymous>`].indexOf(r[0])>-1?void 0:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)},`ErrorStackParser$$parseV8OrIE`),parseFFOrSafari:V(function(e){return e.stack.split(`
|
|
22
|
-
`).filter(function(e){return!e.match(t)},this).map(function(e){if(e.indexOf(` > eval`)>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),e.indexOf(`@`)===-1&&e.indexOf(`:`)===-1)return new wa({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,i=this.extractLocation(e.replace(t,``));return new wa({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)},`ErrorStackParser$$parseFFOrSafari`)}}V(Ta,`ErrorStackParser`);var Ea=new Ta,X=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`&&!process.browser,Da=X&&typeof module<`u`&&typeof module.exports<`u`&&typeof ba<`u`&&typeof __dirname<`u`,Oa=X&&!Da;globalThis.Bun;var ka=!X&&!(typeof Deno<`u`),Aa=ka&&typeof window==`object`&&typeof document==`object`&&typeof document.createElement==`function`&&`sessionStorage`in window&&typeof importScripts!=`function`,ja=ka&&typeof importScripts==`function`&&typeof self==`object`;typeof navigator==`object`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Chrome`)==-1&&navigator.userAgent.indexOf(`Safari`);var Ma,Na,Pa,Fa,Ia;async function La(){if(!X||(Ma=(await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1))).default,Fa=await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1)),Ia=await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1)),Pa=(await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1))).default,Na=await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1)),Va=Na.sep,typeof ba<`u`))return;let e={fs:Fa,crypto:await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1)),ws:await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1)),child_process:await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1))};globalThis.require=function(t){return e[t]}}V(La,`initNodeModules`);function Ra(e,t){return Na.resolve(t||`.`,e)}V(Ra,`node_resolvePath`);function za(e,t){return t===void 0&&(t=location),new URL(e,t).toString()}V(za,`browser_resolvePath`);var Ba=X?Ra:za,Va;X||(Va=`/`);function Ha(e,t){return e.startsWith(`file://`)&&(e=e.slice(7)),e.includes(`://`)?{response:fetch(e)}:{binary:Ia.readFile(e).then(e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}}V(Ha,`node_getBinaryResponse`);function Ua(e,t){let n=new URL(e,location);return{response:fetch(n,t?{integrity:t}:{})}}V(Ua,`browser_getBinaryResponse`);var Wa=X?Ha:Ua;async function Ga(e,t){let{response:n,binary:r}=Wa(e,t);if(r)return r;let i=await n;if(!i.ok)throw Error(`Failed to load '${e}': request failed.`);return new Uint8Array(await i.arrayBuffer())}V(Ga,`loadBinaryFile`);var Ka;if(Aa)Ka=V(async e=>await import(e),`loadScript`);else if(ja)Ka=V(async e=>{try{globalThis.importScripts(e)}catch(t){if(t instanceof TypeError)await import(e);else throw t}},`loadScript`);else if(X)Ka=qa;else throw Error(`Cannot determine runtime environment`);async function qa(e){e.startsWith(`file://`)&&(e=e.slice(7)),e.includes(`://`)?Pa.runInThisContext(await(await fetch(e)).text()):await import(Ma.pathToFileURL(e).href)}V(qa,`nodeLoadScript`);async function Ja(e){if(X){await La();let t=await Ia.readFile(e,{encoding:`utf8`});return JSON.parse(t)}else return await(await fetch(e)).json()}V(Ja,`loadLockFile`);async function Ya(){if(Da)return __dirname;let e;try{throw Error()}catch(t){e=t}let t=Ea.parse(e)[0].fileName;if(X&&!t.startsWith(`file://`)&&(t=`file://${t}`),Oa){let e=await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1));return(await import(`./__vite-browser-external-BJyYPVNm.js`).then(l(1))).fileURLToPath(e.dirname(t))}let n=t.lastIndexOf(Va);if(n===-1)throw Error(`Could not extract indexURL path from pyodide module location`);return t.slice(0,n)}V(Ya,`calculateDirname`);function Xa(e){let t=e.FS,n=e.FS.filesystems.MEMFS,r=e.PATH,i={DIR_MODE:16895,FILE_MODE:33279,mount:function(e){if(!e.opts.fileSystemHandle)throw Error(`opts.fileSystemHandle is required`);return n.mount.apply(null,arguments)},syncfs:async(e,t,n)=>{try{let r=i.getLocalSet(e),a=await i.getRemoteSet(e),o=t?a:r,s=t?r:a;await i.reconcile(e,o,s),n(null)}catch(e){n(e)}},getLocalSet:e=>{let n=Object.create(null);function i(e){return e!==`.`&&e!==`..`}V(i,`isRealDir`);function a(e){return t=>r.join2(e,t)}V(a,`toAbsolute`);let o=t.readdir(e.mountpoint).filter(i).map(a(e.mountpoint));for(;o.length;){let e=o.pop(),r=t.stat(e);t.isDir(r.mode)&&o.push.apply(o,t.readdir(e).filter(i).map(a(e))),n[e]={timestamp:r.mtime,mode:r.mode}}return{type:`local`,entries:n}},getRemoteSet:async e=>{let t=Object.create(null),n=await Za(e.opts.fileSystemHandle);for(let[a,o]of n)a!==`.`&&(t[r.join2(e.mountpoint,a)]={timestamp:o.kind===`file`?new Date((await o.getFile()).lastModified):new Date,mode:o.kind===`file`?i.FILE_MODE:i.DIR_MODE});return{type:`remote`,entries:t,handles:n}},loadLocalEntry:e=>{let r=t.lookupPath(e).node,i=t.stat(e);if(t.isDir(i.mode))return{timestamp:i.mtime,mode:i.mode};if(t.isFile(i.mode))return r.contents=n.getFileDataAsTypedArray(r),{timestamp:i.mtime,mode:i.mode,contents:r.contents};throw Error(`node type not supported`)},storeLocalEntry:(e,n)=>{if(t.isDir(n.mode))t.mkdirTree(e,n.mode);else if(t.isFile(n.mode))t.writeFile(e,n.contents,{canOwn:!0});else throw Error(`node type not supported`);t.chmod(e,n.mode),t.utime(e,n.timestamp,n.timestamp)},removeLocalEntry:e=>{var n=t.stat(e);t.isDir(n.mode)?t.rmdir(e):t.isFile(n.mode)&&t.unlink(e)},loadRemoteEntry:async e=>{if(e.kind===`file`){let t=await e.getFile();return{contents:new Uint8Array(await t.arrayBuffer()),mode:i.FILE_MODE,timestamp:new Date(t.lastModified)}}else{if(e.kind===`directory`)return{mode:i.DIR_MODE,timestamp:new Date};throw Error(`unknown kind: `+e.kind)}},storeRemoteEntry:async(e,n,i)=>{let a=e.get(r.dirname(n)),o=t.isFile(i.mode)?await a.getFileHandle(r.basename(n),{create:!0}):await a.getDirectoryHandle(r.basename(n),{create:!0});if(o.kind===`file`){let e=await o.createWritable();await e.write(i.contents),await e.close()}e.set(n,o)},removeRemoteEntry:async(e,t)=>{await e.get(r.dirname(t)).removeEntry(r.basename(t)),e.delete(t)},reconcile:async(e,n,a)=>{let o=0,s=[];Object.keys(n.entries).forEach(function(e){let r=n.entries[e],i=a.entries[e];(!i||t.isFile(r.mode)&&r.timestamp.getTime()>i.timestamp.getTime())&&(s.push(e),o++)}),s.sort();let c=[];if(Object.keys(a.entries).forEach(function(e){n.entries[e]||(c.push(e),o++)}),c.sort().reverse(),!o)return;let l=n.type===`remote`?n.handles:a.handles;for(let t of s){let n=r.normalize(t.replace(e.mountpoint,`/`)).substring(1);if(a.type===`local`){let e=l.get(n),r=await i.loadRemoteEntry(e);i.storeLocalEntry(t,r)}else{let e=i.loadLocalEntry(t);await i.storeRemoteEntry(l,n,e)}}for(let t of c)if(a.type===`local`)i.removeLocalEntry(t);else{let n=r.normalize(t.replace(e.mountpoint,`/`)).substring(1);await i.removeRemoteEntry(l,n)}}};e.FS.filesystems.NATIVEFS_ASYNC=i}V(Xa,`initializeNativeFS`);var Za=V(async e=>{let t=[];async function n(e){for await(let r of e.values())t.push(r),r.kind===`directory`&&await n(r)}V(n,`collect`),await n(e);let r=new Map;r.set(`.`,e);for(let n of t){let t=(await e.resolve(n)).join(`/`);r.set(t,n)}return r},`getFsHandles`);function Qa(e){let t={noImageDecoding:!0,noAudioDecoding:!0,noWasmDecoding:!1,preRun:ro(e),quit(e,n){throw t.exited={status:e,toThrow:n},n},print:e.stdout,printErr:e.stderr,thisProgram:e._sysExecutable,arguments:e.args,API:{config:e},locateFile:t=>e.indexURL+t,instantiateWasm:io(e.indexURL)};return t}V(Qa,`createSettings`);function $a(e){return function(t){try{t.FS.mkdirTree(e)}catch(t){console.error(`Error occurred while making a home directory '${e}':`),console.error(t),console.error(`Using '/' for a home directory instead`),e=`/`}t.FS.chdir(e)}}V($a,`createHomeDirectory`);function eo(e){return function(t){Object.assign(t.ENV,e)}}V(eo,`setEnvironment`);function to(e){return e?[async t=>{t.addRunDependency(`fsInitHook`);try{await e(t.FS,{sitePackages:t.API.sitePackages})}finally{t.removeRunDependency(`fsInitHook`)}}]:[]}V(to,`callFsInitHook`);function no(e){let t=Ga(e);return async e=>{let n=e._py_version_major(),r=e._py_version_minor();e.FS.mkdirTree(`/lib`),e.API.sitePackages=`/lib/python${n}.${r}/site-packages`,e.FS.mkdirTree(e.API.sitePackages),e.addRunDependency(`install-stdlib`);try{let i=await t;e.FS.writeFile(`/lib/python${n}${r}.zip`,i)}catch(e){console.error(`Error occurred while installing the standard library:`),console.error(e)}finally{e.removeRunDependency(`install-stdlib`)}}}V(no,`installStdlib`);function ro(e){let t;return t=e.stdLibURL==null?e.indexURL+`python_stdlib.zip`:e.stdLibURL,[...to(e.fsInit),no(t),$a(e.env.HOME),eo(e.env),Xa]}V(ro,`getFileSystemInitializationFuncs`);function io(e){if(typeof WasmOffsetConverter<`u`)return;let{binary:t,response:n}=Wa(e+`pyodide.asm.wasm`);return function(e,r){return async function(){try{let i;i=n?await WebAssembly.instantiateStreaming(n,e):await WebAssembly.instantiate(await t,e);let{instance:a,module:o}=i;r(a,o)}catch(e){console.warn(`wasm instantiation failed!`),console.warn(e)}}(),{}}}V(io,`getInstantiateWasmFunc`);var ao=`0.27.7`;async function oo(e={}){var t,n;await La();let r=e.indexURL||await Ya();r=Ba(r),r.endsWith(`/`)||(r+=`/`),e.indexURL=r;let i={fullStdLib:!1,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0,lockFileURL:r+`pyodide-lock.json`,args:[],env:{},packageCacheDir:r,packages:[],enableRunUntilComplete:!0,checkAPIVersion:!0,BUILD_ID:`e94377f5ce7dcf67e0417b69a0016733c2cfb6b4622ee8c490a6f17eb58e863b`},a=Object.assign(i,e);(t=a.env).HOME??(t.HOME=`/home/pyodide`),(n=a.env).PYTHONINSPECT??(n.PYTHONINSPECT=`1`);let o=Qa(a),s=o.API;if(s.lockFilePromise=Ja(a.lockFileURL),typeof _createPyodideModule!=`function`){let e=`${a.indexURL}pyodide.asm.js`;await Ka(e)}let c;if(e._loadSnapshot){let t=await e._loadSnapshot;c=ArrayBuffer.isView(t)?t:new Uint8Array(t),o.noInitialRun=!0,o.INITIAL_MEMORY=c.length}let l=await _createPyodideModule(o);if(o.exited)throw o.exited.toThrow;if(e.pyproxyToStringRepr&&s.setPyProxyToStringMethod(!0),s.version!==ao&&a.checkAPIVersion)throw Error(`Pyodide version does not match: '${ao}' <==> '${s.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);l.locateFile=e=>{throw Error(`Didn't expect to load any more file_packager files!`)};let u;c&&(u=s.restoreSnapshot(c));let d=s.finalizeBootstrap(u,e._snapshotDeserializer);return s.sys.path.insert(0,``),d.version.includes(`dev`)||s.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${d.version}/full/`),s._pyodide.set_excepthook(),await s.packageIndexReady,s.initializeStreams(a.stdin,a.stdout,a.stderr),d}V(oo,`loadPyodide`);function so(e){return`marimo-base`}const Z=new class{spans=[];startSpan(e,t={}){let n={name:e,startTime:Date.now(),attributes:t,end:(e=`ok`)=>this.endSpan(n,e)};return this.spans.push(n),n}endSpan(e,t=`ok`){e.endTime=Date.now(),e.status=t}getSpans(){return this.spans}wrap(e,t,n={}){let r=this.startSpan(t||e.name,n);try{let t=e();return this.endSpan(r),t}catch(e){throw this.endSpan(r,`error`),e}}wrapAsync(e,t,n={}){return(async(...r)=>{let i=this.startSpan(t||e.name,n);try{let t=await e(...r);return this.endSpan(i),t}catch(e){throw this.endSpan(i,`error`),e}})}logSpans(){}};globalThis.t=Z;var co=class{pyodide=null;get requirePyodide(){return h(this.pyodide,`Pyodide not loaded`),this.pyodide}async bootstrap(e){return await this.loadPyodideAndPackages(e)}async loadPyodideAndPackages(e){if(!oo)throw Error(`loadPyodide is not defined`);let t=Z.startSpan(`loadPyodide`);try{let n=await oo({packages:[`micropip`,`msgspec`,so(e.version),`Markdown`,`pymdown-extensions`,`narwhals`,`packaging`],_makeSnapshot:!1,lockFileURL:`https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,indexURL:`https://cdn.jsdelivr.net/pyodide/${e.pyodideVersion}/full/`});return this.pyodide=n,t.end(`ok`),n}catch(e){throw _.error(`Failed to load Pyodide`,e),e}}async mountFilesystem(e){let t=Z.startSpan(`mountFilesystem`);return B.createHomeDir(this.requirePyodide),B.mountFS(this.requirePyodide),await B.populateFilesToMemory(this.requirePyodide),t.end(`ok`),B.initNotebookCode({pyodide:this.requirePyodide,code:e.code,filename:e.filename})}async startSession(e){let{code:t,filename:n,onMessage:r,queryParameters:i,userConfig:a}=e;self.messenger={callback:r},self.query_params=i,self.user_config=a;let o=Z.startSpan(`startSession.runPython`),s=n||B.NOTEBOOK_FILENAME,[c,l,u]=this.requirePyodide.runPython(`
|
|
23
|
-
print("[py] Starting marimo...")
|
|
24
|
-
import asyncio
|
|
25
|
-
import js
|
|
26
|
-
from marimo._pyodide.bootstrap import create_session, instantiate
|
|
27
|
-
|
|
28
|
-
assert js.messenger, "messenger is not defined"
|
|
29
|
-
assert js.query_params, "query_params is not defined"
|
|
30
|
-
|
|
31
|
-
session, bridge = create_session(
|
|
32
|
-
filename="${s}",
|
|
33
|
-
query_params=js.query_params.to_py(),
|
|
34
|
-
message_callback=js.messenger.callback,
|
|
35
|
-
user_config=js.user_config.to_py(),
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
def init(auto_instantiate=True):
|
|
39
|
-
instantiate(session, auto_instantiate)
|
|
40
|
-
asyncio.create_task(session.start())
|
|
41
|
-
|
|
42
|
-
# Find the packages to install
|
|
43
|
-
with open("${s}", "r") as f:
|
|
44
|
-
packages = session.find_packages(f.read())
|
|
45
|
-
|
|
46
|
-
bridge, init, packages`);o.end();let d=new Set(u.toJs());return this.loadNotebookDeps(t,d).then(()=>l(a.runtime.auto_instantiate)),c}async loadNotebookDeps(e,t){let n=this.requirePyodide;e.includes(`mo.sql`)&&(e=`import pandas\n${e}`,e=`import duckdb\n${e}`,e=`import sqlglot\n${e}`,e.includes(`polars`)&&(e=`import pyarrow\n${e}`)),e=`import docutils\n${e}`,e=`import pygments\n${e}`,e=`import jedi\n${e}`,e=`import pyodide_http\n${e}`;let r=[...t],i=Z.startSpan(`pyodide.loadPackage`);await n.loadPackagesFromImports(e,{errorCallback:_.error,messageCallback:_.log}),i.end(),i=Z.startSpan(`micropip.install`);let a=r.filter(e=>!n.loadedPackages[e]);a.length>0&&await n.runPythonAsync(`
|
|
47
|
-
import micropip
|
|
48
|
-
import sys
|
|
49
|
-
# Filter out builtins
|
|
50
|
-
missing = [p for p in ${JSON.stringify(a)} if p not in sys.modules]
|
|
51
|
-
if len(missing) > 0:
|
|
52
|
-
print("Loading from micropip:", missing)
|
|
53
|
-
await micropip.install(missing)
|
|
54
|
-
`).catch(e=>{_.error(`Failed to load packages from micropip`,e)}),i.end()}};async function lo(e){try{return await import(`/wasm/controller.js?version=${e}`)}catch{return new co}}function uo(e){return e.includes(`dev`),`v${ao}`}var fo=class{buffer;started=!1;onMessage;constructor(e){this.onMessage=e,this.buffer=[]}push=e=>{this.started?this.onMessage(e):this.buffer.push(e)};start=()=>{this.started=!0,this.buffer.forEach(e=>this.onMessage(e)),this.buffer=[]}};const po=Z.startSpan(`worker:init`);async function mo(){try{let e=bo(),t=uo(e),n=await Z.wrapAsync(lo)(e);self.controller=n,Q.send.initializingMessage({message:`Loading marimo...`}),self.pyodide=await Z.wrapAsync(n.bootstrap.bind(n))({version:e,pyodideVersion:t})}catch(e){_.error(`Error bootstrapping`,e),Q.send.initializedError({error:ha(e)})}}const ho=new fo(e=>{Q.send.kernelMessage({message:e})}),go=new de;let _o=!1;const vo=d({startSession:async e=>{if(await $,_o){_.warn(`Session already started`);return}_o=!0;try{h(self.controller,`Controller not loaded`),await self.controller.mountFilesystem?.({code:e.code,filename:e.filename});let t=Z.wrapAsync(self.controller.startSession.bind(self.controller)),n=ae(()=>{Q.send.initializingMessage({message:`Initializing notebook...`}),Q.send.initialized({})});Q.send.initializingMessage({message:`Loading notebook and dependencies...`});let r=await t({code:e.code,filename:e.filename,queryParameters:e.queryParameters,userConfig:e.userConfig,onMessage:e=>{n(),ho.push(e)}});go.resolve(r),po.end(`ok`)}catch(e){Q.send.initializedError({error:ha(e)}),po.end(`error`)}},loadPackages:async e=>{let t=Z.startSpan(`loadPackages`);await $,e.includes(`mo.sql`)&&(e=`import pandas\n${e}`,e=`import duckdb\n${e}`,e=`import sqlglot\n${e}`,e.includes(`polars`)&&(e=`import pyarrow\n${e}`)),await self.pyodide.loadPackagesFromImports(e,{messageCallback:_.log,errorCallback:_.error}),t.end()},readFile:async e=>{let t=Z.startSpan(`readFile`);await $;let n=ue(self.pyodide.FS.readFile(e));return t.end(),n},setInterruptBuffer:async e=>{await $,self.pyodide.setInterruptBuffer(e)},addPackage:async e=>{await $;let{package:t}=e,n=t.split(` `).map(e=>e.trim()),r=await self.pyodide.runPythonAsync(`
|
|
55
|
-
import micropip
|
|
56
|
-
import json
|
|
57
|
-
response = None
|
|
58
|
-
try:
|
|
59
|
-
await micropip.install(${JSON.stringify(n)})
|
|
60
|
-
response = {"success": True}
|
|
61
|
-
except Exception as e:
|
|
62
|
-
response = {"success": False, "error": str(e)}
|
|
63
|
-
json.dumps(response)
|
|
64
|
-
`);return JSON.parse(r)},removePackage:async e=>{await $;let{package:t}=e,n=await self.pyodide.runPythonAsync(`
|
|
65
|
-
import micropip
|
|
66
|
-
import json
|
|
67
|
-
response = None
|
|
68
|
-
try:
|
|
69
|
-
micropip.uninstall("${t}")
|
|
70
|
-
response = {"success": True}
|
|
71
|
-
except Exception as e:
|
|
72
|
-
response = {"success": False, "error": str(e)}
|
|
73
|
-
json.dumps(response)
|
|
74
|
-
`);return JSON.parse(n)},listPackages:async()=>{let e=Z.startSpan(`listPackages`);await $;let t=await self.pyodide.runPythonAsync(`
|
|
75
|
-
import json
|
|
76
|
-
import micropip
|
|
77
|
-
|
|
78
|
-
packages = micropip.list()
|
|
79
|
-
packages = [
|
|
80
|
-
{"name": p.name, "version": p.version}
|
|
81
|
-
for p in packages.values()
|
|
82
|
-
]
|
|
83
|
-
json.dumps(sorted(packages, key=lambda pkg: pkg["name"]))
|
|
84
|
-
`);return e.end(),{packages:JSON.parse(t)}},saveNotebook:async e=>{await $,await self.pyodide.runPython(`
|
|
85
|
-
from marimo._pyodide.bootstrap import save_file
|
|
86
|
-
save_file
|
|
87
|
-
`)(JSON.stringify(e),B.NOTEBOOK_FILENAME)},bridge:async e=>{let t=Z.startSpan(`bridge`,{functionName:e.functionName});await $;let{functionName:n,payload:r}=e;n===`format`&&await self.pyodide.runPythonAsync(`
|
|
88
|
-
import micropip
|
|
89
|
-
|
|
90
|
-
try:
|
|
91
|
-
import black
|
|
92
|
-
except ModuleNotFoundError:
|
|
93
|
-
await micropip.install("black")
|
|
94
|
-
`),n===`export_markdown`&&await self.pyodide.runPythonAsync(`
|
|
95
|
-
import micropip
|
|
96
|
-
|
|
97
|
-
try:
|
|
98
|
-
import yaml
|
|
99
|
-
except ModuleNotFoundError:
|
|
100
|
-
await micropip.install("pyyaml")
|
|
101
|
-
`);let i=await go.promise,a=r==null?null:typeof r==`string`?r:JSON.stringify(r),o=a==null?await i[n]():await i[n](a);return yo.has(n)&&B.persistFilesToRemote(self.pyodide),t.end(),typeof o==`string`?JSON.parse(o):o}}),Q=ee({transport:m({transportId:`marimo-transport`}),requestHandler:vo});Q.send(`ready`,{}),Q.addMessageListener(`consumerReady`,async()=>{await $,ho.start()});const yo=new Set([`save`,`save_app_config`,`rename_file`,`create_file_or_directory`,`delete_file_or_directory`,`move_file_or_directory`,`update_file`]);function bo(){return self.name}const $=Z.wrapAsync(mo)();export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t}from"./createLucideIcon-CNVopWor.js";var e=t("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as P}from"./chunk-DZLz74EQ.js";import{t as B}from"./react-BcIddLXZ.js";import{t as G}from"./compiler-runtime-Cr9loedd.js";import{t as H}from"./jsx-runtime-mwDPpfh_.js";import{t as W}from"./button-ZC2axIBq.js";import{r as I}from"./requests-BACZP_uj.js";import{t as w}from"./use-toast-midBZAtS.js";import{c as J,i as O,n as Q,s as U,t as X}from"./select-5fcaZwou.js";import{r as D}from"./input-BNb8K99m.js";import{a as Z,c as $,i as ee,n as te,r as re}from"./dialog-BfhgTWm1.js";import{t as T}from"./label-Dcu3RhQ4.js";import{t as ae}from"./links-CMl0qG9J.js";import{r as L}from"./field-CaHPDBhq.js";var oe=P(G(),1),V=P(B(),1),t=P(H(),1);function ne(a){return a.sort((e,r)=>e.provider==="env"?1:r.provider==="env"?-1:0)}const le=a=>{let e=(0,oe.c)(43),{providerNames:r,onClose:A,onSuccess:F}=a,{writeSecret:Y}=I(),[o,M]=V.useState(""),[l,R]=V.useState(""),[n,z]=V.useState(r[0]),g;e[0]!==o||e[1]!==n||e[2]!==F||e[3]!==l||e[4]!==Y?(g=async i=>{if(i.preventDefault(),!n){w({title:"Error",description:"No location selected for the secret.",variant:"danger"});return}if(!o||!l||!n){w({title:"Error",description:"Please fill in all fields.",variant:"danger"});return}try{await Y({key:o,value:l,provider:"dotenv",name:n}),w({title:"Secret created",description:"The secret has been created successfully."}),F(o)}catch{w({title:"Error",description:"Failed to create secret. Please try again.",variant:"danger"})}},e[0]=o,e[1]=n,e[2]=F,e[3]=l,e[4]=Y,e[5]=g):g=e[5];let q=g,j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsxs)(Z,{children:[(0,t.jsx)($,{children:"Add Secret"}),(0,t.jsx)(re,{children:"Add a new secret to your environment variables."})]}),e[6]=j):j=e[6];let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(T,{htmlFor:"key",children:"Key"}),e[7]=y):y=e[7];let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i=>{M(ie(i.target.value))},e[8]=S):S=e[8];let s;e[9]===o?s=e[10]:(s=(0,t.jsxs)("div",{className:"grid gap-2",children:[y,(0,t.jsx)(D,{id:"key",value:o,onChange:S,placeholder:"MY_SECRET_KEY",required:!0})]}),e[9]=o,e[10]=s);let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(T,{htmlFor:"value",children:"Value"}),e[11]=_):_=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=i=>R(i.target.value),e[12]=b):b=e[12];let c;e[13]===l?c=e[14]:(c=(0,t.jsx)(D,{id:"value",type:"text",value:l,onChange:b,required:!0,autoComplete:"off"}),e[13]=l,e[14]=c);let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=se()&&(0,t.jsx)(L,{children:"Note: You are sending this key over http."}),e[15]=C):C=e[15];let d;e[16]===c?d=e[17]:(d=(0,t.jsxs)("div",{className:"grid gap-2",children:[_,c,C]}),e[16]=c,e[17]=d);let N;e[18]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(T,{htmlFor:"location",children:"Location"}),e[18]=N):N=e[18];let m;e[19]===r.length?m=e[20]:(m=r.length===0&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No dotenv locations configured."}),e[19]=r.length,e[20]=m);let h;e[21]!==n||e[22]!==r?(h=r.length>0&&(0,t.jsxs)(X,{value:n,onValueChange:i=>z(i),children:[(0,t.jsx)(U,{children:(0,t.jsx)(J,{placeholder:"Select a provider"})}),(0,t.jsx)(Q,{children:r.map(ce)})]}),e[21]=n,e[22]=r,e[23]=h):h=e[23];let k;e[24]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsxs)(L,{children:["You can configure the location by setting the"," ",(0,t.jsx)(ae,{href:"https://links.marimo.app/dotenv",children:"dotenv configuration"}),"."]}),e[24]=k):k=e[24];let u;e[25]!==m||e[26]!==h?(u=(0,t.jsxs)("div",{className:"grid gap-2",children:[N,m,h,k]}),e[25]=m,e[26]=h,e[27]=u):u=e[27];let p;e[28]!==d||e[29]!==u||e[30]!==s?(p=(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[s,d,u]}),e[28]=d,e[29]=u,e[30]=s,e[31]=p):p=e[31];let f;e[32]===A?f=e[33]:(f=(0,t.jsx)(W,{type:"button",variant:"outline",onClick:A,children:"Cancel"}),e[32]=A,e[33]=f);let K=!o||!l||!n,v;e[34]===K?v=e[35]:(v=(0,t.jsx)(W,{type:"submit",disabled:K,children:"Add Secret"}),e[34]=K,e[35]=v);let x;e[36]!==f||e[37]!==v?(x=(0,t.jsxs)(ee,{children:[f,v]}),e[36]=f,e[37]=v,e[38]=x):x=e[38];let E;return e[39]!==q||e[40]!==p||e[41]!==x?(E=(0,t.jsx)(te,{children:(0,t.jsxs)("form",{onSubmit:q,children:[j,p,x]})}),e[39]=q,e[40]=p,e[41]=x,e[42]=E):E=e[42],E};function ie(a){return a.replaceAll(/\W/g,"_")}function se(){return window.location.href.startsWith("http://")}function ce(a){return(0,t.jsx)(O,{value:a,children:a},a)}export{ne as n,le as t};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var p=Object.defineProperty;var y=(s,i,e)=>i in s?p(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e;var o=(s,i,e)=>y(s,typeof i!="symbol"?i+"":i,e);var m;(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
|
|
2
|
-
PartySocket requires a global 'EventTarget' class to be available!
|
|
3
|
-
You can polyfill this global by adding this to your code before any partysocket imports:
|
|
4
|
-
|
|
5
|
-
\`\`\`
|
|
6
|
-
import 'partysocket/event-target-polyfill';
|
|
7
|
-
\`\`\`
|
|
8
|
-
Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
|
|
9
|
-
`);var _=class extends Event{constructor(i,e){super("error",e);o(this,"message");o(this,"error");this.message=i.message,this.error=i}},d=class extends Event{constructor(i=1e3,e="",t){super("close",t);o(this,"code");o(this,"reason");o(this,"wasClean",!0);this.code=i,this.reason=e}},u={Event,ErrorEvent:_,CloseEvent:d};function w(s,i){if(!s)throw Error(i)}function b(s){return new s.constructor(s.type,s)}function E(s){return"data"in s?new MessageEvent(s.type,s):"code"in s||"reason"in s?new d(s.code||1999,s.reason||"unknown reason",s):"error"in s?new _(s.error,s):new Event(s.type,s)}var c=typeof process<"u"&&((m=process.versions)==null?void 0:m.node)!==void 0&&typeof document>"u"?E:b,h={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},g=!1,v=class a extends EventTarget{constructor(e,t,n={}){super();o(this,"_ws");o(this,"_retryCount",-1);o(this,"_uptimeTimeout");o(this,"_connectTimeout");o(this,"_shouldReconnect",!0);o(this,"_connectLock",!1);o(this,"_binaryType","blob");o(this,"_closeCalled",!1);o(this,"_messageQueue",[]);o(this,"_debugLogger",console.log.bind(console));o(this,"_url");o(this,"_protocols");o(this,"_options");o(this,"onclose",null);o(this,"onerror",null);o(this,"onmessage",null);o(this,"onopen",null);o(this,"_handleOpen",e=>{this._debug("open event");let{minUptime:t=h.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),t),w(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(n=>{var r;return(r=this._ws)==null?void 0:r.send(n)}),this._messageQueue=[],this.onopen&&this.onopen(e),this.dispatchEvent(c(e))});o(this,"_handleMessage",e=>{this._debug("message event"),this.onmessage&&this.onmessage(e),this.dispatchEvent(c(e))});o(this,"_handleError",e=>{this._debug("error event",e.message),this._disconnect(void 0,e.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(e),this._debug("exec error listeners"),this.dispatchEvent(c(e)),this._connect()});o(this,"_handleClose",e=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(e),this.dispatchEvent(c(e))});this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._options.debugLogger&&(this._debugLogger=this._options.debugLogger),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return a.CONNECTING}get OPEN(){return a.OPEN}get CLOSING(){return a.CLOSING}get CLOSED(){return a.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((e,t)=>(typeof t=="string"?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?a.CLOSED:a.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(e=1e3,t){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)}reconnect(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED||this._disconnect(e,t),this._connect()}send(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{let{maxEnqueuedMessages:t=h.maxEnqueuedMessages}=this._options;this._messageQueue.length<t&&(this._debug("enqueue",e),this._messageQueue.push(e))}}_debug(...e){this._options.debug&&this._debugLogger("RWS>",...e)}_getNextDelay(){let{reconnectionDelayGrowFactor:e=h.reconnectionDelayGrowFactor,minReconnectionDelay:t=h.minReconnectionDelay,maxReconnectionDelay:n=h.maxReconnectionDelay}=this._options,r=0;return this._retryCount>0&&(r=t*e**(this._retryCount-1),r>n&&(r=n)),this._debug("next delay",r),r}_wait(){return new Promise(e=>{setTimeout(e,this._getNextDelay())})}_getNextProtocols(e){if(!e)return Promise.resolve(null);if(typeof e=="string"||Array.isArray(e))return Promise.resolve(e);if(typeof e=="function"){let t=e();if(!t)return Promise.resolve(null);if(typeof t=="string"||Array.isArray(t))return Promise.resolve(t);if(t.then)return t}throw Error("Invalid protocols")}_getNextUrl(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){let t=e();if(typeof t=="string")return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;let{maxRetries:e=h.maxRetries,connectionTimeout:t=h.connectionTimeout}=this._options;if(this._retryCount>=e){this._debug("max retries reached",this._retryCount,">=",e);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([n,r])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!g&&(console.error(`\u203C\uFE0F No WebSocket implementation available. You should define options.WebSocket.
|
|
10
|
-
|
|
11
|
-
For example, if you're using node.js, run \`npm install ws\`, and then in your code:
|
|
12
|
-
|
|
13
|
-
import PartySocket from 'partysocket';
|
|
14
|
-
import WS from 'ws';
|
|
15
|
-
|
|
16
|
-
const partysocket = new PartySocket({
|
|
17
|
-
host: "127.0.0.1:1999",
|
|
18
|
-
room: "test-room",
|
|
19
|
-
WebSocket: WS
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
`),g=!0);let l=this._options.WebSocket||WebSocket;this._debug("connect",{url:n,protocols:r}),this._ws=r?new l(n,r):new l(n),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),t)}).catch(n=>{this._connectLock=!1,this._handleError(new u.ErrorEvent(Error(n.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new u.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(e=1e3,t){if(this._clearTimeouts(),this._ws){this._removeListeners();try{(this._ws.readyState===this.OPEN||this._ws.readyState===this.CONNECTING)&&this._ws.close(e,t),this._handleClose(new u.CloseEvent(e,t,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
|
|
23
|
-
* Reconnecting WebSocket
|
|
24
|
-
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
25
|
-
* https://github.com/pladaria/reconnecting-websocket
|
|
26
|
-
* License MIT
|
|
27
|
-
*/export{v as t};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var j,Q,K,Z,q,J,tt,it,et,st;import"./_Uint8Array-D5Z9rM2X.js";import"./isArrayLikeObject-DKyJYtr8.js";import"./memoize-DhF8x4Aa.js";import"./merge-Dvc5opZF.js";import"./preload-helper-BnutJmlU.js";import"./marked.esm-BV7g2d65.js";import"./precisionRound-Qxa8hC2h.js";import{t as zt}from"./linear-CPlUB2Oz.js";import{n as ui}from"./ordinal-Dd9FQufD.js";import{t as xi}from"./range-Dwpz5kHq.js";import"./defaultLocale-YmL2k7Vp.js";import"./purify.es-CPMOFAIu.js";import"./timer-CTpu0Fa6.js";import"./src-BwH0YUPh.js";import"./path-CXR-wni1.js";import"./math-B-uM5inP.js";import"./array-4wub28GG.js";import"./step-BDtirdXu.js";import{t as Ot}from"./line-DorFmRYv.js";import{i as Wt}from"./chunk-S3R3BYOJ-BW8g0Zog.js";import{n as di}from"./init-D34LU3qG.js";import{n,r as Ft}from"./src-BuVGraFB.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-Cm5Mq_1V.js";import{t as _i}from"./chunk-EXTU4WIE-DUVoiM8z.js";import"./dist-DiomJpDg.js";import{t as Ti}from"./chunk-JA3XYJ7Z-D3VjadO-.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
|
-
`+R.showPosition()+`
|
|
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
|
-
`+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()+`
|
|
5
|
-
`+A+"^"},"showPosition"),test_match:n(function(h,A){var x,u,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),u=h[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],x=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var o in k)this[o]=k[o];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,A,x,u;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),o=0;o<k.length;o++)if(x=this._input.match(this.rules[k[o]]),x&&(!A||x[0].length>A[0].length)){if(A=x,u=o,this.options.backtrack_lexer){if(h=this.test_match(x,k[o]),h!==!1)return h;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(h=this.test_match(A,k[u]),h===!1?!1:h):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){return this.next()||this.lex()},"lex"),begin:n(function(h){this.conditionStack.push(h)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:n(function(h){this.begin(h)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n(function(h,A,x,u){switch(x){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function F(){this.yy={}}return n(F,"Parser"),F.prototype=U,U.Parser=F,new F})();bt.parser=bt;var Ri=bt;function At(e){return e.type==="bar"}n(At,"isBarPlot");function Ct(e){return e.type==="band"}n(Ct,"isBandAxisData");function G(e){return e.type==="linear"}n(G,"isLinearAxisData");var Nt=(j=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((l,g)=>Math.max(g.length,l),0)*i,height:i};let s={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let l of t){let g=Ti(a,1,l),f=g?g.width:l.length*i,p=g?g.height:i;s.width=Math.max(s.width,f),s.height=Math.max(s.height,p)}return a.remove(),s}},n(j,"TextDimensionCalculatorWithFont"),j),Vt=.7,Yt=.2,Ut=(Q=class{constructor(t,i,s,a){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Vt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Vt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),a=Yt*t.width;this.outerPadding=Math.min(s.width/2,a);let l=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,l<=i&&(i-=l,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),a=Yt*t.height;this.outerPadding=Math.min(s.height/2,a);let l=s.width+this.axisConfig.labelPadding*2;l<=i&&(i-=l,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},n(Q,"BaseAxis"),Q),Di=(K=class extends Ut{constructor(t,i,s,a,l){super(t,a,l,i),this.categories=s,this.scale=yt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ft.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},n(K,"BandAxis"),K),Li=(Z=class extends Ut{constructor(t,i,s,a,l){super(t,a,l,i),this.domain=s,this.scale=zt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=zt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},n(Z,"LinearAxis"),Z);function wt(e,t,i,s){let a=new Nt(s);return Ct(e)?new Di(t,i,e.categories,e.title,a):new Li(t,i,[e.min,e.max],e.title,a)}n(wt,"getAxis");var Pi=(q=class{constructor(t,i,s,a){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),a=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=a,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},n(q,"ChartTitle"),q);function Ht(e,t,i,s){return new Pi(new Nt(s),e,t,i)}n(Ht,"getChartTitleComponent");var vi=(J=class{constructor(t,i,s,a,l){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=a,this.plotIndex=l}getDrawableElement(){let t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]),i;return i=this.orientation==="horizontal"?Ot().y(s=>s[0]).x(s=>s[1])(t):Ot().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},n(J,"LinePlot"),J),Ei=(tt=class{constructor(t,i,s,a,l,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=a,this.orientation=l,this.plotIndex=g}getDrawableElement(){let t=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,s=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:this.boundingRect.x,y:a[0]-s,height:i,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:a[0]-s,y:a[1],width:i,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},n(tt,"BarPlot"),tt),Mi=(it=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{let a=new vi(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break;case"bar":{let a=new Ei(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break}return t}},n(it,"BasePlot"),it);function Gt(e,t,i){return new Mi(e,t,i)}n(Gt,"getPlotComponent");var Ii=(et=class{constructor(t,i,s,a){this.chartConfig=t,this.chartData=i,this.componentStore={title:Ht(t,i,s,a),plot:Gt(t,i,s),xAxis:wt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},a),yAxis:wt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},a)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:l,height:g});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),a=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(l+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([s,s+l]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:a+g}),this.componentStore.yAxis.setRange([a,a+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(p=>At(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,l=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:g,height:f});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,a=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,l=s+p.height,t>0&&(g+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:f}),this.componentStore.plot.setBoundingBoxXY({x:a,y:l}),this.componentStore.yAxis.setRange([a,a+g]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([l,l+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:l}),this.chartData.plots.some(_=>At(_))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},n(et,"Orchestrator"),et),$i=(st=class{static build(t,i,s,a){return new Ii(t,i,s,a).getDrawableElement()}},n(st,"XYChartBuilder"),st),nt=0,jt,ht=Tt(),ot=_t(),C=Rt(),St=ot.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1;function _t(){let e=mi(),t=mt();return Wt(e.xyChart,t.themeVariables.xyChart)}n(_t,"getChartDefaultThemeConfig");function Tt(){let e=mt();return Wt(wi.xyChart,e.xyChart)}n(Tt,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}n(Rt,"getChartDefaultData");function ut(e){let t=mt();return fi(e.trim(),t)}n(ut,"textSanitizer");function Qt(e){jt=e}n(Qt,"setTmpSVGG");function Kt(e){e==="horizontal"?ht.chartOrientation="horizontal":ht.chartOrientation="vertical"}n(Kt,"setOrientation");function Zt(e){C.xAxis.title=ut(e.text)}n(Zt,"setXAxisTitle");function Dt(e,t){C.xAxis={type:"linear",title:C.xAxis.title,min:e,max:t},gt=!0}n(Dt,"setXAxisRangeData");function qt(e){C.xAxis={type:"band",title:C.xAxis.title,categories:e.map(t=>ut(t.text))},gt=!0}n(qt,"setXAxisBand");function Jt(e){C.yAxis.title=ut(e.text)}n(Jt,"setYAxisTitle");function ti(e,t){C.yAxis={type:"linear",title:C.yAxis.title,min:e,max:t},kt=!0}n(ti,"setYAxisRangeData");function ii(e){let t=Math.min(...e),i=Math.max(...e),s=G(C.yAxis)?C.yAxis.min:1/0,a=G(C.yAxis)?C.yAxis.max:-1/0;C.yAxis={type:"linear",title:C.yAxis.title,min:Math.min(s,t),max:Math.max(a,i)}}n(ii,"setYAxisRangeFromPlotData");function Lt(e){let t=[];if(e.length===0)return t;if(!gt){let i=G(C.xAxis)?C.xAxis.min:1/0,s=G(C.xAxis)?C.xAxis.max:-1/0;Dt(Math.min(i,1),Math.max(s,e.length))}if(kt||ii(e),Ct(C.xAxis)&&(t=C.xAxis.categories.map((i,s)=>[i,e[s]])),G(C.xAxis)){let i=C.xAxis.min,s=C.xAxis.max,a=(s-i)/(e.length-1),l=[];for(let g=i;g<=s;g+=a)l.push(`${g}`);t=l.map((g,f)=>[g,e[f]])}return t}n(Lt,"transformDataWithoutCategory");function Pt(e){return St[e===0?0:e%St.length]}n(Pt,"getPlotColorFromPalette");function ei(e,t){let i=Lt(t);C.plots.push({type:"line",strokeFill:Pt(nt),strokeWidth:2,data:i}),nt++}n(ei,"setLineData");function si(e,t){let i=Lt(t);C.plots.push({type:"bar",fill:Pt(nt),data:i}),nt++}n(si,"setBarData");function ai(){if(C.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return C.title=Xt(),$i.build(ht,C,ot,jt)}n(ai,"getDrawableElem");function ni(){return ot}n(ni,"getChartThemeConfig");function hi(){return ht}n(hi,"getChartConfig");function oi(){return C}n(oi,"getXYChartData");var Bi={parser:Ri,db:{getDrawableElem:ai,clear:n(function(){Ai(),nt=0,ht=Tt(),C=Rt(),ot=_t(),St=ot.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1},"clear"),setAccTitle:pi,getAccTitle:Si,setDiagramTitle:yi,getDiagramTitle:Xt,getAccDescription:bi,setAccDescription:ki,setOrientation:Kt,setXAxisTitle:Zt,setXAxisRangeData:Dt,setXAxisBand:qt,setYAxisTitle:Jt,setYAxisRangeData:ti,setLineData:ei,setBarData:si,setTmpSVGG:Qt,getChartThemeConfig:ni,getChartConfig:hi,getXYChartData:oi},renderer:{draw:n((e,t,i,s)=>{let a=s.db,l=a.getChartThemeConfig(),g=a.getChartConfig(),f=a.getXYChartData().plots[0].data.map(m=>m[1]);function p(m){return m==="top"?"text-before-edge":"middle"}n(p,"getDominantBaseLine");function _(m){return m==="left"?"start":m==="right"?"end":"middle"}n(_,"getTextAnchor");function L(m){return`translate(${m.x}, ${m.y}) rotate(${m.rotation||0})`}n(L,"getTextTransformation"),Ft.debug(`Rendering xychart chart
|
|
7
|
-
`+e);let w=_i(t),b=w.append("g").attr("class","main"),v=b.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");Ci(w,g.height,g.width,!0),w.attr("viewBox",`0 0 ${g.width} ${g.height}`),v.attr("fill",l.backgroundColor),a.setTmpSVGG(w.append("g").attr("class","mermaid-tmp-group"));let D=a.getDrawableElem(),P={};function E(m){let T=b,r="";for(let[z]of m.entries()){let O=b;z>0&&P[r]&&(O=P[r]),r+=m[z],T=P[r],T||(T=P[r]=O.append("g").attr("class",m[z]))}return T}n(E,"getGroup");for(let m of D){if(m.data.length===0)continue;let T=E(m.groupTexts);switch(m.type){case"rect":if(T.selectAll("rect").data(m.data).enter().append("rect").attr("x",r=>r.x).attr("y",r=>r.y).attr("width",r=>r.width).attr("height",r=>r.height).attr("fill",r=>r.fill).attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth),g.showDataLabel)if(g.chartOrientation==="horizontal"){let r=function(c,M){let{data:y,label:Y}=c;return M*Y.length*z<=y.width-10};n(r,"fitsHorizontally");let z=.7,O=m.data.map((c,M)=>({data:c,label:f[M].toString()})).filter(c=>c.data.width>0&&c.data.height>0),V=O.map(c=>{let{data:M}=c,y=M.height*.7;for(;!r(c,y)&&y>0;)--y;return y}),S=Math.floor(Math.min(...V));T.selectAll("text").data(O).enter().append("text").attr("x",c=>c.data.x+c.data.width-10).attr("y",c=>c.data.y+c.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${S}px`).text(c=>c.label)}else{let r=function(S,c,M){let{data:y,label:Y}=S,U=c*Y.length*.7,F=y.x+y.width/2,h=F-U/2,A=F+U/2,x=h>=y.x&&A<=y.x+y.width,u=y.y+M+c<=y.y+y.height;return x&&u};n(r,"fitsInBar");let z=m.data.map((S,c)=>({data:S,label:f[c].toString()})).filter(S=>S.data.width>0&&S.data.height>0),O=z.map(S=>{let{data:c,label:M}=S,y=c.width/(M.length*.7);for(;!r(S,y,10)&&y>0;)--y;return y}),V=Math.floor(Math.min(...O));T.selectAll("text").data(z).enter().append("text").attr("x",S=>S.data.x+S.data.width/2).attr("y",S=>S.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${V}px`).text(S=>S.label)}break;case"text":T.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",r=>r.fill).attr("font-size",r=>r.fontSize).attr("dominant-baseline",r=>p(r.verticalPos)).attr("text-anchor",r=>_(r.horizontalPos)).attr("transform",r=>L(r)).text(r=>r.text);break;case"path":T.selectAll("path").data(m.data).enter().append("path").attr("d",r=>r.path).attr("fill",r=>r.fill?r.fill:"none").attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth);break}}},"draw")}};export{Bi as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as a}from"./createLucideIcon-CNVopWor.js";var t=a("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),e=a("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),h=a("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]),p=a("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);export{t as i,h as n,e as r,p as t};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/assets/{emotion-is-prop-valid.esm-OoyWz_0l.js → emotion-is-prop-valid.esm-DY_d0mBI.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|