@marimo-team/frontend 0.25.2-dev5 → 0.25.2-dev51
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-2Psjnl5F.css +1 -0
- package/dist/assets/CellStatus-Q5giBgg0.js +1 -0
- package/dist/assets/ConnectedDataExplorerComponent-D5gfkAKK.js +1 -0
- package/dist/assets/ErrorBoundary-CowFEmQK.js +2 -0
- package/dist/assets/Inputs-BlygJyl1.js +1 -0
- package/dist/assets/JsonOutput-B0GmlMnR.css +2 -0
- package/dist/assets/JsonOutput-c1E0SCoN.js +11 -0
- package/dist/assets/LazyAnyLanguageCodeMirror-CeTd_wFt.js +2 -0
- package/dist/assets/MarimoErrorOutput-p5jt_udI.js +6 -0
- package/dist/assets/RenderHTML-CqDY0F9e.js +2 -0
- package/dist/assets/RunButton-TcDo218m.js +1 -0
- package/dist/assets/__vite-browser-external-BgsHWynV.js +1 -0
- package/dist/assets/__vite-browser-external-DMJaCYJh.js +1 -0
- package/dist/assets/_baseSet-Bpdo9AvU.js +1 -0
- package/dist/assets/_hasPath-BmRQipI0.js +1 -0
- package/dist/assets/abnfDiagram-VCTEODGH-BuHNQB7l.js +1 -0
- package/dist/assets/add-cell-with-ai-BKqOYjHI.js +76 -0
- package/dist/assets/add-connection-dialog-CL3bFsGA.js +166 -0
- package/dist/assets/agent-panel-q9X3jIj0.js +286 -0
- package/dist/assets/ai-model-dropdown-CK8y46Fn.js +5 -0
- package/dist/assets/alert-MrQXRIin.js +1 -0
- package/dist/assets/alert-dialog-DlL1c-bx.js +1 -0
- package/dist/assets/any-language-editor-DtOWujZJ.js +1 -0
- package/dist/assets/api-DYL9A86_.js +1 -0
- package/dist/assets/apl-CYIAEF37.js +1 -0
- package/dist/assets/apl-gw27yJ2n.js +1 -0
- package/dist/assets/app-config-button-Bylx9JDv.js +1 -0
- package/dist/assets/arc-Yxk2k_uq.js +1 -0
- package/dist/assets/architecture-7GRP2DOG-BMOPAkUC.js +1 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-DvIXijdN.js +36 -0
- package/dist/assets/array-BifhSqXX.js +1 -0
- package/dist/assets/arrow-left-DzPJ79ZB.js +1 -0
- package/dist/assets/arrow-right-xoNT7eIQ.js +1 -0
- package/dist/assets/asciiarmor-CF6FHpQl.js +1 -0
- package/dist/assets/asciiarmor-Cor5STs8.js +1 -0
- package/dist/assets/asn1-CPEENLyz.js +1 -0
- package/dist/assets/asn1-CmtZ6NID.js +1 -0
- package/dist/assets/azure-Dcn397wY.js +1 -0
- package/dist/assets/ban-3HAzm9Fj.js +1 -0
- package/dist/assets/blob-BTk5Q8u9.js +1 -0
- package/dist/assets/{blockDiagram-I7D4REHJ-BFxx3c_s.js → blockDiagram-I7D4REHJ-DGAMO17L.js} +1 -1
- package/dist/assets/brainfuck-a_fzgFtj.js +1 -0
- package/dist/assets/brainfuck-vE42J6oQ.js +1 -0
- package/dist/assets/bundle.esm-CklCb9AD.js +1 -0
- package/dist/assets/{button-qFeU84ax.js → button-M49xxKoi.js} +1 -1
- package/dist/assets/{c4Diagram-7LVT6UL2-CMQEYn6T.js → c4Diagram-7LVT6UL2-qqO5IOnV.js} +1 -1
- package/dist/assets/cache-panel-CKzoUIhe.js +1 -0
- package/dist/assets/{capabilities-BqUNf14U.js → capabilities-BScjbYOK.js} +1 -1
- package/dist/assets/cell-editor-C-58hQJU.css +2 -0
- package/dist/assets/cell-editor-DfRhvA75.js +21 -0
- package/dist/assets/cell-link-DRuyhIKm.js +1 -0
- package/dist/assets/cells-CuKxjgjJ.js +220 -0
- package/dist/assets/channel-DXBvxHxq.js +1 -0
- package/dist/assets/chart-no-axes-column-B6FT5Xvu.js +1 -0
- package/dist/assets/chat-display-BT4wYvSi.js +1 -0
- package/dist/assets/chat-panel-C3Bu_7u5.js +4 -0
- package/dist/assets/chat-ui-DsHB8FDP.js +4 -0
- package/dist/assets/chunk-2E4U76K2-DqA2CBL0.js +2 -0
- package/dist/assets/chunk-2ZTRR5NV-C2qZJila.js +2 -0
- package/dist/assets/chunk-3Z5EZCMW-DMniOlPd.js +1 -0
- package/dist/assets/{chunk-4HAMMTFA-C6Tl7kEY.js → chunk-4HAMMTFA-DaFOJTOO.js} +1 -1
- package/dist/assets/chunk-5V3GS4D5-i-ZDOEnP.js +1 -0
- package/dist/assets/chunk-6AZGARVD-BB6FqMl-.js +1 -0
- package/dist/assets/chunk-6EIED4P4-DdUJkP0f.js +1 -0
- package/dist/assets/chunk-6K3QC6MW-CqVsVn-y.js +1 -0
- package/dist/assets/chunk-6TQVIW2G-DKlLbNIP.js +1 -0
- package/dist/assets/chunk-747NJXEK-BFkZPlab.js +2 -0
- package/dist/assets/{chunk-75Z2AOVW-BzzYECN7.js → chunk-75Z2AOVW-DEp7Wbaj.js} +1 -1
- package/dist/assets/chunk-CLGD4ZFX-BxW11Imt.js +1 -0
- package/dist/assets/{chunk-DU6HZSFF-BlpgvKzl.js → chunk-DU6HZSFF-CDmPCRkr.js} +3 -3
- package/dist/assets/{chunk-F27PBJKO-BVIgLGPF.js → chunk-F27PBJKO-455JWNM3.js} +1 -1
- package/dist/assets/{chunk-GMAD6QVW-hv6IsAru.js → chunk-GMAD6QVW-ahdTJvh0.js} +1 -1
- package/dist/assets/{chunk-GVQU2GXP-Duv4ZYb-.js → chunk-GVQU2GXP-CPkYne1h.js} +1 -1
- package/dist/assets/chunk-I5DQTOEV-Hm2LfiYI.js +1 -0
- package/dist/assets/chunk-ICYGCRZG-749o-pGJ.js +1 -0
- package/dist/assets/chunk-IH6LHLGP-CC6I9F3i.js +1 -0
- package/dist/assets/{chunk-IMKFNOWR-C0FdcWaA.js → chunk-IMKFNOWR-fARccL86.js} +1 -1
- package/dist/assets/chunk-KI3K4JFJ-Rma-0k_M.js +1 -0
- package/dist/assets/{chunk-L3NEJ4N5-B2hafvRU.js → chunk-L3NEJ4N5-BOK6HmaY.js} +1 -1
- package/dist/assets/chunk-LNGE3PJU-DWpGwHrW.js +34 -0
- package/dist/assets/{chunk-OSK3NFVY-SNGRdtNA.js → chunk-OSK3NFVY-CEcyPnHo.js} +2 -2
- package/dist/assets/chunk-OUJLGHUK-D0j2JRSg.js +2 -0
- package/dist/assets/{chunk-P2QGCYS3-_SeE0QXb.js → chunk-P2QGCYS3-Bw5LRT6S.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-BB5NNJFE.js → chunk-POPQ4Y6H-C--NLIXc.js} +1 -1
- package/dist/assets/{chunk-PWAF6VOD-BZoBqp8x.js → chunk-PWAF6VOD-B1mxlptQ.js} +1 -1
- package/dist/assets/{chunk-SHT3W25Y-C5bRLV38.js → chunk-SHT3W25Y-Diet96b1.js} +2 -2
- package/dist/assets/{chunk-SVP7TREG-B1Cz7B80.js → chunk-SVP7TREG-BbcEGfNl.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-D4DfLMML.js → chunk-TICWLB2K-BypOyFjf.js} +2 -2
- package/dist/assets/chunk-TLUHSLCS-DvvqZUl_.js +2 -0
- package/dist/assets/chunk-UY3FDG6J-CnmaAkG5.js +1 -0
- package/dist/assets/chunk-XHIXRSVI-BFQ6B8BE.js +1 -0
- package/dist/assets/{chunk-YOKDWASO-CaoEAGJk.js → chunk-YOKDWASO-84E-_nIR.js} +4 -4
- package/dist/assets/circle-Bb1IbBVn.js +1 -0
- package/dist/assets/circle-check-BF80fXZd.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV--9ShP1h2.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY--9ShP1h2.js +1 -0
- package/dist/assets/click-outside-container-CHoodRk9.js +1 -0
- package/dist/assets/clike-Bo1_pR8B.js +1 -0
- package/dist/assets/clike-DZROJv43.js +1 -0
- package/dist/assets/clipboard-paste-D0gau9Xw.js +1 -0
- package/dist/assets/clojure-1zb6N0Kd.js +1 -0
- package/dist/assets/clojure-sW2N62b5.js +1 -0
- package/dist/assets/cmake-DA9yMhzJ.js +1 -0
- package/dist/assets/cmake-DSEb40G9.js +1 -0
- package/dist/assets/cobol-BYACvGhO.js +1 -0
- package/dist/assets/cobol-ttQu-eUm.js +1 -0
- package/dist/assets/code-DW4kNwKG.js +1 -0
- package/dist/assets/code-visibility-B5QjA0ie.js +1 -0
- package/dist/assets/code-xml-CW65k2pN.js +1 -0
- package/dist/assets/coerce-CZiN7rQ_.js +1 -0
- package/dist/assets/coffeescript-73GxLNLH.js +1 -0
- package/dist/assets/coffeescript-CcHmp8ZW.js +1 -0
- package/dist/assets/column-preview-BltuXodG.js +1 -0
- package/dist/assets/command-palette-DLjm6e2f.js +1 -0
- package/dist/assets/common-BHV00wKC.js +1 -0
- package/dist/assets/commonlisp-BAY0IMda.js +1 -0
- package/dist/assets/commonlisp-DHrixoxv.js +1 -0
- package/dist/assets/components-DzAIJKU7.js +1 -0
- package/dist/assets/components-M5WFQ0gs.js +1 -0
- package/dist/assets/components-ufN33X-R.js +1 -0
- package/dist/assets/{config-D7CP5wR5.js → config-BAnYSdpO.js} +1 -1
- package/dist/assets/config-BaEZVOk2.js +1 -0
- package/dist/assets/{config-BdH5RvM0.js → config-Cyum2gRs.js} +1 -1
- package/dist/assets/{copy-B--GzTEX.js → copy-D03Y7IMR.js} +1 -1
- package/dist/assets/{copy-icon-DQuttmjH.js → copy-icon-wfSGfX8v.js} +1 -1
- package/dist/assets/{createReducer-CI8rlZE9.js → createReducer-W5dowuCe.js} +1 -1
- package/dist/assets/crystal-DLlr59il.js +1 -0
- package/dist/assets/crystal-fOwNIMzy.js +1 -0
- package/dist/assets/css-CbZNFbVv.js +1 -0
- package/dist/assets/css-aD3t-znF.js +1 -0
- package/dist/assets/cynefin-OW5HDTMX-7tP7QfM3.js +1 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-BW3uXbHa.js +62 -0
- package/dist/assets/cypher-CpQ0ACJl.js +1 -0
- package/dist/assets/cypher-q6-coHOK.js +1 -0
- package/dist/assets/d-BFwRCF-p.js +1 -0
- package/dist/assets/d-Drt6ZXrF.js +1 -0
- package/dist/assets/dagre-BjpQhh5X.js +1 -0
- package/dist/assets/{dagre-GXQ25YYZ-BnoCXKri.js → dagre-GXQ25YYZ-DIV0whJf.js} +2 -2
- package/dist/assets/data-grid-overlay-editor-DuYKABwo.js +1 -0
- package/dist/assets/data-grid-types-DgHVN_Zz.js +1 -0
- package/dist/assets/datasource-D0736MyK.js +3 -0
- package/dist/assets/dates-BgcKUsHb.js +1 -0
- package/dist/assets/dependency-graph-panel-B6fAc_9C.js +5 -0
- package/dist/assets/{diagram-S7CK7UJ4-CpfyTrFa.js → diagram-S7CK7UJ4-BzoPaaoH.js} +3 -3
- package/dist/assets/diagram-UQ7AKVKN-BnOSn29R.js +41 -0
- package/dist/assets/{diagram-VSXAHHWV-CK4GkM-q.js → diagram-VSXAHHWV-DAz8vger.js} +2 -2
- package/dist/assets/diagram-VX7I27RA-BQOZxgYE.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-B_OF69Ac.js +24 -0
- package/dist/assets/diff-CYBnW6ZU.js +1 -0
- package/dist/assets/diff-Ib_BKd8h.js +1 -0
- package/dist/assets/dist-1tmpVXyz.js +1 -0
- package/dist/assets/dist-4SpsNdg9.js +1 -0
- package/dist/assets/dist-AelfNxj6.js +3 -0
- package/dist/assets/dist-BCteMNTR.js +1 -0
- package/dist/assets/dist-BOfh4hMd.js +2 -0
- package/dist/assets/dist-BXTY2Z6u.js +1 -0
- package/dist/assets/dist-BZAAgYK3.js +1 -0
- package/dist/assets/dist-BeKmSRy3.js +1 -0
- package/dist/assets/dist-BmExfiwX.js +23 -0
- package/dist/assets/dist-Bqtq4wYM.js +1 -0
- package/dist/assets/dist-BxKJ9CUC.js +1 -0
- package/dist/assets/dist-C08rfu50.js +1 -0
- package/dist/assets/dist-C1ZMbzEY.js +1 -0
- package/dist/assets/dist-C43s7KMp.js +1 -0
- package/dist/assets/dist-C9ULdZil.js +1 -0
- package/dist/assets/dist-CJ4Ekjf-.js +1 -0
- package/dist/assets/dist-COseLvbK.js +1 -0
- package/dist/assets/dist-CWcX5iL_.js +1 -0
- package/dist/assets/dist-CcKu0kT5.js +1 -0
- package/dist/assets/dist-CdpiHIsZ.js +1 -0
- package/dist/assets/dist-Ceg_d-nu.js +1 -0
- package/dist/assets/dist-CibNXpH2.js +1 -0
- package/dist/assets/dist-Cllq-3AX.js +1 -0
- package/dist/assets/{dist-CQvJDryh.js → dist-Cm7MoInu.js} +1 -1
- package/dist/assets/dist-Cny7_yZb.js +14 -0
- package/dist/assets/dist-Cw0_qzU5.js +1 -0
- package/dist/assets/dist-D0Fg9FgU.js +1 -0
- package/dist/assets/dist-DBMV4gqt.js +2 -0
- package/dist/assets/dist-DDpltFEG.js +1 -0
- package/dist/assets/dist-DF6q90J2.js +1 -0
- package/dist/assets/dist-DG2TCPkT.js +1 -0
- package/dist/assets/dist-DH7Tm1i8.js +1 -0
- package/dist/assets/{dist-BYab5Kqm.js → dist-DLwSLd_v.js} +1 -1
- package/dist/assets/dist-DOsgOC8X.js +11 -0
- package/dist/assets/dist-DcvY27K9.js +1 -0
- package/dist/assets/dist-DewjJKIE.js +1 -0
- package/dist/assets/dist-DfGC5qxC.js +1 -0
- package/dist/assets/dist-DfRK-QAy.js +1 -0
- package/dist/assets/dist-DmUAWIff.js +1 -0
- package/dist/assets/dist-DoYtnejk.js +1 -0
- package/dist/assets/dist-DoyTOIOd.js +1 -0
- package/dist/assets/dist-DtH-7lot.js +1 -0
- package/dist/assets/dist-DusFODSa.js +9 -0
- package/dist/assets/dist-LSsCJjA3.js +6 -0
- package/dist/assets/dist-PsHgCCpB.js +1 -0
- package/dist/assets/dist-mPh3sAH5.js +1 -0
- package/dist/assets/dist-qhAY4L2r.js +1 -0
- package/dist/assets/dist-uBfhY3mF.js +1 -0
- package/dist/assets/documentation-panel-DQAQba71.js +1 -0
- package/dist/assets/download-D-MTWucM.js +9 -0
- package/dist/assets/dropdown-menu-B2JUUcK7.js +1 -0
- package/dist/assets/dtd-DgBHwr-e.js +1 -0
- package/dist/assets/dtd-DqGG8R4P.js +1 -0
- package/dist/assets/dylan-BTCYgsmh.js +1 -0
- package/dist/assets/dylan-fdbf6J3T.js +1 -0
- package/dist/assets/ebnfDiagram-PWID7BFC-BbkBTazy.js +1 -0
- package/dist/assets/ecl-BPsxRGqR.js +1 -0
- package/dist/assets/ecl-K_KNI3_u.js +1 -0
- package/dist/assets/edit-page-CXU-jpqZ.js +9 -0
- package/dist/assets/eiffel-BCguJEP-.js +1 -0
- package/dist/assets/eiffel-DatcW1fL.js +1 -0
- package/dist/assets/ellipsis-CLMWXUqY.js +1 -0
- package/dist/assets/elm-DbcUgz-o.js +1 -0
- package/dist/assets/elm-DnNeI1M2.js +1 -0
- package/dist/assets/en-US-B4U3zuiu.js +1 -0
- package/dist/assets/{erDiagram-RLTQ6QDP-BA3j71VK.js → erDiagram-RLTQ6QDP-DxDHwsU0.js} +2 -2
- package/dist/assets/erlang-BistxQAs.js +1 -0
- package/dist/assets/erlang-DkHPV6ru.js +1 -0
- package/dist/assets/error-banner-D1_bPN9u.js +1 -0
- package/dist/assets/{error-entries-DvgFKvod.js → error-entries-CWxVwEPG.js} +1 -1
- package/dist/assets/error-panel-DISYRsce.js +1 -0
- package/dist/assets/es-KNLgCZL4.js +5 -0
- package/dist/assets/esm-3WkPrffD.js +1 -0
- package/dist/assets/esm-CQuf--zt.js +1 -0
- package/dist/assets/eventmodeling-NTZA5JFV-BR2FzK4R.js +1 -0
- package/dist/assets/events-CbeVJ6OD.js +1 -0
- package/dist/assets/extends-CvVTau-c.js +1 -0
- package/dist/assets/external-link-D2lKwXyB.js +1 -0
- package/dist/assets/eye-off-CfkK-QS3.js +1 -0
- package/dist/assets/factor-DwQNJbiW.js +1 -0
- package/dist/assets/factor-ZZBBZpXK.js +1 -0
- package/dist/assets/feedback-button-B1bYxCrZ.js +10 -0
- package/dist/assets/feedback-button-BW1-NBBf.js +1 -0
- package/dist/assets/file-explorer-panel-VIG5c9ac.js +1 -0
- package/dist/assets/file-headphone-DKocX1z0.js +1 -0
- package/dist/assets/file-icons-e7tmeyP-.js +1 -0
- package/dist/assets/file-mCR_SMtq.js +1 -0
- package/dist/assets/file-name-input-BVXW4Ihy.js +3 -0
- package/dist/assets/fileToBase64-aqhlf6Jj.js +1 -0
- package/dist/assets/floating-outline-BhY3Wt-J.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-BGVnBaF-.js +1 -0
- package/dist/assets/formats-DkOlpVdf.js +1 -0
- package/dist/assets/formatting-Civx9FAg.js +1 -0
- package/dist/assets/forth-B-tqi4f_.js +1 -0
- package/dist/assets/forth-DUDizG3o.js +1 -0
- package/dist/assets/fortran-BarbOvgW.js +1 -0
- package/dist/assets/fortran-C9M6nI39.js +1 -0
- package/dist/assets/fullscreen-DEBblJKh.js +41 -0
- package/dist/assets/gallery-page-Be8AbY36.js +1 -0
- package/dist/assets/{ganttDiagram-EL5Y4UJY-Cgy11k0G.js → ganttDiagram-EL5Y4UJY-BzkL5tY7.js} +1 -1
- package/dist/assets/gas-DJ-ntEw0.js +1 -0
- package/dist/assets/gas-mybzrfIH.js +1 -0
- package/dist/assets/gherkin-BlnXaZZf.js +1 -0
- package/dist/assets/gherkin-Co7qm0Mt.js +1 -0
- package/dist/assets/gitGraph-4MIJSDKK-DYlXv_yJ.js +1 -0
- package/dist/assets/{gitGraphDiagram-WWUBYQGX-CVH8fay_.js → gitGraphDiagram-WWUBYQGX-DqtmYSBS.js} +1 -1
- package/dist/assets/glide-data-editor-D1Fip07J.js +131 -0
- package/dist/assets/glide-utils-BzwA3q-e.js +2 -0
- package/dist/assets/globe-CmFhHoL1.js +1 -0
- package/dist/assets/graphlib-Blky6igo.js +1 -0
- package/dist/assets/groovy-DkYAhc5g.js +1 -0
- package/dist/assets/groovy-cYuFC_ot.js +1 -0
- package/dist/assets/has-sKqQhP6r.js +1 -0
- package/dist/assets/hasIn-yw4sIeJR.js +1 -0
- package/dist/assets/haskell-CuLp9g3a.js +1 -0
- package/dist/assets/haskell-QbTWCmtk.js +1 -0
- package/dist/assets/haxe-CiIUZbdX.js +1 -0
- package/dist/assets/haxe-CmR2u-6B.js +1 -0
- package/dist/assets/{highlighted-body-KPVGNVTW-D9V82ncH.js → highlighted-body-KPVGNVTW-DxcqwMAu.js} +1 -1
- package/dist/assets/home-page-Dv2fEKyO.js +4 -0
- package/dist/assets/hooks-BgpsvfLA.js +1 -0
- package/dist/assets/house-CbkYoQ5W.js +1 -0
- package/dist/assets/html-to-image-CFVIG1VZ.js +2 -0
- package/dist/assets/icons-CVdkfEA3.js +1 -0
- package/dist/assets/idl-BHq7WyPV.js +1 -0
- package/dist/assets/idl-DY5VfUGL.js +1 -0
- package/dist/assets/image-CTch9x2I.js +1 -0
- package/dist/assets/{index--sT8xf-8.css → index-BGdpHNhZ.css} +1 -1
- package/dist/assets/index-Cj5DhJqW.js +29 -0
- package/dist/assets/info-A6RAGUB7-BlU-8_xu.js +1 -0
- package/dist/assets/infoDiagram-27XIBGKW-7rLCp1UQ.js +2 -0
- package/dist/assets/{input-D4bMj5Nb.js → input-DnyzXg4C.js} +2 -2
- package/dist/assets/isValid-BEbe1fFs.js +1 -0
- package/dist/assets/{ishikawaDiagram-5VMMS53U-CbAJ27Ym.js → ishikawaDiagram-5VMMS53U-BH7XUtkN.js} +2 -2
- package/dist/assets/javascript-BWjar7HY.js +1 -0
- package/dist/assets/javascript-D-FtdkNC.js +1 -0
- package/dist/assets/{journeyDiagram-3NMN7TZE-DRc8ACzh.js → journeyDiagram-3NMN7TZE-BOj0kV6v.js} +1 -1
- package/dist/assets/julia-CBfVM-ng.js +1 -0
- package/dist/assets/julia-CoYYMTcZ.js +1 -0
- package/dist/assets/{kanban-definition-UXKFOSKX-CC0iibkr.js → kanban-definition-UXKFOSKX-CPrudFOv.js} +3 -3
- package/dist/assets/katex-CQIbPNPT.js +1 -0
- package/dist/assets/katex-DUp2KybH.js +257 -0
- package/dist/assets/kbd-BnUiViRu.js +1 -0
- package/dist/assets/kiosk-mode-DCHo0R3W.js +1 -0
- package/dist/assets/layout-BAJKEADQ.js +9 -0
- package/dist/assets/layout-D-WxHzKd.css +1 -0
- package/dist/assets/line-io_go0HI.js +1 -0
- package/dist/assets/link-BF4dGmOQ.js +1 -0
- package/dist/assets/links-BJx6KCyC.js +1 -0
- package/dist/assets/list-filter-CTg19675.js +1 -0
- package/dist/assets/livescript-C1gEZ5Hk.js +1 -0
- package/dist/assets/livescript-CC7i4CEo.js +1 -0
- package/dist/assets/logs-panel-CjHa5qIw.js +1 -0
- package/dist/assets/{loro_wasm_bg-BwsqTTze.wasm → loro_wasm_bg-PyJsS6iH.wasm} +0 -0
- package/dist/assets/loro_wasm_bg-Vo2IoHaL.js +1 -0
- package/dist/assets/loro_wasm_bg-oTW3uoGB.js +1 -0
- package/dist/assets/lua-1tNpM92n.js +1 -0
- package/dist/assets/lua-DXBxhmso.js +1 -0
- package/dist/assets/markdown-export-DzhB1FrN.js +1 -0
- package/dist/assets/markdown-renderer-DjIHoF9Z.css +1 -0
- package/dist/assets/markdown-renderer-quSCxU-_.js +2 -0
- package/dist/assets/math-Bi_r_ZWc.js +1 -0
- package/dist/assets/mathematica-CwlrU_TQ.js +1 -0
- package/dist/assets/mathematica-DWMBVyLs.js +1 -0
- package/dist/assets/mbox-DvNfx9hX.js +1 -0
- package/dist/assets/mbox-skR0V6cu.js +1 -0
- package/dist/assets/menu-items-DAaNKHJF.js +1 -0
- package/dist/assets/mermaid-CX6aTquk.js +11 -0
- package/dist/assets/mermaid-HWGCJPDP-Bk1fR60Q.js +1 -0
- package/dist/assets/mermaid-parser.core-CodvbdHU.js +4 -0
- package/dist/assets/message-circle-OTHnVlxO.js +1 -0
- package/dist/assets/{mhchem-CmzEtQj8.js → mhchem-hMh9XtQZ.js} +1 -1
- package/dist/assets/{mindmap-definition-YA3MSWOX-BRSocoJh.js → mindmap-definition-YA3MSWOX-kWyI8sXl.js} +2 -2
- package/dist/assets/mirc-BASUkO3C.js +1 -0
- package/dist/assets/mirc-CTGUd79I.js +1 -0
- package/dist/assets/mllike-BKN6OcTc.js +1 -0
- package/dist/assets/mllike-DHDLWZl9.js +1 -0
- package/dist/assets/modelica-C2NfUrdY.js +1 -0
- package/dist/assets/modelica-DZs5SjV_.js +1 -0
- package/dist/assets/mscgen-Bo5N9WUj.js +1 -0
- package/dist/assets/mscgen-C7woTLsY.js +1 -0
- package/dist/assets/multi-icon-D129IBvu.css +2 -0
- package/dist/assets/multi-icon-DWzZu-9u.js +1 -0
- package/dist/assets/mumps-BNg2Yq-1.js +1 -0
- package/dist/assets/mumps-DwVYUX8b.js +1 -0
- package/dist/assets/name-cell-input-Cba1m8_c.js +1 -0
- package/dist/assets/name-cell-input-ujOhus_y.css +1 -0
- package/dist/assets/nsis-B6H_Q9YJ.js +1 -0
- package/dist/assets/nsis-DWBX_aOH.js +1 -0
- package/dist/assets/ntriples-CSqEHNgf.js +1 -0
- package/dist/assets/ntriples-Ck5rp6GE.js +1 -0
- package/dist/assets/number-overlay-editor-myrryj7o.js +9 -0
- package/dist/assets/{numbers-DyJNv6Vk.js → numbers-BEfBaQtu.js} +1 -1
- package/dist/assets/objectWithoutPropertiesLoose-Do6ywDBO.js +1 -0
- package/dist/assets/octave-BRpd3hBF.js +1 -0
- package/dist/assets/octave-ImTMIie9.js +1 -0
- package/dist/assets/outline-panel-CWsF1QII.js +1 -0
- package/dist/assets/oz-BUEZmvHT.js +1 -0
- package/dist/assets/oz-BuYcBdKy.js +1 -0
- package/dist/assets/package-data-BwaspaKJ.js +1 -0
- package/dist/assets/packages-panel-C-XEdHNc.js +1 -0
- package/dist/assets/packet-AYTQ26CC-BSJEH9Lb.js +1 -0
- package/dist/assets/pair-_FSgYVX4.js +1 -0
- package/dist/assets/panel-accordion-state-u7avi-RV.js +1 -0
- package/dist/assets/panels-BZPch45-.js +4 -0
- package/dist/assets/panels-DuFuRfRM.css +2 -0
- package/dist/assets/pascal-B50DmceL.js +1 -0
- package/dist/assets/pascal-DBfxUwpj.js +1 -0
- package/dist/assets/path-BCdg30Y0.js +1 -0
- package/dist/assets/pathUtils-BKesuhdv.js +1 -0
- package/dist/assets/pegDiagram-XKGWAZYB-CiBJGPte.js +1 -0
- package/dist/assets/perl-DmFVAwdF.js +1 -0
- package/dist/assets/perl-v9vsztCj.js +1 -0
- package/dist/assets/pick-DKIID_Mo.js +1 -0
- package/dist/assets/pie-WAS4IAKB-qxv01Y8W.js +1 -0
- package/dist/assets/{pieDiagram-E7YTZNPT-Bk2i8LTf.js → pieDiagram-E7YTZNPT-RpjpKhU6.js} +3 -3
- package/dist/assets/pig-BnQuru9N.js +1 -0
- package/dist/assets/pig-CrKTIB-m.js +1 -0
- package/dist/assets/powershell-89xdb5K_.js +1 -0
- package/dist/assets/powershell-B1pJyAAD.js +1 -0
- package/dist/assets/{preload-helper-HclGiUj8.js → preload-helper-uBIymjUX.js} +1 -1
- package/dist/assets/process-output-DbjZ_y5T.js +1 -0
- package/dist/assets/prop-types-Djf4O40e.js +1 -0
- package/dist/assets/properties-Ci7guRqV.js +1 -0
- package/dist/assets/properties-DaUFoXFR.js +1 -0
- package/dist/assets/protobuf-Ci5XvpF4.js +1 -0
- package/dist/assets/protobuf-CoqP8wM5.js +1 -0
- package/dist/assets/pug-CJsoo9v0.js +1 -0
- package/dist/assets/pug-DPY-Ajan.js +1 -0
- package/dist/assets/puppet-C9UYpvtZ.js +1 -0
- package/dist/assets/puppet-Da8ZxG7z.js +1 -0
- package/dist/assets/purify.es--06brOip.js +3 -0
- package/dist/assets/python-C4CVWZ7v.js +1 -0
- package/dist/assets/python-xiYauDc4.js +1 -0
- package/dist/assets/q-BjtI5Irp.js +1 -0
- package/dist/assets/q-CKkOe1xA.js +1 -0
- package/dist/assets/{quadrantDiagram-AXDQQJYC-D_wrOwLk.js → quadrantDiagram-AXDQQJYC-Ci_qzCqs.js} +1 -1
- package/dist/assets/r-Bwc-y-iL.js +1 -0
- package/dist/assets/r-vSi6pWDr.js +1 -0
- package/dist/assets/radar-RG4KPBEZ-B6h6pWOs.js +1 -0
- package/dist/assets/railroad-74A4TZTK-CGtTWdGc.js +1 -0
- package/dist/assets/railroad-abnf-HS5TGJTU-Cq7y22IA.js +1 -0
- package/dist/assets/railroad-ebnf-LZEXJU2U-V0aQVv9m.js +1 -0
- package/dist/assets/railroad-peg-WCYAUIDC-BQiIsX_p.js +1 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-B2IWK3fJ.js +1 -0
- package/dist/assets/react-icons.esm-C6SMwKZH.js +1 -0
- package/dist/assets/react-resizable-panels.browser.esm-BL2E7f5c.js +1 -0
- package/dist/assets/{react-vega-DNkV_C37.js → react-vega-Jq3Jd7eX.js} +7 -7
- package/dist/assets/readonly-code-display-Ctjk_xXb.js +1 -0
- package/dist/assets/readonly-python-code-Ctej1jSH.js +1 -0
- package/dist/assets/refresh-cw-CEGpOrzd.js +1 -0
- package/dist/assets/renderShortcut-BnRfkbwf.js +1 -0
- package/dist/assets/requests-DFPPfagc.js +1 -0
- package/dist/assets/{requirementDiagram-BXWQKSXE-gRkxaB0C.js → requirementDiagram-BXWQKSXE-B0_CyV0T.js} +2 -2
- package/dist/assets/{reveal-component-D89rwNLx.js → reveal-component-YHvm3T44.js} +5 -5
- package/dist/assets/rotate-ccw-se3Oa1US.js +1 -0
- package/dist/assets/rpm-Cv5HmAkX.js +1 -0
- package/dist/assets/rpm-UQSdNQr2.js +1 -0
- package/dist/assets/ruby-CKIsIBWn.js +1 -0
- package/dist/assets/ruby-CrY8zrT8.js +1 -0
- package/dist/assets/run-page-35u8Xhxp.js +1 -0
- package/dist/assets/runs-DyluVj69.js +1 -0
- package/dist/assets/sandbox-panel-fEQNl_1C.js +1 -0
- package/dist/assets/{sankeyDiagram-P5KCCOFB-CvvUY6tS.js → sankeyDiagram-P5KCCOFB-BekzhMvv.js} +1 -1
- package/dist/assets/sas-CssadkTB.js +1 -0
- package/dist/assets/sas-D3-6PWmJ.js +1 -0
- package/dist/assets/save-D4cG4pP2.js +1 -0
- package/dist/assets/{save-worker-Dw8ybFWq.js → save-worker-C880NC3o.js} +5 -5
- package/dist/assets/scheme-CkJWoRmu.js +1 -0
- package/dist/assets/scheme-DqTb0ELD.js +1 -0
- package/dist/assets/scratchpad-panel-CZ1PriSX.js +1 -0
- package/dist/assets/{scroll-to-bottom-button-BLNi0TGS.js → scroll-to-bottom-button-Dmrd5bjQ.js} +1 -1
- package/dist/assets/secrets-panel-Yc5ollBX.js +1 -0
- package/dist/assets/select-Ww_82o86.js +1 -0
- package/dist/assets/semaphore-BjoL5P0h.js +1 -0
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-DYQZopgj.js → sequenceDiagram-WJ2MYXX4-DELi1Kz5.js} +1 -1
- package/dist/assets/{session-ztCnZJHI.js → session-BykGt6S3.js} +1 -1
- package/dist/assets/session-panel-DD5LfQGb.js +1 -0
- package/dist/assets/share-BZW3tzEX.js +1 -0
- package/dist/assets/shell-DySzVBqR.js +1 -0
- package/dist/assets/shell-FgUEpLdy.js +1 -0
- package/dist/assets/shim-5li_pJY_.js +1 -0
- package/dist/assets/sieve-BLxcNk7A.js +1 -0
- package/dist/assets/sieve-CoBbN2aF.js +1 -0
- package/dist/assets/smalltalk-CJJAzHnb.js +1 -0
- package/dist/assets/smalltalk-d1Dbk6V4.js +1 -0
- package/dist/assets/snippets-panel-BFXHSCEq.js +1 -0
- package/dist/assets/sparql-CUZhKeRb.js +1 -0
- package/dist/assets/sparql-CjwbV0fX.js +1 -0
- package/dist/assets/spec-SOFn9xEK.js +1 -0
- package/dist/assets/spinner-CGdRKCnw.js +1 -0
- package/dist/assets/square-DvOKKLHZ.js +1 -0
- package/dist/assets/square-function-DyFIOFp5.js +1 -0
- package/dist/assets/state-Bo8h64Rn.js +1 -0
- package/dist/assets/{state-0NZOvqJz.js → state-BxLm8vme.js} +1 -1
- package/dist/assets/state-CdP1z8ku.js +1 -0
- package/dist/assets/state-Do1H9fl6.js +3 -0
- package/dist/assets/state-YaAkDV8S.js +1 -0
- package/dist/assets/state-ja7GWeCS.js +1 -0
- package/dist/assets/stateDiagram-D77RDMKH-udui7EYS.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-BhduIvF1.js +1 -0
- package/dist/assets/step-CqgdNM3U.js +1 -0
- package/dist/assets/stex-3SJlFZg3.js +1 -0
- package/dist/assets/stex-Dc5bKD4z.js +1 -0
- package/dist/assets/{strings-LjhpYwmx.js → strings-hlCLC-K1.js} +1 -1
- package/dist/assets/stylus-BvudHrj4.js +1 -0
- package/dist/assets/stylus-uh0Gd-Iz.js +1 -0
- package/dist/assets/swift-CUIczYYb.js +1 -0
- package/dist/assets/swift-D5IK5OrP.js +1 -0
- package/dist/assets/swimlanes-42K2YHIH-C-iTrYJs.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-WC2Zewqb.js +8 -0
- package/dist/assets/swiper-component-eXUBvFuA.js +1 -0
- package/dist/assets/switch-CPh_C6Mu.js +1 -0
- package/dist/assets/table-Dg1KxH-q.js +1 -0
- package/dist/assets/tabs-QRT1DYjj.js +1 -0
- package/dist/assets/tcl-BvqzOD3a.js +1 -0
- package/dist/assets/tcl-SjROh4xB.js +1 -0
- package/dist/assets/{terminal-CNqP6nyV.js → terminal-DHWTOXu3.js} +3 -3
- package/dist/assets/textile--JQHE1pJ.js +1 -0
- package/dist/assets/textile-DgW6fC9R.js +1 -0
- package/dist/assets/{timeline-definition-24CTP7MA-Cqv9NT2e.js → timeline-definition-24CTP7MA-D2u0nOZp.js} +1 -1
- package/dist/assets/toast-CL5SyrsO.js +1 -0
- package/dist/assets/toml-BcC_uO4q.js +1 -0
- package/dist/assets/toml-lWmHdWv5.js +1 -0
- package/dist/assets/tooltip-B5pI8o2n.js +1 -0
- package/dist/assets/{tooltip-BQ9qHrrN.js → tooltip-BeP4eX87.js} +1 -1
- package/dist/assets/tracing-DBfpxL3C.js +1 -0
- package/dist/assets/tracing-panel-CS9W1a0x.js +2 -0
- package/dist/assets/tree-actions-DdvPjaze.js +1 -0
- package/dist/assets/treeView-Q6P3EWNA-BTTYcvrF.js +1 -0
- package/dist/assets/treemap-WGGIJYW6-Cg7tyfH8.js +1 -0
- package/dist/assets/triangle-alert-BeRqoThc.js +1 -0
- package/dist/assets/troff-BMlKH74u.js +1 -0
- package/dist/assets/troff-r7W702V9.js +1 -0
- package/dist/assets/ttcn-1CwPIugQ.js +1 -0
- package/dist/assets/ttcn-P2iYmK_j.js +1 -0
- package/dist/assets/ttcn-cfg-2bl9aE98.js +1 -0
- package/dist/assets/ttcn-cfg-CHYEAF6D.js +1 -0
- package/dist/assets/turtle-DDf6uD3p.js +1 -0
- package/dist/assets/turtle-D_5eCUwg.js +1 -0
- package/dist/assets/use-restore-focus-GUh2Nd8Z.js +1 -0
- package/dist/assets/useAddCell-BbK54Wma.js +1 -0
- package/dist/assets/useBoolean-BofUVeKg.js +1 -0
- package/dist/assets/useCellActionButton-BEZZV5mI.js +1 -0
- package/dist/assets/useDateFormatter-CjgScv5a.js +1 -0
- package/dist/assets/useDeepCompareMemoize-DSlTt6u_.js +1 -0
- package/dist/assets/useDeleteCell-BG8LgAEA.js +1 -0
- package/dist/assets/useDependencyPanelTab-BEjMLLcY.js +1 -0
- package/dist/assets/useEventListener-IRzG-0mH.js +1 -0
- package/dist/assets/useIframeCapabilities-yd8sMuIo.js +1 -0
- package/dist/assets/useInstallPackage-DnijI-KS.js +1 -0
- package/dist/assets/useInterval-D1QGqQ_I.js +1 -0
- package/dist/assets/useNotebookActions-Cnznz5jV.js +1 -0
- package/dist/assets/useRunCells-DTPuvtCQ.js +1 -0
- package/dist/assets/useSplitCell-BuTWivoM.js +1 -0
- package/dist/assets/{useTheme-CnWB5G1X.js → useTheme-BkPLyRl9.js} +1 -1
- package/dist/assets/utils-CaQYvazl.js +1 -0
- package/dist/assets/vb-CrfmF706.js +1 -0
- package/dist/assets/vb-Vd6lTutg.js +1 -0
- package/dist/assets/vbscript-CcW6E3ma.js +1 -0
- package/dist/assets/vbscript-Cpiv2llq.js +1 -0
- package/dist/assets/vega-component-C28fL5fD.js +1 -0
- package/dist/assets/vega-embed-container-CRZZ4FTx.js +1 -0
- package/dist/assets/velocity-5N54agTA.js +1 -0
- package/dist/assets/velocity-CuSicjhq.js +1 -0
- package/dist/assets/{vennDiagram-4TSXK5OY-7_zbwUKS.js → vennDiagram-4TSXK5OY-BKSHsv-w.js} +2 -2
- package/dist/assets/verilog-DH7aBYt7.js +1 -0
- package/dist/assets/verilog-DPWRmpYS.js +1 -0
- package/dist/assets/vhdl-BmegRbqn.js +1 -0
- package/dist/assets/vhdl-sLYad3YP.js +1 -0
- package/dist/assets/wardley-WFR3VGLG-C6N1rULY.js +1 -0
- package/dist/assets/{wardleyDiagram-VM6X3IG4-Dwy-UW9d.js → wardleyDiagram-VM6X3IG4-CUDQDDoy.js} +1 -1
- package/dist/assets/webidl-CNY2gQL0.js +1 -0
- package/dist/assets/webidl-dw5if_Lv.js +1 -0
- package/dist/assets/{worker-ByzyDs4N.js → worker-B5tVfGoh.js} +6 -6
- package/dist/assets/workflow-nBi9HGeO.js +1 -0
- package/dist/assets/{write-secret-modal-wFgr-1dA.js → write-secret-modal-DknTu1O1.js} +1 -1
- package/dist/assets/ws-BXWY541V.js +22 -0
- package/dist/assets/xquery-CuDTgW6S.js +1 -0
- package/dist/assets/xquery-d3Qdoigy.js +1 -0
- package/dist/assets/{xychartDiagram-S5SC5T6Z-D9u3xjys.js → xychartDiagram-S5SC5T6Z-BXDsTxGu.js} +3 -3
- package/dist/assets/yacas-BjDXhrkW.js +1 -0
- package/dist/assets/yacas-Dn2coKff.js +1 -0
- package/dist/assets/youtube-2MBs34oQ.js +1 -0
- package/dist/assets/z80-ByJO5ysu.js +1 -0
- package/dist/assets/z80-z4BkVl0y.js +1 -0
- package/dist/index.html +128 -48
- package/package.json +14 -14
- package/src/components/chat/tool-call/__tests__/tool-result.test.tsx +56 -0
- package/src/components/chat/tool-call/tool-result.tsx +3 -3
- package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
- package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
- package/src/components/data-table/charts/constants.ts +11 -10
- package/src/components/data-table/charts/types.ts +1 -0
- package/src/components/data-table/pagination.tsx +16 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +32 -46
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +29 -40
- package/src/components/editor/actions/pair-with-agent-commands.ts +3 -4
- package/src/components/editor/actions/pair-with-agent-modal.tsx +4 -7
- package/src/components/ui/__tests__/slider.test.tsx +30 -0
- package/src/core/config/pair.ts +0 -1
- package/src/core/kernel/session.ts +9 -0
- package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
- package/src/core/wasm/worker/bootstrap.ts +22 -3
- package/src/core/websocket/useMarimoKernelConnection.tsx +10 -1
- package/src/css/katex.min.css +145 -144
- package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
- package/src/plugins/impl/DatePickerPlugin.tsx +5 -3
- package/src/plugins/impl/DateRangePlugin.tsx +5 -3
- package/src/plugins/impl/DateTimePickerPlugin.tsx +5 -3
- package/src/plugins/impl/DropdownPlugin.tsx +1 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +45 -15
- package/src/plugins/impl/MultiselectPlugin.tsx +1 -1
- package/src/plugins/impl/NumberPlugin.tsx +1 -1
- package/src/plugins/impl/RadioPlugin.tsx +5 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
- package/src/plugins/impl/SearchableSelect.tsx +1 -1
- package/src/plugins/impl/SliderPlugin.tsx +1 -1
- package/src/plugins/impl/SwitchPlugin.tsx +6 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +85 -2
- package/src/plugins/impl/__tests__/widget-labels.test.tsx +122 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/common/labeled.tsx +9 -3
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
- package/dist/assets/ConnectedDataExplorerComponent-CUM1k9to.js +0 -1
- package/dist/assets/ErrorBoundary-dxW9fjLz.js +0 -2
- package/dist/assets/LazyAnyLanguageCodeMirror-Cl_tW7UU.js +0 -2
- package/dist/assets/RunButton-8QAfM6tX.js +0 -22
- package/dist/assets/RunButton-Czeyf3Pi.css +0 -2
- package/dist/assets/__vite-browser-external-Cw9Ccr_O.js +0 -1
- package/dist/assets/__vite-browser-external-DBuuG05M.js +0 -1
- package/dist/assets/abnfDiagram-VCTEODGH-C6WU3bPA.js +0 -1
- package/dist/assets/add-cell-with-ai-Ba1Zzyn5.js +0 -76
- package/dist/assets/agent-panel-DoHQya5c.js +0 -286
- package/dist/assets/ai-model-dropdown-p-DETxrC.js +0 -5
- package/dist/assets/alert-dialog-BsB0FYEL.js +0 -7
- package/dist/assets/any-language-editor-CoZVwBpS.js +0 -1
- package/dist/assets/apl-CFg5GYAr.js +0 -1
- package/dist/assets/app-config-button-C99dcKZ_.js +0 -1
- package/dist/assets/arc-DR2VsF_m.js +0 -1
- package/dist/assets/architecture-7GRP2DOG-D_jUzZ2f.js +0 -1
- package/dist/assets/architectureDiagram-5GKGNRK7-D6ePBctB.js +0 -36
- package/dist/assets/asciiarmor-DcSiPPgr.js +0 -1
- package/dist/assets/asn1-BPjkVyGQ.js +0 -1
- package/dist/assets/brainfuck-DunkcVMy.js +0 -1
- package/dist/assets/cache-panel-BAzgSECJ.js +0 -1
- package/dist/assets/cells-CU9huD49.js +0 -220
- package/dist/assets/channel-CGdeorQk.js +0 -1
- package/dist/assets/chat-display-DFefbOiE.js +0 -1
- package/dist/assets/chat-panel-CNl0wCuZ.js +0 -4
- package/dist/assets/chat-ui-Dn9mtqu_.js +0 -4
- package/dist/assets/circle-CzTMKZwz.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-D9dq4QyZ.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY-D9dq4QyZ.js +0 -1
- package/dist/assets/clike-DVzjdKyz.js +0 -1
- package/dist/assets/clojure-B0g4lNAw.js +0 -1
- package/dist/assets/cmake-DPXbK5QP.js +0 -1
- package/dist/assets/cobol-fTfgAx9-.js +0 -1
- package/dist/assets/code-visibility-B7WsmJoz.js +0 -1
- package/dist/assets/coffeescript-Ow8rTsfP.js +0 -1
- package/dist/assets/command-palette-C0_0TUX7.js +0 -1
- package/dist/assets/common-CvbovgAY.js +0 -1
- package/dist/assets/commonlisp-CRQC3SaM.js +0 -1
- package/dist/assets/components-BKDoHB6b.js +0 -1
- package/dist/assets/components-DDDBg3hX.js +0 -1
- package/dist/assets/config-2Nts63h2.js +0 -1
- package/dist/assets/crystal-BrD_FAHX.js +0 -1
- package/dist/assets/css-bBkWhGQX.js +0 -1
- package/dist/assets/cynefin-OW5HDTMX-DIiiykJg.js +0 -1
- package/dist/assets/cynefinDiagram-5FMLGOSQ-CjzgReEF.js +0 -62
- package/dist/assets/cypher-i9OcNAXL.js +0 -1
- package/dist/assets/d-vXL79Y_P.js +0 -1
- package/dist/assets/dagre-DCGG7ZTu.js +0 -1
- package/dist/assets/data-grid-overlay-editor-DoWKBCDq.js +0 -1
- package/dist/assets/dependency-graph-panel-CmtumEXH.js +0 -5
- package/dist/assets/diagram-UQ7AKVKN-CzUJEZ08.js +0 -41
- package/dist/assets/diagram-VX7I27RA-DwHKUgiR.js +0 -24
- package/dist/assets/diagram-Z3DM3KII-CM3f39we.js +0 -24
- package/dist/assets/diff-Cpbyjb1r.js +0 -1
- package/dist/assets/dist-BH-S-j9V.js +0 -1
- package/dist/assets/dist-BN-7G8qZ.js +0 -2
- package/dist/assets/dist-BTskHGpb.js +0 -2
- package/dist/assets/dist-BWSz9T8E.js +0 -1
- package/dist/assets/dist-BYSOsNiK.js +0 -1
- package/dist/assets/dist-BczecT6V.js +0 -14
- package/dist/assets/dist-Bviq_Dee.js +0 -1
- package/dist/assets/dist-CCiiXOoB.js +0 -1
- package/dist/assets/dist-CEjBPDxA.js +0 -1
- package/dist/assets/dist-CI-3E0S2.js +0 -1
- package/dist/assets/dist-Ccyblc8N.js +0 -1
- package/dist/assets/dist-CiUBikfn.js +0 -1
- package/dist/assets/dist-Cx42VZlZ.js +0 -1
- package/dist/assets/dist-D5LovWSN.js +0 -1
- package/dist/assets/dist-DBqBVprh.js +0 -6
- package/dist/assets/dist-DFI04FfI.js +0 -1
- package/dist/assets/dist-DuOZdyY2.js +0 -1
- package/dist/assets/dist-DueXZKz9.js +0 -9
- package/dist/assets/dist-DvHtpUI7.js +0 -11
- package/dist/assets/dist-Dz4H5Lpr.js +0 -1
- package/dist/assets/dist-Gcu0m5O1.js +0 -1
- package/dist/assets/dist-MRn68vX1.js +0 -23
- package/dist/assets/dist-vrBHmefa.js +0 -1
- package/dist/assets/dist-yiD-qDpu.js +0 -1
- package/dist/assets/documentation-panel-D--h9kPi.js +0 -1
- package/dist/assets/dropdown-menu-Crx6knLg.js +0 -1
- package/dist/assets/dtd-BN3Z36N0.js +0 -1
- package/dist/assets/dylan-DtbpL-5i.js +0 -1
- package/dist/assets/ebnfDiagram-PWID7BFC-BGx-SaNO.js +0 -1
- package/dist/assets/ecl-BWUyrr3C.js +0 -1
- package/dist/assets/edit-page-DBzWMuh1.js +0 -174
- package/dist/assets/eiffel-CWDL_R9u.js +0 -1
- package/dist/assets/elm-BzsnjhuV.js +0 -1
- package/dist/assets/erlang-DXJDmcpF.js +0 -1
- package/dist/assets/error-panel-DQeF8Z1y.js +0 -1
- package/dist/assets/esm-BErdoAcz.js +0 -1
- package/dist/assets/eventmodeling-NTZA5JFV-DqXXj9CO.js +0 -1
- package/dist/assets/factor-Tpb8PZTx.js +0 -1
- package/dist/assets/feedback-button-BM9-xfv2.js +0 -10
- package/dist/assets/file-explorer-panel-BHpIvU3B.js +0 -1
- package/dist/assets/file-name-input-xYbz_krS.js +0 -3
- package/dist/assets/filename-rhW-R6K2.js +0 -1
- package/dist/assets/flowDiagram-HODETNUW-C2nUwifn.js +0 -1
- package/dist/assets/forth-Dw2vWL7C.js +0 -1
- package/dist/assets/fortran-DKiYgGt5.js +0 -1
- package/dist/assets/fullscreen-3wS6IaIC.js +0 -41
- package/dist/assets/gallery-page-NwdmeRiE.js +0 -1
- package/dist/assets/gas-Ei6cTQl-.js +0 -1
- package/dist/assets/gherkin-yFF3mfsd.js +0 -1
- package/dist/assets/gitGraph-4MIJSDKK-BlIdVC2G.js +0 -1
- package/dist/assets/glide-data-editor-o6AOUy_R.js +0 -131
- package/dist/assets/graphlib-3ALKDhp2.js +0 -1
- package/dist/assets/groovy-UTCC12KJ.js +0 -1
- package/dist/assets/has-DcjG16V_.js +0 -1
- package/dist/assets/haskell-BHJQXLHt.js +0 -1
- package/dist/assets/haxe-nTPzqrqE.js +0 -1
- package/dist/assets/home-page-Dt3rSv6r.js +0 -4
- package/dist/assets/idl-CuG-upqW.js +0 -1
- package/dist/assets/index-DJiAKPdB.js +0 -62
- package/dist/assets/info-A6RAGUB7-BdPbe-lF.js +0 -1
- package/dist/assets/infoDiagram-27XIBGKW-C1YY3GUQ.js +0 -2
- package/dist/assets/javascript-DeVynBqR.js +0 -1
- package/dist/assets/julia-pvaK4Pax.js +0 -1
- package/dist/assets/katex-DkE0ukCy.js +0 -257
- package/dist/assets/livescript-DT1P5eZp.js +0 -1
- package/dist/assets/logs-panel-PgZl5o2l.js +0 -1
- package/dist/assets/lua-BveDyMVp.js +0 -1
- package/dist/assets/mathematica-BRcOIGly.js +0 -1
- package/dist/assets/mbox-DZvbm2hT.js +0 -1
- package/dist/assets/menu-items-D-vbZmqL.js +0 -1
- package/dist/assets/mermaid-DNc2K-6T.js +0 -44
- package/dist/assets/mermaid-HWGCJPDP-UrYE0_I-.js +0 -1
- package/dist/assets/mermaid-parser.core-3RKOfUXB.js +0 -7
- package/dist/assets/mirc-Bjfymsl0.js +0 -1
- package/dist/assets/mllike-DKHdPBJ4.js +0 -1
- package/dist/assets/modelica-DSjP6M5g.js +0 -1
- package/dist/assets/mscgen-BLnPHriT.js +0 -1
- package/dist/assets/mumps-C8StcE5K.js +0 -1
- package/dist/assets/nsis-T1iBtB9C.js +0 -1
- package/dist/assets/ntriples-ChQ5ETDi.js +0 -1
- package/dist/assets/number-overlay-editor-DAkTviCH.js +0 -9
- package/dist/assets/octave-B1-zg_Ax.js +0 -1
- package/dist/assets/outline-panel-7Gdsp6DE.js +0 -1
- package/dist/assets/oz-Bl-j8Qgc.js +0 -1
- package/dist/assets/packages-panel-B8pNRD-h.js +0 -1
- package/dist/assets/packet-AYTQ26CC-st4ZYus8.js +0 -1
- package/dist/assets/panels-B7fQSaeS.js +0 -33
- package/dist/assets/panels-CsyUBsel.css +0 -1
- package/dist/assets/pascal-BOvYlg0k.js +0 -1
- package/dist/assets/pegDiagram-XKGWAZYB-BsLbPyHL.js +0 -1
- package/dist/assets/perl-Bg-67FLb.js +0 -1
- package/dist/assets/pie-WAS4IAKB-GwT5MHDl.js +0 -1
- package/dist/assets/pig-Dm1oyrLX.js +0 -1
- package/dist/assets/powershell-DohryO0B.js +0 -1
- package/dist/assets/process-output-glq8CxqT.js +0 -1
- package/dist/assets/properties-C9Sx0CY6.js +0 -1
- package/dist/assets/protobuf-CkyW36SJ.js +0 -1
- package/dist/assets/pug-Db3Zt5v4.js +0 -1
- package/dist/assets/puppet-B65Z6MIR.js +0 -1
- package/dist/assets/purify.es-CYRiAeUx.js +0 -3
- package/dist/assets/python-D2ExL5QM.js +0 -1
- package/dist/assets/q-uBS-kSZE.js +0 -1
- package/dist/assets/r-BieRum_u.js +0 -1
- package/dist/assets/radar-RG4KPBEZ-h1Tdn-Oz.js +0 -1
- package/dist/assets/railroad-74A4TZTK-r4Uf-msd.js +0 -1
- package/dist/assets/railroad-abnf-HS5TGJTU-BOoktJ2s.js +0 -1
- package/dist/assets/railroad-ebnf-LZEXJU2U-BzJtHsBe.js +0 -1
- package/dist/assets/railroad-peg-WCYAUIDC-C3wGFTzw.js +0 -1
- package/dist/assets/railroadDiagram-O6MQD6OU-7uZVokuB.js +0 -1
- package/dist/assets/rpm-CmRXh_9v.js +0 -1
- package/dist/assets/ruby-B4BmRxk8.js +0 -1
- package/dist/assets/run-page-BKhs3fGH.js +0 -1
- package/dist/assets/sas-DL2uE5J1.js +0 -1
- package/dist/assets/scheme-CPTXU9en.js +0 -1
- package/dist/assets/scratchpad-panel-CKr_tLdc.js +0 -1
- package/dist/assets/secrets-panel-DVmOQ519.js +0 -1
- package/dist/assets/select-CWHHoM53.js +0 -1
- package/dist/assets/session-panel-C0mRZLy4.js +0 -1
- package/dist/assets/shell-B2QETDWa.js +0 -1
- package/dist/assets/sieve-DWZh8qcF.js +0 -1
- package/dist/assets/smalltalk-BZOwo1hk.js +0 -1
- package/dist/assets/snippets-panel-wcnAdGY5.js +0 -1
- package/dist/assets/sparql-Va5qPe7r.js +0 -1
- package/dist/assets/stateDiagram-D77RDMKH-CQ-fE8-k.js +0 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-B025D96x.js +0 -1
- package/dist/assets/step-CriubqJO.js +0 -1
- package/dist/assets/stex-CJTNBbet.js +0 -1
- package/dist/assets/stylus-B7NEtOjg.js +0 -1
- package/dist/assets/swift-CyXDuJhH.js +0 -1
- package/dist/assets/swimlanes-42K2YHIH-CB31Ci9z.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-CUGBnlpB.js +0 -8
- package/dist/assets/swiper-component-CCq8nrmf.js +0 -1
- package/dist/assets/tcl-DmU4tnXP.js +0 -1
- package/dist/assets/textile-DSm0gG7z.js +0 -1
- package/dist/assets/toast-DXkezxWI.js +0 -1
- package/dist/assets/toml-DtceOx7T.js +0 -1
- package/dist/assets/tooltip-CamoSiGF.js +0 -1
- package/dist/assets/tracing-DTdHQJ1H.js +0 -1
- package/dist/assets/tracing-panel-CdEYtuzi.js +0 -2
- package/dist/assets/treeView-Q6P3EWNA-DwYCsGZ1.js +0 -1
- package/dist/assets/treemap-WGGIJYW6-BH3CfKBr.js +0 -1
- package/dist/assets/troff-DXoHE4S9.js +0 -1
- package/dist/assets/ttcn-DYcxXVLi.js +0 -1
- package/dist/assets/ttcn-cfg-BfQlKCwV.js +0 -1
- package/dist/assets/turtle-CljXEmAu.js +0 -1
- package/dist/assets/use-restore-focus-D0UtBPD6.js +0 -5
- package/dist/assets/useCellActionButton-BAthbP5y.js +0 -1
- package/dist/assets/useEventListener-CUPWI_1X.js +0 -1
- package/dist/assets/useInterval-DluQa5sq.js +0 -1
- package/dist/assets/vb-CHFvWjRU.js +0 -1
- package/dist/assets/vbscript-BEDR3krh.js +0 -1
- package/dist/assets/vega-component-CJWaA6ZU.js +0 -1
- package/dist/assets/vega-embed-container-CPQUWOuE.js +0 -1
- package/dist/assets/velocity-BoKDxc_x.js +0 -1
- package/dist/assets/verilog-48D_RyTw.js +0 -1
- package/dist/assets/vhdl-B_DNZIiR.js +0 -1
- package/dist/assets/wardley-WFR3VGLG-Cr2mp5U6.js +0 -1
- package/dist/assets/webidl-DXE3DXqw.js +0 -1
- package/dist/assets/xquery-BriQFVWe.js +0 -1
- package/dist/assets/yacas-Cyn2f2Yi.js +0 -1
- package/dist/assets/youtube-Ck_NlGi9.js +0 -1
- package/dist/assets/z80-BG8AOCL_.js +0 -1
- /package/dist/assets/{useInterval-CV_Lf9-w.css → Inputs-CV_Lf9-w.css} +0 -0
package/dist/assets/{sequenceDiagram-WJ2MYXX4-DYQZopgj.js → sequenceDiagram-WJ2MYXX4-DELi1Kz5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,p as t}from"./chunk-75Z2AOVW-BzzYECN7.js";import{u as n}from"./src-BpnPuKEN.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as i}from"./src-Cyu5G-Tr.js";import{A as a,F as o,G as s,H as c,K as l,O as u,U as d,a as f,b as p,c as m,i as h,r as g,s as _,v,w as y,x as b,y as x,z as S}from"./chunk-DU6HZSFF-BlpgvKzl.js";import{t as C}from"./dist-CeoU7cfW.js";import{a as w,i as T}from"./mermaid-DNc2K-6T.js";import{a as E,c as D,i as O,n as k,r as A,s as j}from"./chunk-F27PBJKO-BVIgLGPF.js";import{t as M}from"./chunk-2Q5K7J3B-C1jixKkw.js";var N=C(),P=(function(){var e=r(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ee=[1,74],L=[1,80],R=[1,81],te=[1,82],ne=[1,83],z=[1,84],B=[1,85],V=[1,86],re=[1,87],H=[1,88],U=[1,89],W=[1,90],ie=[1,91],ae=[1,92],oe=[1,93],G=[1,94],se=[1,95],K=[1,96],ce=[1,97],le=[1,98],ue=[1,99],de=[1,100],fe=[1,101],pe=[1,102],me=[1,103],he=[1,104],ge=[1,105],_e=[2,78],ve=[4,5,17,51,53,54],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ce=[5,52],q=[70,71,72,73],J=[1,151],we={trace:r(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:r(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:i},{1:[3]},{3:5,4:t,5:n,6:i},{3:6,4:t,5:n,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:ee},{23:75,55:76,73:ee},{23:77,73:F},{69:78,72:[1,79],78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],_e),e(I,[2,6]),e(I,[2,16]),e(ve,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(ye,a,{7:120}),e(ye,a,{7:121}),e(ye,a,{7:122}),e(be,a,{41:123,7:124}),e(xe,a,{43:125,7:126}),e(xe,a,{7:126,43:127}),e(Se,a,{46:128,7:129}),e(ye,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ce,_e,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:J},{58:152,104:J},{58:153,104:J},{58:154,104:J},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Ce,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:J},{23:181,72:[1,182],73:F},{58:183,104:J},{58:184,104:J},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(ve,[2,11]),{13:186,51:D,53:O,54:k},e(ve,[2,13]),e(ve,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:J},{58:196,104:J},{58:197,104:J},{5:[2,75]},{58:198,104:J},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(ve,[2,12]),e(be,a,{7:124,41:201}),e(xe,a,{7:126,43:202}),e(Se,a,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Ce,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:r(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:r(function(e){var t=this,n=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}r(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}r(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{g as e,p as t}from"./chunk-75Z2AOVW-DEp7Wbaj.js";import{u as n}from"./src-BpnPuKEN.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as i}from"./src-Cyu5G-Tr.js";import{A as a,F as o,G as s,H as c,K as l,O as u,U as d,a as f,b as p,c as m,i as h,r as g,s as _,v,w as y,x as b,y as x,z as S}from"./chunk-DU6HZSFF-CDmPCRkr.js";import{t as C}from"./dist-CeoU7cfW.js";import{n as w,t as T}from"./chunk-LNGE3PJU-DWpGwHrW.js";import{a as E,c as D,i as O,n as k,r as A,s as j}from"./chunk-F27PBJKO-455JWNM3.js";import{t as M}from"./chunk-2Q5K7J3B-C1jixKkw.js";var N=C(),P=(function(){var e=r(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ee=[1,74],L=[1,80],R=[1,81],te=[1,82],ne=[1,83],z=[1,84],B=[1,85],V=[1,86],re=[1,87],H=[1,88],U=[1,89],W=[1,90],ie=[1,91],ae=[1,92],oe=[1,93],G=[1,94],se=[1,95],K=[1,96],ce=[1,97],le=[1,98],ue=[1,99],de=[1,100],fe=[1,101],pe=[1,102],me=[1,103],he=[1,104],ge=[1,105],_e=[2,78],ve=[4,5,17,51,53,54],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ce=[5,52],q=[70,71,72,73],J=[1,151],we={trace:r(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:r(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:i},{1:[3]},{3:5,4:t,5:n,6:i},{3:6,4:t,5:n,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:ee},{23:75,55:76,73:ee},{23:77,73:F},{69:78,72:[1,79],78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],_e),e(I,[2,6]),e(I,[2,16]),e(ve,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(ye,a,{7:120}),e(ye,a,{7:121}),e(ye,a,{7:122}),e(be,a,{41:123,7:124}),e(xe,a,{43:125,7:126}),e(xe,a,{7:126,43:127}),e(Se,a,{46:128,7:129}),e(ye,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ce,_e,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:J},{58:152,104:J},{58:153,104:J},{58:154,104:J},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Ce,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:J},{23:181,72:[1,182],73:F},{58:183,104:J},{58:184,104:J},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(ve,[2,11]),{13:186,51:D,53:O,54:k},e(ve,[2,13]),e(ve,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:J},{58:196,104:J},{58:197,104:J},{5:[2,75]},{58:198,104:J},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(ve,[2,12]),e(be,a,{7:124,41:201}),e(xe,a,{7:126,43:202}),e(Se,a,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Ce,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:r(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:r(function(e){var t=this,n=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}r(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}r(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};we.lexer=(function(){return{EOF:1,parseError:r(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:r(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:r(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},`input`),unput:r(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:r(function(){return this._more=!0,this},`more`),reject:r(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:r(function(e){this.unput(this.match.slice(e))},`less`),pastInput:r(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:r(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:r(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-B0Z9INg1.js";import{f as t,l as n,r}from"./useEvent-Dc9HkKI2.js";import{t as i}from"./compiler-runtime-BQ9S8nyo.js";import{g as a}from"./useEventListener-CUPWI_1X.js";import{t as o}from"./invariant-Ci2dTZ72.js";import{i as s,t as c}from"./utils-B4K466FK.js";function l(e,t){if(e==null)throw Error(t||`Expected value but got ${e}`)}var u=i();function d(){let e=r.get(h);return l(e,`internal-error: initial mode not found`),o(e!==`present`,`internal-error: initial mode cannot be 'present'`),e}function f(e){return e===`read`||e===`home`||e===`gallery`?e:e===`edit`?`present`:`edit`}async function p(e){let t=r.get(m);if(t.mode!==`edit`){await e();return}r.set(m,{...t,mode:`present`});try{await new Promise(e=>setTimeout(e,100)),await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),await e()}finally{r.set(m,t)}}var m=t({mode:c()?`read`:`not-set`,cellAnchor:null}),h=t(void 0);function g(){let e=r.get(h);return e!==`home`&&e!==`gallery`}var _=t(!1);function v(){let e=(0,u.c)(1),{mode:t}=n(m),r=n(_),i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=new URLSearchParams(window.location.search).get(s.kiosk),e[0]=i):i=e[0],t!==`read`&&!r&&i!==`true`}var y=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=v,e.fromBig=r,e.split=i;var t=BigInt(2**32-1),n=BigInt(32);function r(e,r=!1){return r?{h:Number(e&t),l:Number(e>>n&t)}:{h:Number(e>>n&t)|0,l:Number(e&t)|0}}function i(e,t=!1){let n=e.length,i=new Uint32Array(n),a=new Uint32Array(n);for(let o=0;o<n;o++){let{h:n,l:s}=r(e[o],t);[i[o],a[o]]=[n,s]}return[i,a]}var a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);e.toBig=a;var o=(e,t,n)=>e>>>n;e.shrSH=o;var s=(e,t,n)=>e<<32-n|t>>>n;e.shrSL=s;var c=(e,t,n)=>e>>>n|t<<32-n;e.rotrSH=c;var l=(e,t,n)=>e<<32-n|t>>>n;e.rotrSL=l;var u=(e,t,n)=>e<<64-n|t>>>n-32;e.rotrBH=u;var d=(e,t,n)=>e>>>n-32|t<<64-n;e.rotrBL=d;var f=(e,t)=>t;e.rotr32H=f;var p=(e,t)=>e;e.rotr32L=p;var m=(e,t,n)=>e<<n|t>>>32-n;e.rotlSH=m;var h=(e,t,n)=>t<<n|e>>>32-n;e.rotlSL=h;var g=(e,t,n)=>t<<n-32|e>>>64-n;e.rotlBH=g;var _=(e,t,n)=>e<<n-32|t>>>64-n;e.rotlBL=_;function v(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}var y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);e.add3L=y;var b=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;e.add3H=b;var x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);e.add4L=x;var S=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;e.add4H=S;var C=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5L=C;var w=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0;e.add5H=w,e.default={fromBig:r,split:i,toBig:a,shrSH:o,shrSL:s,rotrSH:c,rotrSL:l,rotrBH:u,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:h,rotlBH:g,rotlBL:_,add:v,add3L:y,add3H:b,add4L:x,add4H:S,add5H:w,add5L:C}})),b=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto=typeof globalThis==`object`&&`crypto`in globalThis?globalThis.crypto:void 0})),x=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=r,e.abytes=i,e.ahash=a,e.aexists=o,e.aoutput=s,e.u8=c,e.u32=l,e.clean=u,e.createView=d,e.rotr=f,e.rotl=p,e.byteSwap=m,e.byteSwap32=h,e.bytesToHex=v,e.hexToBytes=S,e.asyncLoop=C,e.utf8ToBytes=w,e.bytesToUtf8=T,e.toBytes=E,e.kdfInputToBytes=D,e.concatBytes=O,e.checkOpts=k,e.createHasher=A,e.createOptHasher=j,e.createXOFer=M,e.randomBytes=N;var t=b();function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, got `+e)}function i(e,...t){if(!n(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function a(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.createHasher`);r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function s(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function c(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}function p(e,t){return e<<t|e>>>32-t>>>0}e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function m(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}e.swap8IfBE=e.isLE?e=>e:e=>m(e),e.byteSwapIfBE=e.swap8IfBE;function h(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e}e.swap32IfBE=e.isLE?e=>e:h;var g=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function v(e){if(i(e),g)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=_[e[n]];return t}var y={_0:48,_9:57,A:65,F:70,a:97,f:102};function x(e){if(e>=y._0&&e<=y._9)return e-y._0;if(e>=y.A&&e<=y.F)return e-(y.A-10);if(e>=y.a&&e<=y.f)return e-(y.a-10)}function S(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);if(g)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=x(e.charCodeAt(i)),a=x(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw Error(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}e.nextTick=async()=>{};async function C(t,n,r){let i=Date.now();for(let a=0;a<t;a++){r(a);let t=Date.now()-i;t>=0&&t<n||(await(0,e.nextTick)(),i+=t)}}function w(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function T(e){return new TextDecoder().decode(e)}function E(e){return typeof e==`string`&&(e=w(e)),i(e),e}function D(e){return typeof e==`string`&&(e=w(e)),i(e),e}function O(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];i(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function k(e,t){if(t!==void 0&&{}.toString.call(t)!==`[object Object]`)throw Error(`options should be object or undefined`);return Object.assign(e,t)}e.Hash=class{};function A(e){let t=t=>e().update(E(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function j(e){let t=(t,n)=>e(n).update(E(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function M(e){let t=(t,n)=>e(n).update(E(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}e.wrapConstructor=A,e.wrapConstructorWithOpts=j,e.wrapXOFConstructorWithOpts=M;function N(e=32){if(t.crypto&&typeof t.crypto.getRandomValues==`function`)return t.crypto.getRandomValues(new Uint8Array(e));if(t.crypto&&typeof t.crypto.randomBytes==`function`)return Uint8Array.from(t.crypto.randomBytes(e));throw Error(`crypto.getRandomValues must be defined`)}})),S=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=void 0,e.keccakP=_;var t=y(),n=x(),r=BigInt(0),i=BigInt(1),a=BigInt(2),o=BigInt(7),s=BigInt(256),c=BigInt(113),l=[],u=[],d=[];for(let e=0,t=i,n=1,f=0;e<24;e++){[n,f]=[f,(2*n+3*f)%5],l.push(2*(5*f+n)),u.push((e+1)*(e+2)/2%64);let p=r;for(let e=0;e<7;e++)t=(t<<i^(t>>o)*c)%s,t&a&&(p^=i<<(i<<BigInt(e))-i);d.push(p)}var f=(0,t.split)(d,!0),p=f[0],m=f[1],h=(e,n,r)=>r>32?(0,t.rotlBH)(e,n,r):(0,t.rotlSH)(e,n,r),g=(e,n,r)=>r>32?(0,t.rotlBL)(e,n,r):(0,t.rotlSL)(e,n,r);function _(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,a=r[i],o=r[i+1],s=h(a,o,1)^r[n],c=g(a,o,1)^r[n+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=u[n],a=h(t,i,r),o=g(t,i,r),s=l[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=p[n],e[1]^=m[n]}(0,n.clean)(r)}var v=class e extends n.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,(0,n.anumber)(r),!(0<e&&e<200))throw Error(`only keccak-f1600 function is supported`);this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,n.swap32IfBE)(this.state32),_(this.state32,this.rounds),(0,n.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{blockLen:t,state:r}=this,i=e.length;for(let n=0;n<i;){let a=Math.min(t-this.pos,i-n);for(let t=0;t<a;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,t&128&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error(`XOF is not possible for this instance`);return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw Error(`digest() was already called`);return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,n.clean)(this.state)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return t||=new e(n,r,i,o,a),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=o,t.destroyed=this.destroyed,t}};e.Keccak=v;var b=(e,t,r)=>(0,n.createHasher)(()=>new v(t,e,r));e.sha3_224=b(6,144,28),e.sha3_256=b(6,136,32),e.sha3_384=b(6,104,48),e.sha3_512=b(6,72,64),e.keccak_224=b(1,144,28),e.keccak_256=b(1,136,32),e.keccak_384=b(1,104,48),e.keccak_512=b(1,72,64);var S=(e,t,r)=>(0,n.createXOFer)((n={})=>new v(t,e,n.dkLen===void 0?r:n.dkLen,!0));e.shake128=S(31,168,16),e.shake256=S(31,136,32)})),C=e(((e,t)=>{var{sha3_512:n}=S(),r=24,i=32,a=(e=4,t=Math.random)=>{let n=``;for(;n.length<e;)n+=Math.floor(t()*36).toString(36);return n};function o(e){let t=0n;for(let n of e.values()){let e=BigInt(n);t=(t<<8n)+e}return t}var s=(e=``)=>o(n(e)).toString(36).slice(1),c=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),l=e=>c[Math.floor(e()*c.length)],u=({globalObj:e=typeof global<`u`?global:typeof window<`u`?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString();return s(n.length?n+a(i,t):a(i,t)).substring(0,i)},d=e=>()=>e++,f=476782367,p=({random:e=Math.random,counter:t=d(Math.floor(e()*f)),length:n=r,fingerprint:i=u({random:e})}={})=>function(){let r=l(e),o=Date.now().toString(36),c=t().toString(36);return`${r+s(`${o+a(n,e)+c+i}`).substring(1,n)}`},m=p(),h=(e,{minLength:t=2,maxLength:n=i}={})=>{let r=e.length,a=/^[0-9a-z]+$/;try{if(typeof e==`string`&&r>=t&&r<=n&&a.test(e))return!0}finally{}return!1};t.exports.getConstants=()=>({defaultLength:r,bigLength:i}),t.exports.init=p,t.exports.createId=m,t.exports.bufToBigInt=o,t.exports.createCounter=d,t.exports.createFingerprint=u,t.exports.isCuid=h})),w=e(((e,t)=>{var{createId:n,init:r,getConstants:i,isCuid:a}=C();t.exports.createId=n,t.exports.init=r,t.exports.getConstants=i,t.exports.isCuid=a}));function T(e){return new URL(e,document.baseURI)}function E(e){let t=new URL(window.location.href);e(t.searchParams),window.history.replaceState({},``,t.toString())}function D(e,t){if(typeof window>`u`)return!1;let n=new URLSearchParams(window.location.search);return t===void 0?n.has(e):n.get(e)===t}function O(){let e=`__new__${N()}`;return T(`?file=${encodeURIComponent(e)}`).toString()}var k=/^(https?:\/\/\S+)$/;function A(e){return typeof e==`string`&&k.test(e)}function j({href:e,queryParams:t,keys:n}){let r=typeof t==`string`?new URLSearchParams(t):t;if(r.size===0||e.startsWith(`http://`)||e.startsWith(`https://`))return e;let i=e.startsWith(`#`),a=i&&e.includes(`?`);if(i&&!a){let t=n?[...r.entries()].filter(([e])=>n.includes(e)):[...r.entries()],i=new URLSearchParams;for(let[e,n]of t)i.set(e,n);let a=i.toString();return a?`/?${a}${e}`:e}let o=e,s=``,c=new URLSearchParams,l=+!!i,u=e.indexOf(`#`,l);u!==-1&&(s=e.slice(u),o=e.slice(0,u));let d=o.indexOf(`?`);d!==-1&&(c=new URLSearchParams(o.slice(d+1)),o=o.slice(0,d));let f=new URLSearchParams(c),p=n?[...r.entries()].filter(([e])=>n.includes(e)):[...r.entries()];for(let[e,t]of p)f.set(e,t);let m=f.toString();return m?`${o}?${m}${s}`:e}var M=(0,w().init)({length:6});function N(){return`s_${M()}`}function P(e){return e?/^s_[\da-z]{6}$/.test(e):!1}var F=null;function I(){let e=r.get(h)===`edit`,t=new URL(window.location.href).searchParams.get(s.sessionId),n=P(t)?t:null;return E(t=>{if(!e){t.delete(s.sessionId),t.delete(s.kiosk);return}t.has(s.kiosk)||t.delete(s.sessionId)}),n===null?(a.debug(`Starting a new session`,{sessionId:t}),N()):e?(a.debug(`Connecting to existing session`,{sessionId:n}),n):(a.debug(`Ignoring session_id from URL outside the editor`,{sessionId:n}),N())}function L(){return F===null&&(F=I()),F}export{m as _,A as a,T as c,h as d,g as f,v as g,f as h,D as i,w as l,p as m,P as n,O as o,_ as p,j as r,E as s,L as t,d as u,l as v};
|
|
1
|
+
import{t as e}from"./rolldown-runtime-B0Z9INg1.js";import{f as t,l as n,r}from"./useEvent-Dc9HkKI2.js";import{t as i}from"./compiler-runtime-BQ9S8nyo.js";import{g as a}from"./useEventListener-IRzG-0mH.js";import{t as o}from"./invariant-Ci2dTZ72.js";import{i as s,t as c}from"./utils-B4K466FK.js";function l(e,t){if(e==null)throw Error(t||`Expected value but got ${e}`)}var u=i();function d(){let e=r.get(h);return l(e,`internal-error: initial mode not found`),o(e!==`present`,`internal-error: initial mode cannot be 'present'`),e}function f(e){return e===`read`||e===`home`||e===`gallery`?e:e===`edit`?`present`:`edit`}async function p(e){let t=r.get(m);if(t.mode!==`edit`){await e();return}r.set(m,{...t,mode:`present`});try{await new Promise(e=>setTimeout(e,100)),await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),await e()}finally{r.set(m,t)}}var m=t({mode:c()?`read`:`not-set`,cellAnchor:null}),h=t(void 0);function g(){let e=r.get(h);return e!==`home`&&e!==`gallery`}var _=t(!1);function v(){let e=(0,u.c)(1),{mode:t}=n(m),r=n(_),i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=new URLSearchParams(window.location.search).get(s.kiosk),e[0]=i):i=e[0],t!==`read`&&!r&&i!==`true`}var y=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=v,e.fromBig=r,e.split=i;var t=BigInt(2**32-1),n=BigInt(32);function r(e,r=!1){return r?{h:Number(e&t),l:Number(e>>n&t)}:{h:Number(e>>n&t)|0,l:Number(e&t)|0}}function i(e,t=!1){let n=e.length,i=new Uint32Array(n),a=new Uint32Array(n);for(let o=0;o<n;o++){let{h:n,l:s}=r(e[o],t);[i[o],a[o]]=[n,s]}return[i,a]}var a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);e.toBig=a;var o=(e,t,n)=>e>>>n;e.shrSH=o;var s=(e,t,n)=>e<<32-n|t>>>n;e.shrSL=s;var c=(e,t,n)=>e>>>n|t<<32-n;e.rotrSH=c;var l=(e,t,n)=>e<<32-n|t>>>n;e.rotrSL=l;var u=(e,t,n)=>e<<64-n|t>>>n-32;e.rotrBH=u;var d=(e,t,n)=>e>>>n-32|t<<64-n;e.rotrBL=d;var f=(e,t)=>t;e.rotr32H=f;var p=(e,t)=>e;e.rotr32L=p;var m=(e,t,n)=>e<<n|t>>>32-n;e.rotlSH=m;var h=(e,t,n)=>t<<n|e>>>32-n;e.rotlSL=h;var g=(e,t,n)=>t<<n-32|e>>>64-n;e.rotlBH=g;var _=(e,t,n)=>e<<n-32|t>>>64-n;e.rotlBL=_;function v(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}var y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);e.add3L=y;var b=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;e.add3H=b;var x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);e.add4L=x;var S=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;e.add4H=S;var C=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5L=C;var w=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0;e.add5H=w,e.default={fromBig:r,split:i,toBig:a,shrSH:o,shrSL:s,rotrSH:c,rotrSL:l,rotrBH:u,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:h,rotlBH:g,rotlBL:_,add:v,add3L:y,add3H:b,add4L:x,add4H:S,add5H:w,add5L:C}})),b=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto=typeof globalThis==`object`&&`crypto`in globalThis?globalThis.crypto:void 0})),x=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=r,e.abytes=i,e.ahash=a,e.aexists=o,e.aoutput=s,e.u8=c,e.u32=l,e.clean=u,e.createView=d,e.rotr=f,e.rotl=p,e.byteSwap=m,e.byteSwap32=h,e.bytesToHex=v,e.hexToBytes=S,e.asyncLoop=C,e.utf8ToBytes=w,e.bytesToUtf8=T,e.toBytes=E,e.kdfInputToBytes=D,e.concatBytes=O,e.checkOpts=k,e.createHasher=A,e.createOptHasher=j,e.createXOFer=M,e.randomBytes=N;var t=b();function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, got `+e)}function i(e,...t){if(!n(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function a(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.createHasher`);r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function s(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function c(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}function p(e,t){return e<<t|e>>>32-t>>>0}e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function m(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}e.swap8IfBE=e.isLE?e=>e:e=>m(e),e.byteSwapIfBE=e.swap8IfBE;function h(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e}e.swap32IfBE=e.isLE?e=>e:h;var g=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function v(e){if(i(e),g)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=_[e[n]];return t}var y={_0:48,_9:57,A:65,F:70,a:97,f:102};function x(e){if(e>=y._0&&e<=y._9)return e-y._0;if(e>=y.A&&e<=y.F)return e-(y.A-10);if(e>=y.a&&e<=y.f)return e-(y.a-10)}function S(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);if(g)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=x(e.charCodeAt(i)),a=x(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw Error(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}e.nextTick=async()=>{};async function C(t,n,r){let i=Date.now();for(let a=0;a<t;a++){r(a);let t=Date.now()-i;t>=0&&t<n||(await(0,e.nextTick)(),i+=t)}}function w(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function T(e){return new TextDecoder().decode(e)}function E(e){return typeof e==`string`&&(e=w(e)),i(e),e}function D(e){return typeof e==`string`&&(e=w(e)),i(e),e}function O(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];i(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function k(e,t){if(t!==void 0&&{}.toString.call(t)!==`[object Object]`)throw Error(`options should be object or undefined`);return Object.assign(e,t)}e.Hash=class{};function A(e){let t=t=>e().update(E(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function j(e){let t=(t,n)=>e(n).update(E(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function M(e){let t=(t,n)=>e(n).update(E(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}e.wrapConstructor=A,e.wrapConstructorWithOpts=j,e.wrapXOFConstructorWithOpts=M;function N(e=32){if(t.crypto&&typeof t.crypto.getRandomValues==`function`)return t.crypto.getRandomValues(new Uint8Array(e));if(t.crypto&&typeof t.crypto.randomBytes==`function`)return Uint8Array.from(t.crypto.randomBytes(e));throw Error(`crypto.getRandomValues must be defined`)}})),S=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=void 0,e.keccakP=_;var t=y(),n=x(),r=BigInt(0),i=BigInt(1),a=BigInt(2),o=BigInt(7),s=BigInt(256),c=BigInt(113),l=[],u=[],d=[];for(let e=0,t=i,n=1,f=0;e<24;e++){[n,f]=[f,(2*n+3*f)%5],l.push(2*(5*f+n)),u.push((e+1)*(e+2)/2%64);let p=r;for(let e=0;e<7;e++)t=(t<<i^(t>>o)*c)%s,t&a&&(p^=i<<(i<<BigInt(e))-i);d.push(p)}var f=(0,t.split)(d,!0),p=f[0],m=f[1],h=(e,n,r)=>r>32?(0,t.rotlBH)(e,n,r):(0,t.rotlSH)(e,n,r),g=(e,n,r)=>r>32?(0,t.rotlBL)(e,n,r):(0,t.rotlSL)(e,n,r);function _(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,a=r[i],o=r[i+1],s=h(a,o,1)^r[n],c=g(a,o,1)^r[n+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=u[n],a=h(t,i,r),o=g(t,i,r),s=l[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=p[n],e[1]^=m[n]}(0,n.clean)(r)}var v=class e extends n.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,(0,n.anumber)(r),!(0<e&&e<200))throw Error(`only keccak-f1600 function is supported`);this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,n.swap32IfBE)(this.state32),_(this.state32,this.rounds),(0,n.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{blockLen:t,state:r}=this,i=e.length;for(let n=0;n<i;){let a=Math.min(t-this.pos,i-n);for(let t=0;t<a;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,t&128&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error(`XOF is not possible for this instance`);return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw Error(`digest() was already called`);return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,n.clean)(this.state)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return t||=new e(n,r,i,o,a),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=o,t.destroyed=this.destroyed,t}};e.Keccak=v;var b=(e,t,r)=>(0,n.createHasher)(()=>new v(t,e,r));e.sha3_224=b(6,144,28),e.sha3_256=b(6,136,32),e.sha3_384=b(6,104,48),e.sha3_512=b(6,72,64),e.keccak_224=b(1,144,28),e.keccak_256=b(1,136,32),e.keccak_384=b(1,104,48),e.keccak_512=b(1,72,64);var S=(e,t,r)=>(0,n.createXOFer)((n={})=>new v(t,e,n.dkLen===void 0?r:n.dkLen,!0));e.shake128=S(31,168,16),e.shake256=S(31,136,32)})),C=e(((e,t)=>{var{sha3_512:n}=S(),r=24,i=32,a=(e=4,t=Math.random)=>{let n=``;for(;n.length<e;)n+=Math.floor(t()*36).toString(36);return n};function o(e){let t=0n;for(let n of e.values()){let e=BigInt(n);t=(t<<8n)+e}return t}var s=(e=``)=>o(n(e)).toString(36).slice(1),c=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),l=e=>c[Math.floor(e()*c.length)],u=({globalObj:e=typeof global<`u`?global:typeof window<`u`?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString();return s(n.length?n+a(i,t):a(i,t)).substring(0,i)},d=e=>()=>e++,f=476782367,p=({random:e=Math.random,counter:t=d(Math.floor(e()*f)),length:n=r,fingerprint:i=u({random:e})}={})=>function(){let r=l(e),o=Date.now().toString(36),c=t().toString(36);return`${r+s(`${o+a(n,e)+c+i}`).substring(1,n)}`},m=p(),h=(e,{minLength:t=2,maxLength:n=i}={})=>{let r=e.length,a=/^[0-9a-z]+$/;try{if(typeof e==`string`&&r>=t&&r<=n&&a.test(e))return!0}finally{}return!1};t.exports.getConstants=()=>({defaultLength:r,bigLength:i}),t.exports.init=p,t.exports.createId=m,t.exports.bufToBigInt=o,t.exports.createCounter=d,t.exports.createFingerprint=u,t.exports.isCuid=h})),w=e(((e,t)=>{var{createId:n,init:r,getConstants:i,isCuid:a}=C();t.exports.createId=n,t.exports.init=r,t.exports.getConstants=i,t.exports.isCuid=a}));function T(e){return new URL(e,document.baseURI)}function E(e){let t=new URL(window.location.href);e(t.searchParams),window.history.replaceState({},``,t.toString())}function D(e,t){if(typeof window>`u`)return!1;let n=new URLSearchParams(window.location.search);return t===void 0?n.has(e):n.get(e)===t}function O(){let e=`__new__${F()}`;return T(`?file=${encodeURIComponent(e)}`).toString()}var k=/^(https?:\/\/\S+)$/;function A(e){return typeof e==`string`&&k.test(e)}function j({href:e,queryParams:t,keys:n}){let r=typeof t==`string`?new URLSearchParams(t):t;if(r.size===0||e.startsWith(`http://`)||e.startsWith(`https://`))return e;let i=e.startsWith(`#`),a=i&&e.includes(`?`);if(i&&!a){let t=n?[...r.entries()].filter(([e])=>n.includes(e)):[...r.entries()],i=new URLSearchParams;for(let[e,n]of t)i.set(e,n);let a=i.toString();return a?`/?${a}${e}`:e}let o=e,s=``,c=new URLSearchParams,l=+!!i,u=e.indexOf(`#`,l);u!==-1&&(s=e.slice(u),o=e.slice(0,u));let d=o.indexOf(`?`);d!==-1&&(c=new URLSearchParams(o.slice(d+1)),o=o.slice(0,d));let f=new URLSearchParams(c),p=n?[...r.entries()].filter(([e])=>n.includes(e)):[...r.entries()];for(let[e,t]of p)f.set(e,t);let m=f.toString();return m?`${o}?${m}${s}`:e}var M=w(),N=t(null),P=(0,M.init)({length:6});function F(){return`s_${P()}`}function I(e){return e?/^s_[\da-z]{6}$/.test(e):!1}var L=null;function R(){let e=r.get(h)===`edit`,t=new URL(window.location.href).searchParams.get(s.sessionId),n=I(t)?t:null;return E(t=>{if(!e){t.delete(s.sessionId),t.delete(s.kiosk);return}t.has(s.kiosk)||t.delete(s.sessionId)}),n===null?(a.debug(`Starting a new session`,{sessionId:t}),F()):e?(a.debug(`Connecting to existing session`,{sessionId:n}),n):(a.debug(`Ignoring session_id from URL outside the editor`,{sessionId:n}),F())}function z(){return L===null&&(L=R()),L}export{v as _,D as a,E as c,d,h as f,f as g,p as h,j as i,T as l,_ as m,I as n,A as o,g as p,N as r,O as s,z as t,w as u,m as v,l as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{c as t,f as n,l as r,u as i}from"./useEvent-Dc9HkKI2.js";import{t as a}from"./react-CUdNIagt.js";import{$r as o,Ai as s,Bi as c,Bt as l,Cn as u,D as d,Gn as f,Ha as p,Hi as m,Ii as h,Ji as g,Ki as _,Kn as v,Li as y,M as b,Mi as x,P as S,Qr as C,Ri as w,Rn as T,Rt as E,Ui as D,Wa as O,Wi as k,Xi as A,Yi as j,Zi as M,_n as ee,c as N,fn as P,gn as F,i as I,jn as L,qi as R,qn as z,ro as te,ti as ne,to as B,yr as V,yt as H,zi as U}from"./cells-CuKxjgjJ.js";import{t as W}from"./compiler-runtime-BQ9S8nyo.js";import{s as re}from"./config-Cyum2gRs.js";import{O as G}from"./config-BAnYSdpO.js";import{t as K}from"./ErrorBoundary-CowFEmQK.js";import{t as ie}from"./cn-ldLVeaqm.js";import{t as q}from"./jsx-runtime-B74pBk57.js";import{r as ae}from"./config-BaEZVOk2.js";import{_ as oe,at as J,f as se,g as ce,h as le,it as ue,m as de,nt as fe,ot as pe,rt as me,tt as he,v as ge}from"./JsonOutput-c1E0SCoN.js";import{t as _e}from"./tooltip-B5pI8o2n.js";import{r as ve,t as ye}from"./button-M49xxKoi.js";import{t as be}from"./createLucideIcon-rHn2EdoM.js";import{i as xe}from"./paths-CzfpItSz.js";import{r as Se}from"./useNumberFormatter-C4-_TnkF.js";import{a as Ce,r as we}from"./tree-actions-DdvPjaze.js";import{a as Te}from"./input-DnyzXg4C.js";import{n as Ee,o as De}from"./column-preview-BltuXodG.js";import{t as Oe}from"./workflow-nBi9HGeO.js";import{t as ke}from"./copy-icon-wfSGfX8v.js";import{l as Ae}from"./arrays-BqUx5USx.js";import{i as je}from"./strings-hlCLC-K1.js";import{r as Me}from"./requests-yTHMxhVa.js";import{t as Ne}from"./context-BFOBKCJB.js";import{n as Pe}from"./useAsyncData-DucTwMkf.js";import{t as Fe}from"./cell-link-DRuyhIKm.js";import{a as Ie,i as Le,n as Re,o as ze,r as Be,t as Ve}from"./table-Dg1KxH-q.js";import{n as He}from"./icons-CVdkfEA3.js";import{t as Ue}from"./useDeepCompareMemoize-DSlTt6u_.js";import{t as We}from"./useAddCell-BbK54Wma.js";import{t as Ge}from"./empty-state-CzxjZqGW.js";import{n as Ke,t as qe}from"./common-BHV00wKC.js";import{a as Je,i as Ye,n as Xe,o as Ze,r as Qe,s as $e,t as et}from"./components-DzAIJKU7.js";import{r as tt}from"./panel-accordion-state-u7avi-RV.js";var nt=be(`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`}]]),Y=W(),X=e(a(),1),Z=q(),rt=1;function it(e){return 1.75+e*rt}function at(e){return 3+e*rt}function ot(e){return 3.25+e*rt}var Q={engineEmpty:.75,engine:.75,database:1,tableLoading:2.75,tableSchemaless:2,columnLocal:1.25,columnPreview:2.5};function $(e){return{paddingLeft:`${e}rem`}}var st=n(e=>{let t=e(w),n=e(ne),r=e(I);return Ae(t,e=>{if(!e.variable_name)return-1;let t=Object.values(n).find(t=>t.name===e.variable_name);if(!t)return 0;let i=r.inOrderIds.indexOf(t.declaredBy[0]);return i===-1?0:i})}),ct=G(`marimo:datasources:hideEmpty`,!1,C,{getOnInit:!0});function lt(e){let t=!1,n=[];for(let r of e){if(!k(r)||!m(r)){n.push(r);continue}let e=r.child_schemas??[],i=lt(e);if(r.tables.length===0&&i.length===0){t=!0;continue}if(i===e){n.push(r);continue}t=!0,n.push({...r,child_schemas:i})}return t?n:e}function ut(e){let t=!1,n=[];for(let r of e){if(D(r)&&r.schemas.length===0){t=!0;continue}if(r.schemas.length===0){n.push(r);continue}let e=lt(r.schemas);if(e.length===0){t=!0;continue}if(e===r.schemas){n.push(r);continue}t=!0,n.push({...r,schemas:e})}return t?n:e}var dt=()=>{let e=(0,Y.c)(42),[n,a]=X.useState(``),[o,s]=t(ct),c=i(y),l=r(st),d=r(x),f;bb0:{if(!o){f=d;break bb0}let t,n;e[0]===d?(t=e[1],n=e[2]):(t=!1,n=d.map(e=>{let n=ut(e.databases);return n===e.databases?e:(t=!0,{...e,databases:n})}),e[0]=d,e[1]=t,e[2]=n),f=t?n:d}let p=f;if(l.length===0&&p.length===0){let t;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Ge,{title:`No tables found`,description:`Any datasets/dataframes in the global scope will be shown here.`,action:(0,Z.jsx)(Ze,{group:`database`,label:`Add database or catalog`,variant:`outline`,size:`sm`}),icon:(0,Z.jsx)(xe,{})}),e[3]=t):t=e[3],t}let m;e[4]===n?m=e[5]:(m=n.trim(),e[4]=n,e[5]=m);let h=!!m,g;e[6]===c?g=e[7]:(g=e=>{c(e.length>0),a(e)},e[6]=c,e[7]=g);let _;e[8]!==n||e[9]!==g?(_=(0,Z.jsx)(F,{placeholder:`Search tables...`,className:`h-6 m-1`,value:n,onValueChange:g,rootClassName:`flex-1 border-r border-b-0`}),e[8]=n,e[9]=g,e[10]=_):_=e[10];let v;e[11]===h?v=e[12]:(v=h&&(0,Z.jsx)(`button`,{type:`button`,className:`float-right border-b px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground`,onClick:()=>a(``),children:(0,Z.jsx)(Se,{className:`h-4 w-4`})}),e[11]=h,e[12]=v);let b=!o,S;e[13]!==o||e[14]!==s?(S=()=>s(!o),e[13]=o,e[14]=s,e[15]=S):S=e[15];let C;e[16]!==b||e[17]!==S?(C=(0,Z.jsx)(Ce,{"data-testid":`datasources-hide-empty-button`,isVisible:b,onToggle:S,showTooltip:`Show empty schemas and databases`,hideTooltip:`Hide empty schemas and databases`,size:`sm`,className:`px-2 rounded-none focus-visible:outline-hidden`}),e[16]=b,e[17]=S,e[18]=C):C=e[18];let w;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Z.jsx)(Ze,{group:`database`,label:`Add database or catalog`,compact:!0,variant:`ghost`,size:`sm`,className:`px-2 rounded-none focus-visible:outline-hidden`}),e[19]=w):w=e[19];let T;e[20]!==_||e[21]!==v||e[22]!==C?(T=(0,Z.jsxs)(`div`,{className:`flex items-center w-full border-b`,children:[_,v,C,w]}),e[20]=_,e[21]=v,e[22]=C,e[23]=T):T=e[23];let E;if(e[24]!==p||e[25]!==n){let t;e[27]===n?t=e[28]:(t=e=>(0,Z.jsx)(ft,{connection:e,hasChildren:e.databases.length>0,children:e.databases.map(t=>(0,Z.jsx)(gt,{connection:e,database:t,searchValue:n},t.name))},e.name),e[27]=n,e[28]=t),E=p.map(t),e[24]=p,e[25]=n,e[26]=E}else E=e[26];let D;e[29]!==p.length||e[30]!==l.length?(D=p.length>0&&l.length>0&&(0,Z.jsxs)(de,{className:`pr-2`,style:$(Q.engine),children:[(0,Z.jsx)(He,{className:`h-4 w-4 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`text-xs`,children:`Python`})]}),e[29]=p.length,e[30]=l.length,e[31]=D):D=e[31];let O;e[32]!==n||e[33]!==l?(O=l.length>0&&(0,Z.jsx)(bt,{tables:l,searchValue:n}),e[32]=n,e[33]=l,e[34]=O):O=e[34];let k;e[35]!==E||e[36]!==D||e[37]!==O?(k=(0,Z.jsxs)(u,{className:`flex flex-col`,children:[E,D,O]}),e[35]=E,e[36]=D,e[37]=O,e[38]=k):k=e[38];let A;return e[39]!==k||e[40]!==T?(A=(0,Z.jsxs)(P,{className:`border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden`,shouldFilter:!1,children:[T,k]}),e[39]=k,e[40]=T,e[41]=A):A=e[41],A},ft=e=>{let t=(0,Y.c)(26),{connection:n,children:r,hasChildren:i}=e,a=n.name===M,o=a?`In-Memory`:n.name,{previewDataSourceConnection:c}=Me(),l;t[0]!==n.name||t[1]!==c?(l=async()=>{await c({engine:n.name})},t[0]=n.name,t[1]=c,t[2]=l):l=t[2];let u=l,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=$(Q.engine),t[3]=d):d=t[3];let f;t[4]===n.dialect?f=t[5]:(f=(0,Z.jsx)(L,{className:`h-4 w-4 text-muted-foreground`,name:n.dialect}),t[4]=n.dialect,t[5]=f);let p;t[6]===n.dialect?p=t[7]:(p=s(n.dialect),t[6]=n.dialect,t[7]=p);let m;t[8]===p?m=t[9]:(m=(0,Z.jsx)(`span`,{className:`text-xs`,children:p}),t[8]=p,t[9]=m);let h=o,g;t[10]===h?g=t[11]:(g=(0,Z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`(`,(0,Z.jsx)($e,{variableName:h}),`)`]}),t[10]=h,t[11]=g);let _;t[12]!==u||t[13]!==a?(_=!a&&(0,Z.jsx)(we,{onClick:u,tooltip:`Refresh connection`,className:`ml-auto h-4 p-0`,iconClassName:`h-3.5 w-3.5`}),t[12]=u,t[13]=a,t[14]=_):_=t[14];let v;t[15]!==f||t[16]!==m||t[17]!==g||t[18]!==_?(v=(0,Z.jsxs)(de,{className:`pr-2`,style:d,children:[f,m,g,_]}),t[15]=f,t[16]=m,t[17]=g,t[18]=_,t[19]=v):v=t[19];let y;t[20]!==r||t[21]!==i?(y=i?r:(0,Z.jsx)(le,{content:`No databases available`,style:$(Q.engineEmpty)}),t[20]=r,t[21]=i,t[22]=y):y=t[22];let b;return t[23]!==y||t[24]!==v?(b=(0,Z.jsxs)(Z.Fragment,{children:[v,y]}),t[23]=y,t[24]=v,t[25]=b):b=t[25],b},pt=X.createContext(null);function mt(){let e=X.useContext(pt);if(e==null)throw Error(`useDataSourceTree must be used within a DataSourceTreeContext.Provider`);return e}function ht(e,{schema:t,schemaPath:n}){return{engine:e.engineName,database:e.databaseName,schema:t,schemaPath:n,defaultSchema:e.defaultSchema,defaultDatabase:e.defaultDatabase,dialect:e.dialect}}var gt=e=>{let t=(0,Y.c)(21),{connection:n,database:r,searchValue:i}=e,a;t[0]!==n.default_database||t[1]!==n.default_schema||t[2]!==n.dialect||t[3]!==n.name||t[4]!==r.name||t[5]!==i?(a={engineName:n.name,databaseName:r.name,dialect:n.dialect,defaultSchema:n.default_schema,defaultDatabase:n.default_database,searchValue:i},t[0]=n.default_database,t[1]=n.default_schema,t[2]=n.dialect,t[3]=n.name,t[4]=r.name,t[5]=i,t[6]=a):a=t[6];let o=a,s=n.name,c=r.schemas,l;t[7]===r?l=t[8]:(l=D(r),t[7]=r,t[8]=l);let u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=[],t[9]=u):u=t[9];let d;t[10]!==r.schemas||t[11]!==l?(d=(0,Z.jsx)(vt,{schemas:c,schemasResolved:l,schemaPath:u,depth:0}),t[10]=r.schemas,t[11]=l,t[12]=d):d=t[12];let f;t[13]!==d||t[14]!==o?(f=(0,Z.jsx)(pt.Provider,{value:o,children:d}),t[13]=d,t[14]=o,t[15]=f):f=t[15];let p;return t[16]!==n.name||t[17]!==r||t[18]!==i||t[19]!==f?(p=(0,Z.jsx)(_t,{engineName:s,database:r,searchValue:i,children:f}),t[16]=n.name,t[17]=r,t[18]=i,t[19]=f,t[20]=p):p=t[20],p},_t=e=>{let t=(0,Y.c)(29),{searchValue:n,engineName:r,database:i,children:a}=e,o;t[0]!==i||t[1]!==n?(o=g(i,n),t[0]=i,t[1]=n,t[2]=o):o=t[2];let s=o,[c,l]=X.useState(s),[u,d]=X.useState(!1),[f,p]=X.useState(n),[m,h]=X.useState(s);(f!==n||m!==s)&&(p(n),h(s),l(s));let _;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(_=$(Q.database),t[3]=_):_=t[3];let v;t[4]!==c||t[5]!==u?(v=()=>{l(!c),d(!u)},t[4]=c,t[5]=u,t[6]=v):v=t[6];let y=`${r}:${i.name}`,b;t[7]===c?b=t[8]:(b=(0,Z.jsx)(ge,{isExpanded:c}),t[7]=c,t[8]=b);let x=u&&c?`text-foreground`:`text-muted-foreground`,S;t[9]===x?S=t[10]:(S=ie(`h-4 w-4`,x),t[9]=x,t[10]=S);let C;t[11]===S?C=t[12]:(C=(0,Z.jsx)(xe,{className:S}),t[11]=S,t[12]=C);let w=u&&c&&`font-semibold`,T;t[13]===w?T=t[14]:(T=ie(w),t[13]=w,t[14]=T);let E;t[15]===i.name?E=t[16]:(E=i.name===``?(0,Z.jsx)(`i`,{children:`Not connected`}):i.name,t[15]=i.name,t[16]=E);let D;t[17]!==T||t[18]!==E?(D=(0,Z.jsx)(`span`,{className:T,children:E}),t[17]=T,t[18]=E,t[19]=D):D=t[19];let O;t[20]!==D||t[21]!==v||t[22]!==y||t[23]!==b||t[24]!==C?(O=(0,Z.jsxs)(ee,{className:`text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none`,style:_,onSelect:v,value:y,children:[b,C,D]}),t[20]=D,t[21]=v,t[22]=y,t[23]=b,t[24]=C,t[25]=O):O=t[25];let k=c&&a,A;return t[26]!==O||t[27]!==k?(A=(0,Z.jsxs)(Z.Fragment,{children:[O,k]}),t[26]=O,t[27]=k,t[28]=A):A=t[28],A},vt=e=>{let{schemas:t,schemasResolved:n,depth:r}=e,i=mt(),{engineName:a,databaseName:o,searchValue:s}=i,{addSchemaList:c}=h(),l=Ue(e.schemaPath),[u,d]=X.useState(!1),{isPending:p,error:m}=Pe(async()=>{if(!n&&a){d(!0);try{let e=await f.request({engine:a,database:o,schemaPath:l});c({schemas:e.schemas??[],sqlSchemaContext:{engine:a,database:o,schemaPath:l}})}finally{d(!1)}}},[n,a,o,l]),g=$(it(r));return p||u?(0,Z.jsx)(oe,{message:`Loading schemas...`,style:g}):m?(0,Z.jsx)(ce,{error:m,style:g}):t.length===0?(0,Z.jsx)(le,{content:`No schemas available`,style:g}):(0,Z.jsx)(Z.Fragment,{children:t.map(e=>_(e.name)?(0,Z.jsx)(bt,{tables:e.tables,tablesResolved:k(e),searchValue:s,sqlTableContext:ht(i,{schema:e.name,schemaPath:l})},e.name):(0,Z.jsx)(yt,{schema:e,schemaPath:[...l,e.name],depth:r},e.name))})},yt=e=>{let t=(0,Y.c)(41),{schema:n,schemaPath:r,depth:i}=e,a=mt(),{databaseName:o,searchValue:s}=a,c;t[0]!==n||t[1]!==s?(c=R(n,s),t[0]=n,t[1]=s,t[2]=c):c=t[2];let l=c,[u,d]=X.useState(l),[f,p]=X.useState(!1),[h,g]=X.useState(s),[_,v]=X.useState(l),y;t[3]===r?y=t[4]:(y=r.join(`.`),t[3]=r,t[4]=y);let b=`${o}:${y}`,x;t[5]===n.child_schemas?x=t[6]:(x=n.child_schemas??[],t[5]=n.child_schemas,t[6]=x);let S=x;(h!==s||_!==l)&&(g(s),v(l),d(l));let C;t[7]===i?C=t[8]:(C=$(it(i)),t[7]=i,t[8]=C);let w;t[9]!==u||t[10]!==f?(w=()=>{d(!u),p(!f)},t[9]=u,t[10]=f,t[11]=w):w=t[11];let T;t[12]===u?T=t[13]:(T=(0,Z.jsx)(ge,{isExpanded:u}),t[12]=u,t[13]=T);let E=f&&u&&`text-foreground`,D;t[14]===E?D=t[15]:(D=ie(`h-4 w-4 text-muted-foreground`,E),t[14]=E,t[15]=D);let O;t[16]===D?O=t[17]:(O=(0,Z.jsx)(B,{className:D}),t[16]=D,t[17]=O);let A=f&&u&&`font-semibold`,j;t[18]===A?j=t[19]:(j=ie(A),t[18]=A,t[19]=j);let M;t[20]!==n.name||t[21]!==j?(M=(0,Z.jsx)(`span`,{className:j,children:n.name}),t[20]=n.name,t[21]=j,t[22]=M):M=t[22];let N;t[23]!==M||t[24]!==C||t[25]!==w||t[26]!==T||t[27]!==O||t[28]!==b?(N=(0,Z.jsxs)(ee,{className:`text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none`,style:C,onSelect:w,value:b,children:[T,O,M]}),t[23]=M,t[24]=C,t[25]=w,t[26]=T,t[27]=O,t[28]=b,t[29]=N):N=t[29];let P;t[30]!==S||t[31]!==i||t[32]!==u||t[33]!==n||t[34]!==r||t[35]!==s||t[36]!==a?(P=u&&(0,Z.jsxs)(Z.Fragment,{children:[(S.length>0||!m(n))&&(0,Z.jsx)(vt,{schemas:S,schemasResolved:m(n),schemaPath:r,depth:i+1}),(0,Z.jsx)(bt,{tables:n.tables,tablesResolved:k(n),searchValue:s,tableIndentRem:at(i),columnIndentRem:ot(i),sqlTableContext:ht(a,{schema:n.name,schemaPath:r})})]}),t[30]=S,t[31]=i,t[32]=u,t[33]=n,t[34]=r,t[35]=s,t[36]=a,t[37]=P):P=t[37];let F;return t[38]!==N||t[39]!==P?(F=(0,Z.jsxs)(Z.Fragment,{children:[N,P]}),t[38]=N,t[39]=P,t[40]=F):F=t[40],F},bt=e=>{let t=(0,Y.c)(31),{tables:n,sqlTableContext:r,searchValue:i,tablesResolved:a,tableIndentRem:o,columnIndentRem:s}=e,c=a===void 0||a,{addTableList:l}=h(),[u,d]=X.useState(!1),f;t[0]!==l||t[1]!==r||t[2]!==c?(f=async()=>{if(!c&&r){d(!0);let{engine:e,database:t,schema:n,schemaPath:i}=r,a=await z.request({engine:e,database:t,schema:n,schemaPath:i??[]});if(!a?.tables)throw d(!1),Error(`No tables available`);l({tables:a.tables,sqlTableContext:r}),d(!1)}},t[0]=l,t[1]=r,t[2]=c,t[3]=f):f=t[3];let p;t[4]!==r||t[5]!==c?(p=[c,r],t[4]=r,t[5]=c,t[6]=p):p=t[6];let{isPending:m,error:g}=Pe(f,p),_=o??Q.tableLoading,v;t[7]===_?v=t[8]:(v=$(_),t[7]=_,t[8]=v);let y=v;if(m||u){let e;return t[9]===y?e=t[10]:(e=(0,Z.jsx)(oe,{message:`Loading tables...`,style:y}),t[9]=y,t[10]=e),e}if(g){let e;return t[11]!==g||t[12]!==y?(e=(0,Z.jsx)(ce,{error:g,style:y}),t[11]=g,t[12]=y,t[13]=e):e=t[13],e}if(n.length===0){let e;return t[14]===y?e=t[15]:(e=(0,Z.jsx)(le,{content:`No tables found`,style:y}),t[14]=y,t[15]=e),e}let b;if(t[16]!==s||t[17]!==i||t[18]!==r||t[19]!==o||t[20]!==n){let e;t[22]===i?e=t[23]:(e=e=>!i||e.name.toLowerCase().includes(i.toLowerCase()),t[22]=i,t[23]=e);let a=n.filter(e),c;t[24]!==s||t[25]!==i||t[26]!==r||t[27]!==o?(c=e=>(0,Z.jsx)(xt,{table:e,sqlTableContext:r,isSearching:!!i,tableIndentRem:o,columnIndentRem:s},e.name),t[24]=s,t[25]=i,t[26]=r,t[27]=o,t[28]=c):c=t[28],b=a.map(c),t[16]=s,t[17]=i,t[18]=r,t[19]=o,t[20]=n,t[21]=b}else b=t[21];let x;return t[29]===b?x=t[30]:(x=(0,Z.jsx)(Z.Fragment,{children:b}),t[29]=b,t[30]=x),x},xt=e=>{let t=(0,Y.c)(69),{table:n,sqlTableContext:i,isSearching:a,tableIndentRem:o,columnIndentRem:s}=e,{addTable:c}=h(),[u,f]=X.useState(!1),p=n.columns.length>0,m;t[0]!==c||t[1]!==u||t[2]!==i||t[3]!==n.name||t[4]!==p?(m=async()=>{if(u&&!p&&i){let{engine:e,database:t,schema:r,schemaPath:a}=i,o=await v.request({engine:e,database:t,schema:r,tableName:n.name,schemaPath:a??[]});if(!o?.table)throw Error(`No table details available`);c({table:o.table,sqlTableContext:i})}},t[0]=c,t[1]=u,t[2]=i,t[3]=n.name,t[4]=p,t[5]=m):m=t[5];let g;t[6]!==u||t[7]!==p?(g=[u,p],t[6]=u,t[7]=p,t[8]=g):g=t[8];let{isFetching:_,isPending:y,error:b}=Pe(m,g),x=r(re),S=E(),{createNewCell:C}=d(),w=We(),T;t[9]!==w||t[10]!==x||t[11]!==C||t[12]!==S||t[13]!==i||t[14]!==n?(T=()=>{l({autoInstantiate:x,createNewCell:C,fromCellId:S}),w((()=>{if(n.source_type===`catalog`){let e=i?.database?[i.database,...i.schemaPath??[],n.name].join(`.`):n.name;return`${n.engine}.load_table("${e}")`}if(i)return j({table:n,columnName:`*`,sqlTableContext:i});switch(n.source_type){case`local`:return`mo.ui.table(${n.name})`;case`duckdb`:case`connection`:return j({table:n,columnName:`*`,sqlTableContext:i});default:return je(n.source_type),``}})())},t[9]=w,t[10]=x,t[11]=C,t[12]=S,t[13]=i,t[14]=n,t[15]=T):T=t[15];let D=T,k;t[16]!==n.num_columns||t[17]!==n.num_rows?(k=()=>{let e=[];return n.num_rows!=null&&e.push(`${n.num_rows} rows`),n.num_columns!=null&&e.push(`${n.num_columns} columns`),e.length===0?null:(0,Z.jsx)(`div`,{className:`flex flex-row gap-2 items-center pl-6 group-hover:hidden`,children:(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.join(`, `)})})},t[16]=n.num_columns,t[17]=n.num_rows,t[18]=k):k=t[18];let M=k,N;t[19]!==s||t[20]!==b||t[21]!==_||t[22]!==y||t[23]!==i||t[24]!==n?(N=()=>{let e=$(s??Q.tableLoading);if(y||_)return(0,Z.jsx)(oe,{message:`Loading columns...`,style:e});if(b)return(0,Z.jsx)(ce,{error:b,style:e});let t=n.columns;return t.length===0?(0,Z.jsx)(le,{content:`No columns found`,style:e}):t.map(e=>(0,Z.jsx)(St,{table:n,column:e,sqlTableContext:i,columnIndentRem:s},e.name))},t[19]=s,t[20]=b,t[21]=_,t[22]=y,t[23]=i,t[24]=n,t[25]=N):N=t[25];let P=N,F;t[26]!==u||t[27]!==a||t[28]!==n.source_type||t[29]!==n.type?(F=()=>{if(n.source_type===`local`)return;let e=n.type===`table`?O:te;return(0,Z.jsx)(e,{className:`h-3 w-3`,strokeWidth:u||a?2.5:void 0})},t[26]=u,t[27]=a,t[28]=n.source_type,t[29]=n.type,t[30]=F):F=t[30];let I=F,L;t[31]!==i||t[32]!==n.name?(L=A(i,n.name),t[31]=i,t[32]=n.name,t[33]=L):L=t[33];let R=L,z=o??(i?Q.tableSchemaless:0),ne=(u||a)&&`font-semibold`,B;t[34]===ne?B=t[35]:(B=ie(`rounded-none group h-8 cursor-pointer`,ne),t[34]=ne,t[35]=B);let V;t[36]===z?V=t[37]:(V=$(z),t[36]=z,t[37]=V);let H;t[38]===u?H=t[39]:(H=()=>f(!u),t[38]=u,t[39]=H);let U;t[40]===I?U=t[41]:(U=I(),t[40]=I,t[41]=U);let W;t[42]===n.name?W=t[43]:(W=(0,Z.jsx)(`span`,{className:`text-sm`,children:n.name}),t[42]=n.name,t[43]=W);let G;t[44]!==U||t[45]!==W?(G=(0,Z.jsxs)(`div`,{className:`flex gap-2 items-center flex-1 pl-1`,children:[U,W]}),t[44]=U,t[45]=W,t[46]=G):G=t[46];let K;t[47]===M?K=t[48]:(K=M(),t[47]=M,t[48]=K);let q;t[49]===D?q=t[50]:(q=ve.stopPropagation(()=>D()),t[49]=D,t[50]=q);let ae;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,Z.jsx)(De,{className:`h-3 w-3`}),t[51]=ae):ae=t[51];let J;t[52]===q?J=t[53]:(J=(0,Z.jsx)(_e,{content:`Add table to notebook`,delayDuration:400,children:(0,Z.jsx)(ye,{className:`group-hover:inline-flex hidden`,variant:`text`,size:`icon`,onClick:q,children:ae})}),t[52]=q,t[53]=J);let se;t[54]!==u||t[55]!==V||t[56]!==H||t[57]!==G||t[58]!==K||t[59]!==J||t[60]!==B||t[61]!==R?(se=(0,Z.jsxs)(ee,{className:B,style:V,value:R,"aria-selected":u,forceMount:!0,onSelect:H,children:[G,K,J]}),t[54]=u,t[55]=V,t[56]=H,t[57]=G,t[58]=K,t[59]=J,t[60]=B,t[61]=R,t[62]=se):se=t[62];let ue;t[63]!==u||t[64]!==P?(ue=u&&P(),t[63]=u,t[64]=P,t[65]=ue):ue=t[65];let de;return t[66]!==se||t[67]!==ue?(de=(0,Z.jsxs)(Z.Fragment,{children:[se,ue]}),t[66]=se,t[67]=ue,t[68]=de):de=t[68],de},St=e=>{let t=(0,Y.c)(51),{table:n,column:a,sqlTableContext:o,columnIndentRem:s}=e,[l,u]=X.useState(!1),d=r(y),f=i(U);d&&l&&u(!1),f(l?e=>new Set([...e,`${n.name}:${a.name}`]):e=>(e.delete(`${n.name}:${a.name}`),new Set(e)));let p=We(),{columnsPreviews:m}=c(),h;t[0]!==a.name||t[1]!==n.primary_keys?(h=n.primary_keys?.includes(a.name)||!1,t[0]=a.name,t[1]=n.primary_keys,t[2]=h):h=t[2];let g=h,_;t[3]!==a.name||t[4]!==n.indexes?(_=n.indexes?.includes(a.name)||!1,t[3]=a.name,t[4]=n.indexes,t[5]=_):_=t[5];let v=_,b;t[6]===p?b=t[7]:(b=e=>{p(e)},t[6]=p,t[7]=b);let x=b,S=Ct,C=l?`font-semibold`:``,w;t[8]!==a.name||t[9]!==C?(w=(0,Z.jsx)(`span`,{className:C,children:a.name}),t[8]=a.name,t[9]=C,t[10]=w):w=t[10];let T=w,E=`${n.name}.${a.name}`,D=`${n.name}.${a.name}`,O;t[11]===l?O=t[12]:(O=()=>u(!l),t[11]=l,t[12]=O);let k;t[13]!==s||t[14]!==o?(k=s??(o?ot(0):Q.columnLocal),t[13]=s,t[14]=o,t[15]=k):k=t[15];let A;t[16]===k?A=t[17]:(A=$(k),t[16]=k,t[17]=A);let j;t[18]!==a.type||t[19]!==T?(j=(0,Z.jsx)(se,{columnName:T,dataType:a.type}),t[18]=a.type,t[19]=T,t[20]=j):j=t[20];let M;t[21]===g?M=t[22]:(M=g&&S({tooltipContent:`Primary key`,content:`PK`}),t[21]=g,t[22]=M);let N;t[23]===v?N=t[24]:(N=v&&S({tooltipContent:`Indexed`,content:`IDX`}),t[23]=v,t[24]=N);let P;t[25]!==A||t[26]!==j||t[27]!==M||t[28]!==N?(P=(0,Z.jsxs)(`div`,{className:`flex flex-row gap-2 items-center flex-1`,style:A,children:[j,M,N]}),t[25]=A,t[26]=j,t[27]=M,t[28]=N,t[29]=P):P=t[29];let F;t[30]===a.name?F=t[31]:(F=(0,Z.jsx)(_e,{content:`Copy column name`,delayDuration:400,children:(0,Z.jsx)(ye,{variant:`text`,size:`icon`,className:`group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-foreground`,children:(0,Z.jsx)(ke,{tooltip:!1,value:a.name,className:`h-3 w-3`})})}),t[30]=a.name,t[31]=F);let I;t[32]===a.external_type?I=t[33]:(I=(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:a.external_type}),t[32]=a.external_type,t[33]=I);let L;t[34]!==P||t[35]!==F||t[36]!==I||t[37]!==E||t[38]!==D||t[39]!==O?(L=(0,Z.jsxs)(ee,{className:`rounded-none py-1 group cursor-pointer`,value:D,onSelect:O,children:[P,F,I]},E),t[34]=P,t[35]=F,t[36]=I,t[37]=E,t[38]=D,t[39]=O,t[40]=L):L=t[40];let R;t[41]!==a||t[42]!==m||t[43]!==x||t[44]!==l||t[45]!==o||t[46]!==n?(R=l&&(0,Z.jsx)(`div`,{className:`pr-2 py-2 bg-(--slate-1) shadow-inner border-b`,style:$(Q.columnPreview),children:(0,Z.jsx)(K,{children:(0,Z.jsx)(Ee,{table:n,column:a,onAddColumnChart:x,preview:m.get(o?`${o.database}.${o.schema}.${n.name}:${a.name}`:`${n.name}:${a.name}`),sqlTableContext:o})})}),t[41]=a,t[42]=m,t[43]=x,t[44]=l,t[45]=o,t[46]=n,t[47]=R):R=t[47];let z;return t[48]!==L||t[49]!==R?(z=(0,Z.jsxs)(Z.Fragment,{children:[L,R]}),t[48]=L,t[49]=R,t[50]=z):z=t[50],z};function Ct(e){let{tooltipContent:t,content:n}=e;return(0,Z.jsx)(_e,{content:t,delayDuration:100,children:(0,Z.jsx)(`span`,{className:`text-xs text-black bg-gray-100 dark:invert rounded px-1`,children:n})})}function wt(e){return e}var Tt={name:`name`,type:`type-value`,defs:`defs-refs`},Et=[wt({id:Tt.name,accessorFn:e=>[e.name,e.declaredBy],enableSorting:!0,sortingFn:`alphanumeric`,header:({column:e})=>(0,Z.jsx)(he,{header:`Name`,column:e}),cell:({getValue:e})=>{let[t,n]=e();return(0,Z.jsx)(qe,{name:t,declaredBy:n})}}),wt({id:Tt.type,accessorFn:e=>[e.dataType,e.value],enableSorting:!0,sortingFn:`alphanumeric`,header:({column:e})=>(0,Z.jsx)(he,{header:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Z.jsx)(`span`,{children:`Type`}),(0,Z.jsx)(`span`,{children:`Value`})]}),column:e}),cell:({getValue:e})=>{let[t,n]=e();return(0,Z.jsxs)(`div`,{className:`max-w-[150px]`,children:[(0,Z.jsx)(`div`,{className:`text-ellipsis overflow-hidden whitespace-nowrap text-muted-foreground font-mono text-xs`,children:t}),(0,Z.jsx)(`div`,{className:`text-ellipsis overflow-hidden whitespace-nowrap`,title:n??``,children:n})]})}}),wt({id:Tt.defs,accessorFn:e=>[e.declaredBy,e.usedBy,e.name,e.declaredByNames,e.usedByNames],enableSorting:!0,sortingFn:`basic`,header:({column:e})=>(0,Z.jsx)(he,{header:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Z.jsx)(`span`,{children:`Declared By`}),(0,Z.jsx)(`span`,{children:`Used By`})]}),column:e}),cell:({getValue:e})=>{let[t,n,r]=e(),i=e=>{let t=N(e);t&&V(t,r)};return(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1 py-1`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-row overflow-auto gap-2 items-center`,children:[(0,Z.jsx)(`span`,{title:`Declared by`,children:(0,Z.jsx)(nt,{className:`w-3.5 h-3.5 text-muted-foreground`})}),t.length===1?(0,Z.jsx)(Fe,{variant:`focus`,cellId:t[0],skipScroll:!0,onClick:()=>i(t[0])}):(0,Z.jsx)(`div`,{className:`text-destructive flex flex-row gap-2`,children:t.slice(0,3).map((e,n)=>(0,Z.jsxs)(`span`,{className:`flex`,children:[(0,Z.jsx)(Fe,{variant:`focus`,cellId:e,skipScroll:!0,className:`whitespace-nowrap text-destructive`,onClick:()=>i(e)},e),n<t.length-1&&`, `]},e))})]}),(0,Z.jsxs)(`div`,{className:`flex flex-row overflow-auto gap-2 items-baseline`,children:[(0,Z.jsx)(`span`,{title:`Used by`,children:(0,Z.jsx)(Oe,{className:`w-3.5 h-3.5 text-muted-foreground`})}),(0,Z.jsx)(Ke,{maxCount:3,cellIds:n,skipScroll:!0,onClick:i})]})]})}})];function Dt({variables:e,sort:t,cellIdToIndex:n}){t||={id:Tt.defs,desc:!1};let r=[];switch(t.id){case Tt.name:r=Ae(e,e=>e.name);break;case Tt.type:r=Ae(e,e=>e.dataType);break;case Tt.defs:r=Ae(e,e=>n.get(e.declaredBy[0]))}return t.desc?r.toReversed():r}var Ot=(0,X.memo)(({className:e,cellIds:t,variables:n})=>{let[r,i]=X.useState([]),[a,o]=X.useState(``),s=S(),{locale:c}=Ne(),l=(0,X.useMemo)(()=>{let e=e=>{let n=s[e];return T(n)?`cell-${t.indexOf(e)}`:n??`cell-${t.indexOf(e)}`};return Object.values(n).map(t=>({...t,declaredByNames:t.declaredBy.map(e),usedByNames:t.usedBy.map(e)}))},[n,s,t]),u=(0,X.useMemo)(()=>{let e=new Map;return t.forEach((t,n)=>e.set(t,n)),Dt({variables:l,sort:r[0],cellIdToIndex:e})},[l,r,t]),d=me({data:u,columns:Et,getCoreRowModel:ue(),onGlobalFilterChange:o,getFilteredRowModel:J(),enableFilters:!0,enableGlobalFilter:!0,enableColumnPinning:!1,getColumnCanGlobalFilter(e){return e.columnDef.enableGlobalFilter??!0},globalFilterFn:`auto`,manualSorting:!0,locale:c,onSortingChange:i,getSortedRowModel:pe(),state:{sorting:r,globalFilter:a}});return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Te,{className:`w-full`,placeholder:`Search`,value:a,onChange:e=>o(e.target.value)}),(0,Z.jsxs)(Ve,{className:ie(`w-full text-sm flex-1 border-separate border-spacing-0`,e),children:[(0,Z.jsx)(Ie,{children:(0,Z.jsx)(ze,{className:`whitespace-nowrap text-xs`,children:d.getFlatHeaders().map(e=>(0,Z.jsx)(Le,{className:`sticky top-0 bg-background border-b`,children:fe(e.column.columnDef.header,e.getContext())},e.id))})}),(0,Z.jsx)(Re,{children:d.getRowModel().rows.map(e=>(0,Z.jsx)(ze,{className:`hover:bg-accent`,children:e.getVisibleCells().map(e=>(0,Z.jsx)(Be,{className:`border-b`,children:fe(e.column.columnDef.cell,e.getContext())},e.id))},e.id))})]})]})});Ot.displayName=`VariableTable`;var kt=()=>{let e=(0,Y.c)(30),n=o(),i=b(),a=r(w),s=r(x),c=H(`database`),[l,u]=t(tt),d=a.length+s.length,f;e[0]!==d||e[1]!==l.hasUserInteracted||e[2]!==l.openSections?(f=!l.hasUserInteracted&&d>0?[...new Set([...l.openSections,`datasources`])]:l.openSections,e[0]=d,e[1]=l.hasUserInteracted,e[2]=l.openSections,e[3]=f):f=e[3];let m=f,h;e[4]===u?h=e[5]:(h=e=>{u({openSections:e,hasUserInteracted:!0})},e[4]=u,e[5]=h);let g=h,_;e[6]===m?_=e[7]:(_=m.includes(`datasources`),e[6]=m,e[7]=_);let v=!_&&d>0,y=c.length>0,S;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(xe,{className:`w-4 h-4`}),e[8]=S):S=e[8];let C;e[9]!==d||e[10]!==v?(C=v&&(0,Z.jsx)(Je,{children:d}),e[9]=d,e[10]=v,e[11]=C):C=e[11];let T;e[12]!==c.length||e[13]!==y?(T=y&&(0,Z.jsx)(et,{count:c.length,type:`database`}),e[12]=c.length,e[13]=y,e[14]=T):T=e[14];let E;e[15]!==C||e[16]!==T?(E=(0,Z.jsxs)(Ye,{children:[S,`Data sources`,C,T]}),e[15]=C,e[16]=T,e[17]=E):E=e[17];let D;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Z.jsx)(Xe,{children:(0,Z.jsx)(dt,{})}),e[18]=D):D=e[18];let O;e[19]===E?O=e[20]:(O=(0,Z.jsxs)(Qe,{value:`datasources`,children:[E,D]}),e[19]=E,e[20]=O);let k;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Z.jsxs)(Ye,{children:[(0,Z.jsx)(p,{className:`w-4 h-4`}),`Variables`]}),e[21]=k):k=e[21];let A;e[22]!==i||e[23]!==n?(A=(0,Z.jsxs)(Qe,{value:`variables`,lastItem:!0,children:[k,(0,Z.jsx)(Xe,{children:Object.keys(n).length===0?(0,Z.jsx)(`div`,{className:`px-3 py-4 text-sm text-muted-foreground`,children:`No variables defined`}):(0,Z.jsx)(Ot,{cellIds:i.inOrderIds,variables:n})})]}),e[22]=i,e[23]=n,e[24]=A):A=e[24];let j;return e[25]!==g||e[26]!==m||e[27]!==A||e[28]!==O?(j=(0,Z.jsxs)(ae,{type:`multiple`,value:m,onValueChange:g,className:`flex flex-col h-full overflow-auto`,children:[O,A]}),e[25]=g,e[26]=m,e[27]=A,e[28]=O,e[29]=j):j=e[29],j};export{kt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-B0Z9INg1.js";var t=e(((e,t)=>{var n=(function(){var e=String.fromCharCode,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$`,r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(e==null)return``;var n=a._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+`===`;case 2:return n+`==`;case 3:return n+`=`}},decompressFromBase64:function(e){return e==null?``:e==``?null:a._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return t==null?``:a._compress(t,15,function(t){return e(t+32)})+` `},decompressFromUTF16:function(e){return e==null?``:e==``?null:a._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(t.length*2),r=0,i=t.length;r<i;r++){var o=t.charCodeAt(r);n[r*2]=o>>>8,n[r*2+1]=o%256}return n},decompressFromUint8Array:function(t){if(t==null)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=t[r*2]*256+t[r*2+1];var o=[];return n.forEach(function(t){o.push(e(t))}),a.decompress(o.join(``))},compressToEncodedURIComponent:function(e){return e==null?``:a._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return e==null?``:e==``?null:(e=e.replace(/ /g,`+`),a._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return a._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(e==null)return``;var r,i,a={},o={},s=``,c=``,l=``,u=2,d=3,f=2,p=[],m=0,h=0,g;for(g=0;g<e.length;g+=1)if(s=e.charAt(g),Object.prototype.hasOwnProperty.call(a,s)||(a[s]=d++,o[s]=!0),c=l+s,Object.prototype.hasOwnProperty.call(a,c))l=c;else{if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++),a[c]=d++,l=String(s)}if(l!==``){if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++)}for(i=2,r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;for(;;){if(m<<=1,h==t-1){p.push(n(m));break}h++}return p.join(``)},decompress:function(e){return e==null?``:e==``?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i=[],a=4,o=4,s=3,c=``,l=[],u,d,f,p,m,h,g,_={val:r(0),position:n,index:1};for(u=0;u<3;u+=1)i[u]=u;for(f=0,m=4,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;switch(f){case 0:for(f=0,m=256,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;g=e(f);break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;g=e(f);break;case 2:return``}for(i[3]=g,d=g,l.push(g);;){if(_.index>t)return``;for(f=0,m=2**s,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;switch(g=f){case 0:for(f=0,m=256,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=+(p>0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 2:return l.join(``)}if(a==0&&(a=2**s,s++),i[g])c=i[g];else if(g===o)c=d+d.charAt(0);else return null;l.push(c),i[o++]=d+c.charAt(0),a--,d=c,a==0&&(a=2**s,s++)}}};return a})();typeof define==`function`&&define.amd?define(function(){return n}):t!==void 0&&t!=null?t.exports=n:typeof angular<`u`&&angular!=null&&angular.module(`LZString`,[]).factory(`LZString`,function(){return n})})),n=t();function r(e){let{code:t,baseUrl:r=`https://marimo.app`}=e,i=new URL(r);return t&&(i.hash=`#code/${(0,n.compressToEncodedURIComponent)(t)}`),i.href}export{t as n,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={};function t(t,n){for(var r=0;r<n.length;r++)e[n[r]]=t}var n=[`true`,`false`],r=[`if`,`then`,`do`,`else`,`elif`,`while`,`until`,`for`,`in`,`esac`,`fi`,`fin`,`fil`,`done`,`exit`,`set`,`unset`,`export`,`function`],i=`ab.awk.bash.beep.cat.cc.cd.chown.chmod.chroot.clear.cp.curl.cut.diff.echo.find.gawk.gcc.get.git.grep.hg.kill.killall.ln.ls.make.mkdir.openssl.mv.nc.nl.node.npm.ping.ps.restart.rm.rmdir.sed.service.sh.shopt.shred.source.sort.sleep.ssh.start.stop.su.sudo.svn.tee.telnet.top.touch.vi.vim.wall.wc.wget.who.write.yes.zsh`.split(`.`);t(`atom`,n),t(`keyword`,r),t(`builtin`,i);function a(t,n){if(t.eatSpace())return null;var r=t.sol(),i=t.next();if(i===`\\`)return t.next(),null;if(i===`'`||i===`"`||i==="`")return n.tokens.unshift(o(i,i==="`"?`quote`:`string`)),u(t,n);if(i===`#`)return r&&t.eat(`!`)?(t.skipToEnd(),`meta`):(t.skipToEnd(),`comment`);if(i===`$`)return n.tokens.unshift(c),u(t,n);if(i===`+`||i===`=`)return`operator`;if(i===`-`)return t.eat(`-`),t.eatWhile(/\w/),`attribute`;if(i==`<`){if(t.match(`<<`))return`operator`;var a=t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(a)return n.tokens.unshift(l(a[1]||a[2])),`string.special`}if(/\d/.test(i)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return`number`;t.eatWhile(/[\w-]/);var s=t.current();return t.peek()===`=`&&/\w+/.test(s)?`def`:e.hasOwnProperty(s)?e[s]:null}function o(e,t){var n=e==`(`?`)`:e==`{`?`}`:e;return function(r,i){for(var a,l=!1;(a=r.next())!=null;){if(a===n&&!l){i.tokens.shift();break}if(a===`$`&&!l&&e!==`'`&&r.peek()!=n){l=!0,r.backUp(1),i.tokens.unshift(c);break}if(!l&&e!==n&&a===e)return i.tokens.unshift(o(e,t)),u(r,i);if(!l&&/['"]/.test(a)&&!/['"]/.test(e)){i.tokens.unshift(s(a,`string`)),r.backUp(1);break}l=!l&&a===`\\`}return t}}function s(e,t){return function(n,r){return r.tokens[0]=o(e,t),n.next(),u(n,r)}}var c=function(e,t){t.tokens.length>1&&e.eat(`$`);var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=o(n,n==`(`?`quote`:n==`{`?`def`:`string`),u(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),`def`)};function l(e){return function(t,n){return t.sol()&&t.string==e&&n.tokens.shift(),t.skipToEnd(),`string.special`}}function u(e,t){return(t.tokens[0]||a)(e,t)}var d={name:`shell`,startState:function(){return{tokens:[]}},token:function(e,t){return u(e,t)},languageData:{autocomplete:n.concat(r,i),closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`#`}}};export{d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./shell-DySzVBqR.js";export{e as shell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-B0Z9INg1.js";import{t}from"./react-CUdNIagt.js";var n=e((e=>{var n=t();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=n.useSyncExternalStore===void 0?f:n.useSyncExternalStore})),r=e(((e,t)=>{t.exports=n()}));export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./sieve-CoBbN2aF.js";export{e as sieve};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e(`if elsif else stop require`),n=e(`true false not`);function r(e,r){var s=e.next();if(s==`/`&&e.eat(`*`))return r.tokenize=a,a(e,r);if(s===`#`)return e.skipToEnd(),`comment`;if(s==`"`)return r.tokenize=o(s),r.tokenize(e,r);if(s==`(`)return r._indent.push(`(`),r._indent.push(`{`),null;if(s===`{`)return r._indent.push(`{`),null;if(s==`)`&&(r._indent.pop(),r._indent.pop()),s===`}`)return r._indent.pop(),null;if(s==`,`||s==`;`||/[{}\(\),;]/.test(s))return null;if(/\d/.test(s))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),`number`;if(s==`:`)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),`operator`;e.eatWhile(/\w/);var c=e.current();return c==`text`&&e.eat(`:`)?(r.tokenize=i,`string`):t.propertyIsEnumerable(c)?`keyword`:n.propertyIsEnumerable(c)?`atom`:null}function i(e,t){return t._multiLineString=!0,e.sol()?(e.next()==`.`&&e.eol()&&(t._multiLineString=!1,t.tokenize=r),`string`):(e.eatSpace(),e.peek()==`#`?(e.skipToEnd(),`comment`):(e.skipToEnd(),`string`))}function a(e,t){for(var n=!1,i;(i=e.next())!=null;){if(n&&i==`/`){t.tokenize=r;break}n=i==`*`}return`comment`}function o(e){return function(t,n){for(var i=!1,a;(a=t.next())!=null&&!(a==e&&!i);)i=!i&&a==`\\`;return i||(n.tokenize=r),`string`}}var s={name:`sieve`,startState:function(e){return{tokenize:r,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||r)(e,t)},indent:function(e,t,n){var r=e._indent.length;return t&&t[0]==`}`&&r--,r<0&&(r=0),r*n.unit},languageData:{indentOnInput:/^\s*\}$/}};export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/[+\-\/\\*~<>=@%|&?!.,:;^]/,t=/true|false|nil|self|super|thisContext/,n=function(e,t){this.next=e,this.parent=t},r=function(e,t,n){this.name=e,this.context=t,this.eos=n},i=function(){this.context=new n(a,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};i.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var a=function(i,a,u){var d=new r(null,a,!1),f=i.next();return f===`"`?d=o(i,new n(o,a)):f===`'`?d=s(i,new n(s,a)):f===`#`?i.peek()===`'`?(i.next(),d=c(i,new n(c,a))):i.eatWhile(/[^\s.{}\[\]()]/)?d.name=`string.special`:d.name=`meta`:f===`$`?(i.next()===`<`&&(i.eatWhile(/[^\s>]/),i.next()),d.name=`string.special`):f===`|`&&u.expectVariable?d.context=new n(l,a):/[\[\]{}()]/.test(f)?(d.name=`bracket`,d.eos=/[\[{(]/.test(f),f===`[`?u.indentation++:f===`]`&&(u.indentation=Math.max(0,u.indentation-1))):e.test(f)?(i.eatWhile(e),d.name=`operator`,d.eos=f!==`;`):/\d/.test(f)?(i.eatWhile(/[\w\d]/),d.name=`number`):/[\w_]/.test(f)?(i.eatWhile(/[\w\d_]/),d.name=u.expectVariable?t.test(i.current())?`keyword`:`variable`:null):d.eos=u.expectVariable,d},o=function(e,t){return e.eatWhile(/[^"]/),new r(`comment`,e.eat(`"`)?t.parent:t,!0)},s=function(e,t){return e.eatWhile(/[^']/),new r(`string`,e.eat(`'`)?t.parent:t,!1)},c=function(e,t){return e.eatWhile(/[^']/),new r(`string.special`,e.eat(`'`)?t.parent:t,!1)},l=function(e,t){var n=new r(null,t,!1);return e.next()===`|`?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name=`variable`),n},u={name:`smalltalk`,startState:function(){return new i},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var r=e.context.next===a&&t&&t.charAt(0)===`]`?-1:e.userIndentationDelta;return(e.indentation+r)*n.unit},languageData:{indentOnInput:/^\s*\]$/}};export{u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./smalltalk-CJJAzHnb.js";export{e as smalltalk};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{t}from"./react-CUdNIagt.js";import{Cn as n,D as r,Rt as i,_n as a,fn as o,gn as s,mn as c}from"./cells-CuKxjgjJ.js";import{t as l}from"./compiler-runtime-BQ9S8nyo.js";import{n as u}from"./useEventListener-IRzG-0mH.js";import{r as d}from"./utils-B4K466FK.js";import{t as f}from"./cn-ldLVeaqm.js";import{t as p}from"./jsx-runtime-B74pBk57.js";import{t as m}from"./tooltip-B5pI8o2n.js";import{t as h}from"./button-M49xxKoi.js";import{n as g,t as _}from"./LazyAnyLanguageCodeMirror-CeTd_wFt.js";import{r as v}from"./useNumberFormatter-C4-_TnkF.js";import{b as y}from"./write-secret-modal-DknTu1O1.js";import{t as b}from"./spinner-CGdRKCnw.js";import{t as x}from"./plus-gbN72xHe.js";import{Gt as S,Kt as C,Wt as w,Xt as T,qt as E}from"./input-DnyzXg4C.js";import{st as D}from"./dist-Cny7_yZb.js";import{r as O}from"./requests-yTHMxhVa.js";import{r as k}from"./useTheme-BkPLyRl9.js";import{n as A}from"./useAsyncData-DucTwMkf.js";import{t as j}from"./RenderHTML-CqDY0F9e.js";import{n as M}from"./error-banner-D1_bPN9u.js";import{n as N,r as P,t as F}from"./react-resizable-panels.browser.esm-BL2E7f5c.js";import{t as I}from"./empty-state-CzxjZqGW.js";import{n as L,r as R}from"./panel-context-BPaQeOuV.js";import{t as z}from"./readonly-code-display-Ctjk_xXb.js";import{t as B}from"./kiosk-mode-DCHo0R3W.js";var V=e(t(),1),H=l(),U=p(),W=u,G=e=>{let t=(0,H.c)(6),{children:n}=e,{openModal:r,closeModal:i}=y(),a;t[0]!==i||t[1]!==r?(a=()=>r((0,U.jsx)(K,{onClose:i})),t[0]=i,t[1]=r,t[2]=a):a=t[2];let o;return t[3]!==n||t[4]!==a?(o=(0,U.jsx)(W,{onClick:a,children:n}),t[3]=n,t[4]=a,t[5]=o):o=t[5],o},K=e=>{let t=(0,H.c)(4),{onClose:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsx)(T,{children:`Contribute a Snippet`}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsxs)(E,{children:[r,(0,U.jsxs)(S,{children:[`Have a useful snippet you want to share with the community? Make a pull request`,` `,(0,U.jsx)(`a`,{href:d.githubPage,target:`_blank`,rel:`noreferrer`,className:`underline`,children:`on GitHub`}),`.`]})]}),t[1]=i):i=t[1];let a;return t[2]===n?a=t[3]:(a=(0,U.jsxs)(w,{className:`max-w-md`,children:[i,(0,U.jsx)(C,{children:(0,U.jsx)(h,{"data-testid":`snippet-close-button`,variant:`default`,onClick:n,children:`Close`})})]}),t[2]=n,t[3]=a),a},q=[D.lineWrapping],J=()=>{let e=(0,H.c)(24),{readSnippets:t}=O(),[n,r]=V.useState(),i=L(),a=R(),l;e[0]===t?l=e[1]:(l=()=>t(),e[0]=t,e[1]=l);let u;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=[],e[2]=u):u=e[2];let{data:d,error:p,isPending:m}=A(l,u);if(p){let t;return e[3]===p?t=e[4]:(t=(0,U.jsx)(M,{error:p}),e[3]=p,e[4]=t),t}if(m||!d){let t;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,U.jsx)(b,{size:`medium`,centered:!0}),e[5]=t):t=e[5],t}let h=i===`vertical`,g;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,U.jsx)(s,{placeholder:`Search snippets...`,className:`h-6 m-1`,rootClassName:`flex-1 border-r`}),e[6]=g):g=e[6];let _,v;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,U.jsxs)(`div`,{className:`flex items-center w-full border-b`,children:[g,(0,U.jsx)(G,{children:(0,U.jsx)(`button`,{className:`float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground`,children:(0,U.jsx)(x,{className:`h-4 w-4`})})})]}),v=(0,U.jsx)(c,{children:`No results`}),e[7]=_,e[8]=v):(_=e[7],v=e[8]);let y;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>r(e),e[9]=y):y=e[9];let S;e[10]===d.snippets?S=e[11]:(S=(0,U.jsx)(F,{defaultSize:40,minSize:20,maxSize:70,children:(0,U.jsxs)(o,{className:`h-full rounded-none`,children:[_,v,(0,U.jsx)(X,{onSelect:y,snippets:d.snippets})]})}),e[10]=d.snippets,e[11]=S);let C=h?`h-1`:`w-1`,w;e[12]===C?w=e[13]:(w=f(`bg-border hover:bg-primary/50 transition-colors`,C),e[12]=C,e[13]=w);let T;e[14]===w?T=e[15]:(T=(0,U.jsx)(P,{className:w}),e[14]=w,e[15]=T);let E;e[16]===n?E=e[17]:(E=(0,U.jsx)(F,{defaultSize:60,minSize:20,children:(0,U.jsx)(V.Suspense,{children:(0,U.jsx)(`div`,{className:`h-full snippet-viewer flex flex-col overflow-hidden`,children:n?(0,U.jsx)(Y,{snippet:n,onClose:()=>r(void 0)},n.title):(0,U.jsx)(I,{title:``,description:`Click on a snippet to view its content.`})})})}),e[16]=n,e[17]=E);let D;return e[18]!==i||e[19]!==a||e[20]!==E||e[21]!==S||e[22]!==T?(D=(0,U.jsx)(`div`,{className:`flex-1 overflow-hidden h-full`,children:(0,U.jsxs)(N,{direction:i,className:`h-full`,children:[S,T,E]},a)}),e[18]=i,e[19]=a,e[20]=E,e[21]=S,e[22]=T,e[23]=D):D=e[23],D},Y=e=>{let t=(0,H.c)(33),{snippet:n,onClose:a}=e,{theme:o}=k(),{createNewCell:s}=r(),c=i(),l;t[0]!==s||t[1]!==c||t[2]!==n.sections?(l=()=>{for(let e of n.sections.toReversed())e.code&&s({code:e.code,before:!1,cellId:c??`__end__`,skipIfCodeExists:!0})},t[0]=s,t[1]=c,t[2]=n.sections,t[3]=l):l=t[3];let u=l,d;t[4]!==s||t[5]!==c?(d=e=>{s({code:e,before:!1,cellId:c??`__end__`})},t[4]=s,t[5]=c,t[6]=d):d=t[6];let f=d,p;t[7]===n.title?p=t[8]:(p=(0,U.jsx)(`span`,{children:n.title}),t[7]=n.title,t[8]=p);let y;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,U.jsx)(v,{className:`h-4 w-4`}),t[9]=y):y=t[9];let b;t[10]===a?b=t[11]:(b=(0,U.jsx)(h,{size:`sm`,variant:`ghost`,onClick:a,className:`h-6 w-6 p-0 hover:bg-muted-foreground/10`,children:y}),t[10]=a,t[11]=b);let x;t[12]!==p||t[13]!==b?(x=(0,U.jsxs)(`div`,{className:`text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center`,children:[p,b]}),t[12]=p,t[13]=b,t[14]=x):x=t[14];let S;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsx)(g,{className:`ml-2 h-4 w-4`}),t[15]=S):S=t[15];let C;t[16]===u?C=t[17]:(C=(0,U.jsx)(`div`,{className:`flex justify-end`,children:(0,U.jsx)(B,{children:(0,U.jsxs)(h,{className:`float-right`,size:`xs`,variant:`outline`,onClick:u,children:[`Insert snippet`,S]})})}),t[16]=u,t[17]=C);let w;if(t[18]!==f||t[19]!==n.sections||t[20]!==n.title||t[21]!==o){let e;t[23]!==f||t[24]!==n.title||t[25]!==o?(e=e=>{let{code:t,html:r,id:i}=e;if(r)return(0,U.jsx)(`div`,{children:j({html:r})},`${n.title}-${i}`);if(!t)return null;let{language:a,code:s}=z(t);return(0,U.jsxs)(`div`,{className:`relative hover-actions-parent pr-2`,children:[(0,U.jsx)(B,{children:(0,U.jsx)(m,{content:`Insert snippet`,children:(0,U.jsx)(h,{className:`absolute -top-2 -right-1 z-10 hover-action px-2 bg-background`,size:`sm`,variant:`outline`,onClick:()=>{f(t)},children:(0,U.jsx)(g,{className:`h-5 w-5`})})})}),(0,U.jsx)(V.Suspense,{children:(0,U.jsx)(_,{theme:o===`dark`?`dark`:`light`,language:a,className:`cm border rounded overflow-hidden`,extensions:q,value:s,readOnly:!0},`${n.title}-${i}`)})]},`${n.title}-${i}`)},t[23]=f,t[24]=n.title,t[25]=o,t[26]=e):e=t[26],w=n.sections.map(e),t[18]=f,t[19]=n.sections,t[20]=n.title,t[21]=o,t[22]=w}else w=t[22];let T;t[27]!==C||t[28]!==w?(T=(0,U.jsxs)(`div`,{className:`px-2 py-2 space-y-4 overflow-auto flex-1`,children:[C,w]}),t[27]=C,t[28]=w,t[29]=T):T=t[29];let E;return t[30]!==T||t[31]!==x?(E=(0,U.jsxs)(U.Fragment,{children:[x,T]}),t[30]=T,t[31]=x,t[32]=E):E=t[32],E},X=e=>{let t=(0,H.c)(7),{snippets:r,onSelect:i}=e,o;if(t[0]!==i||t[1]!==r){let e;t[3]===i?e=t[4]:(e=e=>(0,U.jsx)(a,{className:`rounded-none`,onSelect:()=>i(e),children:(0,U.jsx)(`div`,{className:`flex flex-row gap-2 items-center`,children:(0,U.jsx)(`span`,{className:`mt-1 text-accent-foreground`,children:e.title})})},e.title),t[3]=i,t[4]=e),o=r.map(e),t[0]=i,t[1]=r,t[2]=o}else o=t[2];let s;return t[5]===o?s=t[6]:(s=(0,U.jsx)(n,{className:`flex flex-col overflow-auto`,children:o}),t[5]=o,t[6]=s),s};export{J as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./sparql-CjwbV0fX.js";export{e as sparql};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e;function t(e){return RegExp(`^(?:`+e.join(`|`)+`)$`,`i`)}var n=t(`str.lang.langmatches.datatype.bound.sameterm.isiri.isuri.iri.uri.bnode.count.sum.min.max.avg.sample.group_concat.rand.abs.ceil.floor.round.concat.substr.strlen.replace.ucase.lcase.encode_for_uri.contains.strstarts.strends.strbefore.strafter.year.month.day.hours.minutes.seconds.timezone.tz.now.uuid.struuid.md5.sha1.sha256.sha384.sha512.coalesce.if.strlang.strdt.isnumeric.regex.exists.isblank.isliteral.a.bind`.split(`.`)),r=t(`base.prefix.select.distinct.reduced.construct.describe.ask.from.named.where.order.limit.offset.filter.optional.graph.by.asc.desc.as.having.undef.values.group.minus.in.not.service.silent.using.insert.delete.union.true.false.with.data.copy.to.move.add.create.drop.clear.load.into`.split(`.`)),i=/[*+\-<>=&|\^\/!\?]/,a=`[A-Za-z_\\-0-9]`,o=RegExp(`[A-Za-z]`),s=RegExp(`((`+a+`|\\.)*(`+a+`))?:`);function c(t,a){var c=t.next();if(e=null,c==`$`||c==`?`)return c==`?`&&t.match(/\s/,!1)?`operator`:(t.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),`variableName.local`);if(c==`<`&&!t.match(/^[\s\u00a0=]/,!1))return t.match(/^[^\s\u00a0>]*>?/),`atom`;if(c==`"`||c==`'`)return a.tokenize=u(c),a.tokenize(t,a);if(/[{}\(\),\.;\[\]]/.test(c))return e=c,`bracket`;if(c==`#`)return t.skipToEnd(),`comment`;if(i.test(c))return`operator`;if(c==`:`)return l(t),`atom`;if(c==`@`)return t.eatWhile(/[a-z\d\-]/i),`meta`;if(o.test(c)&&t.match(s))return l(t),`atom`;t.eatWhile(/[_\w\d]/);var d=t.current();return n.test(d)?`builtin`:r.test(d)?`keyword`:`variable`}function l(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function u(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){n.tokenize=c;break}r=!r&&i==`\\`}return`string`}}function d(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function f(e){e.indent=e.context.indent,e.context=e.context.prev}var p={name:`sparql`,startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(t,n){if(t.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=t.indentation()),t.eatSpace())return null;var r=n.tokenize(t,n);if(r!=`comment`&&n.context&&n.context.align==null&&n.context.type!=`pattern`&&(n.context.align=!0),e==`(`)d(n,`)`,t.column());else if(e==`[`)d(n,`]`,t.column());else if(e==`{`)d(n,`}`,t.column());else if(/[\]\}\)]/.test(e)){for(;n.context&&n.context.type==`pattern`;)f(n);n.context&&e==n.context.type&&(f(n),e==`}`&&n.context&&n.context.type==`pattern`&&f(n))}else e==`.`&&n.context&&n.context.type==`pattern`?f(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?d(n,`pattern`,t.column()):n.context.type==`pattern`&&!n.context.align&&(n.context.align=!0,n.context.col=t.column()));return r},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&i.type==`pattern`;)i=i.prev;var a=i&&r==i.type;return i?i.type==`pattern`?i.col:i.align?i.col+ +!a:i.indent+(a?0:n.unit):0},languageData:{commentTokens:{line:`#`}}};export{p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-rHn2EdoM.js";import{a as t}from"./useLifecycle-DKSBdWUf.js";import{t as n}from"./chart-no-axes-column-B6FT5Xvu.js";import{n as r}from"./list-filter-CTg19675.js";import{t as i}from"./square-function-DyFIOFp5.js";import{i as a}from"./strings-hlCLC-K1.js";var o=e(`align-center-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4`,key:`14d6g8`}],[`path`,{d:`M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4`,key:`1e2lrw`}],[`path`,{d:`M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1`,key:`1fkdwx`}],[`path`,{d:`M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1`,key:`1euafb`}]]),s=e(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),c=e(`arrow-up-to-line`,[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]),l=e(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),u=e(`chart-area`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z`,key:`q0gr47`}]]),d=e(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),f=e(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),p=e(`chart-no-axes-column-increasing`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21V3`,key:`11j9sm`}]]),m=e(`chart-scatter`,[[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}],[`circle`,{cx:`18.5`,cy:`5.5`,r:`.5`,fill:`currentColor`,key:`lysivs`}],[`circle`,{cx:`11.5`,cy:`11.5`,r:`.5`,fill:`currentColor`,key:`byv1b8`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`nkw3mc`}],[`circle`,{cx:`17.5`,cy:`14.5`,r:`.5`,fill:`currentColor`,key:`1gjh6j`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}]]),h=e(`ruler-dimension-line`,[[`path`,{d:`M10 15v-3`,key:`1pjskw`}],[`path`,{d:`M14 15v-3`,key:`1o1mqj`}],[`path`,{d:`M18 15v-3`,key:`cws6he`}],[`path`,{d:`M2 8V4`,key:`3jv1jz`}],[`path`,{d:`M22 6H2`,key:`1iqbfk`}],[`path`,{d:`M22 8V4`,key:`16f4ou`}],[`path`,{d:`M6 15v-3`,key:`1ij1qe`}],[`rect`,{x:`2`,y:`12`,width:`20`,height:`8`,rx:`2`,key:`1tqiko`}]]),g=e(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),_=e(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]);function v(e){return e&&e.replaceAll(`.`,`\\.`).replaceAll(`[`,`\\[`).replaceAll(`]`,`\\]`).replaceAll(`:`,`\\:`)}var y=`__count__`,b=`default`,ee=`yearmonthdate`,x={line:f,bar:p,pie:r,scatter:m,heatmap:_,area:u},S=`mean`,te={none:i,count:t,sum:g,mean:l,median:o,min:s,max:c,distinct:t,valid:t,stdev:n,stdevp:n,variance:d,variancep:d,bin:h},ne={none:`No aggregation`,count:`Count of records`,sum:`Sum of values`,mean:`Mean of values`,median:`Median of values`,min:`Minimum value`,max:`Maximum value`,distinct:`Count of distinct records`,valid:`Count non-null records`,stdev:`Standard deviation`,stdevp:`Standard deviation of population`,variance:`Variance`,variancep:`Variance of population`,bin:`Group values into bins`},re=[b,`accent`,`category10`,`category20`,`category20b`,`category20c`,`dark2`,`paired`,`pastel1`,`pastel2`,`set1`,`set2`,`set3`,`tableau10`,`tableau20`,`blues`,`greens`,`greys`,`oranges`,`purples`,`reds`,`bluegreen`,`bluepurple`,`goldgreen`,`goldorange`,`goldred`,`greenblue`,`orangered`,`purplebluegreen`,`purplered`,`redpurple`,`yellowgreenblue`,`yelloworangered`,`blueorange`,`brownbluegreen`,`purplegreen`,`pinkyellowgreen`,`purpleorange`,`redblue`,`redgrey`,`redyellowblue`,`redyellowgreen`,`spectral`,`rainbow`,`sinebow`],C={number:`Continuous numerical scale`,string:`Discrete categorical scale (inputs treated as strings)`,temporal:`Continuous temporal scale`},w={year:[`Year`,`2025`],quarter:[`Quarter of year`,`Q1`],month:[`Month of year`,`Jan`],week:[`Week of year`,`Week 1`],day:[`Day of week`,`Sunday`],hours:[`Hour of day`,`12:00`],minutes:[`Minute of hour`,`34`],seconds:[`Second of minute`,`56`],milliseconds:[`Millisecond of second`,`789`],date:[`Day of month`,`1`],dayofyear:[`Day of year`,`Day 1`],yearmonth:[`Year Month`,`Jan 2025`],yearmonthdate:[`Year Month Date`,`Jan 01, 2025`],yearmonthdatehours:[`Year Month Date Hours`,`Jan 01, 2025 12:00`],monthdate:[`Month Date`,`Jan 01`]},T=[`number`,`string`,`temporal`],E=[`year`,`quarter`,`month`,`date`,`week`,`day`,`dayofyear`,`hours`,`minutes`,`seconds`,`milliseconds`],D=[`yearmonth`,`yearmonthdate`,`yearmonthdatehours`,`monthdate`],O=[...E,...D];[...O];var k=[`ascending`,`descending`],A=`none`,j=[A,`bin`,`count`,`sum`,`mean`,`median`,`min`,`max`,`distinct`,`valid`,`stdev`,`stdevp`,`variance`,`variancep`],M=[A,`count`,`distinct`,`valid`],N={LINE:`line`,BAR:`bar`,PIE:`pie`,SCATTER:`scatter`,HEATMAP:`heatmap`,AREA:`area`},P=Object.values(N),ie=[`X`,`Y`,`Color`,A];function F(e){switch(e){case`number`:case`integer`:return`quantitative`;case`string`:case`boolean`:case`geometry`:case`unknown`:return`nominal`;case`date`:case`datetime`:case`time`:case`temporal`:return`temporal`;default:return a(e),`nominal`}}function I(e){switch(e){case`number`:case`integer`:return`number`;case`string`:case`boolean`:case`geometry`:case`unknown`:return`string`;case`date`:case`datetime`:case`time`:return`temporal`;default:return a(e),`string`}}function L(e){switch(e){case N.PIE:return`arc`;case N.SCATTER:return`point`;case N.HEATMAP:return`rect`;default:return e}}function R(e,t,n,r){if(e===N.HEATMAP)return n?.maxbins?{maxbins:n?.maxbins}:void 0;if(t!==`number`)return;if(!n?.binned)return r;let i={};return n.step!==void 0&&(i.step=n.step),n.maxbins!==void 0&&(i.maxbins=n.maxbins),Object.keys(i).length===0||i}function z(e){let t=e.color?.range;if(t?.length)return{range:t};let n=e.color?.scheme;if(n&&n!=="default")return{scheme:n}}function B(e,t){if(e===N.PIE)return;let n;if(Q(t.general?.colorByColumn?.field))n=t.general?.colorByColumn;else if(Q(t.color?.field))switch(t.color?.field){case`X`:n=t.general?.xColumn;break;case`Y`:n=t.general?.yColumn;break;case`Color`:n=t.general?.colorByColumn;break;default:return}else return;if(!n||!Q(n.field)||n.field===`none`)return;if(n.field===`__count__`)return{aggregate:`count`,type:`quantitative`};let r=t.color?.bin,i=n.selectedDataType||`string`,a=n?.aggregate;return{field:v(n.field),type:F(i),scale:z(t),aggregate:H(a,i),bin:R(e,i,r)}}function V(e,t){if(!(t.general?.stacking||!Q(t.general?.colorByColumn?.field)||e!==N.BAR))return{field:v(t.general?.colorByColumn?.field)}}function H(e,t,n){if(t!==`temporal`&&e!==`none`&&e!==`bin`)return e?t===`string`?M.includes(e)?e:void 0:e:n||void 0}function U(e){switch(e){case`integer`:return`,.0f`;case`number`:return`,.2f`;default:return}}function W(e){let{formValues:t,xEncoding:n,yEncoding:r,colorByEncoding:i}=e;if(!t.tooltips)return;function a(e,t,n){if(`aggregate`in e&&e.aggregate===`count`&&!Q(e.field))return{aggregate:`count`};if(e&&`field`in e&&Q(e.field))return e.timeUnit&&!n&&(n=e.field),{field:e.field,aggregate:e.aggregate,timeUnit:e.timeUnit,format:U(t),title:n,bin:e.bin}}if(t.tooltips.auto){let e=[],o=a(n,t.general?.xColumn?.type||`string`,t.xAxis?.label);o&&e.push(o);let s=a(r,t.general?.yColumn?.type||`string`,t.yAxis?.label);s&&e.push(s);let c=a(i||{},t.general?.colorByColumn?.type||`string`);return c&&e.push(c),e}let o=t.tooltips.fields??[],s=[];for(let e of o){if(`field`in n&&Q(n.field)&&n.field===e.field){let e=a(n,t.general?.xColumn?.type||`string`,t.xAxis?.label);e&&s.push(e);continue}if(`field`in r&&Q(r.field)&&r.field===e.field){let e=a(r,t.general?.yColumn?.type||`string`,t.yAxis?.label);e&&s.push(e);continue}if(i&&`field`in i&&Q(i.field)&&i.field===e.field){let e=a(i,t.general?.colorByColumn?.type||`string`);e&&s.push(e);continue}let o={field:v(e.field)};s.push(o)}return s}var G=`X-axis column is required`,K=`Y-axis column is required`;function q(e,t,n,r,i){let{xColumn:a,yColumn:o,colorByColumn:s,horizontal:c,stacking:l,title:u,facet:d}=t.general??{};if(e===N.PIE)return ae(t,n,r,i);if(!Q(a?.field))return G;if(!Q(o?.field))return K;let f=Y(a,t.xAxis?.bin,$(t.xAxis?.label),s?.field&&c?l:void 0,e),p=S;o?.selectedDataType===`string`&&(p=`count`);let m=Y(o,t.yAxis?.bin,$(t.yAxis?.label),s?.field&&!c?l:void 0,e,p),h=d?.row.field?X(d.row,e):void 0,g=d?.column.field?X(d.column,e):void 0,_=B(e,t),v=Z(e,t,n,r,i,u),y={x:c?m:f,y:c?f:m,xOffset:V(e,t),color:_,tooltip:W({formValues:t,xEncoding:f,yEncoding:m,colorByEncoding:_}),...h&&{row:h},...g&&{column:g}},b=ce(d?.column,d?.row);return{...v,mark:{type:L(e)},encoding:y,...b}}function J(e,t){return{...e,data:{values:t}}}function Y(e,t,n,r,i,a){let o=e.selectedDataType||`string`;return e.field===`__count__`?{aggregate:`count`,type:`quantitative`,bin:R(i,o,t),title:n===`__count__`?void 0:n,stack:r}:{field:v(e.field),type:F(e.selectedDataType||`unknown`),bin:R(i,o,t),title:n,stack:r,aggregate:H(e.aggregate,o,a),sort:e.sort,timeUnit:oe(e)}}function X(e,t){let n=R(t,e.selectedDataType||`string`,{maxbins:e.maxbins,binned:e.binned},{maxbins:6});return{field:v(e.field),sort:e.sort,timeUnit:se(e),type:F(e.selectedDataType||`unknown`),bin:n}}function ae(e,t,n,r){let{yColumn:i,colorByColumn:a,title:o}=e.general??{};if(!Q(a?.field))return`Color by column is required`;if(!Q(i?.field))return`Size by column is required`;let s=Y(i,e.xAxis?.bin,$(e.xAxis?.label),void 0,N.PIE),c={field:v(a.field),type:F(a.selectedDataType||`unknown`),scale:z(e),title:$(e.yAxis?.label)};return{...Z(N.PIE,e,t,n,r,o),mark:{type:L(N.PIE),innerRadius:e.style?.innerRadius},encoding:{theta:s,color:c,tooltip:W({formValues:e,xEncoding:s,yEncoding:s,colorByEncoding:c})}}}function Z(e,t,n,r,i,a){let o=t.style?.gridLines??!1;return e===N.SCATTER&&(o=!0),{$schema:`https://vega.github.io/schema/vega-lite/v6.json`,background:n===`dark`?`dark`:`white`,title:a,data:{values:[]},height:t.yAxis?.height??i,width:t.xAxis?.width??r,config:{axis:{grid:o}}}}function Q(e){return e!==void 0&&e.trim()!==``}function $(e){let t=e?.trim();return t===``?void 0:t}function oe(e){if(e.selectedDataType===`temporal`)return e.timeUnit??`yearmonthdate`}function se(e){if(e.selectedDataType===`temporal`)return e.timeUnit??`yearmonthdate`}function ce(e,t){let n={};return e?.linkXAxis===!1&&(n.x=`independent`),t?.linkYAxis===!1&&(n.y=`independent`),Object.keys(n).length>0?{resolve:{axis:n}}:void 0}export{ee as C,d as D,v as E,b as S,w as T,te as _,j as a,y as b,D as c,T as d,E as f,ne as g,O as h,I as i,N as l,M as m,q as n,P as o,k as p,Q as r,ie as s,J as t,A as u,x as v,C as w,S as x,re as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{t}from"./react-CUdNIagt.js";import{t as n}from"./compiler-runtime-BQ9S8nyo.js";import{n as r,t as i}from"./cn-ldLVeaqm.js";import{t as a}from"./jsx-runtime-B74pBk57.js";import{t as o}from"./createLucideIcon-rHn2EdoM.js";var s=o(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),c=n(),l=e(t(),1),u=a(),d=r(`animate-spin`,{variants:{centered:{true:`m-auto`},size:{small:`size-4`,medium:`size-12`,large:`size-20`,xlarge:`size-20`}},defaultVariants:{size:`medium`}}),f=l.forwardRef((e,t)=>{let n=(0,c.c)(13),r,a,o,l;if(n[0]!==e){let{className:t,children:i,centered:s,size:c,...u}=e;a=t,r=s,l=c,o=u,n[0]=e,n[1]=r,n[2]=a,n[3]=o,n[4]=l}else r=n[1],a=n[2],o=n[3],l=n[4];let f;n[5]!==r||n[6]!==a||n[7]!==l?(f=i(d({centered:r,size:l}),a),n[5]=r,n[6]=a,n[7]=l,n[8]=f):f=n[8];let p;return n[9]!==o||n[10]!==t||n[11]!==f?(p=(0,u.jsx)(s,{ref:t,className:f,strokeWidth:1.5,...o}),n[9]=o,n[10]=t,n[11]=f,n[12]=p):p=n[12],p});f.displayName=`Spinner`;export{s as n,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-rHn2EdoM.js";var t=e(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-rHn2EdoM.js";var t=e(`square-function`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3`,key:`m1af9g`}],[`path`,{d:`M9 11.2h5.7`,key:`3zgcl2`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{f as t,l as n}from"./useEvent-Dc9HkKI2.js";import{t as r}from"./react-CUdNIagt.js";import{t as i}from"./compiler-runtime-BQ9S8nyo.js";import{t as a}from"./createReducer-W5dowuCe.js";import{t as o}from"./uuid-k9DpjH68.js";var s=i(),c=e(r(),1);function l(e){let t=(0,s.c)(3),[n,r]=(0,c.useState)(e<=0),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(e<=0){r(!0);return}r(!1);let t=setTimeout(()=>r(!0),e);return()=>clearTimeout(t)},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,c.useLayoutEffect)(i,a),n}var u=t(null),{valueAtom:d,useActions:f}=a(()=>({banners:[]}),{addBanner:(e,t)=>({...e,banners:[...e.banners,{...t,id:o()}]}),removeBanner:(e,t)=>({...e,banners:e.banners.filter(e=>e.id!==t)}),clearBanners:e=>({...e,banners:[]})}),p=()=>n(d);function m(){return f()}function h(){return{restart_required:!1,operations:[]}}function g(e,t){let n=e.operations.find(e=>e.operation_id===t.operation_id),r={...n?.logs};for(let[e,n]of Object.entries(t.logs))r[e]=t.log_mode===`replace`?n:(r[e]??``)+n;let i={operation_id:t.operation_id,action:t.action,status:t.status,packages:t.packages,logs:r,source:t.source},a=e.operations.filter(e=>n&&t.status.kind===`running`||e.status.kind===`running`||e.action===`prepare`&&t.action!==`prepare`),o=a.findIndex(e=>e.operation_id===t.operation_id);return o===-1?a.push(i):a[o]=i,{restart_required:e.restart_required||t.status.kind===`restart-required`||Object.values(t.packages).includes(`restart-required`),operations:a}}function _(e){return e.action===`install`||e.action===`remove`}function v(e){return e.kind===`missing`}function y(e){return e.kind===`environment`}function b(e,t,n){let r={...e.environments,[t]:n},i=Object.values(r).flatMap(e=>e.operations).filter(_),a=n.operations.filter(_),o=e.packageAlert,s=o?.kind===`environment`?i.find(e=>e.operation_id===o.id&&e.source===o.source):void 0,c=e=>e.status.kind!==`succeeded`||r[e.source].restart_required,l=(s?.status.kind===`running`?s:void 0)??a.findLast(e=>e.status.kind===`running`)??i.findLast(e=>e.status.kind===`running`)??s??a.findLast(c)??i.findLast(c);return{...e,environments:r,packageAlert:l?{kind:`environment`,id:l.operation_id,source:l.source}:e.packageAlert?.kind===`missing`?e.packageAlert:null}}var{valueAtom:x,useActions:S}=a(()=>({packageAlert:null,startupLogsAlert:null,environments:{kernel:h(),server:h()}}),{addMissingPackageAlert:(e,t)=>({...e,packageAlert:{id:o(),...t}}),updateEnvironment:(e,t)=>{let n=t.source,r=g(e.environments[n],t);return _(t)?b({...e,packageAlert:{kind:`environment`,id:t.operation_id,source:n}},n,r):{...e,environments:{...e.environments,[n]:r}}},setEnvironment:(e,t)=>b(e,t.source,t.state),clearPackageAlert:(e,t)=>e.packageAlert?.id===t?{...e,packageAlert:null}:e,addStartupLog:(e,t)=>({...e,startupLogsAlert:{content:(e.startupLogsAlert?.content??``)+t.content,status:t.status}}),clearStartupLogsAlert:e=>({...e,startupLogsAlert:null})});function C(e){let t=e.packageAlert;if(t?.kind!==`environment`)return t;let n=e.environments[t.source],r=n.operations.find(e=>e.operation_id===t.id);return r&&_(r)?{...r,...t,restartRequired:n.restart_required}:null}function w(){let e=(0,s.c)(5),t=n(x),r;e[0]===t?r=e[1]:(r=C(t),e[0]=t,e[1]=r);let i;return e[2]!==t.startupLogsAlert||e[3]!==r?(i={packageAlert:r,startupLogsAlert:t.startupLogsAlert},e[2]=t.startupLogsAlert,e[3]=r,e[4]=i):i=e[4],i}export{w as a,m as c,S as i,l,y as n,u as o,v as r,p as s,x as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./useEvent-Dc9HkKI2.js";import{t}from"./createReducer-
|
|
1
|
+
import{l as e}from"./useEvent-Dc9HkKI2.js";import{t}from"./createReducer-W5dowuCe.js";import{t as n}from"./uuid-k9DpjH68.js";function r(){return{pendingCommands:[],isReady:!1}}var{reducer:i,createActions:a,valueAtom:o,useActions:s}=t(r,{addCommand:(e,t)=>{let r={id:n(),text:t,timestamp:Date.now()};return{...e,pendingCommands:[...e.pendingCommands,r]}},removeCommand:(e,t)=>({...e,pendingCommands:e.pendingCommands.filter(e=>e.id!==t)}),setReady:(e,t)=>({...e,isReady:t}),clearCommands:e=>({...e,pendingCommands:[]})}),c=()=>e(o);function l(){return s()}export{c as n,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e}from"./useEvent-Dc9HkKI2.js";import{Qr as t,Zr as n}from"./cells-CuKxjgjJ.js";import{O as r}from"./config-BAnYSdpO.js";import{d as i}from"./arrays-BqUx5USx.js";var a=`marimo:ai:chatState:v5`,o=e(null),s=e(null),c=r(`marimo:ai:chatOptions`,{webSearch:!1},t),l=r(`marimo:ai:includeOtherCells`,!0,t);function u(e){let t=new Map;for(let[n,r]of e.entries()){if(r.messages.length===0)continue;let e=i(r.messages,e=>e.id);t.set(n,{...r,messages:e})}return t}var d=r(a,{chats:new Map,activeChatId:null},n({toSerializable:e=>({chats:[...u(e.chats).entries()],activeChatId:e.activeChatId}),fromSerializable:e=>({chats:new Map(e.chats),activeChatId:e.activeChatId})})),f=e(e=>{let t=e(d);return t.activeChatId?t.chats.get(t.activeChatId):null},(e,t,n)=>{t(d,e=>({...e,activeChatId:n}))});export{l as a,d as i,o as n,s as o,c as r,f as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as e}from"./useEvent-Dc9HkKI2.js";import{$n as t,La as n,Pa as r,Qn as i,_o as a,oi as o,vo as s,x as c,za as l}from"./cells-CuKxjgjJ.js";import{t as u}from"./get-DjNf4SIX.js";import{t as d}from"./debounce-aFmHgJZY.js";import{E as f}from"./config-Cyum2gRs.js";import{t as p}from"./_baseSet-Bpdo9AvU.js";import{g as m,v as h}from"./useEventListener-IRzG-0mH.js";import{t as g}from"./invariant-Ci2dTZ72.js";import{d as _,v}from"./session-BykGt6S3.js";import{D as y,M as b,c as x,l as S,n as ee}from"./config-BAnYSdpO.js";import{c as te,o as C}from"./state-ja7GWeCS.js";import{c as w,o as T}from"./markdown-renderer-quSCxU-_.js";import{w as ne}from"./write-secret-modal-DknTu1O1.js";import{t as re}from"./use-toast-CC89xOwH.js";import{t as ie}from"./preload-helper-uBIymjUX.js";import{r as ae}from"./strings-hlCLC-K1.js";import{t as E}from"./requests-yTHMxhVa.js";import{t as oe}from"./Deferred-CrTnjj37.js";import{t as se}from"./uuid-k9DpjH68.js";import{n as ce}from"./RenderHTML-CqDY0F9e.js";import{t as le}from"./useRunCells-DTPuvtCQ.js";import{r as ue,t as de}from"./blob-BTk5Q8u9.js";import{f as fe}from"./useInstallPackage-DnijI-KS.js";import{t as pe}from"./api-DYL9A86_.js";import{n as me,t as he}from"./share-BZW3tzEX.js";import{i as D,r as ge,t as _e}from"./events-CbeVJ6OD.js";function O(e,t,n){return e==null?e:p(e,t,n)}function k(e,t){if(e.origin===globalThis.origin)return new Worker(e.href,{...t,type:`module`});let n=`import ${JSON.stringify(e.href)}`,r=globalThis.origin===`null`?`data:application/javascript,${encodeURIComponent(n)}`:URL.createObjectURL(new Blob([n],{type:`application/javascript`}));try{return new Worker(r,{...t,type:`module`})}finally{r.startsWith(`blob:`)&&URL.revokeObjectURL(r)}}function A(e){return e.assetUrl,e}var j=class{subscriptions=new Map;addSubscription(e,t){this.subscriptions.has(e)||this.subscriptions.set(e,new Set),this.subscriptions.get(e)?.add(t)}removeSubscription(e,t){this.subscriptions.get(e)?.delete(t)}notify(e,t){for(let n of this.subscriptions.get(e)??[])n(t)}},M=class e{subscriptions=new j;producer;static withProducerCallback(t){return new e(t)}static empty(){return new e}constructor(e){this.producer=e}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,t){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,t){this.subscriptions.addSubscription(e,t),e===`open`&&t(new Event(`open`)),e===`message`&&this.startProducer()}removeEventListener(e,t){this.subscriptions.removeSubscription(e,t)}},ve=1e10,ye=1e3;function N(e,t){let n=e.map(e=>`"${e}"`).join(`, `);return Error(`This RPC instance cannot ${t} because the transport did not provide one or more of these methods: ${n}`)}function be(e={}){let t={};function n(e){t=e}let r={};function i(e){r.unregisterHandler&&r.unregisterHandler(),r=e,r.registerHandler?.(S)}let a;function o(e){if(typeof e==`function`){a=e;return}a=(t,n)=>{let r=e[t];if(r)return r(n);let i=e._;if(!i)throw Error(`The requested method has no handler: ${t}`);return i(t,n)}}let{maxRequestTime:s=ye}=e;e.transport&&i(e.transport),e.requestHandler&&o(e.requestHandler),e._debugHooks&&n(e._debugHooks);let c=0;function l(){return c<=ve?++c:c=0}let u=new Map,d=new Map;function f(e,...n){let i=n[0];return new Promise((n,a)=>{if(!r.send)throw N([`send`],`make requests`);let o=l(),c={type:`request`,id:o,method:e,params:i};u.set(o,{resolve:n,reject:a}),s!==1/0&&d.set(o,setTimeout(()=>{d.delete(o),a(Error(`RPC request timed out.`))},s)),t.onSend?.(c),r.send(c)})}let p=new Proxy(f,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>f(t,e)}),m=p;function h(e,...n){let i=n[0];if(!r.send)throw N([`send`],`send messages`);let a={type:`message`,id:e,payload:i};t.onSend?.(a),r.send(a)}let g=new Proxy(h,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>h(t,e)}),_=g,v=new Map,y=new Set;function b(e,t){if(!r.registerHandler)throw N([`registerHandler`],`register message listeners`);if(e===`*`){y.add(t);return}v.has(e)||v.set(e,new Set),v.get(e)?.add(t)}function x(e,t){if(e===`*`){y.delete(t);return}v.get(e)?.delete(t),v.get(e)?.size===0&&v.delete(e)}async function S(e){if(t.onReceive?.(e),!(`type`in e))throw Error(`Message does not contain a type.`);if(e.type===`request`){if(!r.send||!a)throw N([`send`,`requestHandler`],`handle requests`);let{id:n,method:i,params:o}=e,s;try{s={type:`response`,id:n,success:!0,payload:await a(i,o)}}catch(e){if(!(e instanceof Error))throw e;s={type:`response`,id:n,success:!1,error:e.message}}t.onSend?.(s),r.send(s);return}if(e.type===`response`){let t=d.get(e.id);t!=null&&clearTimeout(t);let{resolve:n,reject:r}=u.get(e.id)??{};e.success?n?.(e.payload):r?.(Error(e.error));return}if(e.type===`message`){for(let t of y)t(e.id,e.payload);let t=v.get(e.id);if(!t)return;for(let n of t)n(e.payload);return}throw Error(`Unexpected RPC message type: ${e.type}`)}return{setTransport:i,setRequestHandler:o,request:p,requestProxy:m,send:g,sendProxy:_,addMessageListener:b,removeMessageListener:x,proxy:{send:_,request:m},_setDebugHooks:n}}function xe(e){return be(e)}var P=`[transport-id]`;function Se(e,t){let{transportId:n}=t;return n==null?e:{[P]:n,data:e}}function Ce(e,t){let{transportId:n,filter:r}=t,i=r?.();if(n!=null&&i!=null)throw Error("Cannot use both `transportId` and `filter` at the same time");let a=e;if(n){if(e[P]!==n)return[!0];a=e.data}return i===!1?[!0]:[!1,a]}function we(e,t={}){let{transportId:n,filter:r,remotePort:i}=t,a=e,o=i??e,s;return{send(e){o.postMessage(Se(e,{transportId:n}))},registerHandler(e){s=t=>{let i=t.data,[a,o]=Ce(i,{transportId:n,filter:()=>r?.(t)});a||e(o)},a.addEventListener(`message`,s)},unregisterHandler(){s&&a.removeEventListener(`message`,s)}}}function Te(e,t){return we(e,t)}var Ee=`::controller`,De=`marimo-transport`;function F(e){return xe({transport:Te(e,{transportId:De}),maxRequestTime:2e4,_debugHooks:{onSend:e=>{m.debug(`[rpc] Parent -> Worker`,e)},onReceive:e=>{m.debug(`[rpc] Worker -> Parent`,e)}}})}function I(){let e=document.querySelector(`marimo-wasm`),t=e=>{try{return e?new URL(e,document.baseURI).href:void 0}catch{return}};return{version:te(),pyodideIndexUrl:t(e?.dataset.pyodideIndexUrl),pyodideLockfileUrl:t(e?.dataset.pyodideLockfileUrl),pypiIndexUrl:t(e?.dataset.pypiIndexUrl)?.replaceAll(`%7Bpackage_name%7D`,`{package_name}`)}}var L=me(),R=`marimo:file`,z=new r(null),Oe={saveFile(e){z.set(R,e)},readFile(){return z.get(R)}},ke={saveFile(e){s.setCodeForHash((0,L.compressToEncodedURIComponent)(e))},readFile(){let e=s.getCodeFromHash()||s.getCodeFromSearchParam();return e?(0,L.decompressFromEncodedURIComponent)(e):null}},Ae={saveFile(e){},readFile(){let e=document.querySelector(`marimo-code`);return e?decodeURIComponent(e.textContent||``).trim():null}},je={saveFile(e){},readFile(){if(window.location.hostname!==`marimo.app`)return null;let e=new URL(`export_demos/wasm-intro.py`,document.baseURI);return fetch(e.toString()).then(e=>e.ok?e.text():null).catch(()=>null)}},Me={saveFile(e){},readFile(){return e.get(n)??null}},Ne={saveFile(e){},readFile(){return[`import marimo`,`app = marimo.App()`,``,`@app.cell`,`def __():`,` return`,``,`if __name__ == "__main__":`,` app.run()`].join(`
|
|
2
|
+
`)}},B=class{stores;constructor(e){this.stores=e}insert(e,t){this.stores.splice(e,0,t)}saveFile(e){this.stores.forEach(t=>t.saveFile(e))}readFile(){for(let e of this.stores){let t=e.readFile();if(t)return t}return null}},V=new B([Me,Ae,ke]),H=new B([Oe,je,Ne]),Pe=new URL(`save-worker-C880NC3o.js`,import.meta.url).href,Fe=new URL(`worker-B5tVfGoh.js`,import.meta.url).href,U=class t{static get INSTANCE(){let e=`_marimo_private_PyodideBridge`;return window[e]||(window[e]=new t),window[e]}rpc;saveRpc;pendingSessionSave=Promise.resolve();interruptBuffer;messageConsumer;initialized=new oe;getSaveWorker(){if(_()===`read`)return m.debug(`Using partially disabled SaveWorker in read-mode`),{readFile:h,readNotebook:async()=>await V.readFile()??``,saveNotebook:h};let e=I(),t=F(k(new URL(Pe,import.meta.url),{name:Le()}));return t.send.bootstrap(e),t.proxy.request}constructor(){if(!b())return;let t=I(),n=k(new URL(Fe,import.meta.url),{name:Le()});this.rpc=F(n),this.rpc.send.bootstrap(t),this.rpc.addMessageListener(`ready`,()=>{this.startSession()}),this.rpc.addMessageListener(`initialized`,()=>{this.saveRpc=this.getSaveWorker(),this.setInterruptBuffer(),e.set(C,{kind:`ready`}),this.initialized.resolve()}),this.rpc.addMessageListener(`initializingMessage`,({message:t})=>{e.get(C).kind===`loading`&&e.set(C,{kind:`loading`,message:t})}),this.rpc.addMessageListener(`initializedError`,({error:t})=>{if(this.initialized.status===`resolved`){m.error(t),re({title:`Error initializing`,description:t,variant:`danger`});return}e.set(C,{kind:`error`,message:t}),this.initialized.reject(Error(t))}),this.rpc.addMessageListener(`kernelMessage`,({message:e})=>{this.messageConsumer?.(new MessageEvent(`message`,{data:e}))})}async startSession(){let t=await V.readFile(),n=await H.readFile(),r=e.get(l)??s.getFilename(),i=e.get(f),a={},o=new URLSearchParams(window.location.search);for(let e of o.keys()){let t=o.getAll(e);a[e]=t.length===1?t[0]:t}await this.rpc.proxy.request.startSession({queryParameters:a,code:t||n||``,filename:r,userConfig:{...i,runtime:{...i.runtime,auto_instantiate:_()===`read`||i.runtime.auto_instantiate}}})}setInterruptBuffer(){crossOriginIsolated?(this.interruptBuffer=new Uint8Array(new SharedArrayBuffer(1)),this.rpc.proxy.request.setInterruptBuffer(this.interruptBuffer)):m.warn(`Not running in a secure context; interrupts are not available.`)}attachMessageConsumer(e){this.messageConsumer=e,this.rpc.proxy.send.consumerReady({})}sendRename=async({filename:e})=>e===null?null:(s.setFilename(e),await this.rpc.proxy.request.bridge({functionName:`rename_file`,payload:e}),null);sendSave=async e=>{if(!this.saveRpc)return m.warn(`Save RPC not initialized`),null;let t=this.saveRpc.saveNotebook(e);this.pendingSessionSave=this.pendingSessionSave.catch(()=>void 0).then(async()=>{await t,await this.rpc.proxy.request.saveNotebook(e)}),this.pendingSessionSave.catch(e=>{m.error(e)}),await t;let n=await this.readCode();return n.contents&&(V.saveFile(n.contents),H.saveFile(n.contents)),null};sendCopy=async()=>{h()};sendStdin=async e=>(await this.rpc.proxy.request.bridge({functionName:`put_input`,payload:e.text}),null);sendPdb=async()=>{h()};sendSetBreakpoints=async()=>{h()};sendRun=async e=>(await this.rpc.proxy.request.loadPackages(e.codes.join(`
|
|
3
|
+
`)),await this.putControlRequest({type:`execute-cells`,...e}),null);sendRunScratchpad=async e=>(await this.rpc.proxy.request.loadPackages(e.code),await this.putControlRequest({type:`execute-scratchpad`,...e}),null);sendInterrupt=async()=>(this.interruptBuffer!==void 0&&(this.interruptBuffer[0]=2),null);sendShutdown=async()=>(window.close(),null);sendFormat=async e=>await this.rpc.proxy.request.bridge({functionName:`format`,payload:e});sendDeleteCell=async e=>(await this.putControlRequest({type:`delete-cell`,...e}),null);sendInstallMissingPackages=async e=>(this.putControlRequest({type:`install-packages`,...e}),null);sendCodeCompletionRequest=async t=>(e.get(c)||await this.rpc.proxy.request.bridge({functionName:`code_complete`,payload:t}),null);saveUserConfig=async e=>(await this.rpc.proxy.request.bridge({functionName:`save_user_config`,payload:e}),pe.post(`/kernel/save_user_config`,e,{baseUrl:`/`}).catch(e=>(m.error(e),null)));saveAppConfig=async e=>(await this.rpc.proxy.request.bridge({functionName:`save_app_config`,payload:e}),null);saveCellConfig=async e=>(await this.putControlRequest({type:`update-cell-config`,...e}),null);sendRestart=async()=>{let e=await this.readCode();return e.contents&&(V.saveFile(e.contents),H.saveFile(e.contents)),fe(),null};readCode=async()=>this.saveRpc?{contents:await this.saveRpc.readNotebook()}:(m.warn(`Save RPC not initialized`),{contents:``});readSnippets=async()=>await this.rpc.proxy.request.bridge({functionName:`read_snippets`,payload:void 0});openFile=async({path:e})=>{let t=he({code:null,baseUrl:window.location.origin});return window.open(t,`_blank`),null};sendListFiles=async e=>await this.rpc.proxy.request.bridge({functionName:`list_files`,payload:e});getFileRoots=async()=>await this.rpc.proxy.request.bridge({functionName:`file_roots`,payload:void 0});sendSearchFiles=async e=>await this.rpc.proxy.request.bridge({functionName:`search_files`,payload:e});sendComponentValues=async e=>(await this.putControlRequest({type:`update-ui-element`,...e,token:se()}),null);sendInstantiate=async e=>null;sendFunctionRequest=async e=>(await this.putControlRequest({type:`invoke-function`,...e}),null);sendCreateFileOrFolder=async e=>{let t=null;return e.file&&(t=(await ue(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:t}})};sendDeleteFileOrFolder=async e=>await this.rpc.proxy.request.bridge({functionName:`delete_file_or_directory`,payload:e});sendCopyFileOrFolder=async e=>await this.rpc.proxy.request.bridge({functionName:`copy_file_or_directory`,payload:e});sendRenameFileOrFolder=async e=>await this.rpc.proxy.request.bridge({functionName:`move_file_or_directory`,payload:e});sendUpdateFile=async e=>await this.rpc.proxy.request.bridge({functionName:`update_file`,payload:e});sendFileDetails=async e=>await this.rpc.proxy.request.bridge({functionName:`file_details`,payload:e});exportAsHTML=async e=>(await this.pendingSessionSave,await this.rpc.proxy.request.bridge({functionName:`export_html`,payload:A(e)}));exportAsMarkdown=async e=>(await this.pendingSessionSave,await this.rpc.proxy.request.bridge({functionName:`export_markdown`,payload:e}));exportAsScript=async e=>(await this.pendingSessionSave,await this.rpc.proxy.request.bridge({functionName:`export_script`,payload:e}));previewDatasetColumn=async e=>(await this.putControlRequest({type:`preview-dataset-column`,...e}),null);previewSQLTable=async e=>(await this.putControlRequest({type:`preview-sql-table`,...e}),null);previewSQLTableList=async e=>(await this.putControlRequest({type:`list-sql-tables`,...e}),null);previewSQLSchemaList=async e=>(await this.putControlRequest({type:`list-sql-schemas`,...e}),null);previewDataSourceConnection=async e=>(await this.putControlRequest({type:`list-data-source-connection`,...e}),null);validateSQL=async e=>(await this.putControlRequest({type:`validate-sql`,...e}),null);sendModelValue=async e=>(await this.putControlRequest({type:`model`,...e}),null);sendDocumentTransaction=()=>Promise.resolve(null);addPackage=async e=>this.rpc.proxy.request.addPackage(e);removePackage=async e=>this.rpc.proxy.request.removePackage(e);getPackageList=async()=>await this.rpc.proxy.request.listPackages();getSandbox=async()=>({backend:null,manifest:null,filename:null});updateManifest=async()=>{throw Error(`Sandboxes are not supported in WebAssembly`)};syncSandbox=async()=>{throw Error(`Sandboxes are not supported in WebAssembly`)};getDependencyTree=async()=>({tree:{dependencies:[],name:``,tags:[],version:null},context:{kind:`package-manager`,name:`micropip`}});listSecretKeys=async e=>(await this.putControlRequest({type:`list-secret-keys`,...e}),null);discoverDataSources=async e=>(await this.putControlRequest({type:`discover-data-sources`,...e}),null);getUsageStats=h;getEnvironmentInfo=async()=>await this.rpc.proxy.request.bridge({functionName:`get_environment_info`,payload:void 0});openTutorial=h;getRecentFiles=h;getWorkspaceFiles=h;getRunningNotebooks=h;shutdownSession=h;getExportAvailability=h;installExportRequirements=h;exportAsIPYNB=h;exportAsPDF=h;autoExportAsHTML=h;autoExportAsMarkdown=h;autoExportAsIPYNB=h;updateCellOutputs=h;writeSecret=h;invokeAiTool=h;clearCache=h;getCacheInfo=h;listStorageEntries=h;downloadStorage=h;async putControlRequest(e){await this.rpc.proxy.request.bridge({functionName:`put_control_request`,payload:e})}};function Ie(){return M.withProducerCallback(e=>{U.INSTANCE.attachMessageConsumer(e)})}function Le(){return`marimo${typeof window<`u`&&window.__MARIMO_HAS_WASM_CONTROLLER__===!0?Ee:``}`}function Re(e=x()){let t=window.fetch;return window.fetch=async(n,r)=>{let i=n instanceof Request?n.url:n.toString();if(i.startsWith(`data:`))return t(n,r);try{let a=W(i,e);if(a){let e=await(await t(a)).arrayBuffer();return new Response(e,{headers:{"Content-Type":ze(i)}})}return t(n,r)}catch(e){return m.error(`Error parsing URL`,e),t(n,r)}},()=>{window.fetch=t}}function ze(e){return e.endsWith(`.csv`)?`text/csv`:e.endsWith(`.json`)?`application/json`:e.endsWith(`.txt`)?`text/plain`:`application/octet-stream`}function Be(e,t=x()){let n=e.http.bind(e),r=e.load.bind(e);return e.http=async e=>{let r=W(e,t);if(r)return await window.fetch(r).then(e=>e.text());try{return await n(e)}catch(t){if(e.startsWith(`data:`))return await window.fetch(e).then(e=>e.text());throw t}},e.load=async e=>{let n=W(e,t);if(n)return await window.fetch(n).then(e=>e.text());try{return await r(e)}catch(t){if(e.startsWith(`data:`))return await window.fetch(e).then(e=>e.text());throw t}},()=>{e.http=n,e.load=r}}function Ve(e){return e.startsWith(`.`)?e.slice(1):e}function He(e,t=x()){let n=W(e,t);if(!n)return e;let r=de(n);return URL.createObjectURL(r)}function W(e,t){let n=document.baseURI;n.startsWith(`blob:`)&&(n=n.replace(`blob:`,``));let r=new URL(e,n).pathname,i=Ue(e),a=Ue(r);return t[e]||t[Ve(e)]||t[r]||t[Ve(r)]||i&&t[i]||a&&t[a]}function Ue(e){let t=e.indexOf(`/@file/`);return t===-1?null:e.slice(t)}function G(e,t){return{get(t){return e.get(t)},set(t,n){e.set(t,n)},save_changes(){e.save_changes()},send:e.send.bind(e),on(n,r){t.aborted||(e.on(n,r),t.addEventListener(`abort`,()=>e.off(n,r),{once:!0}))},off(t,n){e.off(t??null,n??null)},widget_manager:{async get_model(n){return G(await e.widget_manager.get_model(n),t)}}}}function K(e){return typeof e==`string`&&e.length>0}function We(e){if(typeof e==`string`&&e.startsWith(`anywidget:`)){let t=e.slice(10);if(K(t))return t}throw Error(`[anywidget] Invalid widget reference: ${JSON.stringify(e)}`)}function Ge(e,t){return{async getModel(n){let r=We(n);return G(await e.getModel(r),t)},async getWidget(n){let r=We(n),i=await e.getWidget(r);return{exports:i.exports,async render({el:e,signal:n}){await i.render({el:e,signal:n??t})}}}}}var Ke=Symbol(`marimo`);function q(e){return e[Ke]}var qe=class e{#e=`change`;#t;#n;#r;#i={};static _modelManager;constructor(e,t,n){this.#n=e,this.#r=t,this.#t=new Set,n&&n.addEventListener(`abort`,()=>{m.debug(`[Model] Signal aborted, clearing all listeners`),this.#i={}})}[Ke]={updateAndEmitDiffs:e=>this.#o(e),emitCustomMessage:(e,t)=>this.#s(e,t)};off(e,t){if(!e){this.#i={};return}if(!t){this.#i[e]=new Set;return}this.#i[e]?.delete(t)}send(e,t,n){let r=(n??[]).map(e=>e instanceof ArrayBuffer?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength));return this.#r.sendCustomMessage(e,r).then(()=>t?.())}widget_manager={async get_model(t){let n=await e._modelManager.getModel(t);if(!n)throw Error(`Model not found with id: ${t}. This is likely because the model was not registered.`);return n}};get(e){return this.#n[e]}set(e,t){this.#n={...this.#n,[e]:t},this.#t.add(e),this.#a(`change:${e}`,t),this.#c()}save_changes(){if(this.#t.size===0)return;let e=Object.fromEntries([...this.#t].map(e=>[e,this.#n[e]]));this.#t.clear(),this.#r.sendUpdate(e)}on(e,t,n){let r=n?.signal;r?.aborted||(this.#i[e]||(this.#i[e]=new Set),this.#i[e].add(t),r?.addEventListener(`abort`,()=>this.off(e,t),{once:!0}))}#a(e,t){let n=this.#i[e];if(n)for(let e of[...n])try{e(t)}catch(e){m.error(`Error emitting event`,e)}}#o(e){e!=null&&Object.keys(e).forEach(t=>{let n=t;this.#t.delete(n),this.#n[n]!==e[n]&&(this.#n={...this.#n,[n]:e[n]},this.#a(`change:${n}`,e[n]),this.#c())})}#s(e,t=[]){let n=this.#i[`msg:custom`];if(n)for(let r of[...n])try{r(e.content,t)}catch(e){m.error(`Error emitting event`,e)}}#c=d(()=>{let e=this.#i[this.#e];if(e)for(let t of[...e])try{t()}catch(e){m.error(`Error emitting event`,e)}},0)};function Je(e){return typeof e==`function`}function Ye(e){return typeof e==`function`}function Xe(e){return t(e)&&(Je(e.render)||Ye(e.initialize))}function Ze(e){return typeof e==`function`||Xe(e)}function Qe(e){return t(e)&&Ze(e.default)}var $e=new Set,et=new WeakMap;function tt(e,n){if(Qe(e))return e.default;if(!t(e)||e.default!==void 0)return null;let r=Je(e.render)?e.render:void 0,i=Ye(e.initialize)?e.initialize:void 0;if(r===void 0&&i===void 0)return null;let a=et.get(e);if(a)return a;$e.has(n)||($e.add(n),m.warn(`Anywidget module at ${n} uses deprecated top-level named exports (\`render\`/\`initialize\`). Per the AFM spec, use a default export instead: \`export default { render }\`. See https://anywidget.dev/en/afm/`));let o={render:r,initialize:i};return et.set(e,o),o}function nt(e,n){let r=`https://anywidget.dev/en/afm/`,a=t(e)&&i(e,`render`),o=t(e)&&i(e,`initialize`);if(t(e)&&e.default!==void 0)return Error(`Anywidget module at ${n} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${r}`);if(a||o){let e=[a?"`render`":null,o?"`initialize`":null].filter(Boolean).join(` and `),t=[a?`render`:null,o?`initialize`:null].filter(e=>e!==null),i=`export default { ${t.join(`, `)} }`,s=t.length===1?`export function ${t[0]}`:`named export function ...`;return Error(`Anywidget module at ${n} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${i}\` (not \`${s}\`). See ${r}`)}return Error(`Anywidget module at ${n} is missing a default export. Per the AFM spec, use \`export default { render }\` or \`export default async () => ({ render })\`. See ${r}`)}function rt(e){return typeof e!=`string`||e.length===0?!1:!!(/^(\.?\/)?@file\/[^?#]+$/.test(e)||at(e))}function it(){return e.get(le)||ce()}function at(e){return e.startsWith(`data:text/javascript;base64,`)||e.startsWith(`data:application/javascript;base64,`)||e.startsWith(`data:text/css;base64,`)?it():!1}var ot={invoke:async()=>{let e=`anywidget.invoke not supported in marimo. Please file an issue at https://github.com/marimo-team/marimo/issues`;throw m.warn(e),Error(e)}};function st(e){if(typeof AbortSignal.any==`function`)return AbortSignal.any(e);let t=new AbortController;for(let n of e){if(n.aborted)return t.abort(n.reason),t.signal;n.addEventListener(`abort`,()=>t.abort(n.reason),{once:!0})}return t.signal}var ct=class{#e=new Map;getModule(e){let{jsUrl:t,jsHash:n,kernelAuthored:r=!1}=e,i=this.#e.get(n);if(i)return i;let a=this.#t(t,{kernelAuthored:r}).catch(e=>{throw this.#e.delete(n),e});return this.#e.set(n,a),a}invalidate(e){this.#e.delete(e)}async#t(e,t={}){if(!(rt(e)||t.kernelAuthored===!0&&/^(https?:|data:)/.test(e)))throw Error(`Refusing to load anywidget module from untrusted URL: ${String(e)}`);let n=ee(e).toString();return S()&&(n=He(n)),ie(()=>import(n),[],import.meta.url)}};function J(e){return typeof e==`function`}async function Y(e,t){try{await e()}catch(e){m.warn(`[WidgetBinding] ${t} cleanup failed`,e)}}var lt=class e{#e;#t;#n;#r;#i;#a=new Set;#o=new Set;constructor(e){this.#t=e.widget,this.#n=e.model,this.#r=e.exports,this.#e=e.controller,this.#i=e.createHost}static async create({widgetDef:t,model:n,createHost:r,controller:i=new AbortController}){let a=i.signal,o=typeof t==`function`?await t():t,s=Promise.resolve(o.initialize?.({model:G(n,a),experimental:ot,signal:a}));s.then(async e=>{a.aborted&&J(e)&&await Y(e,`late initialize`)}).catch(()=>void 0);let c=await Promise.race([s,new Promise((e,t)=>{let n=()=>t(Error(`[anywidget] binding destroyed`));if(a.aborted){n();return}a.addEventListener(`abort`,n,{once:!0})})]);if(a.aborted)throw Error(`[anywidget] binding destroyed`);let l,u;J(c)?(u=c,l=void 0):l=typeof c==`object`&&c?c:void 0;let d=new e({widget:o,model:n,exports:l,controller:i,createHost:r});return u&&a.addEventListener(`abort`,()=>void d.#c(u,`initialize`),{once:!0}),d}get exports(){return this.#r}async createView(e,t){let n=this.#s(e,t);this.#o.add(n);try{await n}finally{this.#o.delete(n)}}async#s(e,t){let n=this.#t;if(!n.render)return;let r=st([t.signal,this.#e.signal]);if(r.aborted)return;e.el.innerHTML=``;let i=this.#i(r),a=await n.render({model:G(this.#n,r),el:e.el,experimental:ot,signal:r,host:i});if(J(a)){let e=()=>{let e=t.signal.aborted?`view unmount`:`binding destroyed`;return m.debug(`[WidgetBinding] Render cleanup triggered (reason: ${e})`),this.#c(a,`render`)};if(r.aborted){await e();return}r.addEventListener(`abort`,()=>void e(),{once:!0})}}#c(e,t){let n=Y(e,t);return this.#a.add(n),n.finally(()=>this.#a.delete(n)),n}async destroy(){for(m.debug(`[WidgetBinding] Destroying binding generation`),this.#e.abort(),await Promise.allSettled(this.#o);this.#a.size>0;)await Promise.all(this.#a)}},ut=new ct,dt=class{#e;#t;#n;#r;#i;#a=new AbortController;#o=new oe;#s=new Set;#c=new Map;#l;#u;#d;#f=Promise.resolve();#p=``;constructor(e,t){this.#e=e,this.#t=t.timeout,this.#n=t.isEditMode,this.#r=t.createHost,this.#i=t.onModelTimeout}getModel(){return this.#o.status===`pending`&&!this.#l&&(this.#l=setTimeout(()=>{this.#o.status===`pending`&&(this.#l=void 0,this.#o.reject(Error(`Model not found for key: ${this.#e}`)),this.#i())},this.#t)),this.#o.promise}getModelSync(){return this.#o.status===`resolved`?this.#o.value:void 0}createModel(e){this.#o.status===`pending`&&this.#m(e(this.#a.signal))}setModel(e){this.#o.status===`pending`&&this.#m(e)}#m(e){this.#l&&=(clearTimeout(this.#l),void 0),this.#o.resolve(e);let t=e.get(`_css`);this.#p=typeof t==`string`?t:``,e.on(`change:_css`,e=>{this.#p=typeof e==`string`?e:``;for(let e of this.#c.values())e.update(this.#p)},{signal:this.#a.signal})}setSpec(e){if(!this.#u){this.#u=e;return}this.#n()&&(this.#u=e,this.#d&&this.#d.hash!==e.hash&&this.#v(e))}async getWidget(){return{exports:(await this.#h()).exports,render:async({el:e,signal:t})=>{await this.createView({el:e,signal:t??this.#a.signal})}}}async createView(e){if(e.signal.aborted||this.#a.signal.aborted)return;let t={el:e.el,signal:e.signal};this.#s.add(t),this.#x(t),e.signal.addEventListener(`abort`,()=>this.#s.delete(t),{once:!0}),await this.#b(t)}async#h(){for(;!this.#a.signal.aborted;){let e=await this.getModel(),t=this.#d;if(!t){let n=this.#u;if(!n)throw Error(`[anywidget] No ESM spec for model ${this.#e}: nothing ever provided this widget's code`);t=this.#_(n,e)}try{let e=await t.promise;if(t===this.#d)return e}catch(e){if(!this.#d||t===this.#d)throw e}}throw Error(`[anywidget] widget runtime destroyed`)}async#g(e){let{spec:t,model:n,controller:r}=e,i=await ut.getModule({jsUrl:t.url,jsHash:t.hash,kernelAuthored:!0}),a=tt(i,t.url);if(!a)throw ut.invalidate(t.hash),nt(i,t.url);return lt.create({widgetDef:a,model:n,createHost:this.#r,controller:r})}#_(e,t){let n=new AbortController,r={hash:e.hash,controller:n,promise:this.#g({spec:e,model:t,controller:n})};return r.promise.catch(()=>{this.#d===r&&(this.#d=void 0)}),this.#d=r,r}#v(e){let t=this.#d;if(!t)return;m.debug(`[WidgetRuntime] Hot-swapping generation for model=${this.#e}`);let n=this.#y(t),r=this.getModelSync();if(!r)return;let i=this.#_(e,r);for(let e of this.#s)e.generation=void 0,n.then(()=>this.#b(e,i)).catch(e=>{m.error(`[WidgetRuntime] Error replacing widget view`,e)})}#y(e){e.controller.abort();let t=this.#f.then(async()=>{try{await(await e.promise).destroy()}catch{}});return this.#f=t,t}async#b(e,t){if(e.signal.aborted||this.#a.signal.aborted)return;let n=t??this.#d,r=n?await n.promise:await this.#h(),i=this.#d;if(!(!i||i!==(n??i))&&e.generation!==i){e.generation=i;try{await r.createView({el:e.el},{signal:e.signal})}catch(t){if(i!==this.#d){e.generation=void 0;return}throw t}}}#x(e){let t=e.el.getRootNode();if(!X(t)&&!ft(t))return;let n=this.#c.get(t);n||(n=pt(t,this.#p),this.#c.set(t,n)),n.references+=1;let r=!1;e.signal.addEventListener(`abort`,()=>{if(r)return;r=!0;let e=this.#c.get(t);e&&(--e.references,e.references===0&&(e.dispose(),this.#c.delete(t)))},{once:!0})}dispose(){if(!this.#a.signal.aborted){m.debug(`[WidgetRuntime] Disposing model=${this.#e}`),this.#l&&=(clearTimeout(this.#l),void 0),this.#o.status===`pending`&&(this.#o.promise.catch(()=>void 0),this.#o.reject(Error(`[anywidget] widget runtime destroyed`))),this.#d&&this.#y(this.#d),this.#a.abort(),this.#s.clear();for(let e of this.#c.values())e.dispose();this.#c.clear()}}};function X(e){return e.nodeType===Node.DOCUMENT_NODE}function ft(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function pt(e,t){let n=X(e)?e:e.ownerDocument??document,r=n.defaultView??window;if(`adoptedStyleSheets`in e&&r.CSSStyleSheet!==void 0&&typeof r.CSSStyleSheet.prototype.replaceSync==`function`)try{let n=new r.CSSStyleSheet;return n.replaceSync(t),e.adoptedStyleSheets=[...e.adoptedStyleSheets,n],{references:0,update(e){n.replaceSync(e)},dispose(){e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n)}}}catch{}let i=n.createElement(`style`);return i.textContent=t,X(e)?n.head.append(i):e.append(i),{references:0,update(e){i.textContent=e},dispose(){i.remove()}}}function Z(e,t=[]){let n=[];if(e instanceof DataView)n.push(t);else if(Array.isArray(e))for(let[r,i]of e.entries())n.push(...Z(i,[...t,r]));else if(typeof e==`object`&&e)for(let[r,i]of Object.entries(e))n.push(...Z(i,[...t,r]));return n}function mt(e){let t=Z(e);if(t.length===0)return{state:e,buffers:[],bufferPaths:[]};let n=structuredClone(e),r=[],i=[];for(let a of t){let t=u(e,a);if(t instanceof DataView){let e=w(t);r.push(e),i.push(a),O(n,a,e)}}return{state:n,buffers:r,bufferPaths:i}}function ht(e){let{state:t,bufferPaths:n,buffers:r}=e;if(!n||n.length===0)return t;r&&g(r.length===n.length,`Buffers and buffer paths not the same length`);let i=t;for(let[e,t]of n.entries()){let n=r?.[e];if(n==null){m.warn(`[anywidget] Could not find buffer at path`,t);continue}typeof n==`string`?O(i,t,T(n)):O(i,t,n)}return i}function gt(){let t=e.get(v).mode;return t===`edit`||t===`present`}var Q=new class{#e=new Map;#t;#n;constructor(e=1e4,t=gt){this.#t=e,this.#n=t}#r(e){let t=this.#e.get(e);if(!t){let n=new dt(e,{timeout:this.#t,isEditMode:this.#n,createHost:e=>Ge(this,e),onModelTimeout:()=>{this.#e.get(e)===n&&(n.dispose(),this.#e.delete(e))}});t=n,this.#e.set(e,t)}return t}getModel(e){return this.#r(e).getModel()}getModelSync(e){return this.#e.get(e)?.getModelSync()}createModel(e,t){this.#r(e).createModel(t)}setModel(e,t){this.#r(e).setModel(t)}setSpec(e,t){this.#r(e).setSpec(t)}getWidget(e){return this.#r(e).getWidget()}createView(e){return this.#r(e.modelId).createView(e)}delete(e){let t=this.#e.get(e);t&&(t.dispose(),this.#e.delete(e))}};qe._modelManager=Q;async function _t(e,t){let n=t.model_id;if(!K(n))throw Error(`[anywidget] Invalid model id: ${String(n)}`);let r=t.message,i=(`buffers`in r?r.buffers:[]).map(T);switch(r.method){case`open`:{let{state:t,buffer_paths:a=[]}=r;r.esm_spec&&e.setSpec(n,r.esm_spec);let o=ht({state:t,bufferPaths:a,buffers:i}),s=e.getModelSync(n);if(s){q(s).updateAndEmitDiffs(o);return}e.createModel(n,e=>{let t=S()?{sendUpdate:async()=>void 0,sendCustomMessage:async()=>void 0}:{async sendUpdate(t){if(e.aborted){m.debug(`[Model] sendUpdate suppressed for model=${n} (signal aborted)`);return}let{state:r,buffers:i,bufferPaths:a}=mt(t);await E().sendModelValue({modelId:n,message:{method:`update`,state:r,bufferPaths:a},buffers:i})},async sendCustomMessage(t,r){if(e.aborted){m.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);return}await E().sendModelValue({modelId:n,message:{method:`custom`,content:t},buffers:r.map(w)})}};return new qe(o,t,e)});return}case`custom`:q(await e.getModel(n)).emitCustomMessage({method:`custom`,content:r.content},i);return;case`close`:e.delete(n);return;case`update`:{let{state:t,buffer_paths:a=[]}=r;r.esm_spec&&e.setSpec(n,r.esm_spec);let o=ht({state:t,bufferPaths:a,buffers:i});q(await e.getModel(n)).updateAndEmitDiffs(o);return}default:ae(r)}}o(Q,`WIDGET_REGISTRY`);function vt(e){return typeof e!=`object`||!e?!1:`type`in e&&e.type===`marimo-ui-value-update`}var $=class e{entries;static get INSTANCE(){let t=`_marimo_private_UIElementRegistry`;return window[t]||(window[t]=new e),window[t]}constructor(){this.entries=new Map}has(e){return this.entries.has(e)}set(e,t){this.entries.has(e)&&m.debug(`UIElementRegistry overwriting entry for objectId.`,e),this.entries.set(e,{objectId:e,value:t,elements:new Set})}registerInstance(e,t){let n=this.entries.get(e);n===void 0?this.entries.set(e,{objectId:e,value:a(t,this),elements:new Set([t])}):n.elements.add(t)}removeInstance(e,t){let n=this.entries.get(e);n?.elements.has(t)&&n.elements.delete(t)}removeElementsByCell(e){[...this.entries.keys()].filter(t=>t.startsWith(`${e}-`)).forEach(e=>{this.entries.delete(e)})}lookupValue(e){let t=this.entries.get(e);return t===void 0?void 0:t.value}broadcastMessage(e,t,n){let r=this.entries.get(e);if(r===void 0){m.warn(`UIElementRegistry missing entry`,e);return}if(vt(t)){r.value=t.value,r.elements.forEach(e=>{e.dispatchEvent(D.create({bubbles:!1,composed:!0,detail:{value:t.value,element:e}}))});return}r.elements.forEach(r=>{r.dispatchEvent(_e.create({bubbles:!1,composed:!0,detail:{objectId:e,message:t,buffers:n}}))})}broadcastValueUpdate(e,t,n){let r=this.entries.get(t);r===void 0?m.warn(`UIElementRegistry missing entry`,t):(r.value=n,r.elements.forEach(t=>{t!==e&&t.dispatchEvent(D.create({bubbles:!1,composed:!0,detail:{value:n,element:t}}))}),document.dispatchEvent(ge.create({bubbles:!0,composed:!0,detail:{objectId:t}})))}},yt=$.INSTANCE,bt=new ne(`function-call-result`,async(e,t)=>{await E().sendFunctionRequest({functionCallId:e,...t})}),xt=`68px`,St=`288px`,Ct=e=>e?/^\d+$/.test(e)?`${e}px`:e:St,wt=y({isOpen:!0},(e,t)=>{if(!t)return e;switch(t.type){case`toggle`:return{...e,isOpen:t.isOpen??e.isOpen};case`setWidth`:return{...e,width:t.width};default:return e}});export{j as _,$ as a,_t as c,Re as d,Be as f,M as g,V as h,bt as i,rt as l,Ie as m,Ct as n,yt as o,U as p,wt as r,Q as s,xt as t,K as u,A as v,O as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e}from"./useEvent-Dc9HkKI2.js";import{g as t}from"./useEventListener-IRzG-0mH.js";function n(){try{return window.__MARIMO_MOUNT_CONFIG__.version}catch{return t.warn(`Failed to get version from mount config`),null}}var r=n()||`latest`,i=e(r),a=e(!0),o=e(null);export{o as n,a as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,f as t,r as n}from"./useEvent-Dc9HkKI2.js";import{t as r}from"./state-YaAkDV8S.js";var i=()=>n.get(r),a=()=>{let e=document.querySelector(`marimo-code`);if(!e)return;let t=e.innerHTML;return decodeURIComponent(t).trim()},o=t({kind:`loading`,message:`Initializing...`}),s=t({isInstantiated:!1,error:null}),c=t(!1);function l(){return e(s,e=>e.isInstantiated)}var u=t(!1),d=t(new Set),f=t(e=>e(d)?.size===0),p=t(!1);t(e=>e(p)&&e(u)===!1);export{l as a,i as c,s as i,u as n,o,c as r,a as s,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./dagre-BjpQhh5X.js";import{t}from"./graphlib-Blky6igo.js";import{_ as n}from"./step-CqgdNM3U.js";import{t as r}from"./line-io_go0HI.js";import{g as i}from"./chunk-75Z2AOVW-DEp7Wbaj.js";import{u as a}from"./src-BpnPuKEN.js";import{n as o}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as s}from"./src-Cyu5G-Tr.js";import{O as c,c as l,s as u,x as d}from"./chunk-DU6HZSFF-CDmPCRkr.js";import"./chunk-P2QGCYS3-Bw5LRT6S.js";import"./chunk-PWAF6VOD-B1mxlptQ.js";import"./chunk-GMAD6QVW-ahdTJvh0.js";import"./chunk-4HAMMTFA-DaFOJTOO.js";import"./chunk-GVQU2GXP-CPkYne1h.js";import"./chunk-L3NEJ4N5-BOK6HmaY.js";import"./chunk-OSK3NFVY-CEcyPnHo.js";import"./chunk-TLUHSLCS-DvvqZUl_.js";import"./chunk-F27PBJKO-455JWNM3.js";import"./chunk-XXDRQBXY-BwqwIlJV.js";import"./chunk-POPQ4Y6H-C--NLIXc.js";import{i as f,n as p,t as m}from"./chunk-IMKFNOWR-fARccL86.js";var h=o(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,d().state.sizeUnit).attr(`cx`,d().state.padding+d().state.sizeUnit).attr(`cy`,d().state.padding+d().state.sizeUnit),`drawStartState`),g=o(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,d().state.textHeight).attr(`class`,`divider`).attr(`x2`,d().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=o((e,t)=>{let n=e.append(`text`).attr(`x`,2*d().state.padding).attr(`y`,d().state.textHeight+2*d().state.padding).attr(`font-size`,d().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,d().state.padding).attr(`y`,d().state.padding).attr(`width`,r.width+2*d().state.padding).attr(`height`,r.height+2*d().state.padding).attr(`rx`,d().state.radius),n},`drawSimpleState`),v=o((e,t)=>{let n=o(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*d().state.padding).text(t);n||r.attr(`dy`,d().state.textHeight)},`addTspan`),r=e.append(`text`).attr(`x`,2*d().state.padding).attr(`y`,d().state.textHeight+1.3*d().state.padding).attr(`font-size`,d().state.fontSize).attr(`class`,`state-title`).text(t.descriptions[0]).node().getBBox(),i=r.height,a=e.append(`text`).attr(`x`,d().state.padding).attr(`y`,i+d().state.padding*.4+d().state.dividerMargin+d().state.textHeight).attr(`class`,`state-description`),s=!0,c=!0;t.descriptions.forEach(function(e){s||(n(a,e,c),c=!1),s=!1});let l=e.append(`line`).attr(`x1`,d().state.padding).attr(`y1`,d().state.padding+i+d().state.dividerMargin/2).attr(`y2`,d().state.padding+i+d().state.dividerMargin/2).attr(`class`,`descr-divider`),u=a.node().getBBox(),f=Math.max(u.width,r.width);return l.attr(`x2`,f+3*d().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,d().state.padding).attr(`y`,d().state.padding).attr(`width`,f+2*d().state.padding).attr(`height`,u.height+i+2*d().state.padding).attr(`rx`,d().state.radius),e},`drawDescrState`),y=o((e,t,n)=>{let r=d().state.padding,i=2*d().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,c=e.append(`text`).attr(`x`,0).attr(`y`,d().state.titleShift).attr(`font-size`,d().state.fontSize).attr(`class`,`state-title`).text(t.id),l=c.node().getBBox().width+i,u=Math.max(l,o);u===o&&(u+=i);let f,p=e.node().getBBox();t.doc,f=s-r,l>o&&(f=(o-u)/2+r),Math.abs(s-p.x)<r&&l>o&&(f=s-(l-o)/2);let m=1-d().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,u).attr(`height`,p.height+d().state.textHeight+d().state.titleShift+1).attr(`rx`,`0`),c.attr(`x`,f+r),l<=o&&c.attr(`x`,s+(u-i)/2-l/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,d().state.titleShift-d().state.textHeight-d().state.padding).attr(`width`,u).attr(`height`,d().state.textHeight*3).attr(`rx`,d().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,d().state.titleShift-d().state.textHeight-d().state.padding).attr(`width`,u).attr(`height`,p.height+3+2*d().state.textHeight).attr(`rx`,d().state.radius),e},`addTitleAndBox`),b=o(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,d().state.sizeUnit+d().state.miniPadding).attr(`cx`,d().state.padding+d().state.sizeUnit+d().state.miniPadding).attr(`cy`,d().state.padding+d().state.sizeUnit+d().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,d().state.sizeUnit).attr(`cx`,d().state.padding+d().state.sizeUnit+2).attr(`cy`,d().state.padding+d().state.sizeUnit+2)),`drawEndState`),x=o((e,t)=>{let n=d().state.forkWidth,r=d().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,d().state.padding).attr(`y`,d().state.padding)},`drawForkJoinState`),S=o((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`<br/>`);o=o.replace(/\n/g,`<br/>`);let s=o.split(u.lineBreakRegex),c=1.25*d().state.noteMargin;for(let e of s){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),c===0){let t=e.node().getBBox();c+=t.height}i+=c,e.attr(`x`,t+d().state.noteMargin),e.attr(`y`,n+i+1.25*d().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),C=o((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,d().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*d().state.noteMargin),n.attr(`width`,r+d().state.noteMargin*2),n},`drawNote`),w=o(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type==="default"&&t.descriptions.length===0&&_(i,t),t.type==="default"&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*d().state.padding,r.height=a.height+2*d().state.padding,r},`drawState`),T=0,E=o(function(e,t,a){let l=o(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);t.points=t.points.filter(e=>!Number.isNaN(e.y));let f=t.points,p=r().x(function(e){return e.x}).y(function(e){return e.y}).curve(n),h=e.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(d().state.arrowMarkerAbsolute&&(g=c(!0)),h.attr(`marker-end`,`url(`+g+`#`+l(m.relationType.DEPENDENCY)+`End)`),a.title!==void 0){let n=e.append(`g`).attr(`class`,`stateLabel`),{x:r,y:o}=i.calcLabelPosition(t.points),c=u.getRows(a.title),l=0,f=[],p=0,m=0;for(let e=0;e<=c.length;e++){let t=n.append(`text`).attr(`text-anchor`,`middle`).text(c[e]).attr(`x`,r).attr(`y`,o+l),i=t.node().getBBox();p=Math.max(p,i.width),m=Math.min(m,i.x),s.info(i.x,r,o+l),l===0&&(l=t.node().getBBox().height,s.info(`Title height`,l,o)),f.push(t)}let h=l*c.length;if(c.length>1){let e=(c.length-1)*l*.5;f.forEach((t,n)=>t.attr(`y`,o+n*l-e)),h=l*c.length}let g=n.node().getBBox();n.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,r-p/2-d().state.padding/2).attr(`y`,o-h/2-d().state.padding/2-3.5).attr(`width`,p+d().state.padding).attr(`height`,h+d().state.padding),s.info(g)}T++},`drawEdge`),D,O={},k=o(function(){},`setConf`),A=o(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=o(function(e,t,n,r){D=d().state;let i=d().securityLevel,o;i===`sandbox`&&(o=a(`#i`+t));let c=a(i===`sandbox`?o.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?o.nodes()[0].contentDocument:document;s.debug(`Rendering diagram `+e);let f=c.select(`[id='${t}']`);A(f),N(r.db.getRootDoc(),f.append(`g`).attr(`id`,t+`-root`),void 0,!1,c,u,r);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2,_=h*1.75;l(f,g,_,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=o(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=o((n,r,i,a,o,c,l)=>{let d=new t({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<n.length;f++)if(n[f].stmt===`relation`){p=!1;break}i?d.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):d.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),d.setDefaultEdgeLabel(function(){return{}});let m=l.db.getStates(),h=l.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];i&&(t.parentId=i);let n;if(t.doc){let e=r.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);n=N(t.doc,e,t.id,!a,o,c,l);{e=y(e,t,a);let r=e.node().getBBox();n.width=r.width,n.height=r.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else n=w(r,t,d);if(t.note){let e=w(r,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},d);t.note.position===`left of`?(d.setNode(n.id+`-note`,e),d.setNode(n.id,n)):(d.setNode(n.id,n),d.setNode(n.id+`-note`,e)),d.setParent(n.id,n.id+`-group`),d.setParent(n.id+`-note`,n.id+`-group`)}else d.setNode(n.id,n)}s.debug(`Count=`,d.nodeCount(),d);let _=0;h.forEach(function(e){_++,s.debug(`Setting edge`,e),d.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*u.getRows(e.title).length,labelpos:`c`},`id`+_)}),e(d),s.debug(`Graph after layout`,d.nodes());let v=r.node();d.nodes().forEach(function(e){e!==void 0&&d.node(e)!==void 0?(s.warn(`Node `+e+`: `+JSON.stringify(d.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(d.node(e).x-d.node(e).width/2)+`,`+(d.node(e).y+(O[e]?O[e].y:0)-d.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,d.node(e).x-d.node(e).width/2),c.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):s.debug(`No Node `+e+`: `+JSON.stringify(d.node(e)))});let b=v.getBBox();d.edges().forEach(function(e){e!==void 0&&d.edge(e)!==void 0&&(s.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(d.edge(e))),E(r,d.edge(e),d.edge(e).relation))}),b=v.getBBox();let x={id:i||`root`,label:i||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,s.debug(`Doc rendered`,x,d),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:o(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-75Z2AOVW-DEp7Wbaj.js";import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-Cyu5G-Tr.js";import"./chunk-DU6HZSFF-CDmPCRkr.js";import"./chunk-P2QGCYS3-Bw5LRT6S.js";import"./chunk-PWAF6VOD-B1mxlptQ.js";import"./chunk-GMAD6QVW-ahdTJvh0.js";import"./chunk-4HAMMTFA-DaFOJTOO.js";import"./chunk-GVQU2GXP-CPkYne1h.js";import"./chunk-L3NEJ4N5-BOK6HmaY.js";import"./chunk-OSK3NFVY-CEcyPnHo.js";import"./chunk-TLUHSLCS-DvvqZUl_.js";import"./chunk-F27PBJKO-455JWNM3.js";import"./chunk-XXDRQBXY-BwqwIlJV.js";import"./chunk-POPQ4Y6H-C--NLIXc.js";import{i as t,n,r,t as i}from"./chunk-IMKFNOWR-fARccL86.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./math-Bi_r_ZWc.js";function e(e){this._context=e}e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function t(t){return new e(t)}function n(){}function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a(e){return new i(e)}function o(e){this._context=e}o.prototype={areaStart:n,areaEnd:n,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s(e){return new o(e)}function c(e){this._context=e}c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function l(e){return new c(e)}function u(e,t){this._basis=new i(e),this._beta=t}u.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var d=(function e(t){function n(e){return t===1?new i(e):new u(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function f(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function p(e,t){this._context=e,this._k=(1-t)/6}p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:f(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:f(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var m=(function e(t){function n(e){return new p(e,t)}return n.tension=function(t){return e(+t)},n})(0);function h(e,t){this._context=e,this._k=(1-t)/6}h.prototype={areaStart:n,areaEnd:n,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:f(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var g=(function e(t){function n(e){return new h(e,t)}return n.tension=function(t){return e(+t)},n})(0);function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:f(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var v=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function y(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function b(e,t){this._context=e,this._alpha=t}b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:y(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var x=(function e(t){function n(e){return t?new b(e,t):new p(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function S(e,t){this._context=e,this._alpha=t}S.prototype={areaStart:n,areaEnd:n,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:y(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var C=(function e(t){function n(e){return t?new S(e,t):new h(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function w(e,t){this._context=e,this._alpha=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:y(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var T=(function e(t){function n(e){return t?new w(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function E(e){this._context=e}E.prototype={areaStart:n,areaEnd:n,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function D(e){return new E(e)}function O(e){return e<0?-1:1}function k(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(O(a)+O(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function A(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function j(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function M(e){this._context=e}M.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:j(this,this._t0,A(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,j(this,A(this,n=k(this,e,t)),n);break;default:j(this,this._t0,n=k(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function N(e){this._context=new P(e)}(N.prototype=Object.create(M.prototype)).point=function(e,t){M.prototype.point.call(this,t,e)};function P(e){this._context=e}P.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function F(e){return new M(e)}function I(e){return new N(e)}function L(e){this._context=e}L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=R(e),i=R(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function R(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function z(e){return new L(e)}function B(e,t){this._context=e,this._t=t}B.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function V(e){return new B(e,.5)}function H(e){return new B(e,0)}function U(e){return new B(e,1)}export{a as _,F as a,T as c,v as d,g as f,s as g,l as h,z as i,C as l,d as m,H as n,I as o,m as p,V as r,D as s,U as t,x as u,t as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./stex-Dc5bKD4z.js";export{e as stex};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e){var t=e.cmdState.pop();t&&t.closeBracket()}function i(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if(r.name!=`DEFAULT`)return r}return{styleIdentifier:function(){return null}}}function a(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,`bracket`},this.closeBracket=function(){}}}var o={};o.importmodule=a(`importmodule`,`tag`,[`string`,`builtin`]),o.documentclass=a(`documentclass`,`tag`,[``,`atom`]),o.usepackage=a(`usepackage`,`tag`,[`atom`]),o.begin=a(`begin`,`tag`,[`atom`]),o.end=a(`end`,`tag`,[`atom`]),o.label=a(`label`,`tag`,[`atom`]),o.ref=a(`ref`,`tag`,[`atom`]),o.eqref=a(`eqref`,`tag`,[`atom`]),o.cite=a(`cite`,`tag`,[`atom`]),o.bibitem=a(`bibitem`,`tag`,[`atom`]),o.Bibitem=a(`Bibitem`,`tag`,[`atom`]),o.RBibitem=a(`RBibitem`,`tag`,[`atom`]),o.DEFAULT=function(){this.name=`DEFAULT`,this.style=`tag`,this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function s(e,t){e.f=t}function c(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var c=e.current().slice(1);return a=o.hasOwnProperty(c)?o[c]:o.DEFAULT,a=new a,t(r,a),s(r,u),a.style}if(e.match(/^\\[$&%#{}_]/)||e.match(/^\\[,;!\/\\]/))return`tag`;if(e.match(`\\[`))return s(r,function(e,t){return l(e,t,`\\]`)}),`keyword`;if(e.match(`\\(`))return s(r,function(e,t){return l(e,t,`\\)`)}),`keyword`;if(e.match(`$$`))return s(r,function(e,t){return l(e,t,`$$`)}),`keyword`;if(e.match(`$`))return s(r,function(e,t){return l(e,t,`$`)}),`keyword`;var d=e.next();if(d==`%`)return e.skipToEnd(),`comment`;if(d==`}`||d==`]`){if(a=n(r),a)a.closeBracket(d),s(r,u);else return`error`;return`bracket`}return d==`{`||d==`[`?(a=o.DEFAULT,a=new a,t(r,a),`bracket`):/\d/.test(d)?(e.eatWhile(/[\w.%]/),`atom`):(e.eatWhile(/[\w\-_]/),a=i(r),a.name==`begin`&&(a.argument=e.current()),a.styleIdentifier())}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return s(t,c),`keyword`;if(e.match(/^\\[a-zA-Z@]+/))return`tag`;if(e.match(/^[a-zA-Z]+/))return`variableName.special`;if(e.match(/^\\[$&%#{}_]/)||e.match(/^\\[,;!\/]/)||e.match(/^[\^_&]/))return`tag`;if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return`number`;var r=e.next();return r==`{`||r==`}`||r==`[`||r==`]`||r==`(`||r==`)`?`bracket`:r==`%`?(e.skipToEnd(),`comment`):`error`}function u(e,t){var i=e.peek(),a;return i==`{`||i==`[`?(a=n(t),a.openBracket(i),e.eat(i),s(t,c),`bracket`):/[ \t\r]/.test(i)?(e.eat(i),null):(s(t,c),r(t),c(e,t))}return{name:`stex`,startState:function(){return{cmdState:[],f:e?function(e,t){return l(e,t)}:c}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=c,e.cmdState.length=0},languageData:{commentTokens:{line:`%`}}}}var t=e(!1),n=e(!0);export{n,t};
|