@juki-team/base-ui 1.5.4 → 1.5.13
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/esm/ArrowForwardIcon-DelUFdaJ.js +1 -0
- package/dist/esm/{BarChart-4YVL8qrU.js → BarChart-D2X8Qu4u.js} +1 -1
- package/dist/esm/{CartesianChart-CaeqB_2y.js → CartesianChart-DYpkf6Ou.js} +1 -1
- package/dist/esm/{ChangePasswordModal-OWm3MyKW.js → ChangePasswordModal-yc4D7RMs.js} +1 -1
- package/dist/esm/CodeEditor-Dxp5QnTB.js +1 -0
- package/dist/esm/{CodeViewer-CZwCWtf1.js → CodeViewer-BSZXIngC.js} +1 -1
- package/dist/esm/{Collapse-C6FDlfoR.js → Collapse-D-w5SKss.js} +1 -1
- package/dist/esm/{DataGrid-bZJxnNpn.js → DataGrid-BdFgb8IP.js} +1 -1
- package/dist/esm/DataViewer-DVVGkDSK.js +1 -0
- package/dist/esm/{DrawerView-O8ivFKAG.js → DrawerView-DCRvckZd.js} +1 -1
- package/dist/esm/{ExcalidrawButton-Dx-6TOuw.js → ExcalidrawButton-_a-eNbyb.js} +1 -1
- package/dist/esm/{GraphvizViewer-AxmRC6e5.js → GraphvizViewer-B2-JVx0t.js} +1 -1
- package/dist/esm/{ImageLoaderCropper-B5z4gQda.js → ImageLoaderCropper-wV-hPOjq.js} +1 -1
- package/dist/esm/{InputCellPhoneNumber-12U8BtmT.js → InputCellPhoneNumber-Bcl22QsC.js} +1 -1
- package/dist/esm/{InputColor-Cpd36Uei.js → InputColor-CHgGjI3f.js} +1 -1
- package/dist/esm/{LineChart-Cp3YgIYB.js → LineChart-ByKPkVhP.js} +1 -1
- package/dist/esm/{LoaderLayer-Cv80UCdL.js → LoaderLayer-ECtsj85k.js} +1 -1
- package/dist/esm/{MdMath-CVxzEaJK.js → MdMath-DljkRDxR.js} +1 -1
- package/dist/esm/{MdMathEditor-himmiyoG.js → MdMathEditor-Dvq5oODw.js} +2 -2
- package/dist/esm/{Popover-CEc-CYlJ.js → Popover-CX8YffOd.js} +1 -1
- package/dist/esm/ReplyIcon-BNYBKbgb.js +1 -0
- package/dist/esm/{SettingsIcon-C3sN1TNw.js → SettingsIcon-B9nmP4lD.js} +1 -1
- package/dist/esm/{SlideDeck-I221o0di.js → SlideDeck-C0n93gz0.js} +1 -1
- package/dist/esm/{TableEyeIcon-BFfTLgKU.js → TableEyeIcon-Mb5aFvN0.js} +1 -1
- package/dist/esm/{TableOfContents-DqdT3oFH.js → TableOfContents-BBAEZx6Z.js} +1 -1
- package/dist/esm/{Tooltip-DCefNWu7.js → Tooltip-DB0S1ErV.js} +1 -1
- package/dist/esm/UserCodeEditor-B1d5gyVE.js +61 -0
- package/dist/esm/{VirtualizedRowsFixed-D9Yuhs6Z.js → VirtualizedRowsFixed-ChX4ON0l.js} +1 -1
- package/dist/esm/{WorksheetAsSlides-DJJreHkG.js → WorksheetAsSlides-CpiXbUML.js} +1 -1
- package/dist/esm/{WorksheetBodies-VeYRksK3.js → WorksheetBodies-CO67-rEz.js} +1 -1
- package/dist/esm/{WorksheetContents-CmB2azPo.js → WorksheetContents-ClZpiXB-.js} +1 -1
- package/dist/esm/{WorksheetEditor-CwF_HNWx.js → WorksheetEditor-CjAvgOx6.js} +1 -1
- package/dist/esm/WorksheetNode-BgNNzY8I.js +1 -0
- package/dist/esm/{WorksheetViewer-8nk0Y7Pu.js → WorksheetViewer-DVQitUzi.js} +1 -1
- package/dist/esm/{abnfDiagram-WEYOIA3C-DEKNEQ23.js → abnfDiagram-WEYOIA3C-CwJ1V2U1.js} +1 -1
- package/dist/esm/{arc-BXMOYbEk.js → arc-COK0VEkT.js} +1 -1
- package/dist/esm/{architectureDiagram-ZHVYKT53-D8Cc0szw.js → architectureDiagram-ZHVYKT53-CM6AQFKG.js} +1 -1
- package/dist/esm/{basic-setup-DnHlH_GN.js → basic-setup-DtpgwOSH.js} +1 -1
- package/dist/esm/{blockDiagram-RJAE7QA3-CVAxF28b.js → blockDiagram-RJAE7QA3-CdSNo9Pe.js} +1 -1
- package/dist/esm/{c4Diagram-XDPPPE54-DfOddOsg.js → c4Diagram-XDPPPE54-BhfYKASq.js} +1 -1
- package/dist/esm/channel-DWjyymG_.js +1 -0
- package/dist/esm/{chunk-2E7WHVMD-DzrxCta9.js → chunk-2E7WHVMD-CVBqw5fR.js} +1 -1
- package/dist/esm/{chunk-2Q5K7J3B-BAvN2osA.js → chunk-2Q5K7J3B-CyZYeWxE.js} +1 -1
- package/dist/esm/{chunk-4EMNKR2T-WzMQveGn.js → chunk-4EMNKR2T-D1yHHif8.js} +1 -1
- package/dist/esm/{chunk-55XCU76K-Co_JK6zS.js → chunk-55XCU76K-CvYWAV_o.js} +1 -1
- package/dist/esm/{chunk-5VM5RSS4-2Alz3VU-.js → chunk-5VM5RSS4-CS0kZLYA.js} +1 -1
- package/dist/esm/{chunk-JWPE2WC7-BM31szoD.js → chunk-JWPE2WC7-Ct5OBLCL.js} +1 -1
- package/dist/esm/{chunk-NQOKRVIF-BvuLXPDI.js → chunk-NQOKRVIF-D0-2mmH4.js} +1 -1
- package/dist/esm/{chunk-VQ5W62QI-BM9st1eu.js → chunk-VQ5W62QI-CsGo0PTx.js} +1 -1
- package/dist/esm/{chunk-XXDRQBXY-B7eZEtxE.js → chunk-XXDRQBXY-DPPGTM3w.js} +1 -1
- package/dist/esm/{chunk-ZCHMQSOR-BfEzwJnw.js → chunk-ZCHMQSOR-Bvjutmxm.js} +1 -1
- package/dist/esm/{classDiagram-v2-4MYWR3UA-BBYOuONr.js → classDiagram-v2-4MYWR3UA-J_cOAAHS.js} +1 -1
- package/dist/esm/{commons-BHuDJzTw.js → commons-iref2pEJ.js} +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/{cose-bilkent-JH36ORCC-BBL1Y3YR.js → cose-bilkent-JH36ORCC-BHzp2aV0.js} +1 -1
- package/dist/esm/{cynefinDiagram-WF24UDRP-B6GLAQp-.js → cynefinDiagram-WF24UDRP-B3Y9mCh3.js} +1 -1
- package/dist/esm/{dagre-NK4GIZVX-B5sHdjHr.js → dagre-NK4GIZVX-BSfh-C_i.js} +1 -1
- package/dist/esm/{diagram-CBK3MWTC-Dcv51W2u.js → diagram-CBK3MWTC-w-BT1S7I.js} +1 -1
- package/dist/esm/{diagram-I5XIIV2D-BqonTetl.js → diagram-I5XIIV2D-wMqo87b_.js} +1 -1
- package/dist/esm/{diagram-ODIL2UCW-CriVrDQT.js → diagram-ODIL2UCW-DQhUXqDu.js} +1 -1
- package/dist/esm/{diagram-PFBEJUXE-B03iAEwx.js → diagram-PFBEJUXE-BlCntZMJ.js} +1 -1
- package/dist/esm/{diagram-RJA3I4VV-Dj3xghQ1.js → diagram-RJA3I4VV-Cev21A9i.js} +1 -1
- package/dist/esm/{diagram-TYUNFSNR-CcvVCW9_.js → diagram-TYUNFSNR-BiiLNoPs.js} +1 -1
- package/dist/esm/{ebnfDiagram-V4P3TTPT-BXu5Kifr.js → ebnfDiagram-V4P3TTPT-BWNnHl88.js} +1 -1
- package/dist/esm/{elk-QONTBCTQ-Jkx0FK2o.js → elk-QONTBCTQ-DhvgoeNg.js} +1 -1
- package/dist/esm/{erDiagram-KYQIGQAA-BF9vCEaf.js → erDiagram-KYQIGQAA-DkFGw08p.js} +1 -1
- package/dist/esm/flowDiagram-IUGLLWBU-B-Bxdnen.js +1 -0
- package/dist/esm/{ganttDiagram-R7GPNTJY-CQC15o39.js → ganttDiagram-R7GPNTJY-Bvr90Acy.js} +1 -1
- package/dist/esm/{gitGraphDiagram-PDYL7XHY-D_f2t3KD.js → gitGraphDiagram-PDYL7XHY-DHszoB7b.js} +1 -1
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/{index-_kF3_0-k.js → index-2PTQqTnK.js} +1 -1
- package/dist/esm/{index-ID6vqTYe.js → index-6pAHrAuD.js} +1 -1
- package/dist/esm/{index-JPCp_Z3V.js → index-70SVfF-m.js} +1 -1
- package/dist/esm/{index-D5FWzr0h.js → index-B46RgSF9.js} +1 -1
- package/dist/esm/{index-Dz8ISdDG.js → index-B5Soolr4.js} +1 -1
- package/dist/esm/{index-CWL6W5WQ.js → index-B9JSZpaA.js} +1 -1
- package/dist/esm/{index-C_HL-Da-.js → index-BDQ8194g.js} +1 -1
- package/dist/esm/{index-bPHO9OeP.js → index-BNvG4PUn.js} +1 -1
- package/dist/esm/{index-CRj4pqRR.js → index-BS7YTgMe.js} +1 -1
- package/dist/esm/{index-CAH_9Jug.js → index-Bohl_WFx.js} +1 -1
- package/dist/esm/{index-DPe-z7ci.js → index-BpFtavDh.js} +1 -1
- package/dist/esm/index-BpcqEzEG.js +1 -0
- package/dist/esm/{index-DM4Zc3sU.js → index-CHVYA2P8.js} +1 -1
- package/dist/esm/{index-CoVpfkO8.js → index-CHgqN-d9.js} +1 -1
- package/dist/esm/{index-2Mitl1QB.js → index-CJtYjUlf.js} +1 -1
- package/dist/esm/{index-Dx6l5ueb.js → index-CffiBbeH.js} +1 -1
- package/dist/esm/{index-DRSSYmEF.js → index-CiHwAkdd.js} +1 -1
- package/dist/esm/{index-C9ua7WYO.js → index-CmWQEzQl.js} +1 -1
- package/dist/esm/{index-D5tgPh4d.js → index-D5AIo8KT.js} +1 -1
- package/dist/esm/{index-D5WiSbCh.js → index-D6A8P_xS.js} +1 -1
- package/dist/esm/{index-CGmB9AM1.js → index-D9BPo-_o.js} +1 -1
- package/dist/esm/{index-8mEJamTc.js → index-DBWowQHL.js} +1 -1
- package/dist/esm/{index-C4KISU3M.js → index-DDBuqExW.js} +1 -1
- package/dist/esm/{index-V9oZCW09.js → index-DjrtJ8R4.js} +1 -1
- package/dist/esm/{index-DH4SMqQP.js → index-DkZReaeM.js} +1 -1
- package/dist/esm/{index-ChphKFtR.js → index-YYM2ZvZ6.js} +1 -1
- package/dist/esm/{index-nUMXMsLO.js → index-mLZqgXD7.js} +1 -1
- package/dist/esm/{index-BMPFttUB.js → index-nNMK7HvL.js} +1 -1
- package/dist/esm/{index-myBmcWfr.js → index-vxKx70Pe.js} +1 -1
- package/dist/esm/{index-CkaLE__v.js → index-wJyG4Gm6.js} +1 -1
- package/dist/esm/{infoDiagram-MVDRKAX5-04QJzIoW.js → infoDiagram-MVDRKAX5-D05SjyVf.js} +1 -1
- package/dist/esm/{ishikawaDiagram-HPEHV2GE-4pDsX60A.js → ishikawaDiagram-HPEHV2GE-50RQ8Owd.js} +1 -1
- package/dist/esm/{journeyDiagram-BOSHW7O7-BJFwx5Hu.js → journeyDiagram-BOSHW7O7-DnHu8DYt.js} +1 -1
- package/dist/esm/{kanban-definition-FNSA4HC5-MrsniETV.js → kanban-definition-FNSA4HC5-BF3y0Q5O.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid.core-DBVKQvxW.js → mermaid.core-DRk6tt5W.js} +2 -2
- package/dist/esm/{mindmap-definition-6OY57UG3-DnT4Ihuj.js → mindmap-definition-6OY57UG3-D2VvQCn5.js} +1 -1
- package/dist/esm/{pegDiagram-ECIUJNBX-C3s5Vuxq.js → pegDiagram-ECIUJNBX-LCa_e2vp.js} +1 -1
- package/dist/esm/{pieDiagram-GNMPY74T-CTjQZ9yP.js → pieDiagram-GNMPY74T-BFxRc695.js} +1 -1
- package/dist/esm/{quadrantDiagram-D57K4MC3-JTRqBH1z.js → quadrantDiagram-D57K4MC3-m-v5Oved.js} +1 -1
- package/dist/esm/{railroadDiagram-Y72NRBL7-DtAwxQ6F.js → railroadDiagram-Y72NRBL7-CGhQNkt2.js} +1 -1
- package/dist/esm/{requirementDiagram-EQYSW5RA-CR7SUMC-.js → requirementDiagram-EQYSW5RA-D4TUJX2j.js} +1 -1
- package/dist/esm/{sankeyDiagram-SY24JHO5-DbxpJ7pE.js → sankeyDiagram-SY24JHO5-qeunG13D.js} +1 -1
- package/dist/esm/{sequenceDiagram-BLEHNHQU-CvZHKbjd.js → sequenceDiagram-BLEHNHQU-Bf8dSGiP.js} +1 -1
- package/dist/esm/server.js +1 -1
- package/dist/esm/settings-CBGV-lz3.js +1 -0
- package/dist/esm/settings.js +1 -1
- package/dist/esm/{sizeCapture-INFHLROL-f_GRBQe5.js → sizeCapture-INFHLROL-B0tQoQkY.js} +1 -1
- package/dist/esm/{stateDiagram-v2-A6IESKWZ-DxF8GOQW.js → stateDiagram-v2-A6IESKWZ-D-bM5qVN.js} +1 -1
- package/dist/esm/{swimlanes-B3ENRKFQ-YbCv2QO2.js → swimlanes-B3ENRKFQ-DR9euVhL.js} +1 -1
- package/dist/esm/swimlanesDiagram-AYQRV4AK-D0-BBYnj.js +1 -0
- package/dist/esm/{timeline-definition-JXYKGLGB-C1x6bOWf.js → timeline-definition-JXYKGLGB-ChsOD2es.js} +1 -1
- package/dist/esm/{types-C3mmJ376.js → types-DsZvEANP.js} +1 -1
- package/dist/esm/{usecaseDiagram-WPOLBNNX-QdEejhhn.js → usecaseDiagram-WPOLBNNX-DZFg1Zof.js} +1 -1
- package/dist/esm/{vennDiagram-Q3Y3IDCW-B0EVPCrz.js → vennDiagram-Q3Y3IDCW-DAW-dDy7.js} +1 -1
- package/dist/esm/{wardleyDiagram-IVAIDKWA-Dlo4JFKg.js → wardleyDiagram-IVAIDKWA-B-gsebc8.js} +1 -1
- package/dist/esm/websocket-CdeP8N_S.js +1 -0
- package/dist/esm/{xychartDiagram-4URNHDU4-CU8TcG1V.js → xychartDiagram-4URNHDU4-DS3Qm0VA.js} +1 -1
- package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/types.d.ts +15 -1
- package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/types.d.ts +6 -0
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/DataViewerCard.d.ts +6 -2
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/types.d.ts +9 -6
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/index.d.ts +2 -2
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableRow.d.ts +21 -0
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/ViewContainerRows.d.ts +0 -2
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/columnLayout.d.ts +23 -0
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/useScrollEdges.d.ts +13 -0
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/types.d.ts +12 -8
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/FileTreePanel.d.ts +3 -1
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/types.d.ts +8 -2
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FirstPane.d.ts +6 -1
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/RunCodeButton.d.ts +2 -1
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/index.d.ts +3 -1
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/TestCases/index.d.ts +3 -1
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/types.d.ts +21 -2
- package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/types.d.ts +11 -0
- package/dist/module-types/src/stores/websocket/topicChannels.d.ts +37 -0
- package/package.json +12 -13
- package/src/styles/components/atoms/_button.scss +3 -3
- package/src/styles/components/atoms/_data-viewer.scss +34 -16
- package/src/styles/index.scss +6 -0
- package/src/styles/vendor/index.scss +0 -2
- package/src/vendor/reveal.js/css/theme/fonts/league-gothic/league-gothic.woff +0 -0
- package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- package/dist/esm/ArrowForwardIcon-1RdVdC78.js +0 -1
- package/dist/esm/CodeEditor-B6RhGNP7.js +0 -1
- package/dist/esm/DataViewer-CU0QwQQa.js +0 -1
- package/dist/esm/ReplyIcon-BlBLARCH.js +0 -1
- package/dist/esm/UserCodeEditor-D4O5es0E.js +0 -61
- package/dist/esm/WorksheetNode-BTVi2Iol.js +0 -1
- package/dist/esm/channel-DaoqdAiW.js +0 -1
- package/dist/esm/flowDiagram-IUGLLWBU-DDMbhdom.js +0 -1
- package/dist/esm/index-Cso1rXtQ.js +0 -1
- package/dist/esm/settings-BONQQsPx.js +0 -1
- package/dist/esm/swimlanesDiagram-AYQRV4AK-CuclTt9Y.js +0 -1
- package/dist/esm/websocket-B2hJys_Q.js +0 -1
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/diff.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/exception.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/diff.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/streaming.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,O as e,H as n,E as r,ah as i,ai as a,aj as s,c as o,l as c,T as l,ab as h,ak as d,k as p,N as u,al as g,C as y}from"./mermaid.core-DBVKQvxW.js";import{d as f}from"./arc-BXMOYbEk.js";import"./index-Cso1rXtQ.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-BHuDJzTw.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-Cv80UCdL.js";import"./websocket-B2hJys_Q.js";import"./index-_kF3_0-k.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var m=function(){var e=t(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],s=[1,15],o=[1,16],c=[1,19],l=[1,20],h={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(t,e,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 3:r.setDirection("LR");break;case 4:r.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:r.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:r.addTask(a[o],0,""),this.$=a[o];break;case 19:r.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:r,15:i,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,r=[0],i=[],a=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(u.yy[g]=this.yy[g]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;s.push(y);var f=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){r.length=r.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),t(m,"lex");for(var x,b,k,w,_,v,$,S,E={};;){if(b=r[r.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(_ in S=[],o[b])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:r.push(x),a.push(p.yytext),s.push(p.yylloc),r.push(k[1]),x=null,h=p.yyleng,c=p.yytext,l=p.yylineno,y=p.yylloc;break;case 2:if(v=this.productions_[k[1]][1],E.$=a[a.length-v],E._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},f&&(E._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[c,h,l,u.yy,k[1],a,s].concat(d))))return w;v&&(r=r.slice(0,-1*v*2),a=a.slice(0,-1*v),s=s.slice(0,-1*v)),r.push(this.productions_[k[1]][0]),a.push(E.$),s.push(E._$),$=o[r[r.length-2]][r[r.length-1]],r.push($);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:t(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var t=this.next();return t||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(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:t(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,r){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function p(){this.yy={}}return h.lexer=d,t(p,"Parser"),p.prototype=h,h.Parser=p,new p}();m.parser=m;var x=m,b={};u(b,{addEvent:()=>j,addSection:()=>H,addTask:()=>N,addTaskOrg:()=>D,clear:()=>T,default:()=>O,getCommonDb:()=>E,getDirection:()=>M,getSections:()=>C,getTasks:()=>L,setDirection:()=>I});var k="",w=0,_="LR",v=[],$=[],S=[],E=t(()=>g,"getCommonDb"),T=t(function(){v.length=0,$.length=0,k="",S.length=0,_="LR",y()},"clear"),I=t(function(t){_=t},"setDirection"),M=t(function(){return _},"getDirection"),H=t(function(t){k=t,v.push(t)},"addSection"),C=t(function(){return v},"getSections"),L=t(function(){let t=A();let e=0;for(;!t&&e<100;)t=A(),e++;return $.push(...S),$},"getTasks"),N=t(function(t,e,n){const r={id:w++,section:k,type:k,task:t,score:e||0,events:n?[n]:[]};S.push(r)},"addTask"),j=t(function(t){S.find(t=>t.id===w-1).events.push(t)},"addEvent"),D=t(function(t){const e={section:k,type:k,description:t,task:t,classes:[]};$.push(e)},"addTaskOrg"),A=t(function(){const e=t(function(t){return S[t].processed},"compileTask");let n=!0;for(const[t,r]of S.entries())e(t),n=n&&r.processed;return n},"compileTasks"),O={clear:T,getCommonDb:E,getDirection:M,setDirection:I,addSection:H,getSections:C,getTasks:L,addTask:N,addTaskOrg:D,addEvent:j},B=0,R=t(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),P=t(function(e,n){const r=15,i=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",r).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function s(t){const e=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(s,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?s(a):n.score<3?o(a):c(a),i},"drawFace"),W=t(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),F=t(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);const i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r},"drawText"),z=t(function(e,n){function r(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-i)+" "+(t+n-1.2*i)+","+(e+r)+" "+t+","+(e+r)}t(r,"genPoints");const i=e.append("polygon");i.attr("points",r(n.x,n.y,50,20,7)),i.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,F(e,n)},"drawLabel"),V=t(function(t,e,n){const r=t.append("g"),i=Y();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,R(r,i),X(n)(e.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),G=-1,U=t(function(t,e,n,r){const i=e.x+n.width/2,a=t.append("g");G++;a.append("line").attr("id",r+"-task"+G).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),P(a,{cx:i,cy:300+30*(5-e.score),score:e.score});const s=Y();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,R(a,s),X(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),Z=t(function(t,e){R(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),q=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),X=function(){function e(t,e,n,r,a,s,o,c){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,r,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){const c=t*h-h*(p.length-1)/2,u=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);u.append("tspan").attr("x",n+a/2).attr("dy",c).text(p[t]),u.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(u,o)}}function r(t,e,r,a,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,r,a,s,o,c,l),i(d,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(r,"byFo"),t(i,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?r:"old"===t.textPlacement?e:n}}(),J=t(function(t,e){B=0,G=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function K(t,e){t.each(function(){var t,n=p(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<r.length;s++)t=r[r.length-1-s],i.push(t),o.text(i.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(i.pop(),o.text(i.join(" ").trim()),i="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}t(K,"wrap");var Q=t(function(t,e,n,r,i,a=!1){const{theme:s,look:o}=r,c=s?.includes("redux"),l=n%(r?.themeVariables?.THEME_COLOR_LIMIT??12)-1,h=t.append("g");e.section=l,h.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+l);const d=h.append("g"),u=h.append("g"),g=u.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),y=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,u.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&u.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),et(d,e,l,i,r),"neo"===o&&(h.attr("data-look","neo"),c)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),r=p(n),i=r.attr("id")??"",a=i?`${i}-drop-shadow`:"drop-shadow";if(r.select(`#${a}`).empty()){const t=r.select("defs");(t.empty()?r.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),tt=t(function(t,e,n){const r=t.append("g"),i=r.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return r.remove(),i.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),et=t(function(t,e,n,r,i){const{theme:a}=i,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",r+"-node-"+B++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),nt={drawRect:R,drawCircle:W,drawSection:V,drawText:F,drawLabel:z,drawTask:U,drawBackgroundRect:Z,getTextObj:q,getNoteRect:Y,initGraphics:J,drawNode:Q,getVirtualNodeHeight:tt},rt=t(function(t,e,n,r){const i=o(),{look:a,theme:s,themeVariables:l}=i,{useGradient:h,gradientStart:u,gradientStop:g}=l,y=i.timeline?.leftMargin??50;c.debug("timeline",r.db);const f=i.securityLevel;let m;"sandbox"===f&&(m=p("#i"+e));const x=p("sandbox"===f?m.nodes()[0].contentDocument.body:"body").select("#"+e);x.append("g");const b=r.db.getTasks(),k=r.db.getCommonDb().getDiagramTitle();c.debug("task",b),nt.initGraphics(x,e);const w=r.db.getSections();c.debug("sections",w);let _=0,v=0,$=0,S=0,E=50+y,T=50;S=50;let I=0,M=!0;w.forEach(function(t){const e={number:I,descr:t,section:I,width:150,padding:20,maxHeight:_},n=nt.getVirtualNodeHeight(x,e,i);c.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let H=0,C=0;c.debug("tasks.length",b.length);for(const[t,e]of b.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:v},r=nt.getVirtualNodeHeight(x,n,i);c.debug("taskHeight before draw",r),v=Math.max(v,r+20),H=Math.max(H,e.events.length);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=nt.getVirtualNodeHeight(x,n,i)}e.events.length>0&&(a+=10*(e.events.length-1)),C=Math.max(C,a)}c.debug("maxSectionHeight before draw",_),c.debug("maxTaskHeight before draw",v),w&&w.length>0?w.forEach(t=>{const n=b.filter(e=>e.section===t),r={number:I,descr:t,section:I,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};c.debug("sectionNode",r);const a=x.append("g"),s=nt.drawNode(a,r,I,i,e);c.debug("sectionNode output",s),a.attr("transform",`translate(${E}, 50)`),T+=_+50,n.length>0&&it(x,n,I,E,T,v,i,H,C,_,!1,e),E+=200*Math.max(n.length,1),T=50,I++}):(M=!1,it(x,b,I,E,T,v,i,H,C,_,!0,e));const L=x.node().getBBox();c.debug("bounds",L),k&&x.append("text").text(k).attr("x","neo"===a?2*L.x+y:L.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),$=M?_+v+150:v+100;if(x.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",$).attr("x2",L.width+3*y).attr("y2",$).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===a&&h&&"neutral"!==s){const t=x.select("defs"),e=(t.empty()?x.append("defs"):t).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}d(void 0,x,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),it=t(function(t,e,n,r,i,a,s,o,l,h,d,p){for(const o of e){const e={descr:o.task,section:n,number:n,width:150,padding:20,maxHeight:a};c.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),u=nt.drawNode(h,e,n,s,p).height;if(c.debug("taskHeight after draw",u),h.attr("transform",`translate(${r}, ${i})`),a=Math.max(a,u),o.events){const e=t.append("g").attr("class","lineWrapper");let c=a;i+=100,c+=at(t,o.events,n,r,i,s,p),i-=100,e.append("line").attr("x1",r+95).attr("y1",i+a).attr("x2",r+95).attr("y2",i+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}r+=200,d&&!s.timeline?.disableMulticolor&&n++}i-=10},"drawTasks"),at=t(function(t,e,n,r,i,a,s){let o=0;const l=i;i+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};c.debug("eventNode",e);const h=t.append("g").attr("class","eventWrapper"),d=nt.drawNode(h,e,n,a,s,!0).height;o+=d,h.attr("transform",`translate(${r}, ${i})`),i=i+10+d}return i=l,o},"drawEvents"),st={setConf:t(()=>{},"setConf"),draw:rt},ot=200,ct=t(function(t,e,n,r){const i=o(),a=i.timeline?.leftMargin??50;c.debug("timeline",r.db);const s=l(e);s.append("g");const p=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();c.debug("task",p),nt.initGraphics(s);const g=r.db.getSections();c.debug("sections",g);let y=0,f=0;const m=50+a;let x=50;const b=x,k=230,w=m+k;let _=0;const v=g&&g.length>0,$=v?w:m+k,S=Math.max(50,580);g.forEach(function(t){const e={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y},n=nt.getVirtualNodeHeight(s,e,i);c.debug("sectionHeight before draw",n),y=Math.max(y,n)});let E=0;c.debug("tasks.length",p.length);for(const[t,e]of p.entries()){const n={number:t,descr:e,section:e.section,width:ot,padding:5,maxHeight:f},r=nt.getVirtualNodeHeight(s,n,i);c.debug("taskHeight before draw",r),f=Math.max(f,r);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};a+=nt.getVirtualNodeHeight(s,n,i)}e.events.length>0&&(a+=10*(e.events.length-1)),E=Math.max(E,a)+0}c.debug("maxSectionHeight before draw",y),c.debug("maxTaskHeight before draw",f);const T=Math.max(f,E)+30;v?g.forEach(t=>{const e=p.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y};c.debug("sectionNode",n);const r=s.append("g"),a=nt.drawNode(r,n,_,i);c.debug("sectionNode output",a);const o=$-k;r.attr("transform",`translate(${o}, ${x})`);const l=x+a.height+20;e.length>0&<(s,e,_,$,l,f,i,T,!1);const h=e.length,d=a.height+20+T*Math.max(h,1)-(h>0?60:0);x+=d,_++}):lt(s,p,_,$,x,f,i,T,!0);let I=s.node()?.getBBox();if(!I)throw new Error("bbox not found");if(c.debug("bounds",I),u){if(s.append("text").text(u).attr("x",I.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=s.node()?.getBBox(),!I)throw new Error("bbox not found");c.debug("bounds after title",I)}const[M]=h(i.fontSize),H=2*(M??16),C=.5*(M??16)+20,L=s.append("g").attr("class","lineWrapper");L.append("line").attr("x1",$).attr("y1",b-H).attr("x2",$).attr("y2",I.y+I.height+C).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),L.lower(),d(void 0,s,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),lt=t(function(t,e,n,r,i,a,s,o,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:ot,padding:5,maxHeight:a};c.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),p=nt.drawNode(d,e,n,s),u=p.height;c.debug("taskHeight after draw",u);const g=r-20-p.width;if(d.attr("transform",`translate(${g}, ${i})`),a=Math.max(a,u),h.events&&h.events.length>0){const e=i,a=r+50;ht(t,h.events,n,r,a,e,s)}i+=o,l&&!s.timeline?.disableMulticolor&&n++}},"drawTasks"),ht=t(function(t,e,n,r,i,a,s){let o=a;for(const a of e){const e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};c.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),h=nt.drawNode(l,e,n,s).height;l.attr("transform",`translate(${i}, ${o})`);const d=o+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",r).attr("y1",d).attr("x2",i).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+h+10}return o-a},"drawEvents"),dt={setConf:t(()=>{},"setConf"),draw:ct},pt=t(t=>{const{theme:i}=e(),a=i?.includes("dark"),s=r(i,t.borderColorArray),o=t.svgId?.replace(/^#/,"")??"",c=o?`url(#${o}-drop-shadow)`:t.dropShadow??"none";let l="";for(let e=0;e<n(t.THEME_COLOR_LIMIT);e++){const n=""+(17-3*e),r=s?t.borderColorArray[e%t.borderColorArray.length]:void 0,i=r??t.mainBkg,o=r??t.nodeBorder;l+=`\n .section-${e-1} rect,\n .section-${e-1} path,\n .section-${e-1} circle {\n fill: ${a&&s?t.mainBkg:i};\n stroke: ${o};\n stroke-width: ${t.strokeWidth};\n filter: ${c};\n }\n\n .section-${e-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${e-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+e]};\n }\n\n .section-edge-${e-1} {\n stroke: ${t["cScale"+e]};\n }\n\n .edge-depth-${e-1} {\n stroke-width: ${n};\n }\n\n .section-${e-1} line {\n stroke: ${t["cScaleInv"+e]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return l},"genReduxSections"),ut=t(t=>{let e="";const r=n(t.THEME_COLOR_LIMIT);for(let e=0;e<r;e++)t["lineColor"+e]=t["lineColor"+e]??t["cScaleInv"+e],i(t["lineColor"+e])?t["lineColor"+e]=a(t["lineColor"+e],20):t["lineColor"+e]=s(t["lineColor"+e],20);for(let n=0;n<r;n++){const r=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${r};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),gt=t(t=>{const{theme:r}=e(),i=r?.includes("redux"),a="neutral"===r,s=t.svgId?.replace(/^#/,"")??"";let o="";if(t.useGradient&&s&&t.THEME_COLOR_LIMIT&&!a){const e=n(t.THEME_COLOR_LIMIT);for(let n=0;n<e;n++)o+=`\n .section-${n-1}[data-look="neo"] rect,\n .section-${n-1}[data-look="neo"] path,\n .section-${n-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }\n .section-${n-1}[data-look="neo"] line {\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }`}return`\n .edge {\n stroke-width: 3;\n }\n ${i?pt(t):ut(t)}\n ${o}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),yt={db:b,renderer:{setConf:t(()=>{},"setConf"),draw:t((t,e,n,r)=>"TD"===(r?.db?.getDirection?.()??"LR")?dt.draw(t,e,n,r):st.draw(t,e,n,r),"draw")},parser:x,styles:gt};export{yt as diagram};
|
|
1
|
+
import{_ as t,O as e,H as n,E as r,ah as i,ai as a,aj as s,c as o,l as c,T as l,ab as h,ak as d,k as p,N as u,al as g,C as y}from"./mermaid.core-DRk6tt5W.js";import{d as f}from"./arc-COK0VEkT.js";import"./index-BpcqEzEG.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-iref2pEJ.js";import"./settings-CBGV-lz3.js";import"./constants.js";import"./LoaderLayer-ECtsj85k.js";import"./websocket-CdeP8N_S.js";import"./index-2PTQqTnK.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var m=function(){var e=t(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],s=[1,15],o=[1,16],c=[1,19],l=[1,20],h={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(t,e,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 3:r.setDirection("LR");break;case 4:r.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:r.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:r.addTask(a[o],0,""),this.$=a[o];break;case 19:r.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:r,15:i,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,r=[0],i=[],a=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(u.yy[g]=this.yy[g]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;s.push(y);var f=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){r.length=r.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),t(m,"lex");for(var x,b,k,w,_,v,$,S,E={};;){if(b=r[r.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(_ in S=[],o[b])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:r.push(x),a.push(p.yytext),s.push(p.yylloc),r.push(k[1]),x=null,h=p.yyleng,c=p.yytext,l=p.yylineno,y=p.yylloc;break;case 2:if(v=this.productions_[k[1]][1],E.$=a[a.length-v],E._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},f&&(E._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[c,h,l,u.yy,k[1],a,s].concat(d))))return w;v&&(r=r.slice(0,-1*v*2),a=a.slice(0,-1*v),s=s.slice(0,-1*v)),r.push(this.productions_[k[1]][0]),a.push(E.$),s.push(E._$),$=o[r[r.length-2]][r[r.length-1]],r.push($);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:t(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var t=this.next();return t||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(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:t(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,r){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function p(){this.yy={}}return h.lexer=d,t(p,"Parser"),p.prototype=h,h.Parser=p,new p}();m.parser=m;var x=m,b={};u(b,{addEvent:()=>j,addSection:()=>H,addTask:()=>N,addTaskOrg:()=>D,clear:()=>T,default:()=>O,getCommonDb:()=>E,getDirection:()=>M,getSections:()=>C,getTasks:()=>L,setDirection:()=>I});var k="",w=0,_="LR",v=[],$=[],S=[],E=t(()=>g,"getCommonDb"),T=t(function(){v.length=0,$.length=0,k="",S.length=0,_="LR",y()},"clear"),I=t(function(t){_=t},"setDirection"),M=t(function(){return _},"getDirection"),H=t(function(t){k=t,v.push(t)},"addSection"),C=t(function(){return v},"getSections"),L=t(function(){let t=A();let e=0;for(;!t&&e<100;)t=A(),e++;return $.push(...S),$},"getTasks"),N=t(function(t,e,n){const r={id:w++,section:k,type:k,task:t,score:e||0,events:n?[n]:[]};S.push(r)},"addTask"),j=t(function(t){S.find(t=>t.id===w-1).events.push(t)},"addEvent"),D=t(function(t){const e={section:k,type:k,description:t,task:t,classes:[]};$.push(e)},"addTaskOrg"),A=t(function(){const e=t(function(t){return S[t].processed},"compileTask");let n=!0;for(const[t,r]of S.entries())e(t),n=n&&r.processed;return n},"compileTasks"),O={clear:T,getCommonDb:E,getDirection:M,setDirection:I,addSection:H,getSections:C,getTasks:L,addTask:N,addTaskOrg:D,addEvent:j},B=0,R=t(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),P=t(function(e,n){const r=15,i=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",r).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function s(t){const e=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(s,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?s(a):n.score<3?o(a):c(a),i},"drawFace"),W=t(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),F=t(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);const i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r},"drawText"),z=t(function(e,n){function r(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-i)+" "+(t+n-1.2*i)+","+(e+r)+" "+t+","+(e+r)}t(r,"genPoints");const i=e.append("polygon");i.attr("points",r(n.x,n.y,50,20,7)),i.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,F(e,n)},"drawLabel"),V=t(function(t,e,n){const r=t.append("g"),i=Y();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,R(r,i),X(n)(e.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),G=-1,U=t(function(t,e,n,r){const i=e.x+n.width/2,a=t.append("g");G++;a.append("line").attr("id",r+"-task"+G).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),P(a,{cx:i,cy:300+30*(5-e.score),score:e.score});const s=Y();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,R(a,s),X(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),Z=t(function(t,e){R(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),q=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),X=function(){function e(t,e,n,r,a,s,o,c){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,r,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){const c=t*h-h*(p.length-1)/2,u=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);u.append("tspan").attr("x",n+a/2).attr("dy",c).text(p[t]),u.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(u,o)}}function r(t,e,r,a,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,r,a,s,o,c,l),i(d,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(r,"byFo"),t(i,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?r:"old"===t.textPlacement?e:n}}(),J=t(function(t,e){B=0,G=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function K(t,e){t.each(function(){var t,n=p(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<r.length;s++)t=r[r.length-1-s],i.push(t),o.text(i.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(i.pop(),o.text(i.join(" ").trim()),i="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}t(K,"wrap");var Q=t(function(t,e,n,r,i,a=!1){const{theme:s,look:o}=r,c=s?.includes("redux"),l=n%(r?.themeVariables?.THEME_COLOR_LIMIT??12)-1,h=t.append("g");e.section=l,h.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+l);const d=h.append("g"),u=h.append("g"),g=u.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),y=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,u.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&u.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),et(d,e,l,i,r),"neo"===o&&(h.attr("data-look","neo"),c)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),r=p(n),i=r.attr("id")??"",a=i?`${i}-drop-shadow`:"drop-shadow";if(r.select(`#${a}`).empty()){const t=r.select("defs");(t.empty()?r.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),tt=t(function(t,e,n){const r=t.append("g"),i=r.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return r.remove(),i.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),et=t(function(t,e,n,r,i){const{theme:a}=i,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",r+"-node-"+B++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),nt={drawRect:R,drawCircle:W,drawSection:V,drawText:F,drawLabel:z,drawTask:U,drawBackgroundRect:Z,getTextObj:q,getNoteRect:Y,initGraphics:J,drawNode:Q,getVirtualNodeHeight:tt},rt=t(function(t,e,n,r){const i=o(),{look:a,theme:s,themeVariables:l}=i,{useGradient:h,gradientStart:u,gradientStop:g}=l,y=i.timeline?.leftMargin??50;c.debug("timeline",r.db);const f=i.securityLevel;let m;"sandbox"===f&&(m=p("#i"+e));const x=p("sandbox"===f?m.nodes()[0].contentDocument.body:"body").select("#"+e);x.append("g");const b=r.db.getTasks(),k=r.db.getCommonDb().getDiagramTitle();c.debug("task",b),nt.initGraphics(x,e);const w=r.db.getSections();c.debug("sections",w);let _=0,v=0,$=0,S=0,E=50+y,T=50;S=50;let I=0,M=!0;w.forEach(function(t){const e={number:I,descr:t,section:I,width:150,padding:20,maxHeight:_},n=nt.getVirtualNodeHeight(x,e,i);c.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let H=0,C=0;c.debug("tasks.length",b.length);for(const[t,e]of b.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:v},r=nt.getVirtualNodeHeight(x,n,i);c.debug("taskHeight before draw",r),v=Math.max(v,r+20),H=Math.max(H,e.events.length);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=nt.getVirtualNodeHeight(x,n,i)}e.events.length>0&&(a+=10*(e.events.length-1)),C=Math.max(C,a)}c.debug("maxSectionHeight before draw",_),c.debug("maxTaskHeight before draw",v),w&&w.length>0?w.forEach(t=>{const n=b.filter(e=>e.section===t),r={number:I,descr:t,section:I,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};c.debug("sectionNode",r);const a=x.append("g"),s=nt.drawNode(a,r,I,i,e);c.debug("sectionNode output",s),a.attr("transform",`translate(${E}, 50)`),T+=_+50,n.length>0&&it(x,n,I,E,T,v,i,H,C,_,!1,e),E+=200*Math.max(n.length,1),T=50,I++}):(M=!1,it(x,b,I,E,T,v,i,H,C,_,!0,e));const L=x.node().getBBox();c.debug("bounds",L),k&&x.append("text").text(k).attr("x","neo"===a?2*L.x+y:L.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),$=M?_+v+150:v+100;if(x.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",$).attr("x2",L.width+3*y).attr("y2",$).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===a&&h&&"neutral"!==s){const t=x.select("defs"),e=(t.empty()?x.append("defs"):t).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}d(void 0,x,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),it=t(function(t,e,n,r,i,a,s,o,l,h,d,p){for(const o of e){const e={descr:o.task,section:n,number:n,width:150,padding:20,maxHeight:a};c.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),u=nt.drawNode(h,e,n,s,p).height;if(c.debug("taskHeight after draw",u),h.attr("transform",`translate(${r}, ${i})`),a=Math.max(a,u),o.events){const e=t.append("g").attr("class","lineWrapper");let c=a;i+=100,c+=at(t,o.events,n,r,i,s,p),i-=100,e.append("line").attr("x1",r+95).attr("y1",i+a).attr("x2",r+95).attr("y2",i+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}r+=200,d&&!s.timeline?.disableMulticolor&&n++}i-=10},"drawTasks"),at=t(function(t,e,n,r,i,a,s){let o=0;const l=i;i+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};c.debug("eventNode",e);const h=t.append("g").attr("class","eventWrapper"),d=nt.drawNode(h,e,n,a,s,!0).height;o+=d,h.attr("transform",`translate(${r}, ${i})`),i=i+10+d}return i=l,o},"drawEvents"),st={setConf:t(()=>{},"setConf"),draw:rt},ot=200,ct=t(function(t,e,n,r){const i=o(),a=i.timeline?.leftMargin??50;c.debug("timeline",r.db);const s=l(e);s.append("g");const p=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();c.debug("task",p),nt.initGraphics(s);const g=r.db.getSections();c.debug("sections",g);let y=0,f=0;const m=50+a;let x=50;const b=x,k=230,w=m+k;let _=0;const v=g&&g.length>0,$=v?w:m+k,S=Math.max(50,580);g.forEach(function(t){const e={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y},n=nt.getVirtualNodeHeight(s,e,i);c.debug("sectionHeight before draw",n),y=Math.max(y,n)});let E=0;c.debug("tasks.length",p.length);for(const[t,e]of p.entries()){const n={number:t,descr:e,section:e.section,width:ot,padding:5,maxHeight:f},r=nt.getVirtualNodeHeight(s,n,i);c.debug("taskHeight before draw",r),f=Math.max(f,r);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};a+=nt.getVirtualNodeHeight(s,n,i)}e.events.length>0&&(a+=10*(e.events.length-1)),E=Math.max(E,a)+0}c.debug("maxSectionHeight before draw",y),c.debug("maxTaskHeight before draw",f);const T=Math.max(f,E)+30;v?g.forEach(t=>{const e=p.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y};c.debug("sectionNode",n);const r=s.append("g"),a=nt.drawNode(r,n,_,i);c.debug("sectionNode output",a);const o=$-k;r.attr("transform",`translate(${o}, ${x})`);const l=x+a.height+20;e.length>0&<(s,e,_,$,l,f,i,T,!1);const h=e.length,d=a.height+20+T*Math.max(h,1)-(h>0?60:0);x+=d,_++}):lt(s,p,_,$,x,f,i,T,!0);let I=s.node()?.getBBox();if(!I)throw new Error("bbox not found");if(c.debug("bounds",I),u){if(s.append("text").text(u).attr("x",I.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=s.node()?.getBBox(),!I)throw new Error("bbox not found");c.debug("bounds after title",I)}const[M]=h(i.fontSize),H=2*(M??16),C=.5*(M??16)+20,L=s.append("g").attr("class","lineWrapper");L.append("line").attr("x1",$).attr("y1",b-H).attr("x2",$).attr("y2",I.y+I.height+C).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),L.lower(),d(void 0,s,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),lt=t(function(t,e,n,r,i,a,s,o,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:ot,padding:5,maxHeight:a};c.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),p=nt.drawNode(d,e,n,s),u=p.height;c.debug("taskHeight after draw",u);const g=r-20-p.width;if(d.attr("transform",`translate(${g}, ${i})`),a=Math.max(a,u),h.events&&h.events.length>0){const e=i,a=r+50;ht(t,h.events,n,r,a,e,s)}i+=o,l&&!s.timeline?.disableMulticolor&&n++}},"drawTasks"),ht=t(function(t,e,n,r,i,a,s){let o=a;for(const a of e){const e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};c.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),h=nt.drawNode(l,e,n,s).height;l.attr("transform",`translate(${i}, ${o})`);const d=o+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",r).attr("y1",d).attr("x2",i).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+h+10}return o-a},"drawEvents"),dt={setConf:t(()=>{},"setConf"),draw:ct},pt=t(t=>{const{theme:i}=e(),a=i?.includes("dark"),s=r(i,t.borderColorArray),o=t.svgId?.replace(/^#/,"")??"",c=o?`url(#${o}-drop-shadow)`:t.dropShadow??"none";let l="";for(let e=0;e<n(t.THEME_COLOR_LIMIT);e++){const n=""+(17-3*e),r=s?t.borderColorArray[e%t.borderColorArray.length]:void 0,i=r??t.mainBkg,o=r??t.nodeBorder;l+=`\n .section-${e-1} rect,\n .section-${e-1} path,\n .section-${e-1} circle {\n fill: ${a&&s?t.mainBkg:i};\n stroke: ${o};\n stroke-width: ${t.strokeWidth};\n filter: ${c};\n }\n\n .section-${e-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${e-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+e]};\n }\n\n .section-edge-${e-1} {\n stroke: ${t["cScale"+e]};\n }\n\n .edge-depth-${e-1} {\n stroke-width: ${n};\n }\n\n .section-${e-1} line {\n stroke: ${t["cScaleInv"+e]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return l},"genReduxSections"),ut=t(t=>{let e="";const r=n(t.THEME_COLOR_LIMIT);for(let e=0;e<r;e++)t["lineColor"+e]=t["lineColor"+e]??t["cScaleInv"+e],i(t["lineColor"+e])?t["lineColor"+e]=a(t["lineColor"+e],20):t["lineColor"+e]=s(t["lineColor"+e],20);for(let n=0;n<r;n++){const r=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${r};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),gt=t(t=>{const{theme:r}=e(),i=r?.includes("redux"),a="neutral"===r,s=t.svgId?.replace(/^#/,"")??"";let o="";if(t.useGradient&&s&&t.THEME_COLOR_LIMIT&&!a){const e=n(t.THEME_COLOR_LIMIT);for(let n=0;n<e;n++)o+=`\n .section-${n-1}[data-look="neo"] rect,\n .section-${n-1}[data-look="neo"] path,\n .section-${n-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }\n .section-${n-1}[data-look="neo"] line {\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }`}return`\n .edge {\n stroke-width: 3;\n }\n ${i?pt(t):ut(t)}\n ${o}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),yt={db:b,renderer:{setConf:t(()=>{},"setConf"),draw:t((t,e,n,r)=>"TD"===(r?.db?.getDirection?.()??"LR")?dt.draw(t,e,n,r):st.draw(t,e,n,r),"draw")},parser:x,styles:gt};export{yt as diagram};
|