@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 +0,0 @@
|
|
|
1
|
-
function e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function t(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=a.exec(e)))throw Error(`invalid format: `+e);var t;return new s({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}o.prototype=s.prototype;function s(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function c(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var l;function u(e,n){var r=t(e,n);if(!r)return l=void 0,e.toPrecision(n);var i=r[0],a=r[1],o=a-(l=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join(`0`):o>0?i.slice(0,o)+`.`+i.slice(o):`0.`+Array(1-o).join(`0`)+t(e,Math.max(0,n+o-1))[0]}function d(e,n){var r=t(e,n);if(!r)return e+``;var i=r[0],a=r[1];return a<0?`0.`+Array(-a).join(`0`)+i:i.length>a+1?i.slice(0,a+1)+`.`+i.slice(a+1):i+Array(a-i.length+2).join(`0`)}var f={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d(e*100,t),r:d,s:u,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p(e){return e}var m=Array.prototype.map,h=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function g(e){var t=e.grouping===void 0||e.thousands===void 0?p:r(m.call(e.grouping,Number),e.thousands+``),a=e.currency===void 0?``:e.currency[0]+``,s=e.currency===void 0?``:e.currency[1]+``,u=e.decimal===void 0?`.`:e.decimal+``,d=e.numerals===void 0?p:i(m.call(e.numerals,String)),g=e.percent===void 0?`%`:e.percent+``,_=e.minus===void 0?`−`:e.minus+``,v=e.nan===void 0?`NaN`:e.nan+``;function y(e,n){e=o(e);var r=e.fill,i=e.align,p=e.sign,m=e.symbol,y=e.zero,b=e.width,x=e.comma,S=e.precision,C=e.trim,w=e.type;w===`n`?(x=!0,w=`g`):f[w]||(S===void 0&&(S=12),C=!0,w=`g`),(y||r===`0`&&i===`=`)&&(y=!0,r=`0`,i=`=`);var T=(n&&n.prefix!==void 0?n.prefix:``)+(m===`$`?a:m===`#`&&/[boxX]/.test(w)?`0`+w.toLowerCase():``),E=(m===`$`?s:/[%p]/.test(w)?g:``)+(n&&n.suffix!==void 0?n.suffix:``),D=f[w],O=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(e){var n=T,a=E,o,s,f;if(w===`c`)a=D(e)+a,e=``;else{e=+e;var m=e<0||1/e<0;if(e=isNaN(e)?v:D(Math.abs(e),S),C&&(e=c(e)),m&&+e==0&&p!==`+`&&(m=!1),n=(m?p===`(`?p:_:p===`-`||p===`(`?``:p)+n,a=(w===`s`&&!isNaN(e)&&l!==void 0?h[8+l/3]:``)+a+(m&&p===`(`?`)`:``),O){for(o=-1,s=e.length;++o<s;)if(f=e.charCodeAt(o),48>f||f>57){a=(f===46?u+e.slice(o+1):e.slice(o))+a,e=e.slice(0,o);break}}}x&&!y&&(e=t(e,1/0));var g=n.length+e.length+a.length,k=g<b?Array(b-g+1).join(r):``;switch(x&&y&&(e=t(k+e,k.length?b-a.length:1/0),k=``),i){case`<`:e=n+e+a+k;break;case`=`:e=n+k+e+a;break;case`^`:e=k.slice(0,g=k.length>>1)+n+e+a+k.slice(g);break;default:e=k+n+e+a}return d(e)}return k.toString=function(){return e+``},k}function b(e,t){var r=Math.max(-8,Math.min(8,Math.floor(n(t)/3)))*3,i=10**-r,a=y((e=o(e),e.type=`f`,e),{suffix:h[8+r/3]});return function(e){return a(i*e)}}return{format:y,formatPrefix:b}}var _,v,y;b({thousands:`,`,grouping:[3],currency:[`$`,``]});function b(e){return _=g(e),v=_.format,y=_.formatPrefix,_}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
4
|
-
}
|
|
5
|
-
function t(e, t) {
|
|
6
|
-
if (!isFinite(e) || e === 0) return null;
|
|
7
|
-
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
8
|
-
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
|
|
12
|
-
function n(e) {
|
|
13
|
-
return e = t(Math.abs(e)), e ? e[1] : NaN;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
|
|
17
|
-
function r(e, t) {
|
|
18
|
-
return function(n, r) {
|
|
19
|
-
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
20
|
-
return a.reverse().join(t);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
|
|
25
|
-
function i(e) {
|
|
26
|
-
return function(t) {
|
|
27
|
-
return t.replace(/[0-9]/g, function(t) {
|
|
28
|
-
return e[+t];
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
|
|
34
|
-
var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
35
|
-
function o(e) {
|
|
36
|
-
if (!(t = a.exec(e))) throw Error("invalid format: " + e);
|
|
37
|
-
var t;
|
|
38
|
-
return new s({
|
|
39
|
-
fill: t[1],
|
|
40
|
-
align: t[2],
|
|
41
|
-
sign: t[3],
|
|
42
|
-
symbol: t[4],
|
|
43
|
-
zero: t[5],
|
|
44
|
-
width: t[6],
|
|
45
|
-
comma: t[7],
|
|
46
|
-
precision: t[8] && t[8].slice(1),
|
|
47
|
-
trim: t[9],
|
|
48
|
-
type: t[10]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
o.prototype = s.prototype;
|
|
52
|
-
function s(e) {
|
|
53
|
-
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
54
|
-
}
|
|
55
|
-
s.prototype.toString = function() {
|
|
56
|
-
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
|
|
60
|
-
function c(e) {
|
|
61
|
-
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
62
|
-
case ".":
|
|
63
|
-
r = i = n;
|
|
64
|
-
break;
|
|
65
|
-
case "0":
|
|
66
|
-
r === 0 && (r = n), i = n;
|
|
67
|
-
break;
|
|
68
|
-
default:
|
|
69
|
-
if (!+e[n]) break out;
|
|
70
|
-
r > 0 && (r = 0);
|
|
71
|
-
}
|
|
72
|
-
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
|
|
76
|
-
var l;
|
|
77
|
-
function u(e, n) {
|
|
78
|
-
var r = t(e, n);
|
|
79
|
-
if (!r) return l = void 0, e.toPrecision(n);
|
|
80
|
-
var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
|
|
81
|
-
return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
|
|
85
|
-
function d(e, n) {
|
|
86
|
-
var r = t(e, n);
|
|
87
|
-
if (!r) return e + "";
|
|
88
|
-
var i = r[0], a = r[1];
|
|
89
|
-
return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
|
|
93
|
-
var f = {
|
|
94
|
-
"%": (e, t) => (e * 100).toFixed(t),
|
|
95
|
-
b: (e) => Math.round(e).toString(2),
|
|
96
|
-
c: (e) => e + "",
|
|
97
|
-
d: e,
|
|
98
|
-
e: (e, t) => e.toExponential(t),
|
|
99
|
-
f: (e, t) => e.toFixed(t),
|
|
100
|
-
g: (e, t) => e.toPrecision(t),
|
|
101
|
-
o: (e) => Math.round(e).toString(8),
|
|
102
|
-
p: (e, t) => d(e * 100, t),
|
|
103
|
-
r: d,
|
|
104
|
-
s: u,
|
|
105
|
-
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
106
|
-
x: (e) => Math.round(e).toString(16)
|
|
107
|
-
};
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
|
|
110
|
-
function p(e) {
|
|
111
|
-
return e;
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
|
|
115
|
-
var m = Array.prototype.map, h = [
|
|
116
|
-
"y",
|
|
117
|
-
"z",
|
|
118
|
-
"a",
|
|
119
|
-
"f",
|
|
120
|
-
"p",
|
|
121
|
-
"n",
|
|
122
|
-
"µ",
|
|
123
|
-
"m",
|
|
124
|
-
"",
|
|
125
|
-
"k",
|
|
126
|
-
"M",
|
|
127
|
-
"G",
|
|
128
|
-
"T",
|
|
129
|
-
"P",
|
|
130
|
-
"E",
|
|
131
|
-
"Z",
|
|
132
|
-
"Y"
|
|
133
|
-
];
|
|
134
|
-
function g(e) {
|
|
135
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
136
|
-
function y(e, n) {
|
|
137
|
-
e = o(e);
|
|
138
|
-
var r = e.fill, i = e.align, p = e.sign, m = e.symbol, y = e.zero, b = e.width, x = e.comma, S = e.precision, C = e.trim, w = e.type;
|
|
139
|
-
w === "n" ? (x = !0, w = "g") : f[w] || (S === void 0 && (S = 12), C = !0, w = "g"), (y || r === "0" && i === "=") && (y = !0, r = "0", i = "=");
|
|
140
|
-
var T = (n && n.prefix !== void 0 ? n.prefix : "") + (m === "$" ? a : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : ""), E = (m === "$" ? s : /[%p]/.test(w) ? g : "") + (n && n.suffix !== void 0 ? n.suffix : ""), D = f[w], O = /[defgprs%]/.test(w);
|
|
141
|
-
S = S === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
|
|
142
|
-
function k(e) {
|
|
143
|
-
var n = T, a = E, o, s, f;
|
|
144
|
-
if (w === "c") a = D(e) + a, e = "";
|
|
145
|
-
else {
|
|
146
|
-
e = +e;
|
|
147
|
-
var m = e < 0 || 1 / e < 0;
|
|
148
|
-
if (e = isNaN(e) ? v : D(Math.abs(e), S), C && (e = c(e)), m && +e == 0 && p !== "+" && (m = !1), n = (m ? p === "(" ? p : _ : p === "-" || p === "(" ? "" : p) + n, a = (w === "s" && !isNaN(e) && l !== void 0 ? h[8 + l / 3] : "") + a + (m && p === "(" ? ")" : ""), O) {
|
|
149
|
-
for (o = -1, s = e.length; ++o < s;) if (f = e.charCodeAt(o), 48 > f || f > 57) {
|
|
150
|
-
a = (f === 46 ? u + e.slice(o + 1) : e.slice(o)) + a, e = e.slice(0, o);
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
x && !y && (e = t(e, Infinity));
|
|
156
|
-
var g = n.length + e.length + a.length, k = g < b ? Array(b - g + 1).join(r) : "";
|
|
157
|
-
switch (x && y && (e = t(k + e, k.length ? b - a.length : Infinity), k = ""), i) {
|
|
158
|
-
case "<":
|
|
159
|
-
e = n + e + a + k;
|
|
160
|
-
break;
|
|
161
|
-
case "=":
|
|
162
|
-
e = n + k + e + a;
|
|
163
|
-
break;
|
|
164
|
-
case "^":
|
|
165
|
-
e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
|
|
166
|
-
break;
|
|
167
|
-
default: e = k + n + e + a;
|
|
168
|
-
}
|
|
169
|
-
return d(e);
|
|
170
|
-
}
|
|
171
|
-
return k.toString = function() {
|
|
172
|
-
return e + "";
|
|
173
|
-
}, k;
|
|
174
|
-
}
|
|
175
|
-
function b(e, t) {
|
|
176
|
-
var r = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, i = 10 ** -r, a = y((e = o(e), e.type = "f", e), { suffix: h[8 + r / 3] });
|
|
177
|
-
return function(e) {
|
|
178
|
-
return a(i * e);
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
return {
|
|
182
|
-
format: y,
|
|
183
|
-
formatPrefix: b
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
|
|
188
|
-
var _, v, y;
|
|
189
|
-
b({
|
|
190
|
-
thousands: ",",
|
|
191
|
-
grouping: [3],
|
|
192
|
-
currency: ["$", ""]
|
|
193
|
-
});
|
|
194
|
-
function b(e) {
|
|
195
|
-
return _ = g(e), v = _.format, y = _.formatPrefix, _;
|
|
196
|
-
}
|
|
197
|
-
//#endregion
|
|
198
|
-
export { n as i, y as n, o as r, v as t };
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./mermaid-parser.core-BupC9XGF.js";
|
|
2
|
-
import { n as t } from "./chunk-Y2CYZVJY-DO9UHHon.js";
|
|
3
|
-
import { m as n } from "./src-C7bjHtAI.js";
|
|
4
|
-
import { H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f, z as p } from "./chunk-I66GZJ75-xmbkwRyp.js";
|
|
5
|
-
import { i as m } from "./chunk-NSK5VX7P-BO1SrWAL.js";
|
|
6
|
-
import { t as h } from "./chunk-JWPE2WC7-B8JIODrM.js";
|
|
7
|
-
import { r as g, t as _ } from "./chunk-4I5QYGJK-Bs8S-Wfu.js";
|
|
8
|
-
import { t as v } from "./chunk-2Q5K7J3B-C3WfnuyI.js";
|
|
9
|
-
import { a as y } from "./mermaid.core-CxM-VhZd.js";
|
|
10
|
-
//#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-7IWD3JNH.mjs
|
|
11
|
-
var b = /[─━│┃└┗├┣]/, x = /[└┗├┣]/, S = /[─━]/, C = /^[\s│┃]+$/, w = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, T = /^\s*%%/, E = " ";
|
|
12
|
-
function D(e) {
|
|
13
|
-
return e.some((e) => b.test(e));
|
|
14
|
-
}
|
|
15
|
-
t(D, "isBoxDrawingFormat");
|
|
16
|
-
function O(e) {
|
|
17
|
-
for (let t of e) {
|
|
18
|
-
let e = x.exec(t);
|
|
19
|
-
if (e?.index && e.index > 0) return e.index;
|
|
20
|
-
}
|
|
21
|
-
return 4;
|
|
22
|
-
}
|
|
23
|
-
t(O, "inferSegmentWidth");
|
|
24
|
-
function k(e, t) {
|
|
25
|
-
return e.replace(/\bline\s+(\d+)\b/gi, (e, n) => {
|
|
26
|
-
let r = parseInt(n, 10), i = t.get(r);
|
|
27
|
-
return i ? `line ${i}` : e;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
t(k, "remapErrorLines");
|
|
31
|
-
function A(e) {
|
|
32
|
-
let t = e.split("\n"), n = /* @__PURE__ */ new Map(), r = -1;
|
|
33
|
-
for (let [e, n] of t.entries()) if (n.trim() === "treeView-beta") {
|
|
34
|
-
r = e;
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
if (r === -1) return {
|
|
38
|
-
text: e,
|
|
39
|
-
lineMap: n
|
|
40
|
-
};
|
|
41
|
-
let i = [];
|
|
42
|
-
for (let e = r + 1; e < t.length; e++) {
|
|
43
|
-
let n = t[e];
|
|
44
|
-
n.trim() === "" || T.test(n) || w.test(n) || C.test(n) || i.push(n.replace(/\t/g, " "));
|
|
45
|
-
}
|
|
46
|
-
if (!D(i)) return {
|
|
47
|
-
text: e,
|
|
48
|
-
lineMap: n
|
|
49
|
-
};
|
|
50
|
-
let a = O(i), o = [], s = 0;
|
|
51
|
-
for (let e = 0; e <= r; e++) o.push(t[e]), s++, n.set(s, e + 1);
|
|
52
|
-
for (let e = r + 1; e < t.length; e++) {
|
|
53
|
-
let r = t[e], i = r.trim(), c = e + 1;
|
|
54
|
-
if (i === "") {
|
|
55
|
-
o.push(r), s++, n.set(s, c);
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
if (T.test(r)) {
|
|
59
|
-
o.push(r), s++, n.set(s, c);
|
|
60
|
-
continue;
|
|
61
|
-
}
|
|
62
|
-
if (w.test(r)) {
|
|
63
|
-
o.push(r), s++, n.set(s, c);
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
if (C.test(r)) continue;
|
|
67
|
-
let l = r.replace(/\t/g, " "), u = x.exec(l);
|
|
68
|
-
if (u?.index !== void 0) {
|
|
69
|
-
let e = u.index, t = Math.round(e / a) + 1, r = e + 1;
|
|
70
|
-
for (; r < l.length && S.test(l[r]);) r++;
|
|
71
|
-
for (; r < l.length && l[r] === " ";) r++;
|
|
72
|
-
let i = l.slice(r).trimEnd();
|
|
73
|
-
if (!i) throw Error(`Line ${c}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);
|
|
74
|
-
let d = E.repeat(t);
|
|
75
|
-
o.push(d + i), s++, n.set(s, c);
|
|
76
|
-
} else if (/^[\s─━│┃└┗├┣]+$/.test(l)) continue;
|
|
77
|
-
else if (b.test(l)) o.push(r), s++, n.set(s, c);
|
|
78
|
-
else if (/^\s+/.test(l)) throw Error(`Line ${c}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);
|
|
79
|
-
else o.push(r), s++, n.set(s, c);
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
text: o.join("\n"),
|
|
83
|
-
lineMap: n
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
t(A, "preprocessBoxDrawing");
|
|
87
|
-
var j = new v(() => ({
|
|
88
|
-
cnt: 1,
|
|
89
|
-
stack: [{
|
|
90
|
-
id: 0,
|
|
91
|
-
level: -1,
|
|
92
|
-
name: "/",
|
|
93
|
-
nodeType: "directory",
|
|
94
|
-
children: []
|
|
95
|
-
}]
|
|
96
|
-
})), M = /* @__PURE__ */ t(() => {
|
|
97
|
-
j.reset(), o();
|
|
98
|
-
}, "clear"), N = /* @__PURE__ */ t(() => j.records.stack[0], "getRoot"), P = /* @__PURE__ */ t(() => j.records.cnt, "getCount"), F = l.treeView, I = {
|
|
99
|
-
clear: M,
|
|
100
|
-
addNode: /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
101
|
-
for (; e <= j.records.stack[j.records.stack.length - 1].level;) j.records.stack.pop();
|
|
102
|
-
let o = {
|
|
103
|
-
id: j.records.cnt++,
|
|
104
|
-
level: e,
|
|
105
|
-
name: t,
|
|
106
|
-
nodeType: n,
|
|
107
|
-
icon: i,
|
|
108
|
-
cssClass: r,
|
|
109
|
-
description: a,
|
|
110
|
-
children: []
|
|
111
|
-
};
|
|
112
|
-
j.records.stack[j.records.stack.length - 1].children.push(o), j.records.stack.push(o);
|
|
113
|
-
}, "addNode"),
|
|
114
|
-
getRoot: N,
|
|
115
|
-
getCount: P,
|
|
116
|
-
getConfig: /* @__PURE__ */ t(() => m(F, s().treeView), "getConfig"),
|
|
117
|
-
getAccTitle: f,
|
|
118
|
-
getAccDescription: u,
|
|
119
|
-
getDiagramTitle: d,
|
|
120
|
-
setAccDescription: r,
|
|
121
|
-
setAccTitle: a,
|
|
122
|
-
setDiagramTitle: i
|
|
123
|
-
}, L = /* @__PURE__ */ t((e) => {
|
|
124
|
-
h(e, I);
|
|
125
|
-
for (let t of e.nodes) {
|
|
126
|
-
let e = typeof t.indent == "number" ? t.indent : 0, n = t.name, r = n.endsWith("/");
|
|
127
|
-
r && (n = n.slice(0, -1));
|
|
128
|
-
let i = r ? "directory" : "file", a = t.classAnnotation || void 0, o = t.iconAnnotation, c = o === void 0 ? void 0 : o || "none", l = t.descAnnotation || void 0, u = l ? p(l, s()) : void 0;
|
|
129
|
-
I.addNode(e, n, i, a, c, u);
|
|
130
|
-
}
|
|
131
|
-
}, "populate"), R = { parse: /* @__PURE__ */ t(async (t) => {
|
|
132
|
-
let { text: r, lineMap: i } = A(t);
|
|
133
|
-
try {
|
|
134
|
-
let t = await e("treeView", r);
|
|
135
|
-
n.debug(t), L(t);
|
|
136
|
-
} catch (e) {
|
|
137
|
-
throw i.size > 0 && e instanceof Error && (e.message = k(e.message, i)), e;
|
|
138
|
-
}
|
|
139
|
-
}, "parse") }, z = {
|
|
140
|
-
prefix: "mermaid-treeview",
|
|
141
|
-
height: 24,
|
|
142
|
-
width: 24,
|
|
143
|
-
icons: {
|
|
144
|
-
folder: { body: "<path fill=\"currentColor\" d=\"M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z\"/>" },
|
|
145
|
-
file: { body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z\" clip-rule=\"evenodd\"/>" }
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
function B(e, t) {
|
|
149
|
-
let n = t?.filenameIcons?.[e];
|
|
150
|
-
if (n) return n;
|
|
151
|
-
let r = e.lastIndexOf(".");
|
|
152
|
-
if (r > 0) {
|
|
153
|
-
let n = e.substring(r).toLowerCase(), i = t?.extensionIcons;
|
|
154
|
-
return i?.[n] ?? i?.[n.slice(1)];
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
t(B, "detectIcon");
|
|
158
|
-
function V(e, t) {
|
|
159
|
-
return e.includes(":") ? e : e in z.icons || !t ? `${z.prefix}:${e}` : `${t}:${e}`;
|
|
160
|
-
}
|
|
161
|
-
t(V, "qualifyIcon");
|
|
162
|
-
function H(e, t) {
|
|
163
|
-
if (e.icon !== "none") {
|
|
164
|
-
if (e.icon) return V(e.icon, t.defaultIconPack);
|
|
165
|
-
if (t.showIcons) {
|
|
166
|
-
if (e.nodeType === "file") {
|
|
167
|
-
let n = B(e.name, t);
|
|
168
|
-
if (n === "none") return;
|
|
169
|
-
if (n) return V(n, t.defaultIconPack);
|
|
170
|
-
}
|
|
171
|
-
return `${z.prefix}:${e.nodeType === "directory" ? "folder" : "file"}`;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
t(H, "getNodeIcon"), g([{
|
|
176
|
-
name: z.prefix,
|
|
177
|
-
icons: z
|
|
178
|
-
}]);
|
|
179
|
-
var U = 14, W = 4, G = 16, K = /* @__PURE__ */ t((e, t) => `tv-icon-${e}-${t.replace(/[^\w-]/g, "-")}`, "iconSymbolId"), q = /* @__PURE__ */ t(async (e, n, r, i) => {
|
|
180
|
-
let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ t((e) => {
|
|
181
|
-
let t = H(e, r);
|
|
182
|
-
t && a.add(t), e.children.forEach(o);
|
|
183
|
-
}, "collect");
|
|
184
|
-
if (o(n), a.size === 0) return;
|
|
185
|
-
let s = await Promise.all([...a].map(async (e) => ({
|
|
186
|
-
icon: e,
|
|
187
|
-
svg: await _(e, {
|
|
188
|
-
height: U,
|
|
189
|
-
width: U
|
|
190
|
-
})
|
|
191
|
-
}))), c = e.append("defs");
|
|
192
|
-
for (let { icon: e, svg: t } of s) c.append("g").attr("id", K(i, e)).html(t);
|
|
193
|
-
}, "injectIconDefs"), J = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
194
|
-
let o = r.append("g"), s = "treeView-node-label";
|
|
195
|
-
n.nodeType === "directory" && (s += " treeView-node-dir"), n.cssClass && (s += ` ${n.cssClass}`);
|
|
196
|
-
let c = U + W, l = H(n, i), u = l !== void 0;
|
|
197
|
-
l && o.append("use").attr("xlink:href", `#${K(a, l)}`).attr("x", e + i.paddingX).attr("y", t + i.paddingY).attr("class", "treeView-node-icon");
|
|
198
|
-
let d = o.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", s), { height: f, width: p } = d.node().getBBox(), m = f + i.paddingY * 2, h = e + i.paddingX + (u ? c : 0);
|
|
199
|
-
d.attr("x", h), d.attr("y", t + m / 2);
|
|
200
|
-
let g = h + p;
|
|
201
|
-
return n.BBox = {
|
|
202
|
-
x: e,
|
|
203
|
-
y: t,
|
|
204
|
-
width: p + i.paddingX * 2 + (u ? c : 0),
|
|
205
|
-
height: m
|
|
206
|
-
}, n.cssClass?.split(/\s+/).includes("highlight") && o.insert("rect", ":first-child").attr("x", e).attr("y", t + 1).attr("width", 0).attr("height", m - 2).attr("rx", 3).attr("class", "treeView-highlight-bg"), {
|
|
207
|
-
node: n,
|
|
208
|
-
nodeGroup: o,
|
|
209
|
-
labelRightEdge: g,
|
|
210
|
-
centerY: t + m / 2
|
|
211
|
-
};
|
|
212
|
-
}, "positionLabel"), Y = /* @__PURE__ */ t((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), X = /* @__PURE__ */ t((e, n, r, i) => {
|
|
213
|
-
let a = 0, o = 0, s = [], c = /* @__PURE__ */ t((e, t, n, r) => {
|
|
214
|
-
let c = r * (n.rowIndent + n.paddingX), l = J(c, a, t, e, n, i);
|
|
215
|
-
s.push(l);
|
|
216
|
-
let { height: u, width: d } = t.BBox;
|
|
217
|
-
Y(e, c - n.rowIndent, a + u / 2, c, a + u / 2, n.lineThickness), o = Math.max(o, c + d), a += u;
|
|
218
|
-
}, "drawNode"), l = /* @__PURE__ */ t((t, n = 0) => {
|
|
219
|
-
c(e, t, r, n), t.children.forEach((e) => {
|
|
220
|
-
l(e, n + 1);
|
|
221
|
-
});
|
|
222
|
-
let { x: i, y: a, height: o } = t.BBox;
|
|
223
|
-
if (t.children.length) {
|
|
224
|
-
let { y: n, height: s } = t.children[t.children.length - 1].BBox;
|
|
225
|
-
Y(e, i + r.paddingX, a + o, i + r.paddingX, n + s / 2 + r.lineThickness / 2, r.lineThickness);
|
|
226
|
-
}
|
|
227
|
-
}, "processNode");
|
|
228
|
-
l(n);
|
|
229
|
-
let u = s.filter((e) => e.node.description);
|
|
230
|
-
if (u.length > 0) {
|
|
231
|
-
let e = Math.max(...s.map((e) => e.labelRightEdge)) + G;
|
|
232
|
-
for (let t of u) {
|
|
233
|
-
let n = t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline", "middle").attr("class", "treeView-node-description").attr("x", e).attr("y", t.centerY).node().getBBox();
|
|
234
|
-
o = Math.max(o, e + n.width + r.paddingX);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
for (let e of s) if (e.node.cssClass?.split(/\s+/).includes("highlight")) {
|
|
238
|
-
let t = e.nodeGroup.select(".treeView-highlight-bg");
|
|
239
|
-
if (!t.empty()) {
|
|
240
|
-
let n = o - e.node.BBox.x + 8;
|
|
241
|
-
t.attr("width", n), o = Math.max(o, e.node.BBox.x + n + 2);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
totalHeight: a,
|
|
246
|
-
totalWidth: o
|
|
247
|
-
};
|
|
248
|
-
}, "drawTree"), Z = { draw: /* @__PURE__ */ t(async (e, t, r, i) => {
|
|
249
|
-
n.debug("Rendering treeView diagram\n" + e);
|
|
250
|
-
let a = i.db, o = a.getRoot(), s = a.getConfig(), l = y(t);
|
|
251
|
-
await q(l, o, s, t);
|
|
252
|
-
let u = l.append("g");
|
|
253
|
-
u.attr("class", "tree-view");
|
|
254
|
-
let { totalHeight: d, totalWidth: f } = X(u, o, s, t);
|
|
255
|
-
l.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), c(l, d, f, s.useMaxWidth);
|
|
256
|
-
}, "draw") }, Q = {
|
|
257
|
-
labelFontSize: "16px",
|
|
258
|
-
labelColor: "black",
|
|
259
|
-
lineColor: "black",
|
|
260
|
-
iconColor: "#546e7a",
|
|
261
|
-
descriptionColor: "#6a9955",
|
|
262
|
-
highlightBg: "rgba(255, 193, 7, 0.15)",
|
|
263
|
-
highlightStroke: "#ffc107"
|
|
264
|
-
}, $ = {
|
|
265
|
-
db: I,
|
|
266
|
-
renderer: Z,
|
|
267
|
-
parser: R,
|
|
268
|
-
styles: /* @__PURE__ */ t(({ treeView: e }) => {
|
|
269
|
-
let { labelFontSize: t, labelColor: n, lineColor: r, iconColor: i, descriptionColor: a, highlightBg: o, highlightStroke: s } = m(Q, e);
|
|
270
|
-
return `
|
|
271
|
-
.treeView-node-label {
|
|
272
|
-
font-size: ${t};
|
|
273
|
-
fill: ${n};
|
|
274
|
-
white-space: pre;
|
|
275
|
-
}
|
|
276
|
-
.treeView-node-dir {
|
|
277
|
-
font-weight: bold;
|
|
278
|
-
}
|
|
279
|
-
.treeView-node-line {
|
|
280
|
-
stroke: ${r};
|
|
281
|
-
}
|
|
282
|
-
.treeView-node-icon {
|
|
283
|
-
color: ${i};
|
|
284
|
-
}
|
|
285
|
-
.treeView-node-description {
|
|
286
|
-
font-size: ${t};
|
|
287
|
-
fill: ${a};
|
|
288
|
-
font-style: italic;
|
|
289
|
-
white-space: pre;
|
|
290
|
-
}
|
|
291
|
-
.treeView-highlight-bg {
|
|
292
|
-
fill: ${o};
|
|
293
|
-
stroke: ${s};
|
|
294
|
-
stroke-width: 1;
|
|
295
|
-
}
|
|
296
|
-
`;
|
|
297
|
-
}, "styles")
|
|
298
|
-
};
|
|
299
|
-
//#endregion
|
|
300
|
-
export { $ as diagram };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-aXxW1VLR.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-I66GZJ75-D8wVRUgw.cjs"),i=require("./chunk-NSK5VX7P-BiC_63US.cjs"),a=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),o=require("./chunk-4I5QYGJK-CBqJO_mi.cjs"),s=require("./chunk-2Q5K7J3B-B8v9mTdK.cjs"),c=require("./mermaid.core-C05C5gh_.cjs");var l=/[─━│┃└┗├┣]/,u=/[└┗├┣]/,d=/[─━]/,f=/^[\s│┃]+$/,p=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,m=/^\s*%%/,h=` `;function g(e){return e.some(e=>l.test(e))}t.n(g,`isBoxDrawingFormat`);function _(e){for(let t of e){let e=u.exec(t);if(e?.index&&e.index>0)return e.index}return 4}t.n(_,`inferSegmentWidth`);function v(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}t.n(v,`remapErrorLines`);function y(e){let t=e.split(`
|
|
2
|
-
`),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e<t.length;e++){let n=t[e];n.trim()===``||m.test(n)||p.test(n)||f.test(n)||i.push(n.replace(/\t/g,` `))}if(!g(i))return{text:e,lineMap:n};let a=_(i),o=[],s=0;for(let e=0;e<=r;e++)o.push(t[e]),s++,n.set(s,e+1);for(let e=r+1;e<t.length;e++){let r=t[e],i=r.trim(),c=e+1;if(i===``){o.push(r),s++,n.set(s,c);continue}if(m.test(r)){o.push(r),s++,n.set(s,c);continue}if(p.test(r)){o.push(r),s++,n.set(s,c);continue}if(f.test(r))continue;let g=r.replace(/\t/g,` `),_=u.exec(g);if(_?.index!==void 0){let e=_.index,t=Math.round(e/a)+1,r=e+1;for(;r<g.length&&d.test(g[r]);)r++;for(;r<g.length&&g[r]===` `;)r++;let i=g.slice(r).trimEnd();if(!i)throw Error(`Line ${c}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let l=h.repeat(t);o.push(l+i),s++,n.set(s,c)}else if(/^[\s─━│┃└┗├┣]+$/.test(g))continue;else if(l.test(g))o.push(r),s++,n.set(s,c);else if(/^\s+/.test(g))throw Error(`Line ${c}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);else o.push(r),s++,n.set(s,c)}return{text:o.join(`
|
|
3
|
-
`),lineMap:n}}t.n(y,`preprocessBoxDrawing`);var b=new s.t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),x=t.n(()=>{b.reset(),r.a()},`clear`),S=t.n(()=>b.records.stack[0],`getRoot`),C=t.n(()=>b.records.cnt,`getCount`),w=r.f.treeView,T={clear:x,addNode:t.n((e,t,n,r,i,a)=>{for(;e<=b.records.stack[b.records.stack.length-1].level;)b.records.stack.pop();let o={id:b.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};b.records.stack[b.records.stack.length-1].children.push(o),b.records.stack.push(o)},`addNode`),getRoot:S,getCount:C,getConfig:t.n(()=>i.i(w,r.b().treeView),`getConfig`),getAccTitle:r.y,getAccDescription:r.v,getDiagramTitle:r.w,setAccDescription:r.H,setAccTitle:r.U,setDiagramTitle:r.K},E=t.n(e=>{a.t(e,T);for(let t of e.nodes){let e=typeof t.indent==`number`?t.indent:0,n=t.name,i=n.endsWith(`/`);i&&(n=n.slice(0,-1));let a=i?`directory`:`file`,o=t.classAnnotation||void 0,s=t.iconAnnotation,c=s===void 0?void 0:s||`none`,l=t.descAnnotation||void 0,u=l?r.z(l,r.b()):void 0;T.addNode(e,n,a,o,c,u)}},`populate`),D={parse:t.n(async t=>{let{text:r,lineMap:i}=y(t);try{let t=await e.n(`treeView`,r);n.m.debug(t),E(t)}catch(e){throw i.size>0&&e instanceof Error&&(e.message=v(e.message,i)),e}},`parse`)},O={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:`<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>`},file:{body:`<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>`}}};function k(e,t){let n=t?.filenameIcons?.[e];if(n)return n;let r=e.lastIndexOf(`.`);if(r>0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}t.n(k,`detectIcon`);function A(e,t){return e.includes(`:`)?e:e in O.icons||!t?`${O.prefix}:${e}`:`${t}:${e}`}t.n(A,`qualifyIcon`);function j(e,t){if(e.icon!==`none`){if(e.icon)return A(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=k(e.name,t);if(n===`none`)return;if(n)return A(n,t.defaultIconPack)}return`${O.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}t.n(j,`getNodeIcon`),o.r([{name:O.prefix,icons:O}]);var M=14,N=4,P=16,F=t.n((e,t)=>`tv-icon-${e}-${t.replace(/[^\w-]/g,`-`)}`,`iconSymbolId`),I=t.n(async(e,n,r,i)=>{let a=new Set,s=t.n(e=>{let t=j(e,r);t&&a.add(t),e.children.forEach(s)},`collect`);if(s(n),a.size===0)return;let c=await Promise.all([...a].map(async e=>({icon:e,svg:await o.t(e,{height:M,width:M})}))),l=e.append(`defs`);for(let{icon:e,svg:t}of c)l.append(`g`).attr(`id`,F(i,e)).html(t)},`injectIconDefs`),L=t.n((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let c=M+N,l=j(n,i),u=l!==void 0;l&&o.append(`use`).attr(`xlink:href`,`#${F(a,l)}`).attr(`x`,e+i.paddingX).attr(`y`,t+i.paddingY).attr(`class`,`treeView-node-icon`);let d=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:f,width:p}=d.node().getBBox(),m=f+i.paddingY*2,h=e+i.paddingX+(u?c:0);d.attr(`x`,h),d.attr(`y`,t+m/2);let g=h+p;return n.BBox={x:e,y:t,width:p+i.paddingX*2+(u?c:0),height:m},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,m-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:g,centerY:t+m/2}},`positionLabel`),R=t.n((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),z=t.n((e,n,r,i)=>{let a=0,o=0,s=[],c=t.n((e,t,n,r)=>{let c=r*(n.rowIndent+n.paddingX),l=L(c,a,t,e,n,i);s.push(l);let{height:u,width:d}=t.BBox;R(e,c-n.rowIndent,a+u/2,c,a+u/2,n.lineThickness),o=Math.max(o,c+d),a+=u},`drawNode`),l=t.n((t,n=0)=>{c(e,t,r,n),t.children.forEach(e=>{l(e,n+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:n,height:s}=t.children[t.children.length-1].BBox;R(e,i+r.paddingX,a+o,i+r.paddingX,n+s/2+r.lineThickness/2,r.lineThickness)}},`processNode`);l(n);let u=s.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...s.map(e=>e.labelRightEdge))+P;for(let t of u){let n=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();o=Math.max(o,e+n.width+r.paddingX)}}for(let e of s)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=o-e.node.BBox.x+8;t.attr(`width`,n),o=Math.max(o,e.node.BBox.x+n+2)}}return{totalHeight:a,totalWidth:o}},`drawTree`),B={draw:t.n(async(e,t,i,a)=>{n.m.debug(`Rendering treeView diagram
|
|
4
|
-
`+e);let o=a.db,s=o.getRoot(),l=o.getConfig(),u=c.a(t);await I(u,s,l,t);let d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=z(d,s,l,t);u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),r.c(u,f,p,l.useMaxWidth)},`draw`)},V={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},H={db:T,renderer:B,parser:D,styles:t.n(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r,iconColor:a,descriptionColor:o,highlightBg:s,highlightStroke:c}=i.i(V,e);return`
|
|
5
|
-
.treeView-node-label {
|
|
6
|
-
font-size: ${t};
|
|
7
|
-
fill: ${n};
|
|
8
|
-
white-space: pre;
|
|
9
|
-
}
|
|
10
|
-
.treeView-node-dir {
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
}
|
|
13
|
-
.treeView-node-line {
|
|
14
|
-
stroke: ${r};
|
|
15
|
-
}
|
|
16
|
-
.treeView-node-icon {
|
|
17
|
-
color: ${a};
|
|
18
|
-
}
|
|
19
|
-
.treeView-node-description {
|
|
20
|
-
font-size: ${t};
|
|
21
|
-
fill: ${o};
|
|
22
|
-
font-style: italic;
|
|
23
|
-
white-space: pre;
|
|
24
|
-
}
|
|
25
|
-
.treeView-highlight-bg {
|
|
26
|
-
fill: ${s};
|
|
27
|
-
stroke: ${c};
|
|
28
|
-
stroke-width: 1;
|
|
29
|
-
}
|
|
30
|
-
`},`styles`)};exports.diagram=H;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-KEIR6QF5-rUKzMPy0.cjs"),t=require("./mermaid-parser.core-aXxW1VLR.cjs"),n=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),r=require("./src-D9o9TOtH.cjs"),i=require("./chunk-I66GZJ75-D8wVRUgw.cjs"),a=require("./chunk-NSK5VX7P-BiC_63US.cjs"),o=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");var s=`position frame`,c=`frame positioned`,l=`position relation`,u=`relation positioned`,d=n.n(function(e){r.m.debug(`options str`,e)},`setOptions`),f=n.n(function(){return{}},`getOptions`),p=n.n(function(){m(),i.a()},`clear`);function m(){_={}}n.n(m,`reset`);var h=i.f.eventmodeling,g=n.n(()=>a.i({...h,...i.b().eventmodeling}),`getConfig`),_={};function v(){let e=S,{ast:t}=_,n=x();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((i,a)=>{let o=k(i,t.dataEntities,n);e=G(e,{$kind:s,index:a,frame:i,textProps:o});let c;I(i)?(r.m.debug(`source frame`,i.sourceFrames),c=t.frames.filter(e=>i.sourceFrames.some(t=>t.$refText===e.name)),c.forEach(t=>{e=G(e,{$kind:l,index:a,frame:i,sourceFrame:t})})):e=G(e,{$kind:l,index:a,frame:i})}),e={...e,sortedSwimlanesArray:N(e.swimlanes)},e}n.n(v,`getState`);function y(e){_.ast=e}n.n(y,`setAst`);var b={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:`bold`,boxTextPadding:10,swimlaneTextFontWeight:`bold`,labelUiAutomation:`UI/Automation`,labelUiAutomationPrefix:`UI/A: `,labelCommandReadModel:`Command/Read Model`,labelCommandReadModelPrefix:`C/RM: `,labelEvents:`Events`,labelEventsPrefix:`Stream: `};function x(){return b}n.n(x,`getDiagramProps`);var S={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function C(e){let t=e.split(`.`);if(t.length===2)return t[0]}n.n(C,`extractNamespace`);function w(e){let t=e.split(`.`);return t.length===2?t[1]:e}n.n(w,`extractName`);function T(e,t){if(!(!t||t.length===0))return Object.values(e).find(e=>e.namespace===t)}n.n(T,`findSwimlaneByNamespace`);function E(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&r<n}).map(e=>Number.parseInt(e)))+1}n.n(E,`findNextAvailableIndex`);function D(e,t){let n=C(e.entityIdentifier),r=T(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||b.labelUiAutomation}:n?{index:E(t,0,100),label:b.labelUiAutomationPrefix+n}:{index:0,label:b.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||b.labelCommandReadModel}:n?{index:E(t,100,200),label:b.labelCommandReadModelPrefix+n}:{index:100,label:b.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||b.labelEvents}:n?{index:E(t,200,300),label:b.labelEventsPrefix+n}:{index:200,label:b.labelEvents}}}n.n(D,`calculateSwimlaneProps`);function O(e){let{themeVariables:t}=i.b();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}n.n(O,`calculateEntityVisualProps`);function k(e,t,n){let o=i.b(),s=i.z(w(e.entityIdentifier)??``,o),c,l={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`<br/>`},u=`<b>${a._(s,n.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(c=e.dataInlineValue,c=c.substring(c.indexOf(`{`)+1),c=c.substring(0,c.lastIndexOf(`}`)-1),c=i.z(c,o),c=a._(c,n.textMaxWidth,l),c=c.replaceAll(` `,` `)),e.dataReference){let r=t.find(t=>t.name===e.dataReference?.$refText);r&&(c=r.dataBlockValue,c=c.substring(c.indexOf(`{
|
|
2
|
-
`)+2),c=c.substring(0,c.lastIndexOf(`}`)-1),c=i.z(c,o),c=a._(c,n.textMaxWidth,l),c=c.replaceAll(` `,` `),c+=`<br/>`)}let d=c!==void 0;d&&(u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${c}</code>`);let f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},p=a.t(u,f),m=d?p.width/3:p.width,h={content:u,width:m,height:p.height};return r.m.debug(`[${e.name}] ${e.entityIdentifier} text`,h),h}n.n(k,`calculateTextProps`);function A(e,t){let n=t,r=O(n.frame),i={width:n.textProps.width+2*b.boxTextPadding,height:n.textProps.height+2*b.boxTextPadding};return[{$kind:c,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}n.n(A,`decidePositionFrame`);function j(e,t,n){return t===void 0?b.contentStartX:t.index===e.index&&e.r?e.r+b.boxPadding:n===void 0?b.contentStartX:n.r-b.boxOverlap+b.boxPadding}n.n(j,`calculateX`);function M(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}n.n(M,`calculateMaxRight`);function N(e){return Object.values(e).sort((e,t)=>e.index-t.index)}n.n(N,`sortedSwimlanesArray`);function P(e,t){let n=t,r=D(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*b.swimlaneMinHeight+b.swimlaneGap,height:b.swimlaneMinHeight,maxHeight:b.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(b.boxMinWidth,Math.min(b.boxMaxWidth,n.dimension.width))+2*b.boxPadding,height:Math.max(b.boxMinHeight,Math.min(b.boxMaxHeight,n.dimension.height))+2*b.boxPadding},c=j(i,o,a),l=c+s.width+b.boxPadding,u=M(Object.values(e.swimlanes),l);i.r=c+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(b.swimlaneMinHeight,i.maxHeight)+2*b.swimlanePadding;let d={x:c,y:b.swimlanePadding+i.y,r:l,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},f={...e,boxes:[...e.boxes,d],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:u},p=N(f.swimlanes);p.length>0&&(p[0].y=0);for(let e=1;e<p.length;e++){let t=p[e],n=p[e-1];t.y=n.y+n.height+b.swimlaneGap}return f}n.n(P,`evolveFramePositioned`);function F(e,t){return e===0&&t.sourceFrames.length===0}n.n(F,`isFirstFrame`);function I(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}n.n(I,`hasSourceFrame`);function L(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}n.n(L,`findBoxByFrame`);function R(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}n.n(R,`findBoxByLineIndex`);function z(t,n){let r=n;if(e.T(r.frame)||F(r.index,r.frame))return[];let i=L(t.boxes,r.frame);if(i===void 0)throw Error(`Target box not found for frame ${r.frame.name}`);let a;return a=r.sourceFrame?L(t.boxes,r.sourceFrame):R(t.boxes,i.swimlane.index,r.index-1),a===void 0?[]:[{$kind:u,frame:r.frame,index:r.index,sourceBox:a,targetBox:i}]}n.n(z,`decidePositionRelation`);function B(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}n.n(B,`evolveRelationPositioned`);var V={[s]:A,[l]:z},H={[c]:P,[u]:B};function U(e,t){let n=V[t.$kind];if(n==null)return[];let i=n(e,t);return r.m.debug(`decided events`,i),i}n.n(U,`decide`);function W(e,t){let n=t.reduce((e,t)=>{let n=H[t.$kind];return n==null?e:n(e,t)},e);return r.m.debug(`evolve events`,{state:e,newState:n,events:t}),n}n.n(W,`evolve`);function G(e,t){return W(e,U(e,t))}n.n(G,`dispatch`);var K={getConfig:g,setOptions:d,getOptions:f,clear:p,setAccTitle:i.U,getAccTitle:i.y,getAccDescription:i.v,setAccDescription:i.H,setDiagramTitle:i.K,getDiagramTitle:i.w,setAst:y,getDiagramProps:x,getState:v},q={parse:n.n(async e=>{let n=await t.n(`eventmodeling`,e);r.m.debug(n),K.setAst(n),o.t(n,K)},`parse`)},J=i.x()?.eventmodeling;function Y(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.boxPadding).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`).append(`span`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(n.text)}}n.n(Y,`renderD3Box`);function X(e,t){return e>t}n.n(X,`dirUpwards`);function Z(e,t,n,i){return a=>{let o=a.sourceBox.swimlane.y+t.swimlanePadding,s=a.targetBox.swimlane.y+t.swimlanePadding,c=X(o,s),l=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3,d,f;r.m.debug(`rendering relation up=${c} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),c?(d=o,f=s+a.targetBox.dimension.height):(d=o+a.sourceBox.dimension.height,f=s);let p=i.emRelationStroke??a.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,a.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${n})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}n.n(Z,`renderD3Relation`);function Q(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}n.n(Q,`renderD3Swimlane`);var $={parser:q,db:K,renderer:{draw:n.n(function(e,t,n,a){if(r.m.debug(`in eventmodeling renderer`,e+`
|
|
3
|
-
`,`id:`,t,n),!J)throw Error(`EventModeling config not found`);let o=a.db,{themeVariables:s,eventmodeling:c}=i.x(),l=r.p(`[id="${t}"]`),u=o.getDiagramProps(),d=o.getState(),f=`em-arrowhead-${t}`,p=s.emArrowhead??`#000000`;d.sortedSwimlanesArray.forEach(Q(l,d.maxR,u,s)),d.boxes.forEach(Y(l,u)),d.relations.forEach(Z(l,u,f,s)),l.append(`defs`).append(`marker`).attr(`id`,f).attr(`markerWidth`,`10`).attr(`markerHeight`,`7`).attr(`refX`,`10`).attr(`refY`,`3.5`).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0 0, 10 3.5, 0 7`).attr(`fill`,p),i.Y(void 0,l,c?.padding??30,c?.useMaxWidth)},`draw`)},styles:n.n(e=>``,`getStyles`)};exports.diagram=$;
|