@marimo-team/frontend 0.23.3-dev71 → 0.23.3-dev9
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-Dtymd7Mw.js → CellStatus-BRcxaA-Z.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-ChNjqWW0.js → ConnectedDataExplorerComponent-Bxogo_Sw.js} +1 -1
- package/dist/assets/{DeferredRequestRegistry-C2V-hXrK.js → DeferredRequestRegistry-Bobqy1XF.js} +1 -1
- package/dist/assets/{ImperativeModal-CAFE3UV7.js → ImperativeModal-QWJWbLVR.js} +1 -1
- package/dist/assets/{JsonOutput-sWUD3O5F.js → JsonOutput-BGumwadB.js} +3 -3
- package/dist/assets/LazyAnyLanguageCodeMirror-B4dqgtrW.js +2 -0
- package/dist/assets/{MarimoErrorOutput-CUkxKVSp.js → MarimoErrorOutput-BWFFx2VQ.js} +1 -1
- package/dist/assets/{RSPContexts-CrATdGvz.js → RSPContexts-Bxv3gv46.js} +1 -1
- package/dist/assets/{RenderHTML-aOmkRy0R.js → RenderHTML-DweIff7M.js} +1 -1
- package/dist/assets/{add-cell-with-ai-apfqz2QF.js → add-cell-with-ai-DBH20OGq.js} +1 -1
- package/dist/assets/{add-connection-dialog-D6XFTnTb.js → add-connection-dialog-DW9MujC-.js} +1 -1
- package/dist/assets/{agent-panel-D7n2noTX.js → agent-panel-C_laGojQ.js} +1 -1
- package/dist/assets/{ai-model-dropdown-CMNpHk5I.js → ai-model-dropdown-BizqKH6Q.js} +1 -1
- package/dist/assets/{any-language-editor-CFmH0GoP.js → any-language-editor-DxmolZrV.js} +1 -1
- package/dist/assets/apl-CuOurP-c.js +1 -0
- package/dist/assets/{app-config-button-CXAAPUFL.js → app-config-button-DuOkwRa1.js} +1 -1
- package/dist/assets/{arc-3DY1fURi.js → arc-dPVZ2r1X.js} +1 -1
- package/dist/assets/{architecture-7HQA4BMR-CKjkd5Dl.js → architecture-7HQA4BMR-CDlW2bIF.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-x1tfs-Zy.js → architectureDiagram-VXUJARFQ-BIxSxJ1n.js} +1 -1
- package/dist/assets/asciiarmor-C4q0KAuh.js +1 -0
- package/dist/assets/asn1-gmsDz0li.js +1 -0
- package/dist/assets/{blockDiagram-VD42YOAC-DsnHpCid.js → blockDiagram-VD42YOAC-Bhz_qfg3.js} +1 -1
- package/dist/assets/brainfuck-RlYwG6Xx.js +1 -0
- package/dist/assets/{c4Diagram-YG6GDRKO-D32cjsO5.js → c4Diagram-YG6GDRKO-C2TPKPvJ.js} +1 -1
- package/dist/assets/{cache-panel-_zalrRwf.js → cache-panel-Ks8PpcN1.js} +1 -1
- package/dist/assets/{cell-editor-BUrhiKcX.js → cell-editor-bOGguH6G.js} +3 -3
- package/dist/assets/{cell-link-owqfXuA4.js → cell-link-DiZacqDz.js} +1 -1
- package/dist/assets/{cells-BA9ZN5Xy.js → cells-_QgKZKXb.js} +5 -5
- package/dist/assets/channel-DrzQ4dkV.js +1 -0
- package/dist/assets/{chat-display-AB-C2j6p.js → chat-display-DFbs4hI1.js} +1 -1
- package/dist/assets/{chat-panel-C1Evz8wb.js → chat-panel-DMOiEJCp.js} +1 -1
- package/dist/assets/{chat-ui-CcArYoMw.js → chat-ui-B7GySJ-j.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-hp7-9s5b.js → chunk-4BX2VUAB-BtkoEUm5.js} +1 -1
- package/dist/assets/chunk-55IACEB6-C0WB3ojj.js +1 -0
- package/dist/assets/{chunk-5FQGJX7Z-wbiBygI_.js → chunk-5FQGJX7Z-CQS0x34U.js} +3 -3
- package/dist/assets/{chunk-ABZYJK2D-CSzcbtsR.js → chunk-ABZYJK2D-Djqzm08o.js} +3 -3
- package/dist/assets/{chunk-ATLVNIR6-BGYBu2zE.js → chunk-ATLVNIR6-BLh4jD_n.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-S78japIA.js → chunk-B4BG7PRW-CEbAymbQ.js} +1 -1
- package/dist/assets/{chunk-CVBHYZKI-DJ6aHNEG.js → chunk-CVBHYZKI-DU48rJVu.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-B1Vz0MTl.js → chunk-DI55MBZ5-D27slPkl.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-D-Spa6rW.js → chunk-EXTU4WIE-CIsrjnFi.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-DiqdRLvx.js → chunk-FMBD7UC4-Dt9Umy1r.js} +1 -1
- package/dist/assets/{chunk-HN2XXSSU-CigyI152.js → chunk-HN2XXSSU-Bdbi3Mns.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-BJGCDHDS.js → chunk-JA3XYJ7Z-BTrWHP3y.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-lm1LBIfJ.js → chunk-JZLCHNYA-LclGfauS.js} +1 -1
- package/dist/assets/{chunk-MI3HLSF2-vtv46ho2.js → chunk-MI3HLSF2-n3vxgSbN.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-BQWUF0Ly.js → chunk-N4CR4FBY-w0eE8xM0.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-Buv0c3y8.js → chunk-QN33PNHL-f1vj2iOo.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-tI3bGlcO.js → chunk-QXUST7PY-qfZjyLmh.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-BWO63iFa.js → chunk-QZHKN3VN-Cp6Fo6NS.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-BwE-T8-d.js → chunk-S3R3BYOJ-CcarQkcq.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-zQ3MzIy5.js → chunk-TZMSLE5B-CWbra1hF.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-BDDARHRt.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-DCy5PwnC.js +1 -0
- package/dist/assets/{clike-B5Yp94w5.js → clike-0Uxq7Mmj.js} +1 -1
- package/dist/assets/clojure-DaWCBM5I.js +1 -0
- package/dist/assets/cmake-Nobmxv0n.js +1 -0
- package/dist/assets/cobol--NmnvDWE.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-Bf-3UT2Z.js → code-block-37QAKDTI-DIqDJgVj.js} +1 -1
- package/dist/assets/coffeescript-Cv1Wf46X.js +1 -0
- package/dist/assets/{column-preview-BbSZl4gC.js → column-preview-lJCZcp8j.js} +1 -1
- package/dist/assets/{command-DQS2IzwJ.js → command-DAtXz-Gx.js} +1 -1
- package/dist/assets/{command-palette-Cc7XXZHG.js → command-palette-CMX2_mdR.js} +1 -1
- package/dist/assets/{common-CakcoJKZ.js → common-CP7IrRbz.js} +1 -1
- package/dist/assets/commonlisp-8PbUodZQ.js +1 -0
- package/dist/assets/{components-DVzYtTDe.js → components-BHpyAs_N.js} +1 -1
- package/dist/assets/components-C7yXo-zq.js +1 -0
- package/dist/assets/{config-Calf6e81.js → config-BwY7xK-l.js} +1 -1
- package/dist/assets/{context-BrNoqz7t.js → context-DgMiuV-M.js} +1 -1
- package/dist/assets/{copy-icon-D189KR4Z.js → copy-icon-D6J-Qe0V.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-DT_V8ZfF.js → cose-bilkent-S5V4N54A-w2ZbuMrq.js} +1 -1
- package/dist/assets/crystal-DOOJCjhq.js +1 -0
- package/dist/assets/{css-B68S0me4.js → css-vLkD8PfS.js} +1 -1
- package/dist/assets/cypher-Aazxis5r.js +1 -0
- package/dist/assets/d-B-5Jnu40.js +1 -0
- package/dist/assets/{dagre-6UL2VRFP-DGYXMu3i.js → dagre-6UL2VRFP-DPsGmD7I.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-CD6KDhh4.js → data-grid-overlay-editor--tsDL5t_.js} +1 -1
- package/dist/assets/{datasource-BZ77nRPA.js → datasource-BwNTnVse.js} +1 -1
- package/dist/assets/{dates-CtmdgiVR.js → dates-C-8zX5--.js} +1 -1
- package/dist/assets/{dependency-graph-panel-DJodxi-n.js → dependency-graph-panel-DWJUNQBd.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-Df7m0-Bk.js → diagram-PSM6KHXK-B5QExXBA.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-BC5JXjfp.js → diagram-QEK2KX5R-B-41avP4.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-D6E97R3h.js → diagram-S2PKOQOG-CuAoGDsR.js} +1 -1
- package/dist/assets/diff-8GFZiZ2V.js +1 -0
- package/dist/assets/dist-2R4BmaTU.js +1 -0
- package/dist/assets/{dist-CD7-c8A4.js → dist-78cHWCwm.js} +1 -1
- package/dist/assets/dist-7la8MlmI.js +1 -0
- package/dist/assets/{dist-Cb9wJQiu.js → dist-B8l8kyRO.js} +1 -1
- package/dist/assets/{dist-BvefCWaz.js → dist-BCAHuLK8.js} +1 -1
- package/dist/assets/dist-BDO57Gzu.js +1 -0
- package/dist/assets/{dist-BwejP-9J.js → dist-Bd6jkjtM.js} +1 -1
- package/dist/assets/{dist-C5pbZROJ.js → dist-BfwIwU8S.js} +1 -1
- package/dist/assets/{dist-DSv2WUkf.js → dist-BjR_2YCR.js} +1 -1
- package/dist/assets/{dist-D8mC0RLm.js → dist-BxAV3E_D.js} +1 -1
- package/dist/assets/{dist-fKK_jBk2.js → dist-C6ZECnB-.js} +1 -1
- package/dist/assets/{dist-G8rBPeDP.js → dist-CE09e8bx.js} +1 -1
- package/dist/assets/dist-CYeDRMz-.js +1 -0
- package/dist/assets/{dist-G3xLh7ZX.js → dist-CZoX3_w7.js} +1 -1
- package/dist/assets/dist-Ct7IOnPn.js +1 -0
- package/dist/assets/{dist-CM2zL7eu.js → dist-D9A9VND-.js} +1 -1
- package/dist/assets/{dist-CSLszKKS.js → dist-DG5oYwLf.js} +1 -1
- package/dist/assets/dist-DMrvUyzG.js +1 -0
- package/dist/assets/{dist-DX-ejWLY.js → dist-DX7lwwkF.js} +1 -1
- package/dist/assets/dist-DbrS_VZM.js +1 -0
- package/dist/assets/{dist-D9brkCnf.js → dist-DrmtAiKa.js} +1 -1
- package/dist/assets/{dist-CdAQ8eZ9.js → dist-DrwAJH5c.js} +1 -1
- package/dist/assets/{dist-BuSjuYCJ.js → dist-DwRhpGvx.js} +1 -1
- package/dist/assets/{dist-BvpmHCI2.js → dist-EeiXxq6X.js} +1 -1
- package/dist/assets/dist-LftDLXf7.js +1 -0
- package/dist/assets/{dist-HIpA48xV.js → dist-Q7HIqK0H.js} +1 -1
- package/dist/assets/{dist-D8d8D49Y.js → dist-Sg8yY2ZO.js} +1 -1
- package/dist/assets/dist-TTJY3rXz.js +1 -0
- package/dist/assets/{dist-C2akIBaE.js → dist-b34Ig78W.js} +1 -1
- package/dist/assets/dist-u-Lxqf65.js +1 -0
- package/dist/assets/{dockerfile-COvjaTvv.js → dockerfile-BG4x0ExJ.js} +1 -1
- package/dist/assets/{documentation-panel-DMXEUS7v.js → documentation-panel-CZt-M5JN.js} +1 -1
- package/dist/assets/{download-rCRPD7IF.js → download-Bc8oaRxn.js} +1 -1
- package/dist/assets/dtd-DbhDFQ4b.js +1 -0
- package/dist/assets/dylan-4K5wZgOx.js +1 -0
- package/dist/assets/ecl-BCQ-LzuG.js +1 -0
- package/dist/assets/{edit-page-CK943x81.js → edit-page-c_cb8Sc-.js} +3 -3
- package/dist/assets/eiffel-DjgNAio4.js +1 -0
- package/dist/assets/elm-BJzUTgDF.js +1 -0
- package/dist/assets/{erDiagram-Q2GNP2WA-AvxewI5H.js → erDiagram-Q2GNP2WA-DnP7h2-r.js} +1 -1
- package/dist/assets/erlang-BMwCh1Tz.js +1 -0
- package/dist/assets/{error-banner-BxlXxssi.js → error-banner-B6M4W7BS.js} +1 -1
- package/dist/assets/{error-panel-4rKxybFL.js → error-panel-BN05vshu.js} +1 -1
- package/dist/assets/es-DpJU8Hx8.js +5 -0
- package/dist/assets/{esm-CcSYdGmP.js → esm-B4U2RMiA.js} +1 -1
- package/dist/assets/{esm-jhgLTcf6.js → esm-BGvvz4bU.js} +1 -1
- package/dist/assets/{factor-PbpmJuj6.js → factor-B-0VZGQP.js} +1 -1
- package/dist/assets/factor-DuQK79vi.js +1 -0
- package/dist/assets/{field-Dpiu3eud.js → field-Dolqshm5.js} +1 -1
- package/dist/assets/file-explorer-panel-DLFVjtxQ.js +26 -0
- package/dist/assets/{file-icons-CSF7UWQn.js → file-icons-uyLXhwTt.js} +1 -1
- package/dist/assets/file-name-input-Cx8sGgtD.js +3 -0
- package/dist/assets/{floating-outline-DzcyDJwQ.js → floating-outline-CGwx3Uc3.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-BqW0suiP.js → flowDiagram-NV44I4VS-V3Xf7aMp.js} +1 -1
- package/dist/assets/{focus-BRfyPUhi.js → focus-Ci7q4lAK.js} +1 -1
- package/dist/assets/{form-BUVFJb5I.js → form-DEDyV6Nr.js} +1 -1
- package/dist/assets/{formats-CQbVJYLi.js → formats-O_Kup2es.js} +1 -1
- package/dist/assets/{formatting-CbFi9xG8.js → formatting-cNkBQVu3.js} +1 -1
- package/dist/assets/forth-CN0H2hBb.js +1 -0
- package/dist/assets/fortran-D-JaE1fl.js +1 -0
- package/dist/assets/{gallery-page-ClCkynuR.js → gallery-page-ry801rEh.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-CeCvJWgC.js → ganttDiagram-JELNMOA3-CpnbMA7j.js} +1 -1
- package/dist/assets/gas-B-bID6UX.js +1 -0
- package/dist/assets/gherkin-JGxOpXhU.js +1 -0
- package/dist/assets/{gitGraph-G5XIXVHT-nrZ-BMna.js → gitGraph-G5XIXVHT-CT2LFSad.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-Dn1AbOWu.js → gitGraphDiagram-V2S2FVAM-Da6kLjST.js} +1 -1
- package/dist/assets/{glide-data-editor-CKiZFI5U.js → glide-data-editor-Bsfs3Z8D.js} +4 -4
- package/dist/assets/{globals-DY_dRKpv.js → globals-fN2Lim68.js} +1 -1
- package/dist/assets/groovy-BHPB9Hfx.js +1 -0
- package/dist/assets/haskell-By6RbCCv.js +1 -0
- package/dist/assets/haxe-HQiVsOCF.js +1 -0
- package/dist/assets/home-page-B-vdzi4g.js +4 -0
- package/dist/assets/{hooks-CK1ac3iV.js → hooks-BkJSzslE.js} +1 -1
- package/dist/assets/{html-to-image-BOWUS6J2.js → html-to-image-s8Gi2a0d.js} +1 -1
- package/dist/assets/idl-B2iocbwq.js +1 -0
- package/dist/assets/{index-DCq7udug.js → index-D-M3NRDk.js} +8 -8
- package/dist/assets/{info-VBDWY6EO-Bn_7XCeN.js → info-VBDWY6EO-Dek9l4Y7.js} +1 -1
- package/dist/assets/infoDiagram-HS3SLOUP-DbESo9Nm.js +2 -0
- package/dist/assets/{input-2egRGOhT.js → input-gOeJx-hY.js} +1 -1
- package/dist/assets/javascript-CTjlnOSz.js +1 -0
- package/dist/assets/{journeyDiagram-XKPGCS4Q-BQL61Vfo.js → journeyDiagram-XKPGCS4Q-BXrwe60A.js} +1 -1
- package/dist/assets/julia-BiUkdI9P.js +1 -0
- package/dist/assets/{kanban-definition-3W4ZIXB7-CMoUF4Qw.js → kanban-definition-3W4ZIXB7-DUU5VV3y.js} +1 -1
- package/dist/assets/katex-BpW3cI17.js +1 -0
- package/dist/assets/{kiosk-mode-BJNsfVZJ.js → kiosk-mode-PchJOoW7.js} +1 -1
- package/dist/assets/{layout-0Xp7ABJw.js → layout-BFa1cfaZ.js} +3 -3
- package/dist/assets/{line-BCZzhM6G.js → line-BGH_46b5.js} +1 -1
- package/dist/assets/{linear-DxS7NPzz.js → linear-DPcd3E-t.js} +1 -1
- package/dist/assets/{links-DhwG_EVu.js → links-DJCEkOLM.js} +1 -1
- package/dist/assets/livescript-uNIpKRlq.js +1 -0
- package/dist/assets/{logs-panel-bp6XOaLO.js → logs-panel-XG-10F8K.js} +1 -1
- package/dist/assets/{loro_wasm_bg-DpX928kr.js → loro_wasm_bg-BzwizXI_.js} +1 -1
- package/dist/assets/lua-CMIwWFMm.js +1 -0
- package/dist/assets/{markdown-renderer-3M2UXZOE.js → markdown-renderer-Cown6yO8.js} +3 -3
- package/dist/assets/mathematica-eDJrChdG.js +1 -0
- package/dist/assets/mbox-zqvBlhy3.js +1 -0
- package/dist/assets/mermaid-4DMBBIKO-CMn6CB3M.js +1 -0
- package/dist/assets/{mermaid-CI6k86rB.js → mermaid-LF8PrN7e.js} +3 -3
- package/dist/assets/{mermaid-parser.core-B0EhnNjP.js → mermaid-parser.core-C7QPzAah.js} +2 -2
- package/dist/assets/{mhchem-Bzl65iLm.js → mhchem-DJIKMDhe.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-C0BN8YhO.js → mindmap-definition-VGOIOE7T-h5az-Gzm.js} +1 -1
- package/dist/assets/mirc-DA5aApOX.js +1 -0
- package/dist/assets/mllike-bIsNpdn1.js +1 -0
- package/dist/assets/modelica-0mx6heI0.js +1 -0
- package/dist/assets/mscgen-BKLWiiDn.js +1 -0
- package/dist/assets/mumps-5_kXgafg.js +1 -0
- package/dist/assets/{name-cell-input-CUkoykAD.js → name-cell-input-o3llo2cQ.js} +1 -1
- package/dist/assets/{nsis-BbDlITQ-.js → nsis-DGDbP9K4.js} +1 -1
- package/dist/assets/nsis-DOhuqhNG.js +1 -0
- package/dist/assets/ntriples-BWf6tqTo.js +1 -0
- package/dist/assets/{number-overlay-editor-DJEXT_Ye.js → number-overlay-editor-BNttkvY4.js} +1 -1
- package/dist/assets/octave-DmFvn7Va.js +1 -0
- package/dist/assets/{ordinal-DTOdb5Da.js → ordinal-COKHkltN.js} +1 -1
- package/dist/assets/{outline-panel-s7vxHE_P.js → outline-panel-DRIKTKZY.js} +1 -1
- package/dist/assets/oz-TIwA1cRs.js +1 -0
- package/dist/assets/{packages-panel-CDb4sauq.js → packages-panel-CoqjTt92.js} +1 -1
- package/dist/assets/{packet-DYOGHKS2-B53MIhbR.js → packet-DYOGHKS2-DlIjAe6N.js} +1 -1
- package/dist/assets/{panels-s8gQr6G_.js → panels-lV4EyUmM.js} +1 -1
- package/dist/assets/pascal-BFfHjByI.js +1 -0
- package/dist/assets/pathUtils-B1w9iv-i.js +1 -0
- package/dist/assets/paths-2eb7kMpE.js +1 -0
- package/dist/assets/perl-iyEBGoKl.js +1 -0
- package/dist/assets/{pie-VRWISCQL-CsQYRyI_.js → pie-VRWISCQL-CY-XhoDk.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-CZ1pBex_.js → pieDiagram-ADFJNKIX-C8MBDnEw.js} +1 -1
- package/dist/assets/pig-Du8JEd9u.js +1 -0
- package/dist/assets/powershell-rJPOSwVp.js +1 -0
- package/dist/assets/{precisionRound-BMPhtTJQ.js → precisionRound-DaoicKhB.js} +1 -1
- package/dist/assets/{process-output-C6_eNZv8.js → process-output-D2bI7SXv.js} +1 -1
- package/dist/assets/properties-B7p1o35g.js +1 -0
- package/dist/assets/protobuf-DSVPm4uR.js +1 -0
- package/dist/assets/{pug-B2p6efPp.js → pug-5wW7Sn9S.js} +1 -1
- package/dist/assets/pug-BBnJinJ-.js +1 -0
- package/dist/assets/puppet-CvB_7oA0.js +1 -0
- package/dist/assets/python-D-LGD-zO.js +1 -0
- package/dist/assets/q-s96Dgstm.js +1 -0
- package/dist/assets/{quadrantDiagram-AYHSOK5B-D6LNQBr8.js → quadrantDiagram-AYHSOK5B-Behe9yHt.js} +1 -1
- package/dist/assets/r-DCKN0Q_M.js +1 -0
- package/dist/assets/{radar-ZZBFDIW7-DixuyYGz.js → radar-ZZBFDIW7-i-Te6Y8v.js} +1 -1
- package/dist/assets/react-vega-CPP33Ky2.js +1 -0
- package/dist/assets/{react-vega-D3GJC5Ll.js → react-vega-FSXcjjhW.js} +1 -1
- package/dist/assets/{readonly-python-code-BBLUUIbP.js → readonly-python-code-BahUauZ9.js} +1 -1
- package/dist/assets/{request-registry-yZbbPZkh.js → request-registry-BoWteoOD.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-BQCIkW22.js → requirementDiagram-UZGBJVZJ-BZ7h3AoJ.js} +1 -1
- package/dist/assets/{reveal-component-CT2scTNG.js → reveal-component-Cu8nMU5_.js} +1 -1
- package/dist/assets/rpm-DKF6hj80.js +1 -0
- package/dist/assets/ruby-DrHWYpO-.js +1 -0
- package/dist/assets/{run-page-BebSJHhp.js → run-page-Dl8g4faj.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-WXVSVZRc.js → sankeyDiagram-TZEHDZUN-Co7WU0tF.js} +1 -1
- package/dist/assets/sas-Bf--oEyw.js +1 -0
- package/dist/assets/scheme-BZSq5_CL.js +1 -0
- package/dist/assets/{scratchpad-panel-CPn_yM49.js → scratchpad-panel-D-v2WrEb.js} +1 -1
- package/dist/assets/{secrets-panel-B6HrST_M.js → secrets-panel-Bxz9BsLr.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-FSYTKWFS.js → sequenceDiagram-WL72ISMW-BKeDY4nC.js} +1 -1
- package/dist/assets/session-panel-C2UpyfiB.js +1 -0
- package/dist/assets/{share-CJEPnWjm.js → share-C7-yIyYZ.js} +1 -1
- package/dist/assets/shell-C5LsobAY.js +1 -0
- package/dist/assets/sieve-B6cTRfjv.js +1 -0
- package/dist/assets/{slide-CdqatvaH.js → slide-BNis4O9h.js} +1 -1
- package/dist/assets/smalltalk-B-ZeF8oP.js +1 -0
- package/dist/assets/{snippets-panel-tfceTIEM.js → snippets-panel-C1g0FaLN.js} +1 -1
- package/dist/assets/sparql-hKgXdTt3.js +1 -0
- package/dist/assets/{spec-6oUobewY.js → spec-C-DRirsO.js} +1 -1
- package/dist/assets/{src-COk1uIaa.js → src-CWJKdmqu.js} +1 -1
- package/dist/assets/{state-BFFSWzNE.js → state-BapA2ATY.js} +1 -1
- package/dist/assets/{state-Dlj7aAV2.js → state-BqtnroUI.js} +1 -1
- package/dist/assets/{state-INwBo8-b.js → state-CvCX-bpE.js} +1 -1
- package/dist/assets/{state-SzKMGrBW.js → state-Vt0MLBrw.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-NXeF8b27.js → stateDiagram-FKZM4ZOC-DEmCk9Rd.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-BnQZW9RQ.js +1 -0
- package/dist/assets/{step-COhf-b0R.js → step-BEsMOrhi.js} +1 -1
- package/dist/assets/stex-C5zzfAG3.js +1 -0
- package/dist/assets/stylus-MJ5VouuS.js +1 -0
- package/dist/assets/swift-jqL65uqK.js +1 -0
- package/dist/assets/{switch-CqJGGLBT.js → switch-QpkpQKr6.js} +1 -1
- package/dist/assets/tcl-D9FDKTky.js +1 -0
- package/dist/assets/{terminal-6UFUAGzf.js → terminal-CyaX8miJ.js} +1 -1
- package/dist/assets/{textarea-D2liylO5.js → textarea-DLywVJ2b.js} +1 -1
- package/dist/assets/textile-Ne1MkNjB.js +1 -0
- package/dist/assets/{time-hqD5bg84.js → time-C4Bk-t_8.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-B3aCCYAY.js → timeline-definition-IT6M3QCI-CNeWgYoO.js} +1 -1
- package/dist/assets/toml-Ba1TjbvG.js +1 -0
- package/dist/assets/{tracing-BUxVK-Z_.js → tracing-D5CN46rG.js} +1 -1
- package/dist/assets/tracing-panel-CoriopUM.js +2 -0
- package/dist/assets/tree-actions-BEhaM9eb.js +1 -0
- package/dist/assets/{treemap-GDKQZRPO-C7ssVrVz.js → treemap-GDKQZRPO-M0PfNVm7.js} +1 -1
- package/dist/assets/troff-ClRZFpM8.js +1 -0
- package/dist/assets/ttcn-JOxk9-wl.js +1 -0
- package/dist/assets/ttcn-cfg-D-oWP0t7.js +1 -0
- package/dist/assets/turtle-CfJStbTs.js +1 -0
- package/dist/assets/{useAddCell-xtQoaf-X.js → useAddCell-DtcrFkTf.js} +1 -1
- package/dist/assets/{useBoolean-D2Wc5G49.js → useBoolean-CZ3cQicK.js} +1 -1
- package/dist/assets/{useCellActionButton-DXgH5B4A.js → useCellActionButton-DLUN-oPD.js} +1 -1
- package/dist/assets/{useDateFormatter-_XK-fjTQ.js → useDateFormatter-DncW9tjn.js} +1 -1
- package/dist/assets/{useDeleteCell-C1_f7lEy.js → useDeleteCell-Y0BbfZjx.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-PKhgm9-V.js → useDependencyPanelTab-BTOhjR-l.js} +1 -1
- package/dist/assets/{useInstallPackage-BHZ1EjqC.js → useInstallPackage-DQBOxUeJ.js} +1 -1
- package/dist/assets/{useNotebookActions-BPt4w3KQ.js → useNotebookActions-DPwf9nYC.js} +1 -1
- package/dist/assets/{useNumberFormatter-D_mZTdYK.js → useNumberFormatter-DYIfVU-H.js} +1 -1
- package/dist/assets/{usePress-Cj1lHaxt.js → usePress-BPoseSMY.js} +1 -1
- package/dist/assets/{useRunCells-cIxqHRwZ.js → useRunCells-Ce0N_5Wc.js} +1 -1
- package/dist/assets/{useSplitCell-B0qjEpW1.js → useSplitCell-Dby_-BDH.js} +1 -1
- package/dist/assets/{utils-DVodi8oQ.js → utils-B_ZkX8f0.js} +1 -1
- package/dist/assets/vb-DtMAcbIy.js +1 -0
- package/dist/assets/vbscript-CUB17r-X.js +1 -0
- package/dist/assets/{vega-component-Dh_sdcAu.js → vega-component-VkLCyBCX.js} +1 -1
- package/dist/assets/{vega-loader.browser-CRZ52CKf.js → vega-loader.browser-BlkwfOz9.js} +1 -1
- package/dist/assets/velocity-Dwo66olV.js +1 -0
- package/dist/assets/verilog-DuexQCyX.js +1 -0
- package/dist/assets/vhdl-Mgyyw75F.js +1 -0
- package/dist/assets/webidl-DZaOA0mR.js +1 -0
- package/dist/assets/{write-secret-modal-DNCTT09O.js → write-secret-modal-Chu5xifR.js} +1 -1
- package/dist/assets/xquery-DpQixCSm.js +1 -0
- package/dist/assets/{xychartDiagram-PRI3JC2R-eSL2LfH9.js → xychartDiagram-PRI3JC2R-eqzm3nQu.js} +1 -1
- package/dist/assets/yacas-B1gHpHXz.js +1 -0
- package/dist/assets/z80-IF9HkI5m.js +1 -0
- package/dist/index.html +93 -91
- package/package.json +2 -2
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +84 -2
- package/src/components/editor/file-tree/file-explorer.tsx +142 -203
- package/src/components/editor/file-tree/file-name-input.tsx +41 -0
- package/src/components/editor/file-tree/file-operations.tsx +266 -0
- package/src/components/editor/file-tree/requesting-tree.tsx +68 -49
- package/src/components/home/state.ts +13 -1
- package/src/components/pages/home-page.tsx +116 -10
- package/src/core/network/requests-network.ts +0 -3
- package/src/utils/__tests__/path.test.ts +20 -0
- package/src/utils/pathUtils.test.ts +141 -1
- package/src/utils/pathUtils.ts +46 -0
- package/src/utils/paths.ts +9 -1
- package/dist/assets/LazyAnyLanguageCodeMirror-BYkSpfWg.js +0 -2
- package/dist/assets/apl-ezh0ScS-.js +0 -1
- package/dist/assets/asciiarmor-DBqyln4y.js +0 -1
- package/dist/assets/asn1-C9Hie9a5.js +0 -1
- package/dist/assets/brainfuck-BDNU41Mw.js +0 -1
- package/dist/assets/channel-esN5troS.js +0 -1
- package/dist/assets/chunk-55IACEB6-C_BE0X2F.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-BSpbvL3e.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-CQ49gdZV.js +0 -1
- package/dist/assets/clojure-DnkK3bSc.js +0 -1
- package/dist/assets/cmake-BnWrJdTV.js +0 -1
- package/dist/assets/cobol-HBrO1JaF.js +0 -1
- package/dist/assets/coffeescript-CRPuDhgD.js +0 -1
- package/dist/assets/commonlisp-Da4KcekY.js +0 -1
- package/dist/assets/components-eaRIBPb2.js +0 -1
- package/dist/assets/crystal-DSapLTsa.js +0 -1
- package/dist/assets/cypher-xFGoEou9.js +0 -1
- package/dist/assets/d-DgvhEIBQ.js +0 -1
- package/dist/assets/diff-_ncWAuCI.js +0 -1
- package/dist/assets/dist-BOBxlWRU.js +0 -1
- package/dist/assets/dist-C9byx33H.js +0 -1
- package/dist/assets/dist-CAjNwSwp.js +0 -1
- package/dist/assets/dist-ChEIZSwD.js +0 -1
- package/dist/assets/dist-DEsgb6r0.js +0 -1
- package/dist/assets/dist-DK65leDK.js +0 -1
- package/dist/assets/dist-DMIdeanR.js +0 -1
- package/dist/assets/dist-DlFpiRHv.js +0 -1
- package/dist/assets/dist-H-P6qorM.js +0 -1
- package/dist/assets/dist-vhQjV8kg.js +0 -1
- package/dist/assets/dtd-BnBIn3kr.js +0 -1
- package/dist/assets/dylan-CkGqQmFw.js +0 -1
- package/dist/assets/ecl-CFTIHpsV.js +0 -1
- package/dist/assets/eiffel-DqSKoxJh.js +0 -1
- package/dist/assets/elm-dL9c1n0U.js +0 -1
- package/dist/assets/erlang-ZIYI48gw.js +0 -1
- package/dist/assets/es-CjWf0wU3.js +0 -5
- package/dist/assets/factor-CDbckATe.js +0 -1
- package/dist/assets/file-explorer-panel-B5sFxYu1.js +0 -26
- package/dist/assets/forth-ClT6YoKq.js +0 -1
- package/dist/assets/fortran-D3wR_E-8.js +0 -1
- package/dist/assets/gas-_ShnzaTM.js +0 -1
- package/dist/assets/gherkin-LsHtc0Ns.js +0 -1
- package/dist/assets/groovy-D_Yv0Fac.js +0 -1
- package/dist/assets/haskell-qhM1HAIB.js +0 -1
- package/dist/assets/haxe-Bi62PpIr.js +0 -1
- package/dist/assets/home-page-BvfssQ5c.js +0 -4
- package/dist/assets/idl-CI42bOaI.js +0 -1
- package/dist/assets/infoDiagram-HS3SLOUP-DTO3Z6Cg.js +0 -2
- package/dist/assets/javascript-BNZ5YnSy.js +0 -1
- package/dist/assets/julia-dpVUKOp6.js +0 -1
- package/dist/assets/katex-B5wxkMHB.js +0 -1
- package/dist/assets/livescript-BDwSUbUd.js +0 -1
- package/dist/assets/lua-cGUKNtb5.js +0 -1
- package/dist/assets/mathematica-D4XScfvP.js +0 -1
- package/dist/assets/mbox-COnP75oc.js +0 -1
- package/dist/assets/mermaid-4DMBBIKO-D-U6KmKa.js +0 -1
- package/dist/assets/mirc-DXskkW6M.js +0 -1
- package/dist/assets/mllike-B3ebn_fS.js +0 -1
- package/dist/assets/modelica-Df8_BOFz.js +0 -1
- package/dist/assets/mscgen-ugK6iLdl.js +0 -1
- package/dist/assets/mumps-Qes0D9Sq.js +0 -1
- package/dist/assets/nsis-CvTk2ElD.js +0 -1
- package/dist/assets/ntriples-BrWSHgAl.js +0 -1
- package/dist/assets/octave--UXUC2au.js +0 -1
- package/dist/assets/oz-SCICUQnB.js +0 -1
- package/dist/assets/pascal-BZRIRN0Y.js +0 -1
- package/dist/assets/paths-DsQUzvvb.js +0 -1
- package/dist/assets/perl-BJBf_VRX.js +0 -1
- package/dist/assets/pig-8VtGvtGP.js +0 -1
- package/dist/assets/powershell-MUdKU-yo.js +0 -1
- package/dist/assets/properties-B_YTP79K.js +0 -1
- package/dist/assets/protobuf-BjqtN1d3.js +0 -1
- package/dist/assets/pug-pCMDyY3V.js +0 -1
- package/dist/assets/puppet-ByNusmmY.js +0 -1
- package/dist/assets/python-CeK7Mdg6.js +0 -1
- package/dist/assets/q-BPLn3RjU.js +0 -1
- package/dist/assets/r-C6hL19P_.js +0 -1
- package/dist/assets/react-vega-B2Q2ObPu.js +0 -1
- package/dist/assets/rpm-Cepx5AK5.js +0 -1
- package/dist/assets/ruby-8a_JNJtC.js +0 -1
- package/dist/assets/sas-DRXu6Kkn.js +0 -1
- package/dist/assets/scheme-DaBlDkbO.js +0 -1
- package/dist/assets/session-panel-CfLYfSX2.js +0 -1
- package/dist/assets/shell-CEmng-T5.js +0 -1
- package/dist/assets/sieve-CTG31Wbe.js +0 -1
- package/dist/assets/smalltalk-DlBjAIRH.js +0 -1
- package/dist/assets/sparql-D8XQtNgL.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-co6cLoce.js +0 -1
- package/dist/assets/stex-CXcPf-7C.js +0 -1
- package/dist/assets/stylus-DpfM4Y-0.js +0 -1
- package/dist/assets/swift-Bevjlmsx.js +0 -1
- package/dist/assets/tcl-CWB1W9St.js +0 -1
- package/dist/assets/textile-DrGyKlBQ.js +0 -1
- package/dist/assets/toml-CF49H3Gs.js +0 -1
- package/dist/assets/tracing-panel-BZQdh8Uh.js +0 -2
- package/dist/assets/tree-Dtn4o2IZ.js +0 -3
- package/dist/assets/troff-DS9glUnj.js +0 -1
- package/dist/assets/ttcn-cfg-D8JUANmi.js +0 -1
- package/dist/assets/ttcn-iXXxBDpr.js +0 -1
- package/dist/assets/turtle-IsYxGpD1.js +0 -1
- package/dist/assets/vb-CJBc18Ui.js +0 -1
- package/dist/assets/vbscript-f-536WNP.js +0 -1
- package/dist/assets/velocity-BKcC2FIu.js +0 -1
- package/dist/assets/verilog-BwwsdDY5.js +0 -1
- package/dist/assets/vhdl-BG8PfJd8.js +0 -1
- package/dist/assets/webidl-BHBWV-F6.js +0 -1
- package/dist/assets/xquery-BSuR2Wlv.js +0 -1
- package/dist/assets/yacas-DdJ1FiXV.js +0 -1
- package/dist/assets/z80-BWehJ3ot.js +0 -1
- /package/dist/assets/{Deferred-Bk0r4KDZ.js → Deferred-CcWopv8N.js} +0 -0
- /package/dist/assets/{ImageComparisonComponent-BDf80c-c.js → ImageComparisonComponent-BbeHudzx.js} +0 -0
- /package/dist/assets/{Inputs-kqHYE7dL.js → Inputs-BJt-xWQ4.js} +0 -0
- /package/dist/assets/{Plot-Dw2rpqfa.js → Plot-NkctaBpw.js} +0 -0
- /package/dist/assets/{SSRProvider-1sSrgJwI.js → SSRProvider-ChaJ6dv8.js} +0 -0
- /package/dist/assets/{apl-BYqtBlld.js → apl-CArdF_Ee.js} +0 -0
- /package/dist/assets/{array-BF0shS9G.js → array-vLcKmV3f.js} +0 -0
- /package/dist/assets/{asciiarmor-DUW0Iozu.js → asciiarmor-rf6n_8YZ.js} +0 -0
- /package/dist/assets/{asn1-ClnHsHDP.js → asn1-Bl4vlAxN.js} +0 -0
- /package/dist/assets/{asterisk-CO_c0gwL.js → asterisk-B04IJwAt.js} +0 -0
- /package/dist/assets/{azure-BGC9_IAe.js → azure-DZ9IQ5nj.js} +0 -0
- /package/dist/assets/{badge-IqsYSyWB.js → badge-OeIzJ2Mo.js} +0 -0
- /package/dist/assets/{blob-CpeNXBj-.js → blob-Gsfvuteh.js} +0 -0
- /package/dist/assets/{brainfuck-FB_E90sw.js → brainfuck-CWRjg_-2.js} +0 -0
- /package/dist/assets/{card-DaCTzD6y.js → card-CVZJbqix.js} +0 -0
- /package/dist/assets/{chunk-4F5CHEZ2-CiW94ehv.js → chunk-4F5CHEZ2-Cw8YQRir.js} +0 -0
- /package/dist/assets/{chunk-B2363JML-Dj_BsGfX.js → chunk-B2363JML-BSJ4A4O7.js} +0 -0
- /package/dist/assets/{chunk-DR5Q36YT-CCzZb1o4.js → chunk-DR5Q36YT-BAovSO-b.js} +0 -0
- /package/dist/assets/{chunk-FRFDVMJY-BB5sTbw6.js → chunk-FRFDVMJY-Ca8ZLUo3.js} +0 -0
- /package/dist/assets/{chunk-PL6DKKU2-BVOKRgy0.js → chunk-PL6DKKU2-BjuKxBfi.js} +0 -0
- /package/dist/assets/{chunk-SJTYNZTY-BY2Gu6VM.js → chunk-SJTYNZTY-wqlkd3w7.js} +0 -0
- /package/dist/assets/{chunk-TQ3KTPDO-BXqsqDoM.js → chunk-TQ3KTPDO-BUikk8OW.js} +0 -0
- /package/dist/assets/{chunk-UMXZTB3W-2RQe-UTW.js → chunk-UMXZTB3W-lROkSRJ2.js} +0 -0
- /package/dist/assets/{clear-button-hXGBrmNq.js → clear-button-cQS2Q-bl.js} +0 -0
- /package/dist/assets/{click-outside-container-7UXGgq-9.js → click-outside-container-ChOZeHlm.js} +0 -0
- /package/dist/assets/{clike-B7PZCnaI.js → clike-B4xEkWXN.js} +0 -0
- /package/dist/assets/{clojure-DtLrahuY.js → clojure-04C6o-hL.js} +0 -0
- /package/dist/assets/{cmake-DGfhkTv5.js → cmake-Dh64a3j4.js} +0 -0
- /package/dist/assets/{cobol-Cpbk-vCU.js → cobol-B24ofC4q.js} +0 -0
- /package/dist/assets/{coffeescript-BATQF8kE.js → coffeescript-B0i0O-b-.js} +0 -0
- /package/dist/assets/{colors-C3_wIR8c.js → colors-CgemTayT.js} +0 -0
- /package/dist/assets/{common-keywords-CvypSGuw.js → common-keywords-D6ImdZX8.js} +0 -0
- /package/dist/assets/{commonlisp-C9N48zGs.js → commonlisp-NXg-Bye5.js} +0 -0
- /package/dist/assets/{copy-BnK_ki61.js → copy-MpDsCBB6.js} +0 -0
- /package/dist/assets/{crystal-D2nrZv1k.js → crystal-BOjNTZjx.js} +0 -0
- /package/dist/assets/{css-DNoZFvlx.js → css-C_vknI7E.js} +0 -0
- /package/dist/assets/{cypher-6TFCZzgE.js → cypher-DwQoZmH9.js} +0 -0
- /package/dist/assets/{cytoscape.esm-BihqZ2_-.js → cytoscape.esm-BUYfy0ER.js} +0 -0
- /package/dist/assets/{d-DHH1X7PS.js → d-xedQGhmO.js} +0 -0
- /package/dist/assets/{defaultLocale-D_rSvXvJ.js → defaultLocale-CIhzTQNN.js} +0 -0
- /package/dist/assets/{defaultLocale-C92Rrpmf.js → defaultLocale-CUv_V9gw.js} +0 -0
- /package/dist/assets/{dialog-CqE8CV1Y.js → dialog-BEgS5oXa.js} +0 -0
- /package/dist/assets/{diff-DNDp4fOd.js → diff-ChFnp8JW.js} +0 -0
- /package/dist/assets/{dist-DfWgLTCQ.js → dist-B4jGC5bx.js} +0 -0
- /package/dist/assets/{dist-Dg3CCt0r.js → dist-BNScjj64.js} +0 -0
- /package/dist/assets/{dist-a6hqEAyw.js → dist-ByJngTCJ.js} +0 -0
- /package/dist/assets/{dist-D-j2KFQ4.js → dist-C1VXabOr.js} +0 -0
- /package/dist/assets/{dist-Bgd1ZX49.js → dist-Cqk8HSav.js} +0 -0
- /package/dist/assets/{dist-idZNafp8.js → dist-D80LaxlS.js} +0 -0
- /package/dist/assets/{dist-B5ONF0fx.js → dist-DdzMFGlM.js} +0 -0
- /package/dist/assets/{dist-Ct7BBGwl.js → dist-FpqIkji6.js} +0 -0
- /package/dist/assets/{dist-B804XDz9.js → dist-R9N_YrBH.js} +0 -0
- /package/dist/assets/{dist-D8llshvP.js → dist-SITbEFUx.js} +0 -0
- /package/dist/assets/{dist-DDWNnRcK.js → dist-fKKpzSr2.js} +0 -0
- /package/dist/assets/{dist-CpbLJKXc.js → dist-fOLN5Vji.js} +0 -0
- /package/dist/assets/{dist-BiQrY0m-.js → dist-wsxxqJfJ.js} +0 -0
- /package/dist/assets/{dtd-BYdB19UC.js → dtd-KbDPyUs4.js} +0 -0
- /package/dist/assets/{duckdb-keywords-C63auBrb.js → duckdb-keywords-5i8us9ML.js} +0 -0
- /package/dist/assets/{dylan-3sqQfqPE.js → dylan-0KH4Nowk.js} +0 -0
- /package/dist/assets/{ebnf-CJQ7hlUt.js → ebnf--2SLsnbd.js} +0 -0
- /package/dist/assets/{ecl-79y60Sdt.js → ecl-B5iM_b7s.js} +0 -0
- /package/dist/assets/{eiffel-Cy1qkCDz.js → eiffel-sVM1STl5.js} +0 -0
- /package/dist/assets/{elm-DrRzHEES.js → elm-BlNENVB6.js} +0 -0
- /package/dist/assets/{emotion-is-prop-valid.esm-UWgehH47.js → emotion-is-prop-valid.esm-BvF4JMSP.js} +0 -0
- /package/dist/assets/{empty-state-CrP10sqm.js → empty-state-CPvr0RGL.js} +0 -0
- /package/dist/assets/{en-US-B8TXLgVt.js → en-US-BXVprI6a.js} +0 -0
- /package/dist/assets/{erlang-D3BTE-y0.js → erlang-C0uOSFok.js} +0 -0
- /package/dist/assets/{errors-DVkmLSXX.js → errors-pt9sYxVM.js} +0 -0
- /package/dist/assets/{esm-vpVfqVb3.js → esm-D6KjvJkM.js} +0 -0
- /package/dist/assets/{events-CWUex2qo.js → events-CKqlBGzI.js} +0 -0
- /package/dist/assets/{extends-q1GgI0Ag.js → extends-DYqjHZ5t.js} +0 -0
- /package/dist/assets/{fcl-BM8Miy5A.js → fcl-CcJxrJDr.js} +0 -0
- /package/dist/assets/{forth-DGce5eRS.js → forth-Dkvgp5v0.js} +0 -0
- /package/dist/assets/{fortran-CS97oQQW.js → fortran-DWGt9NN5.js} +0 -0
- /package/dist/assets/{gas-7e_zvN4u.js → gas-ucVnXY28.js} +0 -0
- /package/dist/assets/{gherkin-3f1nzx4Y.js → gherkin-BRjIORXo.js} +0 -0
- /package/dist/assets/{groovy-Bn1MvSId.js → groovy-BwyAyRPC.js} +0 -0
- /package/dist/assets/{haskell-qtyafuM6.js → haskell-Cs-Andhs.js} +0 -0
- /package/dist/assets/{haxe-CQwWk_Ht.js → haxe-BW46cyaq.js} +0 -0
- /package/dist/assets/{http-DJG1eSBi.js → http-BBXW5Cu0.js} +0 -0
- /package/dist/assets/{idl-BnUby_AK.js → idl-BGiQ18ct.js} +0 -0
- /package/dist/assets/{init-AtRnKt23.js → init-NRxdWJN-.js} +0 -0
- /package/dist/assets/{isValid-KoNx_uxe.js → isValid-BBUyUJly.js} +0 -0
- /package/dist/assets/{javascript-BFKHKHDt.js → javascript-I9_Q-6Fg.js} +0 -0
- /package/dist/assets/{julia-BZeLe6be.js → julia-Wfay9brY.js} +0 -0
- /package/dist/assets/{katex-Bc4cO2Ba.js → katex-BIY1ztUE.js} +0 -0
- /package/dist/assets/{livescript-LB6oZdgV.js → livescript-J6EnSQWw.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-DSqjo7Pf.js → loro_wasm_bg-BAHdi7Mz.js} +0 -0
- /package/dist/assets/{lua-D73MeF_d.js → lua-BO_knq_Q.js} +0 -0
- /package/dist/assets/{marimo-icons-Ce24dQVN.js → marimo-icons-ifBE8yqY.js} +0 -0
- /package/dist/assets/{math-BIeW4iGV.js → math-CIWU-TqO.js} +0 -0
- /package/dist/assets/{mathematica-SckqhulL.js → mathematica-DU8ikXHk.js} +0 -0
- /package/dist/assets/{mbox-DpdjYR8y.js → mbox-Dzzw6MxI.js} +0 -0
- /package/dist/assets/{mirc-9Mp8ii_5.js → mirc-82uLLidC.js} +0 -0
- /package/dist/assets/{mllike-CteazA5r.js → mllike-WTbu2PGL.js} +0 -0
- /package/dist/assets/{modelica-DruS-uJ8.js → modelica-w4uKZrXu.js} +0 -0
- /package/dist/assets/{mscgen-Dqm6ZJyo.js → mscgen-Bf7m7BDT.js} +0 -0
- /package/dist/assets/{multi-icon-nJMmVh2f.js → multi-icon-CPhrdW6o.js} +0 -0
- /package/dist/assets/{mumps-DAwJeUn4.js → mumps-Bicgf-gh.js} +0 -0
- /package/dist/assets/{nginx-B_wjuKSa.js → nginx-CiiHaY6Q.js} +0 -0
- /package/dist/assets/{node-sql-parser-UQ9Ur_LP.js → node-sql-parser-DllVaz4k.js} +0 -0
- /package/dist/assets/{ntriples-D5_p8srT.js → ntriples-CyotCBD4.js} +0 -0
- /package/dist/assets/{numbers-epUg4eUW.js → numbers-CHuwXNCA.js} +0 -0
- /package/dist/assets/{objectWithoutPropertiesLoose-BQlZis3f.js → objectWithoutPropertiesLoose-CUZPaRZf.js} +0 -0
- /package/dist/assets/{octave-StxXX2kg.js → octave-BP7UuRZ-.js} +0 -0
- /package/dist/assets/{oz-CZcv8Gut.js → oz-C9dsRBsA.js} +0 -0
- /package/dist/assets/{panel-context-DgIiEtMa.js → panel-context-S-AFWBnz.js} +0 -0
- /package/dist/assets/{pascal-BTSTYf7j.js → pascal-Do-HizJs.js} +0 -0
- /package/dist/assets/{path-BMloFSsK.js → path-CQRzwJPY.js} +0 -0
- /package/dist/assets/{perl-D3WNCnWS.js → perl-DkWjygEp.js} +0 -0
- /package/dist/assets/{pig-m1LfHx7X.js → pig-C5cO5Lzu.js} +0 -0
- /package/dist/assets/{play-CEytussU.js → play-DSUm4sBu.js} +0 -0
- /package/dist/assets/{plus-BueqiM86.js → plus-DgRbTQuK.js} +0 -0
- /package/dist/assets/{powershell-C7evXFhK.js → powershell-B7iMkhi7.js} +0 -0
- /package/dist/assets/{preload-helper-BFv3hW2s.js → preload-helper-DXnewu3N.js} +0 -0
- /package/dist/assets/{prop-types-D9vVr8W2.js → prop-types-CMQyZoIm.js} +0 -0
- /package/dist/assets/{properties-CX3A241c.js → properties-BojS2wNP.js} +0 -0
- /package/dist/assets/{protobuf-CEqDY4vo.js → protobuf-C3jQLUT4.js} +0 -0
- /package/dist/assets/{puppet-DlFBPmUd.js → puppet-BIu7yw7Q.js} +0 -0
- /package/dist/assets/{purify.es-Cg0r2qW-.js → purify.es-Lm0LKKB_.js} +0 -0
- /package/dist/assets/{python-kNH0316T.js → python-BvK-LeGt.js} +0 -0
- /package/dist/assets/{q-KQ_N2MXi.js → q-DxTFD_3l.js} +0 -0
- /package/dist/assets/{r-Dj_WdT8c.js → r-D9kMb9Pl.js} +0 -0
- /package/dist/assets/{range-Bc7-zhbC.js → range-l5y19iar.js} +0 -0
- /package/dist/assets/{react-icons.esm-B8rtE4cC.js → react-icons.esm-CwO5-6Hf.js} +0 -0
- /package/dist/assets/{refresh-ccw-BuMhEaS9.js → refresh-ccw-B-iu4wyD.js} +0 -0
- /package/dist/assets/{refresh-cw-BmiNHssk.js → refresh-cw-C6hZr6dA.js} +0 -0
- /package/dist/assets/{requests-DdU2Ap88.js → requests-dD3-AncY.js} +0 -0
- /package/dist/assets/{rotate-ccw-Bwso-5RT.js → rotate-ccw-CMEpyC--.js} +0 -0
- /package/dist/assets/{rpm-C3VyCeYo.js → rpm-DMBmptJ_.js} +0 -0
- /package/dist/assets/{ruby-9RpAFOsP.js → ruby-Bi66LQBu.js} +0 -0
- /package/dist/assets/{runs-BBFoea9K.js → runs-5FOfd9Cy.js} +0 -0
- /package/dist/assets/{sas-CFBIkOrK.js → sas-DDMCLlZz.js} +0 -0
- /package/dist/assets/{save-B_q9ApPf.js → save-B5tS7kkh.js} +0 -0
- /package/dist/assets/{scheme-n4WmsRUQ.js → scheme-MngEI34z.js} +0 -0
- /package/dist/assets/{session-DdhIEena.js → session-DI1agD5_.js} +0 -0
- /package/dist/assets/{settings-C_KZ1Eue.js → settings-DDffqDzb.js} +0 -0
- /package/dist/assets/{shell-BDAgpmgp.js → shell-BSVgrHzY.js} +0 -0
- /package/dist/assets/{sieve-BVNIn7Yz.js → sieve-DvUWNrPv.js} +0 -0
- /package/dist/assets/{simple-mode-C-nP-kAb.js → simple-mode-DxeVZov3.js} +0 -0
- /package/dist/assets/{smalltalk-C7nE9dmX.js → smalltalk-CeZ66qpG.js} +0 -0
- /package/dist/assets/{solr-CU1BrlpT.js → solr-DYYuHZ7Q.js} +0 -0
- /package/dist/assets/{sparkles-BRTQ46qC.js → sparkles-C9V_hOqY.js} +0 -0
- /package/dist/assets/{sparql-DPFIzZM3.js → sparql-oFx_t7AO.js} +0 -0
- /package/dist/assets/{spreadsheet-DwP77QON.js → spreadsheet-hVThRh5Z.js} +0 -0
- /package/dist/assets/{sql-CBifPEyZ.js → sql-DG1AJQLP.js} +0 -0
- /package/dist/assets/{square-function-DN3RwIjj.js → square-function-iLrgnnoW.js} +0 -0
- /package/dist/assets/{src-DSbF9mby.js → src-CsZby044.js} +0 -0
- /package/dist/assets/{stex--zUcZkER.js → stex-CHLzTK9d.js} +0 -0
- /package/dist/assets/{stylus-DGcebGVS.js → stylus-KE-9LQSK.js} +0 -0
- /package/dist/assets/{swift-DiAJo7C6.js → swift-A-ZhZWU8.js} +0 -0
- /package/dist/assets/{swiper-component-BIp7oQxt.js → swiper-component-DL6ct72W.js} +0 -0
- /package/dist/assets/{tcl-DpD837eJ.js → tcl-CREXWwrr.js} +0 -0
- /package/dist/assets/{textile-DEqOicm6.js → textile-Cj8L4qVJ.js} +0 -0
- /package/dist/assets/{tiddlywiki-CqVNI8lH.js → tiddlywiki-Dc8c_QaF.js} +0 -0
- /package/dist/assets/{tiki-BIINIJTn.js → tiki-CwGnGueS.js} +0 -0
- /package/dist/assets/{timer-DwQQMK5T.js → timer-CEUQS2Fi.js} +0 -0
- /package/dist/assets/{toml-BdA-7EhB.js → toml-BwSlV2Pt.js} +0 -0
- /package/dist/assets/{trash-2-C5AzNaHr.js → trash-2-3m1rZsYE.js} +0 -0
- /package/dist/assets/{trash-BUseJO4n.js → trash-D89_qya1.js} +0 -0
- /package/dist/assets/{treemap-DqSsE4KM.js → treemap-BYvDYG1E.js} +0 -0
- /package/dist/assets/{triangle-alert-CBEvAwaa.js → triangle-alert-Bt-v8HXv.js} +0 -0
- /package/dist/assets/{troff-iGRgQHLe.js → troff-DWonWT6V.js} +0 -0
- /package/dist/assets/{ttcn-CLQ1c3XL.js → ttcn--CHQduBW.js} +0 -0
- /package/dist/assets/{ttcn-cfg-BFj90pgD.js → ttcn-cfg-Cei3Mnk3.js} +0 -0
- /package/dist/assets/{turtle-DwFVq6UC.js → turtle-BaGuNPTf.js} +0 -0
- /package/dist/assets/{types-D8yP89N6.js → types-DOdUT9LT.js} +0 -0
- /package/dist/assets/{types-Bpx1EWqM.js → types-jWhVbgX6.js} +0 -0
- /package/dist/assets/{use-toast-PYIpV284.js → use-toast-DZOInYtM.js} +0 -0
- /package/dist/assets/{useDebounce-BxKDvvzN.js → useDebounce-C0E828y0.js} +0 -0
- /package/dist/assets/{useDeepCompareMemoize-pHFuC8FJ.js → useDeepCompareMemoize-606Ao2HX.js} +0 -0
- /package/dist/assets/{useHotkey-j1wCvjNq.js → useHotkey-DMv61Udq.js} +0 -0
- /package/dist/assets/{useInterval-BePSL0QQ.js → useInterval-zx_Q7num.js} +0 -0
- /package/dist/assets/{useTheme-AmxLvSQ5.js → useTheme-DhrO1NvC.js} +0 -0
- /package/dist/assets/{uuid-CCkGk34L.js → uuid-D_ujsK2Y.js} +0 -0
- /package/dist/assets/{vb-gm5P9Pn5.js → vb-DQgwufRi.js} +0 -0
- /package/dist/assets/{vbscript-gQvKiDdU.js → vbscript-B66XhQhu.js} +0 -0
- /package/dist/assets/{velocity-CkfRmD_d.js → velocity-D7CxwqhZ.js} +0 -0
- /package/dist/assets/{verilog-D3b05tu1.js → verilog-SCT9zECa.js} +0 -0
- /package/dist/assets/{vhdl-DRo1SU3e.js → vhdl-Bz6d75os.js} +0 -0
- /package/dist/assets/{web-vitals-CUbDLLN1.js → web-vitals-CMDkd9l8.js} +0 -0
- /package/dist/assets/{webidl-DFtmGFay.js → webidl-B7LbwCfy.js} +0 -0
- /package/dist/assets/{workflow-ktgLxNKJ.js → workflow-CyJEIDjL.js} +0 -0
- /package/dist/assets/{ws-BV-4clkP.js → ws-Bim0WMvW.js} +0 -0
- /package/dist/assets/{xquery-CzUikajR.js → xquery-BOMK2ySj.js} +0 -0
- /package/dist/assets/{yacas-BqvQWbYq.js → yacas-Yk74VuuD.js} +0 -0
- /package/dist/assets/{z80-CQqkYd-2.js → z80-BQKQ7DhX.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as ie}from"./chunk-LvLJmgfZ.js";import{d as de,l as De,p as he,u as K}from"./useEvent-D91BmmQi.js";import{t as Be}from"./react-Bj1aDYRI.js";import{$n as Me,Dr as ue,E as Ve,Er as xe,Fr as Pe,Ht as Ee,In as Oe,Ir as pe,It as Ue,Mr as fe,N as Re,Nn as Ae,Nr as be,Or as Ge,Ot as We,Pn as ze,Qn as He,Sr as Ke,Tr as se,Ut as Je,Wt as Xe,a as Qe,dr as le,f as Ye,hn as Ze,j as ea,kr as aa,sr as ta,tr as sa,ur as la,vi as na}from"./cells-_QgKZKXb.js";import"./react-dom-CSu739Rf.js";import{t as ge}from"./compiler-runtime-B3qBwwSJ.js";import{o as ra}from"./utils-DIGrmLDO.js";import{t as oa}from"./ErrorBoundary-DzYV_VeY.js";import{t as O}from"./cn-DCUzRj2J.js";import{t as ma}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import{n as ca}from"./multi-map-rafH3cg3.js";import"./popover-UExmgBsf.js";import{J as ia,K as je,L as ne,X as da,Y as ha,q as ua}from"./JsonOutput-BGumwadB.js";import"./download-Bc8oaRxn.js";import{t as re}from"./tooltip-Gcwqb_SK.js";import{r as xa,t as ee}from"./button-D9nb17Rw.js";import"./dist-BrR4M-k3.js";import{u as J}from"./arrays-DYDL-3-i.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{i as pa}from"./strings-md4mFbOQ.js";import{r as fa}from"./requests-DIwGYs0l.js";import{t as ba}from"./createLucideIcon-D5guW7EU.js";import{t as ga}from"./x-C-6liIBr.js";import"./markdown-renderer-Cown6yO8.js";import{t as Ne}from"./add-connection-dialog-DW9MujC-.js";import{t as ye}from"./plus-DgRbTQuK.js";import{a as ja}from"./input-gOeJx-hY.js";import{n as Na,o as ya}from"./column-preview-lJCZcp8j.js";import{t as va}from"./workflow-CyJEIDjL.js";import"./dist-Bd6jkjtM.js";import"./dist-CZoX3_w7.js";import"./dist-D80LaxlS.js";import"./dist-B4jGC5bx.js";import"./dist-BNScjj64.js";import"./session-DI1agD5_.js";import"./purify.es-Lm0LKKB_.js";import"./dates-C-8zX5--.js";import{t as wa}from"./copy-icon-D6J-Qe0V.js";import{t as Sa}from"./context-DgMiuV-M.js";import"./utils-B_ZkX8f0.js";import"./vega-loader.browser-BlkwfOz9.js";import"./defaultLocale-CIhzTQNN.js";import"./defaultLocale-CUv_V9gw.js";import{t as ve}from"./cell-link-DiZacqDz.js";import{n as oe}from"./useAsyncData-BRNkjHs1.js";import{a as Ca,o as ae,t as _a,u as ka}from"./command-DAtXz-Gx.js";import"./chunk-5FQGJX7Z-CQS0x34U.js";import{r as $a}from"./html-to-image-s8Gi2a0d.js";import{o as Fa}from"./focus-Ci7q4lAK.js";import{a as Ia,i as Ta,n as La,o as we,r as qa,t as Da}from"./table-CZ3rujd6.js";import"./react-resizable-panels.browser.esm-xQHRvEag.js";import{n as Ba}from"./icons-C66kZH_4.js";import{t as Se}from"./useAddCell-DtcrFkTf.js";import{r as Ma}from"./tree-actions-BEhaM9eb.js";import{a as me,i as te,o as ce,r as Ce,s as _e,t as Va}from"./components-C7yXo-zq.js";import{t as Pa}from"./empty-state-CPvr0RGL.js";import{n as Ea,t as Oa}from"./common-CP7IrRbz.js";import{a as Ua,i as Ra,n as ke,r as $e,t as Fe}from"./components-BHpyAs_N.js";var Aa=ba("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),A=ge(),C=ie(Be(),1),t=ie(ma(),1),S={engineEmpty:"pl-3",engine:"pl-3 pr-2",database:"pl-4",schemaEmpty:"pl-8",schema:"pl-7",schemaLoading:"pl-8",tableLoading:"pl-11",tableSchemaless:"pl-8",tableWithSchema:"pl-12",columnLocal:"pl-5",columnSql:"pl-13",columnPreview:"pl-10"},Ga=he(a=>{let e=a(ue),s=a(Oe),l=a(Qe);return J(e,r=>{if(!r.variable_name)return-1;let o=Object.values(s).find(j=>j.name===r.variable_name);if(!o)return 0;let n=l.inOrderIds.indexOf(o.declaredBy[0]);return n===-1?0:n})});const Ie=he(a=>{let e=new Map(a(Ke));for(let s of pe){let l=e.get(s);l&&(l.databases.length===0&&e.delete(s),l.databases.length===1&&l.databases[0].name==="memory"&&l.databases[0].schemas.length===0&&e.delete(s))}return J([...e.values()],s=>pe.has(s.name)?1:0)}),Wa=()=>{let a=(0,A.c)(32),[e,s]=C.useState(""),l=de(xe),r=K(Ga),o=K(Ie);if(r.length===0&&o.length===0){let u;return a[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(Pa,{title:"No tables found",description:"Any datasets/dataframes in the global scope will be shown here.",action:(0,t.jsx)(Ne,{children:(0,t.jsxs)(ee,{variant:"outline",size:"sm",children:["Add database or catalog",(0,t.jsx)(ye,{className:"h-4 w-4 ml-2"})]})}),icon:(0,t.jsx)(le,{})}),a[0]=u):u=a[0],u}let n=!!e.trim(),j;a[1]===l?j=a[2]:(j=u=>{l(u.length>0),s(u)},a[1]=l,a[2]=j);let g;a[3]!==e||a[4]!==j?(g=(0,t.jsx)(Ca,{placeholder:"Search tables...",className:"h-6 m-1",value:e,onValueChange:j,rootClassName:"flex-1 border-r border-b-0"}),a[3]=e,a[4]=j,a[5]=g):g=a[5];let N;a[6]===n?N=a[7]:(N=n&&(0,t.jsx)("button",{type:"button",className:"float-right border-b px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:()=>s(""),children:(0,t.jsx)(ga,{className:"h-4 w-4"})}),a[6]=n,a[7]=N);let f;a[8]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(Ne,{children:(0,t.jsx)(ee,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,t.jsx)(ye,{className:"h-4 w-4"})})}),a[8]=f):f=a[8];let c;a[9]!==g||a[10]!==N?(c=(0,t.jsxs)("div",{className:"flex items-center w-full border-b",children:[g,N,f]}),a[9]=g,a[10]=N,a[11]=c):c=a[11];let i;if(a[12]!==o||a[13]!==n||a[14]!==e){let u;a[16]!==n||a[17]!==e?(u=x=>(0,t.jsx)(za,{connection:x,hasChildren:x.databases.length>0,children:x.databases.map(b=>(0,t.jsx)(Ha,{engineName:x.name,database:b,hasSearch:n,children:(0,t.jsx)(Ka,{schemas:b.schemas,defaultSchema:x.default_schema,defaultDatabase:x.default_database,engineName:x.name,databaseName:b.name,hasSearch:n,searchValue:e,dialect:x.dialect})},b.name))},x.name),a[16]=n,a[17]=e,a[18]=u):u=a[18],i=o.map(u),a[12]=o,a[13]=n,a[14]=e,a[15]=i}else i=a[15];let h;a[19]!==o.length||a[20]!==r.length?(h=o.length>0&&r.length>0&&(0,t.jsxs)(Ce,{className:S.engine,children:[(0,t.jsx)(Ba,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs",children:"Python"})]}),a[19]=o.length,a[20]=r.length,a[21]=h):h=a[21];let p;a[22]!==e||a[23]!==r?(p=r.length>0&&(0,t.jsx)(Te,{tables:r,searchValue:e}),a[22]=e,a[23]=r,a[24]=p):p=a[24];let d;a[25]!==i||a[26]!==h||a[27]!==p?(d=(0,t.jsxs)(ka,{className:"flex flex-col",children:[i,h,p]}),a[25]=i,a[26]=h,a[27]=p,a[28]=d):d=a[28];let m;return a[29]!==c||a[30]!==d?(m=(0,t.jsxs)(_a,{className:"border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden",shouldFilter:!1,children:[c,d]}),a[29]=c,a[30]=d,a[31]=m):m=a[31],m};var za=a=>{let e=(0,A.c)(25),{connection:s,children:l,hasChildren:r}=a,o=s.name===Pe,n=o?"In-Memory":s.name,{previewDataSourceConnection:j}=fa(),g;e[0]!==s.name||e[1]!==j?(g=async()=>{await j({engine:s.name})},e[0]=s.name,e[1]=j,e[2]=g):g=e[2];let N=g,f;e[3]===s.dialect?f=e[4]:(f=(0,t.jsx)(We,{className:"h-4 w-4 text-muted-foreground",name:s.dialect}),e[3]=s.dialect,e[4]=f);let c;e[5]===s.dialect?c=e[6]:(c=He(s.dialect),e[5]=s.dialect,e[6]=c);let i;e[7]===c?i=e[8]:(i=(0,t.jsx)("span",{className:"text-xs",children:c}),e[7]=c,e[8]=i);let h=n,p;e[9]===h?p=e[10]:(p=(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",(0,t.jsx)(Ua,{variableName:h}),")"]}),e[9]=h,e[10]=p);let d;e[11]!==N||e[12]!==o?(d=!o&&(0,t.jsx)(Ma,{onClick:N,tooltip:"Refresh connection",className:"ml-auto h-4 p-0",iconClassName:"h-3.5 w-3.5"}),e[11]=N,e[12]=o,e[13]=d):d=e[13];let m;e[14]!==f||e[15]!==i||e[16]!==p||e[17]!==d?(m=(0,t.jsxs)(Ce,{className:S.engine,children:[f,i,p,d]}),e[14]=f,e[15]=i,e[16]=p,e[17]=d,e[18]=m):m=e[18];let u;e[19]!==l||e[20]!==r?(u=r?l:(0,t.jsx)(te,{content:"No databases available",className:S.engineEmpty}),e[19]=l,e[20]=r,e[21]=u):u=e[21];let x;return e[22]!==m||e[23]!==u?(x=(0,t.jsxs)(t.Fragment,{children:[m,u]}),e[22]=m,e[23]=u,e[24]=x):x=e[24],x},Ha=a=>{let e=(0,A.c)(26),{hasSearch:s,engineName:l,database:r,children:o}=a,[n,j]=C.useState(!1),[g,N]=C.useState(!1),[f,c]=C.useState(s);f!==s&&(c(s),j(s));let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=O("text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",S.database),e[0]=i):i=e[0];let h;e[1]!==n||e[2]!==g?(h=()=>{j(!n),N(!g)},e[1]=n,e[2]=g,e[3]=h):h=e[3];let p=`${l}:${r.name}`,d;e[4]===n?d=e[5]:(d=(0,t.jsx)(_e,{isExpanded:n}),e[4]=n,e[5]=d);let m=g&&n?"text-foreground":"text-muted-foreground",u;e[6]===m?u=e[7]:(u=O("h-4 w-4",m),e[6]=m,e[7]=u);let x;e[8]===u?x=e[9]:(x=(0,t.jsx)(le,{className:u}),e[8]=u,e[9]=x);let b=g&&n&&"font-semibold",y;e[10]===b?y=e[11]:(y=O(b),e[10]=b,e[11]=y);let v;e[12]===r.name?v=e[13]:(v=r.name===""?(0,t.jsx)("i",{children:"Not connected"}):r.name,e[12]=r.name,e[13]=v);let w;e[14]!==v||e[15]!==y?(w=(0,t.jsx)("span",{className:y,children:v}),e[14]=v,e[15]=y,e[16]=w):w=e[16];let _;e[17]!==w||e[18]!==h||e[19]!==p||e[20]!==d||e[21]!==x?(_=(0,t.jsxs)(ae,{className:i,onSelect:h,value:p,children:[d,x,w]}),e[17]=w,e[18]=h,e[19]=p,e[20]=d,e[21]=x,e[22]=_):_=e[22];let L=n&&o,k;return e[23]!==_||e[24]!==L?(k=(0,t.jsxs)(t.Fragment,{children:[_,L]}),e[23]=_,e[24]=L,e[25]=k):k=e[25],k},Ka=({schemas:a,defaultSchema:e,defaultDatabase:s,dialect:l,engineName:r,databaseName:o,hasSearch:n,searchValue:j})=>{let{addSchemaList:g}=se(),[N,f]=C.useState(!1),[c,i]=C.useState(!1),{isPending:h,error:p}=oe(async()=>{if(a.length===0&&r&&!N){f(!0),i(!0);try{g({schemas:(await Ee.request({engine:r,database:o})).schemas??[],sqlSchemaContext:{engine:r,database:o}})}finally{i(!1)}}},[a.length,r,o,N]);return h||c?(0,t.jsx)(ce,{message:"Loading schemas...",className:S.schemaLoading}):p?(0,t.jsx)(me,{error:p,className:S.schemaLoading}):a.length===0?(0,t.jsx)(te,{content:"No schemas available",className:S.schemaEmpty}):(0,t.jsx)(t.Fragment,{children:a.filter(d=>j?d.tables.some(m=>m.name.toLowerCase().includes(j.toLowerCase())):!0).map(d=>(0,t.jsx)(Ja,{databaseName:o,schema:d,hasSearch:n,children:(0,t.jsx)(Te,{tables:d.tables,searchValue:j,sqlTableContext:{engine:r,database:o,schema:d.name,defaultSchema:e,defaultDatabase:s,dialect:l}})},d.name))})},Ja=a=>{let e=(0,A.c)(24),{databaseName:s,schema:l,children:r,hasSearch:o}=a,[n,j]=C.useState(o),[g,N]=C.useState(!1),f=`${s}:${l.name}`;if(fe(l.name))return r;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=O("text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",S.schema),e[0]=c):c=e[0];let i;e[1]!==n||e[2]!==g?(i=()=>{j(!n),N(!g)},e[1]=n,e[2]=g,e[3]=i):i=e[3];let h;e[4]===n?h=e[5]:(h=(0,t.jsx)(_e,{isExpanded:n}),e[4]=n,e[5]=h);let p=g&&n&&"text-foreground",d;e[6]===p?d=e[7]:(d=O("h-4 w-4 text-muted-foreground",p),e[6]=p,e[7]=d);let m;e[8]===d?m=e[9]:(m=(0,t.jsx)(ta,{className:d}),e[8]=d,e[9]=m);let u=g&&n&&"font-semibold",x;e[10]===u?x=e[11]:(x=O(u),e[10]=u,e[11]=x);let b;e[12]!==l.name||e[13]!==x?(b=(0,t.jsx)("span",{className:x,children:l.name}),e[12]=l.name,e[13]=x,e[14]=b):b=e[14];let y;e[15]!==i||e[16]!==h||e[17]!==m||e[18]!==b||e[19]!==f?(y=(0,t.jsxs)(ae,{className:c,onSelect:i,value:f,children:[h,m,b]}),e[15]=i,e[16]=h,e[17]=m,e[18]=b,e[19]=f,e[20]=y):y=e[20];let v=n&&r,w;return e[21]!==y||e[22]!==v?(w=(0,t.jsxs)(t.Fragment,{children:[y,v]}),e[21]=y,e[22]=v,e[23]=w):w=e[23],w},Te=a=>{let e=(0,A.c)(24),{tables:s,sqlTableContext:l,searchValue:r}=a,{addTableList:o}=se(),[n,j]=C.useState(!1),[g,N]=C.useState(!1),f;e[0]!==o||e[1]!==l||e[2]!==s.length||e[3]!==n?(f=async()=>{if(s.length===0&&l&&!n){j(!0),N(!0);let{engine:m,database:u,schema:x}=l,b=await Xe.request({engine:m,database:u,schema:x});if(!(b!=null&&b.tables))throw N(!1),Error("No tables available");o({tables:b.tables,sqlTableContext:l}),N(!1)}},e[0]=o,e[1]=l,e[2]=s.length,e[3]=n,e[4]=f):f=e[4];let c;e[5]!==l||e[6]!==s.length||e[7]!==n?(c=[s.length,l,n],e[5]=l,e[6]=s.length,e[7]=n,e[8]=c):c=e[8];let{isPending:i,error:h}=oe(f,c);if(i||g){let m;return e[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(ce,{message:"Loading tables...",className:S.tableLoading}),e[9]=m):m=e[9],m}if(h){let m;return e[10]===h?m=e[11]:(m=(0,t.jsx)(me,{error:h,className:S.tableLoading}),e[10]=h,e[11]=m),m}if(s.length===0){let m;return e[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(te,{content:"No tables found",className:S.tableLoading}),e[12]=m):m=e[12],m}let p;if(e[13]!==r||e[14]!==l||e[15]!==s){let m;e[17]===r?m=e[18]:(m=b=>r?b.name.toLowerCase().includes(r.toLowerCase()):!0,e[17]=r,e[18]=m);let u=s.filter(m),x;e[19]!==r||e[20]!==l?(x=b=>(0,t.jsx)(Xa,{table:b,sqlTableContext:l,isSearching:!!r},b.name),e[19]=r,e[20]=l,e[21]=x):x=e[21],p=u.map(x),e[13]=r,e[14]=l,e[15]=s,e[16]=p}else p=e[16];let d;return e[22]===p?d=e[23]:(d=(0,t.jsx)(t.Fragment,{children:p}),e[22]=p,e[23]=d),d},Xa=a=>{let e=(0,A.c)(64),{table:s,sqlTableContext:l,isSearching:r}=a,{addTable:o}=se(),[n,j]=C.useState(!1),[g,N]=C.useState(!1),f=s.columns.length>0,c;e[0]!==o||e[1]!==n||e[2]!==l||e[3]!==s.name||e[4]!==f||e[5]!==g?(c=async()=>{if(n&&!f&&l&&!g){N(!0);let{engine:B,database:Y,schema:qe}=l,Z=await Je.request({engine:B,database:Y,schema:qe,tableName:s.name});if(!(Z!=null&&Z.table))throw Error("No table details available");o({table:Z.table,sqlTableContext:l})}},e[0]=o,e[1]=n,e[2]=l,e[3]=s.name,e[4]=f,e[5]=g,e[6]=c):c=e[6];let i;e[7]!==n||e[8]!==f?(i=[n,f],e[7]=n,e[8]=f,e[9]=i):i=e[9];let{isFetching:h,isPending:p,error:d}=oe(c,i),m=K(ra),u=Fa(),{createNewCell:x}=Ve(),b=Se(),y;e[10]!==b||e[11]!==m||e[12]!==x||e[13]!==u||e[14]!==l||e[15]!==s?(y=()=>{$a({autoInstantiate:m,createNewCell:x,fromCellId:u}),b((()=>{if(s.source_type==="catalog"){let B=l!=null&&l.database?`${l.database}.${s.name}`:s.name;return`${s.engine}.load_table("${B}")`}if(l)return be({table:s,columnName:"*",sqlTableContext:l});switch(s.source_type){case"local":return`mo.ui.table(${s.name})`;case"duckdb":case"connection":return be({table:s,columnName:"*",sqlTableContext:l});default:return pa(s.source_type),""}})())},e[10]=b,e[11]=m,e[12]=x,e[13]=u,e[14]=l,e[15]=s,e[16]=y):y=e[16];let v=y,w;e[17]!==s.num_columns||e[18]!==s.num_rows?(w=()=>{let B=[];return s.num_rows!=null&&B.push(`${s.num_rows} rows`),s.num_columns!=null&&B.push(`${s.num_columns} columns`),B.length===0?null:(0,t.jsx)("div",{className:"flex flex-row gap-2 items-center pl-6 group-hover:hidden",children:(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:B.join(", ")})})},e[17]=s.num_columns,e[18]=s.num_rows,e[19]=w):w=e[19];let _=w,L;e[20]!==d||e[21]!==h||e[22]!==p||e[23]!==l||e[24]!==s?(L=()=>{if(p||h)return(0,t.jsx)(ce,{message:"Loading columns...",className:S.tableLoading});if(d)return(0,t.jsx)(me,{error:d,className:S.tableLoading});let B=s.columns;return B.length===0?(0,t.jsx)(te,{content:"No columns found",className:S.tableLoading}):B.map(Y=>(0,t.jsx)(Qa,{table:s,column:Y,sqlTableContext:l},Y.name))},e[20]=d,e[21]=h,e[22]=p,e[23]=l,e[24]=s,e[25]=L):L=e[25];let k=L,q;e[26]!==n||e[27]!==r||e[28]!==s.source_type||e[29]!==s.type?(q=()=>{if(s.source_type!=="local")return(0,t.jsx)(s.type==="table"?sa:la,{className:"h-3 w-3",strokeWidth:n||r?2.5:void 0})},e[26]=n,e[27]=r,e[28]=s.source_type,e[29]=s.type,e[30]=q):q=e[30];let M=q,V=l?`${l.database}.${l.schema}.${s.name}`:s.name,P=l&&(fe(l.schema)?S.tableSchemaless:S.tableWithSchema),E=(n||r)&&"font-semibold",$;e[31]!==P||e[32]!==E?($=O("rounded-none group h-8 cursor-pointer",P,E),e[31]=P,e[32]=E,e[33]=$):$=e[33];let F;e[34]===n?F=e[35]:(F=()=>j(!n),e[34]=n,e[35]=F);let I;e[36]===M?I=e[37]:(I=M(),e[36]=M,e[37]=I);let D;e[38]===s.name?D=e[39]:(D=(0,t.jsx)("span",{className:"text-sm",children:s.name}),e[38]=s.name,e[39]=D);let U;e[40]!==I||e[41]!==D?(U=(0,t.jsxs)("div",{className:"flex gap-2 items-center flex-1 pl-1",children:[I,D]}),e[40]=I,e[41]=D,e[42]=U):U=e[42];let R;e[43]===_?R=e[44]:(R=_(),e[43]=_,e[44]=R);let T;e[45]===v?T=e[46]:(T=xa.stopPropagation(()=>v()),e[45]=v,e[46]=T);let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=(0,t.jsx)(ya,{className:"h-3 w-3"}),e[47]=X):X=e[47];let W;e[48]===T?W=e[49]:(W=(0,t.jsx)(re,{content:"Add table to notebook",delayDuration:400,children:(0,t.jsx)(ee,{className:"group-hover:inline-flex hidden",variant:"text",size:"icon",onClick:T,children:X})}),e[48]=T,e[49]=W);let z;e[50]!==n||e[51]!==F||e[52]!==U||e[53]!==R||e[54]!==W||e[55]!==$||e[56]!==V?(z=(0,t.jsxs)(ae,{className:$,value:V,"aria-selected":n,forceMount:!0,onSelect:F,children:[U,R,W]}),e[50]=n,e[51]=F,e[52]=U,e[53]=R,e[54]=W,e[55]=$,e[56]=V,e[57]=z):z=e[57];let H;e[58]!==n||e[59]!==k?(H=n&&k(),e[58]=n,e[59]=k,e[60]=H):H=e[60];let Q;return e[61]!==z||e[62]!==H?(Q=(0,t.jsxs)(t.Fragment,{children:[z,H]}),e[61]=z,e[62]=H,e[63]=Q):Q=e[63],Q},Qa=a=>{var U,R;let e=(0,A.c)(48),{table:s,column:l,sqlTableContext:r}=a,[o,n]=C.useState(!1),j=K(xe),g=de(Ge);j&&o&&n(!1),g(o?T=>new Set([...T,`${s.name}:${l.name}`]):T=>(T.delete(`${s.name}:${l.name}`),new Set(T)));let N=Se(),{columnsPreviews:f}=aa(),c;e[0]!==l.name||e[1]!==s.primary_keys?(c=((U=s.primary_keys)==null?void 0:U.includes(l.name))||!1,e[0]=l.name,e[1]=s.primary_keys,e[2]=c):c=e[2];let i=c,h;e[3]!==l.name||e[4]!==s.indexes?(h=((R=s.indexes)==null?void 0:R.includes(l.name))||!1,e[3]=l.name,e[4]=s.indexes,e[5]=h):h=e[5];let p=h,d;e[6]===N?d=e[7]:(d=T=>{N(T)},e[6]=N,e[7]=d);let m=d,u=Ya,x=o?"font-semibold":"",b;e[8]!==l.name||e[9]!==x?(b=(0,t.jsx)("span",{className:x,children:l.name}),e[8]=l.name,e[9]=x,e[10]=b):b=e[10];let y=b,v=`${s.name}.${l.name}`,w=`${s.name}.${l.name}`,_;e[11]===o?_=e[12]:(_=()=>n(!o),e[11]=o,e[12]=_);let L=r?S.columnSql:S.columnLocal,k;e[13]===L?k=e[14]:(k=O("flex flex-row gap-2 items-center flex-1",L),e[13]=L,e[14]=k);let q;e[15]!==l.type||e[16]!==y?(q=(0,t.jsx)(Va,{columnName:y,dataType:l.type}),e[15]=l.type,e[16]=y,e[17]=q):q=e[17];let M;e[18]===i?M=e[19]:(M=i&&u({tooltipContent:"Primary key",content:"PK"}),e[18]=i,e[19]=M);let V;e[20]===p?V=e[21]:(V=p&&u({tooltipContent:"Indexed",content:"IDX"}),e[20]=p,e[21]=V);let P;e[22]!==k||e[23]!==q||e[24]!==M||e[25]!==V?(P=(0,t.jsxs)("div",{className:k,children:[q,M,V]}),e[22]=k,e[23]=q,e[24]=M,e[25]=V,e[26]=P):P=e[26];let E;e[27]===l.name?E=e[28]:(E=(0,t.jsx)(re,{content:"Copy column name",delayDuration:400,children:(0,t.jsx)(ee,{variant:"text",size:"icon",className:"group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-foreground",children:(0,t.jsx)(wa,{tooltip:!1,value:l.name,className:"h-3 w-3"})})}),e[27]=l.name,e[28]=E);let $;e[29]===l.external_type?$=e[30]:($=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:l.external_type}),e[29]=l.external_type,e[30]=$);let F;e[31]!==P||e[32]!==E||e[33]!==$||e[34]!==v||e[35]!==w||e[36]!==_?(F=(0,t.jsxs)(ae,{className:"rounded-none py-1 group cursor-pointer",value:w,onSelect:_,children:[P,E,$]},v),e[31]=P,e[32]=E,e[33]=$,e[34]=v,e[35]=w,e[36]=_,e[37]=F):F=e[37];let I;e[38]!==l||e[39]!==f||e[40]!==m||e[41]!==o||e[42]!==r||e[43]!==s?(I=o&&(0,t.jsx)("div",{className:O(S.columnPreview,"pr-2 py-2 bg-(--slate-1) shadow-inner border-b"),children:(0,t.jsx)(oa,{children:(0,t.jsx)(Na,{table:s,column:l,onAddColumnChart:m,preview:f.get(r?`${r.database}.${r.schema}.${s.name}:${l.name}`:`${s.name}:${l.name}`),sqlTableContext:r})})}),e[38]=l,e[39]=f,e[40]=m,e[41]=o,e[42]=r,e[43]=s,e[44]=I):I=e[44];let D;return e[45]!==F||e[46]!==I?(D=(0,t.jsxs)(t.Fragment,{children:[F,I]}),e[45]=F,e[46]=I,e[47]=D):D=e[47],D};function Ya(a){let{tooltipContent:e,content:s}=a;return(0,t.jsx)(re,{content:e,delayDuration:100,children:(0,t.jsx)("span",{className:"text-xs text-black bg-gray-100 dark:invert rounded px-1",children:s})})}function hs(a){return a}var G={name:"name",type:"type-value",defs:"defs-refs"},Za=[{id:G.name,accessorFn:a=>[a.name,a.declaredBy],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,t.jsx)(ne,{header:"Name",column:a}),cell:({getValue:a})=>{let[e,s]=a();return(0,t.jsx)(Oa,{name:e,declaredBy:s})}},{id:G.type,accessorFn:a=>[a.dataType,a.value],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,t.jsx)(ne,{header:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Type"}),(0,t.jsx)("span",{children:"Value"})]}),column:a}),cell:({getValue:a})=>{let[e,s]=a();return(0,t.jsxs)("div",{className:"max-w-[150px]",children:[(0,t.jsx)("div",{className:"text-ellipsis overflow-hidden whitespace-nowrap text-muted-foreground font-mono text-xs",children:e}),(0,t.jsx)("div",{className:"text-ellipsis overflow-hidden whitespace-nowrap",title:s??"",children:s})]})}},{id:G.defs,accessorFn:a=>[a.declaredBy,a.usedBy,a.name,a.declaredByNames,a.usedByNames],enableSorting:!0,sortingFn:"basic",header:({column:a})=>(0,t.jsx)(ne,{header:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Declared By"}),(0,t.jsx)("span",{children:"Used By"})]}),column:a}),cell:({getValue:a})=>{let[e,s,l]=a(),r=o=>{let n=Ye(o);n&&Ze(n,l)};return(0,t.jsxs)("div",{className:"flex flex-col gap-1 py-1",children:[(0,t.jsxs)("div",{className:"flex flex-row overflow-auto gap-2 items-center",children:[(0,t.jsx)("span",{title:"Declared by",children:(0,t.jsx)(Aa,{className:"w-3.5 h-3.5 text-muted-foreground"})}),e.length===1?(0,t.jsx)(ve,{variant:"focus",cellId:e[0],skipScroll:!0,onClick:()=>r(e[0])}):(0,t.jsx)("div",{className:"text-destructive flex flex-row gap-2",children:e.slice(0,3).map((o,n)=>(0,t.jsxs)("span",{className:"flex",children:[(0,t.jsx)(ve,{variant:"focus",cellId:o,skipScroll:!0,className:"whitespace-nowrap text-destructive",onClick:()=>r(o)},o),n<e.length-1&&", "]},o))})]}),(0,t.jsxs)("div",{className:"flex flex-row overflow-auto gap-2 items-baseline",children:[(0,t.jsx)("span",{title:"Used by",children:(0,t.jsx)(va,{className:"w-3.5 h-3.5 text-muted-foreground"})}),(0,t.jsx)(Ea,{maxCount:3,cellIds:s,skipScroll:!0,onClick:r})]})]})}}];function et({variables:a,sort:e,cellIdToIndex:s}){e||(e={id:G.defs,desc:!1});let l=[];switch(e.id){case G.name:l=J(a,r=>r.name);break;case G.type:l=J(a,r=>r.dataType);break;case G.defs:l=J(a,r=>s.get(r.declaredBy[0]));break}return e.desc?l.toReversed():l}const Le=(0,C.memo)(({className:a,cellIds:e,variables:s})=>{let[l,r]=C.useState([]),[o,n]=C.useState(""),j=Re(),{locale:g}=Sa(),N=(0,C.useMemo)(()=>{let c=i=>{let h=j[i];return Ue(h)?`cell-${e.indexOf(i)}`:h??`cell-${e.indexOf(i)}`};return Object.values(s).map(i=>({...i,declaredByNames:i.declaredBy.map(c),usedByNames:i.usedBy.map(c)}))},[s,j,e]),f=ua({data:(0,C.useMemo)(()=>{let c=new Map;return e.forEach((i,h)=>c.set(i,h)),et({variables:N,sort:l[0],cellIdToIndex:c})},[N,l,e]),columns:Za,getCoreRowModel:ia(),onGlobalFilterChange:n,getFilteredRowModel:ha(),enableFilters:!0,enableGlobalFilter:!0,enableColumnPinning:!1,getColumnCanGlobalFilter(c){return c.columnDef.enableGlobalFilter??!0},globalFilterFn:"auto",manualSorting:!0,locale:g,onSortingChange:r,getSortedRowModel:da(),state:{sorting:l,globalFilter:o}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ja,{className:"w-full",placeholder:"Search",value:o,onChange:c=>n(c.target.value)}),(0,t.jsxs)(Da,{className:O("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,t.jsx)(Ia,{children:(0,t.jsx)(we,{className:"whitespace-nowrap text-xs",children:f.getFlatHeaders().map(c=>(0,t.jsx)(Ta,{className:"sticky top-0 bg-background border-b",children:je(c.column.columnDef.header,c.getContext())},c.id))})}),(0,t.jsx)(La,{children:f.getRowModel().rows.map(c=>(0,t.jsx)(we,{className:"hover:bg-accent",children:c.getVisibleCells().map(i=>(0,t.jsx)(qa,{className:"border-b",children:je(i.column.columnDef.cell,i.getContext())},i.id))},c.id))})]})]})});Le.displayName="VariableTable";var at=ge(),tt=na("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},Ae),st=()=>{let a=(0,at.c)(24),e=ze(),s=ea(),l=K(ue),r=K(Ie),[o,n]=De(tt),j=l.length+r.length,g;a[0]!==j||a[1]!==o.hasUserInteracted||a[2]!==o.openSections?(g=!o.hasUserInteracted&&j>0?[...new Set([...o.openSections,"datasources"])]:o.openSections,a[0]=j,a[1]=o.hasUserInteracted,a[2]=o.openSections,a[3]=g):g=a[3];let N=g,f;a[4]===n?f=a[5]:(f=v=>{n({openSections:v,hasUserInteracted:!0})},a[4]=n,a[5]=f);let c=f,i=!N.includes("datasources")&&j>0,h;a[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(le,{className:"w-4 h-4"}),a[6]=h):h=a[6];let p;a[7]!==j||a[8]!==i?(p=i&&(0,t.jsx)(Ra,{children:j}),a[7]=j,a[8]=i,a[9]=p):p=a[9];let d;a[10]===p?d=a[11]:(d=(0,t.jsxs)($e,{children:[h,"Data sources",p]}),a[10]=p,a[11]=d);let m;a[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(Fe,{children:(0,t.jsx)(Wa,{})}),a[12]=m):m=a[12];let u;a[13]===d?u=a[14]:(u=(0,t.jsxs)(ke,{value:"datasources",children:[d,m]}),a[13]=d,a[14]=u);let x;a[15]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsxs)($e,{children:[(0,t.jsx)(Me,{className:"w-4 h-4"}),"Variables"]}),a[15]=x):x=a[15];let b;a[16]!==s||a[17]!==e?(b=(0,t.jsxs)(ke,{value:"variables",lastItem:!0,children:[x,(0,t.jsx)(Fe,{children:Object.keys(e).length===0?(0,t.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No variables defined"}):(0,t.jsx)(Le,{cellIds:s.inOrderIds,variables:e})})]}),a[16]=s,a[17]=e,a[18]=b):b=a[18];let y;return a[19]!==c||a[20]!==N||a[21]!==u||a[22]!==b?(y=(0,t.jsxs)(ca,{type:"multiple",value:N,onValueChange:c,className:"flex flex-col h-full overflow-auto",children:[u,b]}),a[19]=c,a[20]=N,a[21]=u,a[22]=b,a[23]=y):y=a[23],y};export{st as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O}from"./chunk-LvLJmgfZ.js";import{_ as j}from"./useEventListener-BR0C1MaI.js";import{t as T}from"./use-toast-
|
|
1
|
+
import{t as O}from"./chunk-LvLJmgfZ.js";import{_ as j}from"./useEventListener-BR0C1MaI.js";import{t as T}from"./use-toast-DZOInYtM.js";function k(){try{window.location.reload()}catch(w){j.error("Failed to reload page",w),T({title:"Failed to reload page",description:"Please refresh the page manually."})}}var F=O(((w,y)=>{var C=(function(){var g=String.fromCharCode,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",b={};function _(r,e){if(!b[r]){b[r]={};for(var a=0;a<r.length;a++)b[r][r.charAt(a)]=a}return b[r][e]}var d={compressToBase64:function(r){if(r==null)return"";var e=d._compress(r,6,function(a){return x.charAt(a)});switch(e.length%4){default:case 0:return e;case 1:return e+"===";case 2:return e+"==";case 3:return e+"="}},decompressFromBase64:function(r){return r==null?"":r==""?null:d._decompress(r.length,32,function(e){return _(x,r.charAt(e))})},compressToUTF16:function(r){return r==null?"":d._compress(r,15,function(e){return g(e+32)})+" "},decompressFromUTF16:function(r){return r==null?"":r==""?null:d._decompress(r.length,16384,function(e){return r.charCodeAt(e)-32})},compressToUint8Array:function(r){for(var e=d.compress(r),a=new Uint8Array(e.length*2),n=0,s=e.length;n<s;n++){var f=e.charCodeAt(n);a[n*2]=f>>>8,a[n*2+1]=f%256}return a},decompressFromUint8Array:function(r){if(r==null)return d.decompress(r);for(var e=Array(r.length/2),a=0,n=e.length;a<n;a++)e[a]=r[a*2]*256+r[a*2+1];var s=[];return e.forEach(function(f){s.push(g(f))}),d.decompress(s.join(""))},compressToEncodedURIComponent:function(r){return r==null?"":d._compress(r,6,function(e){return U.charAt(e)})},decompressFromEncodedURIComponent:function(r){return r==null?"":r==""?null:(r=r.replace(/ /g,"+"),d._decompress(r.length,32,function(e){return _(U,r.charAt(e))}))},compress:function(r){return d._compress(r,16,function(e){return g(e)})},_compress:function(r,e,a){if(r==null)return"";var n,s,f={},v={},m="",A="",p="",h=2,l=3,c=2,u=[],o=0,i=0,t;for(t=0;t<r.length;t+=1)if(m=r.charAt(t),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=l++,v[m]=!0),A=p+m,Object.prototype.hasOwnProperty.call(f,A))p=A;else{if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n<c;n++)o<<=1,i==e-1?(i=0,u.push(a(o)),o=0):i++;for(s=p.charCodeAt(0),n=0;n<8;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}else{for(s=1,n=0;n<c;n++)o=o<<1|s,i==e-1?(i=0,u.push(a(o)),o=0):i++,s=0;for(s=p.charCodeAt(0),n=0;n<16;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;h--,h==0&&(h=2**c,c++),f[A]=l++,p=String(m)}if(p!==""){if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n<c;n++)o<<=1,i==e-1?(i=0,u.push(a(o)),o=0):i++;for(s=p.charCodeAt(0),n=0;n<8;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}else{for(s=1,n=0;n<c;n++)o=o<<1|s,i==e-1?(i=0,u.push(a(o)),o=0):i++,s=0;for(s=p.charCodeAt(0),n=0;n<16;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;h--,h==0&&(h=2**c,c++)}for(s=2,n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;for(;;)if(o<<=1,i==e-1){u.push(a(o));break}else i++;return u.join("")},decompress:function(r){return r==null?"":r==""?null:d._decompress(r.length,32768,function(e){return r.charCodeAt(e)})},_decompress:function(r,e,a){var n=[],s=4,f=4,v=3,m="",A=[],p,h,l,c,u,o,i,t={val:a(0),position:e,index:1};for(p=0;p<3;p+=1)n[p]=p;for(l=0,u=2**2,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 2:return""}for(n[3]=i,h=i,A.push(i);;){if(t.index>r)return"";for(l=0,u=2**v,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(i=l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 2:return A.join("")}if(s==0&&(s=2**v,v++),n[i])m=n[i];else if(i===f)m=h+h.charAt(0);else return null;A.push(m),n[f++]=h+m.charAt(0),s--,h=m,s==0&&(s=2**v,v++)}}};return d})();typeof define=="function"&&define.amd?define(function(){return C}):y!==void 0&&y!=null?y.exports=C:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return C})})),P=F();function E(w){let{code:y,baseUrl:C="https://marimo.app"}=w,g=new URL(C);return y&&(g.hash=`#code/${(0,P.compressToEncodedURIComponent)(y)}`),g.href}export{F as n,k as r,E as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./shell-BSVgrHzY.js";export{e as shell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./sieve-DvUWNrPv.js";export{e as sieve};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./chunk-LvLJmgfZ.js";import{t as n}from"./react-Bj1aDYRI.js";import{ut as u}from"./cells-
|
|
1
|
+
import{s as e}from"./chunk-LvLJmgfZ.js";import{t as n}from"./react-Bj1aDYRI.js";import{ut as u}from"./cells-_QgKZKXb.js";import{t as c}from"./compiler-runtime-B3qBwwSJ.js";import{t as d}from"./jsx-runtime-BqBOg78p.js";import{n as f}from"./JsonOutput-BGumwadB.js";var x=c(),I=e(n(),1),N=e(d(),1);const i=(0,I.memo)(p=>{let t=(0,x.c)(6),{output:a,cellId:m,status:l}=p,o;t[0]===l?o=t[1]:(o=u(l),t[0]=l,t[1]=o);let r=o,s;return t[2]!==m||t[3]!==r||t[4]!==a?(s=(0,N.jsx)(f,{className:"contents",allowExpand:!1,output:a,cellId:m,stale:r,loading:r}),t[2]=m,t[3]=r,t[4]=a,t[5]=s):s=t[5],s});i.displayName="Slide";export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a}from"./smalltalk-CeZ66qpG.js";export{a as smalltalk};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as P}from"./react-Bj1aDYRI.js";import{E as q}from"./cells-
|
|
1
|
+
import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as P}from"./react-Bj1aDYRI.js";import{E as q}from"./cells-_QgKZKXb.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{n as D}from"./useEventListener-BR0C1MaI.js";import{n as F}from"./constants-DMpttj8Q.js";import{t as G}from"./cn-DCUzRj2J.js";import{t as R}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import{t as T}from"./tooltip-Gcwqb_SK.js";import{t as w}from"./button-D9nb17Rw.js";import{at as W}from"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{r as A}from"./requests-DIwGYs0l.js";import{n as E,t as B}from"./LazyAnyLanguageCodeMirror-B4dqgtrW.js";import{t as J}from"./x-C-6liIBr.js";import{t as K}from"./spinner-jEqwgi_c.js";import{t as L}from"./plus-DgRbTQuK.js";import"./dist-Bd6jkjtM.js";import"./dist-CZoX3_w7.js";import"./dist-D80LaxlS.js";import"./dist-B4jGC5bx.js";import"./dist-BNScjj64.js";import"./session-DI1agD5_.js";import{r as U}from"./useTheme-DhrO1NvC.js";import"./purify.es-Lm0LKKB_.js";import{t as V}from"./RenderHTML-DweIff7M.js";import{a as X,c as Y,i as Q,n as Z,r as ee}from"./dialog-BEgS5oXa.js";import{n as te}from"./ImperativeModal-QWJWbLVR.js";import{n as se}from"./error-banner-B6M4W7BS.js";import{n as re}from"./useAsyncData-BRNkjHs1.js";import{a as le,o as oe,r as ie,t as ae,u as ne}from"./command-DAtXz-Gx.js";import{o as me}from"./focus-Ci7q4lAK.js";import{n as ce,r as de,t as M}from"./react-resizable-panels.browser.esm-xQHRvEag.js";import{t as pe}from"./empty-state-CPvr0RGL.js";import{n as he,r as fe}from"./panel-context-S-AFWBnz.js";import{t as H}from"./kiosk-mode-PchJOoW7.js";var O=$(),C=I(P(),1),s=I(R(),1),xe=D;const ue=t=>{let e=(0,O.c)(6),{children:r}=t,{openModal:i,closeModal:o}=te(),l;e[0]!==o||e[1]!==i?(l=()=>i((0,s.jsx)(je,{onClose:o})),e[0]=o,e[1]=i,e[2]=l):l=e[2];let a;return e[3]!==r||e[4]!==l?(a=(0,s.jsx)(xe,{onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=a):a=e[5],a};var je=t=>{let e=(0,O.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Y,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(X,{children:[i,(0,s.jsxs)(ee,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:F.githubPage,target:"_blank",className:"underline",children:"on GitHub"}),"."]})]}),e[1]=o):o=e[1];let l;return e[2]===r?l=e[3]:(l=(0,s.jsxs)(Z,{className:"max-w-md",children:[o,(0,s.jsx)(Q,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},k=$(),be=[W.lineWrapping],ve=()=>{let t=(0,k.c)(24),{readSnippets:e}=A(),[r,i]=C.useState(),o=he(),l=fe(),a;t[0]===e?a=t[1]:(a=()=>e(),t[0]=e,t[1]=a);let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[2]=c):c=t[2];let{data:N,error:j,isPending:g}=re(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(se,{error:j}),t[3]=j,t[4]=m),m}if(g||!N){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(K,{size:"medium",centered:!0}),t[5]=m):m=t[5],m}let _=o==="vertical",b;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(le,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=b):b=t[6];let h,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[b,(0,s.jsx)(ue,{children:(0,s.jsx)("button",{className:"float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",children:(0,s.jsx)(L,{className:"h-4 w-4"})})})]}),f=(0,s.jsx)(ie,{children:"No results"}),t[7]=h,t[8]=f):(h=t[7],f=t[8]);let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v=m=>i(m),t[9]=v):v=t[9];let d;t[10]===N.snippets?d=t[11]:(d=(0,s.jsx)(M,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(ae,{className:"h-full rounded-none",children:[h,f,(0,s.jsx)(_e,{onSelect:v,snippets:N.snippets})]})}),t[10]=N.snippets,t[11]=d);let u=_?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=G("bg-border hover:bg-primary/50 transition-colors",u),t[12]=u,t[13]=p);let x;t[14]===p?x=t[15]:(x=(0,s.jsx)(de,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(M,{defaultSize:60,minSize:20,children:(0,s.jsx)(C.Suspense,{children:(0,s.jsx)("div",{className:"h-full snippet-viewer flex flex-col overflow-hidden",children:r?(0,s.jsx)(Ne,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(pe,{title:"",description:"Click on a snippet to view its content."})})})}),t[16]=r,t[17]=n);let S;return t[18]!==o||t[19]!==l||t[20]!==n||t[21]!==d||t[22]!==x?(S=(0,s.jsx)("div",{className:"flex-1 overflow-hidden h-full",children:(0,s.jsxs)(ce,{direction:o,className:"h-full",children:[d,x,n]},l)}),t[18]=o,t[19]=l,t[20]=n,t[21]=d,t[22]=x,t[23]=S):S=t[23],S},Ne=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=U(),{createNewCell:l}=q(),a=me(),c;e[0]!==l||e[1]!==a||e[2]!==r.sections?(c=()=>{for(let n of r.sections.toReversed())n.code&&l({code:n.code,before:!1,cellId:a??"__end__",skipIfCodeExists:!0})},e[0]=l,e[1]=a,e[2]=r.sections,e[3]=c):c=e[3];let N=c,j;e[4]!==l||e[5]!==a?(j=n=>{l({code:n,before:!1,cellId:a??"__end__"})},e[4]=l,e[5]=a,e[6]=j):j=e[6];let g=j,_;e[7]===r.title?_=e[8]:(_=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=_);let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(J,{className:"h-4 w-4"}),e[9]=b):b=e[9];let h;e[10]===i?h=e[11]:(h=(0,s.jsx)(w,{size:"sm",variant:"ghost",onClick:i,className:"h-6 w-6 p-0 hover:bg-muted-foreground/10",children:b}),e[10]=i,e[11]=h);let f;e[12]!==_||e[13]!==h?(f=(0,s.jsxs)("div",{className:"text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center",children:[_,h]}),e[12]=_,e[13]=h,e[14]=f):f=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(E,{className:"ml-2 h-4 w-4"}),e[15]=v):v=e[15];let d;e[16]===N?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(H,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:N,children:["Insert snippet",v]})})}),e[16]=N,e[17]=d);let u;if(e[18]!==g||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==g||e[24]!==r.title||e[25]!==o?(n=S=>{let{code:m,html:z,id:y}=S;return z?(0,s.jsx)("div",{children:V({html:z})},`${r.title}-${y}`):m?(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(H,{children:(0,s.jsx)(T,{content:"Insert snippet",children:(0,s.jsx)(w,{className:"absolute -top-2 -right-1 z-10 hover-action px-2 bg-background",size:"sm",variant:"outline",onClick:()=>{g(m)},children:(0,s.jsx)(E,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(B,{theme:o==="dark"?"dark":"light",language:"python",className:"cm border rounded overflow-hidden",extensions:be,value:m,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`):null},e[23]=g,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=g,e[19]=r.sections,e[20]=r.title,e[21]=o,e[22]=u}else u=e[22];let p;e[27]!==d||e[28]!==u?(p=(0,s.jsxs)("div",{className:"px-2 py-2 space-y-4 overflow-auto flex-1",children:[d,u]}),e[27]=d,e[28]=u,e[29]=p):p=e[29];let x;return e[30]!==p||e[31]!==f?(x=(0,s.jsxs)(s.Fragment,{children:[f,p]}),e[30]=p,e[31]=f,e[32]=x):x=e[32],x},_e=t=>{let e=(0,k.c)(7),{snippets:r,onSelect:i}=t,o;if(e[0]!==i||e[1]!==r){let a;e[3]===i?a=e[4]:(a=c=>(0,s.jsx)(oe,{className:"rounded-none",onSelect:()=>i(c),children:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,s.jsx)("span",{className:"mt-1 text-accent-foreground",children:c.title})})},c.title),e[3]=i,e[4]=a),o=r.map(a),e[0]=i,e[1]=r,e[2]=o}else o=e[2];let l;return e[5]===o?l=e[6]:(l=(0,s.jsx)(ne,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{ve as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r}from"./sparql-oFx_t7AO.js";export{r as sparql};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as I}from"./strings-md4mFbOQ.js";import{t as p}from"./createLucideIcon-D5guW7EU.js";import{a as J}from"./useLifecycle-DieWOfXE.js";import{t as R}from"./chart-no-axes-column-nqk474t8.js";import{r as Z,t as ee}from"./table-6NxtGaCm.js";import{t as te}from"./square-function-DN3RwIjj.js";var ae=p("align-center-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]),ne=p("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),re=p("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]),ie=p("baseline",[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),le=p("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]),P=p("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),oe=p("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),se=p("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]),ce=p("chart-scatter",[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]),ue=p("ruler-dimension-line",[["path",{d:"M10 15v-3",key:"1pjskw"}],["path",{d:"M14 15v-3",key:"1o1mqj"}],["path",{d:"M18 15v-3",key:"cws6he"}],["path",{d:"M2 8V4",key:"3jv1jz"}],["path",{d:"M22 6H2",key:"1iqbfk"}],["path",{d:"M22 8V4",key:"16f4ou"}],["path",{d:"M6 15v-3",key:"1ij1qe"}],["rect",{x:"2",y:"12",width:"20",height:"8",rx:"2",key:"1tqiko"}]]),de=p("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]);function v(e){return e&&e.replaceAll(".","\\.").replaceAll("[","\\[").replaceAll("]","\\]").replaceAll(":","\\:")}const fe="__count__",Y="default",me="yearmonthdate",ye=6,ge="",pe={line:oe,bar:se,pie:Z,scatter:ce,heatmap:ee,area:le},U="mean",he={none:te,count:J,sum:de,mean:ie,median:ae,min:ne,max:re,distinct:J,valid:J,stdev:R,stdevp:R,variance:P,variancep:P,bin:ue},be={none:"No aggregation",count:"Count of records",sum:"Sum of values",mean:"Mean of values",median:"Median of values",min:"Minimum value",max:"Maximum value",distinct:"Count of distinct records",valid:"Count non-null records",stdev:"Standard deviation",stdevp:"Standard deviation of population",variance:"Variance",variancep:"Variance of population",bin:"Group values into bins"},ke=[Y,"accent","category10","category20","category20b","category20c","dark2","paired","pastel1","pastel2","set1","set2","set3","tableau10","tableau20","blues","greens","greys","oranges","purples","reds","bluegreen","bluepurple","goldgreen","goldorange","goldred","greenblue","orangered","purplebluegreen","purplered","redpurple","yellowgreenblue","yelloworangered","blueorange","brownbluegreen","purplegreen","pinkyellowgreen","purpleorange","redblue","redgrey","redyellowblue","redyellowgreen","spectral","rainbow","sinebow"],ve={number:"Continuous numerical scale",string:"Discrete categorical scale (inputs treated as strings)",temporal:"Continuous temporal scale"},xe={year:["Year","2025"],quarter:["Quarter","Q1 2025"],month:["Month","Jan 2025"],week:["Week","Jan 01, 2025"],day:["Day","Jan 01, 2025"],hours:["Hour","Jan 01, 2025 12:00"],minutes:["Minute","Jan 01, 2025 12:34"],seconds:["Second","Jan 01, 2025 12:34:56"],milliseconds:["Millisecond","Jan 01, 2025 12:34:56.789"],date:["Date","Jan 01, 2025"],dayofyear:["Day of Year","Day 1 of 2025"],yearmonth:["Year Month","Jan 2025"],yearmonthdate:["Year Month Date","Jan 01, 2025"],monthdate:["Month Date","Jan 01"]},Me=["number","string","temporal"],O=["year","quarter","month","date","week","day","dayofyear","hours","minutes","seconds","milliseconds"],X=["yearmonth","yearmonthdate","monthdate"],L=[...O,...X];[...L];const we=["ascending","descending"],q="none",Ce="bin",Ae=[q,"bin","count","sum","mean","median","min","max","distinct","valid","stdev","stdevp","variance","variancep"],N=[q,"count","distinct","valid"],y={LINE:"line",BAR:"bar",PIE:"pie",SCATTER:"scatter",HEATMAP:"heatmap",AREA:"area"},Ee=Object.values(y),Te=["X","Y","Color",q];function B(e){switch(e){case"number":case"integer":return"quantitative";case"string":case"boolean":case"unknown":return"nominal";case"date":case"datetime":case"time":case"temporal":return"temporal";default:return I(e),"nominal"}}function _e(e){switch(e){case"number":case"integer":return"number";case"string":case"boolean":case"unknown":return"string";case"date":case"datetime":case"time":return"temporal";default:return I(e),"string"}}function Q(e){switch(e){case y.PIE:return"arc";case y.SCATTER:return"point";case y.HEATMAP:return"rect";default:return e}}function j(e,t,a,i){if(e===y.HEATMAP)return a!=null&&a.maxbins?{maxbins:a==null?void 0:a.maxbins}:void 0;if(t!=="number")return;if(!(a!=null&&a.binned))return i;let n={};return a.step!==void 0&&(n.step=a.step),a.maxbins!==void 0&&(n.maxbins=a.maxbins),Object.keys(n).length===0?!0:n}function G(e){var i,n;let t=(i=e.color)==null?void 0:i.range;if(t!=null&&t.length)return{range:t};let a=(n=e.color)==null?void 0:n.scheme;if(a&&a!=="default")return{scheme:a}}function De(e,t){var o,c,u,f,h,s,g,k,b;if(e===y.PIE)return;let a;if(m((c=(o=t.general)==null?void 0:o.colorByColumn)==null?void 0:c.field))a=(u=t.general)==null?void 0:u.colorByColumn;else if(m((f=t.color)==null?void 0:f.field))switch((h=t.color)==null?void 0:h.field){case"X":a=(s=t.general)==null?void 0:s.xColumn;break;case"Y":a=(g=t.general)==null?void 0:g.yColumn;break;case"Color":a=(k=t.general)==null?void 0:k.colorByColumn;break;default:return}else return;if(!a||!m(a.field)||a.field==="none")return;if(a.field==="__count__")return{aggregate:"count",type:"quantitative"};let i=(b=t.color)==null?void 0:b.bin,n=a.selectedDataType||"string",r=a==null?void 0:a.aggregate;return{field:v(a.field),type:B(n),scale:G(t),aggregate:W(r,n),bin:j(e,n,i)}}function Ve(e,t){var a,i,n,r,o;if(!((a=t.general)!=null&&a.stacking||!m((n=(i=t.general)==null?void 0:i.colorByColumn)==null?void 0:n.field)||e!==y.BAR))return{field:v((o=(r=t.general)==null?void 0:r.colorByColumn)==null?void 0:o.field)}}function W(e,t,a){if(t!=="temporal"&&!(e==="none"||e==="bin"))return e?t==="string"?N.includes(e)?e:void 0:e:a||void 0}function qe(e){switch(e){case"integer":return",.0f";case"number":return",.2f";default:return}}function $(e){var u,f,h,s,g,k,b,M,w,C,_,D,V,A,E,T;let{formValues:t,xEncoding:a,yEncoding:i,colorByEncoding:n}=e;if(!t.tooltips)return;function r(l,x,d){if("aggregate"in l&&l.aggregate==="count"&&!m(l.field))return{aggregate:"count"};if(l&&"field"in l&&m(l.field))return l.timeUnit&&!d&&(d=l.field),{field:l.field,aggregate:l.aggregate,timeUnit:l.timeUnit,format:qe(x),title:d,bin:l.bin}}if(t.tooltips.auto){let l=[],x=r(a,((f=(u=t.general)==null?void 0:u.xColumn)==null?void 0:f.type)||"string",(h=t.xAxis)==null?void 0:h.label);x&&l.push(x);let d=r(i,((g=(s=t.general)==null?void 0:s.yColumn)==null?void 0:g.type)||"string",(k=t.yAxis)==null?void 0:k.label);d&&l.push(d);let z=r(n||{},((M=(b=t.general)==null?void 0:b.colorByColumn)==null?void 0:M.type)||"string");return z&&l.push(z),l}let o=t.tooltips.fields??[],c=[];for(let l of o){if("field"in a&&m(a.field)&&a.field===l.field){let d=r(a,((C=(w=t.general)==null?void 0:w.xColumn)==null?void 0:C.type)||"string",(_=t.xAxis)==null?void 0:_.label);d&&c.push(d);continue}if("field"in i&&m(i.field)&&i.field===l.field){let d=r(i,((V=(D=t.general)==null?void 0:D.yColumn)==null?void 0:V.type)||"string",(A=t.yAxis)==null?void 0:A.label);d&&c.push(d);continue}if(n&&"field"in n&&m(n.field)&&n.field===l.field){let d=r(n,((T=(E=t.general)==null?void 0:E.colorByColumn)==null?void 0:T.type)||"string");d&&c.push(d);continue}let x={field:v(l.field)};c.push(x)}return c}function Be(e,t,a,i,n){var A,E,T,l;let{xColumn:r,yColumn:o,colorByColumn:c,horizontal:u,stacking:f,title:h,facet:s}=t.general??{};if(e===y.PIE)return He(t,a,i,n);if(!m(r==null?void 0:r.field))return"X-axis column is required";if(!m(o==null?void 0:o.field))return"Y-axis column is required";let g=S(r,(A=t.xAxis)==null?void 0:A.bin,H((E=t.xAxis)==null?void 0:E.label),c!=null&&c.field&&u?f:void 0,e),k=U;(o==null?void 0:o.selectedDataType)==="string"&&(k="count");let b=S(o,(T=t.yAxis)==null?void 0:T.bin,H((l=t.yAxis)==null?void 0:l.label),c!=null&&c.field&&!u?f:void 0,e,k),M=s!=null&&s.row.field?F(s.row,e):void 0,w=s!=null&&s.column.field?F(s.column,e):void 0,C=De(e,t),_=K(e,t,a,i,n,h),D={x:u?b:g,y:u?g:b,xOffset:Ve(e,t),color:C,tooltip:$({formValues:t,xEncoding:g,yEncoding:b,colorByEncoding:C}),...M&&{row:M},...w&&{column:w}},V=Se(s==null?void 0:s.column,s==null?void 0:s.row);return{..._,mark:{type:Q(e)},encoding:D,...V}}function je(e,t){return{...e,data:{values:t}}}function S(e,t,a,i,n,r){let o=e.selectedDataType||"string";return e.field==="__count__"?{aggregate:"count",type:"quantitative",bin:j(n,o,t),title:a==="__count__"?void 0:a,stack:i}:{field:v(e.field),type:B(e.selectedDataType||"unknown"),bin:j(n,o,t),title:a,stack:i,aggregate:W(e.aggregate,o,r),sort:e.sort,timeUnit:Je(e)}}function F(e,t){let a=j(t,e.selectedDataType||"string",{maxbins:e.maxbins,binned:e.binned},{maxbins:6});return{field:v(e.field),sort:e.sort,timeUnit:Pe(e),type:B(e.selectedDataType||"unknown"),bin:a}}function He(e,t,a,i){var f,h,s,g;let{yColumn:n,colorByColumn:r,title:o}=e.general??{};if(!m(r==null?void 0:r.field))return"Color by column is required";if(!m(n==null?void 0:n.field))return"Size by column is required";let c=S(n,(f=e.xAxis)==null?void 0:f.bin,H((h=e.xAxis)==null?void 0:h.label),void 0,y.PIE),u={field:v(r.field),type:B(r.selectedDataType||"unknown"),scale:G(e),title:H((s=e.yAxis)==null?void 0:s.label)};return{...K(y.PIE,e,t,a,i,o),mark:{type:Q(y.PIE),innerRadius:(g=e.style)==null?void 0:g.innerRadius},encoding:{theta:c,color:u,tooltip:$({formValues:e,xEncoding:c,yEncoding:c,colorByEncoding:u})}}}function K(e,t,a,i,n,r){var c,u,f;let o=((c=t.style)==null?void 0:c.gridLines)??!1;return e===y.SCATTER&&(o=!0),{$schema:"https://vega.github.io/schema/vega-lite/v6.json",background:a==="dark"?"dark":"white",title:r,data:{values:[]},height:((u=t.yAxis)==null?void 0:u.height)??n,width:((f=t.xAxis)==null?void 0:f.width)??i,config:{axis:{grid:o}}}}function m(e){return e!==void 0&&e.trim()!==""}function H(e){let t=e==null?void 0:e.trim();return t===""?void 0:t}function Je(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Pe(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Se(e,t){let a={};return(e==null?void 0:e.linkXAxis)===!1&&(a.x="independent"),(t==null?void 0:t.linkYAxis)===!1&&(a.y="independent"),Object.keys(a).length>0?{resolve:{axis:a}}:void 0}export{P as A,Y as C,ve as D,ge as E,xe as O,U as S,me as T,be as _,Ae as a,ke as b,Te as c,q as d,Me as f,L as g,N as h,_e as i,v as k,X as l,we as m,Be as n,Ce as o,O as p,m as r,Ee as s,je as t,y as u,he as v,ye as w,fe as x,pe as y};
|
|
1
|
+
import{i as I}from"./strings-md4mFbOQ.js";import{t as p}from"./createLucideIcon-D5guW7EU.js";import{a as J}from"./useLifecycle-DieWOfXE.js";import{t as R}from"./chart-no-axes-column-nqk474t8.js";import{r as Z,t as ee}from"./table-6NxtGaCm.js";import{t as te}from"./square-function-iLrgnnoW.js";var ae=p("align-center-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]),ne=p("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),re=p("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]),ie=p("baseline",[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),le=p("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]),P=p("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),oe=p("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),se=p("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]),ce=p("chart-scatter",[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]),ue=p("ruler-dimension-line",[["path",{d:"M10 15v-3",key:"1pjskw"}],["path",{d:"M14 15v-3",key:"1o1mqj"}],["path",{d:"M18 15v-3",key:"cws6he"}],["path",{d:"M2 8V4",key:"3jv1jz"}],["path",{d:"M22 6H2",key:"1iqbfk"}],["path",{d:"M22 8V4",key:"16f4ou"}],["path",{d:"M6 15v-3",key:"1ij1qe"}],["rect",{x:"2",y:"12",width:"20",height:"8",rx:"2",key:"1tqiko"}]]),de=p("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]);function v(e){return e&&e.replaceAll(".","\\.").replaceAll("[","\\[").replaceAll("]","\\]").replaceAll(":","\\:")}const fe="__count__",Y="default",me="yearmonthdate",ye=6,ge="",pe={line:oe,bar:se,pie:Z,scatter:ce,heatmap:ee,area:le},U="mean",he={none:te,count:J,sum:de,mean:ie,median:ae,min:ne,max:re,distinct:J,valid:J,stdev:R,stdevp:R,variance:P,variancep:P,bin:ue},be={none:"No aggregation",count:"Count of records",sum:"Sum of values",mean:"Mean of values",median:"Median of values",min:"Minimum value",max:"Maximum value",distinct:"Count of distinct records",valid:"Count non-null records",stdev:"Standard deviation",stdevp:"Standard deviation of population",variance:"Variance",variancep:"Variance of population",bin:"Group values into bins"},ke=[Y,"accent","category10","category20","category20b","category20c","dark2","paired","pastel1","pastel2","set1","set2","set3","tableau10","tableau20","blues","greens","greys","oranges","purples","reds","bluegreen","bluepurple","goldgreen","goldorange","goldred","greenblue","orangered","purplebluegreen","purplered","redpurple","yellowgreenblue","yelloworangered","blueorange","brownbluegreen","purplegreen","pinkyellowgreen","purpleorange","redblue","redgrey","redyellowblue","redyellowgreen","spectral","rainbow","sinebow"],ve={number:"Continuous numerical scale",string:"Discrete categorical scale (inputs treated as strings)",temporal:"Continuous temporal scale"},xe={year:["Year","2025"],quarter:["Quarter","Q1 2025"],month:["Month","Jan 2025"],week:["Week","Jan 01, 2025"],day:["Day","Jan 01, 2025"],hours:["Hour","Jan 01, 2025 12:00"],minutes:["Minute","Jan 01, 2025 12:34"],seconds:["Second","Jan 01, 2025 12:34:56"],milliseconds:["Millisecond","Jan 01, 2025 12:34:56.789"],date:["Date","Jan 01, 2025"],dayofyear:["Day of Year","Day 1 of 2025"],yearmonth:["Year Month","Jan 2025"],yearmonthdate:["Year Month Date","Jan 01, 2025"],monthdate:["Month Date","Jan 01"]},Me=["number","string","temporal"],O=["year","quarter","month","date","week","day","dayofyear","hours","minutes","seconds","milliseconds"],X=["yearmonth","yearmonthdate","monthdate"],L=[...O,...X];[...L];const we=["ascending","descending"],q="none",Ce="bin",Ae=[q,"bin","count","sum","mean","median","min","max","distinct","valid","stdev","stdevp","variance","variancep"],N=[q,"count","distinct","valid"],y={LINE:"line",BAR:"bar",PIE:"pie",SCATTER:"scatter",HEATMAP:"heatmap",AREA:"area"},Ee=Object.values(y),Te=["X","Y","Color",q];function B(e){switch(e){case"number":case"integer":return"quantitative";case"string":case"boolean":case"unknown":return"nominal";case"date":case"datetime":case"time":case"temporal":return"temporal";default:return I(e),"nominal"}}function _e(e){switch(e){case"number":case"integer":return"number";case"string":case"boolean":case"unknown":return"string";case"date":case"datetime":case"time":return"temporal";default:return I(e),"string"}}function Q(e){switch(e){case y.PIE:return"arc";case y.SCATTER:return"point";case y.HEATMAP:return"rect";default:return e}}function j(e,t,a,i){if(e===y.HEATMAP)return a!=null&&a.maxbins?{maxbins:a==null?void 0:a.maxbins}:void 0;if(t!=="number")return;if(!(a!=null&&a.binned))return i;let n={};return a.step!==void 0&&(n.step=a.step),a.maxbins!==void 0&&(n.maxbins=a.maxbins),Object.keys(n).length===0?!0:n}function G(e){var i,n;let t=(i=e.color)==null?void 0:i.range;if(t!=null&&t.length)return{range:t};let a=(n=e.color)==null?void 0:n.scheme;if(a&&a!=="default")return{scheme:a}}function De(e,t){var o,c,u,f,h,s,g,k,b;if(e===y.PIE)return;let a;if(m((c=(o=t.general)==null?void 0:o.colorByColumn)==null?void 0:c.field))a=(u=t.general)==null?void 0:u.colorByColumn;else if(m((f=t.color)==null?void 0:f.field))switch((h=t.color)==null?void 0:h.field){case"X":a=(s=t.general)==null?void 0:s.xColumn;break;case"Y":a=(g=t.general)==null?void 0:g.yColumn;break;case"Color":a=(k=t.general)==null?void 0:k.colorByColumn;break;default:return}else return;if(!a||!m(a.field)||a.field==="none")return;if(a.field==="__count__")return{aggregate:"count",type:"quantitative"};let i=(b=t.color)==null?void 0:b.bin,n=a.selectedDataType||"string",r=a==null?void 0:a.aggregate;return{field:v(a.field),type:B(n),scale:G(t),aggregate:W(r,n),bin:j(e,n,i)}}function Ve(e,t){var a,i,n,r,o;if(!((a=t.general)!=null&&a.stacking||!m((n=(i=t.general)==null?void 0:i.colorByColumn)==null?void 0:n.field)||e!==y.BAR))return{field:v((o=(r=t.general)==null?void 0:r.colorByColumn)==null?void 0:o.field)}}function W(e,t,a){if(t!=="temporal"&&!(e==="none"||e==="bin"))return e?t==="string"?N.includes(e)?e:void 0:e:a||void 0}function qe(e){switch(e){case"integer":return",.0f";case"number":return",.2f";default:return}}function $(e){var u,f,h,s,g,k,b,M,w,C,_,D,V,A,E,T;let{formValues:t,xEncoding:a,yEncoding:i,colorByEncoding:n}=e;if(!t.tooltips)return;function r(l,x,d){if("aggregate"in l&&l.aggregate==="count"&&!m(l.field))return{aggregate:"count"};if(l&&"field"in l&&m(l.field))return l.timeUnit&&!d&&(d=l.field),{field:l.field,aggregate:l.aggregate,timeUnit:l.timeUnit,format:qe(x),title:d,bin:l.bin}}if(t.tooltips.auto){let l=[],x=r(a,((f=(u=t.general)==null?void 0:u.xColumn)==null?void 0:f.type)||"string",(h=t.xAxis)==null?void 0:h.label);x&&l.push(x);let d=r(i,((g=(s=t.general)==null?void 0:s.yColumn)==null?void 0:g.type)||"string",(k=t.yAxis)==null?void 0:k.label);d&&l.push(d);let z=r(n||{},((M=(b=t.general)==null?void 0:b.colorByColumn)==null?void 0:M.type)||"string");return z&&l.push(z),l}let o=t.tooltips.fields??[],c=[];for(let l of o){if("field"in a&&m(a.field)&&a.field===l.field){let d=r(a,((C=(w=t.general)==null?void 0:w.xColumn)==null?void 0:C.type)||"string",(_=t.xAxis)==null?void 0:_.label);d&&c.push(d);continue}if("field"in i&&m(i.field)&&i.field===l.field){let d=r(i,((V=(D=t.general)==null?void 0:D.yColumn)==null?void 0:V.type)||"string",(A=t.yAxis)==null?void 0:A.label);d&&c.push(d);continue}if(n&&"field"in n&&m(n.field)&&n.field===l.field){let d=r(n,((T=(E=t.general)==null?void 0:E.colorByColumn)==null?void 0:T.type)||"string");d&&c.push(d);continue}let x={field:v(l.field)};c.push(x)}return c}function Be(e,t,a,i,n){var A,E,T,l;let{xColumn:r,yColumn:o,colorByColumn:c,horizontal:u,stacking:f,title:h,facet:s}=t.general??{};if(e===y.PIE)return He(t,a,i,n);if(!m(r==null?void 0:r.field))return"X-axis column is required";if(!m(o==null?void 0:o.field))return"Y-axis column is required";let g=S(r,(A=t.xAxis)==null?void 0:A.bin,H((E=t.xAxis)==null?void 0:E.label),c!=null&&c.field&&u?f:void 0,e),k=U;(o==null?void 0:o.selectedDataType)==="string"&&(k="count");let b=S(o,(T=t.yAxis)==null?void 0:T.bin,H((l=t.yAxis)==null?void 0:l.label),c!=null&&c.field&&!u?f:void 0,e,k),M=s!=null&&s.row.field?F(s.row,e):void 0,w=s!=null&&s.column.field?F(s.column,e):void 0,C=De(e,t),_=K(e,t,a,i,n,h),D={x:u?b:g,y:u?g:b,xOffset:Ve(e,t),color:C,tooltip:$({formValues:t,xEncoding:g,yEncoding:b,colorByEncoding:C}),...M&&{row:M},...w&&{column:w}},V=Se(s==null?void 0:s.column,s==null?void 0:s.row);return{..._,mark:{type:Q(e)},encoding:D,...V}}function je(e,t){return{...e,data:{values:t}}}function S(e,t,a,i,n,r){let o=e.selectedDataType||"string";return e.field==="__count__"?{aggregate:"count",type:"quantitative",bin:j(n,o,t),title:a==="__count__"?void 0:a,stack:i}:{field:v(e.field),type:B(e.selectedDataType||"unknown"),bin:j(n,o,t),title:a,stack:i,aggregate:W(e.aggregate,o,r),sort:e.sort,timeUnit:Je(e)}}function F(e,t){let a=j(t,e.selectedDataType||"string",{maxbins:e.maxbins,binned:e.binned},{maxbins:6});return{field:v(e.field),sort:e.sort,timeUnit:Pe(e),type:B(e.selectedDataType||"unknown"),bin:a}}function He(e,t,a,i){var f,h,s,g;let{yColumn:n,colorByColumn:r,title:o}=e.general??{};if(!m(r==null?void 0:r.field))return"Color by column is required";if(!m(n==null?void 0:n.field))return"Size by column is required";let c=S(n,(f=e.xAxis)==null?void 0:f.bin,H((h=e.xAxis)==null?void 0:h.label),void 0,y.PIE),u={field:v(r.field),type:B(r.selectedDataType||"unknown"),scale:G(e),title:H((s=e.yAxis)==null?void 0:s.label)};return{...K(y.PIE,e,t,a,i,o),mark:{type:Q(y.PIE),innerRadius:(g=e.style)==null?void 0:g.innerRadius},encoding:{theta:c,color:u,tooltip:$({formValues:e,xEncoding:c,yEncoding:c,colorByEncoding:u})}}}function K(e,t,a,i,n,r){var c,u,f;let o=((c=t.style)==null?void 0:c.gridLines)??!1;return e===y.SCATTER&&(o=!0),{$schema:"https://vega.github.io/schema/vega-lite/v6.json",background:a==="dark"?"dark":"white",title:r,data:{values:[]},height:((u=t.yAxis)==null?void 0:u.height)??n,width:((f=t.xAxis)==null?void 0:f.width)??i,config:{axis:{grid:o}}}}function m(e){return e!==void 0&&e.trim()!==""}function H(e){let t=e==null?void 0:e.trim();return t===""?void 0:t}function Je(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Pe(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Se(e,t){let a={};return(e==null?void 0:e.linkXAxis)===!1&&(a.x="independent"),(t==null?void 0:t.linkYAxis)===!1&&(a.y="independent"),Object.keys(a).length>0?{resolve:{axis:a}}:void 0}export{P as A,Y as C,ve as D,ge as E,xe as O,U as S,me as T,be as _,Ae as a,ke as b,Te as c,q as d,Me as f,L as g,N as h,_e as i,v as k,X as l,we as m,Be as n,Ce as o,O as p,m as r,Ee as s,je as t,y as u,he as v,ye as w,fe as x,pe as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as ht,b as lt,c as It,f as Ot,l as Ut,m as ft,n as Rt,p as jt,r as Gt,s as Ht,t as Kt}from"./timer-DwQQMK5T.js";var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function W(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t}function Wt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(t):n.createElementNS(e,t)}}function $t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function mt(t){var n=W(t);return(n.local?$t:Wt)(n)}function Ft(){}function rt(t){return t==null?Ft:function(){return this.querySelector(t)}}function Jt(t){typeof t!="function"&&(t=rt(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=Array(u),c,l,f=0;f<u;++f)(c=o[f])&&(l=t.call(c,c.__data__,f,o))&&("__data__"in c&&(l.__data__=c.__data__),a[f]=l);return new S(r,this._parents)}function Qt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Zt(){return[]}function vt(t){return t==null?Zt:function(){return this.querySelectorAll(t)}}function tn(t){return function(){return Qt(t.apply(this,arguments))}}function nn(t){t=typeof t=="function"?tn(t):vt(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u=n[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&(r.push(t.call(c,c.__data__,l,u)),i.push(c));return new S(r,i)}function _t(t){return function(){return this.matches(t)}}function gt(t){return function(n){return n.matches(t)}}var en=Array.prototype.find;function rn(t){return function(){return en.call(this.children,t)}}function on(){return this.firstElementChild}function un(t){return this.select(t==null?on:rn(typeof t=="function"?t:gt(t)))}var sn=Array.prototype.filter;function an(){return Array.from(this.children)}function cn(t){return function(){return sn.call(this.children,t)}}function hn(t){return this.selectAll(t==null?an:cn(typeof t=="function"?t:gt(t)))}function ln(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new S(r,this._parents)}function dt(t){return Array(t.length)}function fn(){return new S(this._enter||this._groups.map(dt),this._parents)}function $(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$.prototype={constructor:$,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function pn(t){return function(){return t}}function mn(t,n,e,r,i,o){for(var u=0,a,c=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new $(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function vn(t,n,e,r,i,o,u){var a,c,l=new Map,f=n.length,x=o.length,d=Array(f),_;for(a=0;a<f;++a)(c=n[a])&&(d[a]=_=u.call(c,c.__data__,a,n)+"",l.has(_)?i[a]=c:l.set(_,c));for(a=0;a<x;++a)_=u.call(t,o[a],a,o)+"",(c=l.get(_))?(r[a]=c,c.__data__=o[a],l.delete(_)):e[a]=new $(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l.get(d[a])===c&&(i[a]=c)}function _n(t){return t.__data__}function gn(t,n){if(!arguments.length)return Array.from(this,_n);var e=n?vn:mn,r=this._parents,i=this._groups;typeof t!="function"&&(t=pn(t));for(var o=i.length,u=Array(o),a=Array(o),c=Array(o),l=0;l<o;++l){var f=r[l],x=i[l],d=x.length,_=dn(t.call(f,f&&f.__data__,l,r)),E=_.length,k=a[l]=Array(E),I=u[l]=Array(E);e(f,x,k,I,c[l]=Array(d),_,n);for(var v=0,B=0,O,j;v<E;++v)if(O=k[v]){for(v>=B&&(B=v+1);!(j=I[B])&&++B<E;);O._next=j||null}}return u=new S(u,r),u._enter=a,u._exit=c,u}function dn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function yn(){return new S(this._exit||this._groups.map(dt),this._parents)}function wn(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function xn(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=Array(i),c=0;c<u;++c)for(var l=e[c],f=r[c],x=l.length,d=a[c]=Array(x),_,E=0;E<x;++E)(_=l[E]||f[E])&&(d[E]=_);for(;c<i;++c)a[c]=e[c];return new S(a,this._parents)}function An(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],u;--i>=0;)(u=r[i])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function bn(t){t||(t=zn);function n(x,d){return x&&d?t(x.__data__,d.__data__):!x-!d}for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o){for(var u=e[o],a=u.length,c=i[o]=Array(a),l,f=0;f<a;++f)(l=u[f])&&(c[f]=l);c.sort(n)}return new S(i,this._parents).order()}function zn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Sn(){return Array.from(this)}function kn(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null}function Tn(){let t=0;for(let n of this)++t;return t}function Cn(){return!this.node()}function Mn(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,u=i.length,a;o<u;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function Nn(t){return function(){this.removeAttribute(t)}}function Pn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bn(t,n){return function(){this.setAttribute(t,n)}}function Vn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Dn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Xn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Yn(t,n){var e=W(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Pn:Nn:typeof n=="function"?e.local?Xn:Dn:e.local?Vn:Bn)(e,n))}function yt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ln(t){return function(){this.style.removeProperty(t)}}function qn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function In(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function On(t,n,e){return arguments.length>1?this.each((n==null?Ln:typeof n=="function"?In:qn)(t,n,e??"")):G(this.node(),t)}function G(t,n){return t.style.getPropertyValue(n)||yt(t).getComputedStyle(t,null).getPropertyValue(n)}function Un(t){return function(){delete this[t]}}function Rn(t,n){return function(){this[t]=n}}function jn(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Gn(t,n){return arguments.length>1?this.each((n==null?Un:typeof n=="function"?jn:Rn)(t,n)):this.node()[t]}function wt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=wt(t.getAttribute("class")||"")}xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function At(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function bt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Hn(t){return function(){At(this,t)}}function Kn(t){return function(){bt(this,t)}}function Wn(t,n){return function(){(n.apply(this,arguments)?At:bt)(this,t)}}function $n(t,n){var e=wt(t+"");if(arguments.length<2){for(var r=it(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?Wn:n?Hn:Kn)(e,n))}function Fn(){this.textContent=""}function Jn(t){return function(){this.textContent=t}}function Qn(t){return function(){this.textContent=t.apply(this,arguments)??""}}function Zn(t){return arguments.length?this.each(t==null?Fn:(typeof t=="function"?Qn:Jn)(t)):this.node().textContent}function te(){this.innerHTML=""}function ne(t){return function(){this.innerHTML=t}}function ee(t){return function(){this.innerHTML=t.apply(this,arguments)??""}}function re(t){return arguments.length?this.each(t==null?te:(typeof t=="function"?ee:ne)(t)):this.node().innerHTML}function ie(){this.nextSibling&&this.parentNode.appendChild(this)}function oe(){return this.each(ie)}function ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function se(){return this.each(ue)}function ae(t){var n=typeof t=="function"?t:mt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function ce(){return null}function he(t,n){var e=typeof t=="function"?t:mt(t),r=n==null?ce:typeof n=="function"?n:rt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function le(){var t=this.parentNode;t&&t.removeChild(this)}function fe(){return this.each(le)}function pe(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function me(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return this.select(t?me:pe)}function _e(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ge(t){return function(n){t.call(this,n,this.__data__)}}function de(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function ye(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function we(t,n,e){return function(){var r=this.__on,i,o=ge(n);if(r){for(var u=0,a=r.length;u<a;++u)if((i=r[u]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function xe(t,n,e){var r=de(t+""),i,o=r.length,u;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,f;c<l;++c)for(i=0,f=a[c];i<o;++i)if((u=r[i]).type===f.type&&u.name===f.name)return f.value}return}for(a=n?we:ye,i=0;i<o;++i)this.each(a(r[i],n,e));return this}function zt(t,n,e){var r=yt(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ae(t,n){return function(){return zt(this,t,n)}}function be(t,n){return function(){return zt(this,t,n.apply(this,arguments))}}function ze(t,n){return this.each((typeof n=="function"?be:Ae)(t,n))}function*Ee(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,u;i<o;++i)(u=r[i])&&(yield u)}var Et=[null];function S(t,n){this._groups=t,this._parents=n}function St(){return new S([[document.documentElement]],Et)}function Se(){return this}S.prototype=St.prototype={constructor:S,select:Jt,selectAll:nn,selectChild:un,selectChildren:hn,filter:ln,data:gn,enter:fn,exit:yn,join:wn,merge:xn,selection:Se,order:An,sort:bn,call:En,nodes:Sn,node:kn,size:Tn,empty:Cn,each:Mn,attr:Yn,style:On,property:Gn,classed:$n,text:Zn,html:re,raise:oe,lower:se,append:ae,insert:he,remove:fe,clone:ve,datum:_e,on:xe,dispatch:ze,[Symbol.iterator]:Ee};var H=St;function U(t){return typeof t=="string"?new S([[document.querySelector(t)]],[document.documentElement]):new S([[t]],Et)}function ke(t){let n;for(;n=t.sourceEvent;)t=n;return t}function R(t,n){if(t=ke(t),n===void 0&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}const Te={passive:!1},F={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function J(t){t.preventDefault(),t.stopImmediatePropagation()}function kt(t){var n=t.document.documentElement,e=U(t).on("dragstart.drag",J,F);"onselectstart"in n?e.on("selectstart.drag",J,F):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Tt(t,n){var e=t.document.documentElement,r=U(t).on("dragstart.drag",null);n&&(r.on("click.drag",J,F),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function Ct(t,n,e){var r=new Kt;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var Me=lt("start","end","cancel","interrupt"),Ne=[];function Q(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Pe(t,e,{name:n,index:r,group:i,on:Me,tween:Ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ot(t,n){var e=M(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function P(t,n){var e=M(t,n);if(e.state>3)throw Error("too late; already running");return e}function M(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function Pe(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=Gt(o,0,e.time);function o(l){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=l&&u(l-e.delay)}function u(l){var f,x,d,_;if(e.state!==1)return c();for(f in r)if(_=r[f],_.name===e.name){if(_.state===3)return Ct(u);_.state===4?(_.state=6,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete r[f]):+f<n&&(_.state=6,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete r[f])}if(Ct(function(){e.state===3&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(l))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),e.state===2){for(e.state=3,i=Array(d=e.tween.length),f=0,x=-1;f<d;++f)(_=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(i[++x]=_);i.length=x+1}}function a(l){for(var f=l<e.duration?e.ease.call(null,l/e.duration):(e.timer.restart(c),e.state=5,1),x=-1,d=i.length;++x<d;)i[x].call(t,f);e.state===5&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){for(var l in e.state=6,e.timer.stop(),delete r[n],r)return;delete t.__transition}}function Z(t,n){var e=t.__transition,r,i,o=!0,u;if(e){for(u in n=n==null?null:n+"",e){if((r=e[u]).name!==n){o=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[u]}o&&delete t.__transition}}function Be(t){return this.each(function(){Z(this,t)})}function Ve(t,n){var e,r;return function(){var i=P(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function De(t,n,e){var r,i;if(typeof e!="function")throw Error();return function(){var o=P(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function Xe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=M(this.node(),e).tween,i=0,o=r.length,u;i<o;++i)if((u=r[i]).name===t)return u.value;return null}return this.each((n==null?Ve:De)(e,t,n))}function ut(t,n,e){var r=t._id;return t.each(function(){var i=P(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return M(i,r).value[n]}}function Mt(t,n){var e;return(typeof n=="number"?jt:n instanceof ht?ft:(e=ht(n))?(n=e,ft):Ot)(t,n)}function Ye(t){return function(){this.removeAttribute(t)}}function Le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qe(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttribute(t);return u===i?null:u===r?o:o=n(r=u,e)}}function Ie(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===r?o:o=n(r=u,e)}}function Oe(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttribute(t):(u=this.getAttribute(t),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Ue(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Re(t,n){var e=W(t),r=e==="transform"?Ut:Mt;return this.attrTween(t,typeof n=="function"?(e.local?Ue:Oe)(e,r,ut(this,"attr."+t,n)):n==null?(e.local?Le:Ye)(e):(e.local?Ie:qe)(e,r,n))}function je(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ge(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function He(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Ge(t,o)),e}return i._value=n,i}function Ke(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&je(t,o)),e}return i._value=n,i}function We(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw Error();var r=W(t);return this.tween(e,(r.local?He:Ke)(r,n))}function $e(t,n){return function(){ot(this,t).delay=+n.apply(this,arguments)}}function Fe(t,n){return n=+n,function(){ot(this,t).delay=n}}function Je(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?$e:Fe)(n,t)):M(this.node(),n).delay}function Qe(t,n){return function(){P(this,t).duration=+n.apply(this,arguments)}}function Ze(t,n){return n=+n,function(){P(this,t).duration=n}}function tr(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Qe:Ze)(n,t)):M(this.node(),n).duration}function nr(t,n){if(typeof n!="function")throw Error();return function(){P(this,t).ease=n}}function er(t){var n=this._id;return arguments.length?this.each(nr(n,t)):M(this.node(),n).ease}function rr(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw Error();P(this,t).ease=e}}function ir(t){if(typeof t!="function")throw Error();return this.each(rr(this._id,t))}function or(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new Y(r,this._parents,this._name,this._id)}function ur(t){if(t._id!==this._id)throw Error();for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var c=n[a],l=e[a],f=c.length,x=u[a]=Array(f),d,_=0;_<f;++_)(d=c[_]||l[_])&&(x[_]=d);for(;a<r;++a)u[a]=n[a];return new Y(u,this._parents,this._name,this._id)}function sr(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function ar(t,n,e){var r,i,o=sr(n)?ot:P;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function cr(t,n){var e=this._id;return arguments.length<2?M(this.node(),e).on.on(t):this.each(ar(e,t,n))}function hr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function lr(){return this.on("end.remove",hr(this._id))}function fr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=rt(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u<i;++u)for(var a=r[u],c=a.length,l=o[u]=Array(c),f,x,d=0;d<c;++d)(f=a[d])&&(x=t.call(f,f.__data__,d,a))&&("__data__"in f&&(x.__data__=f.__data__),l[d]=x,Q(l[d],n,e,d,l,M(f,e)));return new Y(o,this._parents,n,e)}function pr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=vt(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c=r[a],l=c.length,f,x=0;x<l;++x)if(f=c[x]){for(var d=t.call(f,f.__data__,x,c),_,E=M(f,e),k=0,I=d.length;k<I;++k)(_=d[k])&&Q(_,n,e,k,d,E);o.push(d),u.push(f)}return new Y(o,u,n,e)}var mr=H.prototype.constructor;function vr(){return new mr(this._groups,this._parents)}function _r(t,n){var e,r,i;return function(){var o=G(this,t),u=(this.style.removeProperty(t),G(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Nt(t){return function(){this.style.removeProperty(t)}}function gr(t,n,e){var r,i=e+"",o;return function(){var u=G(this,t);return u===i?null:u===r?o:o=n(r=u,e)}}function dr(t,n,e){var r,i,o;return function(){var u=G(this,t),a=e(this),c=a+"";return a??(c=a=(this.style.removeProperty(t),G(this,t))),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}function yr(t,n){var e,r,i,o="style."+n,u="end."+o,a;return function(){var c=P(this,t),l=c.on,f=c.value[o]==null?a||(a=Nt(n)):void 0;(l!==e||i!==f)&&(r=(e=l).copy()).on(u,i=f),c.on=r}}function wr(t,n,e){var r=(t+="")=="transform"?It:Mt;return n==null?this.styleTween(t,_r(t,r)).on("end.style."+t,Nt(t)):typeof n=="function"?this.styleTween(t,dr(t,r,ut(this,"style."+t,n))).each(yr(this._id,t)):this.styleTween(t,gr(t,r,n),e).on("end.style."+t,null)}function xr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ar(t,n,e){var r,i;function o(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&xr(t,u,e)),r}return o._value=n,o}function br(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw Error();return this.tween(r,Ar(t,n,e??""))}function zr(t){return function(){this.textContent=t}}function Er(t){return function(){this.textContent=t(this)??""}}function Sr(t){return this.tween("text",typeof t=="function"?Er(ut(this,"text",t)):zr(t==null?"":t+""))}function kr(t){return function(n){this.textContent=t.call(this,n)}}function Tr(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&kr(i)),n}return r._value=t,r}function Cr(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw Error();return this.tween(n,Tr(t))}function Mr(){for(var t=this._name,n=this._id,e=Pt(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)if(c=u[l]){var f=M(c,n);Q(c,t,e,l,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Y(r,this._parents,t,e)}function Nr(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},c={value:function(){--i===0&&o()}};e.each(function(){var l=P(this,r),f=l.on;f!==t&&(n=(t=f).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),l.on=n}),i===0&&o()})}var Pr=0;function Y(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Br(t){return H().transition(t)}function Pt(){return++Pr}var L=H.prototype;Y.prototype=Br.prototype={constructor:Y,select:fr,selectAll:pr,selectChild:L.selectChild,selectChildren:L.selectChildren,filter:or,merge:ur,selection:vr,transition:Mr,call:L.call,nodes:L.nodes,node:L.node,size:L.size,empty:L.empty,each:L.each,on:cr,attr:Re,attrTween:We,style:wr,styleTween:br,text:Sr,textTween:Cr,remove:lr,tween:Xe,delay:Je,duration:tr,ease:er,easeVarying:ir,end:Nr,[Symbol.iterator]:L[Symbol.iterator]};function Vr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Dr={time:null,delay:0,duration:250,ease:Vr};function Xr(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw Error(`transition ${n} not found`);return e}function Yr(t){var n,e;t instanceof Y?(n=t._id,t=t._name):(n=Pt(),(e=Dr).time=Rt(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&Q(c,t,n,l,u,e||Xr(c,n));return new Y(r,this._parents,t,n)}H.prototype.interrupt=Be,H.prototype.transition=Yr;var tt=t=>()=>t;function Lr(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function q(t,n,e){this.k=t,this.x=n,this.y=e}q.prototype={constructor:q,scale:function(t){return t===1?this:new q(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new q(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nt=new q(1,0,0);qr.prototype=q.prototype;function qr(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nt;return t.__zoom}function st(t){t.stopImmediatePropagation()}function K(t){t.preventDefault(),t.stopImmediatePropagation()}function Ir(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Or(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Bt(){return this.__zoom||nt}function Ur(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Rr(){return navigator.maxTouchPoints||"ontouchstart"in this}function jr(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Gr(){var t=Ir,n=Or,e=jr,r=Ur,i=Rr,o=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],a=250,c=Ht,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(s){s.property("__zoom",Bt).on("wheel.zoom",Vt,{passive:!1}).on("mousedown.zoom",Dt).on("dblclick.zoom",Xt).filter(i).on("touchstart.zoom",Yt).on("touchmove.zoom",Lt).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(s,p,h,m){var g=s.selection?s.selection():s;g.property("__zoom",Bt),s===g?g.interrupt().each(function(){V(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):at(s,p,h,m)},v.scaleBy=function(s,p,h,m){v.scaleTo(s,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(s,p,h,m){v.transform(s,function(){var g=n.apply(this,arguments),w=this.__zoom,y=h==null?j(g):typeof h=="function"?h.apply(this,arguments):h,A=w.invert(y),b=typeof p=="function"?p.apply(this,arguments):p;return e(O(B(w,b),y,A),g,u)},h,m)},v.translateBy=function(s,p,h,m){v.transform(s,function(){return e(this.__zoom.translate(typeof p=="function"?p.apply(this,arguments):p,typeof h=="function"?h.apply(this,arguments):h),n.apply(this,arguments),u)},null,m)},v.translateTo=function(s,p,h,m,g){v.transform(s,function(){var w=n.apply(this,arguments),y=this.__zoom,A=m==null?j(w):typeof m=="function"?m.apply(this,arguments):m;return e(nt.translate(A[0],A[1]).scale(y.k).translate(typeof p=="function"?-p.apply(this,arguments):-p,typeof h=="function"?-h.apply(this,arguments):-h),w,u)},m,g)};function B(s,p){return p=Math.max(o[0],Math.min(o[1],p)),p===s.k?s:new q(p,s.x,s.y)}function O(s,p,h){var m=p[0]-h[0]*s.k,g=p[1]-h[1]*s.k;return m===s.x&&g===s.y?s:new q(s.k,m,g)}function j(s){return[(+s[0][0]+ +s[1][0])/2,(+s[0][1]+ +s[1][1])/2]}function at(s,p,h,m){s.on("start.zoom",function(){V(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=V(g,w).event(m),A=n.apply(g,w),b=h==null?j(A):typeof h=="function"?h.apply(g,w):h,N=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),z=g.__zoom,T=typeof p=="function"?p.apply(g,w):p,D=c(z.invert(b).concat(N/z.k),T.invert(b).concat(N/T.k));return function(C){if(C===1)C=T;else{var X=D(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function V(s,p,h){return!h&&s.__zooming||new ct(s,p)}function ct(s,p){this.that=s,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(s,p),this.taps=0}ct.prototype={event:function(s){return s&&(this.sourceEvent=s),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(s,p){return this.mouse&&s!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&s!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&s!=="touch"&&(this.touch1[1]=p.invert(this.touch1[0])),this.that.__zoom=p,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(s){var p=U(this.that).datum();l.call(s,this.that,new Lr(s,{sourceEvent:this.sourceEvent,target:v,type:s,transform:this.that.__zoom,dispatch:l}),p)}};function Vt(s,...p){if(!t.apply(this,arguments))return;var h=V(this,p).event(s),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(s);if(h.wheel)(h.mouse[0][0]!==w[0]||h.mouse[0][1]!==w[1])&&(h.mouse[1]=m.invert(h.mouse[0]=w)),clearTimeout(h.wheel);else{if(m.k===g)return;h.mouse=[w,m.invert(w)],Z(this),h.start()}K(s),h.wheel=setTimeout(y,E),h.zoom("mouse",e(O(B(m,g),h.mouse[0],h.mouse[1]),h.extent,u));function y(){h.wheel=null,h.end()}}function Dt(s,...p){if(d||!t.apply(this,arguments))return;var h=s.currentTarget,m=V(this,p,!0).event(s),g=U(s.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(s,h),y=s.clientX,A=s.clientY;kt(s.view),st(s),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,D=z.clientY-A;m.moved=T*T+D*D>k}m.event(z).zoom("mouse",e(O(m.that.__zoom,m.mouse[0]=R(z,h),m.mouse[1]),m.extent,u))}function N(z){g.on("mousemove.zoom mouseup.zoom",null),Tt(z.view,m.moved),K(z),m.event(z).end()}}function Xt(s,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(s.changedTouches?s.changedTouches[0]:s,this),g=h.invert(m),w=h.k*(s.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(s),a>0?U(this).transition().duration(a).call(at,y,m,s):U(this).call(v.transform,y,m,s)}}function Yt(s,...p){if(t.apply(this,arguments)){var h=s.touches,m=h.length,g=V(this,p,s.changedTouches.length===m).event(s),w,y,A,b;for(st(s),y=0;y<m;++y)A=h[y],b=R(A,this),b=[b,this.__zoom.invert(b),A.identifier],g.touch0?!g.touch1&&g.touch0[2]!==b[2]&&(g.touch1=b,g.taps=0):(g.touch0=b,w=!0,g.taps=1+!!f);f&&(f=clearTimeout(f)),w&&(g.taps<2&&(x=b[0],f=setTimeout(function(){f=null},_)),Z(this),g.start())}}function Lt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y,A,b;for(K(s),w=0;w<g;++w)y=m[w],A=R(y,this),h.touch0&&h.touch0[2]===y.identifier?h.touch0[0]=A:h.touch1&&h.touch1[2]===y.identifier&&(h.touch1[0]=A);if(y=h.that.__zoom,h.touch1){var N=h.touch0[0],z=h.touch0[1],T=h.touch1[0],D=h.touch1[1],C=(C=T[0]-N[0])*C+(C=T[1]-N[1])*C,X=(X=D[0]-z[0])*X+(X=D[1]-z[1])*X;y=B(y,Math.sqrt(C/X)),A=[(N[0]+T[0])/2,(N[1]+T[1])/2],b=[(z[0]+D[0])/2,(z[1]+D[1])/2]}else if(h.touch0)A=h.touch0[0],b=h.touch0[1];else return;h.zoom("touch",e(O(y,A,b),h.extent,u))}}function qt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y;for(st(s),d&&clearTimeout(d),d=setTimeout(function(){d=null},_),w=0;w<g;++w)y=m[w],h.touch0&&h.touch0[2]===y.identifier?delete h.touch0:h.touch1&&h.touch1[2]===y.identifier&&delete h.touch1;if(h.touch1&&!h.touch0&&(h.touch0=h.touch1,delete h.touch1),h.touch0)h.touch0[1]=this.__zoom.invert(h.touch0[0]);else if(h.end(),h.taps===2&&(y=R(y,this),Math.hypot(x[0]-y[0],x[1]-y[1])<I)){var A=U(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return v.wheelDelta=function(s){return arguments.length?(r=typeof s=="function"?s:tt(+s),v):r},v.filter=function(s){return arguments.length?(t=typeof s=="function"?s:tt(!!s),v):t},v.touchable=function(s){return arguments.length?(i=typeof s=="function"?s:tt(!!s),v):i},v.extent=function(s){return arguments.length?(n=typeof s=="function"?s:tt([[+s[0][0],+s[0][1]],[+s[1][0],+s[1][1]]]),v):n},v.scaleExtent=function(s){return arguments.length?(o[0]=+s[0],o[1]=+s[1],v):[o[0],o[1]]},v.translateExtent=function(s){return arguments.length?(u[0][0]=+s[0][0],u[1][0]=+s[1][0],u[0][1]=+s[0][1],u[1][1]=+s[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(s){return arguments.length?(e=s,v):e},v.duration=function(s){return arguments.length?(a=+s,v):a},v.interpolate=function(s){return arguments.length?(c=s,v):c},v.on=function(){var s=l.on.apply(l,arguments);return s===l?v:s},v.clickDistance=function(s){return arguments.length?(k=(s=+s)*s,v):Math.sqrt(k)},v.tapDistance=function(s){return arguments.length?(I=+s,v):I},v}export{J as a,Ce as c,Tt as i,R as l,nt as n,Te as o,kt as r,F as s,Gr as t,U as u};
|
|
1
|
+
import{_ as ht,b as lt,c as It,f as Ot,l as Ut,m as ft,n as Rt,p as jt,r as Gt,s as Ht,t as Kt}from"./timer-CEUQS2Fi.js";var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function W(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t}function Wt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(t):n.createElementNS(e,t)}}function $t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function mt(t){var n=W(t);return(n.local?$t:Wt)(n)}function Ft(){}function rt(t){return t==null?Ft:function(){return this.querySelector(t)}}function Jt(t){typeof t!="function"&&(t=rt(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=Array(u),c,l,f=0;f<u;++f)(c=o[f])&&(l=t.call(c,c.__data__,f,o))&&("__data__"in c&&(l.__data__=c.__data__),a[f]=l);return new S(r,this._parents)}function Qt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Zt(){return[]}function vt(t){return t==null?Zt:function(){return this.querySelectorAll(t)}}function tn(t){return function(){return Qt(t.apply(this,arguments))}}function nn(t){t=typeof t=="function"?tn(t):vt(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u=n[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&(r.push(t.call(c,c.__data__,l,u)),i.push(c));return new S(r,i)}function _t(t){return function(){return this.matches(t)}}function gt(t){return function(n){return n.matches(t)}}var en=Array.prototype.find;function rn(t){return function(){return en.call(this.children,t)}}function on(){return this.firstElementChild}function un(t){return this.select(t==null?on:rn(typeof t=="function"?t:gt(t)))}var sn=Array.prototype.filter;function an(){return Array.from(this.children)}function cn(t){return function(){return sn.call(this.children,t)}}function hn(t){return this.selectAll(t==null?an:cn(typeof t=="function"?t:gt(t)))}function ln(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new S(r,this._parents)}function dt(t){return Array(t.length)}function fn(){return new S(this._enter||this._groups.map(dt),this._parents)}function $(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$.prototype={constructor:$,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function pn(t){return function(){return t}}function mn(t,n,e,r,i,o){for(var u=0,a,c=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new $(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function vn(t,n,e,r,i,o,u){var a,c,l=new Map,f=n.length,x=o.length,d=Array(f),_;for(a=0;a<f;++a)(c=n[a])&&(d[a]=_=u.call(c,c.__data__,a,n)+"",l.has(_)?i[a]=c:l.set(_,c));for(a=0;a<x;++a)_=u.call(t,o[a],a,o)+"",(c=l.get(_))?(r[a]=c,c.__data__=o[a],l.delete(_)):e[a]=new $(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l.get(d[a])===c&&(i[a]=c)}function _n(t){return t.__data__}function gn(t,n){if(!arguments.length)return Array.from(this,_n);var e=n?vn:mn,r=this._parents,i=this._groups;typeof t!="function"&&(t=pn(t));for(var o=i.length,u=Array(o),a=Array(o),c=Array(o),l=0;l<o;++l){var f=r[l],x=i[l],d=x.length,_=dn(t.call(f,f&&f.__data__,l,r)),E=_.length,k=a[l]=Array(E),I=u[l]=Array(E);e(f,x,k,I,c[l]=Array(d),_,n);for(var v=0,B=0,O,j;v<E;++v)if(O=k[v]){for(v>=B&&(B=v+1);!(j=I[B])&&++B<E;);O._next=j||null}}return u=new S(u,r),u._enter=a,u._exit=c,u}function dn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function yn(){return new S(this._exit||this._groups.map(dt),this._parents)}function wn(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function xn(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=Array(i),c=0;c<u;++c)for(var l=e[c],f=r[c],x=l.length,d=a[c]=Array(x),_,E=0;E<x;++E)(_=l[E]||f[E])&&(d[E]=_);for(;c<i;++c)a[c]=e[c];return new S(a,this._parents)}function An(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],u;--i>=0;)(u=r[i])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function bn(t){t||(t=zn);function n(x,d){return x&&d?t(x.__data__,d.__data__):!x-!d}for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o){for(var u=e[o],a=u.length,c=i[o]=Array(a),l,f=0;f<a;++f)(l=u[f])&&(c[f]=l);c.sort(n)}return new S(i,this._parents).order()}function zn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Sn(){return Array.from(this)}function kn(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null}function Tn(){let t=0;for(let n of this)++t;return t}function Cn(){return!this.node()}function Mn(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,u=i.length,a;o<u;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function Nn(t){return function(){this.removeAttribute(t)}}function Pn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bn(t,n){return function(){this.setAttribute(t,n)}}function Vn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Dn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Xn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Yn(t,n){var e=W(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Pn:Nn:typeof n=="function"?e.local?Xn:Dn:e.local?Vn:Bn)(e,n))}function yt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ln(t){return function(){this.style.removeProperty(t)}}function qn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function In(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function On(t,n,e){return arguments.length>1?this.each((n==null?Ln:typeof n=="function"?In:qn)(t,n,e??"")):G(this.node(),t)}function G(t,n){return t.style.getPropertyValue(n)||yt(t).getComputedStyle(t,null).getPropertyValue(n)}function Un(t){return function(){delete this[t]}}function Rn(t,n){return function(){this[t]=n}}function jn(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Gn(t,n){return arguments.length>1?this.each((n==null?Un:typeof n=="function"?jn:Rn)(t,n)):this.node()[t]}function wt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=wt(t.getAttribute("class")||"")}xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function At(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function bt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Hn(t){return function(){At(this,t)}}function Kn(t){return function(){bt(this,t)}}function Wn(t,n){return function(){(n.apply(this,arguments)?At:bt)(this,t)}}function $n(t,n){var e=wt(t+"");if(arguments.length<2){for(var r=it(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?Wn:n?Hn:Kn)(e,n))}function Fn(){this.textContent=""}function Jn(t){return function(){this.textContent=t}}function Qn(t){return function(){this.textContent=t.apply(this,arguments)??""}}function Zn(t){return arguments.length?this.each(t==null?Fn:(typeof t=="function"?Qn:Jn)(t)):this.node().textContent}function te(){this.innerHTML=""}function ne(t){return function(){this.innerHTML=t}}function ee(t){return function(){this.innerHTML=t.apply(this,arguments)??""}}function re(t){return arguments.length?this.each(t==null?te:(typeof t=="function"?ee:ne)(t)):this.node().innerHTML}function ie(){this.nextSibling&&this.parentNode.appendChild(this)}function oe(){return this.each(ie)}function ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function se(){return this.each(ue)}function ae(t){var n=typeof t=="function"?t:mt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function ce(){return null}function he(t,n){var e=typeof t=="function"?t:mt(t),r=n==null?ce:typeof n=="function"?n:rt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function le(){var t=this.parentNode;t&&t.removeChild(this)}function fe(){return this.each(le)}function pe(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function me(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return this.select(t?me:pe)}function _e(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ge(t){return function(n){t.call(this,n,this.__data__)}}function de(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function ye(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function we(t,n,e){return function(){var r=this.__on,i,o=ge(n);if(r){for(var u=0,a=r.length;u<a;++u)if((i=r[u]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function xe(t,n,e){var r=de(t+""),i,o=r.length,u;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,f;c<l;++c)for(i=0,f=a[c];i<o;++i)if((u=r[i]).type===f.type&&u.name===f.name)return f.value}return}for(a=n?we:ye,i=0;i<o;++i)this.each(a(r[i],n,e));return this}function zt(t,n,e){var r=yt(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ae(t,n){return function(){return zt(this,t,n)}}function be(t,n){return function(){return zt(this,t,n.apply(this,arguments))}}function ze(t,n){return this.each((typeof n=="function"?be:Ae)(t,n))}function*Ee(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,u;i<o;++i)(u=r[i])&&(yield u)}var Et=[null];function S(t,n){this._groups=t,this._parents=n}function St(){return new S([[document.documentElement]],Et)}function Se(){return this}S.prototype=St.prototype={constructor:S,select:Jt,selectAll:nn,selectChild:un,selectChildren:hn,filter:ln,data:gn,enter:fn,exit:yn,join:wn,merge:xn,selection:Se,order:An,sort:bn,call:En,nodes:Sn,node:kn,size:Tn,empty:Cn,each:Mn,attr:Yn,style:On,property:Gn,classed:$n,text:Zn,html:re,raise:oe,lower:se,append:ae,insert:he,remove:fe,clone:ve,datum:_e,on:xe,dispatch:ze,[Symbol.iterator]:Ee};var H=St;function U(t){return typeof t=="string"?new S([[document.querySelector(t)]],[document.documentElement]):new S([[t]],Et)}function ke(t){let n;for(;n=t.sourceEvent;)t=n;return t}function R(t,n){if(t=ke(t),n===void 0&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}const Te={passive:!1},F={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function J(t){t.preventDefault(),t.stopImmediatePropagation()}function kt(t){var n=t.document.documentElement,e=U(t).on("dragstart.drag",J,F);"onselectstart"in n?e.on("selectstart.drag",J,F):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Tt(t,n){var e=t.document.documentElement,r=U(t).on("dragstart.drag",null);n&&(r.on("click.drag",J,F),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function Ct(t,n,e){var r=new Kt;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var Me=lt("start","end","cancel","interrupt"),Ne=[];function Q(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Pe(t,e,{name:n,index:r,group:i,on:Me,tween:Ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ot(t,n){var e=M(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function P(t,n){var e=M(t,n);if(e.state>3)throw Error("too late; already running");return e}function M(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function Pe(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=Gt(o,0,e.time);function o(l){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=l&&u(l-e.delay)}function u(l){var f,x,d,_;if(e.state!==1)return c();for(f in r)if(_=r[f],_.name===e.name){if(_.state===3)return Ct(u);_.state===4?(_.state=6,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete r[f]):+f<n&&(_.state=6,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete r[f])}if(Ct(function(){e.state===3&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(l))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),e.state===2){for(e.state=3,i=Array(d=e.tween.length),f=0,x=-1;f<d;++f)(_=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(i[++x]=_);i.length=x+1}}function a(l){for(var f=l<e.duration?e.ease.call(null,l/e.duration):(e.timer.restart(c),e.state=5,1),x=-1,d=i.length;++x<d;)i[x].call(t,f);e.state===5&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){for(var l in e.state=6,e.timer.stop(),delete r[n],r)return;delete t.__transition}}function Z(t,n){var e=t.__transition,r,i,o=!0,u;if(e){for(u in n=n==null?null:n+"",e){if((r=e[u]).name!==n){o=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[u]}o&&delete t.__transition}}function Be(t){return this.each(function(){Z(this,t)})}function Ve(t,n){var e,r;return function(){var i=P(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function De(t,n,e){var r,i;if(typeof e!="function")throw Error();return function(){var o=P(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function Xe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=M(this.node(),e).tween,i=0,o=r.length,u;i<o;++i)if((u=r[i]).name===t)return u.value;return null}return this.each((n==null?Ve:De)(e,t,n))}function ut(t,n,e){var r=t._id;return t.each(function(){var i=P(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return M(i,r).value[n]}}function Mt(t,n){var e;return(typeof n=="number"?jt:n instanceof ht?ft:(e=ht(n))?(n=e,ft):Ot)(t,n)}function Ye(t){return function(){this.removeAttribute(t)}}function Le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qe(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttribute(t);return u===i?null:u===r?o:o=n(r=u,e)}}function Ie(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===r?o:o=n(r=u,e)}}function Oe(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttribute(t):(u=this.getAttribute(t),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Ue(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Re(t,n){var e=W(t),r=e==="transform"?Ut:Mt;return this.attrTween(t,typeof n=="function"?(e.local?Ue:Oe)(e,r,ut(this,"attr."+t,n)):n==null?(e.local?Le:Ye)(e):(e.local?Ie:qe)(e,r,n))}function je(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ge(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function He(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Ge(t,o)),e}return i._value=n,i}function Ke(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&je(t,o)),e}return i._value=n,i}function We(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw Error();var r=W(t);return this.tween(e,(r.local?He:Ke)(r,n))}function $e(t,n){return function(){ot(this,t).delay=+n.apply(this,arguments)}}function Fe(t,n){return n=+n,function(){ot(this,t).delay=n}}function Je(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?$e:Fe)(n,t)):M(this.node(),n).delay}function Qe(t,n){return function(){P(this,t).duration=+n.apply(this,arguments)}}function Ze(t,n){return n=+n,function(){P(this,t).duration=n}}function tr(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Qe:Ze)(n,t)):M(this.node(),n).duration}function nr(t,n){if(typeof n!="function")throw Error();return function(){P(this,t).ease=n}}function er(t){var n=this._id;return arguments.length?this.each(nr(n,t)):M(this.node(),n).ease}function rr(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw Error();P(this,t).ease=e}}function ir(t){if(typeof t!="function")throw Error();return this.each(rr(this._id,t))}function or(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new Y(r,this._parents,this._name,this._id)}function ur(t){if(t._id!==this._id)throw Error();for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var c=n[a],l=e[a],f=c.length,x=u[a]=Array(f),d,_=0;_<f;++_)(d=c[_]||l[_])&&(x[_]=d);for(;a<r;++a)u[a]=n[a];return new Y(u,this._parents,this._name,this._id)}function sr(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function ar(t,n,e){var r,i,o=sr(n)?ot:P;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function cr(t,n){var e=this._id;return arguments.length<2?M(this.node(),e).on.on(t):this.each(ar(e,t,n))}function hr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function lr(){return this.on("end.remove",hr(this._id))}function fr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=rt(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u<i;++u)for(var a=r[u],c=a.length,l=o[u]=Array(c),f,x,d=0;d<c;++d)(f=a[d])&&(x=t.call(f,f.__data__,d,a))&&("__data__"in f&&(x.__data__=f.__data__),l[d]=x,Q(l[d],n,e,d,l,M(f,e)));return new Y(o,this._parents,n,e)}function pr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=vt(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c=r[a],l=c.length,f,x=0;x<l;++x)if(f=c[x]){for(var d=t.call(f,f.__data__,x,c),_,E=M(f,e),k=0,I=d.length;k<I;++k)(_=d[k])&&Q(_,n,e,k,d,E);o.push(d),u.push(f)}return new Y(o,u,n,e)}var mr=H.prototype.constructor;function vr(){return new mr(this._groups,this._parents)}function _r(t,n){var e,r,i;return function(){var o=G(this,t),u=(this.style.removeProperty(t),G(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Nt(t){return function(){this.style.removeProperty(t)}}function gr(t,n,e){var r,i=e+"",o;return function(){var u=G(this,t);return u===i?null:u===r?o:o=n(r=u,e)}}function dr(t,n,e){var r,i,o;return function(){var u=G(this,t),a=e(this),c=a+"";return a??(c=a=(this.style.removeProperty(t),G(this,t))),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}function yr(t,n){var e,r,i,o="style."+n,u="end."+o,a;return function(){var c=P(this,t),l=c.on,f=c.value[o]==null?a||(a=Nt(n)):void 0;(l!==e||i!==f)&&(r=(e=l).copy()).on(u,i=f),c.on=r}}function wr(t,n,e){var r=(t+="")=="transform"?It:Mt;return n==null?this.styleTween(t,_r(t,r)).on("end.style."+t,Nt(t)):typeof n=="function"?this.styleTween(t,dr(t,r,ut(this,"style."+t,n))).each(yr(this._id,t)):this.styleTween(t,gr(t,r,n),e).on("end.style."+t,null)}function xr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ar(t,n,e){var r,i;function o(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&xr(t,u,e)),r}return o._value=n,o}function br(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw Error();return this.tween(r,Ar(t,n,e??""))}function zr(t){return function(){this.textContent=t}}function Er(t){return function(){this.textContent=t(this)??""}}function Sr(t){return this.tween("text",typeof t=="function"?Er(ut(this,"text",t)):zr(t==null?"":t+""))}function kr(t){return function(n){this.textContent=t.call(this,n)}}function Tr(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&kr(i)),n}return r._value=t,r}function Cr(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw Error();return this.tween(n,Tr(t))}function Mr(){for(var t=this._name,n=this._id,e=Pt(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)if(c=u[l]){var f=M(c,n);Q(c,t,e,l,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Y(r,this._parents,t,e)}function Nr(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},c={value:function(){--i===0&&o()}};e.each(function(){var l=P(this,r),f=l.on;f!==t&&(n=(t=f).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),l.on=n}),i===0&&o()})}var Pr=0;function Y(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Br(t){return H().transition(t)}function Pt(){return++Pr}var L=H.prototype;Y.prototype=Br.prototype={constructor:Y,select:fr,selectAll:pr,selectChild:L.selectChild,selectChildren:L.selectChildren,filter:or,merge:ur,selection:vr,transition:Mr,call:L.call,nodes:L.nodes,node:L.node,size:L.size,empty:L.empty,each:L.each,on:cr,attr:Re,attrTween:We,style:wr,styleTween:br,text:Sr,textTween:Cr,remove:lr,tween:Xe,delay:Je,duration:tr,ease:er,easeVarying:ir,end:Nr,[Symbol.iterator]:L[Symbol.iterator]};function Vr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Dr={time:null,delay:0,duration:250,ease:Vr};function Xr(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw Error(`transition ${n} not found`);return e}function Yr(t){var n,e;t instanceof Y?(n=t._id,t=t._name):(n=Pt(),(e=Dr).time=Rt(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&Q(c,t,n,l,u,e||Xr(c,n));return new Y(r,this._parents,t,n)}H.prototype.interrupt=Be,H.prototype.transition=Yr;var tt=t=>()=>t;function Lr(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function q(t,n,e){this.k=t,this.x=n,this.y=e}q.prototype={constructor:q,scale:function(t){return t===1?this:new q(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new q(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nt=new q(1,0,0);qr.prototype=q.prototype;function qr(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nt;return t.__zoom}function st(t){t.stopImmediatePropagation()}function K(t){t.preventDefault(),t.stopImmediatePropagation()}function Ir(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Or(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Bt(){return this.__zoom||nt}function Ur(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Rr(){return navigator.maxTouchPoints||"ontouchstart"in this}function jr(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Gr(){var t=Ir,n=Or,e=jr,r=Ur,i=Rr,o=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],a=250,c=Ht,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(s){s.property("__zoom",Bt).on("wheel.zoom",Vt,{passive:!1}).on("mousedown.zoom",Dt).on("dblclick.zoom",Xt).filter(i).on("touchstart.zoom",Yt).on("touchmove.zoom",Lt).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(s,p,h,m){var g=s.selection?s.selection():s;g.property("__zoom",Bt),s===g?g.interrupt().each(function(){V(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):at(s,p,h,m)},v.scaleBy=function(s,p,h,m){v.scaleTo(s,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(s,p,h,m){v.transform(s,function(){var g=n.apply(this,arguments),w=this.__zoom,y=h==null?j(g):typeof h=="function"?h.apply(this,arguments):h,A=w.invert(y),b=typeof p=="function"?p.apply(this,arguments):p;return e(O(B(w,b),y,A),g,u)},h,m)},v.translateBy=function(s,p,h,m){v.transform(s,function(){return e(this.__zoom.translate(typeof p=="function"?p.apply(this,arguments):p,typeof h=="function"?h.apply(this,arguments):h),n.apply(this,arguments),u)},null,m)},v.translateTo=function(s,p,h,m,g){v.transform(s,function(){var w=n.apply(this,arguments),y=this.__zoom,A=m==null?j(w):typeof m=="function"?m.apply(this,arguments):m;return e(nt.translate(A[0],A[1]).scale(y.k).translate(typeof p=="function"?-p.apply(this,arguments):-p,typeof h=="function"?-h.apply(this,arguments):-h),w,u)},m,g)};function B(s,p){return p=Math.max(o[0],Math.min(o[1],p)),p===s.k?s:new q(p,s.x,s.y)}function O(s,p,h){var m=p[0]-h[0]*s.k,g=p[1]-h[1]*s.k;return m===s.x&&g===s.y?s:new q(s.k,m,g)}function j(s){return[(+s[0][0]+ +s[1][0])/2,(+s[0][1]+ +s[1][1])/2]}function at(s,p,h,m){s.on("start.zoom",function(){V(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=V(g,w).event(m),A=n.apply(g,w),b=h==null?j(A):typeof h=="function"?h.apply(g,w):h,N=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),z=g.__zoom,T=typeof p=="function"?p.apply(g,w):p,D=c(z.invert(b).concat(N/z.k),T.invert(b).concat(N/T.k));return function(C){if(C===1)C=T;else{var X=D(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function V(s,p,h){return!h&&s.__zooming||new ct(s,p)}function ct(s,p){this.that=s,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(s,p),this.taps=0}ct.prototype={event:function(s){return s&&(this.sourceEvent=s),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(s,p){return this.mouse&&s!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&s!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&s!=="touch"&&(this.touch1[1]=p.invert(this.touch1[0])),this.that.__zoom=p,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(s){var p=U(this.that).datum();l.call(s,this.that,new Lr(s,{sourceEvent:this.sourceEvent,target:v,type:s,transform:this.that.__zoom,dispatch:l}),p)}};function Vt(s,...p){if(!t.apply(this,arguments))return;var h=V(this,p).event(s),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(s);if(h.wheel)(h.mouse[0][0]!==w[0]||h.mouse[0][1]!==w[1])&&(h.mouse[1]=m.invert(h.mouse[0]=w)),clearTimeout(h.wheel);else{if(m.k===g)return;h.mouse=[w,m.invert(w)],Z(this),h.start()}K(s),h.wheel=setTimeout(y,E),h.zoom("mouse",e(O(B(m,g),h.mouse[0],h.mouse[1]),h.extent,u));function y(){h.wheel=null,h.end()}}function Dt(s,...p){if(d||!t.apply(this,arguments))return;var h=s.currentTarget,m=V(this,p,!0).event(s),g=U(s.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(s,h),y=s.clientX,A=s.clientY;kt(s.view),st(s),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,D=z.clientY-A;m.moved=T*T+D*D>k}m.event(z).zoom("mouse",e(O(m.that.__zoom,m.mouse[0]=R(z,h),m.mouse[1]),m.extent,u))}function N(z){g.on("mousemove.zoom mouseup.zoom",null),Tt(z.view,m.moved),K(z),m.event(z).end()}}function Xt(s,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(s.changedTouches?s.changedTouches[0]:s,this),g=h.invert(m),w=h.k*(s.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(s),a>0?U(this).transition().duration(a).call(at,y,m,s):U(this).call(v.transform,y,m,s)}}function Yt(s,...p){if(t.apply(this,arguments)){var h=s.touches,m=h.length,g=V(this,p,s.changedTouches.length===m).event(s),w,y,A,b;for(st(s),y=0;y<m;++y)A=h[y],b=R(A,this),b=[b,this.__zoom.invert(b),A.identifier],g.touch0?!g.touch1&&g.touch0[2]!==b[2]&&(g.touch1=b,g.taps=0):(g.touch0=b,w=!0,g.taps=1+!!f);f&&(f=clearTimeout(f)),w&&(g.taps<2&&(x=b[0],f=setTimeout(function(){f=null},_)),Z(this),g.start())}}function Lt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y,A,b;for(K(s),w=0;w<g;++w)y=m[w],A=R(y,this),h.touch0&&h.touch0[2]===y.identifier?h.touch0[0]=A:h.touch1&&h.touch1[2]===y.identifier&&(h.touch1[0]=A);if(y=h.that.__zoom,h.touch1){var N=h.touch0[0],z=h.touch0[1],T=h.touch1[0],D=h.touch1[1],C=(C=T[0]-N[0])*C+(C=T[1]-N[1])*C,X=(X=D[0]-z[0])*X+(X=D[1]-z[1])*X;y=B(y,Math.sqrt(C/X)),A=[(N[0]+T[0])/2,(N[1]+T[1])/2],b=[(z[0]+D[0])/2,(z[1]+D[1])/2]}else if(h.touch0)A=h.touch0[0],b=h.touch0[1];else return;h.zoom("touch",e(O(y,A,b),h.extent,u))}}function qt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y;for(st(s),d&&clearTimeout(d),d=setTimeout(function(){d=null},_),w=0;w<g;++w)y=m[w],h.touch0&&h.touch0[2]===y.identifier?delete h.touch0:h.touch1&&h.touch1[2]===y.identifier&&delete h.touch1;if(h.touch1&&!h.touch0&&(h.touch0=h.touch1,delete h.touch1),h.touch0)h.touch0[1]=this.__zoom.invert(h.touch0[0]);else if(h.end(),h.taps===2&&(y=R(y,this),Math.hypot(x[0]-y[0],x[1]-y[1])<I)){var A=U(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return v.wheelDelta=function(s){return arguments.length?(r=typeof s=="function"?s:tt(+s),v):r},v.filter=function(s){return arguments.length?(t=typeof s=="function"?s:tt(!!s),v):t},v.touchable=function(s){return arguments.length?(i=typeof s=="function"?s:tt(!!s),v):i},v.extent=function(s){return arguments.length?(n=typeof s=="function"?s:tt([[+s[0][0],+s[0][1]],[+s[1][0],+s[1][1]]]),v):n},v.scaleExtent=function(s){return arguments.length?(o[0]=+s[0],o[1]=+s[1],v):[o[0],o[1]]},v.translateExtent=function(s){return arguments.length?(u[0][0]=+s[0][0],u[1][0]=+s[1][0],u[0][1]=+s[0][1],u[1][1]=+s[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(s){return arguments.length?(e=s,v):e},v.duration=function(s){return arguments.length?(a=+s,v):a},v.interpolate=function(s){return arguments.length?(c=s,v):c},v.on=function(){var s=l.on.apply(l,arguments);return s===l?v:s},v.clickDistance=function(s){return arguments.length?(k=(s=+s)*s,v):Math.sqrt(k)},v.tapDistance=function(s){return arguments.length?(I=+s,v):I},v}export{J as a,Ce as c,Tt as i,R as l,nt as n,Te as o,kt as r,F as s,Gr as t,U as u};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var $t=Object.defineProperty;var Oe=f=>{throw TypeError(f)};var zt=(f,h,y)=>h in f?$t(f,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):f[h]=y;var n=(f,h,y)=>zt(f,typeof h!="symbol"?h+"":h,y),ue=(f,h,y)=>h.has(f)||Oe("Cannot "+y);var o=(f,h,y)=>(ue(f,h,"read from private field"),y?y.call(f):h.get(f)),_=(f,h,y)=>h.has(f)?Oe("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(f):h.set(f,y),C=(f,h,y,Q)=>(ue(f,h,"write to private field"),Q?Q.call(f,y):h.set(f,y),y),A=(f,h,y)=>(ue(f,h,"access private method"),y);import{i as z,p as de,u as Vt}from"./useEvent-D91BmmQi.js";import{Ci as G,Si as Qt,_i as Yt,b as Gt,fi as Jt,it as He,jn as Kt,li as Xt,mi as Zt,x as er,__tla as tr}from"./cells-
|
|
1
|
+
var $t=Object.defineProperty;var Oe=f=>{throw TypeError(f)};var zt=(f,h,y)=>h in f?$t(f,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):f[h]=y;var n=(f,h,y)=>zt(f,typeof h!="symbol"?h+"":h,y),ue=(f,h,y)=>h.has(f)||Oe("Cannot "+y);var o=(f,h,y)=>(ue(f,h,"read from private field"),y?y.call(f):h.get(f)),_=(f,h,y)=>h.has(f)?Oe("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(f):h.set(f,y),C=(f,h,y,Q)=>(ue(f,h,"write to private field"),Q?Q.call(f,y):h.set(f,y),y),A=(f,h,y)=>(ue(f,h,"access private method"),y);import{i as z,p as de,u as Vt}from"./useEvent-D91BmmQi.js";import{Ci as G,Si as Qt,_i as Yt,b as Gt,fi as Jt,it as He,jn as Kt,li as Xt,mi as Zt,x as er,__tla as tr}from"./cells-_QgKZKXb.js";import{t as rr}from"./get-C-qh_et5.js";import{t as sr}from"./debounce-DhnxH9Rh.js";import{t as nr}from"./_baseSet-CxV9N1bc.js";import{_ as p,y as g}from"./useEventListener-BR0C1MaI.js";import{t as ar}from"./invariant-BUdrueMv.js";import{S as ir}from"./utils-DIGrmLDO.js";import{S as or,n as lr}from"./config-BwY7xK-l.js";import{n as ur}from"./switch-QpkpQKr6.js";import{n as $e}from"./globals-fN2Lim68.js";import{ot as ce,st as ze,__tla as dr}from"./JsonOutput-BGumwadB.js";import{t as cr}from"./createReducer-1ePoj7v6.js";import{r as pr}from"./strings-md4mFbOQ.js";import{t as pe}from"./requests-DIwGYs0l.js";import{a as Ve,l as fr,r as Qe,__tla as hr}from"./markdown-renderer-Cown6yO8.js";import{t as mr}from"./DeferredRequestRegistry-Bobqy1XF.js";import{t as gr}from"./preload-helper-DXnewu3N.js";import{t as Ye}from"./Deferred-CcWopv8N.js";import{t as Ge}from"./uuid-D_ujsK2Y.js";import{t as yr}from"./use-toast-DZOInYtM.js";import{t as wr}from"./useRunCells-Ce0N_5Wc.js";import{n as br,r as vr,t as _r}from"./share-C7-yIyYZ.js";import{t as Cr}from"./blob-Gsfvuteh.js";import{i as Je,r as Rr,t as xr}from"./events-CKqlBGzI.js";let J,Ke,Xe,fe,Ze,et,he,tt,V,rt,st,me,ge,nt,at,it,ot,ne,lt,ut,ye,dt,we,qr=Promise.all([(()=>{try{return tr}catch{}})(),(()=>{try{return dr}catch{}})(),(()=>{try{return hr}catch{}})()]).then(async()=>{var U,ee,pt,Le,M,j,S,Ne,P,Ae,F,Y,D,ae,Ue,je,te,I,L,O,R,W,N,ft,ht,mt,re;function f(t,e,r){return t==null?t:nr(t,e,r)}J=f,Ze=de(null);var{valueAtom:h,useActions:y}=cr(()=>({banners:[]}),{addBanner:(t,e)=>({...t,banners:[...t.banners,{...e,id:Ge()}]}),removeBanner:(t,e)=>({...t,banners:t.banners.filter(r=>r.id!==e)}),clearBanners:t=>({...t,banners:[]})});dt=()=>Vt(h),Ke=function(){return y()};let Q,ve,_e;Q=class{constructor(){n(this,"subscriptions",new Map)}addSubscription(t,e){var r;this.subscriptions.has(t)||this.subscriptions.set(t,new Set),(r=this.subscriptions.get(t))==null||r.add(e)}removeSubscription(t,e){var r;(r=this.subscriptions.get(t))==null||r.delete(e)}notify(t,e){for(let r of this.subscriptions.get(t)??[])r(e)}},we=class be{constructor(e){n(this,"subscriptions",new Q);this.producer=e}static withProducerCallback(e){return new be(e)}static empty(){return new be}startProducer(){this.producer&&this.producer(e=>{this.subscriptions.notify("message",e)})}connect(){return new Promise(e=>setTimeout(e,0)).then(()=>{this.subscriptions.notify("open",new Event("open"))})}get readyState(){return WebSocket.OPEN}reconnect(e,r){this.close(),this.connect()}close(){this.subscriptions.notify("close",new Event("close"))}send(e){return this.subscriptions.notify("message",new MessageEvent("message",{data:e})),Promise.resolve()}addEventListener(e,r){this.subscriptions.addSubscription(e,r),e==="open"&&r(new Event("open")),e==="message"&&this.startProducer()}removeEventListener(e,r){this.subscriptions.removeSubscription(e,r)}},ve=1e10,_e=1e3;function K(t,e){let r=t.map(s=>`"${s}"`).join(", ");return Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`)}function yt(t={}){let e={};function r(l){e=l}let s={};function a(l){var c;s.unregisterHandler&&s.unregisterHandler(),s=l,(c=s.registerHandler)==null||c.call(s,Ht)}let i;function u(l){if(typeof l=="function"){i=l;return}i=(c,w)=>{let m=l[c];if(m)return m(w);let b=l._;if(!b)throw Error(`The requested method has no handler: ${c}`);return b(c,w)}}let{maxRequestTime:d=_e}=t;t.transport&&a(t.transport),t.requestHandler&&u(t.requestHandler),t._debugHooks&&r(t._debugHooks);let v=0;function x(){return v<=ve?++v:v=0}let q=new Map,E=new Map;function H(l,...c){let w=c[0];return new Promise((m,b)=>{var $;if(!s.send)throw K(["send"],"make requests");let k=x(),B={type:"request",id:k,method:l,params:w};q.set(k,{resolve:m,reject:b}),d!==1/0&&E.set(k,setTimeout(()=>{E.delete(k),b(Error("RPC request timed out."))},d)),($=e.onSend)==null||$.call(e,B),s.send(B)})}let se=new Proxy(H,{get:(l,c,w)=>c in l?Reflect.get(l,c,w):m=>H(c,m)}),We=se;function Te(l,...c){var b;let w=c[0];if(!s.send)throw K(["send"],"send messages");let m={type:"message",id:l,payload:w};(b=e.onSend)==null||b.call(e,m),s.send(m)}let Be=new Proxy(Te,{get:(l,c,w)=>c in l?Reflect.get(l,c,w):m=>Te(c,m)}),De=Be,T=new Map,le=new Set;function Dt(l,c){var w;if(!s.registerHandler)throw K(["registerHandler"],"register message listeners");if(l==="*"){le.add(c);return}T.has(l)||T.set(l,new Set),(w=T.get(l))==null||w.add(c)}function Ot(l,c){var w,m;if(l==="*"){le.delete(c);return}(w=T.get(l))==null||w.delete(c),((m=T.get(l))==null?void 0:m.size)===0&&T.delete(l)}async function Ht(l){var c,w;if((c=e.onReceive)==null||c.call(e,l),!("type"in l))throw Error("Message does not contain a type.");if(l.type==="request"){if(!s.send||!i)throw K(["send","requestHandler"],"handle requests");let{id:m,method:b,params:k}=l,B;try{B={type:"response",id:m,success:!0,payload:await i(b,k)}}catch($){if(!($ instanceof Error))throw $;B={type:"response",id:m,success:!1,error:$.message}}(w=e.onSend)==null||w.call(e,B),s.send(B);return}if(l.type==="response"){let m=E.get(l.id);m!=null&&clearTimeout(m);let{resolve:b,reject:k}=q.get(l.id)??{};l.success?b==null||b(l.payload):k==null||k(Error(l.error));return}if(l.type==="message"){for(let b of le)b(l.id,l.payload);let m=T.get(l.id);if(!m)return;for(let b of m)b(l.payload);return}throw Error(`Unexpected RPC message type: ${l.type}`)}return{setTransport:a,setRequestHandler:u,request:se,requestProxy:We,send:Be,sendProxy:De,addMessageListener:Dt,removeMessageListener:Ot,proxy:{send:De,request:We},_setDebugHooks:r}}function wt(t){return yt(t)}var Ce="[transport-id]";function bt(t,e){let{transportId:r}=e;return r==null?t:{[Ce]:r,data:t}}function vt(t,e){let{transportId:r,filter:s}=e,a=s==null?void 0:s();if(r!=null&&a!=null)throw Error("Cannot use both `transportId` and `filter` at the same time");let i=t;if(r){if(t[Ce]!==r)return[!0];i=t.data}return a===!1?[!0]:[!1,i]}function _t(t,e={}){let{transportId:r,filter:s,remotePort:a}=e,i=t,u=a??t,d;return{send(v){u.postMessage(bt(v,{transportId:r}))},registerHandler(v){d=x=>{let q=x.data,[E,H]=vt(q,{transportId:r,filter:()=>s==null?void 0:s(x)});E||v(H)},i.addEventListener("message",d)},unregisterHandler(){d&&i.removeEventListener("message",d)}}}function Ct(t,e){return _t(t,e)}function Re(t){return wt({transport:Ct(t,{transportId:"marimo-transport"}),maxRequestTime:2e4,_debugHooks:{onSend:e=>{p.debug("[rpc] Parent -> Worker",e)},onReceive:e=>{p.debug("[rpc] Worker -> Parent",e)}}})}ye=de("Initializing..."),Xe=de(t=>{let e=t(Gt),r=Object.values(e.cellRuntime);return r.some(s=>!fr(s.output))?!0:r.every(s=>s.status==="idle")});var xe=br(),qe="marimo:file",Ee=new Xt(null);const Rt={saveFile(t){Ee.set(qe,t)},readFile(){return Ee.get(qe)}};var xt={saveFile(t){G.setCodeForHash((0,xe.compressToEncodedURIComponent)(t))},readFile(){let t=G.getCodeFromHash()||G.getCodeFromSearchParam();return t?(0,xe.decompressFromEncodedURIComponent)(t):null}};const qt={saveFile(t){},readFile(){let t=document.querySelector("marimo-code");return t?decodeURIComponent(t.textContent||"").trim():null}};var Et={saveFile(t){},readFile(){if(window.location.hostname!=="marimo.app")return null;let t=new URL("files/wasm-intro.py",document.baseURI);return fetch(t.toString()).then(e=>e.ok?e.text():null).catch(()=>null)}};const St={saveFile(t){},readFile(){return z.get(Jt)??null}};var kt={saveFile(t){},readFile(){return["import marimo","app = marimo.App()","","@app.cell","def __():"," return","",'if __name__ == "__main__":'," app.run()"].join(`
|
|
2
2
|
`)}},Se=class{constructor(t){this.stores=t}insert(t,e){this.stores.splice(t,0,e)}saveFile(t){this.stores.forEach(e=>e.saveFile(t))}readFile(){for(let t of this.stores){let e=t.readFile();if(e)return e}return null}};let X;V=new Se([St,qt,xt]),X=new Se([Rt,Et,kt]),ge=class ct{constructor(){n(this,"initialized",new Ye);n(this,"sendRename",async({filename:e})=>(e===null||(G.setFilename(e),await this.rpc.proxy.request.bridge({functionName:"rename_file",payload:e})),null));n(this,"sendSave",async e=>{if(!this.saveRpc)return p.warn("Save RPC not initialized"),null;await this.saveRpc.saveNotebook(e);let r=await this.readCode();return r.contents&&(V.saveFile(r.contents),X.saveFile(r.contents)),this.rpc.proxy.request.saveNotebook(e).catch(s=>{p.error(s)}),null});n(this,"sendCopy",async()=>{g()});n(this,"sendStdin",async e=>(await this.rpc.proxy.request.bridge({functionName:"put_input",payload:e.text}),null));n(this,"sendPdb",async()=>{g()});n(this,"sendRun",async e=>(await this.rpc.proxy.request.loadPackages(e.codes.join(`
|
|
3
3
|
`)),await this.putControlRequest({type:"execute-cells",...e}),null));n(this,"sendRunScratchpad",async e=>(await this.rpc.proxy.request.loadPackages(e.code),await this.putControlRequest({type:"execute-scratchpad",...e}),null));n(this,"sendInterrupt",async()=>(this.interruptBuffer!==void 0&&(this.interruptBuffer[0]=2),null));n(this,"sendShutdown",async()=>(window.close(),null));n(this,"sendFormat",async e=>await this.rpc.proxy.request.bridge({functionName:"format",payload:e}));n(this,"sendDeleteCell",async e=>(await this.putControlRequest({type:"delete-cell",...e}),null));n(this,"sendInstallMissingPackages",async e=>(this.putControlRequest({type:"install-packages",...e}),null));n(this,"sendCodeCompletionRequest",async e=>(z.get(er)||await this.rpc.proxy.request.bridge({functionName:"code_complete",payload:e}),null));n(this,"saveUserConfig",async e=>(await this.rpc.proxy.request.bridge({functionName:"save_user_config",payload:e}),ur.post("/kernel/save_user_config",e,{baseUrl:"/"}).catch(r=>(p.error(r),null))));n(this,"saveAppConfig",async e=>(await this.rpc.proxy.request.bridge({functionName:"save_app_config",payload:e}),null));n(this,"saveCellConfig",async e=>(await this.putControlRequest({type:"update-cell-config",...e}),null));n(this,"sendRestart",async()=>{let e=await this.readCode();return e.contents&&(V.saveFile(e.contents),X.saveFile(e.contents)),vr(),null});n(this,"readCode",async()=>this.saveRpc?{contents:await this.saveRpc.readNotebook()}:(p.warn("Save RPC not initialized"),{contents:""}));n(this,"readSnippets",async()=>await this.rpc.proxy.request.bridge({functionName:"read_snippets",payload:void 0}));n(this,"openFile",async({path:e})=>{let r=_r({code:null,baseUrl:window.location.origin});return window.open(r,"_blank"),null});n(this,"sendListFiles",async e=>await this.rpc.proxy.request.bridge({functionName:"list_files",payload:e}));n(this,"sendSearchFiles",async e=>await this.rpc.proxy.request.bridge({functionName:"search_files",payload:e}));n(this,"sendComponentValues",async e=>(await this.putControlRequest({type:"update-ui-element",...e,token:Ge()}),null));n(this,"sendInstantiate",async e=>null);n(this,"sendFunctionRequest",async e=>(await this.putControlRequest({type:"invoke-function",...e}),null));n(this,"sendCreateFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"create_file_or_directory",payload:e}));n(this,"sendDeleteFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"delete_file_or_directory",payload:e}));n(this,"sendCopyFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"copy_file_or_directory",payload:e}));n(this,"sendRenameFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"move_file_or_directory",payload:e}));n(this,"sendUpdateFile",async e=>await this.rpc.proxy.request.bridge({functionName:"update_file",payload:e}));n(this,"sendFileDetails",async e=>await this.rpc.proxy.request.bridge({functionName:"file_details",payload:e}));n(this,"exportAsHTML",async e=>await this.rpc.proxy.request.bridge({functionName:"export_html",payload:e}));n(this,"exportAsMarkdown",async e=>await this.rpc.proxy.request.bridge({functionName:"export_markdown",payload:e}));n(this,"previewDatasetColumn",async e=>(await this.putControlRequest({type:"preview-dataset-column",...e}),null));n(this,"previewSQLTable",async e=>(await this.putControlRequest({type:"preview-sql-table",...e}),null));n(this,"previewSQLTableList",async e=>(await this.putControlRequest({type:"list-sql-tables",...e}),null));n(this,"previewSQLSchemaList",async e=>(await this.putControlRequest({type:"list-sql-schemas",...e}),null));n(this,"previewDataSourceConnection",async e=>(await this.putControlRequest({type:"list-data-source-connection",...e}),null));n(this,"validateSQL",async e=>(await this.putControlRequest({type:"validate-sql",...e}),null));n(this,"sendModelValue",async e=>(await this.putControlRequest({type:"model",...e}),null));n(this,"sendDocumentTransaction",()=>Promise.resolve(null));n(this,"addPackage",async e=>this.rpc.proxy.request.addPackage(e));n(this,"removePackage",async e=>this.rpc.proxy.request.removePackage(e));n(this,"getPackageList",async()=>await this.rpc.proxy.request.listPackages());n(this,"getDependencyTree",async()=>({tree:{dependencies:[],name:"",tags:[],version:null}}));n(this,"listSecretKeys",async e=>(await this.putControlRequest({type:"list-secret-keys",...e}),null));n(this,"getUsageStats",g);n(this,"openTutorial",g);n(this,"getRecentFiles",g);n(this,"getWorkspaceFiles",g);n(this,"getRunningNotebooks",g);n(this,"shutdownSession",g);n(this,"exportAsIPYNB",g);n(this,"exportAsPDF",g);n(this,"autoExportAsHTML",g);n(this,"autoExportAsMarkdown",g);n(this,"autoExportAsIPYNB",g);n(this,"updateCellOutputs",g);n(this,"writeSecret",g);n(this,"invokeAiTool",g);n(this,"clearCache",g);n(this,"getCacheInfo",g);n(this,"listStorageEntries",g);n(this,"downloadStorage",g);or()&&(this.rpc=Re(new Worker(new URL(""+new URL("worker-ztl1wuLb.js",import.meta.url).href,""+import.meta.url),{type:"module",name:$e()})),this.rpc.addMessageListener("ready",()=>{this.startSession()}),this.rpc.addMessageListener("initialized",()=>{this.saveRpc=this.getSaveWorker(),this.setInterruptBuffer(),this.initialized.resolve()}),this.rpc.addMessageListener("initializingMessage",({message:e})=>{z.set(ye,e)}),this.rpc.addMessageListener("initializedError",({error:e})=>{this.initialized.status==="resolved"&&(p.error(e),yr({title:"Error initializing",description:e,variant:"danger"})),this.initialized.reject(Error(e))}),this.rpc.addMessageListener("kernelMessage",({message:e})=>{var r;(r=this.messageConsumer)==null||r.call(this,new MessageEvent("message",{data:e}))}))}static get INSTANCE(){let e="_marimo_private_PyodideBridge";return window[e]||(window[e]=new ct),window[e]}getSaveWorker(){return He()==="read"?(p.debug("Using partially disabled SaveWorker in read-mode"),{readFile:g,readNotebook:async()=>await V.readFile()??"",saveNotebook:g}):Re(new Worker(new URL(""+new URL("save-worker-CtJsIYIM.js",import.meta.url).href,""+import.meta.url),{type:"module",name:$e()})).proxy.request}async startSession(){let e=await V.readFile(),r=await X.readFile(),s=z.get(Zt)??G.getFilename(),a=z.get(ir),i={},u=new URLSearchParams(window.location.search);for(let d of u.keys()){let v=u.getAll(d);i[d]=v.length===1?v[0]:v}await this.rpc.proxy.request.startSession({queryParameters:i,code:e||r||"",filename:s,userConfig:{...a,runtime:{...a.runtime,auto_instantiate:He()==="read"?!0:a.runtime.auto_instantiate}}})}setInterruptBuffer(){crossOriginIsolated?(this.interruptBuffer=new Uint8Array(new SharedArrayBuffer(1)),this.rpc.proxy.request.setInterruptBuffer(this.interruptBuffer)):p.warn("Not running in a secure context; interrupts are not available.")}attachMessageConsumer(e){this.messageConsumer=e,this.rpc.proxy.send.consumerReady({})}async putControlRequest(e){await this.rpc.proxy.request.bridge({functionName:"put_control_request",payload:e})}},rt=function(){return we.withProducerCallback(t=>{ge.INSTANCE.attachMessageConsumer(t)})},tt=function(t=ce()){let e=window.fetch;return window.fetch=async(r,s)=>{let a=r instanceof Request?r.url:r.toString();if(a.startsWith("data:"))return e(r,s);try{let i=Z(a,t);if(i){let u=await(await e(i)).arrayBuffer();return new Response(u,{headers:{"Content-Type":Mt(a)}})}return e(r,s)}catch(i){return p.error("Error parsing URL",i),e(r,s)}},()=>{window.fetch=e}};function Mt(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}it=function(t,e=ce()){let r=t.http.bind(t),s=t.load.bind(t);return t.http=async a=>{let i=Z(a,e);if(i)return await window.fetch(i).then(u=>u.text());try{return await r(a)}catch(u){if(a.startsWith("data:"))return await window.fetch(a).then(d=>d.text());throw u}},t.load=async a=>{let i=Z(a,e);if(i)return await window.fetch(i).then(u=>u.text());try{return await s(a)}catch(u){if(a.startsWith("data:"))return await window.fetch(a).then(d=>d.text());throw u}},()=>{t.http=r,t.load=s}};function ke(t){return t.startsWith(".")?t.slice(1):t}function Ft(t,e=ce()){let r=Z(t,e);if(!r)return t;let s=Cr(r);return URL.createObjectURL(s)}function Z(t,e){let r=document.baseURI;r.startsWith("blob:")&&(r=r.replace("blob:",""));let s=new URL(t,r).pathname,a=Me(t),i=Me(s);return e[t]||e[ke(t)]||e[s]||e[ke(s)]||a&&e[a]||i&&e[i]}function Me(t){let e=t.indexOf("/@file/");return e===-1?null:t.slice(e)}function ie(t,e=[]){let r=[];if(t instanceof DataView)r.push(e);else if(Array.isArray(t))for(let[s,a]of t.entries())r.push(...ie(a,[...e,s]));else if(typeof t=="object"&&t)for(let[s,a]of Object.entries(t))r.push(...ie(a,[...e,s]));return r}function Pt(t){let e=ie(t);if(e.length===0)return{state:t,buffers:[],bufferPaths:[]};let r=structuredClone(t),s=[],a=[];for(let i of e){let u=rr(t,i);if(u instanceof DataView){let d=Ve(u);s.push(d),a.push(i),J(r,i,d)}}return{state:r,buffers:s,bufferPaths:a}}function Fe(t){let{state:e,bufferPaths:r,buffers:s}=t;if(!r||r.length===0)return e;s&&ar(s.length===r.length,"Buffers and buffer paths not the same length");let a=e;for(let[i,u]of r.entries()){let d=s==null?void 0:s[i];if(d==null){p.warn("[anywidget] Could not find buffer at path",u);continue}typeof d=="string"?J(a,u,Qe(d)):J(a,u,d)}return a}he=function(t){return typeof t!="string"||t.length===0?!1:!!(/^(\.?\/)?@file\/[^?#]+$/.test(t)||It(t)&&z.get(wr))};function It(t){return t.startsWith("data:text/javascript;base64,")||t.startsWith("data:application/javascript;base64,")||t.startsWith("data:text/css;base64,")}const Pe={invoke:async()=>{let t="anywidget.invoke not supported in marimo. Please file an issue at https://github.com/marimo-team/marimo/issues";throw p.warn(t),Error(t)}};function Lt(t){if(typeof AbortSignal.any=="function")return AbortSignal.any(t);let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(r.reason),e.signal;r.addEventListener("abort",()=>e.abort(r.reason),{once:!0})}return e.signal}var Nt=(Le=class{constructor(){_(this,ee);_(this,U,new Map)}getModule(t,e){let r=o(this,U).get(e);if(r)return r;let s=A(this,ee,pt).call(this,t).catch(a=>{throw o(this,U).delete(e),a});return o(this,U).set(e,s),s}invalidate(t){p.debug(`[WidgetDefRegistry] Invalidating module cache for hash=${t}`),o(this,U).delete(t)}},U=new WeakMap,ee=new WeakSet,pt=async function(t){if(!he(t))throw Error(`Refusing to load anywidget module from untrusted URL: ${String(t)}`);let e=lr(t).toString();return ze()&&(e=Ft(e)),gr(()=>import(e).then(async r=>(await r.__tla,r)),[],import.meta.url)},Le),At=(Ne=class{constructor(){_(this,M);_(this,j);_(this,S)}async bind(t,e){var i,u;if(o(this,S)&&o(this,j)===t)return o(this,S);o(this,S)&&o(this,j)!==t&&(p.debug("[WidgetBinding] Hot-reload detected, aborting previous binding"),(i=o(this,M))==null||i.abort(),C(this,M,void 0),C(this,S,void 0)),C(this,j,t),C(this,M,new AbortController);let r=o(this,M).signal,s=typeof t=="function"?await t():t,a=await((u=s.initialize)==null?void 0:u.call(s,{model:e,experimental:Pe}));return a&&r.addEventListener("abort",a),C(this,S,async(d,v)=>{var q;let x=await((q=s.render)==null?void 0:q.call(s,{model:e,el:d,experimental:Pe}));x&&Lt([v,r]).addEventListener("abort",()=>{let E=v.aborted?"view unmount":"binding destroyed";p.debug(`[WidgetBinding] Render cleanup triggered (reason: ${E})`),x()})}),o(this,S)}destroy(){var t;p.debug("[WidgetBinding] Destroying binding, aborting initialize lifecycle"),(t=o(this,M))==null||t.abort(),C(this,M,void 0),C(this,j,void 0),C(this,S,void 0)}},M=new WeakMap,j=new WeakMap,S=new WeakMap,Ne),Ut=(Ae=class{constructor(){_(this,P,new Map)}getOrCreate(t){let e=o(this,P).get(t);return e||(e=new At,o(this,P).set(t,e)),e}destroy(t){let e=o(this,P).get(t);e&&(p.debug(`[BindingManager] Destroying binding for model=${t}`),e.destroy(),o(this,P).delete(t))}has(t){return o(this,P).has(t)}},P=new WeakMap,Ae);ut=new Nt,me=new Ut;var jt=(Ue=class{constructor(t=1e4){_(this,D);_(this,F,new Map);_(this,Y);C(this,Y,t)}get(t){let e=A(this,D,ae).call(this,t);return e.deferred.status==="pending"&&setTimeout(()=>{e.deferred.status==="pending"&&(e.deferred.reject(Error(`Model not found for key: ${t}`)),o(this,F).delete(t))},o(this,Y)),e.deferred.promise}create(t,e){let r=A(this,D,ae).call(this,t);r.deferred.resolve(e(r.controller.signal))}set(t,e){A(this,D,ae).call(this,t).deferred.resolve(e)}getSync(t){let e=o(this,F).get(t);if(e&&e.deferred.status==="resolved")return e.deferred.value}delete(t){var e;p.debug(`[ModelManager] Deleting model=${t}, aborting lifecycle signal`),(e=o(this,F).get(t))==null||e.controller.abort(),o(this,F).delete(t)}},F=new WeakMap,Y=new WeakMap,D=new WeakSet,ae=function(t){let e=o(this,F).get(t);return e||(e={deferred:new Ye,controller:new AbortController},o(this,F).set(t,e)),e},Ue),Ie=Symbol("marimo");function oe(t){return t[Ie]}ne=new jt;var Wt=(je=Ie,W=class{constructor(e,r,s){_(this,N);_(this,te,"change");_(this,I);_(this,L);_(this,O);_(this,R,{});n(this,je,{updateAndEmitDiffs:e=>A(this,N,ht).call(this,e),emitCustomMessage:(e,r)=>A(this,N,mt).call(this,e,r)});n(this,"widget_manager",{async get_model(e){let r=await W._modelManager.get(e);if(!r)throw Error(`Model not found with id: ${e}. This is likely because the model was not registered.`);return r}});_(this,re,sr(()=>{let e=o(this,R)[o(this,te)];if(e)for(let r of e)try{r()}catch(s){p.error("Error emitting event",s)}},0));C(this,L,e),C(this,O,r),C(this,I,new Map),s&&s.addEventListener("abort",()=>{p.debug("[Model] Signal aborted, clearing all listeners"),C(this,R,{})})}off(e,r){var s;if(!e){C(this,R,{});return}if(!r){o(this,R)[e]=new Set;return}(s=o(this,R)[e])==null||s.delete(r)}send(e,r,s){let a=(s??[]).map(i=>i instanceof ArrayBuffer?new DataView(i):new DataView(i.buffer,i.byteOffset,i.byteLength));return o(this,O).sendCustomMessage(e,a).then(()=>r==null?void 0:r())}get(e){return o(this,L)[e]}set(e,r){C(this,L,{...o(this,L),[e]:r}),o(this,I).set(e,r),A(this,N,ft).call(this,`change:${e}`,r),o(this,re).call(this)}save_changes(){if(o(this,I).size===0)return;let e=Object.fromEntries(o(this,I).entries());o(this,I).clear(),o(this,O).sendUpdate(e)}on(e,r){o(this,R)[e]||(o(this,R)[e]=new Set),o(this,R)[e].add(r)}},te=new WeakMap,I=new WeakMap,L=new WeakMap,O=new WeakMap,R=new WeakMap,N=new WeakSet,ft=function(e,r){if(!o(this,R)[e])return;let s=o(this,R)[e];for(let a of s)try{a(r)}catch(i){p.error("Error emitting event",i)}},ht=function(e){e!=null&&Object.keys(e).forEach(r=>{let s=r;o(this,L)[s]!==e[s]&&this.set(s,e[s])})},mt=function(e,r=[]){let s=o(this,R)["msg:custom"];if(s)for(let a of s)try{a(e.content,r)}catch(i){p.error("Error emitting event",i)}},re=new WeakMap,n(W,"_modelManager",ne),W);et=async function(t,e){let r=e.model_id,s=e.message,a=("buffers"in s?s.buffers:[]).map(Qe);switch(s.method){case"open":{let{state:i,buffer_paths:u=[]}=s,d=Fe({state:i,bufferPaths:u,buffers:a}),v=t.getSync(r);if(v){oe(v).updateAndEmitDiffs(d);return}t.create(r,x=>new Wt(d,ze()?{sendUpdate:async()=>{},sendCustomMessage:async()=>{}}:{async sendUpdate(q){if(x.aborted){p.debug(`[Model] sendUpdate suppressed for model=${r} (signal aborted)`);return}let{state:E,buffers:H,bufferPaths:se}=Pt(q);await pe().sendModelValue({modelId:r,message:{method:"update",state:E,bufferPaths:se},buffers:H})},async sendCustomMessage(q,E){if(x.aborted){p.debug(`[Model] sendCustomMessage suppressed for model=${r} (signal aborted)`);return}await pe().sendModelValue({modelId:r,message:{method:"custom",content:q},buffers:E.map(Ve)})}},x));return}case"custom":oe(await t.get(r)).emitCustomMessage({method:"custom",content:s.content},a);return;case"close":me.destroy(r),t.delete(r);return;case"update":{let{state:i,buffer_paths:u=[]}=s,d=Fe({state:i,bufferPaths:u,buffers:a});oe(await t.get(r)).updateAndEmitDiffs(d);return}default:pr(s)}},Kt(ne,"MODEL_MANAGER");function Tt(t){return typeof t!="object"||!t?!1:"type"in t&&t.type==="marimo-ui-value-update"}fe=class gt{static get INSTANCE(){let e="_marimo_private_UIElementRegistry";return window[e]||(window[e]=new gt),window[e]}constructor(){this.entries=new Map}has(e){return this.entries.has(e)}set(e,r){this.entries.has(e)&&p.debug("UIElementRegistry overwriting entry for objectId.",e),this.entries.set(e,{objectId:e,value:r,elements:new Set})}registerInstance(e,r){let s=this.entries.get(e);s===void 0?this.entries.set(e,{objectId:e,value:Qt(r,this),elements:new Set([r])}):s.elements.add(r)}removeInstance(e,r){let s=this.entries.get(e);s!=null&&s.elements.has(r)&&s.elements.delete(r)}removeElementsByCell(e){[...this.entries.keys()].filter(r=>r.startsWith(`${e}-`)).forEach(r=>{this.entries.delete(r)})}lookupValue(e){let r=this.entries.get(e);return r===void 0?void 0:r.value}broadcastMessage(e,r,s){let a=this.entries.get(e);if(a===void 0){p.warn("UIElementRegistry missing entry",e);return}if(Tt(r)){a.value=r.value,a.elements.forEach(i=>{i.dispatchEvent(Je.create({bubbles:!1,composed:!0,detail:{value:r.value,element:i}}))});return}a.elements.forEach(i=>{i.dispatchEvent(xr.create({bubbles:!1,composed:!0,detail:{objectId:e,message:r,buffers:s}}))})}broadcastValueUpdate(e,r,s){let a=this.entries.get(r);a===void 0?p.warn("UIElementRegistry missing entry",r):(a.value=s,a.elements.forEach(i=>{i!==e&&i.dispatchEvent(Je.create({bubbles:!1,composed:!0,detail:{value:s,element:i}}))}),document.dispatchEvent(Rr.create({bubbles:!0,composed:!0,detail:{objectId:r}})))}},at=fe.INSTANCE,st=new mr("function-call-result",async(t,e)=>{await pe().sendFunctionRequest({functionCallId:t,...e})}),lt="68px";var Bt="288px";nt=t=>t?/^\d+$/.test(t)?`${t}px`:t:Bt,ot=Yt({isOpen:!0},(t,e)=>{if(!e)return t;switch(e.type){case"toggle":return{...t,isOpen:e.isOpen??t.isOpen};case"setWidth":return{...t,width:e.width};default:return t}})});export{J as C,Ke as S,Xe as _,qr as __tla,fe as a,Ze as b,et as c,he as d,tt as f,V as g,rt as h,st as i,me as l,ge as m,nt as n,at as o,it as p,ot as r,ne as s,lt as t,ut as u,ye as v,dt as x,we as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as E,u as b}from"./useEvent-D91BmmQi.js";import{t as k}from"./compiler-runtime-B3qBwwSJ.js";import{t as q}from"./createReducer-1ePoj7v6.js";import{t as y}from"./requests-DIwGYs0l.js";import{t as A}from"./createLucideIcon-D5guW7EU.js";import{t as g}from"./DeferredRequestRegistry-
|
|
1
|
+
import{p as E,u as b}from"./useEvent-D91BmmQi.js";import{t as k}from"./compiler-runtime-B3qBwwSJ.js";import{t as q}from"./createReducer-1ePoj7v6.js";import{t as y}from"./requests-DIwGYs0l.js";import{t as A}from"./createLucideIcon-D5guW7EU.js";import{t as g}from"./DeferredRequestRegistry-Bobqy1XF.js";import{n as $}from"./useAsyncData-BRNkjHs1.js";var I=A("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const v=new g("storage-list-entries",async(r,t)=>{await y().listStorageEntries({requestId:r,...t})}),N=new g("storage-download",async(r,t)=>{await y().downloadStorage({requestId:r,...t})});function w(r,t){return`${r}::${t??""}`}function _(r){return`${r}::`}var z=k();function C(){return{namespaces:[],entriesByPath:new Map}}var{reducer:O,createActions:Q,valueAtom:P,useActions:F}=q(C,{setNamespaces:(r,t)=>{let e=new Map(r.namespaces.map(a=>[a.name,a]));for(let a of t.namespaces)e.set(a.name,a);return{...r,namespaces:[...e.values()]}},setEntries:(r,t)=>{let e=w(t.namespace,t.prefix),a=new Map(r.entriesByPath);return a.set(e,t.entries),{...r,entriesByPath:a}},clearNamespaceCache:(r,t)=>{let e=new Map(r.entriesByPath),a=_(t);for(let n of e.keys())n.startsWith(a)&&e.delete(n);return{...r,entriesByPath:e}},filterFromVariables:(r,t)=>{let e=new Set(t),a=r.namespaces.filter(n=>e.has(n.name));return{...r,namespaces:a}}});const x=()=>b(P),H=E(r=>r(P).namespaces);function B(){return F()}function V(r,t){let e=(0,z.c)(20),{entriesByPath:a}=x(),{setEntries:n}=B(),o;e[0]!==a||e[1]!==r||e[2]!==t?(o=a.get(w(r,t)),e[0]=a,e[1]=r,e[2]=t,e[3]=o):o=e[3];let s=o,m;e[4]!==s||e[5]!==r||e[6]!==t||e[7]!==n?(m=async()=>{if(s)return;let d=await v.request({namespace:r,prefix:t??"",limit:150});if(d.error)throw Error(d.error);n({namespace:r,prefix:t,entries:d.entries})},e[4]=s,e[5]=r,e[6]=t,e[7]=n,e[8]=m):m=e[8];let f=s===void 0,c;e[9]!==r||e[10]!==t||e[11]!==f?(c=[r,t,f],e[9]=r,e[10]=t,e[11]=f,e[12]=c):c=e[12];let{isPending:M,error:S,refetch:l}=$(m,c),i;e[13]===s?i=e[14]:(i=s??[],e[13]=s,e[14]=i);let u=M&&!s,h=s?void 0:S,p;return e[15]!==l||e[16]!==i||e[17]!==u||e[18]!==h?(p={entries:i,isPending:u,error:h,refetch:l},e[15]=l,e[16]=i,e[17]=u,e[18]=h,e[19]=p):p=e[19],p}export{w as a,I as c,V as i,x as n,N as o,B as r,v as s,H as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o}from"./useEvent-D91BmmQi.js";import{t}from"./createReducer-1ePoj7v6.js";import{t as a}from"./uuid-
|
|
1
|
+
import{u as o}from"./useEvent-D91BmmQi.js";import{t}from"./createReducer-1ePoj7v6.js";import{t as a}from"./uuid-D_ujsK2Y.js";function d(){return{pendingCommands:[],isReady:!1}}var{reducer:f,createActions:g,valueAtom:r,useActions:i}=t(d,{addCommand:(n,m)=>{let e={id:a(),text:m,timestamp:Date.now()};return{...n,pendingCommands:[...n.pendingCommands,e]}},removeCommand:(n,m)=>({...n,pendingCommands:n.pendingCommands.filter(e=>e.id!==m)}),setReady:(n,m)=>({...n,isReady:m}),clearCommands:n=>({...n,pendingCommands:[]})});const s=()=>o(r);function p(){return i()}export{s as n,p as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./useEvent-D91BmmQi.js";import{Mn as o,Nn as h,vi as n}from"./cells-
|
|
1
|
+
import{p as r}from"./useEvent-D91BmmQi.js";import{Mn as o,Nn as h,vi as n}from"./cells-_QgKZKXb.js";import{f as m}from"./arrays-DYDL-3-i.js";var v="marimo:ai:chatState:v5";const d=r(null),f=n("marimo:ai:includeOtherCells",!0,h);function u(t){let a=new Map;for(let[s,e]of t.entries()){if(e.messages.length===0)continue;let c=m(e.messages,l=>l.id);a.set(s,{...e,messages:c})}return a}const i=n(v,{chats:new Map,activeChatId:null},o({toSerializable:t=>({chats:[...u(t.chats).entries()],activeChatId:t.activeChatId}),fromSerializable:t=>({chats:new Map(t.chats),activeChatId:t.activeChatId})})),C=r(t=>{let a=t(i);return a.activeChatId?a.chats.get(a.activeChatId):null},(t,a,s)=>{a(i,e=>({...e,activeChatId:s}))});export{f as i,d as n,i as r,C as t};
|