@toimc/markdown 0.0.1 → 0.0.3
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/LICENSE +21 -0
- package/README.md +165 -0
- package/dist/{bash-Cm4CVo6v.js → bash-CB7IBf-7.js} +0 -1
- package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
- package/dist/components/CodeBlock.vue.d.ts.map +1 -0
- package/dist/components/LatexBlock.vue.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
- package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
- package/dist/composables/useMarkdownIt.d.ts.map +1 -1
- package/dist/css-BNAk6GUm.js +1 -0
- package/dist/css-CSuiabBd.cjs +1 -0
- package/dist/css-XGfOcSWP.js +2 -0
- package/dist/css-hISgu-gn.cjs +1 -0
- package/dist/{github-dark-C85MA6EW.js → github-dark-HjHQSF6c.js} +1 -2
- package/dist/{github-light-Dzg0sEwI.js → github-light-BS4bTP_A.js} +1 -2
- package/dist/{go-BEdBk4fh.js → go-DM5FkVJr.js} +0 -1
- package/dist/{html-CptZ4PZn.cjs → html-B74xNLl7.cjs} +1 -1
- package/dist/html-BfvIZbOy.cjs +1 -0
- package/dist/{html-Ctxsat8s.js → html-CPRPPrI5.js} +4 -5
- package/dist/html-CicqKfTr.js +1 -0
- package/dist/index.cjs +63 -61
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +6136 -5530
- package/dist/{javascript-Bk0bJ4nQ.js → javascript-BA7R0ZzU.js} +0 -1
- package/dist/javascript-D3uiIYXW.js +1 -0
- package/dist/json-BxN5JlXF.js +1 -0
- package/dist/{json-DFt_0dbD.js → json-DzGpsm5O.js} +0 -1
- package/dist/{jsx-BHkwOr0x.js → jsx-OQctj7OM.js} +0 -1
- package/dist/katex.css +1 -1
- package/dist/{markdown-nUtTZkU8.js → markdown-CNVZ8ok-.js} +0 -1
- package/dist/markdown.css +1 -1
- package/dist/{python-D0AaDoWC.js → python-BHaXfePs.js} +0 -1
- package/dist/rust-CbGaYpW0.js +2 -0
- package/dist/rust-rQqn7k8G.cjs +1 -0
- package/dist/{scss-CoGT9c_3.js → scss-C-hhxfjO.js} +2 -3
- package/dist/{scss-BY5CCWQ_.cjs → scss-t_1qNxqd.cjs} +1 -1
- package/dist/sql-DbsWPbnd.js +2 -0
- package/dist/sql-Dz4D2KVE.cjs +1 -0
- package/dist/{tsx-Cb6KMAZH.js → tsx-6akVe_f1.js} +0 -1
- package/dist/typescript-BV-txBTG.js +1 -0
- package/dist/{typescript-C4BXhs_3.js → typescript-DB3hlC91.js} +0 -1
- package/dist/utils/formula-guard.d.ts +13 -0
- package/dist/utils/formula-guard.d.ts.map +1 -0
- package/dist/utils/split-lines.d.ts +10 -0
- package/dist/utils/split-lines.d.ts.map +1 -0
- package/dist/{vue-DG6ivzcc.cjs → vue-Dsb5eNKu.cjs} +1 -1
- package/dist/{vue-DcTnNxpt.js → vue-wUrCEfyQ.js} +9 -10
- package/dist/{yaml-DXmkPuRD.js → yaml-CcAIbj8h.js} +0 -1
- package/package.json +21 -17
- package/dist/CodeBlock.test.d.ts +0 -2
- package/dist/CodeBlock.test.d.ts.map +0 -1
- package/dist/CodeBlock.vue.d.ts.map +0 -1
- package/dist/LatexBlock.test.d.ts +0 -2
- package/dist/LatexBlock.test.d.ts.map +0 -1
- package/dist/LatexBlock.vue.d.ts.map +0 -1
- package/dist/MarkdownRenderer.test.d.ts +0 -2
- package/dist/MarkdownRenderer.test.d.ts.map +0 -1
- package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
- package/dist/MermaidBlock.test.d.ts +0 -2
- package/dist/MermaidBlock.test.d.ts.map +0 -1
- package/dist/MermaidBlock.vue.d.ts.map +0 -1
- package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
- package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
- package/dist/arc-CFxpoaLu.js +0 -82
- package/dist/arc-Dh2Zrypi.cjs +0 -1
- package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
- package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
- package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
- package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
- package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
- package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
- package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
- package/dist/channel-CNZiSge7.cjs +0 -1
- package/dist/channel-CqlbSsMQ.js +0 -5
- package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
- package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
- package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
- package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
- package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
- package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
- package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
- package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
- package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
- package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
- package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
- package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
- package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
- package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
- package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
- package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
- package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
- package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
- package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
- package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
- package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
- package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
- package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
- package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
- package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
- package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
- package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
- package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
- package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
- package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
- package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
- package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
- package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
- package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
- package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
- package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
- package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
- package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
- package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
- package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
- package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
- package/dist/composables/useHighlighter.test.d.ts +0 -2
- package/dist/composables/useHighlighter.test.d.ts.map +0 -1
- package/dist/composables/useMarkdownIt.test.d.ts +0 -2
- package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
- package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
- package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
- package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
- package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
- package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
- package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
- package/dist/css-BbwcBM_4.js +0 -2
- package/dist/css-CEHhC-OC.cjs +0 -1
- package/dist/css-Ca3W2DHx.cjs +0 -1
- package/dist/css-HuzvwXs-.js +0 -3
- package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
- package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
- package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
- package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
- package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
- package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
- package/dist/dagre-DarAkhy1.cjs +0 -1
- package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
- package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
- package/dist/dagre-x4cMb6gU.js +0 -1699
- package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
- package/dist/defaultLocale-yzzuPw6P.js +0 -198
- package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
- package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
- package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
- package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
- package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
- package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
- package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
- package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
- package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
- package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
- package/dist/dist-BP2me-br.js +0 -59
- package/dist/dist-Dwv2VYAL.cjs +0 -1
- package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
- package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
- package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
- package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
- package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
- package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
- package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
- package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
- package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
- package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
- package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
- package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
- package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
- package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
- package/dist/graphlib-BaETKKSa.cjs +0 -1
- package/dist/graphlib-DoD0LnUK.js +0 -1267
- package/dist/html-BH9giSUA.js +0 -2
- package/dist/html-DtqQp8LO.cjs +0 -1
- package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
- package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
- package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
- package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
- package/dist/init-BJdqMO10.cjs +0 -1
- package/dist/init-sjaVZO3f.js +0 -13
- package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
- package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
- package/dist/javascript--0qAxhnA.js +0 -2
- package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
- package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
- package/dist/json-DVwBUiza.js +0 -2
- package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
- package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
- package/dist/katex-BfeHGk4M.js +0 -21977
- package/dist/katex-CEF6MvLx.cjs +0 -257
- package/dist/line-8EHPtDZA.cjs +0 -1
- package/dist/line-BifI9Y7j.js +0 -34
- package/dist/linear-Nt9BuHfn.cjs +0 -1
- package/dist/linear-l8AD1ib_.js +0 -288
- package/dist/map-CCpPjiU9.cjs +0 -1
- package/dist/map-DUk1uXZC.js +0 -241
- package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
- package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
- package/dist/mermaid.core-C05C5gh_.cjs +0 -41
- package/dist/mermaid.core-CxM-VhZd.js +0 -2297
- package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
- package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
- package/dist/ordinal-Bm_chml2.cjs +0 -1
- package/dist/ordinal-CNQzPcrr.js +0 -65
- package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
- package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
- package/dist/path-DIS6ck99.cjs +0 -1
- package/dist/path-DVvH25eQ.js +0 -84
- package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
- package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
- package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
- package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
- package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
- package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
- package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
- package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
- package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
- package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
- package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
- package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
- package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
- package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
- package/dist/renderers/tokensToHtml.test.d.ts +0 -2
- package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
- package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
- package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
- package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
- package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
- package/dist/rough.esm-B2w_aYoc.js +0 -1361
- package/dist/rough.esm-ChRLLRha.cjs +0 -1
- package/dist/rust-BrRMzTsN.js +0 -3
- package/dist/rust-DWYDZl_E.cjs +0 -1
- package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
- package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
- package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
- package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
- package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
- package/dist/sql-CF-HzF4U.cjs +0 -1
- package/dist/sql-DvCCsF21.js +0 -3
- package/dist/src-C7bjHtAI.js +0 -2139
- package/dist/src-D9o9TOtH.cjs +0 -1
- package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
- package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
- package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
- package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
- package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
- package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
- package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
- package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
- package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
- package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
- package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
- package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
- package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
- package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
- package/dist/typescript-DFf19o_s.js +0 -2
- package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
- package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
- package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
- package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
- package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
- package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
- package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
- package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
- package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
- package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
- /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
- /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
- /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
|
@@ -1,1069 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-Y2CYZVJY-DO9UHHon.js";
|
|
2
|
-
import { m as n, p as r } from "./src-C7bjHtAI.js";
|
|
3
|
-
import { J as i, a, b as o, et as s, o as c, rt as l, tt as u, x as d } from "./chunk-I66GZJ75-xmbkwRyp.js";
|
|
4
|
-
import { t as f } from "./arc-CFxpoaLu.js";
|
|
5
|
-
import { p } from "./chunk-NSK5VX7P-BO1SrWAL.js";
|
|
6
|
-
import { a as m } from "./mermaid.core-CxM-VhZd.js";
|
|
7
|
-
//#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-Z64GVDOM.mjs
|
|
8
|
-
var h = (function() {
|
|
9
|
-
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
10
|
-
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
11
|
-
return n;
|
|
12
|
-
}, "o"), n = [
|
|
13
|
-
6,
|
|
14
|
-
11,
|
|
15
|
-
13,
|
|
16
|
-
14,
|
|
17
|
-
15,
|
|
18
|
-
17,
|
|
19
|
-
19,
|
|
20
|
-
20,
|
|
21
|
-
23,
|
|
22
|
-
24
|
|
23
|
-
], r = [1, 12], i = [1, 13], a = [1, 14], o = [1, 15], s = [1, 16], c = [1, 19], l = [1, 20], u = {
|
|
24
|
-
trace: /* @__PURE__ */ e(function() {}, "trace"),
|
|
25
|
-
yy: {},
|
|
26
|
-
symbols_: {
|
|
27
|
-
error: 2,
|
|
28
|
-
start: 3,
|
|
29
|
-
timeline_header: 4,
|
|
30
|
-
document: 5,
|
|
31
|
-
EOF: 6,
|
|
32
|
-
timeline: 7,
|
|
33
|
-
timeline_lr: 8,
|
|
34
|
-
timeline_td: 9,
|
|
35
|
-
line: 10,
|
|
36
|
-
SPACE: 11,
|
|
37
|
-
statement: 12,
|
|
38
|
-
NEWLINE: 13,
|
|
39
|
-
title: 14,
|
|
40
|
-
acc_title: 15,
|
|
41
|
-
acc_title_value: 16,
|
|
42
|
-
acc_descr: 17,
|
|
43
|
-
acc_descr_value: 18,
|
|
44
|
-
acc_descr_multiline_value: 19,
|
|
45
|
-
section: 20,
|
|
46
|
-
period_statement: 21,
|
|
47
|
-
event_statement: 22,
|
|
48
|
-
period: 23,
|
|
49
|
-
event: 24,
|
|
50
|
-
$accept: 0,
|
|
51
|
-
$end: 1
|
|
52
|
-
},
|
|
53
|
-
terminals_: {
|
|
54
|
-
2: "error",
|
|
55
|
-
6: "EOF",
|
|
56
|
-
7: "timeline",
|
|
57
|
-
8: "timeline_lr",
|
|
58
|
-
9: "timeline_td",
|
|
59
|
-
11: "SPACE",
|
|
60
|
-
13: "NEWLINE",
|
|
61
|
-
14: "title",
|
|
62
|
-
15: "acc_title",
|
|
63
|
-
16: "acc_title_value",
|
|
64
|
-
17: "acc_descr",
|
|
65
|
-
18: "acc_descr_value",
|
|
66
|
-
19: "acc_descr_multiline_value",
|
|
67
|
-
20: "section",
|
|
68
|
-
23: "period",
|
|
69
|
-
24: "event"
|
|
70
|
-
},
|
|
71
|
-
productions_: [
|
|
72
|
-
0,
|
|
73
|
-
[3, 3],
|
|
74
|
-
[4, 1],
|
|
75
|
-
[4, 1],
|
|
76
|
-
[4, 1],
|
|
77
|
-
[5, 0],
|
|
78
|
-
[5, 2],
|
|
79
|
-
[10, 2],
|
|
80
|
-
[10, 1],
|
|
81
|
-
[10, 1],
|
|
82
|
-
[10, 1],
|
|
83
|
-
[12, 1],
|
|
84
|
-
[12, 2],
|
|
85
|
-
[12, 2],
|
|
86
|
-
[12, 1],
|
|
87
|
-
[12, 1],
|
|
88
|
-
[12, 1],
|
|
89
|
-
[12, 1],
|
|
90
|
-
[21, 1],
|
|
91
|
-
[22, 1]
|
|
92
|
-
],
|
|
93
|
-
performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
|
|
94
|
-
var s = a.length - 1;
|
|
95
|
-
switch (i) {
|
|
96
|
-
case 1: return a[s - 1];
|
|
97
|
-
case 3:
|
|
98
|
-
r.setDirection("LR");
|
|
99
|
-
break;
|
|
100
|
-
case 4:
|
|
101
|
-
r.setDirection("TD");
|
|
102
|
-
break;
|
|
103
|
-
case 5:
|
|
104
|
-
this.$ = [];
|
|
105
|
-
break;
|
|
106
|
-
case 6:
|
|
107
|
-
a[s - 1].push(a[s]), this.$ = a[s - 1];
|
|
108
|
-
break;
|
|
109
|
-
case 7:
|
|
110
|
-
case 8:
|
|
111
|
-
this.$ = a[s];
|
|
112
|
-
break;
|
|
113
|
-
case 9:
|
|
114
|
-
case 10:
|
|
115
|
-
this.$ = [];
|
|
116
|
-
break;
|
|
117
|
-
case 11:
|
|
118
|
-
r.getCommonDb().setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
|
|
119
|
-
break;
|
|
120
|
-
case 12:
|
|
121
|
-
this.$ = a[s].trim(), r.getCommonDb().setAccTitle(this.$);
|
|
122
|
-
break;
|
|
123
|
-
case 13:
|
|
124
|
-
case 14:
|
|
125
|
-
this.$ = a[s].trim(), r.getCommonDb().setAccDescription(this.$);
|
|
126
|
-
break;
|
|
127
|
-
case 15:
|
|
128
|
-
r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
|
|
129
|
-
break;
|
|
130
|
-
case 18:
|
|
131
|
-
r.addTask(a[s], 0, ""), this.$ = a[s];
|
|
132
|
-
break;
|
|
133
|
-
case 19: r.addEvent(a[s].substr(2)), this.$ = a[s];
|
|
134
|
-
}
|
|
135
|
-
}, "anonymous"),
|
|
136
|
-
table: [
|
|
137
|
-
{
|
|
138
|
-
3: 1,
|
|
139
|
-
4: 2,
|
|
140
|
-
7: [1, 3],
|
|
141
|
-
8: [1, 4],
|
|
142
|
-
9: [1, 5]
|
|
143
|
-
},
|
|
144
|
-
{ 1: [3] },
|
|
145
|
-
t(n, [2, 5], { 5: 6 }),
|
|
146
|
-
t(n, [2, 2]),
|
|
147
|
-
t(n, [2, 3]),
|
|
148
|
-
t(n, [2, 4]),
|
|
149
|
-
{
|
|
150
|
-
6: [1, 7],
|
|
151
|
-
10: 8,
|
|
152
|
-
11: [1, 9],
|
|
153
|
-
12: 10,
|
|
154
|
-
13: [1, 11],
|
|
155
|
-
14: r,
|
|
156
|
-
15: i,
|
|
157
|
-
17: a,
|
|
158
|
-
19: o,
|
|
159
|
-
20: s,
|
|
160
|
-
21: 17,
|
|
161
|
-
22: 18,
|
|
162
|
-
23: c,
|
|
163
|
-
24: l
|
|
164
|
-
},
|
|
165
|
-
t(n, [2, 10], { 1: [2, 1] }),
|
|
166
|
-
t(n, [2, 6]),
|
|
167
|
-
{
|
|
168
|
-
12: 21,
|
|
169
|
-
14: r,
|
|
170
|
-
15: i,
|
|
171
|
-
17: a,
|
|
172
|
-
19: o,
|
|
173
|
-
20: s,
|
|
174
|
-
21: 17,
|
|
175
|
-
22: 18,
|
|
176
|
-
23: c,
|
|
177
|
-
24: l
|
|
178
|
-
},
|
|
179
|
-
t(n, [2, 8]),
|
|
180
|
-
t(n, [2, 9]),
|
|
181
|
-
t(n, [2, 11]),
|
|
182
|
-
{ 16: [1, 22] },
|
|
183
|
-
{ 18: [1, 23] },
|
|
184
|
-
t(n, [2, 14]),
|
|
185
|
-
t(n, [2, 15]),
|
|
186
|
-
t(n, [2, 16]),
|
|
187
|
-
t(n, [2, 17]),
|
|
188
|
-
t(n, [2, 18]),
|
|
189
|
-
t(n, [2, 19]),
|
|
190
|
-
t(n, [2, 7]),
|
|
191
|
-
t(n, [2, 12]),
|
|
192
|
-
t(n, [2, 13])
|
|
193
|
-
],
|
|
194
|
-
defaultActions: {},
|
|
195
|
-
parseError: /* @__PURE__ */ e(function(e, t) {
|
|
196
|
-
if (t.recoverable) this.trace(e);
|
|
197
|
-
else {
|
|
198
|
-
var n = Error(e);
|
|
199
|
-
throw n.hash = t, n;
|
|
200
|
-
}
|
|
201
|
-
}, "parseError"),
|
|
202
|
-
parse: /* @__PURE__ */ e(function(t) {
|
|
203
|
-
var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
204
|
-
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
205
|
-
h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
206
|
-
var v = h.yylloc;
|
|
207
|
-
o.push(v);
|
|
208
|
-
var y = h.options && h.options.ranges;
|
|
209
|
-
this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
|
|
210
|
-
function b(e) {
|
|
211
|
-
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
212
|
-
}
|
|
213
|
-
e(b, "popStack");
|
|
214
|
-
function x() {
|
|
215
|
-
var e = i.pop() || h.lex() || p;
|
|
216
|
-
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
|
|
217
|
-
}
|
|
218
|
-
e(x, "lex");
|
|
219
|
-
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
220
|
-
if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
221
|
-
var M = "";
|
|
222
|
-
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
223
|
-
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
224
|
-
text: h.match,
|
|
225
|
-
token: this.terminals_[S] || S,
|
|
226
|
-
line: h.yylineno,
|
|
227
|
-
loc: v,
|
|
228
|
-
expected: j
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
232
|
-
switch (T[0]) {
|
|
233
|
-
case 1:
|
|
234
|
-
r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
235
|
-
break;
|
|
236
|
-
case 2:
|
|
237
|
-
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
238
|
-
first_line: o[o.length - (k || 1)].first_line,
|
|
239
|
-
last_line: o[o.length - 1].last_line,
|
|
240
|
-
first_column: o[o.length - (k || 1)].first_column,
|
|
241
|
-
last_column: o[o.length - 1].last_column
|
|
242
|
-
}, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
243
|
-
c,
|
|
244
|
-
u,
|
|
245
|
-
l,
|
|
246
|
-
g.yy,
|
|
247
|
-
T[1],
|
|
248
|
-
a,
|
|
249
|
-
o
|
|
250
|
-
].concat(m)), E !== void 0) return E;
|
|
251
|
-
k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
|
|
252
|
-
break;
|
|
253
|
-
case 3: return !0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return !0;
|
|
257
|
-
}, "parse")
|
|
258
|
-
};
|
|
259
|
-
u.lexer = /* @__PURE__ */ (function() {
|
|
260
|
-
return {
|
|
261
|
-
EOF: 1,
|
|
262
|
-
parseError: /* @__PURE__ */ e(function(e, t) {
|
|
263
|
-
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
264
|
-
else throw Error(e);
|
|
265
|
-
}, "parseError"),
|
|
266
|
-
setInput: /* @__PURE__ */ e(function(e, t) {
|
|
267
|
-
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
268
|
-
first_line: 1,
|
|
269
|
-
first_column: 0,
|
|
270
|
-
last_line: 1,
|
|
271
|
-
last_column: 0
|
|
272
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
273
|
-
}, "setInput"),
|
|
274
|
-
input: /* @__PURE__ */ e(function() {
|
|
275
|
-
var e = this._input[0];
|
|
276
|
-
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
277
|
-
}, "input"),
|
|
278
|
-
unput: /* @__PURE__ */ e(function(e) {
|
|
279
|
-
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
280
|
-
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
281
|
-
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
282
|
-
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);
|
|
283
|
-
var i = this.yylloc.range;
|
|
284
|
-
return this.yylloc = {
|
|
285
|
-
first_line: this.yylloc.first_line,
|
|
286
|
-
last_line: this.yylineno + 1,
|
|
287
|
-
first_column: this.yylloc.first_column,
|
|
288
|
-
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
289
|
-
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
290
|
-
}, "unput"),
|
|
291
|
-
more: /* @__PURE__ */ e(function() {
|
|
292
|
-
return this._more = !0, this;
|
|
293
|
-
}, "more"),
|
|
294
|
-
reject: /* @__PURE__ */ e(function() {
|
|
295
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
296
|
-
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
297
|
-
text: "",
|
|
298
|
-
token: null,
|
|
299
|
-
line: this.yylineno
|
|
300
|
-
});
|
|
301
|
-
return this;
|
|
302
|
-
}, "reject"),
|
|
303
|
-
less: /* @__PURE__ */ e(function(e) {
|
|
304
|
-
this.unput(this.match.slice(e));
|
|
305
|
-
}, "less"),
|
|
306
|
-
pastInput: /* @__PURE__ */ e(function() {
|
|
307
|
-
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
308
|
-
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
309
|
-
}, "pastInput"),
|
|
310
|
-
upcomingInput: /* @__PURE__ */ e(function() {
|
|
311
|
-
var e = this.match;
|
|
312
|
-
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
313
|
-
}, "upcomingInput"),
|
|
314
|
-
showPosition: /* @__PURE__ */ e(function() {
|
|
315
|
-
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
316
|
-
return e + this.upcomingInput() + "\n" + t + "^";
|
|
317
|
-
}, "showPosition"),
|
|
318
|
-
test_match: /* @__PURE__ */ e(function(e, t) {
|
|
319
|
-
var n, r, i;
|
|
320
|
-
if (this.options.backtrack_lexer && (i = {
|
|
321
|
-
yylineno: this.yylineno,
|
|
322
|
-
yylloc: {
|
|
323
|
-
first_line: this.yylloc.first_line,
|
|
324
|
-
last_line: this.last_line,
|
|
325
|
-
first_column: this.yylloc.first_column,
|
|
326
|
-
last_column: this.yylloc.last_column
|
|
327
|
-
},
|
|
328
|
-
yytext: this.yytext,
|
|
329
|
-
match: this.match,
|
|
330
|
-
matches: this.matches,
|
|
331
|
-
matched: this.matched,
|
|
332
|
-
yyleng: this.yyleng,
|
|
333
|
-
offset: this.offset,
|
|
334
|
-
_more: this._more,
|
|
335
|
-
_input: this._input,
|
|
336
|
-
yy: this.yy,
|
|
337
|
-
conditionStack: this.conditionStack.slice(0),
|
|
338
|
-
done: this.done
|
|
339
|
-
}, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
340
|
-
first_line: this.yylloc.last_line,
|
|
341
|
-
last_line: this.yylineno + 1,
|
|
342
|
-
first_column: this.yylloc.last_column,
|
|
343
|
-
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
344
|
-
}, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
345
|
-
if (this._backtrack) {
|
|
346
|
-
for (var a in i) this[a] = i[a];
|
|
347
|
-
return !1;
|
|
348
|
-
}
|
|
349
|
-
return !1;
|
|
350
|
-
}, "test_match"),
|
|
351
|
-
next: /* @__PURE__ */ e(function() {
|
|
352
|
-
if (this.done) return this.EOF;
|
|
353
|
-
this._input || (this.done = !0);
|
|
354
|
-
var e, t, n, r;
|
|
355
|
-
this._more || (this.yytext = "", this.match = "");
|
|
356
|
-
for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
|
|
357
|
-
if (t = n, r = a, this.options.backtrack_lexer) {
|
|
358
|
-
if (e = this.test_match(n, i[a]), e !== !1) return e;
|
|
359
|
-
if (this._backtrack) {
|
|
360
|
-
t = !1;
|
|
361
|
-
continue;
|
|
362
|
-
}
|
|
363
|
-
return !1;
|
|
364
|
-
}
|
|
365
|
-
if (!this.options.flex) break;
|
|
366
|
-
}
|
|
367
|
-
return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
368
|
-
text: "",
|
|
369
|
-
token: null,
|
|
370
|
-
line: this.yylineno
|
|
371
|
-
});
|
|
372
|
-
}, "next"),
|
|
373
|
-
lex: /* @__PURE__ */ e(function() {
|
|
374
|
-
return this.next() || this.lex();
|
|
375
|
-
}, "lex"),
|
|
376
|
-
begin: /* @__PURE__ */ e(function(e) {
|
|
377
|
-
this.conditionStack.push(e);
|
|
378
|
-
}, "begin"),
|
|
379
|
-
popState: /* @__PURE__ */ e(function() {
|
|
380
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
381
|
-
}, "popState"),
|
|
382
|
-
_currentRules: /* @__PURE__ */ e(function() {
|
|
383
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
384
|
-
}, "_currentRules"),
|
|
385
|
-
topState: /* @__PURE__ */ e(function(e) {
|
|
386
|
-
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
387
|
-
}, "topState"),
|
|
388
|
-
pushState: /* @__PURE__ */ e(function(e) {
|
|
389
|
-
this.begin(e);
|
|
390
|
-
}, "pushState"),
|
|
391
|
-
stateStackSize: /* @__PURE__ */ e(function() {
|
|
392
|
-
return this.conditionStack.length;
|
|
393
|
-
}, "stateStackSize"),
|
|
394
|
-
options: { "case-insensitive": !0 },
|
|
395
|
-
performAction: /* @__PURE__ */ e(function(e, t, n, r) {
|
|
396
|
-
switch (n) {
|
|
397
|
-
case 0: break;
|
|
398
|
-
case 1: break;
|
|
399
|
-
case 2: return 13;
|
|
400
|
-
case 3: break;
|
|
401
|
-
case 4: break;
|
|
402
|
-
case 5: return 8;
|
|
403
|
-
case 6: return 9;
|
|
404
|
-
case 7: return 7;
|
|
405
|
-
case 8: return 14;
|
|
406
|
-
case 9: return this.begin("acc_title"), 15;
|
|
407
|
-
case 10: return this.popState(), "acc_title_value";
|
|
408
|
-
case 11: return this.begin("acc_descr"), 17;
|
|
409
|
-
case 12: return this.popState(), "acc_descr_value";
|
|
410
|
-
case 13:
|
|
411
|
-
this.begin("acc_descr_multiline");
|
|
412
|
-
break;
|
|
413
|
-
case 14:
|
|
414
|
-
this.popState();
|
|
415
|
-
break;
|
|
416
|
-
case 15: return "acc_descr_multiline_value";
|
|
417
|
-
case 16: return 20;
|
|
418
|
-
case 17: return 24;
|
|
419
|
-
case 18: return 23;
|
|
420
|
-
case 19: return 6;
|
|
421
|
-
case 20: return "INVALID";
|
|
422
|
-
}
|
|
423
|
-
}, "anonymous"),
|
|
424
|
-
rules: [
|
|
425
|
-
/^(?:%(?!\{)[^\n]*)/i,
|
|
426
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
427
|
-
/^(?:[\n]+)/i,
|
|
428
|
-
/^(?:\s+)/i,
|
|
429
|
-
/^(?:#[^\n]*)/i,
|
|
430
|
-
/^(?:timeline[ \t]+LR\b)/i,
|
|
431
|
-
/^(?:timeline[ \t]+TD\b)/i,
|
|
432
|
-
/^(?:timeline\b)/i,
|
|
433
|
-
/^(?:title\s[^\n]+)/i,
|
|
434
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
435
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
436
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
437
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
438
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
439
|
-
/^(?:[\}])/i,
|
|
440
|
-
/^(?:[^\}]*)/i,
|
|
441
|
-
/^(?:section\s[^:\n]+)/i,
|
|
442
|
-
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
443
|
-
/^(?:[^#:\n]+)/i,
|
|
444
|
-
/^(?:$)/i,
|
|
445
|
-
/^(?:.)/i
|
|
446
|
-
],
|
|
447
|
-
conditions: {
|
|
448
|
-
acc_descr_multiline: {
|
|
449
|
-
rules: [14, 15],
|
|
450
|
-
inclusive: !1
|
|
451
|
-
},
|
|
452
|
-
acc_descr: {
|
|
453
|
-
rules: [12],
|
|
454
|
-
inclusive: !1
|
|
455
|
-
},
|
|
456
|
-
acc_title: {
|
|
457
|
-
rules: [10],
|
|
458
|
-
inclusive: !1
|
|
459
|
-
},
|
|
460
|
-
INITIAL: {
|
|
461
|
-
rules: [
|
|
462
|
-
0,
|
|
463
|
-
1,
|
|
464
|
-
2,
|
|
465
|
-
3,
|
|
466
|
-
4,
|
|
467
|
-
5,
|
|
468
|
-
6,
|
|
469
|
-
7,
|
|
470
|
-
8,
|
|
471
|
-
9,
|
|
472
|
-
11,
|
|
473
|
-
13,
|
|
474
|
-
16,
|
|
475
|
-
17,
|
|
476
|
-
18,
|
|
477
|
-
19,
|
|
478
|
-
20
|
|
479
|
-
],
|
|
480
|
-
inclusive: !0
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
})();
|
|
485
|
-
function d() {
|
|
486
|
-
this.yy = {};
|
|
487
|
-
}
|
|
488
|
-
return e(d, "Parser"), d.prototype = u, u.Parser = d, new d();
|
|
489
|
-
})();
|
|
490
|
-
h.parser = h;
|
|
491
|
-
var g = h, _ = {};
|
|
492
|
-
t(_, {
|
|
493
|
-
addEvent: () => M,
|
|
494
|
-
addSection: () => O,
|
|
495
|
-
addTask: () => j,
|
|
496
|
-
addTaskOrg: () => N,
|
|
497
|
-
clear: () => T,
|
|
498
|
-
default: () => ee,
|
|
499
|
-
getCommonDb: () => w,
|
|
500
|
-
getDirection: () => D,
|
|
501
|
-
getSections: () => k,
|
|
502
|
-
getTasks: () => A,
|
|
503
|
-
setDirection: () => E
|
|
504
|
-
});
|
|
505
|
-
var v = "", y = 0, b = "LR", x = [], S = [], C = [], w = /* @__PURE__ */ e(() => c, "getCommonDb"), T = /* @__PURE__ */ e(function() {
|
|
506
|
-
x.length = 0, S.length = 0, v = "", C.length = 0, b = "LR", a();
|
|
507
|
-
}, "clear"), E = /* @__PURE__ */ e(function(e) {
|
|
508
|
-
b = e;
|
|
509
|
-
}, "setDirection"), D = /* @__PURE__ */ e(function() {
|
|
510
|
-
return b;
|
|
511
|
-
}, "getDirection"), O = /* @__PURE__ */ e(function(e) {
|
|
512
|
-
v = e, x.push(e);
|
|
513
|
-
}, "addSection"), k = /* @__PURE__ */ e(function() {
|
|
514
|
-
return x;
|
|
515
|
-
}, "getSections"), A = /* @__PURE__ */ e(function() {
|
|
516
|
-
let e = P(), t = 0;
|
|
517
|
-
for (; !e && t < 100;) e = P(), t++;
|
|
518
|
-
return S.push(...C), S;
|
|
519
|
-
}, "getTasks"), j = /* @__PURE__ */ e(function(e, t, n) {
|
|
520
|
-
let r = {
|
|
521
|
-
id: y++,
|
|
522
|
-
section: v,
|
|
523
|
-
type: v,
|
|
524
|
-
task: e,
|
|
525
|
-
score: t || 0,
|
|
526
|
-
events: n ? [n] : []
|
|
527
|
-
};
|
|
528
|
-
C.push(r);
|
|
529
|
-
}, "addTask"), M = /* @__PURE__ */ e(function(e) {
|
|
530
|
-
C.find((e) => e.id === y - 1).events.push(e);
|
|
531
|
-
}, "addEvent"), N = /* @__PURE__ */ e(function(e) {
|
|
532
|
-
let t = {
|
|
533
|
-
section: v,
|
|
534
|
-
type: v,
|
|
535
|
-
description: e,
|
|
536
|
-
task: e,
|
|
537
|
-
classes: []
|
|
538
|
-
};
|
|
539
|
-
S.push(t);
|
|
540
|
-
}, "addTaskOrg"), P = /* @__PURE__ */ e(function() {
|
|
541
|
-
let t = /* @__PURE__ */ e(function(e) {
|
|
542
|
-
return C[e].processed;
|
|
543
|
-
}, "compileTask"), n = !0;
|
|
544
|
-
for (let [e, r] of C.entries()) t(e), n &&= r.processed;
|
|
545
|
-
return n;
|
|
546
|
-
}, "compileTasks"), ee = {
|
|
547
|
-
clear: T,
|
|
548
|
-
getCommonDb: w,
|
|
549
|
-
getDirection: D,
|
|
550
|
-
setDirection: E,
|
|
551
|
-
addSection: O,
|
|
552
|
-
getSections: k,
|
|
553
|
-
getTasks: A,
|
|
554
|
-
addTask: j,
|
|
555
|
-
addTaskOrg: N,
|
|
556
|
-
addEvent: M
|
|
557
|
-
}, F = 0, I = /* @__PURE__ */ e(function(e, t) {
|
|
558
|
-
let n = e.append("rect");
|
|
559
|
-
return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
|
|
560
|
-
}, "drawRect"), te = /* @__PURE__ */ e(function(t, n) {
|
|
561
|
-
let r = t.append("circle").attr("cx", n.cx).attr("cy", n.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
|
|
562
|
-
i.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"), i.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");
|
|
563
|
-
function a(e) {
|
|
564
|
-
let t = f().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
565
|
-
e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 2) + ")");
|
|
566
|
-
}
|
|
567
|
-
e(a, "smile");
|
|
568
|
-
function o(e) {
|
|
569
|
-
let t = f().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
570
|
-
e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 7) + ")");
|
|
571
|
-
}
|
|
572
|
-
e(o, "sad");
|
|
573
|
-
function s(e) {
|
|
574
|
-
e.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");
|
|
575
|
-
}
|
|
576
|
-
return e(s, "ambivalent"), n.score > 3 ? a(i) : n.score < 3 ? o(i) : s(i), r;
|
|
577
|
-
}, "drawFace"), ne = /* @__PURE__ */ e(function(e, t) {
|
|
578
|
-
let n = e.append("circle");
|
|
579
|
-
return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
|
|
580
|
-
}, "drawCircle"), L = /* @__PURE__ */ e(function(e, t) {
|
|
581
|
-
let n = t.text.replace(/<br\s*\/?>/gi, " "), r = e.append("text");
|
|
582
|
-
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
|
|
583
|
-
let i = r.append("tspan");
|
|
584
|
-
return i.attr("x", t.x + t.textMargin * 2), i.text(n), r;
|
|
585
|
-
}, "drawText"), re = /* @__PURE__ */ e(function(t, n) {
|
|
586
|
-
function r(e, t, n, r, i) {
|
|
587
|
-
return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
|
|
588
|
-
}
|
|
589
|
-
e(r, "genPoints");
|
|
590
|
-
let i = t.append("polygon");
|
|
591
|
-
i.attr("points", r(n.x, n.y, 50, 20, 7)), i.attr("class", "labelBox"), n.y += n.labelMargin, n.x += .5 * n.labelMargin, L(t, n);
|
|
592
|
-
}, "drawLabel"), R = /* @__PURE__ */ e(function(e, t, n) {
|
|
593
|
-
let r = e.append("g"), i = B();
|
|
594
|
-
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width, i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, I(r, i), V(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
|
|
595
|
-
}, "drawSection"), z = -1, ie = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
596
|
-
let i = t.x + n.width / 2, a = e.append("g");
|
|
597
|
-
z++, a.append("line").attr("id", r + "-task" + z).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), te(a, {
|
|
598
|
-
cx: i,
|
|
599
|
-
cy: 300 + (5 - t.score) * 30,
|
|
600
|
-
score: t.score
|
|
601
|
-
});
|
|
602
|
-
let o = B();
|
|
603
|
-
o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = n.width, o.height = n.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, I(a, o), V(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
|
|
604
|
-
}, "drawTask"), ae = /* @__PURE__ */ e(function(e, t) {
|
|
605
|
-
I(e, {
|
|
606
|
-
x: t.startx,
|
|
607
|
-
y: t.starty,
|
|
608
|
-
width: t.stopx - t.startx,
|
|
609
|
-
height: t.stopy - t.starty,
|
|
610
|
-
fill: t.fill,
|
|
611
|
-
class: "rect"
|
|
612
|
-
}).lower();
|
|
613
|
-
}, "drawBackgroundRect"), oe = /* @__PURE__ */ e(function() {
|
|
614
|
-
return {
|
|
615
|
-
x: 0,
|
|
616
|
-
y: 0,
|
|
617
|
-
fill: void 0,
|
|
618
|
-
"text-anchor": "start",
|
|
619
|
-
width: 100,
|
|
620
|
-
height: 100,
|
|
621
|
-
textMargin: 0,
|
|
622
|
-
rx: 0,
|
|
623
|
-
ry: 0
|
|
624
|
-
};
|
|
625
|
-
}, "getTextObj"), B = /* @__PURE__ */ e(function() {
|
|
626
|
-
return {
|
|
627
|
-
x: 0,
|
|
628
|
-
y: 0,
|
|
629
|
-
width: 100,
|
|
630
|
-
anchor: "start",
|
|
631
|
-
height: 100,
|
|
632
|
-
rx: 0,
|
|
633
|
-
ry: 0
|
|
634
|
-
};
|
|
635
|
-
}, "getNoteRect"), V = /* @__PURE__ */ (function() {
|
|
636
|
-
function t(e, t, n, r, a, o, s, c) {
|
|
637
|
-
i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
|
|
638
|
-
}
|
|
639
|
-
e(t, "byText");
|
|
640
|
-
function n(e, t, n, r, a, o, s, c, l) {
|
|
641
|
-
let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
|
|
642
|
-
for (let e = 0; e < f.length; e++) {
|
|
643
|
-
let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", r).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
|
|
644
|
-
p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(p, s);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
e(n, "byTspan");
|
|
648
|
-
function r(e, t, r, a, o, s, c, l) {
|
|
649
|
-
let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
650
|
-
d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
|
|
651
|
-
}
|
|
652
|
-
e(r, "byFo");
|
|
653
|
-
function i(e, t) {
|
|
654
|
-
for (let n in t) n in t && e.attr(n, t[n]);
|
|
655
|
-
}
|
|
656
|
-
return e(i, "_setTextAttrs"), function(e) {
|
|
657
|
-
return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
|
|
658
|
-
};
|
|
659
|
-
})(), se = /* @__PURE__ */ e(function(e, t) {
|
|
660
|
-
F = 0, z = -1, e.append("defs").append("marker").attr("id", t + "-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");
|
|
661
|
-
}, "initGraphics");
|
|
662
|
-
function H(e, t) {
|
|
663
|
-
e.each(function() {
|
|
664
|
-
var e = r(this), n = e.text().split(/(\s+|<br>)/).reverse(), i, a = [], o = 1.1, s = e.attr("y"), c = parseFloat(e.attr("dy")), l = e.text(null).append("tspan").attr("x", 0).attr("y", s).attr("dy", c + "em");
|
|
665
|
-
for (let r = 0; r < n.length; r++) i = n[n.length - 1 - r], a.push(i), l.text(a.join(" ").trim()), (l.node().getComputedTextLength() > t || i === "<br>") && (a.pop(), l.text(a.join(" ").trim()), a = i === "<br>" ? [""] : [i], l = e.append("tspan").attr("x", 0).attr("y", s).attr("dy", o + "em").text(i));
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
e(H, "wrap");
|
|
669
|
-
var ce = /* @__PURE__ */ e(function(e, t, n, i, a, o = !1) {
|
|
670
|
-
let { theme: s, look: c } = i, l = s?.includes("redux"), u = n % (i?.themeVariables?.THEME_COLOR_LIMIT ?? 12) - 1, d = e.append("g");
|
|
671
|
-
t.section = u, d.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + u));
|
|
672
|
-
let f = d.append("g"), p = d.append("g"), m = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), h = i.fontSize?.replace ? i.fontSize.replace("px", "") : i.fontSize;
|
|
673
|
-
if (t.height = m.height + h * 1.1 * .5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), l && p.attr("transform", `translate(${t.width / 2}, ${o ? t.padding / 2 + 3 : t.padding})`), ue(f, t, u, a, i), c === "neo" && (d.attr("data-look", "neo"), l)) {
|
|
674
|
-
let t = s.includes("dark"), n = e.node()?.ownerSVGElement ?? e.node(), i = r(n), a = i.attr("id") ?? "", o = a ? `${a}-drop-shadow` : "drop-shadow";
|
|
675
|
-
if (i.select(`#${o}`).empty()) {
|
|
676
|
-
let e = i.select("defs");
|
|
677
|
-
(e.empty() ? i.append("defs") : e).append("filter").attr("id", o).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", t ? "0.2" : "0.06").attr("flood-color", t ? "#FFFFFF" : "#000000");
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
return t;
|
|
681
|
-
}, "drawNode"), le = /* @__PURE__ */ e(function(e, t, n) {
|
|
682
|
-
let r = e.append("g"), i = r.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), a = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
|
|
683
|
-
return r.remove(), i.height + a * 1.1 * .5 + t.padding;
|
|
684
|
-
}, "getVirtualNodeHeight"), ue = /* @__PURE__ */ e(function(e, t, n, r, i) {
|
|
685
|
-
let { theme: a } = i, o = a?.includes("redux") ? 0 : 5, s = o > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${o},${o},-${o} h${t.width - 10} q${o},0,${o},${o} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
|
|
686
|
-
e.append("path").attr("id", r + "-node-" + F++).attr("class", "node-bkg node-" + t.type).attr("d", s), a?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
687
|
-
}, "defaultBkg"), U = {
|
|
688
|
-
drawRect: I,
|
|
689
|
-
drawCircle: ne,
|
|
690
|
-
drawSection: R,
|
|
691
|
-
drawText: L,
|
|
692
|
-
drawLabel: re,
|
|
693
|
-
drawTask: ie,
|
|
694
|
-
drawBackgroundRect: ae,
|
|
695
|
-
getTextObj: oe,
|
|
696
|
-
getNoteRect: B,
|
|
697
|
-
initGraphics: se,
|
|
698
|
-
drawNode: ce,
|
|
699
|
-
getVirtualNodeHeight: le
|
|
700
|
-
}, de = /* @__PURE__ */ e(function(e, t, a, o) {
|
|
701
|
-
let s = d(), { look: c, theme: l, themeVariables: u } = s, { useGradient: f, gradientStart: p, gradientStop: m } = u, h = s.timeline?.leftMargin ?? 50;
|
|
702
|
-
n.debug("timeline", o.db);
|
|
703
|
-
let g = s.securityLevel, _;
|
|
704
|
-
g === "sandbox" && (_ = r("#i" + t));
|
|
705
|
-
let v = r(g === "sandbox" ? _.nodes()[0].contentDocument.body : "body").select("#" + t);
|
|
706
|
-
v.append("g");
|
|
707
|
-
let y = o.db.getTasks(), b = o.db.getCommonDb().getDiagramTitle();
|
|
708
|
-
n.debug("task", y), U.initGraphics(v, t);
|
|
709
|
-
let x = o.db.getSections();
|
|
710
|
-
n.debug("sections", x);
|
|
711
|
-
let S = 0, C = 0, w = 0, T = 0, E = 50 + h, D = 50;
|
|
712
|
-
T = 50;
|
|
713
|
-
let O = 0, k = !0;
|
|
714
|
-
x.forEach(function(e) {
|
|
715
|
-
let t = {
|
|
716
|
-
number: O,
|
|
717
|
-
descr: e,
|
|
718
|
-
section: O,
|
|
719
|
-
width: 150,
|
|
720
|
-
padding: 20,
|
|
721
|
-
maxHeight: S
|
|
722
|
-
}, r = U.getVirtualNodeHeight(v, t, s);
|
|
723
|
-
n.debug("sectionHeight before draw", r), S = Math.max(S, r + 20);
|
|
724
|
-
});
|
|
725
|
-
let A = 0, j = 0;
|
|
726
|
-
n.debug("tasks.length", y.length);
|
|
727
|
-
for (let [e, t] of y.entries()) {
|
|
728
|
-
let r = {
|
|
729
|
-
number: e,
|
|
730
|
-
descr: t,
|
|
731
|
-
section: t.section,
|
|
732
|
-
width: 150,
|
|
733
|
-
padding: 20,
|
|
734
|
-
maxHeight: C
|
|
735
|
-
}, i = U.getVirtualNodeHeight(v, r, s);
|
|
736
|
-
n.debug("taskHeight before draw", i), C = Math.max(C, i + 20), A = Math.max(A, t.events.length);
|
|
737
|
-
let a = 0;
|
|
738
|
-
for (let e of t.events) {
|
|
739
|
-
let n = {
|
|
740
|
-
descr: e,
|
|
741
|
-
section: t.section,
|
|
742
|
-
number: t.section,
|
|
743
|
-
width: 150,
|
|
744
|
-
padding: 20,
|
|
745
|
-
maxHeight: 50
|
|
746
|
-
};
|
|
747
|
-
a += U.getVirtualNodeHeight(v, n, s);
|
|
748
|
-
}
|
|
749
|
-
t.events.length > 0 && (a += (t.events.length - 1) * 10), j = Math.max(j, a);
|
|
750
|
-
}
|
|
751
|
-
n.debug("maxSectionHeight before draw", S), n.debug("maxTaskHeight before draw", C), x && x.length > 0 ? x.forEach((e) => {
|
|
752
|
-
let r = y.filter((t) => t.section === e), i = {
|
|
753
|
-
number: O,
|
|
754
|
-
descr: e,
|
|
755
|
-
section: O,
|
|
756
|
-
width: 200 * Math.max(r.length, 1) - 50,
|
|
757
|
-
padding: 20,
|
|
758
|
-
maxHeight: S
|
|
759
|
-
};
|
|
760
|
-
n.debug("sectionNode", i);
|
|
761
|
-
let a = v.append("g"), o = U.drawNode(a, i, O, s, t);
|
|
762
|
-
n.debug("sectionNode output", o), a.attr("transform", `translate(${E}, ${T})`), D += S + 50, r.length > 0 && W(v, r, O, E, D, C, s, A, j, S, !1, t), E += 200 * Math.max(r.length, 1), D = T, O++;
|
|
763
|
-
}) : (k = !1, W(v, y, O, E, D, C, s, A, j, S, !0, t));
|
|
764
|
-
let M = v.node().getBBox();
|
|
765
|
-
if (n.debug("bounds", M), b && v.append("text").text(b).attr("x", c === "neo" ? M.x * 2 + h : M.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), w = k ? S + C + 150 : C + 100, v.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", w).attr("x2", M.width + 3 * h).attr("y2", w).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), c === "neo" && f && l !== "neutral") {
|
|
766
|
-
let e = v.select("defs"), t = (e.empty() ? v.append("defs") : e).append("linearGradient").attr("id", v.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
767
|
-
t.append("stop").attr("offset", "0%").attr("stop-color", p).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", m).attr("stop-opacity", 1);
|
|
768
|
-
}
|
|
769
|
-
i(void 0, v, s.timeline?.padding ?? 50, s.timeline?.useMaxWidth ?? !1);
|
|
770
|
-
}, "draw"), W = /* @__PURE__ */ e(function(e, t, r, i, a, o, s, c, l, u, d, f) {
|
|
771
|
-
for (let c of t) {
|
|
772
|
-
let t = {
|
|
773
|
-
descr: c.task,
|
|
774
|
-
section: r,
|
|
775
|
-
number: r,
|
|
776
|
-
width: 150,
|
|
777
|
-
padding: 20,
|
|
778
|
-
maxHeight: o
|
|
779
|
-
};
|
|
780
|
-
n.debug("taskNode", t);
|
|
781
|
-
let u = e.append("g").attr("class", "taskWrapper"), p = U.drawNode(u, t, r, s, f).height;
|
|
782
|
-
if (n.debug("taskHeight after draw", p), u.attr("transform", `translate(${i}, ${a})`), o = Math.max(o, p), c.events) {
|
|
783
|
-
let t = e.append("g").attr("class", "lineWrapper"), n = o;
|
|
784
|
-
a += 100, n += fe(e, c.events, r, i, a, s, f), a -= 100, t.append("line").attr("x1", i + 95).attr("y1", a + o).attr("x2", i + 95).attr("y2", a + o + 100 + l + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${f}-arrowhead)`).attr("stroke-dasharray", "5,5");
|
|
785
|
-
}
|
|
786
|
-
i += 200, d && !s.timeline?.disableMulticolor && r++;
|
|
787
|
-
}
|
|
788
|
-
a -= 10;
|
|
789
|
-
}, "drawTasks"), fe = /* @__PURE__ */ e(function(e, t, r, i, a, o, s) {
|
|
790
|
-
let c = 0, l = a;
|
|
791
|
-
a += 100;
|
|
792
|
-
for (let l of t) {
|
|
793
|
-
let t = {
|
|
794
|
-
descr: l,
|
|
795
|
-
section: r,
|
|
796
|
-
number: r,
|
|
797
|
-
width: 150,
|
|
798
|
-
padding: 20,
|
|
799
|
-
maxHeight: 50
|
|
800
|
-
};
|
|
801
|
-
n.debug("eventNode", t);
|
|
802
|
-
let u = e.append("g").attr("class", "eventWrapper"), d = U.drawNode(u, t, r, o, s, !0).height;
|
|
803
|
-
c += d, u.attr("transform", `translate(${i}, ${a})`), a = a + 10 + d;
|
|
804
|
-
}
|
|
805
|
-
return a = l, c;
|
|
806
|
-
}, "drawEvents"), pe = {
|
|
807
|
-
setConf: /* @__PURE__ */ e(() => {}, "setConf"),
|
|
808
|
-
draw: de
|
|
809
|
-
}, G = 200, K = 5, me = G + K * 2, q = G + 100, he = q + K * 2, J = 10, ge = 0, Y = 20, X = 20, Z = 30, Q = 50, _e = /* @__PURE__ */ e(function(e, t, r, a) {
|
|
810
|
-
let o = d(), s = o.timeline?.leftMargin ?? 50;
|
|
811
|
-
n.debug("timeline", a.db);
|
|
812
|
-
let c = m(t);
|
|
813
|
-
c.append("g");
|
|
814
|
-
let l = a.db.getTasks(), u = a.db.getCommonDb().getDiagramTitle();
|
|
815
|
-
n.debug("task", l), U.initGraphics(c);
|
|
816
|
-
let f = a.db.getSections();
|
|
817
|
-
n.debug("sections", f);
|
|
818
|
-
let h = 0, g = 0, _ = 50 + s, v = 50, y = v, b = _, x = me + X, S = he + Q, C = b + x, w = 0, T = f && f.length > 0, E = T ? C : _ + x, D = Math.max(50, x + S - K * 2);
|
|
819
|
-
f.forEach(function(e) {
|
|
820
|
-
let t = {
|
|
821
|
-
number: w,
|
|
822
|
-
descr: e,
|
|
823
|
-
section: w,
|
|
824
|
-
width: D,
|
|
825
|
-
padding: K,
|
|
826
|
-
maxHeight: h
|
|
827
|
-
}, r = U.getVirtualNodeHeight(c, t, o);
|
|
828
|
-
n.debug("sectionHeight before draw", r), h = Math.max(h, r);
|
|
829
|
-
});
|
|
830
|
-
let O = 0;
|
|
831
|
-
n.debug("tasks.length", l.length);
|
|
832
|
-
for (let [e, t] of l.entries()) {
|
|
833
|
-
let r = {
|
|
834
|
-
number: e,
|
|
835
|
-
descr: t,
|
|
836
|
-
section: t.section,
|
|
837
|
-
width: G,
|
|
838
|
-
padding: K,
|
|
839
|
-
maxHeight: g
|
|
840
|
-
}, i = U.getVirtualNodeHeight(c, r, o);
|
|
841
|
-
n.debug("taskHeight before draw", i), g = Math.max(g, i);
|
|
842
|
-
let a = 0;
|
|
843
|
-
for (let e of t.events) {
|
|
844
|
-
let n = {
|
|
845
|
-
descr: e,
|
|
846
|
-
section: t.section,
|
|
847
|
-
number: t.section,
|
|
848
|
-
width: q,
|
|
849
|
-
padding: K,
|
|
850
|
-
maxHeight: 50
|
|
851
|
-
};
|
|
852
|
-
a += U.getVirtualNodeHeight(c, n, o);
|
|
853
|
-
}
|
|
854
|
-
t.events.length > 0 && (a += (t.events.length - 1) * J), O = Math.max(O, a) + ge;
|
|
855
|
-
}
|
|
856
|
-
n.debug("maxSectionHeight before draw", h), n.debug("maxTaskHeight before draw", g);
|
|
857
|
-
let k = Math.max(g, O) + Z;
|
|
858
|
-
T ? f.forEach((e) => {
|
|
859
|
-
let t = l.filter((t) => t.section === e), r = {
|
|
860
|
-
number: w,
|
|
861
|
-
descr: e,
|
|
862
|
-
section: w,
|
|
863
|
-
width: D,
|
|
864
|
-
padding: K,
|
|
865
|
-
maxHeight: h
|
|
866
|
-
};
|
|
867
|
-
n.debug("sectionNode", r);
|
|
868
|
-
let i = c.append("g"), a = U.drawNode(i, r, w, o);
|
|
869
|
-
n.debug("sectionNode output", a);
|
|
870
|
-
let s = E - x;
|
|
871
|
-
i.attr("transform", `translate(${s}, ${v})`);
|
|
872
|
-
let u = v + a.height + Y;
|
|
873
|
-
t.length > 0 && $(c, t, w, E, u, g, o, k, !1);
|
|
874
|
-
let d = t.length, f = a.height + Y + k * Math.max(d, 1) - (d > 0 ? Z * 2 : 0);
|
|
875
|
-
v += f, w++;
|
|
876
|
-
}) : $(c, l, w, E, v, g, o, k, !0);
|
|
877
|
-
let A = c.node()?.getBBox();
|
|
878
|
-
if (!A) throw Error("bbox not found");
|
|
879
|
-
if (n.debug("bounds", A), u) {
|
|
880
|
-
if (c.append("text").text(u).attr("x", A.width / 2 - s).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), A = c.node()?.getBBox(), !A) throw Error("bbox not found");
|
|
881
|
-
n.debug("bounds after title", A);
|
|
882
|
-
}
|
|
883
|
-
let [j] = p(o.fontSize), M = (j ?? 16) * 2, N = (j ?? 16) * .5 + 20, P = c.append("g").attr("class", "lineWrapper");
|
|
884
|
-
P.append("line").attr("x1", E).attr("y1", y - M).attr("x2", E).attr("y2", A.y + A.height + N).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), P.lower(), i(void 0, c, o.timeline?.padding ?? 50, o.timeline?.useMaxWidth ?? !1);
|
|
885
|
-
}, "draw"), $ = /* @__PURE__ */ e(function(e, t, r, i, a, o, s, c, l) {
|
|
886
|
-
for (let u of t) {
|
|
887
|
-
let t = {
|
|
888
|
-
descr: u.task,
|
|
889
|
-
section: r,
|
|
890
|
-
number: r,
|
|
891
|
-
width: G,
|
|
892
|
-
padding: K,
|
|
893
|
-
maxHeight: o
|
|
894
|
-
};
|
|
895
|
-
n.debug("taskNode", t);
|
|
896
|
-
let d = e.append("g").attr("class", "taskWrapper"), f = U.drawNode(d, t, r, s), p = f.height;
|
|
897
|
-
n.debug("taskHeight after draw", p);
|
|
898
|
-
let m = i - X - f.width;
|
|
899
|
-
if (d.attr("transform", `translate(${m}, ${a})`), o = Math.max(o, p), u.events && u.events.length > 0) {
|
|
900
|
-
let t = a, n = i + Q;
|
|
901
|
-
ve(e, u.events, r, i, n, t, s);
|
|
902
|
-
}
|
|
903
|
-
a += c, l && !s.timeline?.disableMulticolor && r++;
|
|
904
|
-
}
|
|
905
|
-
}, "drawTasks"), ve = /* @__PURE__ */ e(function(e, t, r, i, a, o, s) {
|
|
906
|
-
let c = o;
|
|
907
|
-
for (let o of t) {
|
|
908
|
-
let t = {
|
|
909
|
-
descr: o,
|
|
910
|
-
section: r,
|
|
911
|
-
number: r,
|
|
912
|
-
width: q,
|
|
913
|
-
padding: K,
|
|
914
|
-
maxHeight: 0
|
|
915
|
-
};
|
|
916
|
-
n.debug("eventNode", t);
|
|
917
|
-
let l = e.append("g").attr("class", "eventWrapper"), u = U.drawNode(l, t, r, s).height;
|
|
918
|
-
l.attr("transform", `translate(${a}, ${c})`);
|
|
919
|
-
let d = e.append("g").attr("class", "lineWrapper"), f = c + u / 2;
|
|
920
|
-
d.append("line").attr("x1", i).attr("y1", f).attr("x2", a).attr("y2", f).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), c = c + u + J;
|
|
921
|
-
}
|
|
922
|
-
return c - o;
|
|
923
|
-
}, "drawEvents"), ye = {
|
|
924
|
-
setConf: /* @__PURE__ */ e(() => {}, "setConf"),
|
|
925
|
-
draw: _e
|
|
926
|
-
}, be = /* @__PURE__ */ e((e) => {
|
|
927
|
-
let { theme: t } = o(), n = t?.includes("dark"), r = t?.includes("color"), i = e.svgId?.replace(/^#/, "") ?? "", a = i ? `url(#${i}-drop-shadow)` : e.dropShadow ?? "none", s = "";
|
|
928
|
-
for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
|
|
929
|
-
let i = `${17 - 3 * t}`, o = r ? e.borderColorArray[t] : e.mainBkg, c = r ? e.borderColorArray[t] : e.nodeBorder;
|
|
930
|
-
s += `
|
|
931
|
-
.section-${t - 1} rect,
|
|
932
|
-
.section-${t - 1} path,
|
|
933
|
-
.section-${t - 1} circle {
|
|
934
|
-
fill: ${n && r ? e.mainBkg : o};
|
|
935
|
-
stroke: ${c};
|
|
936
|
-
stroke-width: ${e.strokeWidth};
|
|
937
|
-
filter: ${a};
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.section-${t - 1} text {
|
|
941
|
-
fill: ${e.nodeBorder};
|
|
942
|
-
font-weight: ${e.fontWeight}
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
.node-icon-${t - 1} {
|
|
946
|
-
font-size: 40px;
|
|
947
|
-
color: ${e["cScaleLabel" + t]};
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
.section-edge-${t - 1} {
|
|
951
|
-
stroke: ${e["cScale" + t]};
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
.edge-depth-${t - 1} {
|
|
955
|
-
stroke-width: ${i};
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
.section-${t - 1} line {
|
|
959
|
-
stroke: ${e["cScaleInv" + t]};
|
|
960
|
-
stroke-width: 3;
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
.lineWrapper line {
|
|
964
|
-
stroke: ${e.nodeBorder};
|
|
965
|
-
stroke-width:${e.strokeWidth}
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
.disabled,
|
|
969
|
-
.disabled circle,
|
|
970
|
-
.disabled text {
|
|
971
|
-
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
.disabled text {
|
|
975
|
-
fill: ${e.clusterBorder ?? "#efefef"};
|
|
976
|
-
}
|
|
977
|
-
`;
|
|
978
|
-
}
|
|
979
|
-
return s;
|
|
980
|
-
}, "genReduxSections"), xe = /* @__PURE__ */ e((e) => {
|
|
981
|
-
let t = "";
|
|
982
|
-
for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], l(e["lineColor" + t]) ? e["lineColor" + t] = u(e["lineColor" + t], 20) : e["lineColor" + t] = s(e["lineColor" + t], 20);
|
|
983
|
-
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
|
|
984
|
-
let r = "" + (17 - 3 * n);
|
|
985
|
-
t += `
|
|
986
|
-
.section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
|
|
987
|
-
fill: ${e["cScale" + n]};
|
|
988
|
-
}
|
|
989
|
-
.section-${n - 1} text {
|
|
990
|
-
fill: ${e["cScaleLabel" + n]};
|
|
991
|
-
}
|
|
992
|
-
.node-icon-${n - 1} {
|
|
993
|
-
font-size: 40px;
|
|
994
|
-
color: ${e["cScaleLabel" + n]};
|
|
995
|
-
}
|
|
996
|
-
.section-edge-${n - 1}{
|
|
997
|
-
stroke: ${e["cScale" + n]};
|
|
998
|
-
}
|
|
999
|
-
.edge-depth-${n - 1}{
|
|
1000
|
-
stroke-width: ${r};
|
|
1001
|
-
}
|
|
1002
|
-
.section-${n - 1} line {
|
|
1003
|
-
stroke: ${e["cScaleInv" + n]} ;
|
|
1004
|
-
stroke-width: 3;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
.lineWrapper line{
|
|
1008
|
-
stroke: ${e["cScaleLabel" + n]} ;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
.disabled, .disabled circle, .disabled text {
|
|
1012
|
-
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1013
|
-
}
|
|
1014
|
-
.disabled text {
|
|
1015
|
-
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1016
|
-
}
|
|
1017
|
-
`;
|
|
1018
|
-
}
|
|
1019
|
-
return t;
|
|
1020
|
-
}, "genSections"), Se = {
|
|
1021
|
-
db: _,
|
|
1022
|
-
renderer: {
|
|
1023
|
-
setConf: /* @__PURE__ */ e(() => {}, "setConf"),
|
|
1024
|
-
draw: /* @__PURE__ */ e((e, t, n, r) => (r?.db?.getDirection?.() ?? "LR") === "TD" ? ye.draw(e, t, n, r) : pe.draw(e, t, n, r), "draw")
|
|
1025
|
-
},
|
|
1026
|
-
parser: g,
|
|
1027
|
-
styles: /* @__PURE__ */ e((e) => {
|
|
1028
|
-
let { theme: t } = o(), n = t?.includes("redux"), r = t === "neutral", i = e.svgId?.replace(/^#/, "") ?? "", a = "";
|
|
1029
|
-
if (e.useGradient && i && e.THEME_COLOR_LIMIT && !r) for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) a += `
|
|
1030
|
-
.section-${t - 1}[data-look="neo"] rect,
|
|
1031
|
-
.section-${t - 1}[data-look="neo"] path,
|
|
1032
|
-
.section-${t - 1}[data-look="neo"] circle {
|
|
1033
|
-
fill: ${e.mainBkg};
|
|
1034
|
-
stroke: url(#${i}-gradient);
|
|
1035
|
-
stroke-width: 2;
|
|
1036
|
-
}
|
|
1037
|
-
.section-${t - 1}[data-look="neo"] line {
|
|
1038
|
-
stroke: url(#${i}-gradient);
|
|
1039
|
-
stroke-width: 2;
|
|
1040
|
-
}`;
|
|
1041
|
-
return `
|
|
1042
|
-
.edge {
|
|
1043
|
-
stroke-width: 3;
|
|
1044
|
-
}
|
|
1045
|
-
${n ? be(e) : xe(e)}
|
|
1046
|
-
${a}
|
|
1047
|
-
.section-root rect, .section-root path, .section-root circle {
|
|
1048
|
-
fill: ${e.git0};
|
|
1049
|
-
}
|
|
1050
|
-
.section-root text {
|
|
1051
|
-
fill: ${e.gitBranchLabel0};
|
|
1052
|
-
}
|
|
1053
|
-
.icon-container {
|
|
1054
|
-
height:100%;
|
|
1055
|
-
display: flex;
|
|
1056
|
-
justify-content: center;
|
|
1057
|
-
align-items: center;
|
|
1058
|
-
}
|
|
1059
|
-
.edge {
|
|
1060
|
-
fill: none;
|
|
1061
|
-
}
|
|
1062
|
-
.eventWrapper {
|
|
1063
|
-
filter: brightness(120%);
|
|
1064
|
-
}
|
|
1065
|
-
`;
|
|
1066
|
-
}, "getStyles")
|
|
1067
|
-
};
|
|
1068
|
-
//#endregion
|
|
1069
|
-
export { Se as diagram };
|