@marimo-team/frontend 0.23.9-dev30 → 0.23.9-dev32
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-CLxcT_cM.js → CellStatus-Dm3YCiM6.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-Dpgo8BF0.js → ConnectedDataExplorerComponent-CduY7ZLg.js} +1 -1
- package/dist/assets/{JsonOutput-CusPgY2j.js → JsonOutput-DzATTBoP.js} +3 -3
- package/dist/assets/LazyAnyLanguageCodeMirror-BEvXb3VX.js +2 -0
- package/dist/assets/{MarimoErrorOutput-B_8Wgh_6.js → MarimoErrorOutput-XPsNfvEO.js} +1 -1
- package/dist/assets/{RenderHTML-Dm20tKw3.js → RenderHTML-BvW-obUg.js} +1 -1
- package/dist/assets/{add-cell-with-ai-DswIx72E.js → add-cell-with-ai-C4H664zc.js} +1 -1
- package/dist/assets/{add-connection-dialog-BpPTpNHa.js → add-connection-dialog-DdJBM1-Q.js} +1 -1
- package/dist/assets/{agent-panel-CsTSIg9p.js → agent-panel-BB1ZRQse.js} +1 -1
- package/dist/assets/{ai-model-dropdown-BsQHdNap.js → ai-model-dropdown-9UrkfG-1.js} +1 -1
- package/dist/assets/{any-language-editor-Cs-Qsdlp.js → any-language-editor-CXeLf_N8.js} +1 -1
- package/dist/assets/apl-EAxnZS_5.js +1 -0
- package/dist/assets/{app-config-button-I9nMXa1F.js → app-config-button-N_G5k5XW.js} +1 -1
- package/dist/assets/{arc-D0XsJSsf.js → arc-CWuN1tfc.js} +1 -1
- package/dist/assets/{architecture-7HQA4BMR-CyeFAHwy.js → architecture-7HQA4BMR-DJtUfdk-.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-1WJT-eC3.js → architectureDiagram-VXUJARFQ-Cgi4wo9P.js} +1 -1
- package/dist/assets/arrow-right-pRnMoIOW.js +1 -0
- package/dist/assets/asciiarmor-zxnaShQE.js +1 -0
- package/dist/assets/asn1-7i28Os5R.js +1 -0
- package/dist/assets/{blockDiagram-VD42YOAC-JexHZqqE.js → blockDiagram-VD42YOAC-CsHap8-F.js} +1 -1
- package/dist/assets/brainfuck-BZegPsXK.js +1 -0
- package/dist/assets/{c4Diagram-YG6GDRKO-Bq-DoY7t.js → c4Diagram-YG6GDRKO-CZuArudM.js} +1 -1
- package/dist/assets/{cache-panel-CZqzacQu.js → cache-panel-DYiVMv5x.js} +1 -1
- package/dist/assets/{cell-editor-CoGSiQv4.js → cell-editor-B-9MV21_.js} +3 -3
- package/dist/assets/{cell-link-DkEWt80K.js → cell-link-Bkd6QnOS.js} +1 -1
- package/dist/assets/{cells-1XaQzJBc.js → cells-BP6kg4iF.js} +4 -4
- package/dist/assets/channel-6XBTrC3Q.js +1 -0
- package/dist/assets/{chat-display-jeeyMZQK.js → chat-display-76m4LMD2.js} +1 -1
- package/dist/assets/chat-panel-BAIgHYyO.js +3 -0
- package/dist/assets/{chat-ui-DaAdi-2W.js → chat-ui-BggP20am.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-Dhno12SW.js → chunk-4BX2VUAB-Ca6WzYTr.js} +1 -1
- package/dist/assets/chunk-55IACEB6-Cr4aqhf3.js +1 -0
- package/dist/assets/{chunk-5FQGJX7Z-BzXnQz5s.js → chunk-5FQGJX7Z-D9iBG0F7.js} +2 -2
- package/dist/assets/{chunk-ABZYJK2D-fbQovzbZ.js → chunk-ABZYJK2D-BG7Eb4WW.js} +3 -3
- package/dist/assets/{chunk-ATLVNIR6-C71UReOL.js → chunk-ATLVNIR6-CqLn9HI1.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-ChmO4xUA.js → chunk-B4BG7PRW-D4SyZNjn.js} +1 -1
- package/dist/assets/{chunk-CVBHYZKI-B6tT645I.js → chunk-CVBHYZKI-C-NWvPQL.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DaLBJUsc.js → chunk-DI55MBZ5-t9uiMPiN.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-B3Lv3QWb.js → chunk-EXTU4WIE-BmVk7Fyq.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-CDFiCFLp.js → chunk-FMBD7UC4-DlnzxSkO.js} +1 -1
- package/dist/assets/{chunk-HN2XXSSU-xW6J7MXn.js → chunk-HN2XXSSU-Bcaj5fRB.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-jqUKn_dB.js → chunk-JA3XYJ7Z-B5b2QHOb.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-xGZ72asD.js → chunk-JZLCHNYA-1_sVfAnw.js} +1 -1
- package/dist/assets/{chunk-MI3HLSF2-CXMqGP2w.js → chunk-MI3HLSF2-DqzZqBCh.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-D8iMP1ch.js → chunk-N4CR4FBY-CFJoD-EQ.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-Ddzf5Xc1.js → chunk-QN33PNHL-BBE_bx9E.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-BUBd7EW9.js → chunk-QXUST7PY-Cu1nR-L2.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-37WEuSLJ.js → chunk-QZHKN3VN-BAnb9AKF.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-7UJSqSFb.js → chunk-S3R3BYOJ-Cl0iW04v.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-B7Xjx897.js → chunk-TZMSLE5B-f5ix6iSd.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-DlIMDu6i.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-CcIhhkQu.js +1 -0
- package/dist/assets/{clike-npv7NBwP.js → clike-bdcjLdZ4.js} +1 -1
- package/dist/assets/clojure-VUVi7fTV.js +1 -0
- package/dist/assets/cmake-DZJIDbjY.js +1 -0
- package/dist/assets/cobol-klCRwlLm.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-BZVOQdyl.js → code-block-37QAKDTI-B19XL3UR.js} +1 -1
- package/dist/assets/coffeescript-C9foD9ub.js +1 -0
- package/dist/assets/{column-preview-DVkTxMGI.js → column-preview-9_vf_vQt.js} +1 -1
- package/dist/assets/{command-palette-BAlVQIwu.js → command-palette-drFTNlvg.js} +1 -1
- package/dist/assets/{common-DPbBXxzB.js → common-G2mwxgr_.js} +1 -1
- package/dist/assets/commonlisp-tHxoA35J.js +1 -0
- package/dist/assets/{components-vyxhSeYE.js → components-D2tmc0KN.js} +1 -1
- package/dist/assets/{components-CJAJOpwt.js → components-DvggA56E.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-CgMkzBzk.js → cose-bilkent-S5V4N54A-CQqSLzd1.js} +1 -1
- package/dist/assets/crystal-CQ11GdrX.js +1 -0
- package/dist/assets/{css-OVjTGRm9.js → css-ACAb8MRM.js} +1 -1
- package/dist/assets/cypher-CJ0Uzw29.js +1 -0
- package/dist/assets/d-DP0SUIt1.js +1 -0
- package/dist/assets/{dagre-6UL2VRFP-rclmYCNC.js → dagre-6UL2VRFP-CVKXpDlr.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-CO7vLLX5.js → data-grid-overlay-editor-BdDYn72O.js} +1 -1
- package/dist/assets/{datasource-CLXUP6g0.js → datasource-BjfZ5rCV.js} +1 -1
- package/dist/assets/dependency-graph-panel-BQlFSqu5.js +5 -0
- package/dist/assets/{diagram-PSM6KHXK-Dr5x-oaJ.js → diagram-PSM6KHXK-BfzLNKp-.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-Cyino8Ci.js → diagram-QEK2KX5R-D_H77Ni5.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-DYLuU52t.js → diagram-S2PKOQOG-DJmVBeMk.js} +1 -1
- package/dist/assets/diff-CNs8MB38.js +1 -0
- package/dist/assets/{dist-K7UrYXpJ.js → dist-BtL81uwZ.js} +1 -1
- package/dist/assets/{dist-BYYXrYaA.js → dist-Bww7hlVc.js} +1 -1
- package/dist/assets/{dist-BTDGJ6yw.js → dist-CJIOLS6O.js} +1 -1
- package/dist/assets/dist-CPF3W2Y-.js +1 -0
- package/dist/assets/{dist-D6HkmGB2.js → dist-CUapWJe4.js} +1 -1
- package/dist/assets/{dist-DYXeLJlk.js → dist-CWeWT34c.js} +1 -1
- package/dist/assets/{dist-CSowihAs.js → dist-CuCuJBdf.js} +1 -1
- package/dist/assets/{dist-fQYV9WTb.js → dist-DH60fwgs.js} +1 -1
- package/dist/assets/dist-DZPpMvcR.js +1 -0
- package/dist/assets/dist-DkcQg5xD.js +1 -0
- package/dist/assets/dist-DkzFxGAX.js +1 -0
- package/dist/assets/{dist-CtCHoDJA.js → dist-DmBXXm0k.js} +1 -1
- package/dist/assets/{dist-DB3ebLb3.js → dist-W1iHBJeE.js} +1 -1
- package/dist/assets/{dist-CO_N76Iz.js → dist-cgiAP5sW.js} +1 -1
- package/dist/assets/{dist-CGC-UAcL.js → dist-vkd1160q.js} +1 -1
- package/dist/assets/{dockerfile-CrSl2ewL.js → dockerfile-BSMbgQQl.js} +1 -1
- package/dist/assets/{documentation-panel-o-viwf0J.js → documentation-panel-BbVMQHz5.js} +1 -1
- package/dist/assets/{download-qESwLUZl.js → download-DrC3sFE3.js} +1 -1
- package/dist/assets/dtd-BsD0uJw0.js +1 -0
- package/dist/assets/dylan-DbrGP1IP.js +1 -0
- package/dist/assets/ecl-C0rZlhHw.js +1 -0
- package/dist/assets/{edit-page-kaIkUPYh.js → edit-page-ClIQhScA.js} +6 -6
- package/dist/assets/eiffel-2ZX-OpSJ.js +1 -0
- package/dist/assets/elm-CbOSKldD.js +1 -0
- package/dist/assets/{erDiagram-Q2GNP2WA-FdS4NKUh.js → erDiagram-Q2GNP2WA-ROTNwSJz.js} +1 -1
- package/dist/assets/erlang-BWiOgHIX.js +1 -0
- package/dist/assets/{error-panel-69wfyEqu.js → error-panel-aaHrLkBh.js} +1 -1
- package/dist/assets/{esm-CwPtnMeh.js → esm-DeiyaVAJ.js} +1 -1
- package/dist/assets/{factor-MWFhpc0o.js → factor-C-_cRSDM.js} +1 -1
- package/dist/assets/factor-CUwFIMOP.js +1 -0
- package/dist/assets/{file-explorer-panel-DEiH3PAy.js → file-explorer-panel-BQ9nMxks.js} +1 -1
- package/dist/assets/{file-icons-nRpX80xD.js → file-icons-pUZ3DUy5.js} +1 -1
- package/dist/assets/{floating-outline-BWfYKjEI.js → floating-outline-CDjyi71K.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-DO4w8anv.js → flowDiagram-NV44I4VS--ee3IIVF.js} +1 -1
- package/dist/assets/{focus-DCbL1KSz.js → focus-D2kXD_rc.js} +1 -1
- package/dist/assets/{form-DdWBrfFm.js → form-COQrUWdR.js} +1 -1
- package/dist/assets/forth-BEQA4QQL.js +1 -0
- package/dist/assets/fortran-DoPpOZgG.js +1 -0
- package/dist/assets/{ganttDiagram-JELNMOA3-Df-MBIrj.js → ganttDiagram-JELNMOA3-BGhmW2aP.js} +1 -1
- package/dist/assets/gas-BYovsvOE.js +1 -0
- package/dist/assets/gherkin-CFiRc1Pf.js +1 -0
- package/dist/assets/{gitGraph-G5XIXVHT-BAQx1hNd.js → gitGraph-G5XIXVHT-DuJ_0c_E.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-fv2cmbLH.js → gitGraphDiagram-V2S2FVAM-DXFCZcxr.js} +1 -1
- package/dist/assets/{glide-data-editor-CjCd44bZ.js → glide-data-editor-7_pHQtPX.js} +4 -4
- package/dist/assets/groovy-DJNH7evt.js +1 -0
- package/dist/assets/haskell-duZvcePm.js +1 -0
- package/dist/assets/haxe-B2l95qvB.js +1 -0
- package/dist/assets/{home-page-B-GufMb4.js → home-page-DNFOElFw.js} +1 -1
- package/dist/assets/{hooks-DY7Iab_9.js → hooks-DjKf5pQ9.js} +1 -1
- package/dist/assets/{html-to-image-7hWS7hJz.js → html-to-image-EYrNFuGt.js} +1 -1
- package/dist/assets/idl-CZ_xwU8I.js +1 -0
- package/dist/assets/{index-BWVD6RQh.js → index-DsF3qFAR.js} +6 -6
- package/dist/assets/{info-VBDWY6EO-Cw9vVNQD.js → info-VBDWY6EO-DPQEAe2T.js} +1 -1
- package/dist/assets/infoDiagram-HS3SLOUP-CaaUieFa.js +2 -0
- package/dist/assets/javascript-CF5KGSAj.js +1 -0
- package/dist/assets/{journeyDiagram-XKPGCS4Q-C_cdVaga.js → journeyDiagram-XKPGCS4Q-9D2JCyrN.js} +1 -1
- package/dist/assets/julia-BQlq5iZn.js +1 -0
- package/dist/assets/{kanban-definition-3W4ZIXB7-CLpEm5s3.js → kanban-definition-3W4ZIXB7-DxV26rf-.js} +1 -1
- package/dist/assets/katex-CzQ1KdW3.js +1 -0
- package/dist/assets/{kiosk-mode-JQPKtmIC.js → kiosk-mode-Ht1DwVD4.js} +1 -1
- package/dist/assets/{layout-c2Tt9BRr.js → layout-CwCyg6Oq.js} +5 -5
- package/dist/assets/{line-ortW3H6T.js → line-x4bpd_8D.js} +1 -1
- package/dist/assets/{linear-CIVE7jyt.js → linear-CW_ww8od.js} +1 -1
- package/dist/assets/livescript-sRMenfqS.js +1 -0
- package/dist/assets/{logs-panel-BP3lKR0p.js → logs-panel-8V1eZbE7.js} +1 -1
- package/dist/assets/{loro_wasm_bg-Ci19hd4D.js → loro_wasm_bg-CtNTubKN.js} +1 -1
- package/dist/assets/lua-a56ITumN.js +1 -0
- package/dist/assets/{markdown-renderer-BzFpW89-.js → markdown-renderer-d9Lol4Mr.js} +3 -3
- package/dist/assets/mathematica-B3m4jXeH.js +1 -0
- package/dist/assets/mbox-BtL7aO2I.js +1 -0
- package/dist/assets/mermaid-4DMBBIKO-CekzuCTz.js +1 -0
- package/dist/assets/{mermaid-JS_fM0GY.js → mermaid-DAflnvW9.js} +3 -3
- package/dist/assets/{mermaid-parser.core-CMygPhv_.js → mermaid-parser.core-aYU6qXxk.js} +2 -2
- package/dist/assets/{mhchem-DSE1tfes.js → mhchem-8N2oE3tb.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-mbWtJhR6.js → mindmap-definition-VGOIOE7T-DTJAbAQ8.js} +1 -1
- package/dist/assets/mirc-S27kuZ31.js +1 -0
- package/dist/assets/mllike-B3kx3KeF.js +1 -0
- package/dist/assets/modelica-DgbW4dSi.js +1 -0
- package/dist/assets/mscgen-BIa_4d-0.js +1 -0
- package/dist/assets/mumps-4fnELyHs.js +1 -0
- package/dist/assets/{name-cell-input-BGUk0-hx.js → name-cell-input-DDR4EexG.js} +1 -1
- package/dist/assets/{nsis-CDylpiaC.js → nsis-BGZ5EB-j.js} +1 -1
- package/dist/assets/nsis-BfGyMssE.js +1 -0
- package/dist/assets/ntriples-DeY1n_tC.js +1 -0
- package/dist/assets/{number-overlay-editor-CHaQ6o4_.js → number-overlay-editor-DL4IwqDH.js} +1 -1
- package/dist/assets/octave-7Qn21jzx.js +1 -0
- package/dist/assets/{ordinal-RiUP-mHf.js → ordinal-_nQ2r1qQ.js} +1 -1
- package/dist/assets/{outline-panel-DF5K6QKx.js → outline-panel-B-fr1jRf.js} +1 -1
- package/dist/assets/oz-CiPFl3Ni.js +1 -0
- package/dist/assets/{packages-panel-DW3iGKmX.js → packages-panel-B4MR9Vnv.js} +1 -1
- package/dist/assets/{packet-DYOGHKS2-BXa5LrXK.js → packet-DYOGHKS2-CxgeJpvT.js} +1 -1
- package/dist/assets/pair-with-agent-modal-Derso4uY.js +4 -0
- package/dist/assets/{panels-BBeYDaGT.js → panels-DsbaLR3B.js} +1 -1
- package/dist/assets/pascal-BH9yQLzw.js +1 -0
- package/dist/assets/perl-DfMCx2i2.js +1 -0
- package/dist/assets/{pie-VRWISCQL-BpZiOBLl.js → pie-VRWISCQL-GZ13ReaG.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-ouQhtndl.js → pieDiagram-ADFJNKIX-_3l2XiEo.js} +1 -1
- package/dist/assets/pig-D9CNebQN.js +1 -0
- package/dist/assets/powershell-Dss0bU9F.js +1 -0
- package/dist/assets/{process-output-6n1ugWwo.js → process-output-CJeKhzqO.js} +1 -1
- package/dist/assets/properties-CHADYQUL.js +1 -0
- package/dist/assets/protobuf-DFN-V4SD.js +1 -0
- package/dist/assets/{pug-BXVTM5jr.js → pug-CYW0agOo.js} +1 -1
- package/dist/assets/pug-DOI9FnEk.js +1 -0
- package/dist/assets/puppet-BV0HAkDS.js +1 -0
- package/dist/assets/python-C83Db0-4.js +1 -0
- package/dist/assets/q-D84S4YaJ.js +1 -0
- package/dist/assets/{quadrantDiagram-AYHSOK5B-NRkmQ1sP.js → quadrantDiagram-AYHSOK5B-CX3AMAvR.js} +1 -1
- package/dist/assets/r-jmqrRzXv.js +1 -0
- package/dist/assets/{radar-ZZBFDIW7-CB-lQl_C.js → radar-ZZBFDIW7-CbAjwmA0.js} +1 -1
- package/dist/assets/{radio-group-BarBLGia.js → radio-group-cvI-M2aa.js} +1 -1
- package/dist/assets/{react-vega-CFabbyYN.js → react-vega-COx3Ibyn.js} +1 -1
- package/dist/assets/{react-vega-Bzl9LfSR.js → react-vega-CXIQBUis.js} +1 -1
- package/dist/assets/{readonly-python-code-D8e6pAzl.js → readonly-python-code-BmZ0KZKm.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-C0LTiV9S.js → requirementDiagram-UZGBJVZJ-ORHKBnkg.js} +1 -1
- package/dist/assets/{reveal-component-xHcsF-r9.js → reveal-component-Bff44fKv.js} +2 -2
- package/dist/assets/rpm-DUjG0xRk.js +1 -0
- package/dist/assets/ruby-SP4FIzir.js +1 -0
- package/dist/assets/{run-page-CzaWbsQO.js → run-page-4im7P8v3.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-CR2AycvD.js → sankeyDiagram-TZEHDZUN-Dvb8kmWa.js} +1 -1
- package/dist/assets/sas-BxaPz2EX.js +1 -0
- package/dist/assets/scheme-HBseLApj.js +1 -0
- package/dist/assets/{scratchpad-panel-k5ZJMWG3.js → scratchpad-panel-BFvydb89.js} +1 -1
- package/dist/assets/{secrets-panel-B3E_Dkep.js → secrets-panel-BBvdIhtU.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-CtF8-7iq.js → sequenceDiagram-WL72ISMW-DQycpQtE.js} +1 -1
- package/dist/assets/{session-panel-DHZylfH3.js → session-panel-CwggjKWr.js} +1 -1
- package/dist/assets/shell-w8ATY_lQ.js +1 -0
- package/dist/assets/sieve-Dyq0LGDO.js +1 -0
- package/dist/assets/smalltalk-D7mAtumc.js +1 -0
- package/dist/assets/{snippets-panel-B33qfYgV.js → snippets-panel-BmWXl5GE.js} +1 -1
- package/dist/assets/sparql-DAeEYE_u.js +1 -0
- package/dist/assets/{src-CyeQdfB6.js → src-CvyFXpBy.js} +1 -1
- package/dist/assets/{state-BA_U3J4G.js → state-G8Xj60GT.js} +1 -1
- package/dist/assets/{state-3SH6NVgL.js → state-d_LoPKHg.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-R47bQmIs.js → stateDiagram-FKZM4ZOC-D78DIR_F.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-DX9rpmwh.js +1 -0
- package/dist/assets/{step-Ca7ZnceH.js → step-D7xg1Moj.js} +1 -1
- package/dist/assets/stylus-Cw3Ugan7.js +1 -0
- package/dist/assets/swift-CPsNOBsX.js +1 -0
- package/dist/assets/tcl-BfWyQdZa.js +1 -0
- package/dist/assets/{textarea-CTiWTiw-.js → textarea-DV6LIVoz.js} +1 -1
- package/dist/assets/textile-BKgaSzSN.js +1 -0
- package/dist/assets/{time-Dfh8bLaf.js → time-DLdI7jB3.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-qZnC-_po.js → timeline-definition-IT6M3QCI-DIywx3xf.js} +1 -1
- package/dist/assets/toml-BSOdv04W.js +1 -0
- package/dist/assets/{tracing-CW1nKi50.js → tracing-CvLPM0Wh.js} +1 -1
- package/dist/assets/{tracing-panel-BY38SOBp.js → tracing-panel-iTdY5N_y.js} +2 -2
- package/dist/assets/{treemap-GDKQZRPO-C2f4_yBW.js → treemap-GDKQZRPO-Dz_qZhuG.js} +1 -1
- package/dist/assets/troff-C0hD9kig.js +1 -0
- package/dist/assets/ttcn-DEqPxhoh.js +1 -0
- package/dist/assets/ttcn-cfg-B-7jSlUe.js +1 -0
- package/dist/assets/turtle-BTtgFsu8.js +1 -0
- package/dist/assets/{useCellActionButton-BVzdWM6Q.js → useCellActionButton-CsyGJEYN.js} +1 -1
- package/dist/assets/{useDeleteCell-CnlX_9s7.js → useDeleteCell-BQA5MqKt.js} +1 -1
- package/dist/assets/useDependencyPanelTab-CIH_2h1J.js +1 -0
- package/dist/assets/useNotebookActions-jRhy52S-.js +1 -0
- package/dist/assets/{useRunCells-BJP5VHUs.js → useRunCells-rD6HJnx6.js} +1 -1
- package/dist/assets/{useSplitCell-DwfXLRQ8.js → useSplitCell-CqznVs7m.js} +1 -1
- package/dist/assets/vb-DfRPk_ji.js +1 -0
- package/dist/assets/vbscript-C8D4uv5N.js +1 -0
- package/dist/assets/{vega-component-BsorOyX7.js → vega-component-DOlcjhuV.js} +1 -1
- package/dist/assets/velocity-DxKr2FFC.js +1 -0
- package/dist/assets/verilog-CxVhamiH.js +1 -0
- package/dist/assets/vhdl-B-IpBNOA.js +1 -0
- package/dist/assets/webidl-CBjKmBwO.js +1 -0
- package/dist/assets/xquery-ABGCbLv0.js +1 -0
- package/dist/assets/{xychartDiagram-PRI3JC2R-Ul_9KMcM.js → xychartDiagram-PRI3JC2R-CjS1dL8k.js} +1 -1
- package/dist/assets/yacas-Ckyxh7oh.js +1 -0
- package/dist/assets/z80-Dr5sQweg.js +1 -0
- package/dist/index.html +24 -24
- package/package.json +1 -1
- package/src/components/chat/chat-panel.tsx +36 -3
- package/src/components/editor/actions/pair-with-agent-modal.tsx +1 -0
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/slides/reveal-component.tsx +3 -3
- package/src/components/slides/slide-form.tsx +11 -3
- package/dist/assets/LazyAnyLanguageCodeMirror-DFv3yT20.js +0 -2
- package/dist/assets/apl-CZC-w0DM.js +0 -1
- package/dist/assets/asciiarmor-Dxkbb4uS.js +0 -1
- package/dist/assets/asn1-CrA2MPaL.js +0 -1
- package/dist/assets/brainfuck-B5oLVauS.js +0 -1
- package/dist/assets/channel-V1GV6hO1.js +0 -1
- package/dist/assets/chat-panel-B2a6auyE.js +0 -3
- package/dist/assets/chunk-55IACEB6-BRJvcREw.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-C8jlAFC-.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-DYST6eBL.js +0 -1
- package/dist/assets/clojure-D60XavrX.js +0 -1
- package/dist/assets/cmake-CrWsGXcU.js +0 -1
- package/dist/assets/cobol-CZosvDFE.js +0 -1
- package/dist/assets/coffeescript-DQGIz3iX.js +0 -1
- package/dist/assets/commonlisp-DrWSVXOx.js +0 -1
- package/dist/assets/crystal-CMu2RgP7.js +0 -1
- package/dist/assets/cypher-C4I5nX3I.js +0 -1
- package/dist/assets/d-B_OAkSA3.js +0 -1
- package/dist/assets/dependency-graph-panel-B70NP6bp.js +0 -5
- package/dist/assets/diff-f-qA4U7T.js +0 -1
- package/dist/assets/dist-B2-3vH3I.js +0 -1
- package/dist/assets/dist-B3r3gs4u.js +0 -1
- package/dist/assets/dist-Dx65VI0Y.js +0 -1
- package/dist/assets/dist-FSgOAwAH.js +0 -1
- package/dist/assets/dtd-DWRTME-w.js +0 -1
- package/dist/assets/dylan-DnEm_ULG.js +0 -1
- package/dist/assets/ecl-Dbf1A5nG.js +0 -1
- package/dist/assets/eiffel-Xj76_r0X.js +0 -1
- package/dist/assets/elm-nUwO24NA.js +0 -1
- package/dist/assets/erlang-CFVqMiR0.js +0 -1
- package/dist/assets/factor-mJPTAioV.js +0 -1
- package/dist/assets/forth-DBQr6L61.js +0 -1
- package/dist/assets/fortran-BkjqlXUL.js +0 -1
- package/dist/assets/gas-BNFtcdO9.js +0 -1
- package/dist/assets/gherkin-BrOMWqkN.js +0 -1
- package/dist/assets/groovy-DuCnwFRS.js +0 -1
- package/dist/assets/haskell-BD39942g.js +0 -1
- package/dist/assets/haxe-CXsKoap0.js +0 -1
- package/dist/assets/idl-D7hb6rI1.js +0 -1
- package/dist/assets/infoDiagram-HS3SLOUP-CpBkxLyN.js +0 -2
- package/dist/assets/javascript-1S1_-Xac.js +0 -1
- package/dist/assets/julia-CbOUdU45.js +0 -1
- package/dist/assets/katex-BuYoGw8D.js +0 -1
- package/dist/assets/livescript-4YbxVKEy.js +0 -1
- package/dist/assets/lua-Dp2B-Joo.js +0 -1
- package/dist/assets/mathematica-BaSnKpgq.js +0 -1
- package/dist/assets/mbox-JZJfXD_G.js +0 -1
- package/dist/assets/mermaid-4DMBBIKO-BV51xhvi.js +0 -1
- package/dist/assets/mirc-BZe50pjl.js +0 -1
- package/dist/assets/mllike-Bgkhf51-.js +0 -1
- package/dist/assets/modelica-BzrnHsaM.js +0 -1
- package/dist/assets/mscgen-C7fmiScS.js +0 -1
- package/dist/assets/mumps-DYao3Wbn.js +0 -1
- package/dist/assets/nsis-BV9URIq2.js +0 -1
- package/dist/assets/ntriples-CCTjcLNo.js +0 -1
- package/dist/assets/octave-CalSSDIP.js +0 -1
- package/dist/assets/oz-BwBvNNj4.js +0 -1
- package/dist/assets/pascal-VtYjd8tX.js +0 -1
- package/dist/assets/perl-CuiQHSod.js +0 -1
- package/dist/assets/pig-CIHZG4Z9.js +0 -1
- package/dist/assets/powershell-CI2Wos2z.js +0 -1
- package/dist/assets/properties-CBOFbPgT.js +0 -1
- package/dist/assets/protobuf-CdcXLd43.js +0 -1
- package/dist/assets/pug-DJHP9Svh.js +0 -1
- package/dist/assets/puppet-B2nxuZc5.js +0 -1
- package/dist/assets/python-VpIaVd-6.js +0 -1
- package/dist/assets/q-CamvlcK6.js +0 -1
- package/dist/assets/r-CgsrYWFj.js +0 -1
- package/dist/assets/rpm-DBux1aMG.js +0 -1
- package/dist/assets/ruby-BWHIAyVi.js +0 -1
- package/dist/assets/sas-DJpj3tMb.js +0 -1
- package/dist/assets/scheme-DF-J69qP.js +0 -1
- package/dist/assets/shell-m-RSMeeH.js +0 -1
- package/dist/assets/sieve-CtzQvaig.js +0 -1
- package/dist/assets/smalltalk-ClFvBgAI.js +0 -1
- package/dist/assets/sparql-icVR0QFW.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-sSKQU37N.js +0 -1
- package/dist/assets/stylus-TkCXytG7.js +0 -1
- package/dist/assets/swift-CBYBwE0m.js +0 -1
- package/dist/assets/tcl-DvyBVTw2.js +0 -1
- package/dist/assets/textile-DA3WvzuI.js +0 -1
- package/dist/assets/toml-BJa3ckRR.js +0 -1
- package/dist/assets/troff-CqZSdBAp.js +0 -1
- package/dist/assets/ttcn-BouEBguh.js +0 -1
- package/dist/assets/ttcn-cfg-C1whpGsE.js +0 -1
- package/dist/assets/turtle-DQ8l-awL.js +0 -1
- package/dist/assets/useDependencyPanelTab-LJUqXtXa.js +0 -1
- package/dist/assets/useNotebookActions-C3H0OkTO.js +0 -4
- package/dist/assets/vb-B7wOdn6U.js +0 -1
- package/dist/assets/vbscript-DvH455rJ.js +0 -1
- package/dist/assets/velocity-B6C6O90i.js +0 -1
- package/dist/assets/verilog-JbcxpuFW.js +0 -1
- package/dist/assets/vhdl-SEFTp5Re.js +0 -1
- package/dist/assets/webidl-ChYZayPm.js +0 -1
- package/dist/assets/xquery-DWwllqyg.js +0 -1
- package/dist/assets/yacas-DQRdrpIp.js +0 -1
- package/dist/assets/z80-CGBxwDW7.js +0 -1
- /package/dist/assets/{ImageComparisonComponent-B5A-4CCj.js → ImageComparisonComponent-BIetTBDq.js} +0 -0
- /package/dist/assets/{Inputs-BG_nVZPt.js → Inputs-C6ftxLAJ.js} +0 -0
- /package/dist/assets/{Plot-CoEOwQq-.js → Plot-Ba3WGWNu.js} +0 -0
- /package/dist/assets/{apl-4hxG7HNk.js → apl-Byte72fT.js} +0 -0
- /package/dist/assets/{array-D5VxClQs.js → array-CC7vZNGO.js} +0 -0
- /package/dist/assets/{asciiarmor-Dv_174xi.js → asciiarmor-BU-VnG1Y.js} +0 -0
- /package/dist/assets/{asn1-iiMvplI8.js → asn1-hTvH3S4T.js} +0 -0
- /package/dist/assets/{asterisk-CC3QRUnf.js → asterisk-DIMri3P4.js} +0 -0
- /package/dist/assets/{brainfuck-C1zBqC_V.js → brainfuck-C-q1Rv8J.js} +0 -0
- /package/dist/assets/{chunk-4F5CHEZ2-DUo5vZ2r.js → chunk-4F5CHEZ2-eEwFz7fp.js} +0 -0
- /package/dist/assets/{chunk-B2363JML-BBEseLU0.js → chunk-B2363JML-COExSe0d.js} +0 -0
- /package/dist/assets/{chunk-DR5Q36YT-C0WIZcJM.js → chunk-DR5Q36YT-OB6tC_dd.js} +0 -0
- /package/dist/assets/{chunk-FRFDVMJY-CXpDqtzE.js → chunk-FRFDVMJY-CO3-6rb4.js} +0 -0
- /package/dist/assets/{chunk-PL6DKKU2-CdWr1t_8.js → chunk-PL6DKKU2-B9mDp5iV.js} +0 -0
- /package/dist/assets/{chunk-SJTYNZTY-SWJVmNtW.js → chunk-SJTYNZTY-Dh_h90Yu.js} +0 -0
- /package/dist/assets/{chunk-TQ3KTPDO-NHSLONf7.js → chunk-TQ3KTPDO-CFybjK0M.js} +0 -0
- /package/dist/assets/{chunk-UMXZTB3W-Ct179y25.js → chunk-UMXZTB3W-C3w83KpJ.js} +0 -0
- /package/dist/assets/{clear-button-CIwzVocs.js → clear-button-Cfe8K4j_.js} +0 -0
- /package/dist/assets/{click-outside-container-Bx6OOW4y.js → click-outside-container-BNVqwewc.js} +0 -0
- /package/dist/assets/{clike-DgscWMor.js → clike-BE-9Ct_H.js} +0 -0
- /package/dist/assets/{clojure-BHbbYwIQ.js → clojure-Co-TLeNo.js} +0 -0
- /package/dist/assets/{cmake-DLR6lpqL.js → cmake-B-Nm_Opd.js} +0 -0
- /package/dist/assets/{cobol-BCxTxy3w.js → cobol-BGdihAZT.js} +0 -0
- /package/dist/assets/{coffeescript-CpA2P5vm.js → coffeescript-BUZXkMUO.js} +0 -0
- /package/dist/assets/{colors-CWfEs9Oi.js → colors-BG8Z91CW.js} +0 -0
- /package/dist/assets/{common-keywords-0dB1lgek.js → common-keywords-15xBKau4.js} +0 -0
- /package/dist/assets/{commonlisp-IOtLAQXJ.js → commonlisp-CFkPbxvX.js} +0 -0
- /package/dist/assets/{crystal-D5D6_kGA.js → crystal-CqfqDl34.js} +0 -0
- /package/dist/assets/{css-DOb8-BDy.js → css-DPEtZWJi.js} +0 -0
- /package/dist/assets/{cypher-DLF7i4IG.js → cypher-B0t8FJvU.js} +0 -0
- /package/dist/assets/{cytoscape.esm-CuwfIk-V.js → cytoscape.esm-DT8iy6p1.js} +0 -0
- /package/dist/assets/{d-ByNdxjrk.js → d-DRa_XRSB.js} +0 -0
- /package/dist/assets/{diff-DgsriQcn.js → diff-GLneonpD.js} +0 -0
- /package/dist/assets/{dist-B6ehDvA-.js → dist-A7swzSTR.js} +0 -0
- /package/dist/assets/{dist-Cofj3PRM.js → dist-BF6UNR6V.js} +0 -0
- /package/dist/assets/{dist-Bc225YxE.js → dist-BQWswd1A.js} +0 -0
- /package/dist/assets/{dist-DviQ3W6h.js → dist-BQeNY9Zl.js} +0 -0
- /package/dist/assets/{dist-BA8xhrl2.js → dist-BXRWfNwi.js} +0 -0
- /package/dist/assets/{dist-fhXsH3fb.js → dist-BlOtCkpT.js} +0 -0
- /package/dist/assets/{dist-D8MaDlGc.js → dist-C78V1LRz.js} +0 -0
- /package/dist/assets/{dist-CcoNWYux.js → dist-CKT_lJKW.js} +0 -0
- /package/dist/assets/{dist-CNghxh0Q.js → dist-CNyMUs19.js} +0 -0
- /package/dist/assets/{dist-qBfIhsAs.js → dist-CXBpwk_w.js} +0 -0
- /package/dist/assets/{dist-D86l0QaP.js → dist-CciFN1z_.js} +0 -0
- /package/dist/assets/{dist-cS6yvaqe.js → dist-CocyeH0q.js} +0 -0
- /package/dist/assets/{dist-C_k5-SEy.js → dist-CpcTHxTt.js} +0 -0
- /package/dist/assets/{dist-WcxjmQmQ.js → dist-CsvFAFh9.js} +0 -0
- /package/dist/assets/{dist-oSdg9XA7.js → dist-D70Tz1Kr.js} +0 -0
- /package/dist/assets/{dist-CjBmWBr2.js → dist-DUHHizRG.js} +0 -0
- /package/dist/assets/{dist-CiOPfbN_.js → dist-DqVEVg0c.js} +0 -0
- /package/dist/assets/{dtd-BY21shY3.js → dtd-uVrZNVF0.js} +0 -0
- /package/dist/assets/{duckdb-keywords-DH8yhwVC.js → duckdb-keywords-CYQ5DEZJ.js} +0 -0
- /package/dist/assets/{dylan-D_hF5J0y.js → dylan-DkNeA4FZ.js} +0 -0
- /package/dist/assets/{ebnf-D73UE5Hl.js → ebnf-XMH6KY7E.js} +0 -0
- /package/dist/assets/{ecl-C1ORA0cg.js → ecl-CldUgvc9.js} +0 -0
- /package/dist/assets/{eiffel-1fe3g8c_.js → eiffel-CoMDRbRL.js} +0 -0
- /package/dist/assets/{elm-hjWurFzL.js → elm-Cb5XC6ev.js} +0 -0
- /package/dist/assets/{erlang-Bp4wxA5O.js → erlang-8H3fTZ3L.js} +0 -0
- /package/dist/assets/{esm-DM72gy9Q.js → esm-1wf4HygE.js} +0 -0
- /package/dist/assets/{fcl-1tMcz7c0.js → fcl-DyFJAgkq.js} +0 -0
- /package/dist/assets/{formatting-3l1CoS7X.js → formatting-CSG9kqNb.js} +0 -0
- /package/dist/assets/{forth-5O98d424.js → forth-B8kC4npz.js} +0 -0
- /package/dist/assets/{fortran-BIuAFxQ8.js → fortran-CNWGEL3c.js} +0 -0
- /package/dist/assets/{gallery-page-7ltBHWVR.js → gallery-page-Bcf7fYLy.js} +0 -0
- /package/dist/assets/{gas-CHHhShkY.js → gas-DnZQNTHK.js} +0 -0
- /package/dist/assets/{gherkin-DIjcYYBT.js → gherkin-JfGcGvci.js} +0 -0
- /package/dist/assets/{groovy-BYU3Z-yz.js → groovy-D0FWiAVm.js} +0 -0
- /package/dist/assets/{haskell-CjOVOYhk.js → haskell-wUB3uX-G.js} +0 -0
- /package/dist/assets/{haxe-Cb_U41Kf.js → haxe-g0JY6eL-.js} +0 -0
- /package/dist/assets/{http-DTsrgwMt.js → http-ySzAzH5W.js} +0 -0
- /package/dist/assets/{idl-XfUB5VqU.js → idl-CV2cLkPc.js} +0 -0
- /package/dist/assets/{init-BYCsRZEq.js → init-DsZRk2YA.js} +0 -0
- /package/dist/assets/{javascript-BZ9iuJe9.js → javascript-CT6okXEZ.js} +0 -0
- /package/dist/assets/{julia-ZgWUbR6s.js → julia-CKC48ufo.js} +0 -0
- /package/dist/assets/{katex-BNYG1in3.js → katex-BE4UDS50.js} +0 -0
- /package/dist/assets/{links-DguLoFik.js → links-1rtF1-eC.js} +0 -0
- /package/dist/assets/{livescript-PvHqMAnA.js → livescript-C43pZ6Ue.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-Z5Iceaci.js → loro_wasm_bg-CXnd80ne.js} +0 -0
- /package/dist/assets/{lua-BAkgehCh.js → lua-Cs2mb10K.js} +0 -0
- /package/dist/assets/{marimo-icons-CcDNGIRM.js → marimo-icons-CiwvnnsT.js} +0 -0
- /package/dist/assets/{math-D-qpUWKO.js → math-B-ZqhQTL.js} +0 -0
- /package/dist/assets/{mathematica-sYPoESCW.js → mathematica-B5FMK3ma.js} +0 -0
- /package/dist/assets/{mbox-BFVpgB4i.js → mbox-36Zrn5Bd.js} +0 -0
- /package/dist/assets/{mirc-DAwdMlc7.js → mirc-BKTAABSX.js} +0 -0
- /package/dist/assets/{mllike-CNENYbun.js → mllike-DbuClUqc.js} +0 -0
- /package/dist/assets/{modelica-FtpuFG3d.js → modelica-CKRvBm7N.js} +0 -0
- /package/dist/assets/{mscgen-BZpZ1eAc.js → mscgen-B4BRgnCi.js} +0 -0
- /package/dist/assets/{multi-icon-aZG-rdCp.js → multi-icon-NVkxesVZ.js} +0 -0
- /package/dist/assets/{mumps-BM8g2rR9.js → mumps-BFiMcyFV.js} +0 -0
- /package/dist/assets/{nginx-CREUN6EW.js → nginx-Cz_XvoTm.js} +0 -0
- /package/dist/assets/{node-sql-parser-fWuidk6P.js → node-sql-parser-BtkrI4pN.js} +0 -0
- /package/dist/assets/{ntriples-Dpum4Lhl.js → ntriples-QQAkJYAR.js} +0 -0
- /package/dist/assets/{octave-C-8skAyy.js → octave-DsTphmGZ.js} +0 -0
- /package/dist/assets/{oz-C9dNiWs3.js → oz-CD9rr5Iz.js} +0 -0
- /package/dist/assets/{panel-context-C3ham7ZV.js → panel-context-BJbBGfoL.js} +0 -0
- /package/dist/assets/{pascal-OtDoyUlT.js → pascal-DdHEIlJE.js} +0 -0
- /package/dist/assets/{path-_EHCEa2c.js → path-DvTahePH.js} +0 -0
- /package/dist/assets/{perl-Bq6zPLry.js → perl-DHPJBQ1u.js} +0 -0
- /package/dist/assets/{pig-CzHJ3vXa.js → pig-Yz7ERgca.js} +0 -0
- /package/dist/assets/{powershell-CPgLwhmC.js → powershell-CHPZ_bsU.js} +0 -0
- /package/dist/assets/{properties-Kfp4iofx.js → properties-CI9nc7K4.js} +0 -0
- /package/dist/assets/{protobuf-BtodseUb.js → protobuf-BYSIv2pY.js} +0 -0
- /package/dist/assets/{puppet-DqMZ-3jb.js → puppet-CEpLafZX.js} +0 -0
- /package/dist/assets/{python-Du1sm3Dz.js → python-BndVuwG1.js} +0 -0
- /package/dist/assets/{q-mTJjDbkl.js → q-L_cetpiW.js} +0 -0
- /package/dist/assets/{r-CiWGt8bY.js → r-Dd37AKWk.js} +0 -0
- /package/dist/assets/{request-registry-Gm-nOP6a.js → request-registry--h6PWG50.js} +0 -0
- /package/dist/assets/{requests-Bm3bohzL.js → requests-DqJEWJ-Q.js} +0 -0
- /package/dist/assets/{rpm-DoWl8uQ-.js → rpm-CHrvhtlN.js} +0 -0
- /package/dist/assets/{ruby-EPWn7HjP.js → ruby-BPOowfX6.js} +0 -0
- /package/dist/assets/{runs-_nm7RTvJ.js → runs-BD0G-C2A.js} +0 -0
- /package/dist/assets/{sas-C49N66K9.js → sas-BsEFSvEP.js} +0 -0
- /package/dist/assets/{scheme-BKBMeaMf.js → scheme-B42INBu7.js} +0 -0
- /package/dist/assets/{shell-B3Qif7WE.js → shell-BPea12OI.js} +0 -0
- /package/dist/assets/{sieve-D2oOzUQe.js → sieve-C-yPcLw5.js} +0 -0
- /package/dist/assets/{simple-mode-awvuWmjh.js → simple-mode-CFlvn0Mm.js} +0 -0
- /package/dist/assets/{smalltalk-D2JNyQE_.js → smalltalk-e7OO1ATb.js} +0 -0
- /package/dist/assets/{solr-DD6Hdy4w.js → solr-BAO4N63o.js} +0 -0
- /package/dist/assets/{sparql-B_E2GW41.js → sparql-B4I2Ledx.js} +0 -0
- /package/dist/assets/{spreadsheet-DQc2JQ5m.js → spreadsheet-DWqd5foV.js} +0 -0
- /package/dist/assets/{sql-Cj5Wcvsd.js → sql-RBdzBYsM.js} +0 -0
- /package/dist/assets/{src-faGJHwXX.js → src-BnrQkOKh.js} +0 -0
- /package/dist/assets/{stylus-R6o8NrsG.js → stylus-CBRbZwhN.js} +0 -0
- /package/dist/assets/{swift-Dbh-hbmH.js → swift-B2hnU7ha.js} +0 -0
- /package/dist/assets/{swiper-component-Dgt-sBCT.js → swiper-component-YGJlBaCp.js} +0 -0
- /package/dist/assets/{tcl-B7hCCUdg.js → tcl-BtyamtaZ.js} +0 -0
- /package/dist/assets/{terminal-S5iF6Td7.js → terminal-BydBi1dE.js} +0 -0
- /package/dist/assets/{textile-3T2abjma.js → textile-M9mhyNE9.js} +0 -0
- /package/dist/assets/{tiddlywiki-Co__osNU.js → tiddlywiki-BsHUDwie.js} +0 -0
- /package/dist/assets/{tiki-CfCZczlo.js → tiki-ZqBe4Kjv.js} +0 -0
- /package/dist/assets/{timer-BgiWPhV9.js → timer-B6DpdVnC.js} +0 -0
- /package/dist/assets/{toml-BfSTXCbK.js → toml-YxyxhyRy.js} +0 -0
- /package/dist/assets/{treemap-F5PoC_M0.js → treemap-DeGcO9km.js} +0 -0
- /package/dist/assets/{troff-TmwTwfFH.js → troff-C7xpi05X.js} +0 -0
- /package/dist/assets/{ttcn-BptQ-efU.js → ttcn-D3YytrJU.js} +0 -0
- /package/dist/assets/{ttcn-cfg-BJSeQh2j.js → ttcn-cfg-DlZ5vA9E.js} +0 -0
- /package/dist/assets/{turtle-NWQZPdQh.js → turtle-BSHvAsUe.js} +0 -0
- /package/dist/assets/{types-iYXk7c05.js → types-a-yURniQ.js} +0 -0
- /package/dist/assets/{useInterval-Bc-mr0KL.js → useInterval-2YvvhIZI.js} +0 -0
- /package/dist/assets/{vb-5MAVubtN.js → vb-DdkIDLlO.js} +0 -0
- /package/dist/assets/{vbscript-C3wI-prb.js → vbscript-DhYGmk_p.js} +0 -0
- /package/dist/assets/{velocity-BZ0SsVqc.js → velocity-DAXJNEw4.js} +0 -0
- /package/dist/assets/{verilog-sCLfsuOk.js → verilog-jmuT_L3b.js} +0 -0
- /package/dist/assets/{vhdl-D8-XDERr.js → vhdl-DcVQ97RU.js} +0 -0
- /package/dist/assets/{web-vitals-CJ8ovao_.js → web-vitals-xkV-JBVF.js} +0 -0
- /package/dist/assets/{webidl-C2DK9LNJ.js → webidl-B-YB_4OQ.js} +0 -0
- /package/dist/assets/{write-secret-modal-DEx_mRHR.js → write-secret-modal-BFLlHwgU.js} +0 -0
- /package/dist/assets/{ws-YSapF1PN.js → ws-BnE9sl8z.js} +0 -0
- /package/dist/assets/{xquery-Db3HYO3C.js → xquery-DOmY3Oe8.js} +0 -0
- /package/dist/assets/{yacas-DhfMSinV.js → yacas-pL3kJRXV.js} +0 -0
- /package/dist/assets/{z80-CH-vqbta.js → z80-VwVuI_MT.js} +0 -0
package/dist/assets/{sequenceDiagram-WL72ISMW-CtF8-7iq.js → sequenceDiagram-WL72ISMW-DQycpQtE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var wt;import"./purify.es-B9KxLTTS.js";import{u as Wt}from"./src-CyeQdfB6.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-7UJSqSFb.js";import{n as x,r as G}from"./src-faGJHwXX.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-fbQovzbZ.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-CXMqGP2w.js";import{t as De}from"./dist-BA8xhrl2.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-B7Xjx897.js";import{t as Ce}from"./chunk-QZHKN3VN-37WEuSLJ.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`:
|
|
1
|
+
var wt;import"./purify.es-B9KxLTTS.js";import{u as Wt}from"./src-CvyFXpBy.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-Cl0iW04v.js";import{n as x,r as G}from"./src-BnrQkOKh.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-BG7Eb4WW.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-DqzZqBCh.js";import{t as De}from"./dist-BXRWfNwi.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-f5ix6iSd.js";import{t as Ce}from"./chunk-QZHKN3VN-BAnb9AKF.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`:
|
|
2
2
|
`+V.showPosition()+`
|
|
3
3
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":"Parse error on line "+(_t+1)+": Unexpected "+(tt==Qt?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(ae,{text:V.match,token:this.terminals_[tt]||tt,line:V.yylineno,loc:Yt,expected:vt})}if(st[0]instanceof Array&&st.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(st[0]){case 1:_.push(tt),C.push(V.yytext),h.push(V.yylloc),_.push(st[1]),tt=null,Vt?(tt=Vt,Vt=null):(Jt=V.yyleng,g=V.yytext,_t=V.yylineno,Yt=V.yylloc,Zt>0&&Zt--);break;case 2:if(dt=this.productions_[st[1]][1],Tt.$=C[C.length-dt],Tt._$={first_line:h[h.length-(dt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(dt||1)].first_column,last_column:h[h.length-1].last_column},fe&&(Tt._$.range=[h[h.length-(dt||1)].range[0],h[h.length-1].range[1]]),Ft=this.performAction.apply(Tt,[g,Jt,_t,xt.yy,st[1],C,h].concat(Te)),Ft!==void 0)return Ft;dt&&(_=_.slice(0,-1*dt*2),C=C.slice(0,-1*dt),h=h.slice(0,-1*dt)),_.push(this.productions_[st[1]][0]),C.push(Tt.$),h.push(Tt._$),ee=It[_[_.length-2]][_[_.length-1]],_.push(ee);break;case 3:return!0}}return!0},"parse")};Ct.lexer=(function(){return{EOF:1,parseError:x(function(I,A){if(this.yy.parser)this.yy.parser.parseError(I,A);else throw Error(I)},"parseError"),setInput:x(function(I,A){return this.yy=A||this.yy||{},this._input=I,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var I=this._input[0];return this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I,I.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:x(function(I){var A=I.length,_=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===f.length?this.yylloc.first_column:0)+f[f.length-_.length].length-_[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(I){this.unput(this.match.slice(I))},"less"),pastInput:x(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var I=this.pastInput(),A=Array(I.length+1).join("-");return I+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as ie}from"./chunk-LvLJmgfZ.js";import{d as de,l as De,p as he,u as H}from"./useEvent-D91BmmQi.js";import{t as Be}from"./react-Bj1aDYRI.js";import{Ar as Ve,At as Me,Br as ue,D as Pe,Fn as Ee,Fr as xe,Gt as Oe,In as Ue,Ir as Re,Kt as Ae,Lr as Ge,M as We,Nr as se,Oi as ze,P as Ke,Pr as pe,Rn as He,Rt as Je,Ur as Xe,Vr as fe,Wr as be,Wt as Qe,_n as Ye,a as Ze,ar as ea,cr as aa,f as ta,hr as sa,or as la,vr as na,yr as le}from"./cells-1XaQzJBc.js";import"./react-dom-CSu739Rf.js";import{t as ge}from"./compiler-runtime-B3qBwwSJ.js";import{o as ra}from"./utils-Bok_hGT2.js";import{t as oa}from"./ErrorBoundary-DyYDV0HI.js";import{t as O}from"./cn-DCUzRj2J.js";import{t as ma}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-eipL3i3Y.js";import{n as ca}from"./multi-map-CUuNtzHt.js";import"./popover-Bz_0Vkyf.js";import{G as ia,J as da,K as ha,U as ne,W as je,q as ua}from"./JsonOutput-CusPgY2j.js";import"./download-qESwLUZl.js";import{r as Ne}from"./radio-group-BarBLGia.js";import{t as re}from"./tooltip-DTV9tlSr.js";import{r as xa,t as ee}from"./button-BbCh-29a.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-wdPMRf6Z.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-BzFpW89-.js";import{t as ye}from"./add-connection-dialog-BpPTpNHa.js";import{t as ve}from"./plus-BgB18UzY.js";import{a as ja}from"./input-C3Hrdlqq.js";import{n as Na,o as ya}from"./column-preview-DVkTxMGI.js";import{t as va}from"./workflow-Bm8qF7yj.js";import"./dist-CBSMxaO_.js";import"./dist-CpTFpfm_.js";import"./dist-B1U1kGCR.js";import"./dist-ChF5Ln9c.js";import"./dist-CPczQFlJ.js";import"./session-0B5NBztP.js";import"./purify.es-B9KxLTTS.js";import"./dates-CTxr0EqQ.js";import{t as wa}from"./copy-icon-OjtDb4gO.js";import{t as Sa}from"./context-QkTujrKn.js";import"./utils-DCL4n9wx.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as we}from"./cell-link-DkEWt80K.js";import"./chunk-5FQGJX7Z-BzXnQz5s.js";import{r as Ca}from"./html-to-image-7hWS7hJz.js";import{o as _a}from"./focus-DCbL1KSz.js";import{n as oe}from"./useAsyncData-bgszE9F0.js";import{a as ka,i as $a,n as Fa,o as Se,r as Ia,t as La}from"./table-BGPSHfig.js";import"./react-resizable-panels.browser.esm-CV8-hvjx.js";import{a as Ta,d as qa,o as ae,t as Da}from"./command-KARR7KMq.js";import{n as Ba}from"./icons-Ol38nIbL.js";import{r as Va}from"./tree-actions-BM_EJr3E.js";import{a as me,i as te,o as ce,r as Ce,s as _e,t as Ma}from"./components-CJAJOpwt.js";import{t as Pa}from"./empty-state-Cjt8SfMh.js";import{n as Ea,t as Oa}from"./common-DPbBXxzB.js";import{a as Ua,i as Ra,n as ke,r as $e,t as Fe}from"./components-vyxhSeYE.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(xe),s=a(He),l=a(Ze);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(Ve));for(let s of be){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=>be.has(s.name)?1:0)}),Wa=()=>{let a=(0,A.c)(32),[e,s]=C.useState(""),l=de(pe),r=H(Ga),o=H(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)(ye,{children:(0,t.jsxs)(ee,{variant:"outline",size:"sm",children:["Add database or catalog",(0,t.jsx)(ve,{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)(Ta,{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)(ye,{children:(0,t.jsx)(ee,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,t.jsx)(ve,{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)(Ka,{engineName:x.name,database:b,hasSearch:n,children:(0,t.jsx)(Ha,{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)(Le,{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)(qa,{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)(Da,{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===Xe,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)(Me,{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=ea(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)(Va,{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},Ka=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 T=n&&o,k;return e[23]!==_||e[24]!==T?(k=(0,t.jsxs)(t.Fragment,{children:[_,T]}),e[23]=_,e[24]=T,e[25]=k):k=e[25],k},Ha=({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 Qe.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)(Le,{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(ue(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)(sa,{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},Le=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 Ae.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 Oe.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=H(ra),u=_a(),{createNewCell:x}=Pe(),b=Ne(),y;e[10]!==b||e[11]!==m||e[12]!==x||e[13]!==u||e[14]!==l||e[15]!==s?(y=()=>{Ca({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 fe({table:s,columnName:"*",sqlTableContext:l});switch(s.source_type){case"local":return`mo.ui.table(${s.name})`;case"duckdb":case"connection":return fe({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,T;e[20]!==d||e[21]!==h||e[22]!==p||e[23]!==l||e[24]!==s?(T=()=>{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]=T):T=e[25];let k=T,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"?aa:na,{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 V=q,M=l?`${l.database}.${l.schema}.${s.name}`:s.name,P=l&&(ue(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]===V?I=e[37]:(I=V(),e[36]=V,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 L;e[45]===v?L=e[46]:(L=xa.stopPropagation(()=>v()),e[45]=v,e[46]=L);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]===L?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:L,children:X})}),e[48]=L,e[49]=W);let z;e[50]!==n||e[51]!==F||e[52]!==U||e[53]!==R||e[54]!==W||e[55]!==$||e[56]!==M?(z=(0,t.jsxs)(ae,{className:$,value:M,"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]=M,e[57]=z):z=e[57];let K;e[58]!==n||e[59]!==k?(K=n&&k(),e[58]=n,e[59]=k,e[60]=K):K=e[60];let Q;return e[61]!==z||e[62]!==K?(Q=(0,t.jsxs)(t.Fragment,{children:[z,K]}),e[61]=z,e[62]=K,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=H(pe),g=de(Re);j&&o&&n(!1),g(o?L=>new Set([...L,`${s.name}:${l.name}`]):L=>(L.delete(`${s.name}:${l.name}`),new Set(L)));let N=Ne(),{columnsPreviews:f}=Ge(),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=L=>{N(L)},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 T=r?S.columnSql:S.columnLocal,k;e[13]===T?k=e[14]:(k=O("flex flex-row gap-2 items-center flex-1",T),e[13]=T,e[14]=k);let q;e[15]!==l.type||e[16]!==y?(q=(0,t.jsx)(Ma,{columnName:y,dataType:l.type}),e[15]=l.type,e[16]=y,e[17]=q):q=e[17];let V;e[18]===i?V=e[19]:(V=i&&u({tooltipContent:"Primary key",content:"PK"}),e[18]=i,e[19]=V);let M;e[20]===p?M=e[21]:(M=p&&u({tooltipContent:"Indexed",content:"IDX"}),e[20]=p,e[21]=M);let P;e[22]!==k||e[23]!==q||e[24]!==V||e[25]!==M?(P=(0,t.jsxs)("div",{className:k,children:[q,V,M]}),e[22]=k,e[23]=q,e[24]=V,e[25]=M,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=ta(o);n&&Ye(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)(we,{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)(we,{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 Te=(0,C.memo)(({className:a,cellIds:e,variables:s})=>{let[l,r]=C.useState([]),[o,n]=C.useState(""),j=Ke(),{locale:g}=Sa(),N=(0,C.useMemo)(()=>{let c=i=>{let h=j[i];return Je(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=ia({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:ha(),onGlobalFilterChange:n,getFilteredRowModel:ua(),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)(La,{className:O("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,t.jsx)(ka,{children:(0,t.jsx)(Se,{className:"whitespace-nowrap text-xs",children:f.getFlatHeaders().map(c=>(0,t.jsx)($a,{className:"sticky top-0 bg-background border-b",children:je(c.column.columnDef.header,c.getContext())},c.id))})}),(0,t.jsx)(Fa,{children:f.getRowModel().rows.map(c=>(0,t.jsx)(Se,{className:"hover:bg-accent",children:c.getVisibleCells().map(i=>(0,t.jsx)(Ia,{className:"border-b",children:je(i.column.columnDef.cell,i.getContext())},i.id))},c.id))})]})]})});Te.displayName="VariableTable";var at=ge(),tt=ze("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},Ee),st=()=>{let a=(0,at.c)(24),e=Ue(),s=We(),l=H(xe),r=H(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)(la,{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)(Te,{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
|
+
import{s as ie}from"./chunk-LvLJmgfZ.js";import{d as de,l as De,p as he,u as H}from"./useEvent-D91BmmQi.js";import{t as Be}from"./react-Bj1aDYRI.js";import{Ar as Ve,At as Me,Br as ue,D as Pe,Fn as Ee,Fr as xe,Gt as Oe,In as Ue,Ir as Re,Kt as Ae,Lr as Ge,M as We,Nr as se,Oi as ze,P as Ke,Pr as pe,Rn as He,Rt as Je,Ur as Xe,Vr as fe,Wr as be,Wt as Qe,_n as Ye,a as Ze,ar as ea,cr as aa,f as ta,hr as sa,or as la,vr as na,yr as le}from"./cells-BP6kg4iF.js";import"./react-dom-CSu739Rf.js";import{t as ge}from"./compiler-runtime-B3qBwwSJ.js";import{o as ra}from"./utils-Bok_hGT2.js";import{t as oa}from"./ErrorBoundary-DyYDV0HI.js";import{t as O}from"./cn-DCUzRj2J.js";import{t as ma}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-eipL3i3Y.js";import{n as ca}from"./multi-map-CUuNtzHt.js";import"./popover-Bz_0Vkyf.js";import{G as ia,J as da,K as ha,U as ne,W as je,q as ua}from"./JsonOutput-DzATTBoP.js";import"./download-DrC3sFE3.js";import{r as Ne}from"./radio-group-cvI-M2aa.js";import{t as re}from"./tooltip-DTV9tlSr.js";import{r as xa,t as ee}from"./button-BbCh-29a.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-wdPMRf6Z.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-d9Lol4Mr.js";import{t as ye}from"./add-connection-dialog-DdJBM1-Q.js";import{t as ve}from"./plus-BgB18UzY.js";import{a as ja}from"./input-C3Hrdlqq.js";import{n as Na,o as ya}from"./column-preview-9_vf_vQt.js";import{t as va}from"./workflow-Bm8qF7yj.js";import"./dist-CBSMxaO_.js";import"./dist-CpTFpfm_.js";import"./dist-B1U1kGCR.js";import"./dist-ChF5Ln9c.js";import"./dist-CPczQFlJ.js";import"./session-0B5NBztP.js";import"./purify.es-B9KxLTTS.js";import"./dates-CTxr0EqQ.js";import{t as wa}from"./copy-icon-OjtDb4gO.js";import{t as Sa}from"./context-QkTujrKn.js";import"./utils-DCL4n9wx.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as we}from"./cell-link-Bkd6QnOS.js";import"./chunk-5FQGJX7Z-D9iBG0F7.js";import{r as Ca}from"./html-to-image-EYrNFuGt.js";import{o as _a}from"./focus-D2kXD_rc.js";import{n as oe}from"./useAsyncData-bgszE9F0.js";import{a as ka,i as $a,n as Fa,o as Se,r as Ia,t as La}from"./table-BGPSHfig.js";import"./react-resizable-panels.browser.esm-CV8-hvjx.js";import{a as Ta,d as qa,o as ae,t as Da}from"./command-KARR7KMq.js";import{n as Ba}from"./icons-Ol38nIbL.js";import{r as Va}from"./tree-actions-BM_EJr3E.js";import{a as me,i as te,o as ce,r as Ce,s as _e,t as Ma}from"./components-DvggA56E.js";import{t as Pa}from"./empty-state-Cjt8SfMh.js";import{n as Ea,t as Oa}from"./common-G2mwxgr_.js";import{a as Ua,i as Ra,n as ke,r as $e,t as Fe}from"./components-D2tmc0KN.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(xe),s=a(He),l=a(Ze);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(Ve));for(let s of be){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=>be.has(s.name)?1:0)}),Wa=()=>{let a=(0,A.c)(32),[e,s]=C.useState(""),l=de(pe),r=H(Ga),o=H(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)(ye,{children:(0,t.jsxs)(ee,{variant:"outline",size:"sm",children:["Add database or catalog",(0,t.jsx)(ve,{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)(Ta,{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)(ye,{children:(0,t.jsx)(ee,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,t.jsx)(ve,{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)(Ka,{engineName:x.name,database:b,hasSearch:n,children:(0,t.jsx)(Ha,{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)(Le,{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)(qa,{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)(Da,{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===Xe,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)(Me,{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=ea(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)(Va,{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},Ka=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 T=n&&o,k;return e[23]!==_||e[24]!==T?(k=(0,t.jsxs)(t.Fragment,{children:[_,T]}),e[23]=_,e[24]=T,e[25]=k):k=e[25],k},Ha=({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 Qe.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)(Le,{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(ue(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)(sa,{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},Le=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 Ae.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 Oe.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=H(ra),u=_a(),{createNewCell:x}=Pe(),b=Ne(),y;e[10]!==b||e[11]!==m||e[12]!==x||e[13]!==u||e[14]!==l||e[15]!==s?(y=()=>{Ca({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 fe({table:s,columnName:"*",sqlTableContext:l});switch(s.source_type){case"local":return`mo.ui.table(${s.name})`;case"duckdb":case"connection":return fe({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,T;e[20]!==d||e[21]!==h||e[22]!==p||e[23]!==l||e[24]!==s?(T=()=>{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]=T):T=e[25];let k=T,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"?aa:na,{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 V=q,M=l?`${l.database}.${l.schema}.${s.name}`:s.name,P=l&&(ue(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]===V?I=e[37]:(I=V(),e[36]=V,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 L;e[45]===v?L=e[46]:(L=xa.stopPropagation(()=>v()),e[45]=v,e[46]=L);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]===L?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:L,children:X})}),e[48]=L,e[49]=W);let z;e[50]!==n||e[51]!==F||e[52]!==U||e[53]!==R||e[54]!==W||e[55]!==$||e[56]!==M?(z=(0,t.jsxs)(ae,{className:$,value:M,"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]=M,e[57]=z):z=e[57];let K;e[58]!==n||e[59]!==k?(K=n&&k(),e[58]=n,e[59]=k,e[60]=K):K=e[60];let Q;return e[61]!==z||e[62]!==K?(Q=(0,t.jsxs)(t.Fragment,{children:[z,K]}),e[61]=z,e[62]=K,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=H(pe),g=de(Re);j&&o&&n(!1),g(o?L=>new Set([...L,`${s.name}:${l.name}`]):L=>(L.delete(`${s.name}:${l.name}`),new Set(L)));let N=Ne(),{columnsPreviews:f}=Ge(),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=L=>{N(L)},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 T=r?S.columnSql:S.columnLocal,k;e[13]===T?k=e[14]:(k=O("flex flex-row gap-2 items-center flex-1",T),e[13]=T,e[14]=k);let q;e[15]!==l.type||e[16]!==y?(q=(0,t.jsx)(Ma,{columnName:y,dataType:l.type}),e[15]=l.type,e[16]=y,e[17]=q):q=e[17];let V;e[18]===i?V=e[19]:(V=i&&u({tooltipContent:"Primary key",content:"PK"}),e[18]=i,e[19]=V);let M;e[20]===p?M=e[21]:(M=p&&u({tooltipContent:"Indexed",content:"IDX"}),e[20]=p,e[21]=M);let P;e[22]!==k||e[23]!==q||e[24]!==V||e[25]!==M?(P=(0,t.jsxs)("div",{className:k,children:[q,V,M]}),e[22]=k,e[23]=q,e[24]=V,e[25]=M,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=ta(o);n&&Ye(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)(we,{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)(we,{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 Te=(0,C.memo)(({className:a,cellIds:e,variables:s})=>{let[l,r]=C.useState([]),[o,n]=C.useState(""),j=Ke(),{locale:g}=Sa(),N=(0,C.useMemo)(()=>{let c=i=>{let h=j[i];return Je(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=ia({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:ha(),onGlobalFilterChange:n,getFilteredRowModel:ua(),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)(La,{className:O("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,t.jsx)(ka,{children:(0,t.jsx)(Se,{className:"whitespace-nowrap text-xs",children:f.getFlatHeaders().map(c=>(0,t.jsx)($a,{className:"sticky top-0 bg-background border-b",children:je(c.column.columnDef.header,c.getContext())},c.id))})}),(0,t.jsx)(Fa,{children:f.getRowModel().rows.map(c=>(0,t.jsx)(Se,{className:"hover:bg-accent",children:c.getVisibleCells().map(i=>(0,t.jsx)(Ia,{className:"border-b",children:je(i.column.columnDef.cell,i.getContext())},i.id))},c.id))})]})]})});Te.displayName="VariableTable";var at=ge(),tt=ze("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},Ee),st=()=>{let a=(0,at.c)(24),e=Ue(),s=We(),l=H(xe),r=H(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)(la,{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)(Te,{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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./shell-BPea12OI.js";export{e as shell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./sieve-C-yPcLw5.js";export{e as sieve};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a}from"./smalltalk-e7OO1ATb.js";export{a as smalltalk};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as O}from"./react-Bj1aDYRI.js";import{D as P}from"./cells-
|
|
1
|
+
import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as O}from"./react-Bj1aDYRI.js";import{D as P}from"./cells-BP6kg4iF.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{n as q}from"./useEventListener-DvoEXWke.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-eipL3i3Y.js";import{t as T}from"./tooltip-DTV9tlSr.js";import{t as w}from"./button-BbCh-29a.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 M,t as B}from"./LazyAnyLanguageCodeMirror-BEvXb3VX.js";import{t as J}from"./x-C-6liIBr.js";import{t as K}from"./spinner-Bhir8k53.js";import{t as L}from"./plus-BgB18UzY.js";import"./dist-CBSMxaO_.js";import"./dist-CpTFpfm_.js";import"./dist-B1U1kGCR.js";import"./dist-ChF5Ln9c.js";import"./dist-CPczQFlJ.js";import"./session-0B5NBztP.js";import{r as U}from"./useTheme-KJ1rGmnj.js";import"./purify.es-B9KxLTTS.js";import{t as V}from"./RenderHTML-BvW-obUg.js";import{a as X,c as Y,i as Q,n as Z,r as ee}from"./dialog-DzC_QCtT.js";import{n as te}from"./ImperativeModal-B3Th7k4R.js";import{n as se}from"./error-banner-LdWZDbqd.js";import{o as re}from"./focus-D2kXD_rc.js";import{n as le}from"./useAsyncData-bgszE9F0.js";import{n as oe,r as ie,t as D}from"./react-resizable-panels.browser.esm-CV8-hvjx.js";import{a as ae,d as ne,o as me,r as ce,t as de}from"./command-KARR7KMq.js";import{t as pe}from"./empty-state-Cjt8SfMh.js";import{n as he,r as fe}from"./panel-context-BJbBGfoL.js";import{t as E}from"./kiosk-mode-Ht1DwVD4.js";var H=$(),C=I(O(),1),s=I(R(),1),xe=q;const ue=t=>{let e=(0,H.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,H.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}=le(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)(ae,{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)(ce,{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)(D,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(de,{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)(ie,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(D,{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)(oe,{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}=P(),a=re(),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)(M,{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)(E,{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)(E,{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)(M,{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)(me,{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-B4I2Ledx.js";export{r as sparql};
|
|
@@ -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-BgiWPhV9.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-B6DpdVnC.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 Vt=Object.defineProperty;var $e=f=>{throw TypeError(f)};var Qt=(f,h,y)=>h in f?Vt(f,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):f[h]=y;var n=(f,h,y)=>Qt(f,typeof h!="symbol"?h+"":h,y),ce=(f,h,y)=>h.has(f)||$e("Cannot "+y);var o=(f,h,y)=>(ce(f,h,"read from private field"),y?y.call(f):h.get(f)),_=(f,h,y)=>h.has(f)?$e("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(f):h.set(f,y),C=(f,h,y,Q)=>(ce(f,h,"write to private field"),Q?Q.call(f,y):h.set(f,y),y),A=(f,h,y)=>(ce(f,h,"access private method"),y);import{i as U,p as ne,u as Kt}from"./useEvent-D91BmmQi.js";import{Di as Yt,Mi as Gt,Ni as Y,Nn as Zt,Si as Jt,at as ze,b as Xt,wi as er,x as tr,yi as rr,__tla as sr}from"./cells-
|
|
1
|
+
var Vt=Object.defineProperty;var $e=f=>{throw TypeError(f)};var Qt=(f,h,y)=>h in f?Vt(f,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):f[h]=y;var n=(f,h,y)=>Qt(f,typeof h!="symbol"?h+"":h,y),ce=(f,h,y)=>h.has(f)||$e("Cannot "+y);var o=(f,h,y)=>(ce(f,h,"read from private field"),y?y.call(f):h.get(f)),_=(f,h,y)=>h.has(f)?$e("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(f):h.set(f,y),C=(f,h,y,Q)=>(ce(f,h,"write to private field"),Q?Q.call(f,y):h.set(f,y),y),A=(f,h,y)=>(ce(f,h,"access private method"),y);import{i as U,p as ne,u as Kt}from"./useEvent-D91BmmQi.js";import{Di as Yt,Mi as Gt,Ni as Y,Nn as Zt,Si as Jt,at as ze,b as Xt,wi as er,x as tr,yi as rr,__tla as sr}from"./cells-BP6kg4iF.js";import{t as nr}from"./get-C-qh_et5.js";import{t as ar}from"./debounce-DhnxH9Rh.js";import{t as ir}from"./_baseSet-CxV9N1bc.js";import{_ as p,y as g}from"./useEventListener-DvoEXWke.js";import{t as or}from"./invariant-BUdrueMv.js";import{S as lr}from"./utils-Bok_hGT2.js";import{T as ur,c as pe,l as Ve,n as dr}from"./config-hed0CaQL.js";import{n as cr}from"./switch-YcZLs0mS.js";import{n as pr}from"./globals-Dd7eo1nD.js";import{t as fr}from"./createReducer-CI9qeK_X.js";import{r as hr}from"./strings-wdPMRf6Z.js";import{t as fe}from"./requests-DIwGYs0l.js";import{a as Qe,l as mr,r as Ke,__tla as gr}from"./markdown-renderer-d9Lol4Mr.js";import{t as yr}from"./DeferredRequestRegistry-CNldVcrP.js";import{t as wr}from"./preload-helper-BPPi7vOr.js";import{t as Ye}from"./Deferred-CP7vq682.js";import{t as Ge}from"./uuid-e9lSomwA.js";import{t as br}from"./use-toast-IPAtJGea.js";import{n as vr}from"./RenderHTML-BvW-obUg.js";import{t as _r}from"./useRunCells-rD6HJnx6.js";import{n as Cr,t as Rr}from"./blob-Bgnx1kuY.js";import{n as xr,r as qr,t as Sr}from"./share-DMwTZOTH.js";import{i as Ze,r as Er,t as Mr}from"./events-CPoJAfgx.js";let Je,Xe,et,he,me,tt,ge,rt,V,st,nt,ye,we,at,it,ot,lt,ae,ut,dt,ie,G,ct,be,kr=Promise.all([(()=>{try{return sr}catch{}})(),(()=>{try{return gr}catch{}})()]).then(async()=>{var W,ee,ft,Ae,k,T,E,Ue,P,We,F,K,B,oe,Te,je,te,I,L,H,R,j,N,ht,mt,gt,re;function f(t,e,r){return t==null?t:ir(t,e,r)}G=f,ct=ne(null);var{valueAtom:h,useActions:y}=fr(()=>({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:[]})});Xe=()=>Kt(h),Je=function(){return y()};let Q,_e,Ce;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)}},me=class ve{constructor(e){n(this,"subscriptions",new Q);this.producer=e}static withProducerCallback(e){return new ve(e)}static empty(){return new ve}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)}},_e=1e10,Ce=1e3;function Z(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 wt(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,zt)}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=Ce}=t;t.transport&&a(t.transport),t.requestHandler&&u(t.requestHandler),t._debugHooks&&r(t._debugHooks);let v=0;function x(){return v<=_e?++v:v=0}let q=new Map,S=new Map;function $(l,...c){let w=c[0];return new Promise((m,b)=>{var z;if(!s.send)throw Z(["send"],"make requests");let M=x(),O={type:"request",id:M,method:l,params:w};q.set(M,{resolve:m,reject:b}),d!==1/0&&S.set(M,setTimeout(()=>{S.delete(M),b(Error("RPC request timed out."))},d)),(z=e.onSend)==null||z.call(e,O),s.send(O)})}let se=new Proxy($,{get:(l,c,w)=>c in l?Reflect.get(l,c,w):m=>$(c,m)}),De=se;function Oe(l,...c){var b;let w=c[0];if(!s.send)throw Z(["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(Oe,{get:(l,c,w)=>c in l?Reflect.get(l,c,w):m=>Oe(c,m)}),He=Be,D=new Map,de=new Set;function Ht(l,c){var w;if(!s.registerHandler)throw Z(["registerHandler"],"register message listeners");if(l==="*"){de.add(c);return}D.has(l)||D.set(l,new Set),(w=D.get(l))==null||w.add(c)}function $t(l,c){var w,m;if(l==="*"){de.delete(c);return}(w=D.get(l))==null||w.delete(c),((m=D.get(l))==null?void 0:m.size)===0&&D.delete(l)}async function zt(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 Z(["send","requestHandler"],"handle requests");let{id:m,method:b,params:M}=l,O;try{O={type:"response",id:m,success:!0,payload:await i(b,M)}}catch(z){if(!(z instanceof Error))throw z;O={type:"response",id:m,success:!1,error:z.message}}(w=e.onSend)==null||w.call(e,O),s.send(O);return}if(l.type==="response"){let m=S.get(l.id);m!=null&&clearTimeout(m);let{resolve:b,reject:M}=q.get(l.id)??{};l.success?b==null||b(l.payload):M==null||M(Error(l.error));return}if(l.type==="message"){for(let b of de)b(l.id,l.payload);let m=D.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:De,send:Be,sendProxy:He,addMessageListener:Ht,removeMessageListener:$t,proxy:{send:He,request:De},_setDebugHooks:r}}function bt(t){return wt(t)}var Re="[transport-id]";function vt(t,e){let{transportId:r}=e;return r==null?t:{[Re]:r,data:t}}function _t(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[Re]!==r)return[!0];i=t.data}return a===!1?[!0]:[!1,i]}function Ct(t,e={}){let{transportId:r,filter:s,remotePort:a}=e,i=t,u=a??t,d;return{send(v){u.postMessage(vt(v,{transportId:r}))},registerHandler(v){d=x=>{let q=x.data,[S,$]=_t(q,{transportId:r,filter:()=>s==null?void 0:s(x)});S||v($)},i.addEventListener("message",d)},unregisterHandler(){d&&i.removeEventListener("message",d)}}}function Rt(t,e){return Ct(t,e)}function xe(t){return bt({transport:Rt(t,{transportId:"marimo-transport"}),maxRequestTime:2e4,_debugHooks:{onSend:e=>{p.debug("[rpc] Parent -> Worker",e)},onReceive:e=>{p.debug("[rpc] Worker -> Parent",e)}}})}be=ne("Initializing..."),ie=ne("loading"),et=ne(t=>{let e=t(Xt),r=Object.values(e.cellRuntime);return r.some(s=>!mr(s.output))?!0:r.every(s=>s.status==="idle")});var qe=xr(),Se="marimo:file",Ee=new rr(null);const xt={saveFile(t){Ee.set(Se,t)},readFile(){return Ee.get(Se)}};var qt={saveFile(t){Y.setCodeForHash((0,qe.compressToEncodedURIComponent)(t))},readFile(){let t=Y.getCodeFromHash()||Y.getCodeFromSearchParam();return t?(0,qe.decompressFromEncodedURIComponent)(t):null}};const St={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 Mt={saveFile(t){},readFile(){return U.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
|
`)}},Me=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 J;V=new Me([Mt,St,qt]),J=new Me([xt,Et,kt]),we=class pt{constructor(){n(this,"initialized",new Ye);n(this,"sendRename",async({filename:e})=>(e===null||(Y.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),J.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=>(U.get(tr)||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}),cr.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),J.saveFile(e.contents)),qr(),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=Sr({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=>{let r=null;return e.file&&(r=(await Cr(e.file)).split(",")[1]??""),await this.rpc.proxy.request.bridge({functionName:"create_file_or_directory",payload:{path:e.path,type:e.type,name:e.name,contents:r}})});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);ur()&&(this.rpc=xe(new Worker(new URL(""+new URL("worker-B38WhSlZ.js",import.meta.url).href,""+import.meta.url),{type:"module",name:ke()})),this.rpc.addMessageListener("ready",()=>{this.startSession()}),this.rpc.addMessageListener("initialized",()=>{this.saveRpc=this.getSaveWorker(),this.setInterruptBuffer(),U.set(ie,"ready"),this.initialized.resolve()}),this.rpc.addMessageListener("initializingMessage",({message:e})=>{U.set(be,e)}),this.rpc.addMessageListener("initializedError",({error:e})=>{if(this.initialized.status==="resolved"){p.error(e),br({title:"Error initializing",description:e,variant:"danger"});return}U.set(ie,"error"),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 pt),window[e]}getSaveWorker(){return ze()==="read"?(p.debug("Using partially disabled SaveWorker in read-mode"),{readFile:g,readNotebook:async()=>await V.readFile()??"",saveNotebook:g}):xe(new Worker(new URL(""+new URL("save-worker-D2iQi-UK.js",import.meta.url).href,""+import.meta.url),{type:"module",name:ke()})).proxy.request}async startSession(){let e=await V.readFile(),r=await J.readFile(),s=U.get(er)??Y.getFilename(),a=U.get(lr),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:ze()==="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})}},st=function(){return me.withProducerCallback(t=>{we.INSTANCE.attachMessageConsumer(t)})};function ke(){let t=typeof window<"u"&&window.__MARIMO_HAS_WASM_CONTROLLER__===!0;return pr()+(t?"::controller":"")}rt=function(t=pe()){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=X(a,t);if(i){let u=await(await e(i)).arrayBuffer();return new Response(u,{headers:{"Content-Type":Ft(a)}})}return e(r,s)}catch(i){return p.error("Error parsing URL",i),e(r,s)}},()=>{window.fetch=e}};function Ft(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}ot=function(t,e=pe()){let r=t.http.bind(t),s=t.load.bind(t);return t.http=async a=>{let i=X(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=X(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 Fe(t){return t.startsWith(".")?t.slice(1):t}function Pt(t,e=pe()){let r=X(t,e);if(!r)return t;let s=Rr(r);return URL.createObjectURL(s)}function X(t,e){let r=document.baseURI;r.startsWith("blob:")&&(r=r.replace("blob:",""));let s=new URL(t,r).pathname,a=Pe(t),i=Pe(s);return e[t]||e[Fe(t)]||e[s]||e[Fe(s)]||a&&e[a]||i&&e[i]}function Pe(t){let e=t.indexOf("/@file/");return e===-1?null:t.slice(e)}function le(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(...le(a,[...e,s]));else if(typeof t=="object"&&t)for(let[s,a]of Object.entries(t))r.push(...le(a,[...e,s]));return r}function It(t){let e=le(t);if(e.length===0)return{state:t,buffers:[],bufferPaths:[]};let r=structuredClone(t),s=[],a=[];for(let i of e){let u=nr(t,i);if(u instanceof DataView){let d=Qe(u);s.push(d),a.push(i),G(r,i,d)}}return{state:r,buffers:s,bufferPaths:a}}function Ie(t){let{state:e,bufferPaths:r,buffers:s}=t;if(!r||r.length===0)return e;s&&or(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"?G(a,u,Ke(d)):G(a,u,d)}return a}ge=function(t){return typeof t!="string"||t.length===0?!1:!!(/^(\.?\/)?@file\/[^?#]+$/.test(t)||Nt(t))};function Lt(){return U.get(_r)||vr()}function Nt(t){return t.startsWith("data:text/javascript;base64,")||t.startsWith("data:application/javascript;base64,")||t.startsWith("data:text/css;base64,")?Lt():!1}const Le={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 At(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 Ut=(Ae=class{constructor(){_(this,ee);_(this,W,new Map)}getModule(t,e){let r=o(this,W).get(e);if(r)return r;let s=A(this,ee,ft).call(this,t).catch(a=>{throw o(this,W).delete(e),a});return o(this,W).set(e,s),s}invalidate(t){p.debug(`[WidgetDefRegistry] Invalidating module cache for hash=${t}`),o(this,W).delete(t)}},W=new WeakMap,ee=new WeakSet,ft=async function(t){if(!ge(t))throw Error(`Refusing to load anywidget module from untrusted URL: ${String(t)}`);let e=dr(t).toString();return Ve()&&(e=Pt(e)),wr(()=>import(e).then(async r=>(await r.__tla,r)),[],import.meta.url)},Ae),Wt=(Ue=class{constructor(){_(this,k);_(this,T);_(this,E)}async bind(t,e){var i,u;if(o(this,E)&&o(this,T)===t)return o(this,E);o(this,E)&&o(this,T)!==t&&(p.debug("[WidgetBinding] Hot-reload detected, aborting previous binding"),(i=o(this,k))==null||i.abort(),C(this,k,void 0),C(this,E,void 0)),C(this,T,t),C(this,k,new AbortController);let r=o(this,k).signal,s=typeof t=="function"?await t():t,a=await((u=s.initialize)==null?void 0:u.call(s,{model:e,experimental:Le}));return a&&r.addEventListener("abort",a),C(this,E,async(d,v)=>{var q;let x=await((q=s.render)==null?void 0:q.call(s,{model:e,el:d,experimental:Le}));x&&At([v,r]).addEventListener("abort",()=>{let S=v.aborted?"view unmount":"binding destroyed";p.debug(`[WidgetBinding] Render cleanup triggered (reason: ${S})`),x()})}),o(this,E)}destroy(){var t;p.debug("[WidgetBinding] Destroying binding, aborting initialize lifecycle"),(t=o(this,k))==null||t.abort(),C(this,k,void 0),C(this,T,void 0),C(this,E,void 0)}},k=new WeakMap,T=new WeakMap,E=new WeakMap,Ue),Tt=(We=class{constructor(){_(this,P,new Map)}getOrCreate(t){let e=o(this,P).get(t);return e||(e=new Wt,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,We);dt=new Ut,ye=new Tt;var jt=(Te=class{constructor(t=1e4){_(this,B);_(this,F,new Map);_(this,K);C(this,K,t)}get(t){let e=A(this,B,oe).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,K)),e.deferred.promise}create(t,e){let r=A(this,B,oe).call(this,t);r.deferred.resolve(e(r.controller.signal))}set(t,e){A(this,B,oe).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,K=new WeakMap,B=new WeakSet,oe=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},Te),Ne=Symbol("marimo");function ue(t){return t[Ne]}ae=new jt;var Dt=(je=Ne,j=class{constructor(e,r,s){_(this,N);_(this,te,"change");_(this,I);_(this,L);_(this,H);_(this,R,{});n(this,je,{updateAndEmitDiffs:e=>A(this,N,mt).call(this,e),emitCustomMessage:(e,r)=>A(this,N,gt).call(this,e,r)});n(this,"widget_manager",{async get_model(e){let r=await j._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,ar(()=>{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,H,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,H).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,ht).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,H).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,H=new WeakMap,R=new WeakMap,N=new WeakSet,ht=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)}},mt=function(e){e!=null&&Object.keys(e).forEach(r=>{let s=r;o(this,L)[s]!==e[s]&&this.set(s,e[s])})},gt=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(j,"_modelManager",ae),j);tt=async function(t,e){let r=e.model_id,s=e.message,a=("buffers"in s?s.buffers:[]).map(Ke);switch(s.method){case"open":{let{state:i,buffer_paths:u=[]}=s,d=Ie({state:i,bufferPaths:u,buffers:a}),v=t.getSync(r);if(v){ue(v).updateAndEmitDiffs(d);return}t.create(r,x=>new Dt(d,Ve()?{sendUpdate:async()=>{},sendCustomMessage:async()=>{}}:{async sendUpdate(q){if(x.aborted){p.debug(`[Model] sendUpdate suppressed for model=${r} (signal aborted)`);return}let{state:S,buffers:$,bufferPaths:se}=It(q);await fe().sendModelValue({modelId:r,message:{method:"update",state:S,bufferPaths:se},buffers:$})},async sendCustomMessage(q,S){if(x.aborted){p.debug(`[Model] sendCustomMessage suppressed for model=${r} (signal aborted)`);return}await fe().sendModelValue({modelId:r,message:{method:"custom",content:q},buffers:S.map(Qe)})}},x));return}case"custom":ue(await t.get(r)).emitCustomMessage({method:"custom",content:s.content},a);return;case"close":ye.destroy(r),t.delete(r);return;case"update":{let{state:i,buffer_paths:u=[]}=s,d=Ie({state:i,bufferPaths:u,buffers:a});ue(await t.get(r)).updateAndEmitDiffs(d);return}default:hr(s)}},Zt(ae,"MODEL_MANAGER");function Ot(t){return typeof t!="object"||!t?!1:"type"in t&&t.type==="marimo-ui-value-update"}he=class yt{static get INSTANCE(){let e="_marimo_private_UIElementRegistry";return window[e]||(window[e]=new yt),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:Gt(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(Ot(r)){a.value=r.value,a.elements.forEach(i=>{i.dispatchEvent(Ze.create({bubbles:!1,composed:!0,detail:{value:r.value,element:i}}))});return}a.elements.forEach(i=>{i.dispatchEvent(Mr.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(Ze.create({bubbles:!1,composed:!0,detail:{value:s,element:i}}))}),document.dispatchEvent(Er.create({bubbles:!0,composed:!0,detail:{objectId:r}})))}},it=he.INSTANCE,nt=new yr("function-call-result",async(t,e)=>{await fe().sendFunctionRequest({functionCallId:t,...e})}),ut="68px";var Bt="288px";at=t=>t?/^\d+$/.test(t)?`${t}px`:t:Bt,lt=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{Je as C,Xe as S,et as _,kr as __tla,he as a,me as b,tt as c,ge as d,rt as f,V as g,st as h,nt as i,ye as l,we as m,at as n,it as o,ot as p,lt as r,ae as s,ut as t,dt as u,ie as v,G as w,ct as x,be as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./useEvent-D91BmmQi.js";import{Fn as o,Oi as n,Pn as h}from"./cells-
|
|
1
|
+
import{p as r}from"./useEvent-D91BmmQi.js";import{Fn as o,Oi as n,Pn as h}from"./cells-BP6kg4iF.js";import{f as m}from"./arrays-DYDL-3-i.js";var d="marimo:ai:chatState:v5";const v=r(null),f=n("marimo:ai:includeOtherCells",!0,o);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(d,{chats:new Map,activeChatId:null},h({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,v as n,i as r,C as t};
|