@marimo-team/frontend 0.14.18-dev3 → 0.14.18-dev31
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/{ConnectedDataExplorerComponent-BT0xl502.js → ConnectedDataExplorerComponent-oOiI8-Is.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-CyD_BM3x.js → ImageComparisonComponent-CrBtZ5gk.js} +1 -1
- package/dist/assets/{VegaLite-hnjov9BB.js → VegaLite-BruLY7Yo.js} +1 -1
- package/dist/assets/{_baseEach-C_3O_UIK.js → _baseEach-Dtl0u6a9.js} +1 -1
- package/dist/assets/_baseMap-BbSMx7sO.js +1 -0
- package/dist/assets/{_baseUniq-G59-tGC4.js → _baseUniq-oH3tH_Lx.js} +1 -1
- package/dist/assets/{_createAggregator-CYM_3WAb.js → _createAggregator-DVbCk7I8.js} +1 -1
- package/dist/assets/{any-language-editor-B_KRwSpy.js → any-language-editor-DNTe-hGh.js} +1 -1
- package/dist/assets/{architectureDiagram-SUXI7LT5-Cp-u2npp.js → architectureDiagram-SUXI7LT5-BNE5Ocu0.js} +1 -1
- package/dist/assets/{blockDiagram-6J76NXCF-B1eF_YTU.js → blockDiagram-6J76NXCF-BkAnLDAP.js} +1 -1
- package/dist/assets/{c4Diagram-6F6E4RAY-D3Co9dhJ.js → c4Diagram-6F6E4RAY-CMvcINsX.js} +1 -1
- package/dist/assets/channel-AZKaNSLi.js +1 -0
- package/dist/assets/{chunk-353BL4L5-BNPOylnE.js → chunk-353BL4L5-DZ6k9BBV.js} +1 -1
- package/dist/assets/{chunk-67H74DCK-6tJ94Bg0.js → chunk-67H74DCK-Btl2ATCi.js} +1 -1
- package/dist/assets/{chunk-AACKK3MU-46UGfeGc.js → chunk-AACKK3MU-Di82a8tq.js} +1 -1
- package/dist/assets/{chunk-BFAMUDN2-CNdKrd4t.js → chunk-BFAMUDN2-C6ACh81N.js} +1 -1
- package/dist/assets/{chunk-E2GYISFI-0jprAmfg.js → chunk-E2GYISFI-BGhna3Tu.js} +1 -1
- package/dist/assets/{chunk-OW32GOEJ-Dq-4mco2.js → chunk-OW32GOEJ-BvQbpZtP.js} +6 -6
- package/dist/assets/{chunk-SKB7J2MH-BFb7Z7j2.js → chunk-SKB7J2MH-B5xc8b3Z.js} +1 -1
- package/dist/assets/{chunk-SZ463SBG-BEsy1Bnk.js → chunk-SZ463SBG-DqkT0n2R.js} +1 -1
- package/dist/assets/{circle-play-chxJxn_k.js → circle-play-DPIHEaaR.js} +1 -1
- package/dist/assets/classDiagram-M3E45YP4-B7yw2nKS.js +1 -0
- package/dist/assets/classDiagram-v2-YAWTLIQI-B7yw2nKS.js +1 -0
- package/dist/assets/clone-4KJc73U3.js +1 -0
- package/dist/assets/common-keywords-Dg3Y2cJS.js +1 -0
- package/dist/assets/{compile-CrDOzGvF.js → compile-DiFbtiAE.js} +1 -1
- package/dist/assets/{dagre-JOIXM2OF-CgxEy6Ti.js → dagre-JOIXM2OF-1P_Dgkjl.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-Bt-ru6j6.js → data-grid-overlay-editor-Dghfz964.js} +1 -1
- package/dist/assets/{diagram-5UYTHUR4-Cv4YqP4A.js → diagram-5UYTHUR4-56oBr9Mj.js} +1 -1
- package/dist/assets/{diagram-VMROVX33-UJqJ2Qh7.js → diagram-VMROVX33-Bg7PYU8p.js} +1 -1
- package/dist/assets/{diagram-ZTM2IBQH-wfhUdi9M.js → diagram-ZTM2IBQH-CPzEgjbH.js} +1 -1
- package/dist/assets/duckdb-keywords-CFYiiNsB.js +1 -0
- package/dist/assets/{edit-page-Bh3hotqJ.js → edit-page-DCrlym3M.js} +44 -44
- package/dist/assets/{erDiagram-3M52JZNH-Bt4OzYYB.js → erDiagram-3M52JZNH-T300kYM8.js} +1 -1
- package/dist/assets/{flowDiagram-KYDEHFYC-BE_JMKNj.js → flowDiagram-KYDEHFYC-BYZfYSI2.js} +1 -1
- package/dist/assets/{ganttDiagram-EK5VF46D-DEt-Ih6b.js → ganttDiagram-EK5VF46D-BEDi_5bs.js} +1 -1
- package/dist/assets/{gitGraphDiagram-GW3U2K7C-CGO98bua.js → gitGraphDiagram-GW3U2K7C-Cu1vg-Ae.js} +1 -1
- package/dist/assets/{glide-data-editor-Btj-XKB9.js → glide-data-editor-lK9K3ps-.js} +11 -11
- package/dist/assets/{graph-DeU2Xth1.js → graph-CDj368Ef.js} +1 -1
- package/dist/assets/{home-page-IxuRGcj-.js → home-page-Bke3YQtW.js} +2 -2
- package/dist/assets/index-BH8vrBOf.css +1 -0
- package/dist/assets/{index-DbFWJ4Qa.js → index-BIamDpT3.js} +1 -1
- package/dist/assets/{index-vGk4nE_d.js → index-BdPIybcd.js} +1 -1
- package/dist/assets/{index-B7daay03.js → index-BfMKs8fK.js} +210 -201
- package/dist/assets/{index-D4QA5nNz.js → index-BgN5JveD.js} +1 -1
- package/dist/assets/{index-g62sB8uq.js → index-BlIpJJ1s.js} +1 -1
- package/dist/assets/{index-_jAr8NM_.js → index-C1sif23O.js} +1 -1
- package/dist/assets/{index-B464Wlvo.js → index-C5zHu97c.js} +1 -1
- package/dist/assets/{index-Dql2NySh.js → index-CHUAhpF9.js} +1 -1
- package/dist/assets/{index-B72QAiSc.js → index-CHvSTvku.js} +1 -1
- package/dist/assets/{index-DFLmyJLh.js → index-CV-cT8XZ.js} +1 -1
- package/dist/assets/{index-DEVD2idU.js → index-CVJgiMKT.js} +1 -1
- package/dist/assets/index-Cd8lKjXa.js +68 -0
- package/dist/assets/{index-heFumldU.js → index-D2wUEqSr.js} +1 -1
- package/dist/assets/{index-DRnyprVw.js → index-DQeLlRNN.js} +1 -1
- package/dist/assets/{index-CRkNsusV.js → index-DdE5sj7B.js} +1 -1
- package/dist/assets/{index-BYPCZUa6.js → index-DpaljNVK.js} +1 -1
- package/dist/assets/{index-CVNzfFlx.js → index-DskNGo48.js} +1 -1
- package/dist/assets/{index-Dniw7sSM.js → index-PXSGnTt_.js} +1 -1
- package/dist/assets/{index-BU4GASnK.js → index-UakLQEhR.js} +1 -1
- package/dist/assets/{index-54cg5P1s.js → index-uLE7UQoA.js} +1 -1
- package/dist/assets/infoDiagram-LHK5PUON-DvKYogid.js +2 -0
- package/dist/assets/{journeyDiagram-EWQZEKCU-DzQqkIOA.js → journeyDiagram-EWQZEKCU-qFhtMoPK.js} +1 -1
- package/dist/assets/{kanban-definition-ZSS6B67P-Cv0lpMrD.js → kanban-definition-ZSS6B67P-d4c_bpNj.js} +1 -1
- package/dist/assets/{layout-CO5ebI-Y.js → layout-B1YrGZ5o.js} +1 -1
- package/dist/assets/{linear-CvcTdG5r.js → linear-Ce9Ln0y7.js} +1 -1
- package/dist/assets/links--FJRrKkU.js +18 -0
- package/dist/assets/{mermaid-CymwcI3a.js → mermaid-TIsLiY_c.js} +26 -26
- package/dist/assets/min-pEaRzhJa.js +1 -0
- package/dist/assets/{mindmap-definition-6CBA2TL7-B0mxrKt3.js → mindmap-definition-6CBA2TL7-NzRV0KhB.js} +1 -1
- package/dist/assets/{number-overlay-editor-CJPAXVuf.js → number-overlay-editor-wIfVoa2g.js} +2 -2
- package/dist/assets/{pieDiagram-NIOCPIFQ-C-2hdQUk.js → pieDiagram-NIOCPIFQ-DLjq0P3e.js} +3 -3
- package/dist/assets/{quadrantDiagram-2OG54O6I-CL2YGs4R.js → quadrantDiagram-2OG54O6I-9Oz1n3p6.js} +1 -1
- package/dist/assets/{react-plotly-BsLWiFjm.js → react-plotly-CpyIgXbT.js} +1 -1
- package/dist/assets/{requirementDiagram-QOLK2EJ7-DQ4L9v8q.js → requirementDiagram-QOLK2EJ7-efmOhh-Y.js} +1 -1
- package/dist/assets/{run-page-Bx99bWZ3.js → run-page-CigF14nw.js} +1 -1
- package/dist/assets/{sankeyDiagram-4UZDY2LN-BCeK9LuM.js → sankeyDiagram-4UZDY2LN-C8d1HP5D.js} +1 -1
- package/dist/assets/{sequenceDiagram-SKLFT4DO-2hUcwiWi.js → sequenceDiagram-SKLFT4DO-YYvQS_Ez.js} +1 -1
- package/dist/assets/{slides-component-C4hf0v_2.js → slides-component-DaIiszro.js} +1 -1
- package/dist/assets/sortBy-DPhCeare.js +1 -0
- package/dist/assets/{stateDiagram-MI5ZYTHO-B-C8-fsa.js → stateDiagram-MI5ZYTHO-BUsXwOkv.js} +1 -1
- package/dist/assets/stateDiagram-v2-5AN5P6BG-C0_3uVRU.js +1 -0
- package/dist/assets/storage-DVfCYCuA.js +26 -0
- package/dist/assets/{terminal-BHiJua_p.js → terminal-WkSrTXmZ.js} +1 -1
- package/dist/assets/time-CMDJBHm4.js +1 -0
- package/dist/assets/{timeline-definition-MYPXXCX6-BwdXyFVw.js → timeline-definition-MYPXXCX6-D6F16eAY.js} +1 -1
- package/dist/assets/{tracing-erwDcbAl.js → tracing-Bs9fWQQg.js} +2 -2
- package/dist/assets/{trash-DEAtdWrd.js → trash-BotaB4h_.js} +1 -1
- package/dist/assets/{treemap-75Q7IDZK-BoFrERFR.js → treemap-75Q7IDZK-ReN7RgbK.js} +1 -1
- package/dist/assets/{vega-component-XnrlJ16r.js → vega-component-LxHHxxVY.js} +1 -1
- package/dist/assets/{xychartDiagram-H2YORKM3-BRGXUZ-C.js → xychartDiagram-H2YORKM3-BBA6XWcv.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +12 -6
- package/src/README.md +18 -0
- package/src/__mocks__/common.ts +160 -0
- package/src/__mocks__/notebook.ts +76 -0
- package/src/__mocks__/requests.ts +72 -0
- package/src/__mocks__/tracebacks.ts +32 -0
- package/src/__tests__/CellStatus.test.tsx +263 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +523 -0
- package/src/__tests__/chat-utils.test.ts +234 -0
- package/src/__tests__/lru.test.ts +74 -0
- package/src/__tests__/main.test.tsx +174 -0
- package/src/__tests__/setup.ts +17 -0
- package/src/__tests__/test-helpers.ts +24 -0
- package/src/assets/circle-check.ico +0 -0
- package/src/assets/circle-play.ico +0 -0
- package/src/assets/circle-x.ico +0 -0
- package/src/assets/gradient.png +0 -0
- package/src/assets/icon-16x16.png +0 -0
- package/src/assets/icon-32x32.png +0 -0
- package/src/assets/noise.png +0 -0
- package/src/components/ai/ai-model-dropdown.tsx +280 -0
- package/src/components/ai/ai-provider-icon.tsx +52 -0
- package/src/components/app-config/ai-config.tsx +855 -0
- package/src/components/app-config/app-config-button.tsx +100 -0
- package/src/components/app-config/app-config-form.tsx +307 -0
- package/src/components/app-config/common.tsx +48 -0
- package/src/components/app-config/constants.ts +13 -0
- package/src/components/app-config/incorrect-model-id.tsx +43 -0
- package/src/components/app-config/is-overridden.tsx +119 -0
- package/src/components/app-config/optional-features.tsx +251 -0
- package/src/components/app-config/state.ts +18 -0
- package/src/components/app-config/user-config-form.tsx +1361 -0
- package/src/components/audio/audio-recorder.tsx +63 -0
- package/src/components/buttons/clear-button.tsx +23 -0
- package/src/components/buttons/undo-button.tsx +35 -0
- package/src/components/chat/chat-panel.tsx +758 -0
- package/src/components/chat/markdown-renderer.tsx +217 -0
- package/src/components/chat/reasoning-accordion.tsx +50 -0
- package/src/components/chat/tool-call-accordion.tsx +118 -0
- package/src/components/data-table/SearchBar.tsx +66 -0
- package/src/components/data-table/TableActions.tsx +183 -0
- package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +1079 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +707 -0
- package/src/components/data-table/__tests__/column_formatting.test.ts +115 -0
- package/src/components/data-table/__tests__/columns.test.tsx +341 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +60 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +152 -0
- package/src/components/data-table/__tests__/types.test.ts +44 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +169 -0
- package/src/components/data-table/__tests__/useColumnPinning.test.ts +76 -0
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +187 -0
- package/src/components/data-table/cell-selection/feature.ts +123 -0
- package/src/components/data-table/cell-selection/types.ts +49 -0
- package/src/components/data-table/cell-styling/feature.ts +40 -0
- package/src/components/data-table/cell-styling/types.ts +26 -0
- package/src/components/data-table/charts/README.md +65 -0
- package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +47 -0
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +425 -0
- package/src/components/data-table/charts/__tests__/renderer.test.ts +20 -0
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +83 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +997 -0
- package/src/components/data-table/charts/__tests__/storage.test.ts +103 -0
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +162 -0
- package/src/components/data-table/charts/chart-spec/encodings.ts +173 -0
- package/src/components/data-table/charts/chart-spec/spec.ts +345 -0
- package/src/components/data-table/charts/chart-spec/tooltips.ts +168 -0
- package/src/components/data-table/charts/chart-spec/types.ts +77 -0
- package/src/components/data-table/charts/charts.tsx +492 -0
- package/src/components/data-table/charts/components/chart-items.tsx +369 -0
- package/src/components/data-table/charts/components/chart-states.tsx +37 -0
- package/src/components/data-table/charts/components/form-fields.tsx +872 -0
- package/src/components/data-table/charts/components/layouts.tsx +118 -0
- package/src/components/data-table/charts/constants.ts +159 -0
- package/src/components/data-table/charts/context.ts +20 -0
- package/src/components/data-table/charts/forms/common-chart.tsx +202 -0
- package/src/components/data-table/charts/forms/heatmap.tsx +44 -0
- package/src/components/data-table/charts/forms/pie.tsx +70 -0
- package/src/components/data-table/charts/lazy-chart.tsx +56 -0
- package/src/components/data-table/charts/schemas.ts +140 -0
- package/src/components/data-table/charts/storage.ts +88 -0
- package/src/components/data-table/charts/types.ts +124 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +227 -0
- package/src/components/data-table/column-formatting/feature.ts +247 -0
- package/src/components/data-table/column-formatting/types.ts +54 -0
- package/src/components/data-table/column-header.tsx +672 -0
- package/src/components/data-table/column-summary/chart-skeleton.tsx +57 -0
- package/src/components/data-table/column-summary/chart-spec-model.tsx +916 -0
- package/src/components/data-table/column-summary/column-summary.tsx +166 -0
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +242 -0
- package/src/components/data-table/column-summary/utils.ts +142 -0
- package/src/components/data-table/column-wrapping/feature.ts +62 -0
- package/src/components/data-table/column-wrapping/types.ts +29 -0
- package/src/components/data-table/columns.tsx +528 -0
- package/src/components/data-table/copy-column/feature.ts +27 -0
- package/src/components/data-table/copy-column/types.ts +19 -0
- package/src/components/data-table/data-table.tsx +298 -0
- package/src/components/data-table/date-popover.tsx +146 -0
- package/src/components/data-table/download-actions.tsx +186 -0
- package/src/components/data-table/filter-pills.tsx +120 -0
- package/src/components/data-table/filters.ts +202 -0
- package/src/components/data-table/focus-row/feature.ts +41 -0
- package/src/components/data-table/focus-row/types.ts +32 -0
- package/src/components/data-table/header-items.tsx +295 -0
- package/src/components/data-table/hooks/use-column-pinning.ts +51 -0
- package/src/components/data-table/hooks/use-panel-ownership.ts +98 -0
- package/src/components/data-table/loading-table.tsx +56 -0
- package/src/components/data-table/mime-cell.tsx +68 -0
- package/src/components/data-table/pagination.tsx +329 -0
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +907 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +316 -0
- package/src/components/data-table/range-focus/atoms.ts +380 -0
- package/src/components/data-table/range-focus/cell-selection-indicator.tsx +37 -0
- package/src/components/data-table/range-focus/provider.tsx +13 -0
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +119 -0
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +46 -0
- package/src/components/data-table/range-focus/utils.ts +105 -0
- package/src/components/data-table/renderers.tsx +247 -0
- package/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.ts +82 -0
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +58 -0
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +371 -0
- package/src/components/data-table/types.ts +81 -0
- package/src/components/data-table/uniformSample.tsx +19 -0
- package/src/components/data-table/url-detector.tsx +111 -0
- package/src/components/data-table/utils.ts +46 -0
- package/src/components/databases/display.tsx +66 -0
- package/src/components/databases/engine-variable.tsx +51 -0
- package/src/components/databases/icon.tsx +91 -0
- package/src/components/databases/icons/clickhouse.svg +1 -0
- package/src/components/databases/icons/databricks.svg +1 -0
- package/src/components/databases/icons/datafusion.png +0 -0
- package/src/components/databases/icons/duckdb.svg +1 -0
- package/src/components/databases/icons/googlebigquery.svg +1 -0
- package/src/components/databases/icons/iceberg.png +0 -0
- package/src/components/databases/icons/motherduck.svg +9 -0
- package/src/components/databases/icons/mysql.svg +1 -0
- package/src/components/databases/icons/postgresql.svg +1 -0
- package/src/components/databases/icons/redshift.svg +1 -0
- package/src/components/databases/icons/snowflake.svg +1 -0
- package/src/components/databases/icons/spark.svg +1 -0
- package/src/components/databases/icons/sqlalchemy.svg +1 -0
- package/src/components/databases/icons/sqlite.svg +1 -0
- package/src/components/databases/icons/timeplus.svg +17 -0
- package/src/components/databases/icons/trino.svg +1 -0
- package/src/components/datasets/icons.tsx +55 -0
- package/src/components/datasources/__tests__/install-package-button.test.tsx +85 -0
- package/src/components/datasources/__tests__/utils.test.ts +171 -0
- package/src/components/datasources/column-preview.tsx +269 -0
- package/src/components/datasources/components.tsx +100 -0
- package/src/components/datasources/datasources.tsx +782 -0
- package/src/components/datasources/install-package-button.tsx +46 -0
- package/src/components/datasources/utils.ts +62 -0
- package/src/components/debug/indicator.tsx +19 -0
- package/src/components/debugger/debugger-code.css +3 -0
- package/src/components/debugger/debugger-code.tsx +222 -0
- package/src/components/dependency-graph/custom-node.tsx +89 -0
- package/src/components/dependency-graph/dependency-graph-minimap.tsx +197 -0
- package/src/components/dependency-graph/dependency-graph-tree.tsx +181 -0
- package/src/components/dependency-graph/dependency-graph.css +17 -0
- package/src/components/dependency-graph/dependency-graph.tsx +66 -0
- package/src/components/dependency-graph/elements.ts +185 -0
- package/src/components/dependency-graph/panels.tsx +279 -0
- package/src/components/dependency-graph/types.ts +21 -0
- package/src/components/dependency-graph/utils/changes.ts +54 -0
- package/src/components/dependency-graph/utils/layout.ts +45 -0
- package/src/components/dependency-graph/utils/useFitToViewOnDimensionChange.ts +25 -0
- package/src/components/editor/Cell.tsx +1175 -0
- package/src/components/editor/Disconnected.tsx +72 -0
- package/src/components/editor/Output.tsx +462 -0
- package/src/components/editor/RecoveryButton.tsx +161 -0
- package/src/components/editor/SortableCell.tsx +161 -0
- package/src/components/editor/__tests__/data-attributes.test.tsx +173 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +183 -0
- package/src/components/editor/actions/name-cell-input.tsx +137 -0
- package/src/components/editor/actions/types.ts +53 -0
- package/src/components/editor/actions/useCellActionButton.tsx +422 -0
- package/src/components/editor/actions/useConfigActions.tsx +182 -0
- package/src/components/editor/actions/useCopyNotebook.tsx +41 -0
- package/src/components/editor/actions/useHideAllMarkdownCode.ts +53 -0
- package/src/components/editor/actions/useNotebookActions.tsx +556 -0
- package/src/components/editor/actions/useRestartKernel.tsx +36 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +379 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +369 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +249 -0
- package/src/components/editor/ai/completion-utils.ts +95 -0
- package/src/components/editor/ai/merge-editor.css +9 -0
- package/src/components/editor/alerts/connecting-alert.tsx +46 -0
- package/src/components/editor/alerts/floating-alert.tsx +47 -0
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +61 -0
- package/src/components/editor/app-container.tsx +53 -0
- package/src/components/editor/boundary/ErrorBoundary.tsx +41 -0
- package/src/components/editor/cell/CellStatus.tsx +371 -0
- package/src/components/editor/cell/CreateCellButton.tsx +132 -0
- package/src/components/editor/cell/DeleteButton.tsx +58 -0
- package/src/components/editor/cell/PendingDeleteConfirmation.tsx +126 -0
- package/src/components/editor/cell/RunButton.tsx +109 -0
- package/src/components/editor/cell/StopButton.tsx +36 -0
- package/src/components/editor/cell/TinyCode.css +10 -0
- package/src/components/editor/cell/TinyCode.tsx +53 -0
- package/src/components/editor/cell/cell-actions.tsx +185 -0
- package/src/components/editor/cell/cell-context-menu.tsx +243 -0
- package/src/components/editor/cell/cell-status.css +21 -0
- package/src/components/editor/cell/code/cell-editor.tsx +546 -0
- package/src/components/editor/cell/code/icons.tsx +31 -0
- package/src/components/editor/cell/code/language-toggle.tsx +140 -0
- package/src/components/editor/cell/collapse.tsx +100 -0
- package/src/components/editor/cell/toolbar.tsx +89 -0
- package/src/components/editor/cell/useAddCell.ts +29 -0
- package/src/components/editor/cell/useDeleteCell.tsx +89 -0
- package/src/components/editor/cell/useRunCells.ts +86 -0
- package/src/components/editor/cell/useShouldShowInterrupt.ts +26 -0
- package/src/components/editor/cell/useSplitCell.tsx +41 -0
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +138 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +105 -0
- package/src/components/editor/chrome/panels/__tests__/write-secret-modal.test.ts +43 -0
- package/src/components/editor/chrome/panels/constants.ts +2 -0
- package/src/components/editor/chrome/panels/context-aware-panel/atoms.ts +28 -0
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +167 -0
- package/src/components/editor/chrome/panels/datasources-panel.tsx +6 -0
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +23 -0
- package/src/components/editor/chrome/panels/documentation-panel.tsx +29 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +28 -0
- package/src/components/editor/chrome/panels/error-panel.tsx +35 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +33 -0
- package/src/components/editor/chrome/panels/logs-panel.tsx +97 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +129 -0
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +172 -0
- package/src/components/editor/chrome/panels/outline-panel.css +6 -0
- package/src/components/editor/chrome/panels/outline-panel.tsx +39 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +635 -0
- package/src/components/editor/chrome/panels/packages-state.ts +5 -0
- package/src/components/editor/chrome/panels/scratchpad-panel.tsx +8 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +155 -0
- package/src/components/editor/chrome/panels/snippets-panel.css +11 -0
- package/src/components/editor/chrome/panels/snippets-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/tracing-panel.tsx +28 -0
- package/src/components/editor/chrome/panels/variable-panel.tsx +31 -0
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +190 -0
- package/src/components/editor/chrome/state.ts +102 -0
- package/src/components/editor/chrome/types.ts +133 -0
- package/src/components/editor/chrome/wrapper/__tests__/minimap-state.test.ts +209 -0
- package/src/components/editor/chrome/wrapper/__tests__/storage.test.ts +41 -0
- package/src/components/editor/chrome/wrapper/app-chrome.css +22 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +256 -0
- package/src/components/editor/chrome/wrapper/footer-item.tsx +43 -0
- package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +47 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +111 -0
- package/src/components/editor/chrome/wrapper/footer-items/copilot-status.tsx +125 -0
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +185 -0
- package/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx +21 -0
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +65 -0
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +370 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +90 -0
- package/src/components/editor/chrome/wrapper/minimap-state.ts +164 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +443 -0
- package/src/components/editor/chrome/wrapper/panels.tsx +10 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +100 -0
- package/src/components/editor/chrome/wrapper/storage.ts +56 -0
- package/src/components/editor/chrome/wrapper/utils.ts +8 -0
- package/src/components/editor/code/readonly-python-code.tsx +160 -0
- package/src/components/editor/columns/__tests__/storage.test.ts +104 -0
- package/src/components/editor/columns/cell-column.tsx +105 -0
- package/src/components/editor/columns/sortable-column.tsx +175 -0
- package/src/components/editor/columns/storage.ts +56 -0
- package/src/components/editor/common.ts +20 -0
- package/src/components/editor/controls/Controls.tsx +225 -0
- package/src/components/editor/controls/command-palette-button.tsx +27 -0
- package/src/components/editor/controls/command-palette.tsx +210 -0
- package/src/components/editor/controls/keyboard-shortcuts.tsx +309 -0
- package/src/components/editor/controls/notebook-menu-dropdown.tsx +157 -0
- package/src/components/editor/controls/shutdown-button.tsx +70 -0
- package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +659 -0
- package/src/components/editor/database/__tests__/as-code.test.ts +598 -0
- package/src/components/editor/database/__tests__/secrets.test.ts +38 -0
- package/src/components/editor/database/add-database-form.tsx +395 -0
- package/src/components/editor/database/as-code.ts +786 -0
- package/src/components/editor/database/form-renderers.tsx +211 -0
- package/src/components/editor/database/schemas.ts +485 -0
- package/src/components/editor/database/secrets.ts +25 -0
- package/src/components/editor/documentation.css +139 -0
- package/src/components/editor/dynamic-favicon.tsx +126 -0
- package/src/components/editor/errors/auto-fix.tsx +61 -0
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +321 -0
- package/src/components/editor/file-tree/file-explorer.tsx +679 -0
- package/src/components/editor/file-tree/file-viewer.tsx +283 -0
- package/src/components/editor/file-tree/renderers.tsx +83 -0
- package/src/components/editor/file-tree/requesting-tree.tsx +228 -0
- package/src/components/editor/file-tree/state.tsx +26 -0
- package/src/components/editor/file-tree/types.ts +118 -0
- package/src/components/editor/file-tree/upload.tsx +101 -0
- package/src/components/editor/header/app-header.tsx +28 -0
- package/src/components/editor/header/filename-form.tsx +27 -0
- package/src/components/editor/header/filename-input.css +21 -0
- package/src/components/editor/header/filename-input.tsx +244 -0
- package/src/components/editor/header/status.tsx +72 -0
- package/src/components/editor/inputs/Inputs.css +118 -0
- package/src/components/editor/inputs/Inputs.styles.ts +66 -0
- package/src/components/editor/inputs/Inputs.tsx +34 -0
- package/src/components/editor/kiosk-mode.tsx +25 -0
- package/src/components/editor/links/cell-link-list.tsx +74 -0
- package/src/components/editor/links/cell-link.tsx +128 -0
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +466 -0
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1743 -0
- package/src/components/editor/navigation/__tests__/selection.test.ts +194 -0
- package/src/components/editor/navigation/clipboard.ts +205 -0
- package/src/components/editor/navigation/focus-utils.ts +48 -0
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +499 -0
- package/src/components/editor/navigation/navigation.ts +699 -0
- package/src/components/editor/navigation/selection.ts +114 -0
- package/src/components/editor/navigation/state.ts +5 -0
- package/src/components/editor/navigation/vim-bindings.test.ts +109 -0
- package/src/components/editor/navigation/vim-bindings.ts +90 -0
- package/src/components/editor/notebook-banner.tsx +75 -0
- package/src/components/editor/output/CalloutOutput.styles.ts +22 -0
- package/src/components/editor/output/CalloutOutput.tsx +19 -0
- package/src/components/editor/output/ConsoleOutput.tsx +276 -0
- package/src/components/editor/output/EmotionCacheProvider.tsx +32 -0
- package/src/components/editor/output/HtmlOutput.tsx +25 -0
- package/src/components/editor/output/ImageOutput.tsx +25 -0
- package/src/components/editor/output/JsonOutput.tsx +424 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +511 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +233 -0
- package/src/components/editor/output/Outputs.css +102 -0
- package/src/components/editor/output/TextOutput.tsx +42 -0
- package/src/components/editor/output/VideoOutput.tsx +11 -0
- package/src/components/editor/output/__tests__/ansi.test.ts +39 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +269 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +105 -0
- package/src/components/editor/output/useWrapText.ts +14 -0
- package/src/components/editor/package-alert.tsx +596 -0
- package/src/components/editor/renderMimeIcon.tsx +38 -0
- package/src/components/editor/renderers/CellArray.tsx +352 -0
- package/src/components/editor/renderers/cells-renderer.tsx +96 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +650 -0
- package/src/components/editor/renderers/grid-layout/plugin.tsx +146 -0
- package/src/components/editor/renderers/grid-layout/styles.css +31 -0
- package/src/components/editor/renderers/grid-layout/types.ts +89 -0
- package/src/components/editor/renderers/layout-select.tsx +86 -0
- package/src/components/editor/renderers/plugins.ts +31 -0
- package/src/components/editor/renderers/slides-layout/plugin.tsx +31 -0
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +74 -0
- package/src/components/editor/renderers/slides-layout/types.ts +12 -0
- package/src/components/editor/renderers/types.ts +75 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/useDelayVisibility.test.ts +87 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +123 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +173 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/__tests__/sidebar.test.tsx +56 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sheet-sidebar.tsx +32 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar-slot.tsx +10 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css +20 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.tsx +30 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/state.ts +46 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +25 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/wrapped-with-sidebar.tsx +38 -0
- package/src/components/editor/renderers/vertical-layout/useDelayVisibility.ts +32 -0
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +107 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +46 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +451 -0
- package/src/components/editor/stdin-blocking-alert.tsx +83 -0
- package/src/components/export/export-output-button.tsx +14 -0
- package/src/components/find-replace/find-replace.tsx +293 -0
- package/src/components/forms/__tests__/form-utils.test.ts +104 -0
- package/src/components/forms/form-utils.ts +90 -0
- package/src/components/forms/form.tsx +817 -0
- package/src/components/forms/options.ts +59 -0
- package/src/components/forms/switchable-multi-select.tsx +134 -0
- package/src/components/home/components.tsx +189 -0
- package/src/components/home/state.ts +30 -0
- package/src/components/icons/copy-icon.tsx +59 -0
- package/src/components/icons/github-copilot.tsx +17 -0
- package/src/components/icons/large-spinner.tsx +39 -0
- package/src/components/icons/loading-ellipsis.tsx +46 -0
- package/src/components/icons/multi-icon.css +9 -0
- package/src/components/icons/multi-icon.tsx +30 -0
- package/src/components/icons/spinner.tsx +38 -0
- package/src/components/layout/toolbar.tsx +26 -0
- package/src/components/modal/ImperativeModal.tsx +187 -0
- package/src/components/pages/edit-page.tsx +37 -0
- package/src/components/pages/home-page.tsx +514 -0
- package/src/components/pages/run-page.tsx +55 -0
- package/src/components/scratchpad/scratchpad-history.ts +28 -0
- package/src/components/scratchpad/scratchpad.tsx +280 -0
- package/src/components/shortcuts/renderShortcut.tsx +208 -0
- package/src/components/slides/slides-component.tsx +132 -0
- package/src/components/slides/slides.css +100 -0
- package/src/components/sort/SortableCellsProvider.tsx +242 -0
- package/src/components/static-html/share-modal.tsx +181 -0
- package/src/components/static-html/static-banner.tsx +164 -0
- package/src/components/terminal/terminal.tsx +110 -0
- package/src/components/terminal/xterm.css +3 -0
- package/src/components/tracing/tracing-spec.ts +118 -0
- package/src/components/tracing/tracing.test.tsx +66 -0
- package/src/components/tracing/tracing.tsx +410 -0
- package/src/components/ui/accordion.tsx +70 -0
- package/src/components/ui/alert-dialog.tsx +176 -0
- package/src/components/ui/alert.tsx +64 -0
- package/src/components/ui/aria-popover.tsx +43 -0
- package/src/components/ui/badge.tsx +41 -0
- package/src/components/ui/button.tsx +156 -0
- package/src/components/ui/calendar.tsx +231 -0
- package/src/components/ui/card.tsx +83 -0
- package/src/components/ui/checkbox.tsx +33 -0
- package/src/components/ui/combobox.tsx +278 -0
- package/src/components/ui/command.tsx +165 -0
- package/src/components/ui/context-menu.tsx +193 -0
- package/src/components/ui/date-input.tsx +127 -0
- package/src/components/ui/date-picker.tsx +188 -0
- package/src/components/ui/dialog.tsx +155 -0
- package/src/components/ui/draggable-popover.tsx +68 -0
- package/src/components/ui/dropdown-menu.tsx +189 -0
- package/src/components/ui/field.tsx +90 -0
- package/src/components/ui/form.tsx +224 -0
- package/src/components/ui/fullscreen.tsx +38 -0
- package/src/components/ui/input.tsx +208 -0
- package/src/components/ui/kbd.tsx +22 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/links.tsx +23 -0
- package/src/components/ui/menu-items.tsx +101 -0
- package/src/components/ui/native-select.tsx +39 -0
- package/src/components/ui/navigation.tsx +154 -0
- package/src/components/ui/number-field.tsx +99 -0
- package/src/components/ui/popover.tsx +63 -0
- package/src/components/ui/progress.tsx +28 -0
- package/src/components/ui/radio-group.tsx +44 -0
- package/src/components/ui/range-slider.tsx +102 -0
- package/src/components/ui/scroll-area.tsx +47 -0
- package/src/components/ui/select.tsx +167 -0
- package/src/components/ui/sheet.tsx +143 -0
- package/src/components/ui/skeleton.tsx +16 -0
- package/src/components/ui/slider.tsx +80 -0
- package/src/components/ui/switch.tsx +54 -0
- package/src/components/ui/table.tsx +122 -0
- package/src/components/ui/tabs.tsx +55 -0
- package/src/components/ui/textarea.tsx +104 -0
- package/src/components/ui/toast.tsx +133 -0
- package/src/components/ui/toaster.tsx +30 -0
- package/src/components/ui/toggle.tsx +49 -0
- package/src/components/ui/tooltip.tsx +87 -0
- package/src/components/ui/typography.tsx +207 -0
- package/src/components/ui/use-restore-focus.ts +28 -0
- package/src/components/ui/use-toast.ts +224 -0
- package/src/components/utils/delay-mount.tsx +81 -0
- package/src/components/utils/lazy-mount.tsx +24 -0
- package/src/components/variables/common.tsx +37 -0
- package/src/components/variables/variables-table.tsx +335 -0
- package/src/core/MarimoApp.tsx +103 -0
- package/src/core/ai/__tests__/model-registry.test.ts +357 -0
- package/src/core/ai/chat-utils.ts +71 -0
- package/src/core/ai/context/__tests__/registry.test.ts +516 -0
- package/src/core/ai/context/context.ts +16 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/tables.test.ts.snap +291 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/variable.test.ts.snap +378 -0
- package/src/core/ai/context/providers/__tests__/tables.test.ts +271 -0
- package/src/core/ai/context/providers/__tests__/variable.test.ts +312 -0
- package/src/core/ai/context/providers/common.ts +7 -0
- package/src/core/ai/context/providers/tables.ts +208 -0
- package/src/core/ai/context/providers/variable.ts +72 -0
- package/src/core/ai/context/registry.ts +180 -0
- package/src/core/ai/ids/__tests__/ids.test.ts +193 -0
- package/src/core/ai/ids/ids.ts +70 -0
- package/src/core/ai/model-registry.ts +164 -0
- package/src/core/ai/state.ts +58 -0
- package/src/core/alerts/state.ts +75 -0
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +1312 -0
- package/src/core/cells/__tests__/add-missing-import.test.ts +78 -0
- package/src/core/cells/__tests__/cell.test.ts +193 -0
- package/src/core/cells/__tests__/cells.test.ts +2664 -0
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +239 -0
- package/src/core/cells/__tests__/focus.test.ts +271 -0
- package/src/core/cells/__tests__/ids.test.ts +90 -0
- package/src/core/cells/__tests__/names.test.ts +62 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +202 -0
- package/src/core/cells/__tests__/runs.test.ts +453 -0
- package/src/core/cells/__tests__/session.test.ts +757 -0
- package/src/core/cells/__tests__/utils.test.ts +428 -0
- package/src/core/cells/actions.ts +21 -0
- package/src/core/cells/add-missing-import.ts +114 -0
- package/src/core/cells/cell.ts +243 -0
- package/src/core/cells/cells.ts +1751 -0
- package/src/core/cells/collapseConsoleOutputs.tsx +133 -0
- package/src/core/cells/effects.ts +42 -0
- package/src/core/cells/focus.ts +128 -0
- package/src/core/cells/ids.ts +124 -0
- package/src/core/cells/logs.ts +114 -0
- package/src/core/cells/names.ts +107 -0
- package/src/core/cells/outline.ts +30 -0
- package/src/core/cells/outputs.ts +34 -0
- package/src/core/cells/pending-delete-service.ts +183 -0
- package/src/core/cells/runs.ts +196 -0
- package/src/core/cells/scrollCellIntoView.ts +133 -0
- package/src/core/cells/session.ts +281 -0
- package/src/core/cells/types.ts +128 -0
- package/src/core/cells/utils.ts +141 -0
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +229 -0
- package/src/core/codemirror/__tests__/extensions.test.ts +117 -0
- package/src/core/codemirror/__tests__/format.test.ts +227 -0
- package/src/core/codemirror/__tests__/setup.test.ts +178 -0
- package/src/core/codemirror/ai/request.ts +72 -0
- package/src/core/codemirror/ai/resources.ts +90 -0
- package/src/core/codemirror/cells/extensions.ts +387 -0
- package/src/core/codemirror/cells/state.ts +32 -0
- package/src/core/codemirror/cells/traceback-decorations.ts +111 -0
- package/src/core/codemirror/cm.ts +267 -0
- package/src/core/codemirror/compat/__tests__/jupyter.test.ts +136 -0
- package/src/core/codemirror/compat/jupyter.tsx +244 -0
- package/src/core/codemirror/completion/Autocompleter.ts +172 -0
- package/src/core/codemirror/completion/__tests__/hints.test.ts +84 -0
- package/src/core/codemirror/completion/__tests__/keymap.test.ts +44 -0
- package/src/core/codemirror/completion/completer.ts +58 -0
- package/src/core/codemirror/completion/hints.ts +143 -0
- package/src/core/codemirror/completion/keymap.ts +85 -0
- package/src/core/codemirror/completion/utils.ts +18 -0
- package/src/core/codemirror/completion/variable-completions.ts +100 -0
- package/src/core/codemirror/config/extension.ts +63 -0
- package/src/core/codemirror/config/types.ts +10 -0
- package/src/core/codemirror/copilot/__tests__/copilot.test.ts +260 -0
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +209 -0
- package/src/core/codemirror/copilot/__tests__/trim-utils.test.ts +291 -0
- package/src/core/codemirror/copilot/client.ts +123 -0
- package/src/core/codemirror/copilot/copilot-config.tsx +285 -0
- package/src/core/codemirror/copilot/extension.ts +285 -0
- package/src/core/codemirror/copilot/getCodes.ts +130 -0
- package/src/core/codemirror/copilot/language-server.ts +255 -0
- package/src/core/codemirror/copilot/state.ts +66 -0
- package/src/core/codemirror/copilot/trim-utils.ts +33 -0
- package/src/core/codemirror/copilot/types.ts +41 -0
- package/src/core/codemirror/editing/__tests__/commands.test.ts +106 -0
- package/src/core/codemirror/editing/__tests__/debugging.test.ts +193 -0
- package/src/core/codemirror/editing/commands.ts +25 -0
- package/src/core/codemirror/editing/debugging.ts +58 -0
- package/src/core/codemirror/editing/extensions.ts +4 -0
- package/src/core/codemirror/extensions.ts +95 -0
- package/src/core/codemirror/facet.ts +19 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +695 -0
- package/src/core/codemirror/find-replace/extension.ts +41 -0
- package/src/core/codemirror/find-replace/navigate.ts +221 -0
- package/src/core/codemirror/find-replace/query.ts +31 -0
- package/src/core/codemirror/find-replace/search-highlight.ts +148 -0
- package/src/core/codemirror/find-replace/state.ts +167 -0
- package/src/core/codemirror/format.ts +120 -0
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +205 -0
- package/src/core/codemirror/go-to-definition/commands.ts +80 -0
- package/src/core/codemirror/go-to-definition/extension.ts +23 -0
- package/src/core/codemirror/go-to-definition/underline.ts +223 -0
- package/src/core/codemirror/go-to-definition/utils.ts +126 -0
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +43 -0
- package/src/core/codemirror/keymaps/__tests__/vimrc.test.ts +121 -0
- package/src/core/codemirror/keymaps/keymaps.ts +179 -0
- package/src/core/codemirror/keymaps/vim.ts +348 -0
- package/src/core/codemirror/keymaps/vimrc.ts +149 -0
- package/src/core/codemirror/language/LanguageAdapters.ts +23 -0
- package/src/core/codemirror/language/__tests__/ast.test.ts +124 -0
- package/src/core/codemirror/language/__tests__/extension.test.ts +260 -0
- package/src/core/codemirror/language/__tests__/indentOneTab.test.ts +31 -0
- package/src/core/codemirror/language/__tests__/markdown.test.ts +495 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +1640 -0
- package/src/core/codemirror/language/__tests__/utils.test.ts +166 -0
- package/src/core/codemirror/language/commands.ts +59 -0
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +163 -0
- package/src/core/codemirror/language/embedded/embedded-python.ts +131 -0
- package/src/core/codemirror/language/embedded/latex.ts +257 -0
- package/src/core/codemirror/language/extension.ts +322 -0
- package/src/core/codemirror/language/languages/markdown.ts +261 -0
- package/src/core/codemirror/language/languages/python.ts +329 -0
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +99 -0
- package/src/core/codemirror/language/languages/sql/completion-store.ts +191 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +545 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +42 -0
- package/src/core/codemirror/language/metadata.ts +71 -0
- package/src/core/codemirror/language/panel/markdown.tsx +63 -0
- package/src/core/codemirror/language/panel/panel.tsx +197 -0
- package/src/core/codemirror/language/panel/sql.tsx +132 -0
- package/src/core/codemirror/language/types.ts +41 -0
- package/src/core/codemirror/language/utils/ast.ts +84 -0
- package/src/core/codemirror/language/utils/indentOneTab.ts +9 -0
- package/src/core/codemirror/language/utils/quotes.ts +18 -0
- package/src/core/codemirror/language/utils.ts +78 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +860 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +235 -0
- package/src/core/codemirror/lsp/lens.ts +130 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +604 -0
- package/src/core/codemirror/lsp/transports.ts +31 -0
- package/src/core/codemirror/lsp/types.ts +55 -0
- package/src/core/codemirror/lsp/utils.ts +11 -0
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +522 -0
- package/src/core/codemirror/markdown/commands.ts +478 -0
- package/src/core/codemirror/markdown/completions.ts +273 -0
- package/src/core/codemirror/markdown/extension.ts +106 -0
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +111 -0
- package/src/core/codemirror/misc/__tests__/paste.test.ts +239 -0
- package/src/core/codemirror/misc/dnd.ts +48 -0
- package/src/core/codemirror/misc/paste.ts +181 -0
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +132 -0
- package/src/core/codemirror/placeholder/extensions.ts +99 -0
- package/src/core/codemirror/react-dom/createPanel.tsx +39 -0
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +1222 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +608 -0
- package/src/core/codemirror/reactive-references/extension.ts +154 -0
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +55 -0
- package/src/core/codemirror/readonly/extension.ts +187 -0
- package/src/core/codemirror/rtc/extension.ts +450 -0
- package/src/core/codemirror/rtc/loro/awareness.ts +496 -0
- package/src/core/codemirror/rtc/loro/colors.ts +38 -0
- package/src/core/codemirror/rtc/loro/sync.ts +159 -0
- package/src/core/codemirror/theme/__tests__/light.test.ts +136 -0
- package/src/core/codemirror/theme/dark.ts +50 -0
- package/src/core/codemirror/theme/light.ts +58 -0
- package/src/core/codemirror/types.ts +5 -0
- package/src/core/codemirror/utils.ts +103 -0
- package/src/core/codemirror/vim/cursor-visibility.ts +58 -0
- package/src/core/config/__tests__/config-schema.test.ts +232 -0
- package/src/core/config/capabilities.ts +15 -0
- package/src/core/config/config-schema.ts +290 -0
- package/src/core/config/config.ts +109 -0
- package/src/core/config/feature-flag.tsx +62 -0
- package/src/core/config/if-capability.tsx +19 -0
- package/src/core/config/widths.ts +5 -0
- package/src/core/constants.ts +52 -0
- package/src/core/datasets/__tests__/all-tables.test.ts +466 -0
- package/src/core/datasets/__tests__/data-source.test.ts +461 -0
- package/src/core/datasets/data-source-connections.ts +334 -0
- package/src/core/datasets/engines.ts +10 -0
- package/src/core/datasets/request-registry.ts +34 -0
- package/src/core/datasets/state.ts +143 -0
- package/src/core/datasets/types.ts +38 -0
- package/src/core/debugger/state.ts +10 -0
- package/src/core/documentation/state.ts +13 -0
- package/src/core/dom/__tests__/htmlUtils.test.ts +22 -0
- package/src/core/dom/__tests__/outline.test.ts +370 -0
- package/src/core/dom/defineCustomElement.ts +23 -0
- package/src/core/dom/events.ts +94 -0
- package/src/core/dom/htmlUtils.ts +75 -0
- package/src/core/dom/outline.ts +123 -0
- package/src/core/dom/ui-element.css +8 -0
- package/src/core/dom/ui-element.ts +249 -0
- package/src/core/dom/uiregistry.ts +209 -0
- package/src/core/edit-app.tsx +189 -0
- package/src/core/errors/__tests__/errors.test.ts +62 -0
- package/src/core/errors/__tests__/utils.test.ts +108 -0
- package/src/core/errors/errors.ts +96 -0
- package/src/core/errors/state.ts +44 -0
- package/src/core/errors/utils.ts +67 -0
- package/src/core/export/hooks.ts +60 -0
- package/src/core/functions/FunctionRegistry.ts +18 -0
- package/src/core/hotkeys/__tests__/shortcuts.test.ts +166 -0
- package/src/core/hotkeys/actions.ts +38 -0
- package/src/core/hotkeys/hotkeys.ts +503 -0
- package/src/core/hotkeys/shortcuts.ts +117 -0
- package/src/core/islands/__tests__/parse.test.ts +89 -0
- package/src/core/islands/bridge.ts +196 -0
- package/src/core/islands/components/output-wrapper.tsx +154 -0
- package/src/core/islands/components/web-components.tsx +120 -0
- package/src/core/islands/islands.css +14 -0
- package/src/core/islands/main.ts +200 -0
- package/src/core/islands/parse.ts +161 -0
- package/src/core/islands/state.ts +30 -0
- package/src/core/islands/toast.ts +41 -0
- package/src/core/islands/utils.ts +5 -0
- package/src/core/islands/worker/controller.ts +52 -0
- package/src/core/islands/worker/worker.tsx +178 -0
- package/src/core/kernel/RuntimeState.ts +94 -0
- package/src/core/kernel/__tests__/RuntimeState.test.ts +57 -0
- package/src/core/kernel/__tests__/handlers.test.ts +61 -0
- package/src/core/kernel/__tests__/session.test.ts +10 -0
- package/src/core/kernel/handlers.ts +159 -0
- package/src/core/kernel/messages.ts +54 -0
- package/src/core/kernel/queryParamHandlers.ts +39 -0
- package/src/core/kernel/session.ts +50 -0
- package/src/core/layout/layout.ts +99 -0
- package/src/core/layout/useTogglePresenting.ts +50 -0
- package/src/core/meta/globals.ts +25 -0
- package/src/core/meta/state.ts +25 -0
- package/src/core/mime.ts +9 -0
- package/src/core/mode.ts +80 -0
- package/src/core/network/DeferredRequestRegistry.ts +71 -0
- package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +37 -0
- package/src/core/network/__tests__/api.test.ts +80 -0
- package/src/core/network/api.ts +145 -0
- package/src/core/network/auth.ts +13 -0
- package/src/core/network/connection.ts +33 -0
- package/src/core/network/requests-network.ts +398 -0
- package/src/core/network/requests-static.ts +88 -0
- package/src/core/network/requests-toasting.ts +91 -0
- package/src/core/network/requests.ts +24 -0
- package/src/core/network/resolve.ts +17 -0
- package/src/core/network/types.ts +188 -0
- package/src/core/packages/toast-components.tsx +88 -0
- package/src/core/packages/useInstallPackage.ts +46 -0
- package/src/core/rtc/state.ts +20 -0
- package/src/core/run-app.tsx +69 -0
- package/src/core/runtime/__tests__/config.test.ts +161 -0
- package/src/core/runtime/__tests__/createWsUrl.test.ts +61 -0
- package/src/core/runtime/__tests__/runtime.test.ts +603 -0
- package/src/core/runtime/config.ts +40 -0
- package/src/core/runtime/runtime.ts +277 -0
- package/src/core/runtime/types.ts +7 -0
- package/src/core/runtime/utils.ts +9 -0
- package/src/core/saving/file-state.ts +15 -0
- package/src/core/saving/filename.ts +55 -0
- package/src/core/saving/save-component.tsx +274 -0
- package/src/core/saving/state.ts +51 -0
- package/src/core/saving/useAutoSave.ts +68 -0
- package/src/core/secrets/request-registry.ts +16 -0
- package/src/core/slots/slots.ts +9 -0
- package/src/core/state/__tests__/jotai.test.ts +25 -0
- package/src/core/state/jotai.ts +69 -0
- package/src/core/state/observable.ts +23 -0
- package/src/core/static/__tests__/download-html.test.ts +41 -0
- package/src/core/static/__tests__/files.test.ts +183 -0
- package/src/core/static/__tests__/virtual-file-tracker.test.ts +92 -0
- package/src/core/static/download-html.ts +59 -0
- package/src/core/static/files.ts +148 -0
- package/src/core/static/static-state.ts +19 -0
- package/src/core/static/types.ts +8 -0
- package/src/core/static/virtual-file-tracker.ts +83 -0
- package/src/core/variables/__tests__/state.test.ts +148 -0
- package/src/core/variables/state.ts +81 -0
- package/src/core/variables/types.ts +22 -0
- package/src/core/vscode/vscode-bindings.ts +176 -0
- package/src/core/wasm/PyodideLoader.tsx +72 -0
- package/src/core/wasm/__tests__/router.test.ts +57 -0
- package/src/core/wasm/__tests__/share.test.ts +35 -0
- package/src/core/wasm/__tests__/state.test.ts +124 -0
- package/src/core/wasm/__tests__/store.test.ts +55 -0
- package/src/core/wasm/bridge.ts +622 -0
- package/src/core/wasm/router.ts +39 -0
- package/src/core/wasm/rpc.ts +32 -0
- package/src/core/wasm/share.ts +15 -0
- package/src/core/wasm/state.ts +21 -0
- package/src/core/wasm/store.ts +122 -0
- package/src/core/wasm/utils.ts +12 -0
- package/src/core/wasm/worker/bootstrap.ts +223 -0
- package/src/core/wasm/worker/constants.ts +2 -0
- package/src/core/wasm/worker/fs.ts +90 -0
- package/src/core/wasm/worker/getController.ts +16 -0
- package/src/core/wasm/worker/getFS.ts +9 -0
- package/src/core/wasm/worker/getMarimoWheel.ts +15 -0
- package/src/core/wasm/worker/getPyodideVersion.ts +10 -0
- package/src/core/wasm/worker/message-buffer.ts +32 -0
- package/src/core/wasm/worker/save-worker.ts +107 -0
- package/src/core/wasm/worker/tracer.ts +7 -0
- package/src/core/wasm/worker/types.ts +97 -0
- package/src/core/wasm/worker/worker.ts +375 -0
- package/src/core/websocket/StaticWebsocket.ts +61 -0
- package/src/core/websocket/connection-utils.ts +59 -0
- package/src/core/websocket/types.ts +43 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +386 -0
- package/src/core/websocket/useWebSocket.tsx +88 -0
- package/src/css/admonition.css +127 -0
- package/src/css/app/App.css +77 -0
- package/src/css/app/Cell.css +433 -0
- package/src/css/app/Header.css +25 -0
- package/src/css/app/codemirror-completions.css +308 -0
- package/src/css/app/codemirror.css +136 -0
- package/src/css/app/fonts.css +50 -0
- package/src/css/app/print.css +86 -0
- package/src/css/app/reset.css +18 -0
- package/src/css/codehilite.css +354 -0
- package/src/css/common.css +45 -0
- package/src/css/globals.css +176 -0
- package/src/css/index.css +10 -0
- package/src/css/katex-fonts.css +214 -0
- package/src/css/katex.min.css +1182 -0
- package/src/css/md-tooltip.css +52 -0
- package/src/css/md.css +365 -0
- package/src/css/progress.css +93 -0
- package/src/css/table.css +45 -0
- package/src/custom.d.ts +24 -0
- package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
- package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
- package/src/hooks/__tests__/useBoolean.test.tsx +33 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +182 -0
- package/src/hooks/__tests__/useEffectSkipFirstRender.test.tsx +42 -0
- package/src/hooks/__tests__/useEventListener.test.tsx +148 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +76 -0
- package/src/hooks/__tests__/useInterval.test.tsx +70 -0
- package/src/hooks/__tests__/usePackageMetadata.test.tsx +219 -0
- package/src/hooks/__tests__/useResizeHandle.test.tsx +240 -0
- package/src/hooks/__tests__/useResizeObserver.test.tsx +86 -0
- package/src/hooks/__tests__/useTimer.test.tsx +62 -0
- package/src/hooks/debug.ts +116 -0
- package/src/hooks/useAsyncData.ts +392 -0
- package/src/hooks/useAudioRecorder.ts +89 -0
- package/src/hooks/useAutoGrowInputProps.ts +56 -0
- package/src/hooks/useBoolean.ts +26 -0
- package/src/hooks/useCellRenderCount.ts +15 -0
- package/src/hooks/useDebounce.ts +95 -0
- package/src/hooks/useDeepCompareMemoize.ts +22 -0
- package/src/hooks/useEffectSkipFirstRender.ts +24 -0
- package/src/hooks/useElapsedTime.ts +25 -0
- package/src/hooks/useEvent.ts +2 -0
- package/src/hooks/useEventListener.ts +68 -0
- package/src/hooks/useHotkey.ts +77 -0
- package/src/hooks/useInternalStateWithSync.ts +26 -0
- package/src/hooks/useInterval.ts +49 -0
- package/src/hooks/useIsDragging.tsx +39 -0
- package/src/hooks/useLifecycle.ts +20 -0
- package/src/hooks/useLocalStorage.ts +22 -0
- package/src/hooks/useNonce.ts +9 -0
- package/src/hooks/usePackageMetadata.ts +52 -0
- package/src/hooks/useRecentCommands.ts +25 -0
- package/src/hooks/useResizeHandle.ts +110 -0
- package/src/hooks/useResizeObserver.ts +101 -0
- package/src/hooks/useScript.ts +90 -0
- package/src/hooks/useSelectAllContent.ts +42 -0
- package/src/hooks/useTimer.ts +48 -0
- package/src/main.tsx +20 -0
- package/src/mount.tsx +331 -0
- package/src/plugins/core/BadPlugin.tsx +72 -0
- package/src/plugins/core/RenderHTML.tsx +136 -0
- package/src/plugins/core/__test__/RenderHTML.test.ts +146 -0
- package/src/plugins/core/builder.ts +59 -0
- package/src/plugins/core/registerReactComponent.tsx +535 -0
- package/src/plugins/core/rpc.ts +55 -0
- package/src/plugins/core/sidebar-element.tsx +104 -0
- package/src/plugins/impl/ButtonPlugin.tsx +95 -0
- package/src/plugins/impl/CheckboxPlugin.tsx +56 -0
- package/src/plugins/impl/CodeEditorPlugin.tsx +119 -0
- package/src/plugins/impl/DataEditorPlugin.tsx +181 -0
- package/src/plugins/impl/DataTablePlugin.tsx +948 -0
- package/src/plugins/impl/DatePickerPlugin.tsx +74 -0
- package/src/plugins/impl/DateRangePlugin.tsx +82 -0
- package/src/plugins/impl/DateTimePickerPlugin.tsx +76 -0
- package/src/plugins/impl/DictPlugin.tsx +80 -0
- package/src/plugins/impl/DropdownPlugin.tsx +102 -0
- package/src/plugins/impl/FileBrowserPlugin.tsx +500 -0
- package/src/plugins/impl/FileUploadPlugin.tsx +302 -0
- package/src/plugins/impl/FormPlugin.tsx +294 -0
- package/src/plugins/impl/MicrophonePlugin.tsx +58 -0
- package/src/plugins/impl/MultiselectPlugin.tsx +207 -0
- package/src/plugins/impl/NumberPlugin.tsx +84 -0
- package/src/plugins/impl/RadioPlugin.tsx +77 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +163 -0
- package/src/plugins/impl/RefreshPlugin.tsx +158 -0
- package/src/plugins/impl/SearchableSelect.tsx +122 -0
- package/src/plugins/impl/SliderPlugin.tsx +166 -0
- package/src/plugins/impl/SwitchPlugin.tsx +48 -0
- package/src/plugins/impl/TabsPlugin.tsx +83 -0
- package/src/plugins/impl/TextAreaPlugin.tsx +131 -0
- package/src/plugins/impl/TextInputPlugin.tsx +169 -0
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +178 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +41 -0
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +144 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +269 -0
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +181 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +370 -0
- package/src/plugins/impl/anywidget/model.ts +314 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +98 -0
- package/src/plugins/impl/chat/chat-ui.tsx +716 -0
- package/src/plugins/impl/chat/types.ts +39 -0
- package/src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx +6 -0
- package/src/plugins/impl/code/any-language-editor.tsx +68 -0
- package/src/plugins/impl/common/error-banner.tsx +111 -0
- package/src/plugins/impl/common/intent.ts +18 -0
- package/src/plugins/impl/common/labeled.tsx +69 -0
- package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +876 -0
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +452 -0
- package/src/plugins/impl/data-editor/components.tsx +179 -0
- package/src/plugins/impl/data-editor/data-utils.ts +123 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +651 -0
- package/src/plugins/impl/data-editor/glide-utils.ts +200 -0
- package/src/plugins/impl/data-editor/themes.ts +49 -0
- package/src/plugins/impl/data-editor/types.ts +44 -0
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +268 -0
- package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +31 -0
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +174 -0
- package/src/plugins/impl/data-explorer/components/icons.tsx +30 -0
- package/src/plugins/impl/data-explorer/components/query-form.tsx +296 -0
- package/src/plugins/impl/data-explorer/encoding.ts +107 -0
- package/src/plugins/impl/data-explorer/functions/function.ts +83 -0
- package/src/plugins/impl/data-explorer/functions/types.ts +32 -0
- package/src/plugins/impl/data-explorer/marks.ts +21 -0
- package/src/plugins/impl/data-explorer/queries/field-suggestion.ts +65 -0
- package/src/plugins/impl/data-explorer/queries/histograms.ts +41 -0
- package/src/plugins/impl/data-explorer/queries/queries.ts +204 -0
- package/src/plugins/impl/data-explorer/queries/removeUndefined.ts +11 -0
- package/src/plugins/impl/data-explorer/queries/types.ts +54 -0
- package/src/plugins/impl/data-explorer/queries/utils.ts +85 -0
- package/src/plugins/impl/data-explorer/spec.ts +28 -0
- package/src/plugins/impl/data-explorer/state/reducer.ts +92 -0
- package/src/plugins/impl/data-explorer/state/types.ts +28 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +303 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +1600 -0
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +67 -0
- package/src/plugins/impl/data-frames/forms/context.ts +13 -0
- package/src/plugins/impl/data-frames/forms/datatype-icon.tsx +43 -0
- package/src/plugins/impl/data-frames/forms/renderers.tsx +518 -0
- package/src/plugins/impl/data-frames/panel.tsx +308 -0
- package/src/plugins/impl/data-frames/schema.ts +211 -0
- package/src/plugins/impl/data-frames/types.ts +91 -0
- package/src/plugins/impl/data-frames/utils/__tests__/getUpdatedColumnTypes.test.ts +191 -0
- package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +116 -0
- package/src/plugins/impl/data-frames/utils/getUpdatedColumnTypes.ts +67 -0
- package/src/plugins/impl/data-frames/utils/operators.ts +202 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +39 -0
- package/src/plugins/impl/multiselectFilterFn.tsx +22 -0
- package/src/plugins/impl/panel/PanelPlugin.tsx +266 -0
- package/src/plugins/impl/panel/__tests__/utils.test.ts +119 -0
- package/src/plugins/impl/panel/utils.ts +104 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +300 -0
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +73 -0
- package/src/plugins/impl/plotly/mapbox.css +359 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +58 -0
- package/src/plugins/impl/plotly/plotly.css +280 -0
- package/src/plugins/impl/vega/VegaPlugin.tsx +40 -0
- package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +1210 -0
- package/src/plugins/impl/vega/__tests__/encodings.test.ts +172 -0
- package/src/plugins/impl/vega/__tests__/loader.test.ts +73 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +575 -0
- package/src/plugins/impl/vega/__tests__/params.test.ts +52 -0
- package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +236 -0
- package/src/plugins/impl/vega/__tests__/vega.test.ts +603 -0
- package/src/plugins/impl/vega/batched.ts +41 -0
- package/src/plugins/impl/vega/encodings.ts +111 -0
- package/src/plugins/impl/vega/fix-relative-url.ts +15 -0
- package/src/plugins/impl/vega/formats.ts +25 -0
- package/src/plugins/impl/vega/loader.ts +320 -0
- package/src/plugins/impl/vega/make-selectable.ts +248 -0
- package/src/plugins/impl/vega/marks.ts +36 -0
- package/src/plugins/impl/vega/params.ts +192 -0
- package/src/plugins/impl/vega/resolve-data.ts +101 -0
- package/src/plugins/impl/vega/types.ts +32 -0
- package/src/plugins/impl/vega/utils.ts +46 -0
- package/src/plugins/impl/vega/vega-component.tsx +271 -0
- package/src/plugins/impl/vega/vega-loader.ts +53 -0
- package/src/plugins/impl/vega/vega.css +31 -0
- package/src/plugins/layout/AccordionPlugin.tsx +63 -0
- package/src/plugins/layout/CalloutPlugin.tsx +34 -0
- package/src/plugins/layout/DownloadPlugin.tsx +136 -0
- package/src/plugins/layout/ImageComparisonPlugin.tsx +35 -0
- package/src/plugins/layout/JsonOutputPlugin.tsx +47 -0
- package/src/plugins/layout/LazyPlugin.tsx +98 -0
- package/src/plugins/layout/MimeRenderPlugin.tsx +45 -0
- package/src/plugins/layout/NavigationMenuPlugin.tsx +219 -0
- package/src/plugins/layout/ProgressPlugin.tsx +175 -0
- package/src/plugins/layout/RoutesPlugin.tsx +81 -0
- package/src/plugins/layout/StatPlugin.tsx +100 -0
- package/src/plugins/layout/TexPlugin.tsx +102 -0
- package/src/plugins/layout/__test__/ProgressPlugin.test.ts +26 -0
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +48 -0
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +26 -0
- package/src/plugins/layout/mermaid/mermaid.tsx +94 -0
- package/src/plugins/layout/navigation-menu.css +37 -0
- package/src/plugins/plugins.ts +116 -0
- package/src/plugins/stateless-plugin.ts +29 -0
- package/src/plugins/types.ts +82 -0
- package/src/stories/__fixtures__/vega.ts +225 -0
- package/src/stories/accordion.stories.tsx +100 -0
- package/src/stories/alert-dialog.mdx +42 -0
- package/src/stories/app-chrome.stories.tsx +26 -0
- package/src/stories/button.stories.tsx +90 -0
- package/src/stories/callout.stories.tsx +73 -0
- package/src/stories/cell-status.stories.tsx +145 -0
- package/src/stories/cell.stories.tsx +336 -0
- package/src/stories/checkbox.stories.tsx +44 -0
- package/src/stories/colors.stories.tsx +156 -0
- package/src/stories/combobox.stories.tsx +133 -0
- package/src/stories/context-menu.mdx +23 -0
- package/src/stories/data-explorer.stories.tsx +30 -0
- package/src/stories/data-table.stories.tsx +130 -0
- package/src/stories/dataframe.stories.tsx +46 -0
- package/src/stories/debugger.stories.tsx +34 -0
- package/src/stories/dialog.stories.tsx +80 -0
- package/src/stories/dropdown-menu.mdx +159 -0
- package/src/stories/editor-inputs.stories.tsx +47 -0
- package/src/stories/editor.stories.tsx +91 -0
- package/src/stories/file-upload.stories.tsx +103 -0
- package/src/stories/form-wrapper.stories.tsx +147 -0
- package/src/stories/input.stories.tsx +56 -0
- package/src/stories/label.mdx +9 -0
- package/src/stories/log-viewer.stories.tsx +74 -0
- package/src/stories/number-field.mdx +17 -0
- package/src/stories/number-field.stories.tsx +41 -0
- package/src/stories/progress-component.stories.tsx +74 -0
- package/src/stories/progress.stories.tsx +33 -0
- package/src/stories/radio-group.mdx +54 -0
- package/src/stories/select-native.stories.tsx +49 -0
- package/src/stories/select.stories.tsx +92 -0
- package/src/stories/slider.stories.tsx +27 -0
- package/src/stories/stat.stories.tsx +123 -0
- package/src/stories/switch.mdx +20 -0
- package/src/stories/switchable-multi-select.stories.tsx +31 -0
- package/src/stories/tabs.mdx +59 -0
- package/src/stories/textarea.stories.tsx +58 -0
- package/src/stories/theme.stories.tsx +111 -0
- package/src/stories/tooltip.mdx +32 -0
- package/src/stories/typography.stories.tsx +80 -0
- package/src/stories/variables.stories.tsx +58 -0
- package/src/stories/vega.stories.tsx +57 -0
- package/src/theme/ThemeProvider.tsx +32 -0
- package/src/theme/namespace.tsx +23 -0
- package/src/theme/useTheme.ts +89 -0
- package/src/utils/Deferred.ts +20 -0
- package/src/utils/Logger.ts +91 -0
- package/src/utils/__tests__/Deferred.test.ts +38 -0
- package/src/utils/__tests__/arrays.test.ts +130 -0
- package/src/utils/__tests__/batch-requests.test.ts +60 -0
- package/src/utils/__tests__/blob.test.ts +52 -0
- package/src/utils/__tests__/cell-urls.test.ts +92 -0
- package/src/utils/__tests__/createReducer.test.ts +184 -0
- package/src/utils/__tests__/data-views.test.ts +112 -0
- package/src/utils/__tests__/dates.test.ts +188 -0
- package/src/utils/__tests__/edit-distance.test.ts +302 -0
- package/src/utils/__tests__/errors.test.ts +54 -0
- package/src/utils/__tests__/filenames.test.ts +30 -0
- package/src/utils/__tests__/id-tree.test.ts +1994 -0
- package/src/utils/__tests__/json-parser.test.ts +79 -0
- package/src/utils/__tests__/local-storage.test.ts +77 -0
- package/src/utils/__tests__/lru.test.ts +74 -0
- package/src/utils/__tests__/maps.test.ts +91 -0
- package/src/utils/__tests__/math.test.ts +29 -0
- package/src/utils/__tests__/multi-map.test.ts +295 -0
- package/src/utils/__tests__/numbers.test.ts +76 -0
- package/src/utils/__tests__/path.test.ts +170 -0
- package/src/utils/__tests__/pluralize.test.ts +47 -0
- package/src/utils/__tests__/routes.test.ts +134 -0
- package/src/utils/__tests__/sets.test.ts +41 -0
- package/src/utils/__tests__/shallow-compare.test.ts +55 -0
- package/src/utils/__tests__/strings.test.ts +68 -0
- package/src/utils/__tests__/time.test.ts +61 -0
- package/src/utils/__tests__/timed-cache.test.ts +142 -0
- package/src/utils/__tests__/timeout.test.ts +153 -0
- package/src/utils/__tests__/traceback.test.ts +34 -0
- package/src/utils/__tests__/url.test.ts +100 -0
- package/src/utils/__tests__/urls.test.ts +10 -0
- package/src/utils/__tests__/versions.test.ts +63 -0
- package/src/utils/__tests__/waitForWs.test.ts +76 -0
- package/src/utils/arrays.ts +75 -0
- package/src/utils/assertExists.ts +12 -0
- package/src/utils/assertNever.ts +20 -0
- package/src/utils/batch-requests.ts +28 -0
- package/src/utils/blob.ts +45 -0
- package/src/utils/cell-urls.ts +31 -0
- package/src/utils/cn.ts +8 -0
- package/src/utils/copy.ts +17 -0
- package/src/utils/createReducer.ts +137 -0
- package/src/utils/data-views.ts +54 -0
- package/src/utils/dates.ts +145 -0
- package/src/utils/dereference.ts +10 -0
- package/src/utils/download.ts +47 -0
- package/src/utils/edit-distance.ts +141 -0
- package/src/utils/errors.ts +63 -0
- package/src/utils/events.ts +85 -0
- package/src/utils/fileToBase64.ts +30 -0
- package/src/utils/filenames.ts +29 -0
- package/src/utils/functions.ts +24 -0
- package/src/utils/id-tree.tsx +1032 -0
- package/src/utils/idle.ts +19 -0
- package/src/utils/invariant.ts +37 -0
- package/src/utils/json/__tests__/base64.test.ts +100 -0
- package/src/utils/json/base64.ts +51 -0
- package/src/utils/json/json-parser.ts +65 -0
- package/src/utils/lazy.ts +30 -0
- package/src/utils/links.ts +11 -0
- package/src/utils/localStorage.ts +132 -0
- package/src/utils/lru.ts +68 -0
- package/src/utils/maps.ts +65 -0
- package/src/utils/math.ts +6 -0
- package/src/utils/mergeRefs.ts +14 -0
- package/src/utils/multi-map.ts +71 -0
- package/src/utils/numbers.ts +124 -0
- package/src/utils/objects.ts +105 -0
- package/src/utils/once.ts +17 -0
- package/src/utils/pathUtils.test.ts +113 -0
- package/src/utils/pathUtils.ts +76 -0
- package/src/utils/paths.ts +67 -0
- package/src/utils/pluralize.ts +35 -0
- package/src/utils/python-poet/__tests__/poet.test.ts +286 -0
- package/src/utils/python-poet/poet.ts +196 -0
- package/src/utils/reload-safe.ts +15 -0
- package/src/utils/repl.ts +23 -0
- package/src/utils/routes.ts +36 -0
- package/src/utils/scroll.ts +38 -0
- package/src/utils/sets.ts +30 -0
- package/src/utils/shallow-compare.ts +30 -0
- package/src/utils/staticImplements.ts +7 -0
- package/src/utils/strings.ts +64 -0
- package/src/utils/time.ts +39 -0
- package/src/utils/timed-cache.ts +52 -0
- package/src/utils/timeout.ts +42 -0
- package/src/utils/traceback.ts +104 -0
- package/src/utils/tracer.ts +106 -0
- package/src/utils/typed.ts +17 -0
- package/src/utils/url.ts +12 -0
- package/src/utils/urls.ts +33 -0
- package/src/utils/uuid.ts +8 -0
- package/src/utils/versions.ts +66 -0
- package/src/utils/vitals.ts +30 -0
- package/src/utils/waitForWs.ts +31 -0
- package/dist/assets/_baseMap-ejDdVnUU.js +0 -1
- package/dist/assets/channel-PLmZB-8M.js +0 -1
- package/dist/assets/classDiagram-M3E45YP4-Bl6D-lo6.js +0 -1
- package/dist/assets/classDiagram-v2-YAWTLIQI-Bl6D-lo6.js +0 -1
- package/dist/assets/clone-BllYssjv.js +0 -1
- package/dist/assets/index-BlxPam9h.css +0 -1
- package/dist/assets/infoDiagram-LHK5PUON-sVWflOQg.js +0 -2
- package/dist/assets/links-DAdFQ7bg.js +0 -17
- package/dist/assets/min-CTcwszLX.js +0 -1
- package/dist/assets/sortBy-DSGu1kis.js +0 -1
- package/dist/assets/stateDiagram-v2-5AN5P6BG-Bv5ynAxn.js +0 -1
- package/dist/assets/storage-CssK1tjQ.js +0 -26
- package/dist/assets/time-Dq0rcdwf.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ae,se;import{g as ie}from"./chunk-E2GYISFI-
|
|
1
|
+
var ae,se;import{g as ie}from"./chunk-E2GYISFI-BGhna3Tu.js";import{_ as h,F as V,d as oe,l as m,y as le,A as ce,c as z,a2 as de,P as he,a3 as q,a4 as $t,a5 as ge,u as Q,j as ye,a6 as pe,a7 as gt,a8 as ue,h as Dt}from"./mermaid-TIsLiY_c.js";import{c as xe}from"./clone-4KJc73U3.js";import{s as R}from"./transform-B8bpuzxV.js";import{G as be}from"./graph-CDj368Ef.js";import{c as fe}from"./channel-AZKaNSLi.js";import{l as me,k as we}from"./step-BwsUM5iJ.js";import"./index-BfMKs8fK.js";import"./_baseUniq-oH3tH_Lx.js";import"./_baseEach-Dtl0u6a9.js";import"./timer-BwIYMJWC.js";var yt=function(){var e=h(function(d,u,k,b){for(k=k||{},b=d.length;b--;k[d[b]]=u);return k},"o"),t=[1,7],a=[1,13],n=[1,14],r=[1,15],s=[1,19],i=[1,16],o=[1,17],c=[1,18],p=[8,30],y=[8,21,28,29,30,31,32,40,44,47],x=[1,23],f=[1,24],_=[8,15,16,21,28,29,30,31,32,40,44,47],S=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],v={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:h(function(d,u,k,b,w,l,L){var g=l.length-1;switch(w){case 4:b.getLogger().debug("Rule: separator (NL) ");break;case 5:b.getLogger().debug("Rule: separator (Space) ");break;case 6:b.getLogger().debug("Rule: separator (EOF) ");break;case 7:b.getLogger().debug("Rule: hierarchy: ",l[g-1]),b.setHierarchy(l[g-1]);break;case 8:b.getLogger().debug("Stop NL ");break;case 9:b.getLogger().debug("Stop EOF ");break;case 10:b.getLogger().debug("Stop NL2 ");break;case 11:b.getLogger().debug("Stop EOF2 ");break;case 12:b.getLogger().debug("Rule: statement: ",l[g]),typeof l[g].length=="number"?this.$=l[g]:this.$=[l[g]];break;case 13:b.getLogger().debug("Rule: statement #2: ",l[g-1]),this.$=[l[g-1]].concat(l[g]);break;case 14:b.getLogger().debug("Rule: link: ",l[g],d),this.$={edgeTypeStr:l[g],label:""};break;case 15:b.getLogger().debug("Rule: LABEL link: ",l[g-3],l[g-1],l[g]),this.$={edgeTypeStr:l[g],label:l[g-1]};break;case 18:const D=parseInt(l[g]),H=b.generateId();this.$={id:H,type:"space",label:"",width:D,children:[]};break;case 23:b.getLogger().debug("Rule: (nodeStatement link node) ",l[g-2],l[g-1],l[g]," typestr: ",l[g-1].edgeTypeStr);const U=b.edgeStrToEdgeData(l[g-1].edgeTypeStr);this.$=[{id:l[g-2].id,label:l[g-2].label,type:l[g-2].type,directions:l[g-2].directions},{id:l[g-2].id+"-"+l[g].id,start:l[g-2].id,end:l[g].id,label:l[g-1].label,type:"edge",directions:l[g].directions,arrowTypeEnd:U,arrowTypeStart:"arrow_open"},{id:l[g].id,label:l[g].label,type:b.typeStr2Type(l[g].typeStr),directions:l[g].directions}];break;case 24:b.getLogger().debug("Rule: nodeStatement (abc88 node size) ",l[g-1],l[g]),this.$={id:l[g-1].id,label:l[g-1].label,type:b.typeStr2Type(l[g-1].typeStr),directions:l[g-1].directions,widthInColumns:parseInt(l[g],10)};break;case 25:b.getLogger().debug("Rule: nodeStatement (node) ",l[g]),this.$={id:l[g].id,label:l[g].label,type:b.typeStr2Type(l[g].typeStr),directions:l[g].directions,widthInColumns:1};break;case 26:b.getLogger().debug("APA123",this?this:"na"),b.getLogger().debug("COLUMNS: ",l[g]),this.$={type:"column-setting",columns:l[g]==="auto"?-1:parseInt(l[g])};break;case 27:b.getLogger().debug("Rule: id-block statement : ",l[g-2],l[g-1]),b.generateId(),this.$={...l[g-2],type:"composite",children:l[g-1]};break;case 28:b.getLogger().debug("Rule: blockStatement : ",l[g-2],l[g-1],l[g]);const T=b.generateId();this.$={id:T,type:"composite",label:"",children:l[g-1]};break;case 29:b.getLogger().debug("Rule: node (NODE_ID separator): ",l[g]),this.$={id:l[g]};break;case 30:b.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",l[g-1],l[g]),this.$={id:l[g-1],label:l[g].label,typeStr:l[g].typeStr,directions:l[g].directions};break;case 31:b.getLogger().debug("Rule: dirList: ",l[g]),this.$=[l[g]];break;case 32:b.getLogger().debug("Rule: dirList: ",l[g-1],l[g]),this.$=[l[g-1]].concat(l[g]);break;case 33:b.getLogger().debug("Rule: nodeShapeNLabel: ",l[g-2],l[g-1],l[g]),this.$={typeStr:l[g-2]+l[g],label:l[g-1]};break;case 34:b.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",l[g-3],l[g-2]," #3:",l[g-1],l[g]),this.$={typeStr:l[g-3]+l[g],label:l[g-2],directions:l[g-1]};break;case 35:case 36:this.$={type:"classDef",id:l[g-1].trim(),css:l[g].trim()};break;case 37:this.$={type:"applyClass",id:l[g-1].trim(),styleClass:l[g].trim()};break;case 38:this.$={type:"applyStyles",id:l[g-1].trim(),stylesStr:l[g].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:a,29:n,31:r,32:s,40:i,44:o,47:c},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:a,29:n,31:r,32:s,40:i,44:o,47:c}),e(y,[2,16],{14:22,15:x,16:f}),e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),e(y,[2,21]),e(y,[2,22]),e(_,[2,25],{27:[1,25]}),e(y,[2,26]),{19:26,26:12,32:s},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:a,29:n,31:r,32:s,40:i,44:o,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(S,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:s},{32:[2,14]},{17:[1,36]},e(_,[2,24]),{11:37,13:4,14:22,15:x,16:f,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:a,29:n,31:r,32:s,40:i,44:o,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(_,[2,23]),{18:[1,45]},{30:[1,46]},e(y,[2,28]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(y,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(y,[2,27]),e(S,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(S,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:h(function(d,u){if(!u.recoverable){var k=new Error(d);throw k.hash=u,k}this.trace(d)},"parseError"),parse:h(function(d){var u=this,k=[0],b=[],w=[null],l=[],L=this.table,g="",D=0,H=0,U=l.slice.call(arguments,1),T=Object.create(this.lexer),M={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(M.yy[dt]=this.yy[dt]);T.setInput(d,M.yy),M.yy.lexer=T,M.yy.parser=this,T.yylloc===void 0&&(T.yylloc={});var ht=T.yylloc;l.push(ht);var ne=T.options&&T.options.ranges;function Lt(){var X;return typeof(X=b.pop()||T.lex()||1)!="number"&&(X instanceof Array&&(X=(b=X).pop()),X=u.symbols_[X]||X),X}typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,h(function(X){k.length=k.length-2*X,w.length=w.length-X,l.length=l.length-X},"popStack"),h(Lt,"lex");for(var P,G,W,_t,rt,Z,Et,at,J={};;){if(G=k[k.length-1],this.defaultActions[G]?W=this.defaultActions[G]:(P==null&&(P=Lt()),W=L[G]&&L[G][P]),W===void 0||!W.length||!W[0]){var vt="";for(rt in at=[],L[G])this.terminals_[rt]&&rt>2&&at.push("'"+this.terminals_[rt]+"'");vt=T.showPosition?"Parse error on line "+(D+1)+`:
|
|
2
2
|
`+T.showPosition()+`
|
|
3
3
|
Expecting `+at.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on line "+(D+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(vt,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:ht,expected:at})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+P);switch(W[0]){case 1:k.push(P),w.push(T.yytext),l.push(T.yylloc),k.push(W[1]),P=null,H=T.yyleng,g=T.yytext,D=T.yylineno,ht=T.yylloc;break;case 2:if(Z=this.productions_[W[1]][1],J.$=w[w.length-Z],J._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},ne&&(J._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),(_t=this.performAction.apply(J,[g,H,D,M.yy,W[1],w,l].concat(U)))!==void 0)return _t;Z&&(k=k.slice(0,-1*Z*2),w=w.slice(0,-1*Z),l=l.slice(0,-1*Z)),k.push(this.productions_[W[1]][0]),w.push(J.$),l.push(J._$),Et=L[k[k.length-2]][k[k.length-1]],k.push(Et);break;case 3:return!0}}return!0},"parse")},N=function(){return{EOF:1,parseError:h(function(d,u){if(!this.yy.parser)throw new Error(d);this.yy.parser.parseError(d,u)},"parseError"),setInput:h(function(d,u){return this.yy=u||this.yy||{},this._input=d,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:h(function(){var d=this._input[0];return this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d,d.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),d},"input"),unput:h(function(d){var u=d.length,k=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var b=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),k.length-1&&(this.yylineno-=k.length-1);var w=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:k?(k.length===b.length?this.yylloc.first_column:0)+b[b.length-k.length].length-k[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:h(function(d){this.unput(this.match.slice(d))},"less"),pastInput:h(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var d=this.pastInput(),u=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ot,Tt;import{g as ke,d as Oe}from"./chunk-67H74DCK-6tJ94Bg0.js";import{_ as f,s as Te,g as ve,a as Re,b as De,c as Dt,l as he,d as Ne,e as Pe,f as kt,h as de,i as Be,w as Me,j as Vt,k as ue}from"./mermaid-CymwcI3a.js";import{s as Gt}from"./transform-B8bpuzxV.js";import"./index-B7daay03.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var Lt=function(){var e=f(function(m,O,x,b){for(x=x||{},b=m.length;b--;x[m[b]]=O);return x},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],d=[1,66],u=[1,67],p=[1,68],g=[1,69],w=[1,29],v=[1,30],R=[1,31],P=[1,32],X=[1,33],Y=[1,34],H=[1,35],q=[1,36],V=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],dt=[1,54],ut=[1,55],pt=[1,56],yt=[1,57],ft=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],vt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],E=[1,82],S=[1,83],A=[1,84],C=[1,85],k=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],Qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:f(function(m,O,x,b,T,h,Rt){var y=h.length-1;switch(T){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[y-3]);break;case 19:b.setTitle(h[y].substring(6)),this.$=h[y].substring(6);break;case 20:b.setAccDescription(h[y].substring(15)),this.$=h[y].substring(15);break;case 21:this.$=h[y].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[y].trim(),b.setAccDescription(this.$);break;case 28:h[y].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 29:h[y].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 30:b.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 31:h[y].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[y]),this.$=h[y];break;case 32:b.addDeploymentNode("node",...h[y]),this.$=h[y];break;case 33:b.addDeploymentNode("nodeL",...h[y]),this.$=h[y];break;case 34:b.addDeploymentNode("nodeR",...h[y]),this.$=h[y];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[y]),this.$=h[y];break;case 40:b.addPersonOrSystem("external_person",...h[y]),this.$=h[y];break;case 41:b.addPersonOrSystem("system",...h[y]),this.$=h[y];break;case 42:b.addPersonOrSystem("system_db",...h[y]),this.$=h[y];break;case 43:b.addPersonOrSystem("system_queue",...h[y]),this.$=h[y];break;case 44:b.addPersonOrSystem("external_system",...h[y]),this.$=h[y];break;case 45:b.addPersonOrSystem("external_system_db",...h[y]),this.$=h[y];break;case 46:b.addPersonOrSystem("external_system_queue",...h[y]),this.$=h[y];break;case 47:b.addContainer("container",...h[y]),this.$=h[y];break;case 48:b.addContainer("container_db",...h[y]),this.$=h[y];break;case 49:b.addContainer("container_queue",...h[y]),this.$=h[y];break;case 50:b.addContainer("external_container",...h[y]),this.$=h[y];break;case 51:b.addContainer("external_container_db",...h[y]),this.$=h[y];break;case 52:b.addContainer("external_container_queue",...h[y]),this.$=h[y];break;case 53:b.addComponent("component",...h[y]),this.$=h[y];break;case 54:b.addComponent("component_db",...h[y]),this.$=h[y];break;case 55:b.addComponent("component_queue",...h[y]),this.$=h[y];break;case 56:b.addComponent("external_component",...h[y]),this.$=h[y];break;case 57:b.addComponent("external_component_db",...h[y]),this.$=h[y];break;case 58:b.addComponent("external_component_queue",...h[y]),this.$=h[y];break;case 60:b.addRel("rel",...h[y]),this.$=h[y];break;case 61:b.addRel("birel",...h[y]),this.$=h[y];break;case 62:b.addRel("rel_u",...h[y]),this.$=h[y];break;case 63:b.addRel("rel_d",...h[y]),this.$=h[y];break;case 64:b.addRel("rel_l",...h[y]),this.$=h[y];break;case 65:b.addRel("rel_r",...h[y]),this.$=h[y];break;case 66:b.addRel("rel_b",...h[y]),this.$=h[y];break;case 67:h[y].splice(0,1),b.addRel("rel",...h[y]),this.$=h[y];break;case 68:b.updateElStyle("update_el_style",...h[y]),this.$=h[y];break;case 69:b.updateRelStyle("update_rel_style",...h[y]),this.$=h[y];break;case 70:b.updateLayoutConfig("update_layout_config",...h[y]),this.$=h[y];break;case 71:this.$=[h[y]];break;case 72:h[y].unshift(h[y-1]),this.$=h[y];break;case 73:case 75:this.$=h[y].trim();break;case 74:let Et={};Et[h[y-1].trim()]=h[y].trim(),this.$=Et;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:d,39:u,40:p,41:g,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt}),e(Ct,[2,14]),e(Wt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(vt,[2,19]),e(vt,[2,20]),{25:[1,78]},{27:[1,79]},e(vt,[2,23]),{35:80,75:81,76:E,77:S,79:A,80:C},{35:86,75:81,76:E,77:S,79:A,80:C},{35:87,75:81,76:E,77:S,79:A,80:C},{35:88,75:81,76:E,77:S,79:A,80:C},{35:89,75:81,76:E,77:S,79:A,80:C},{35:90,75:81,76:E,77:S,79:A,80:C},{35:91,75:81,76:E,77:S,79:A,80:C},{35:92,75:81,76:E,77:S,79:A,80:C},{35:93,75:81,76:E,77:S,79:A,80:C},{35:94,75:81,76:E,77:S,79:A,80:C},{35:95,75:81,76:E,77:S,79:A,80:C},{35:96,75:81,76:E,77:S,79:A,80:C},{35:97,75:81,76:E,77:S,79:A,80:C},{35:98,75:81,76:E,77:S,79:A,80:C},{35:99,75:81,76:E,77:S,79:A,80:C},{35:100,75:81,76:E,77:S,79:A,80:C},{35:101,75:81,76:E,77:S,79:A,80:C},{35:102,75:81,76:E,77:S,79:A,80:C},{35:103,75:81,76:E,77:S,79:A,80:C},{35:104,75:81,76:E,77:S,79:A,80:C},e(k,[2,59]),{35:105,75:81,76:E,77:S,79:A,80:C},{35:106,75:81,76:E,77:S,79:A,80:C},{35:107,75:81,76:E,77:S,79:A,80:C},{35:108,75:81,76:E,77:S,79:A,80:C},{35:109,75:81,76:E,77:S,79:A,80:C},{35:110,75:81,76:E,77:S,79:A,80:C},{35:111,75:81,76:E,77:S,79:A,80:C},{35:112,75:81,76:E,77:S,79:A,80:C},{35:113,75:81,76:E,77:S,79:A,80:C},{35:114,75:81,76:E,77:S,79:A,80:C},{35:115,75:81,76:E,77:S,79:A,80:C},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:S,79:A,80:C},{35:120,75:81,76:E,77:S,79:A,80:C},{35:121,75:81,76:E,77:S,79:A,80:C},{35:122,75:81,76:E,77:S,79:A,80:C},{35:123,75:81,76:E,77:S,79:A,80:C},{35:124,75:81,76:E,77:S,79:A,80:C},{35:125,75:81,76:E,77:S,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:d,39:u,40:p,41:g,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt}),e(vt,[2,21]),e(vt,[2,22]),e(k,[2,39]),e(ne,[2,71],{75:81,35:132,76:E,77:S,79:A,80:C}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(k,[2,40]),e(k,[2,41]),e(k,[2,42]),e(k,[2,43]),e(k,[2,44]),e(k,[2,45]),e(k,[2,46]),e(k,[2,47]),e(k,[2,48]),e(k,[2,49]),e(k,[2,50]),e(k,[2,51]),e(k,[2,52]),e(k,[2,53]),e(k,[2,54]),e(k,[2,55]),e(k,[2,56]),e(k,[2,57]),e(k,[2,58]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(k,[2,63]),e(k,[2,64]),e(k,[2,65]),e(k,[2,66]),e(k,[2,67]),e(k,[2,68]),e(k,[2,69]),e(k,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(xt,[2,28]),e(xt,[2,29]),e(xt,[2,30]),e(xt,[2,31]),e(xt,[2,32]),e(xt,[2,33]),e(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Wt,[2,18]),e(Ct,[2,38]),e(ne,[2,72]),e(Bt,[2,74]),e(k,[2,24]),e(k,[2,35]),e(Qt,[2,25]),e(Qt,[2,26],{12:[1,138]}),e(Qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:f(function(m,O){if(!O.recoverable){var x=new Error(m);throw x.hash=O,x}this.trace(m)},"parseError"),parse:f(function(m){var O=this,x=[0],b=[],T=[null],h=[],Rt=this.table,y="",Et=0,re=0,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),St={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(St.yy[Ht]=this.yy[Ht]);D.setInput(m,St.yy),St.yy.lexer=D,St.yy.parser=this,D.yylloc===void 0&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;function se(){var j;return typeof(j=b.pop()||D.lex()||1)!="number"&&(j instanceof Array&&(j=(b=j).pop()),j=O.symbols_[j]||j),j}typeof St.yy.parseError=="function"?this.parseError=St.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,f(function(j){x.length=x.length-2*j,T.length=T.length-j,h.length=h.length-j},"popStack"),f(se,"lex");for(var B,At,M,le,jt,Q,oe,It,wt={};;){if(At=x[x.length-1],this.defaultActions[At]?M=this.defaultActions[At]:(B==null&&(B=se()),M=Rt[At]&&Rt[At][B]),M===void 0||!M.length||!M[0]){var ce="";for(jt in It=[],Rt[At])this.terminals_[jt]&&jt>2&&It.push("'"+this.terminals_[jt]+"'");ce=D.showPosition?"Parse error on line "+(Et+1)+`:
|
|
1
|
+
var Ot,Tt;import{g as ke,d as Oe}from"./chunk-67H74DCK-Btl2ATCi.js";import{_ as f,s as Te,g as ve,a as Re,b as De,c as Dt,l as he,d as Ne,e as Pe,f as kt,h as de,i as Be,w as Me,j as Vt,k as ue}from"./mermaid-TIsLiY_c.js";import{s as Gt}from"./transform-B8bpuzxV.js";import"./index-BfMKs8fK.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var Lt=function(){var e=f(function(m,O,x,b){for(x=x||{},b=m.length;b--;x[m[b]]=O);return x},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],d=[1,66],u=[1,67],p=[1,68],g=[1,69],w=[1,29],v=[1,30],R=[1,31],P=[1,32],X=[1,33],Y=[1,34],H=[1,35],q=[1,36],V=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],dt=[1,54],ut=[1,55],pt=[1,56],yt=[1,57],ft=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],vt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],E=[1,82],S=[1,83],A=[1,84],C=[1,85],k=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],Qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:f(function(m,O,x,b,T,h,Rt){var y=h.length-1;switch(T){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[y-3]);break;case 19:b.setTitle(h[y].substring(6)),this.$=h[y].substring(6);break;case 20:b.setAccDescription(h[y].substring(15)),this.$=h[y].substring(15);break;case 21:this.$=h[y].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[y].trim(),b.setAccDescription(this.$);break;case 28:h[y].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 29:h[y].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 30:b.addPersonOrSystemBoundary(...h[y]),this.$=h[y];break;case 31:h[y].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[y]),this.$=h[y];break;case 32:b.addDeploymentNode("node",...h[y]),this.$=h[y];break;case 33:b.addDeploymentNode("nodeL",...h[y]),this.$=h[y];break;case 34:b.addDeploymentNode("nodeR",...h[y]),this.$=h[y];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[y]),this.$=h[y];break;case 40:b.addPersonOrSystem("external_person",...h[y]),this.$=h[y];break;case 41:b.addPersonOrSystem("system",...h[y]),this.$=h[y];break;case 42:b.addPersonOrSystem("system_db",...h[y]),this.$=h[y];break;case 43:b.addPersonOrSystem("system_queue",...h[y]),this.$=h[y];break;case 44:b.addPersonOrSystem("external_system",...h[y]),this.$=h[y];break;case 45:b.addPersonOrSystem("external_system_db",...h[y]),this.$=h[y];break;case 46:b.addPersonOrSystem("external_system_queue",...h[y]),this.$=h[y];break;case 47:b.addContainer("container",...h[y]),this.$=h[y];break;case 48:b.addContainer("container_db",...h[y]),this.$=h[y];break;case 49:b.addContainer("container_queue",...h[y]),this.$=h[y];break;case 50:b.addContainer("external_container",...h[y]),this.$=h[y];break;case 51:b.addContainer("external_container_db",...h[y]),this.$=h[y];break;case 52:b.addContainer("external_container_queue",...h[y]),this.$=h[y];break;case 53:b.addComponent("component",...h[y]),this.$=h[y];break;case 54:b.addComponent("component_db",...h[y]),this.$=h[y];break;case 55:b.addComponent("component_queue",...h[y]),this.$=h[y];break;case 56:b.addComponent("external_component",...h[y]),this.$=h[y];break;case 57:b.addComponent("external_component_db",...h[y]),this.$=h[y];break;case 58:b.addComponent("external_component_queue",...h[y]),this.$=h[y];break;case 60:b.addRel("rel",...h[y]),this.$=h[y];break;case 61:b.addRel("birel",...h[y]),this.$=h[y];break;case 62:b.addRel("rel_u",...h[y]),this.$=h[y];break;case 63:b.addRel("rel_d",...h[y]),this.$=h[y];break;case 64:b.addRel("rel_l",...h[y]),this.$=h[y];break;case 65:b.addRel("rel_r",...h[y]),this.$=h[y];break;case 66:b.addRel("rel_b",...h[y]),this.$=h[y];break;case 67:h[y].splice(0,1),b.addRel("rel",...h[y]),this.$=h[y];break;case 68:b.updateElStyle("update_el_style",...h[y]),this.$=h[y];break;case 69:b.updateRelStyle("update_rel_style",...h[y]),this.$=h[y];break;case 70:b.updateLayoutConfig("update_layout_config",...h[y]),this.$=h[y];break;case 71:this.$=[h[y]];break;case 72:h[y].unshift(h[y-1]),this.$=h[y];break;case 73:case 75:this.$=h[y].trim();break;case 74:let Et={};Et[h[y-1].trim()]=h[y].trim(),this.$=Et;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:d,39:u,40:p,41:g,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt}),e(Ct,[2,14]),e(Wt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(vt,[2,19]),e(vt,[2,20]),{25:[1,78]},{27:[1,79]},e(vt,[2,23]),{35:80,75:81,76:E,77:S,79:A,80:C},{35:86,75:81,76:E,77:S,79:A,80:C},{35:87,75:81,76:E,77:S,79:A,80:C},{35:88,75:81,76:E,77:S,79:A,80:C},{35:89,75:81,76:E,77:S,79:A,80:C},{35:90,75:81,76:E,77:S,79:A,80:C},{35:91,75:81,76:E,77:S,79:A,80:C},{35:92,75:81,76:E,77:S,79:A,80:C},{35:93,75:81,76:E,77:S,79:A,80:C},{35:94,75:81,76:E,77:S,79:A,80:C},{35:95,75:81,76:E,77:S,79:A,80:C},{35:96,75:81,76:E,77:S,79:A,80:C},{35:97,75:81,76:E,77:S,79:A,80:C},{35:98,75:81,76:E,77:S,79:A,80:C},{35:99,75:81,76:E,77:S,79:A,80:C},{35:100,75:81,76:E,77:S,79:A,80:C},{35:101,75:81,76:E,77:S,79:A,80:C},{35:102,75:81,76:E,77:S,79:A,80:C},{35:103,75:81,76:E,77:S,79:A,80:C},{35:104,75:81,76:E,77:S,79:A,80:C},e(k,[2,59]),{35:105,75:81,76:E,77:S,79:A,80:C},{35:106,75:81,76:E,77:S,79:A,80:C},{35:107,75:81,76:E,77:S,79:A,80:C},{35:108,75:81,76:E,77:S,79:A,80:C},{35:109,75:81,76:E,77:S,79:A,80:C},{35:110,75:81,76:E,77:S,79:A,80:C},{35:111,75:81,76:E,77:S,79:A,80:C},{35:112,75:81,76:E,77:S,79:A,80:C},{35:113,75:81,76:E,77:S,79:A,80:C},{35:114,75:81,76:E,77:S,79:A,80:C},{35:115,75:81,76:E,77:S,79:A,80:C},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:d,39:u,40:p,41:g,43:23,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:S,79:A,80:C},{35:120,75:81,76:E,77:S,79:A,80:C},{35:121,75:81,76:E,77:S,79:A,80:C},{35:122,75:81,76:E,77:S,79:A,80:C},{35:123,75:81,76:E,77:S,79:A,80:C},{35:124,75:81,76:E,77:S,79:A,80:C},{35:125,75:81,76:E,77:S,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:d,39:u,40:p,41:g,44:w,45:v,46:R,47:P,48:X,49:Y,50:H,51:q,52:V,53:G,54:K,55:J,56:Z,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:dt,69:ut,70:pt,71:yt,72:ft,73:gt,74:bt}),e(vt,[2,21]),e(vt,[2,22]),e(k,[2,39]),e(ne,[2,71],{75:81,35:132,76:E,77:S,79:A,80:C}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(k,[2,40]),e(k,[2,41]),e(k,[2,42]),e(k,[2,43]),e(k,[2,44]),e(k,[2,45]),e(k,[2,46]),e(k,[2,47]),e(k,[2,48]),e(k,[2,49]),e(k,[2,50]),e(k,[2,51]),e(k,[2,52]),e(k,[2,53]),e(k,[2,54]),e(k,[2,55]),e(k,[2,56]),e(k,[2,57]),e(k,[2,58]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(k,[2,63]),e(k,[2,64]),e(k,[2,65]),e(k,[2,66]),e(k,[2,67]),e(k,[2,68]),e(k,[2,69]),e(k,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(xt,[2,28]),e(xt,[2,29]),e(xt,[2,30]),e(xt,[2,31]),e(xt,[2,32]),e(xt,[2,33]),e(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Wt,[2,18]),e(Ct,[2,38]),e(ne,[2,72]),e(Bt,[2,74]),e(k,[2,24]),e(k,[2,35]),e(Qt,[2,25]),e(Qt,[2,26],{12:[1,138]}),e(Qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:f(function(m,O){if(!O.recoverable){var x=new Error(m);throw x.hash=O,x}this.trace(m)},"parseError"),parse:f(function(m){var O=this,x=[0],b=[],T=[null],h=[],Rt=this.table,y="",Et=0,re=0,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),St={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(St.yy[Ht]=this.yy[Ht]);D.setInput(m,St.yy),St.yy.lexer=D,St.yy.parser=this,D.yylloc===void 0&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;function se(){var j;return typeof(j=b.pop()||D.lex()||1)!="number"&&(j instanceof Array&&(j=(b=j).pop()),j=O.symbols_[j]||j),j}typeof St.yy.parseError=="function"?this.parseError=St.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,f(function(j){x.length=x.length-2*j,T.length=T.length-j,h.length=h.length-j},"popStack"),f(se,"lex");for(var B,At,M,le,jt,Q,oe,It,wt={};;){if(At=x[x.length-1],this.defaultActions[At]?M=this.defaultActions[At]:(B==null&&(B=se()),M=Rt[At]&&Rt[At][B]),M===void 0||!M.length||!M[0]){var ce="";for(jt in It=[],Rt[At])this.terminals_[jt]&&jt>2&&It.push("'"+this.terminals_[jt]+"'");ce=D.showPosition?"Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+It.join(", ")+", got '"+(this.terminals_[B]||B)+"'":"Parse error on line "+(Et+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ce,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:qt,expected:It})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+B);switch(M[0]){case 1:x.push(B),T.push(D.yytext),h.push(D.yylloc),x.push(M[1]),B=null,re=D.yyleng,y=D.yytext,Et=D.yylineno,qt=D.yylloc;break;case 2:if(Q=this.productions_[M[1]][1],wt.$=T[T.length-Q],wt._$={first_line:h[h.length-(Q||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(Q||1)].first_column,last_column:h[h.length-1].last_column},we&&(wt._$.range=[h[h.length-(Q||1)].range[0],h[h.length-1].range[1]]),(le=this.performAction.apply(wt,[y,re,Et,St.yy,M[1],T,h].concat(Ce)))!==void 0)return le;Q&&(x=x.slice(0,-1*Q*2),T=T.slice(0,-1*Q),h=h.slice(0,-1*Q)),x.push(this.productions_[M[1]][0]),T.push(wt.$),h.push(wt._$),oe=Rt[x[x.length-2]][x[x.length-1]],x.push(oe);break;case 3:return!0}}return!0},"parse")},Ae=function(){return{EOF:1,parseError:f(function(m,O){if(!this.yy.parser)throw new Error(m);this.yy.parser.parseError(m,O)},"parseError"),setInput:f(function(m,O){return this.yy=O||this.yy||{},this._input=m,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:f(function(){var m=this._input[0];return this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m,m.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),m},"input"),unput:f(function(m){var O=m.length,x=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===b.length?this.yylloc.first_column:0)+b[b.length-x.length].length-x[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:f(function(m){this.unput(this.match.slice(m))},"less"),pastInput:f(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var m=this.pastInput(),O=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as s,C as o}from"./mermaid-TIsLiY_c.js";const n=(a,r)=>s.lang.round(o.parse(a)[r]);export{n as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l}from"./mermaid-
|
|
1
|
+
import{_ as l}from"./mermaid-TIsLiY_c.js";function s(c,e){var i,a,o;c.accDescr&&((i=e.setAccDescription)==null||i.call(e,c.accDescr)),c.accTitle&&((a=e.setAccTitle)==null||a.call(e,c.accTitle)),c.title&&((o=e.setDiagramTitle)==null||o.call(e,c.title))}l(s,"populateCommonDb");export{s as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n,m as o,i as c}from"./mermaid-
|
|
1
|
+
import{_ as n,m as o,i as c}from"./mermaid-TIsLiY_c.js";var i=n((a,t)=>{const r=a.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)r.attr(s,t.attrs[s]);return t.class&&r.attr("class",t.class),r},"drawRect"),l=n((a,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};i(a,r).lower()},"drawBackgroundRect"),d=n((a,t)=>{const r=t.text.replace(o," "),s=a.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const e=s.append("tspan");return e.attr("x",t.x+2*t.textMargin),e.text(r),s},"drawText"),h=n((a,t,r,s)=>{const e=a.append("image");e.attr("x",t),e.attr("y",r);const x=c.sanitizeUrl(s);e.attr("xlink:href",x)},"drawImage"),y=n((a,t,r,s)=>{const e=a.append("use");e.attr("x",t),e.attr("y",r);const x=c.sanitizeUrl(s);e.attr("xlink:href",`#${x}`)},"drawEmbeddedImage"),p=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),g=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{l as a,g as b,y as c,i as d,h as e,d as f,p as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;import{_ as s}from"./mermaid-
|
|
1
|
+
var t;import{_ as s}from"./mermaid-TIsLiY_c.js";var r=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{r as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a}from"./mermaid-
|
|
1
|
+
import{_ as a}from"./mermaid-TIsLiY_c.js";import{s as r}from"./transform-B8bpuzxV.js";var n=a((e,o)=>{let t;return o==="sandbox"&&(t=r("#i"+e)),r(o==="sandbox"?t.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{n as g};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var W;import{g as Qt}from"./chunk-BFAMUDN2-
|
|
2
|
-
`+
|
|
3
|
-
Expecting `+lt.join(", ")+", got '"+(this.terminals_[$]||$)+"'":"Parse error on line "+(z+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError($t,{text:
|
|
1
|
+
var W;import{g as Qt}from"./chunk-BFAMUDN2-C6ACh81N.js";import{s as Zt}from"./chunk-SKB7J2MH-B5xc8b3Z.js";import{_ as d,l as k,c as R,r as te,u as ee,a as se,b as ie,g as ne,s as re,p as ae,q as oe,S as ce,j as U,y as le}from"./mermaid-TIsLiY_c.js";var mt=function(){var e=d(function(a,y,p,T){for(p=p||{},T=a.length;T--;p[a[T]]=y);return p},"o"),t=[1,2],s=[1,3],r=[1,4],i=[2,4],o=[1,9],l=[1,11],g=[1,16],u=[1,17],m=[1,18],S=[1,19],C=[1,33],v=[1,20],D=[1,21],w=[1,22],x=[1,23],L=[1,24],h=[1,26],E=[1,27],N=[1,28],O=[1,29],j=[1,30],P=[1,31],Y=[1,32],et=[1,35],st=[1,36],it=[1,37],nt=[1,38],H=[1,34],f=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],rt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Et=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:d(function(a,y,p,T,_,n,q){var c=n.length-1;switch(_){case 3:return T.setRootDoc(n[c]),n[c];case 4:this.$=[];break;case 5:n[c]!="nl"&&(n[c-1].push(n[c]),this.$=n[c-1]);break;case 6:case 7:case 12:this.$=n[c];break;case 8:this.$="nl";break;case 13:const b=n[c-1];b.description=T.trimColon(n[c]),this.$=b;break;case 14:this.$={stmt:"relation",state1:n[c-2],state2:n[c]};break;case 15:const B=T.trimColon(n[c]);this.$={stmt:"relation",state1:n[c-3],state2:n[c-1],description:B};break;case 19:this.$={stmt:"state",id:n[c-3],type:"default",description:"",doc:n[c-1]};break;case 20:var z=n[c],X=n[c-2].trim();if(n[c].match(":")){var ot=n[c].split(":");z=ot[0],X=[X,ot[1]]}this.$={stmt:"state",id:z,type:"default",description:X};break;case 21:this.$={stmt:"state",id:n[c-3],type:"default",description:n[c-5],doc:n[c-1]};break;case 22:this.$={stmt:"state",id:n[c],type:"fork"};break;case 23:this.$={stmt:"state",id:n[c],type:"join"};break;case 24:this.$={stmt:"state",id:n[c],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:n[c-1].trim(),note:{position:n[c-2].trim(),text:n[c].trim()}};break;case 29:this.$=n[c].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=n[c].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:n[c-3],url:n[c-2],tooltip:n[c-1]};break;case 33:this.$={stmt:"click",id:n[c-3],url:n[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:n[c-1].trim(),classes:n[c].trim()};break;case 36:this.$={stmt:"style",id:n[c-1].trim(),styleClass:n[c].trim()};break;case 37:this.$={stmt:"applyClass",id:n[c-1].trim(),styleClass:n[c].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:n[c].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:n[c-2].trim(),classes:[n[c].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:t,5:s,6:r},{1:[3]},{3:5,4:t,5:s,6:r},{3:6,4:t,5:s,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:l,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:u,19:m,22:S,24:C,25:v,26:D,27:w,28:x,29:L,32:25,33:h,35:E,37:N,38:O,41:j,45:P,48:Y,51:et,52:st,53:it,54:nt,57:H},e(f,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:g,17:u,19:m,22:S,24:C,25:v,26:D,27:w,28:x,29:L,32:25,33:h,35:E,37:N,38:O,41:j,45:P,48:Y,51:et,52:st,53:it,54:nt,57:H},e(f,[2,7]),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(f,[2,11]),e(f,[2,12],{14:[1,40],15:[1,41]}),e(f,[2,16]),{18:[1,42]},e(f,[2,18],{20:[1,43]}),{23:[1,44]},e(f,[2,22]),e(f,[2,23]),e(f,[2,24]),e(f,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(f,[2,28]),{34:[1,49]},{36:[1,50]},e(f,[2,31]),{13:51,24:C,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(rt,[2,44],{58:[1,56]}),e(rt,[2,45],{58:[1,57]}),e(f,[2,38]),e(f,[2,39]),e(f,[2,40]),e(f,[2,41]),e(f,[2,6]),e(f,[2,13]),{13:58,24:C,57:H},e(f,[2,17]),e(Et,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(f,[2,29]),e(f,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(f,[2,14],{14:[1,71]}),{4:o,5:l,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:u,19:m,21:[1,72],22:S,24:C,25:v,26:D,27:w,28:x,29:L,32:25,33:h,35:E,37:N,38:O,41:j,45:P,48:Y,51:et,52:st,53:it,54:nt,57:H},e(f,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),e(rt,[2,46]),e(rt,[2,47]),e(f,[2,15]),e(f,[2,19]),e(Et,i,{7:78}),e(f,[2,26]),e(f,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:l,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:u,19:m,21:[1,81],22:S,24:C,25:v,26:D,27:w,28:x,29:L,32:25,33:h,35:E,37:N,38:O,41:j,45:P,48:Y,51:et,52:st,53:it,54:nt,57:H},e(f,[2,32]),e(f,[2,33]),e(f,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:d(function(a,y){if(!y.recoverable){var p=new Error(a);throw p.hash=y,p}this.trace(a)},"parseError"),parse:d(function(a){var y=this,p=[0],T=[],_=[null],n=[],q=this.table,c="",z=0,X=0,ot=n.slice.call(arguments,1),b=Object.create(this.lexer),B={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(B.yy[gt]=this.yy[gt]);b.setInput(a,B.yy),B.yy.lexer=b,B.yy.parser=this,b.yylloc===void 0&&(b.yylloc={});var ft=b.yylloc;n.push(ft);var qt=b.options&&b.options.ranges;function Ct(){var A;return typeof(A=T.pop()||b.lex()||1)!="number"&&(A instanceof Array&&(A=(T=A).pop()),A=y.symbols_[A]||A),A}typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,d(function(A){p.length=p.length-2*A,_.length=_.length-A,n.length=n.length-A},"popStack"),d(Ct,"lex");for(var $,M,I,Dt,ct,F,xt,lt,V={};;){if(M=p[p.length-1],this.defaultActions[M]?I=this.defaultActions[M]:($==null&&($=Ct()),I=q[M]&&q[M][$]),I===void 0||!I.length||!I[0]){var $t="";for(ct in lt=[],q[M])this.terminals_[ct]&&ct>2&<.push("'"+this.terminals_[ct]+"'");$t=b.showPosition?"Parse error on line "+(z+1)+`:
|
|
2
|
+
`+b.showPosition()+`
|
|
3
|
+
Expecting `+lt.join(", ")+", got '"+(this.terminals_[$]||$)+"'":"Parse error on line "+(z+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError($t,{text:b.match,token:this.terminals_[$]||$,line:b.yylineno,loc:ft,expected:lt})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+$);switch(I[0]){case 1:p.push($),_.push(b.yytext),n.push(b.yylloc),p.push(I[1]),$=null,X=b.yyleng,c=b.yytext,z=b.yylineno,ft=b.yylloc;break;case 2:if(F=this.productions_[I[1]][1],V.$=_[_.length-F],V._$={first_line:n[n.length-(F||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(F||1)].first_column,last_column:n[n.length-1].last_column},qt&&(V._$.range=[n[n.length-(F||1)].range[0],n[n.length-1].range[1]]),(Dt=this.performAction.apply(V,[c,X,z,B.yy,I[1],_,n].concat(ot)))!==void 0)return Dt;F&&(p=p.slice(0,-1*F*2),_=_.slice(0,-1*F),n=n.slice(0,-1*F)),p.push(this.productions_[I[1]][0]),_.push(V.$),n.push(V._$),xt=q[p[p.length-2]][p[p.length-1]],p.push(xt);break;case 3:return!0}}return!0},"parse")},Kt=function(){return{EOF:1,parseError:d(function(a,y){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,y)},"parseError"),setInput:d(function(a,y){return this.yy=y||this.yy||{},this._input=a,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:d(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:d(function(a){var y=a.length,p=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var T=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),p.length-1&&(this.yylineno-=p.length-1);var _=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:p?(p.length===T.length?this.yylloc.first_column:0)+T[T.length-p.length].length-p[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:d(function(a){this.unput(this.match.slice(a))},"less"),pastInput:d(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var a=this.pastInput(),y=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
5
|
-
`+y+"^"},"showPosition"),test_match:d(function(a,y){var p,
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var a=this.next();return a||this.lex()},"lex"),begin:d(function(a){this.conditionStack.push(a)},"begin"),popState:d(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:d(function(a){this.begin(a)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(a,y,p,k){switch(p){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),y.yytext=y.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),y.yytext=y.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),y.yytext=y.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),y.yytext=y.yytext.substr(2).trim(),31;case 70:return this.popState(),y.yytext=y.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return y.yytext=y.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function at(){this.yy={}}return yt.lexer=Kt,d(at,"Parser"),at.prototype=yt,yt.Parser=at,new at}();mt.parser=mt;var he=mt,J="state",K="root",St="relation",Q="default",vt="divider",It="fill:none",At="fill: #333",Lt="text",wt="normal",kt="rect",Tt="rectWithTitle",Nt="divider",Ot="roundedWithTitle",Z="statediagram",de=`${Z}-state`,Rt="transition",ue=`${Rt} note-edge`,pe=`${Z}-note`,ye=`${Z}-cluster`,ge=`${Z}-cluster-alt`,Bt="parent",Ft="note",_t="----",fe=`${_t}${Ft}`,Pt=`${_t}${Bt}`,Yt=d((e,t="TB")=>{if(!e.doc)return t;let s=t;for(const r of e.doc)r.stmt==="dir"&&(s=r.value);return s},"getDir"),me={getClasses:d(function(e,t){return t.db.getClasses()},"getClasses"),draw:d(async function(e,t,s,r){b.info("REF0:"),b.info("Drawing state diagram (v2)",t);const{securityLevel:i,state:o,layout:l}=R();r.db.extract(r.db.getRootDocV2());const g=r.db.getData(),u=Qt(t,i);g.type=r.type,g.layoutAlgorithm=l,g.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,g.rankSpacing=(o==null?void 0:o.rankSpacing)||50,g.markers=["barb"],g.diagramId=t,await te(g,u);try{(typeof r.db.getLinks=="function"?r.db.getLinks():new Map).forEach((m,S)=>{var h;const C=typeof S=="string"?S:typeof(S==null?void 0:S.id)=="string"?S.id:"";if(!C)return void b.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(S));const v=(h=u.node())==null?void 0:h.querySelectorAll("g");let D;if(v==null||v.forEach(E=>{var O;((O=E.textContent)==null?void 0:O.trim())===C&&(D=E)}),!D)return void b.warn("\u26A0\uFE0F Could not find node matching text:",C);const w=D.parentNode;if(!w)return void b.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",C);const x=document.createElementNS("http://www.w3.org/2000/svg","a"),L=m.url.replace(/^"+|"+$/g,"");if(x.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",L),x.setAttribute("target","_blank"),m.tooltip){const E=m.tooltip.replace(/^"+|"+$/g,"");x.setAttribute("title",E)}w.replaceChild(x,D),x.appendChild(D),b.info("\u{1F517} Wrapped node in <a> tag for:",C,m.url)})}catch(m){b.error("\u274C Error injecting clickable links:",m)}ee.insertTitle(u,"statediagramTitleText",(o==null?void 0:o.titleTopMargin)??25,r.db.getDiagramTitle()),Zt(u,8,Z,(o==null?void 0:o.useMaxWidth)??!0)},"draw"),getDir:Yt},ht=new Map,G=0;function dt(e="",t=0,s="",r=_t){return`state-${e}${s!==null&&s.length>0?`${r}${s}`:""}-${t}`}d(dt,"stateDomId");var Se=d((e,t,s,r,i,o,l,g)=>{b.trace("items",t),t.forEach(u=>{switch(u.stmt){case J:case Q:ut(e,u,s,r,i,o,l,g);break;case St:{ut(e,u.state1,s,r,i,o,l,g),ut(e,u.state2,s,r,i,o,l,g);const m={id:"edge"+G,start:u.state1.id,end:u.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:It,labelStyle:"",label:U.sanitizeText(u.description??"",R()),arrowheadStyle:At,labelpos:"c",labelType:Lt,thickness:wt,classes:Rt,look:l};i.push(m),G++}}})},"setupDoc"),Gt=d((e,t="TB")=>{let s=t;if(e.doc)for(const r of e.doc)r.stmt==="dir"&&(s=r.value);return s},"getDir");function tt(e,t,s){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(i=>{const o=s.get(i);o&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...o.styles])}));const r=e.find(i=>i.id===t.id);r?Object.assign(r,t):e.push(t)}function jt(e){var t;return((t=e==null?void 0:e.classes)==null?void 0:t.join(" "))??""}function zt(e){return(e==null?void 0:e.styles)??[]}d(tt,"insertOrUpdateNode"),d(jt,"getClassesFromDbInfo"),d(zt,"getStylesFromDbInfo");var ut=d((e,t,s,r,i,o,l,g)=>{var D,w,x;const u=t.id,m=s.get(u),S=jt(m),C=zt(m),v=R();if(b.info("dataFetcher parsedItem",t,m,C),u!=="root"){let L=kt;t.start===!0?L="stateStart":t.start===!1&&(L="stateEnd"),t.type!==Q&&(L=t.type),ht.get(u)||ht.set(u,{id:u,shape:L,description:U.sanitizeText(u,v),cssClasses:`${S} ${de}`,cssStyles:C});const h=ht.get(u);t.description&&(Array.isArray(h.description)?(h.shape=Tt,h.description.push(t.description)):(D=h.description)!=null&&D.length&&h.description.length>0?(h.shape=Tt,h.description===u?h.description=[t.description]:h.description=[h.description,t.description]):(h.shape=kt,h.description=t.description),h.description=U.sanitizeTextOrArray(h.description,v)),((w=h.description)==null?void 0:w.length)===1&&h.shape===Tt&&(h.type==="group"?h.shape=Ot:h.shape=kt),!h.type&&t.doc&&(b.info("Setting cluster for XCX",u,Gt(t)),h.type="group",h.isGroup=!0,h.dir=Gt(t),h.shape=t.type===vt?Nt:Ot,h.cssClasses=`${h.cssClasses} ${ye} ${o?ge:""}`);const E={labelStyle:"",shape:h.shape,label:h.description,cssClasses:h.cssClasses,cssCompiledStyles:[],cssStyles:h.cssStyles,id:u,dir:h.dir,domId:dt(u,G),type:h.type,isGroup:h.type==="group",padding:8,rx:10,ry:10,look:l};if(E.shape===Nt&&(E.label=""),e&&e.id!=="root"&&(b.trace("Setting node ",u," to be child of its parent ",e.id),E.parentId=e.id),E.centerLabel=!0,t.note){const N={labelStyle:"",shape:"note",label:t.note.text,cssClasses:pe,cssStyles:[],cssCompiledStyles:[],id:u+fe+"-"+G,domId:dt(u,G,Ft),type:h.type,isGroup:h.type==="group",padding:(x=v.flowchart)==null?void 0:x.padding,look:l,position:t.note.position},O=u+Pt,j={labelStyle:"",shape:"noteGroup",label:t.note.text,cssClasses:h.cssClasses,cssStyles:[],id:u+Pt,domId:dt(u,G,Bt),type:"group",isGroup:!0,padding:16,look:l,position:t.note.position};G++,j.id=O,N.parentId=O,tt(r,j,g),tt(r,N,g),tt(r,E,g);let P=u,Y=N.id;t.note.position==="left of"&&(P=N.id,Y=u),i.push({id:P+"-"+Y,start:P,end:Y,arrowhead:"none",arrowTypeEnd:"",style:It,labelStyle:"",classes:ue,arrowheadStyle:At,labelpos:"c",labelType:Lt,thickness:wt,look:l})}else tt(r,E,g)}t.doc&&(b.trace("Adding nodes children "),Se(t,t.doc,s,r,i,!o,l,g))},"dataFetcher"),ke=d(()=>{ht.clear(),G=0},"reset"),bt="[*]",Mt="start",Ut="[*]",Wt="end",Ht="color",Xt="fill",Te="bgFill",_e=",",Vt=d(()=>new Map,"newClassesList"),Jt=d(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),pt=d(e=>JSON.parse(JSON.stringify(e)),"clone"),be=(W=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Vt(),this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=se,this.setAccTitle=ie,this.getAccDescription=ne,this.setAccDescription=re,this.setDiagramTitle=ae,this.getDiagramTitle=oe,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case J:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case St:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}const s=this.getStates(),r=R();ke(),ut(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,r.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const s=t.id.trim().split(","),r=t.styleClass.split(",");for(const i of s){let o=this.getState(i);if(!o){const l=i.trim();this.addState(l),o=this.getState(l)}o&&(o.styles=r.map(l=>{var g;return(g=l.replace(/;/g,""))==null?void 0:g.trim()}))}}setRootDoc(t){b.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,s,r){if(s.stmt===St)return this.docTranslator(t,s.state1,!0),void this.docTranslator(t,s.state2,!1);if(s.stmt===J&&(s.id===bt?(s.id=t.id+(r?"_start":"_end"),s.start=r):s.id=s.id.trim()),s.stmt!==K&&s.stmt!==J||!s.doc)return;const i=[];let o=[];for(const l of s.doc)if(l.type===vt){const g=pt(l);g.doc=pt(o),i.push(g),o=[]}else o.push(l);if(i.length>0&&o.length>0){const l={stmt:J,id:ce(),type:"divider",doc:pt(o)};i.push(pt(l)),s.doc=i}s.doc.forEach(l=>this.docTranslator(s,l,!0))}getRootDocV2(){return this.docTranslator({id:K,stmt:K},{id:K,stmt:K,doc:this.rootDoc},!0),{id:K,doc:this.rootDoc}}addState(t,s=Q,r=void 0,i=void 0,o=void 0,l=void 0,g=void 0,u=void 0){const m=t==null?void 0:t.trim();if(this.currentDocument.states.has(m)){const S=this.currentDocument.states.get(m);if(!S)throw new Error(`State not found: ${m}`);S.doc||(S.doc=r),S.type||(S.type=s)}else b.info("Adding state ",m,i),this.currentDocument.states.set(m,{stmt:J,id:m,descriptions:[],type:s,doc:r,note:o,classes:[],styles:[],textStyles:[]});if(i&&(b.info("Setting state description",m,i),(Array.isArray(i)?i:[i]).forEach(S=>this.addDescription(m,S.trim()))),o){const S=this.currentDocument.states.get(m);if(!S)throw new Error(`State not found: ${m}`);S.note=o,S.note.text=U.sanitizeText(S.note.text,R())}l&&(b.info("Setting state classes",m,l),(Array.isArray(l)?l:[l]).forEach(S=>this.setCssClass(m,S.trim()))),g&&(b.info("Setting state styles",m,g),(Array.isArray(g)?g:[g]).forEach(S=>this.setStyle(m,S.trim()))),u&&(b.info("Setting state styles",m,g),(Array.isArray(u)?u:[u]).forEach(S=>this.setTextStyle(m,S.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Vt(),t||(this.links=new Map,le())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){b.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,s,r){this.links.set(t,{url:s,tooltip:r}),b.warn("Adding link",t,s,r)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===bt?(this.startEndCount++,`${Mt}${this.startEndCount}`):t}startTypeIfNeeded(t="",s=Q){return t===bt?Mt:s}endIdIfNeeded(t=""){return t===Ut?(this.startEndCount++,`${Wt}${this.startEndCount}`):t}endTypeIfNeeded(t="",s=Q){return t===Ut?Wt:s}addRelationObjs(t,s,r=""){const i=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type),l=this.startIdIfNeeded(s.id.trim()),g=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(i,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(l,g,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:i,id2:l,relationTitle:U.sanitizeText(r,R())})}addRelation(t,s,r){if(typeof t=="object"&&typeof s=="object")this.addRelationObjs(t,s,r);else if(typeof t=="string"&&typeof s=="string"){const i=this.startIdIfNeeded(t.trim()),o=this.startTypeIfNeeded(t),l=this.endIdIfNeeded(s.trim()),g=this.endTypeIfNeeded(s);this.addState(i,o),this.addState(l,g),this.currentDocument.relations.push({id1:i,id2:l,relationTitle:r?U.sanitizeText(r,R()):void 0})}}addDescription(t,s){var o;const r=this.currentDocument.states.get(t),i=s.startsWith(":")?s.replace(":","").trim():s;(o=r==null?void 0:r.descriptions)==null||o.push(U.sanitizeText(i,R()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,s=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const r=this.classes.get(t);s&&r&&s.split(_e).forEach(i=>{const o=i.replace(/([^;]*);/,"$1").trim();if(RegExp(Ht).exec(i)){const l=o.replace(Xt,Te).replace(Ht,Xt);r.textStyles.push(l)}r.styles.push(o)})}getClasses(){return this.classes}setCssClass(t,s){t.split(",").forEach(r=>{var o;let i=this.getState(r);if(!i){const l=r.trim();this.addState(l),i=this.getState(l)}(o=i==null?void 0:i.classes)==null||o.push(s)})}setStyle(t,s){var r,i;(i=(r=this.getState(t))==null?void 0:r.styles)==null||i.push(s)}setTextStyle(t,s){var r,i;(i=(r=this.getState(t))==null?void 0:r.textStyles)==null||i.push(s)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt==="dir")}getDirection(){var t;return((t=this.getDirectionStatement())==null?void 0:t.value)??"TB"}setDirection(t){const s=this.getDirectionStatement();s?s.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=R();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Yt(this.getRootDocV2())}}getConfig(){return R().state}},d(W,"StateDB"),W.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},W),Ee=d(e=>`
|
|
5
|
+
`+y+"^"},"showPosition"),test_match:d(function(a,y){var p,T,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),(T=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],p=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var n in _)this[n]=_[n];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;var a,y,p,T;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),n=0;n<_.length;n++)if((p=this._input.match(this.rules[_[n]]))&&(!y||p[0].length>y[0].length)){if(y=p,T=n,this.options.backtrack_lexer){if((a=this.test_match(p,_[n]))!==!1)return a;if(this._backtrack){y=!1;continue}return!1}if(!this.options.flex)break}return y?(a=this.test_match(y,_[T]))!==!1&&a:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var a=this.next();return a||this.lex()},"lex"),begin:d(function(a){this.conditionStack.push(a)},"begin"),popState:d(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:d(function(a){this.begin(a)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(a,y,p,T){switch(p){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),y.yytext=y.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),y.yytext=y.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),y.yytext=y.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),y.yytext=y.yytext.substr(2).trim(),31;case 70:return this.popState(),y.yytext=y.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return y.yytext=y.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function at(){this.yy={}}return yt.lexer=Kt,d(at,"Parser"),at.prototype=yt,yt.Parser=at,new at}();mt.parser=mt;var he=mt,J="state",K="root",St="relation",Q="default",vt="divider",It="fill:none",At="fill: #333",Lt="text",wt="normal",Tt="rect",_t="rectWithTitle",Nt="divider",Ot="roundedWithTitle",Z="statediagram",de=`${Z}-state`,Rt="transition",ue=`${Rt} note-edge`,pe=`${Z}-note`,ye=`${Z}-cluster`,ge=`${Z}-cluster-alt`,Bt="parent",Ft="note",bt="----",fe=`${bt}${Ft}`,Pt=`${bt}${Bt}`,Yt=d((e,t="TB")=>{if(!e.doc)return t;let s=t;for(const r of e.doc)r.stmt==="dir"&&(s=r.value);return s},"getDir"),me={getClasses:d(function(e,t){return t.db.getClasses()},"getClasses"),draw:d(async function(e,t,s,r){k.info("REF0:"),k.info("Drawing state diagram (v2)",t);const{securityLevel:i,state:o,layout:l}=R();r.db.extract(r.db.getRootDocV2());const g=r.db.getData(),u=Qt(t,i);g.type=r.type,g.layoutAlgorithm=l,g.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,g.rankSpacing=(o==null?void 0:o.rankSpacing)||50,g.markers=["barb"],g.diagramId=t,await te(g,u);try{(typeof r.db.getLinks=="function"?r.db.getLinks():new Map).forEach((m,S)=>{var h;const C=typeof S=="string"?S:typeof(S==null?void 0:S.id)=="string"?S.id:"";if(!C)return void k.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(S));const v=(h=u.node())==null?void 0:h.querySelectorAll("g");let D;if(v==null||v.forEach(E=>{var O;((O=E.textContent)==null?void 0:O.trim())===C&&(D=E)}),!D)return void k.warn("\u26A0\uFE0F Could not find node matching text:",C);const w=D.parentNode;if(!w)return void k.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",C);const x=document.createElementNS("http://www.w3.org/2000/svg","a"),L=m.url.replace(/^"+|"+$/g,"");if(x.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",L),x.setAttribute("target","_blank"),m.tooltip){const E=m.tooltip.replace(/^"+|"+$/g,"");x.setAttribute("title",E)}w.replaceChild(x,D),x.appendChild(D),k.info("\u{1F517} Wrapped node in <a> tag for:",C,m.url)})}catch(m){k.error("\u274C Error injecting clickable links:",m)}ee.insertTitle(u,"statediagramTitleText",(o==null?void 0:o.titleTopMargin)??25,r.db.getDiagramTitle()),Zt(u,8,Z,(o==null?void 0:o.useMaxWidth)??!0)},"draw"),getDir:Yt},ht=new Map,G=0;function dt(e="",t=0,s="",r=bt){return`state-${e}${s!==null&&s.length>0?`${r}${s}`:""}-${t}`}d(dt,"stateDomId");var Se=d((e,t,s,r,i,o,l,g)=>{k.trace("items",t),t.forEach(u=>{switch(u.stmt){case J:case Q:ut(e,u,s,r,i,o,l,g);break;case St:{ut(e,u.state1,s,r,i,o,l,g),ut(e,u.state2,s,r,i,o,l,g);const m={id:"edge"+G,start:u.state1.id,end:u.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:It,labelStyle:"",label:U.sanitizeText(u.description??"",R()),arrowheadStyle:At,labelpos:"c",labelType:Lt,thickness:wt,classes:Rt,look:l};i.push(m),G++}}})},"setupDoc"),Gt=d((e,t="TB")=>{let s=t;if(e.doc)for(const r of e.doc)r.stmt==="dir"&&(s=r.value);return s},"getDir");function tt(e,t,s){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(i=>{const o=s.get(i);o&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...o.styles])}));const r=e.find(i=>i.id===t.id);r?Object.assign(r,t):e.push(t)}function jt(e){var t;return((t=e==null?void 0:e.classes)==null?void 0:t.join(" "))??""}function zt(e){return(e==null?void 0:e.styles)??[]}d(tt,"insertOrUpdateNode"),d(jt,"getClassesFromDbInfo"),d(zt,"getStylesFromDbInfo");var ut=d((e,t,s,r,i,o,l,g)=>{var D,w,x;const u=t.id,m=s.get(u),S=jt(m),C=zt(m),v=R();if(k.info("dataFetcher parsedItem",t,m,C),u!=="root"){let L=Tt;t.start===!0?L="stateStart":t.start===!1&&(L="stateEnd"),t.type!==Q&&(L=t.type),ht.get(u)||ht.set(u,{id:u,shape:L,description:U.sanitizeText(u,v),cssClasses:`${S} ${de}`,cssStyles:C});const h=ht.get(u);t.description&&(Array.isArray(h.description)?(h.shape=_t,h.description.push(t.description)):(D=h.description)!=null&&D.length&&h.description.length>0?(h.shape=_t,h.description===u?h.description=[t.description]:h.description=[h.description,t.description]):(h.shape=Tt,h.description=t.description),h.description=U.sanitizeTextOrArray(h.description,v)),((w=h.description)==null?void 0:w.length)===1&&h.shape===_t&&(h.type==="group"?h.shape=Ot:h.shape=Tt),!h.type&&t.doc&&(k.info("Setting cluster for XCX",u,Gt(t)),h.type="group",h.isGroup=!0,h.dir=Gt(t),h.shape=t.type===vt?Nt:Ot,h.cssClasses=`${h.cssClasses} ${ye} ${o?ge:""}`);const E={labelStyle:"",shape:h.shape,label:h.description,cssClasses:h.cssClasses,cssCompiledStyles:[],cssStyles:h.cssStyles,id:u,dir:h.dir,domId:dt(u,G),type:h.type,isGroup:h.type==="group",padding:8,rx:10,ry:10,look:l};if(E.shape===Nt&&(E.label=""),e&&e.id!=="root"&&(k.trace("Setting node ",u," to be child of its parent ",e.id),E.parentId=e.id),E.centerLabel=!0,t.note){const N={labelStyle:"",shape:"note",label:t.note.text,cssClasses:pe,cssStyles:[],cssCompiledStyles:[],id:u+fe+"-"+G,domId:dt(u,G,Ft),type:h.type,isGroup:h.type==="group",padding:(x=v.flowchart)==null?void 0:x.padding,look:l,position:t.note.position},O=u+Pt,j={labelStyle:"",shape:"noteGroup",label:t.note.text,cssClasses:h.cssClasses,cssStyles:[],id:u+Pt,domId:dt(u,G,Bt),type:"group",isGroup:!0,padding:16,look:l,position:t.note.position};G++,j.id=O,N.parentId=O,tt(r,j,g),tt(r,N,g),tt(r,E,g);let P=u,Y=N.id;t.note.position==="left of"&&(P=N.id,Y=u),i.push({id:P+"-"+Y,start:P,end:Y,arrowhead:"none",arrowTypeEnd:"",style:It,labelStyle:"",classes:ue,arrowheadStyle:At,labelpos:"c",labelType:Lt,thickness:wt,look:l})}else tt(r,E,g)}t.doc&&(k.trace("Adding nodes children "),Se(t,t.doc,s,r,i,!o,l,g))},"dataFetcher"),Te=d(()=>{ht.clear(),G=0},"reset"),kt="[*]",Mt="start",Ut="[*]",Wt="end",Ht="color",Xt="fill",_e="bgFill",be=",",Vt=d(()=>new Map,"newClassesList"),Jt=d(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),pt=d(e=>JSON.parse(JSON.stringify(e)),"clone"),ke=(W=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Vt(),this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=se,this.setAccTitle=ie,this.getAccDescription=ne,this.setAccDescription=re,this.setDiagramTitle=ae,this.getDiagramTitle=oe,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case J:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case St:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}const s=this.getStates(),r=R();Te(),ut(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,r.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const s=t.id.trim().split(","),r=t.styleClass.split(",");for(const i of s){let o=this.getState(i);if(!o){const l=i.trim();this.addState(l),o=this.getState(l)}o&&(o.styles=r.map(l=>{var g;return(g=l.replace(/;/g,""))==null?void 0:g.trim()}))}}setRootDoc(t){k.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,s,r){if(s.stmt===St)return this.docTranslator(t,s.state1,!0),void this.docTranslator(t,s.state2,!1);if(s.stmt===J&&(s.id===kt?(s.id=t.id+(r?"_start":"_end"),s.start=r):s.id=s.id.trim()),s.stmt!==K&&s.stmt!==J||!s.doc)return;const i=[];let o=[];for(const l of s.doc)if(l.type===vt){const g=pt(l);g.doc=pt(o),i.push(g),o=[]}else o.push(l);if(i.length>0&&o.length>0){const l={stmt:J,id:ce(),type:"divider",doc:pt(o)};i.push(pt(l)),s.doc=i}s.doc.forEach(l=>this.docTranslator(s,l,!0))}getRootDocV2(){return this.docTranslator({id:K,stmt:K},{id:K,stmt:K,doc:this.rootDoc},!0),{id:K,doc:this.rootDoc}}addState(t,s=Q,r=void 0,i=void 0,o=void 0,l=void 0,g=void 0,u=void 0){const m=t==null?void 0:t.trim();if(this.currentDocument.states.has(m)){const S=this.currentDocument.states.get(m);if(!S)throw new Error(`State not found: ${m}`);S.doc||(S.doc=r),S.type||(S.type=s)}else k.info("Adding state ",m,i),this.currentDocument.states.set(m,{stmt:J,id:m,descriptions:[],type:s,doc:r,note:o,classes:[],styles:[],textStyles:[]});if(i&&(k.info("Setting state description",m,i),(Array.isArray(i)?i:[i]).forEach(S=>this.addDescription(m,S.trim()))),o){const S=this.currentDocument.states.get(m);if(!S)throw new Error(`State not found: ${m}`);S.note=o,S.note.text=U.sanitizeText(S.note.text,R())}l&&(k.info("Setting state classes",m,l),(Array.isArray(l)?l:[l]).forEach(S=>this.setCssClass(m,S.trim()))),g&&(k.info("Setting state styles",m,g),(Array.isArray(g)?g:[g]).forEach(S=>this.setStyle(m,S.trim()))),u&&(k.info("Setting state styles",m,g),(Array.isArray(u)?u:[u]).forEach(S=>this.setTextStyle(m,S.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Vt(),t||(this.links=new Map,le())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){k.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,s,r){this.links.set(t,{url:s,tooltip:r}),k.warn("Adding link",t,s,r)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===kt?(this.startEndCount++,`${Mt}${this.startEndCount}`):t}startTypeIfNeeded(t="",s=Q){return t===kt?Mt:s}endIdIfNeeded(t=""){return t===Ut?(this.startEndCount++,`${Wt}${this.startEndCount}`):t}endTypeIfNeeded(t="",s=Q){return t===Ut?Wt:s}addRelationObjs(t,s,r=""){const i=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type),l=this.startIdIfNeeded(s.id.trim()),g=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(i,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(l,g,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:i,id2:l,relationTitle:U.sanitizeText(r,R())})}addRelation(t,s,r){if(typeof t=="object"&&typeof s=="object")this.addRelationObjs(t,s,r);else if(typeof t=="string"&&typeof s=="string"){const i=this.startIdIfNeeded(t.trim()),o=this.startTypeIfNeeded(t),l=this.endIdIfNeeded(s.trim()),g=this.endTypeIfNeeded(s);this.addState(i,o),this.addState(l,g),this.currentDocument.relations.push({id1:i,id2:l,relationTitle:r?U.sanitizeText(r,R()):void 0})}}addDescription(t,s){var o;const r=this.currentDocument.states.get(t),i=s.startsWith(":")?s.replace(":","").trim():s;(o=r==null?void 0:r.descriptions)==null||o.push(U.sanitizeText(i,R()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,s=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const r=this.classes.get(t);s&&r&&s.split(be).forEach(i=>{const o=i.replace(/([^;]*);/,"$1").trim();if(RegExp(Ht).exec(i)){const l=o.replace(Xt,_e).replace(Ht,Xt);r.textStyles.push(l)}r.styles.push(o)})}getClasses(){return this.classes}setCssClass(t,s){t.split(",").forEach(r=>{var o;let i=this.getState(r);if(!i){const l=r.trim();this.addState(l),i=this.getState(l)}(o=i==null?void 0:i.classes)==null||o.push(s)})}setStyle(t,s){var r,i;(i=(r=this.getState(t))==null?void 0:r.styles)==null||i.push(s)}setTextStyle(t,s){var r,i;(i=(r=this.getState(t))==null?void 0:r.textStyles)==null||i.push(s)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt==="dir")}getDirection(){var t;return((t=this.getDirectionStatement())==null?void 0:t.value)??"TB"}setDirection(t){const s=this.getDirectionStatement();s?s.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=R();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Yt(this.getRootDocV2())}}getConfig(){return R().state}},d(W,"StateDB"),W.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},W),Ee=d(e=>`
|
|
7
7
|
defs #statediagram-barbEnd {
|
|
8
8
|
fill: ${e.transitionColor};
|
|
9
9
|
stroke: ${e.transitionColor};
|
|
@@ -217,4 +217,4 @@ g.stateGroup line {
|
|
|
217
217
|
font-size: 18px;
|
|
218
218
|
fill: ${e.textColor};
|
|
219
219
|
}
|
|
220
|
-
`,"getStyles");export{
|
|
220
|
+
`,"getStyles");export{ke as S,he as a,me as b,Ee as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,d as g,l as w}from"./mermaid-
|
|
1
|
+
import{_ as a,d as g,l as w}from"./mermaid-TIsLiY_c.js";var x=a((t,e,i,h)=>{t.attr("class",i);const{width:o,height:r,x:d,y:n}=c(t,e);g(t,r,o,h);const s=$(d,n,o,r,e);t.attr("viewBox",s),w.debug(`viewBox configured: ${s} with padding: ${e}`)},"setupViewPortForSVG"),c=a((t,e)=>{var h;const i=((h=t.node())==null?void 0:h.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),$=a((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{x as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var P,M;import{g as Ht}from"./chunk-E2GYISFI-0jprAmfg.js";import{g as Vt}from"./chunk-BFAMUDN2-CNdKrd4t.js";import{s as Jt}from"./chunk-SKB7J2MH-BFb7Z7j2.js";import{_ as A,l as $t,c as F,o as Zt,r as te,u as xt,b as ee,a as se,s as ie,g as ne,p as re,q as ae,j as $,y as ue,x as le,h as oe,R}from"./mermaid-CymwcI3a.js";import{s as V}from"./transform-B8bpuzxV.js";var It=function(){var s=A(function(o,y,p,r){for(p=p||{},r=o.length;r--;p[o[r]]=y);return p},"o"),i=[1,18],n=[1,19],a=[1,20],u=[1,41],l=[1,42],c=[1,26],d=[1,24],C=[1,25],B=[1,32],pt=[1,33],dt=[1,34],g=[1,45],At=[1,35],yt=[1,36],Ct=[1,37],mt=[1,38],gt=[1,27],bt=[1,28],Et=[1,29],Tt=[1,30],ft=[1,31],b=[1,44],E=[1,46],T=[1,43],k=[1,47],kt=[1,9],h=[1,8,9],J=[1,58],Z=[1,59],tt=[1,60],et=[1,61],st=[1,62],Ft=[1,63],Dt=[1,64],it=[1,8,9,41],Ot=[1,76],v=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],nt=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],rt=[13,58,84,99,101,102],G=[13,58,71,72,84,99,101,102],vt=[13,58,66,67,68,69,70,84,99,101,102],Bt=[1,98],U=[1,115],z=[1,107],K=[1,113],Y=[1,108],W=[1,109],j=[1,110],Q=[1,111],X=[1,112],q=[1,114],wt=[22,58,59,80,84,85,86,87,88,89],_t=[1,8,9,39,41,44],at=[1,8,9,22],Rt=[1,143],Pt=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],St={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:A(function(o,y,p,r,m,t,H){var e=t.length-1;switch(m){case 8:this.$=t[e-1];break;case 9:case 12:case 14:this.$=t[e];break;case 10:case 13:this.$=t[e-2]+"."+t[e];break;case 11:case 15:case 95:this.$=t[e-1]+t[e];break;case 16:case 17:this.$=t[e-1]+"~"+t[e]+"~";break;case 18:r.addRelation(t[e]);break;case 19:t[e-1].title=r.cleanupLabel(t[e]),r.addRelation(t[e-1]);break;case 30:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 33:r.addClassesToNamespace(t[e-3],t[e-1]);break;case 34:r.addClassesToNamespace(t[e-4],t[e-1]);break;case 35:this.$=t[e],r.addNamespace(t[e]);break;case 36:case 46:case 59:case 92:this.$=[t[e]];break;case 37:this.$=[t[e-1]];break;case 38:t[e].unshift(t[e-2]),this.$=t[e];break;case 40:r.setCssClass(t[e-2],t[e]);break;case 41:r.addMembers(t[e-3],t[e-1]);break;case 42:r.setCssClass(t[e-5],t[e-3]),r.addMembers(t[e-5],t[e-1]);break;case 43:this.$=t[e],r.addClass(t[e]);break;case 44:this.$=t[e-1],r.addClass(t[e-1]),r.setClassLabel(t[e-1],t[e]);break;case 45:r.addAnnotation(t[e],t[e-2]);break;case 47:t[e].push(t[e-1]),this.$=t[e];break;case 48:case 50:case 51:break;case 49:r.addMember(t[e-1],r.cleanupLabel(t[e]));break;case 52:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 54:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 55:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 56:r.addNote(t[e],t[e-1]);break;case 57:r.addNote(t[e]);break;case 58:this.$=t[e-2],r.defineClass(t[e-1],t[e]);break;case 60:this.$=t[e-2].concat([t[e]]);break;case 61:r.setDirection("TB");break;case 62:r.setDirection("BT");break;case 63:r.setDirection("RL");break;case 64:r.setDirection("LR");break;case 65:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 66:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 67:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 69:this.$=r.relationType.AGGREGATION;break;case 70:this.$=r.relationType.EXTENSION;break;case 71:this.$=r.relationType.COMPOSITION;break;case 72:this.$=r.relationType.DEPENDENCY;break;case 73:this.$=r.relationType.LOLLIPOP;break;case 74:this.$=r.lineType.LINE;break;case 75:this.$=r.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[e-2],r.setClickEvent(t[e-1],t[e]);break;case 77:case 83:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 78:this.$=t[e-2],r.setLink(t[e-1],t[e]);break;case 79:this.$=t[e-3],r.setLink(t[e-2],t[e-1],t[e]);break;case 80:this.$=t[e-3],r.setLink(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 81:this.$=t[e-4],r.setLink(t[e-3],t[e-2],t[e]),r.setTooltip(t[e-3],t[e-1]);break;case 84:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1],t[e]);break;case 85:this.$=t[e-4],r.setClickEvent(t[e-3],t[e-2],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 86:this.$=t[e-3],r.setLink(t[e-2],t[e]);break;case 87:this.$=t[e-4],r.setLink(t[e-3],t[e-1],t[e]);break;case 88:this.$=t[e-4],r.setLink(t[e-3],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 89:this.$=t[e-5],r.setLink(t[e-4],t[e-2],t[e]),r.setTooltip(t[e-4],t[e-1]);break;case 90:this.$=t[e-2],r.setCssStyle(t[e-1],t[e]);break;case 91:r.setCssClass(t[e-1],t[e]);break;case 93:t[e-2].push(t[e]),this.$=t[e-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:a,38:22,42:u,43:23,46:l,47:c,49:d,50:C,52:B,54:pt,55:dt,58:g,60:At,61:yt,62:Ct,63:mt,73:gt,74:bt,76:Et,80:Tt,81:ft,84:b,99:E,101:T,102:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(kt,[2,5],{8:[1,48]}),{8:[1,49]},s(h,[2,18],{22:[1,50]}),s(h,[2,20]),s(h,[2,21]),s(h,[2,22]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),{34:[1,51]},{36:[1,52]},s(h,[2,32]),s(h,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:J,67:Z,68:tt,69:et,70:st,71:Ft,72:Dt}),{39:[1,65]},s(it,[2,39],{39:[1,67],44:[1,66]}),s(h,[2,50]),s(h,[2,51]),{16:68,58:g,84:b,99:E,101:T},{16:39,18:69,19:40,58:g,84:b,99:E,101:T,102:k},{16:39,18:70,19:40,58:g,84:b,99:E,101:T,102:k},{16:39,18:71,19:40,58:g,84:b,99:E,101:T,102:k},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:g,84:b,99:E,101:T,102:k},{13:Ot,53:75},{56:77,58:[1,78]},s(h,[2,61]),s(h,[2,62]),s(h,[2,63]),s(h,[2,64]),s(v,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:g,84:b,99:E,101:T,102:k}),s(v,[2,14],{20:[1,82]}),{15:83,16:84,58:g,84:b,99:E,101:T},{16:39,18:85,19:40,58:g,84:b,99:E,101:T,102:k},s(nt,[2,118]),s(nt,[2,119]),s(nt,[2,120]),s(nt,[2,121]),s([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),s(kt,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:n,37:a,42:u,46:l,47:c,49:d,50:C,52:B,54:pt,55:dt,58:g,60:At,61:yt,62:Ct,63:mt,73:gt,74:bt,76:Et,80:Tt,81:ft,84:b,99:E,101:T,102:k}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:a,38:22,42:u,43:23,46:l,47:c,49:d,50:C,52:B,54:pt,55:dt,58:g,60:At,61:yt,62:Ct,63:mt,73:gt,74:bt,76:Et,80:Tt,81:ft,84:b,99:E,101:T,102:k},s(h,[2,19]),s(h,[2,30]),s(h,[2,31]),{13:[1,89],16:39,18:88,19:40,58:g,84:b,99:E,101:T,102:k},{51:90,64:56,65:57,66:J,67:Z,68:tt,69:et,70:st,71:Ft,72:Dt},s(h,[2,49]),{65:91,71:Ft,72:Dt},s(rt,[2,68],{64:92,66:J,67:Z,68:tt,69:et,70:st}),s(G,[2,69]),s(G,[2,70]),s(G,[2,71]),s(G,[2,72]),s(G,[2,73]),s(vt,[2,74]),s(vt,[2,75]),{8:[1,94],24:95,40:93,43:23,46:l},{16:96,58:g,84:b,99:E,101:T},{45:97,49:Bt},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:U,57:104,58:z,80:K,82:105,83:106,84:Y,85:W,86:j,87:Q,88:X,89:q},{58:[1,116]},{13:Ot,53:117},s(h,[2,57]),s(h,[2,123]),{22:U,57:118,58:z,59:[1,119],80:K,82:105,83:106,84:Y,85:W,86:j,87:Q,88:X,89:q},s(wt,[2,59]),{16:39,18:120,19:40,58:g,84:b,99:E,101:T,102:k},s(v,[2,15]),s(v,[2,16]),s(v,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:g,84:b,99:E,101:T},s(_t,[2,43],{11:123,12:[1,124]}),s(kt,[2,7]),{9:[1,125]},s(at,[2,52]),{16:39,18:126,19:40,58:g,84:b,99:E,101:T,102:k},{13:[1,128],16:39,18:127,19:40,58:g,84:b,99:E,101:T,102:k},s(rt,[2,67],{64:129,66:J,67:Z,68:tt,69:et,70:st}),s(rt,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:l},{8:[1,132],41:[2,36]},s(it,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Bt},{16:39,18:136,19:40,58:g,84:b,99:E,101:T,102:k},s(h,[2,76],{13:[1,137]}),s(h,[2,78],{13:[1,139],75:[1,138]}),s(h,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},s(h,[2,90],{59:Rt}),s(Pt,[2,92],{83:144,22:U,58:z,80:K,84:Y,85:W,86:j,87:Q,88:X,89:q}),s(N,[2,94]),s(N,[2,96]),s(N,[2,97]),s(N,[2,98]),s(N,[2,99]),s(N,[2,100]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(h,[2,91]),s(h,[2,56]),s(h,[2,58],{59:Rt}),{58:[1,145]},s(v,[2,13]),{15:146,16:84,58:g,84:b,99:E,101:T},{39:[2,11]},s(_t,[2,44]),{13:[1,147]},{1:[2,4]},s(at,[2,54]),s(at,[2,53]),{16:39,18:148,19:40,58:g,84:b,99:E,101:T,102:k},s(rt,[2,65]),s(h,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:l},{45:151,49:Bt},s(it,[2,41]),{41:[2,47]},s(h,[2,45]),s(h,[2,77]),s(h,[2,79]),s(h,[2,80],{75:[1,152]}),s(h,[2,83]),s(h,[2,84],{13:[1,153]}),s(h,[2,86],{13:[1,155],75:[1,154]}),{22:U,58:z,80:K,82:156,83:106,84:Y,85:W,86:j,87:Q,88:X,89:q},s(N,[2,95]),s(wt,[2,60]),{39:[2,10]},{14:[1,157]},s(at,[2,55]),s(h,[2,34]),{41:[2,38]},{41:[1,158]},s(h,[2,81]),s(h,[2,85]),s(h,[2,87]),s(h,[2,88],{75:[1,159]}),s(Pt,[2,93],{83:144,22:U,58:z,80:K,84:Y,85:W,86:j,87:Q,88:X,89:q}),s(_t,[2,8]),s(it,[2,42]),s(h,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:A(function(o,y){if(!y.recoverable){var p=new Error(o);throw p.hash=y,p}this.trace(o)},"parseError"),parse:A(function(o){var y=this,p=[0],r=[],m=[null],t=[],H=this.table,e="",lt=0,Mt=0,Xt=t.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(x.yy[Nt]=this.yy[Nt]);f.setInput(o,x.yy),x.yy.lexer=f,x.yy.parser=this,f.yylloc===void 0&&(f.yylloc={});var Lt=f.yylloc;t.push(Lt);var qt=f.options&&f.options.ranges;function Gt(){var S;return typeof(S=r.pop()||f.lex()||1)!="number"&&(S instanceof Array&&(S=(r=S).pop()),S=y.symbols_[S]||S),S}typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,A(function(S){p.length=p.length-2*S,m.length=m.length-S,t.length=t.length-S},"popStack"),A(Gt,"lex");for(var D,I,_,Ut,ot,L,zt,ct,w={};;){if(I=p[p.length-1],this.defaultActions[I]?_=this.defaultActions[I]:(D==null&&(D=Gt()),_=H[I]&&H[I][D]),_===void 0||!_.length||!_[0]){var Kt="";for(ot in ct=[],H[I])this.terminals_[ot]&&ot>2&&ct.push("'"+this.terminals_[ot]+"'");Kt=f.showPosition?"Parse error on line "+(lt+1)+`:
|
|
1
|
+
var P,M;import{g as Ht}from"./chunk-E2GYISFI-BGhna3Tu.js";import{g as Vt}from"./chunk-BFAMUDN2-C6ACh81N.js";import{s as Jt}from"./chunk-SKB7J2MH-B5xc8b3Z.js";import{_ as A,l as $t,c as F,o as Zt,r as te,u as xt,b as ee,a as se,s as ie,g as ne,p as re,q as ae,j as $,y as ue,x as le,h as oe,R}from"./mermaid-TIsLiY_c.js";import{s as V}from"./transform-B8bpuzxV.js";var It=function(){var s=A(function(o,y,p,r){for(p=p||{},r=o.length;r--;p[o[r]]=y);return p},"o"),i=[1,18],n=[1,19],a=[1,20],u=[1,41],l=[1,42],c=[1,26],d=[1,24],C=[1,25],B=[1,32],pt=[1,33],dt=[1,34],g=[1,45],At=[1,35],yt=[1,36],Ct=[1,37],mt=[1,38],gt=[1,27],bt=[1,28],Et=[1,29],Tt=[1,30],ft=[1,31],b=[1,44],E=[1,46],T=[1,43],k=[1,47],kt=[1,9],h=[1,8,9],J=[1,58],Z=[1,59],tt=[1,60],et=[1,61],st=[1,62],Ft=[1,63],Dt=[1,64],it=[1,8,9,41],Ot=[1,76],v=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],nt=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],rt=[13,58,84,99,101,102],G=[13,58,71,72,84,99,101,102],vt=[13,58,66,67,68,69,70,84,99,101,102],Bt=[1,98],U=[1,115],z=[1,107],K=[1,113],Y=[1,108],W=[1,109],j=[1,110],Q=[1,111],X=[1,112],q=[1,114],wt=[22,58,59,80,84,85,86,87,88,89],_t=[1,8,9,39,41,44],at=[1,8,9,22],Rt=[1,143],Pt=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],St={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:A(function(o,y,p,r,m,t,H){var e=t.length-1;switch(m){case 8:this.$=t[e-1];break;case 9:case 12:case 14:this.$=t[e];break;case 10:case 13:this.$=t[e-2]+"."+t[e];break;case 11:case 15:case 95:this.$=t[e-1]+t[e];break;case 16:case 17:this.$=t[e-1]+"~"+t[e]+"~";break;case 18:r.addRelation(t[e]);break;case 19:t[e-1].title=r.cleanupLabel(t[e]),r.addRelation(t[e-1]);break;case 30:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 33:r.addClassesToNamespace(t[e-3],t[e-1]);break;case 34:r.addClassesToNamespace(t[e-4],t[e-1]);break;case 35:this.$=t[e],r.addNamespace(t[e]);break;case 36:case 46:case 59:case 92:this.$=[t[e]];break;case 37:this.$=[t[e-1]];break;case 38:t[e].unshift(t[e-2]),this.$=t[e];break;case 40:r.setCssClass(t[e-2],t[e]);break;case 41:r.addMembers(t[e-3],t[e-1]);break;case 42:r.setCssClass(t[e-5],t[e-3]),r.addMembers(t[e-5],t[e-1]);break;case 43:this.$=t[e],r.addClass(t[e]);break;case 44:this.$=t[e-1],r.addClass(t[e-1]),r.setClassLabel(t[e-1],t[e]);break;case 45:r.addAnnotation(t[e],t[e-2]);break;case 47:t[e].push(t[e-1]),this.$=t[e];break;case 48:case 50:case 51:break;case 49:r.addMember(t[e-1],r.cleanupLabel(t[e]));break;case 52:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 54:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 55:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 56:r.addNote(t[e],t[e-1]);break;case 57:r.addNote(t[e]);break;case 58:this.$=t[e-2],r.defineClass(t[e-1],t[e]);break;case 60:this.$=t[e-2].concat([t[e]]);break;case 61:r.setDirection("TB");break;case 62:r.setDirection("BT");break;case 63:r.setDirection("RL");break;case 64:r.setDirection("LR");break;case 65:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 66:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 67:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 69:this.$=r.relationType.AGGREGATION;break;case 70:this.$=r.relationType.EXTENSION;break;case 71:this.$=r.relationType.COMPOSITION;break;case 72:this.$=r.relationType.DEPENDENCY;break;case 73:this.$=r.relationType.LOLLIPOP;break;case 74:this.$=r.lineType.LINE;break;case 75:this.$=r.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[e-2],r.setClickEvent(t[e-1],t[e]);break;case 77:case 83:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 78:this.$=t[e-2],r.setLink(t[e-1],t[e]);break;case 79:this.$=t[e-3],r.setLink(t[e-2],t[e-1],t[e]);break;case 80:this.$=t[e-3],r.setLink(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 81:this.$=t[e-4],r.setLink(t[e-3],t[e-2],t[e]),r.setTooltip(t[e-3],t[e-1]);break;case 84:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1],t[e]);break;case 85:this.$=t[e-4],r.setClickEvent(t[e-3],t[e-2],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 86:this.$=t[e-3],r.setLink(t[e-2],t[e]);break;case 87:this.$=t[e-4],r.setLink(t[e-3],t[e-1],t[e]);break;case 88:this.$=t[e-4],r.setLink(t[e-3],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 89:this.$=t[e-5],r.setLink(t[e-4],t[e-2],t[e]),r.setTooltip(t[e-4],t[e-1]);break;case 90:this.$=t[e-2],r.setCssStyle(t[e-1],t[e]);break;case 91:r.setCssClass(t[e-1],t[e]);break;case 93:t[e-2].push(t[e]),this.$=t[e-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:a,38:22,42:u,43:23,46:l,47:c,49:d,50:C,52:B,54:pt,55:dt,58:g,60:At,61:yt,62:Ct,63:mt,73:gt,74:bt,76:Et,80:Tt,81:ft,84:b,99:E,101:T,102:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(kt,[2,5],{8:[1,48]}),{8:[1,49]},s(h,[2,18],{22:[1,50]}),s(h,[2,20]),s(h,[2,21]),s(h,[2,22]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),{34:[1,51]},{36:[1,52]},s(h,[2,32]),s(h,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:J,67:Z,68:tt,69:et,70:st,71:Ft,72:Dt}),{39:[1,65]},s(it,[2,39],{39:[1,67],44:[1,66]}),s(h,[2,50]),s(h,[2,51]),{16:68,58:g,84:b,99:E,101:T},{16:39,18:69,19:40,58:g,84:b,99:E,101:T,102:k},{16:39,18:70,19:40,58:g,84:b,99:E,101:T,102:k},{16:39,18:71,19:40,58:g,84:b,99:E,101:T,102:k},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:g,84:b,99:E,101:T,102:k},{13:Ot,53:75},{56:77,58:[1,78]},s(h,[2,61]),s(h,[2,62]),s(h,[2,63]),s(h,[2,64]),s(v,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:g,84:b,99:E,101:T,102:k}),s(v,[2,14],{20:[1,82]}),{15:83,16:84,58:g,84:b,99:E,101:T},{16:39,18:85,19:40,58:g,84:b,99:E,101:T,102:k},s(nt,[2,118]),s(nt,[2,119]),s(nt,[2,120]),s(nt,[2,121]),s([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),s(kt,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:n,37:a,42:u,46:l,47:c,49:d,50:C,52:B,54:pt,55:dt,58:g,60:At,61:yt,62:Ct,63:mt,73:gt,74:bt,76:Et,80:Tt,81:ft,84:b,99:E,101:T,102:k}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:a,38:22,42:u,43:23,46:l,47:c,49:d,50:C,52:B,54:pt,55:dt,58:g,60:At,61:yt,62:Ct,63:mt,73:gt,74:bt,76:Et,80:Tt,81:ft,84:b,99:E,101:T,102:k},s(h,[2,19]),s(h,[2,30]),s(h,[2,31]),{13:[1,89],16:39,18:88,19:40,58:g,84:b,99:E,101:T,102:k},{51:90,64:56,65:57,66:J,67:Z,68:tt,69:et,70:st,71:Ft,72:Dt},s(h,[2,49]),{65:91,71:Ft,72:Dt},s(rt,[2,68],{64:92,66:J,67:Z,68:tt,69:et,70:st}),s(G,[2,69]),s(G,[2,70]),s(G,[2,71]),s(G,[2,72]),s(G,[2,73]),s(vt,[2,74]),s(vt,[2,75]),{8:[1,94],24:95,40:93,43:23,46:l},{16:96,58:g,84:b,99:E,101:T},{45:97,49:Bt},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:U,57:104,58:z,80:K,82:105,83:106,84:Y,85:W,86:j,87:Q,88:X,89:q},{58:[1,116]},{13:Ot,53:117},s(h,[2,57]),s(h,[2,123]),{22:U,57:118,58:z,59:[1,119],80:K,82:105,83:106,84:Y,85:W,86:j,87:Q,88:X,89:q},s(wt,[2,59]),{16:39,18:120,19:40,58:g,84:b,99:E,101:T,102:k},s(v,[2,15]),s(v,[2,16]),s(v,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:g,84:b,99:E,101:T},s(_t,[2,43],{11:123,12:[1,124]}),s(kt,[2,7]),{9:[1,125]},s(at,[2,52]),{16:39,18:126,19:40,58:g,84:b,99:E,101:T,102:k},{13:[1,128],16:39,18:127,19:40,58:g,84:b,99:E,101:T,102:k},s(rt,[2,67],{64:129,66:J,67:Z,68:tt,69:et,70:st}),s(rt,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:l},{8:[1,132],41:[2,36]},s(it,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Bt},{16:39,18:136,19:40,58:g,84:b,99:E,101:T,102:k},s(h,[2,76],{13:[1,137]}),s(h,[2,78],{13:[1,139],75:[1,138]}),s(h,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},s(h,[2,90],{59:Rt}),s(Pt,[2,92],{83:144,22:U,58:z,80:K,84:Y,85:W,86:j,87:Q,88:X,89:q}),s(N,[2,94]),s(N,[2,96]),s(N,[2,97]),s(N,[2,98]),s(N,[2,99]),s(N,[2,100]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(h,[2,91]),s(h,[2,56]),s(h,[2,58],{59:Rt}),{58:[1,145]},s(v,[2,13]),{15:146,16:84,58:g,84:b,99:E,101:T},{39:[2,11]},s(_t,[2,44]),{13:[1,147]},{1:[2,4]},s(at,[2,54]),s(at,[2,53]),{16:39,18:148,19:40,58:g,84:b,99:E,101:T,102:k},s(rt,[2,65]),s(h,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:l},{45:151,49:Bt},s(it,[2,41]),{41:[2,47]},s(h,[2,45]),s(h,[2,77]),s(h,[2,79]),s(h,[2,80],{75:[1,152]}),s(h,[2,83]),s(h,[2,84],{13:[1,153]}),s(h,[2,86],{13:[1,155],75:[1,154]}),{22:U,58:z,80:K,82:156,83:106,84:Y,85:W,86:j,87:Q,88:X,89:q},s(N,[2,95]),s(wt,[2,60]),{39:[2,10]},{14:[1,157]},s(at,[2,55]),s(h,[2,34]),{41:[2,38]},{41:[1,158]},s(h,[2,81]),s(h,[2,85]),s(h,[2,87]),s(h,[2,88],{75:[1,159]}),s(Pt,[2,93],{83:144,22:U,58:z,80:K,84:Y,85:W,86:j,87:Q,88:X,89:q}),s(_t,[2,8]),s(it,[2,42]),s(h,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:A(function(o,y){if(!y.recoverable){var p=new Error(o);throw p.hash=y,p}this.trace(o)},"parseError"),parse:A(function(o){var y=this,p=[0],r=[],m=[null],t=[],H=this.table,e="",lt=0,Mt=0,Xt=t.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(x.yy[Nt]=this.yy[Nt]);f.setInput(o,x.yy),x.yy.lexer=f,x.yy.parser=this,f.yylloc===void 0&&(f.yylloc={});var Lt=f.yylloc;t.push(Lt);var qt=f.options&&f.options.ranges;function Gt(){var S;return typeof(S=r.pop()||f.lex()||1)!="number"&&(S instanceof Array&&(S=(r=S).pop()),S=y.symbols_[S]||S),S}typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,A(function(S){p.length=p.length-2*S,m.length=m.length-S,t.length=t.length-S},"popStack"),A(Gt,"lex");for(var D,I,_,Ut,ot,L,zt,ct,w={};;){if(I=p[p.length-1],this.defaultActions[I]?_=this.defaultActions[I]:(D==null&&(D=Gt()),_=H[I]&&H[I][D]),_===void 0||!_.length||!_[0]){var Kt="";for(ot in ct=[],H[I])this.terminals_[ot]&&ot>2&&ct.push("'"+this.terminals_[ot]+"'");Kt=f.showPosition?"Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+f.showPosition()+`
|
|
3
3
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[D]||D)+"'":"Parse error on line "+(lt+1)+": Unexpected "+(D==1?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Kt,{text:f.match,token:this.terminals_[D]||D,line:f.yylineno,loc:Lt,expected:ct})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+D);switch(_[0]){case 1:p.push(D),m.push(f.yytext),t.push(f.yylloc),p.push(_[1]),D=null,Mt=f.yyleng,e=f.yytext,lt=f.yylineno,Lt=f.yylloc;break;case 2:if(L=this.productions_[_[1]][1],w.$=m[m.length-L],w._$={first_line:t[t.length-(L||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(L||1)].first_column,last_column:t[t.length-1].last_column},qt&&(w._$.range=[t[t.length-(L||1)].range[0],t[t.length-1].range[1]]),(Ut=this.performAction.apply(w,[e,Mt,lt,x.yy,_[1],m,t].concat(Xt)))!==void 0)return Ut;L&&(p=p.slice(0,-1*L*2),m=m.slice(0,-1*L),t=t.slice(0,-1*L)),p.push(this.productions_[_[1]][0]),m.push(w.$),t.push(w._$),zt=H[p[p.length-2]][p[p.length-1]],p.push(zt);break;case 3:return!0}}return!0},"parse")},Qt=function(){return{EOF:1,parseError:A(function(o,y){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,y)},"parseError"),setInput:A(function(o,y){return this.yy=y||this.yy||{},this._input=o,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:A(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},"input"),unput:A(function(o){var y=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;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),p.length-1&&(this.yylineno-=p.length-1);var m=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:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:A(function(o){this.unput(this.match.slice(o))},"less"),pastInput:A(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var o=this.pastInput(),y=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,c as s,a as t,C as o}from"./chunk-SZ463SBG-DqkT0n2R.js";import{_ as e}from"./mermaid-TIsLiY_c.js";import"./transform-B8bpuzxV.js";import"./chunk-E2GYISFI-BGhna3Tu.js";import"./chunk-BFAMUDN2-C6ACh81N.js";import"./chunk-SKB7J2MH-B5xc8b3Z.js";import"./index-BfMKs8fK.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var i={parser:t,get db(){return new o},renderer:s,styles:a,init:e(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{i as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,c as s,a as t,C as o}from"./chunk-SZ463SBG-DqkT0n2R.js";import{_ as e}from"./mermaid-TIsLiY_c.js";import"./transform-B8bpuzxV.js";import"./chunk-E2GYISFI-BGhna3Tu.js";import"./chunk-BFAMUDN2-C6ACh81N.js";import"./chunk-SKB7J2MH-B5xc8b3Z.js";import"./index-BfMKs8fK.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var i={parser:t,get db(){return new o},renderer:s,styles:a,init:e(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{i as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as n}from"./_baseUniq-oH3tH_Lx.js";function o(r){return n(r,4)}export{o as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=JSON.parse(`{"select":{"description":"Retrieves data from one or more tables","syntax":"SELECT column1, column2, ... FROM table_name","example":"SELECT name, email FROM users WHERE active = true"},"from":{"description":"Specifies which table to select data from","syntax":"FROM table_name","example":"FROM users u JOIN orders o ON u.id = o.user_id"},"where":{"description":"Filters records based on specified conditions","syntax":"WHERE condition","example":"WHERE age > 18 AND status = 'active'"},"join":{"description":"Combines rows from two or more tables based on a related column","syntax":"JOIN table_name ON condition","example":"JOIN orders ON users.id = orders.user_id"},"inner":{"description":"Returns records that have matching values in both tables","syntax":"INNER JOIN table_name ON condition","example":"INNER JOIN orders ON users.id = orders.user_id"},"left":{"description":"Returns all records from the left table and matching records from the right","syntax":"LEFT JOIN table_name ON condition","example":"LEFT JOIN orders ON users.id = orders.user_id"},"right":{"description":"Returns all records from the right table and matching records from the left","syntax":"RIGHT JOIN table_name ON condition","example":"RIGHT JOIN users ON users.id = orders.user_id"},"full":{"description":"Returns all records when there is a match in either left or right table","syntax":"FULL OUTER JOIN table_name ON condition","example":"FULL OUTER JOIN orders ON users.id = orders.user_id"},"outer":{"description":"Used with FULL to return all records from both tables","syntax":"FULL OUTER JOIN table_name ON condition","example":"FULL OUTER JOIN orders ON users.id = orders.user_id"},"cross":{"description":"Returns the Cartesian product of both tables","syntax":"CROSS JOIN table_name","example":"CROSS JOIN colors"},"order":{"description":"Sorts the result set in ascending or descending order","syntax":"ORDER BY column_name [ASC|DESC]","example":"ORDER BY created_at DESC, name ASC"},"by":{"description":"Used with ORDER BY and GROUP BY clauses","syntax":"ORDER BY column_name or GROUP BY column_name","example":"ORDER BY name ASC or GROUP BY category"},"group":{"description":"Groups rows that have the same values into summary rows","syntax":"GROUP BY column_name","example":"GROUP BY category HAVING COUNT(*) > 5"},"having":{"description":"Filters groups based on specified conditions (used with GROUP BY)","syntax":"HAVING condition","example":"GROUP BY category HAVING COUNT(*) > 5"},"insert":{"description":"Adds new records to a table","syntax":"INSERT INTO table_name (columns) VALUES (values)","example":"INSERT INTO users (name, email) VALUES ('John', 'john@example.com')"},"into":{"description":"Specifies the target table for INSERT statements","syntax":"INSERT INTO table_name","example":"INSERT INTO users (name, email) VALUES ('John', 'john@example.com')"},"values":{"description":"Specifies the values to insert into a table","syntax":"VALUES (value1, value2, ...)","example":"VALUES ('John', 'john@example.com', true)"},"update":{"description":"Modifies existing records in a table","syntax":"UPDATE table_name SET column = value WHERE condition","example":"UPDATE users SET email = 'new@example.com' WHERE id = 1"},"set":{"description":"Specifies which columns to update and their new values","syntax":"SET column1 = value1, column2 = value2","example":"SET name = 'John', email = 'john@example.com'"},"delete":{"description":"Removes records from a table","syntax":"DELETE FROM table_name WHERE condition","example":"DELETE FROM users WHERE active = false"},"create":{"description":"Creates a new table, database, or other database object","syntax":"CREATE TABLE table_name (column definitions)","example":"CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(100))"},"table":{"description":"Specifies a table in CREATE, ALTER, or DROP statements","syntax":"CREATE TABLE table_name or ALTER TABLE table_name","example":"CREATE TABLE users (id INT, name VARCHAR(100))"},"drop":{"description":"Deletes a table, database, or other database object","syntax":"DROP TABLE table_name","example":"DROP TABLE old_users"},"alter":{"description":"Modifies an existing database object","syntax":"ALTER TABLE table_name ADD/DROP/MODIFY column","example":"ALTER TABLE users ADD COLUMN phone VARCHAR(20)"},"add":{"description":"Adds a new column or constraint to a table","syntax":"ALTER TABLE table_name ADD column_name data_type","example":"ALTER TABLE users ADD phone VARCHAR(20)"},"column":{"description":"Specifies a column in table operations","syntax":"ADD COLUMN column_name or DROP COLUMN column_name","example":"ADD COLUMN created_at TIMESTAMP DEFAULT NOW()"},"primary":{"description":"Defines a primary key constraint","syntax":"PRIMARY KEY (column_name)","example":"CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(100))"},"key":{"description":"Used with PRIMARY or FOREIGN to define constraints","syntax":"PRIMARY KEY or FOREIGN KEY","example":"PRIMARY KEY (id) or FOREIGN KEY (user_id) REFERENCES users(id)"},"foreign":{"description":"Defines a foreign key constraint","syntax":"FOREIGN KEY (column_name) REFERENCES table_name(column_name)","example":"FOREIGN KEY (user_id) REFERENCES users(id)"},"references":{"description":"Specifies the referenced table and column for foreign keys","syntax":"REFERENCES table_name(column_name)","example":"FOREIGN KEY (user_id) REFERENCES users(id)"},"unique":{"description":"Ensures all values in a column are unique","syntax":"UNIQUE (column_name)","example":"CREATE TABLE users (email VARCHAR(255) UNIQUE)"},"constraint":{"description":"Names a constraint for easier management","syntax":"CONSTRAINT constraint_name constraint_type","example":"CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users(id)"},"check":{"description":"Defines a condition that must be true for all rows","syntax":"CHECK (condition)","example":"CHECK (age >= 18)"},"default":{"description":"Specifies a default value for a column","syntax":"column_name data_type DEFAULT value","example":"created_at TIMESTAMP DEFAULT NOW()"},"index":{"description":"Creates an index to improve query performance","syntax":"CREATE INDEX index_name ON table_name (column_name)","example":"CREATE INDEX idx_user_email ON users (email)"},"view":{"description":"Creates a virtual table based on a SELECT statement","syntax":"CREATE VIEW view_name AS SELECT ...","example":"CREATE VIEW active_users AS SELECT * FROM users WHERE active = true"},"limit":{"description":"Restricts the number of records returned","syntax":"LIMIT number","example":"SELECT * FROM users LIMIT 10"},"offset":{"description":"Skips a specified number of rows before returning results","syntax":"OFFSET number","example":"SELECT * FROM users LIMIT 10 OFFSET 20"},"top":{"description":"Limits the number of records returned (SQL Server syntax)","syntax":"SELECT TOP number columns FROM table","example":"SELECT TOP 10 * FROM users"},"fetch":{"description":"Retrieves a specific number of rows (modern SQL standard)","syntax":"OFFSET number ROWS FETCH NEXT number ROWS ONLY","example":"OFFSET 10 ROWS FETCH NEXT 5 ROWS ONLY"},"with":{"description":"Defines a Common Table Expression (CTE)","syntax":"WITH cte_name AS (SELECT ...) SELECT ... FROM cte_name","example":"WITH user_stats AS (SELECT user_id, COUNT(*) FROM orders GROUP BY user_id) SELECT * FROM user_stats"},"recursive":{"description":"Creates a recursive CTE that can reference itself","syntax":"WITH RECURSIVE cte_name AS (...) SELECT ...","example":"WITH RECURSIVE tree AS (SELECT id, parent_id FROM categories WHERE parent_id IS NULL UNION ALL SELECT c.id, c.parent_id FROM categories c JOIN tree t ON c.parent_id = t.id) SELECT * FROM tree"},"distinct":{"description":"Returns only unique values","syntax":"SELECT DISTINCT column_name FROM table_name","example":"SELECT DISTINCT category FROM products"},"count":{"description":"Returns the number of rows that match a condition","syntax":"COUNT(*) or COUNT(column_name)","example":"SELECT COUNT(*) FROM users WHERE active = true"},"sum":{"description":"Returns the sum of numeric values","syntax":"SUM(column_name)","example":"SELECT SUM(price) FROM orders WHERE status = 'completed'"},"avg":{"description":"Returns the average value of numeric values","syntax":"AVG(column_name)","example":"SELECT AVG(age) FROM users"},"max":{"description":"Returns the maximum value","syntax":"MAX(column_name)","example":"SELECT MAX(price) FROM products"},"min":{"description":"Returns the minimum value","syntax":"MIN(column_name)","example":"SELECT MIN(price) FROM products"},"as":{"description":"Creates an alias for a column or table","syntax":"column_name AS alias_name or table_name AS alias_name","example":"SELECT name AS customer_name FROM users AS u"},"on":{"description":"Specifies the join condition between tables","syntax":"JOIN table_name ON condition","example":"JOIN orders ON users.id = orders.user_id"},"and":{"description":"Combines multiple conditions with logical AND","syntax":"WHERE condition1 AND condition2","example":"WHERE age > 18 AND status = 'active'"},"or":{"description":"Combines multiple conditions with logical OR","syntax":"WHERE condition1 OR condition2","example":"WHERE category = 'electronics' OR category = 'books'"},"not":{"description":"Negates a condition","syntax":"WHERE NOT condition","example":"WHERE NOT status = 'inactive'"},"null":{"description":"Represents a missing or unknown value","syntax":"column_name IS NULL or column_name IS NOT NULL","example":"WHERE email IS NOT NULL"},"is":{"description":"Used to test for NULL values or boolean conditions","syntax":"column_name IS NULL or column_name IS NOT NULL","example":"WHERE deleted_at IS NULL"},"in":{"description":"Checks if a value matches any value in a list","syntax":"column_name IN (value1, value2, ...)","example":"WHERE status IN ('active', 'pending', 'approved')"},"between":{"description":"Selects values within a range","syntax":"column_name BETWEEN value1 AND value2","example":"WHERE age BETWEEN 18 AND 65"},"like":{"description":"Searches for a pattern in a column","syntax":"column_name LIKE pattern","example":"WHERE name LIKE 'John%' (starts with 'John')"},"exists":{"description":"Tests whether a subquery returns any rows","syntax":"WHERE EXISTS (subquery)","example":"WHERE EXISTS (SELECT 1 FROM orders WHERE orders.user_id = users.id)"},"any":{"description":"Compares a value to any value returned by a subquery","syntax":"column_name operator ANY (subquery)","example":"WHERE price > ANY (SELECT price FROM products WHERE category = 'electronics')"},"all":{"description":"Compares a value to all values returned by a subquery","syntax":"column_name operator ALL (subquery)","example":"WHERE price > ALL (SELECT price FROM products WHERE category = 'books')"},"some":{"description":"Synonym for ANY - compares a value to some values in a subquery","syntax":"column_name operator SOME (subquery)","example":"WHERE price > SOME (SELECT price FROM products WHERE category = 'electronics')"},"union":{"description":"Combines the result sets of two or more SELECT statements","syntax":"SELECT ... UNION SELECT ...","example":"SELECT name FROM customers UNION SELECT name FROM suppliers"},"intersect":{"description":"Returns rows that are in both result sets","syntax":"SELECT ... INTERSECT SELECT ...","example":"SELECT customer_id FROM orders INTERSECT SELECT customer_id FROM returns"},"except":{"description":"Returns rows from the first query that are not in the second","syntax":"SELECT ... EXCEPT SELECT ...","example":"SELECT customer_id FROM customers EXCEPT SELECT customer_id FROM blacklist"},"case":{"description":"Provides conditional logic in SQL queries","syntax":"CASE WHEN condition THEN result ELSE result END","example":"CASE WHEN age < 18 THEN 'Minor' ELSE 'Adult' END"},"when":{"description":"Specifies conditions in CASE statements","syntax":"CASE WHEN condition THEN result","example":"CASE WHEN score >= 90 THEN 'A' WHEN score >= 80 THEN 'B' END"},"then":{"description":"Specifies the result for a WHEN condition","syntax":"WHEN condition THEN result","example":"WHEN age < 18 THEN 'Minor'"},"else":{"description":"Specifies the default result in CASE statements","syntax":"CASE WHEN condition THEN result ELSE default_result END","example":"CASE WHEN score >= 60 THEN 'Pass' ELSE 'Fail' END"},"end":{"description":"Terminates a CASE statement","syntax":"CASE WHEN condition THEN result END","example":"CASE WHEN age < 18 THEN 'Minor' ELSE 'Adult' END"},"over":{"description":"Defines a window for window functions","syntax":"window_function() OVER (PARTITION BY ... ORDER BY ...)","example":"ROW_NUMBER() OVER (PARTITION BY department ORDER BY salary DESC)"},"partition":{"description":"Divides the result set into groups for window functions","syntax":"OVER (PARTITION BY column_name)","example":"SUM(salary) OVER (PARTITION BY department)"},"row_number":{"description":"Assigns a unique sequential integer to each row","syntax":"ROW_NUMBER() OVER (ORDER BY column_name)","example":"ROW_NUMBER() OVER (ORDER BY created_at DESC)"},"rank":{"description":"Assigns a rank to each row with gaps for ties","syntax":"RANK() OVER (ORDER BY column_name)","example":"RANK() OVER (ORDER BY score DESC)"},"dense_rank":{"description":"Assigns a rank to each row without gaps for ties","syntax":"DENSE_RANK() OVER (ORDER BY column_name)","example":"DENSE_RANK() OVER (ORDER BY score DESC)"},"begin":{"description":"Starts a transaction block","syntax":"BEGIN [TRANSACTION]","example":"BEGIN; UPDATE accounts SET balance = balance - 100; COMMIT;"},"commit":{"description":"Permanently saves all changes made in the current transaction","syntax":"COMMIT [TRANSACTION]","example":"BEGIN; INSERT INTO users VALUES (...); COMMIT;"},"rollback":{"description":"Undoes all changes made in the current transaction","syntax":"ROLLBACK [TRANSACTION]","example":"BEGIN; DELETE FROM users WHERE id = 1; ROLLBACK;"},"transaction":{"description":"Groups multiple SQL statements into a single unit of work","syntax":"BEGIN TRANSACTION; ... COMMIT/ROLLBACK;","example":"BEGIN TRANSACTION; UPDATE accounts SET balance = balance - 100 WHERE id = 1; COMMIT;"}}`),a={keywords:e};export{a as default,e as keywords};
|