@ootc/markdown 0.0.8 → 0.1.0
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/README.md +49 -2
- package/dist/CodeBlock-B_Wu_RsD.cjs +15 -0
- package/dist/CodeBlock-BdSjKnRY.js +2320 -0
- package/dist/MarkdownPreview-CcTDfsgR.js +20425 -0
- package/dist/MarkdownPreview-imz9Sn8T.cjs +295 -0
- package/dist/{_baseUniq-DeGrAYnX.js → _baseUniq-CmzFJAby.js} +26 -26
- package/dist/_baseUniq-DTl9zLUk.cjs +1 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/arc-CLsgE_FO.cjs +1 -0
- package/dist/{arc-CcCBD5Mp.js → arc-DN0J6orD.js} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-C0Ox22_L.cjs +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-DCzhUia2.js → architectureDiagram-VXUJARFQ-DD1WVkEB.js} +21 -20
- package/dist/{blockDiagram-VD42YOAC-CX_zy8OX.cjs → blockDiagram-VD42YOAC-CXFrXgPY.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-CpuPTPQw.js → blockDiagram-VD42YOAC-DzX-b-6d.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-BALY1Kvn.cjs → c4Diagram-YG6GDRKO-8tK3jTST.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-ClfwzLRg.js → c4Diagram-YG6GDRKO-CBo9Z0K5.js} +2 -2
- package/dist/{channel-DzwlMp11.js → channel-BWUNfmCm.js} +1 -1
- package/dist/channel-MPm5yYgZ.cjs +1 -0
- package/dist/{chunk-4BX2VUAB-Bzfe5kl7.js → chunk-4BX2VUAB-BC2JrFPv.js} +1 -1
- package/dist/chunk-4BX2VUAB-CVibkmL0.cjs +1 -0
- package/dist/{chunk-55IACEB6-D-GM4dj_.js → chunk-55IACEB6-CzZUDZ70.js} +1 -1
- package/dist/chunk-55IACEB6-DZnx2f_C.cjs +1 -0
- package/dist/{chunk-B4BG7PRW-D3T5xEpj.cjs → chunk-B4BG7PRW-D0a_-7vE.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-jVagvb_f.js → chunk-B4BG7PRW-DU2I6H4s.js} +4 -4
- package/dist/{chunk-DI55MBZ5-iiOy0Pjn.js → chunk-DI55MBZ5-BuXMX149.js} +3 -3
- package/dist/{chunk-DI55MBZ5-CYDfxfZR.cjs → chunk-DI55MBZ5-Dr1JJdkm.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-C8cNbCDq.cjs → chunk-FMBD7UC4-DekHPa2I.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CzpyRuGM.js → chunk-FMBD7UC4-RBUwxloo.js} +1 -1
- package/dist/{chunk-QN33PNHL-D1_Ni3Px.js → chunk-QN33PNHL-B6FGlZxV.js} +1 -1
- package/dist/chunk-QN33PNHL-C1YRBk0j.cjs +1 -0
- package/dist/chunk-QZHKN3VN-BspjB43V.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-DzDWG_BW.js → chunk-QZHKN3VN-DR_oy1P1.js} +1 -1
- package/dist/chunk-TZMSLE5B-BRck7Be7.cjs +1 -0
- package/dist/{chunk-TZMSLE5B-JaVrcKkg.js → chunk-TZMSLE5B-pyixj0XE.js} +1 -1
- package/dist/classDiagram-2ON5EDUG-Bvw7buPq.cjs +1 -0
- package/dist/{classDiagram-v2-WZHVMYZB-DyVkjm_x.js → classDiagram-2ON5EDUG-DK3Yvqrk.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-Bvw7buPq.cjs +1 -0
- package/dist/{classDiagram-2ON5EDUG-DyVkjm_x.js → classDiagram-v2-WZHVMYZB-DK3Yvqrk.js} +2 -2
- package/dist/clone-D2V_3-x6.cjs +1 -0
- package/dist/{clone-DeLCkC6Z.js → clone-O816pP2i.js} +1 -1
- package/dist/code.cjs +1 -0
- package/dist/code.css +1 -0
- package/dist/code.d.ts +6 -0
- package/dist/code.js +5 -0
- package/dist/components/code-block/CodeBlock.d.ts +1 -2
- package/dist/components/markdown/MarkdownPreview.d.ts +2 -2
- package/dist/components/markdown-editor/MarkdownEditor.d.ts +1 -2
- package/dist/{cose-bilkent-S5V4N54A-DxEW9lHI.js → cose-bilkent-S5V4N54A-Bu3r2cA0.js} +6 -5
- package/dist/cose-bilkent-S5V4N54A-vz9hoE-P.cjs +1 -0
- package/dist/css/CodeBlock.css +1 -0
- package/dist/css/MarkdownPreview.css +1 -0
- package/dist/css/editor.css +1 -0
- package/dist/dagre-6UL2VRFP-D2UBESo6.cjs +4 -0
- package/dist/{dagre-6UL2VRFP-DHtD9xLU.js → dagre-6UL2VRFP-DiBRZkX2.js} +5 -5
- package/dist/{diagram-PSM6KHXK-CQhd0De8.js → diagram-PSM6KHXK-CUF6rC_5.js} +4 -4
- package/dist/diagram-PSM6KHXK-uKXJz4r1.cjs +24 -0
- package/dist/{diagram-QEK2KX5R-DodvoI_w.js → diagram-QEK2KX5R-Da150Pqe.js} +3 -3
- package/dist/diagram-QEK2KX5R-kQTDsG_x.cjs +43 -0
- package/dist/diagram-S2PKOQOG-C5ATPkHT.cjs +24 -0
- package/dist/{diagram-S2PKOQOG-B_qI5M8x.js → diagram-S2PKOQOG-DA2RxLrC.js} +3 -3
- package/dist/editor.cjs +1 -0
- package/dist/editor.css +3 -0
- package/dist/editor.d.ts +6 -0
- package/dist/editor.js +83 -0
- package/dist/{erDiagram-Q2GNP2WA-C2ptyylc.cjs → erDiagram-Q2GNP2WA-BsCdOw62.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-BRlsqKwd.js → erDiagram-Q2GNP2WA-YfCaUJjx.js} +4 -4
- package/dist/{flowDiagram-NV44I4VS-CYqt2yHx.cjs → flowDiagram-NV44I4VS-BG0KW3ec.cjs} +3 -3
- package/dist/{flowDiagram-NV44I4VS-Cvm6a68I.js → flowDiagram-NV44I4VS-D7WLCw1w.js} +5 -5
- package/dist/fonts/font-00b26ac8.woff2 +0 -0
- package/dist/fonts/font-036d4e95.woff2 +0 -0
- package/dist/fonts/font-07d8e303.ttf +0 -0
- package/dist/fonts/font-08ce98e5.ttf +0 -0
- package/dist/fonts/font-0cdd387c.woff2 +0 -0
- package/dist/fonts/font-0d85ae7c.ttf +0 -0
- package/dist/fonts/font-0f60d1b8.woff2 +0 -0
- package/dist/fonts/font-11e4dc8a.woff +0 -0
- package/dist/fonts/font-138ac28d.ttf +0 -0
- package/dist/fonts/font-1ae6bd74.woff +0 -0
- package/dist/fonts/font-1c67f068.ttf +0 -0
- package/dist/fonts/font-1e6f9579.ttf +0 -0
- package/dist/fonts/font-1ece03f7.ttf +0 -0
- package/dist/fonts/font-2014c523.woff +0 -0
- package/dist/fonts/font-30da91e8.woff +0 -0
- package/dist/fonts/font-3398dd02.woff +0 -0
- package/dist/fonts/font-3931dd81.ttf +0 -0
- package/dist/fonts/font-500e04d5.ttf +0 -0
- package/dist/fonts/font-51814d27.woff2 +0 -0
- package/dist/fonts/font-5d53e70a.woff2 +0 -0
- package/dist/fonts/font-5e28753b.woff +0 -0
- package/dist/fonts/font-68534840.ttf +0 -0
- package/dist/fonts/font-68e8c73e.woff2 +0 -0
- package/dist/fonts/font-6ab6b62e.woff +0 -0
- package/dist/fonts/font-6b47c401.woff2 +0 -0
- package/dist/fonts/font-70ee1f64.ttf +0 -0
- package/dist/fonts/font-71d517d6.woff2 +0 -0
- package/dist/fonts/font-73d59127.woff2 +0 -0
- package/dist/fonts/font-74444efd.woff2 +0 -0
- package/dist/fonts/font-7af58c5e.woff2 +0 -0
- package/dist/fonts/font-850c0af5.woff +0 -0
- package/dist/fonts/font-8a8d2445.woff +0 -0
- package/dist/fonts/font-9163df9c.ttf +0 -0
- package/dist/fonts/font-91ee6750.woff +0 -0
- package/dist/fonts/font-95b6d2f1.ttf +0 -0
- package/dist/fonts/font-97479ca6.woff2 +0 -0
- package/dist/fonts/font-99cd42a3.woff2 +0 -0
- package/dist/fonts/font-99f9c675.woff +0 -0
- package/dist/fonts/font-9be7ceb8.woff +0 -0
- package/dist/fonts/font-a4af7d41.woff2 +0 -0
- package/dist/fonts/font-a6b2099f.ttf +0 -0
- package/dist/fonts/font-a6f7ec0d.woff +0 -0
- package/dist/fonts/font-c2342cd8.woff2 +0 -0
- package/dist/fonts/font-c6368d87.woff +0 -0
- package/dist/fonts/font-c647367d.ttf +0 -0
- package/dist/fonts/font-c76c5d69.woff +0 -0
- package/dist/fonts/font-c943cc98.woff +0 -0
- package/dist/fonts/font-d0332f52.ttf +0 -0
- package/dist/fonts/font-d04c5421.woff2 +0 -0
- package/dist/fonts/font-d96cdf2b.woff +0 -0
- package/dist/fonts/font-dc47344d.woff2 +0 -0
- package/dist/fonts/font-de7701e4.woff2 +0 -0
- package/dist/fonts/font-e14fed02.woff +0 -0
- package/dist/fonts/font-e99ae511.woff2 +0 -0
- package/dist/fonts/font-ece03cfd.woff +0 -0
- package/dist/fonts/font-ed0b7437.ttf +0 -0
- package/dist/fonts/font-f01f3e87.ttf +0 -0
- package/dist/fonts/font-f1d6ef86.woff +0 -0
- package/dist/fonts/font-f36ea897.ttf +0 -0
- package/dist/fonts/font-f9377ab0.ttf +0 -0
- package/dist/ganttDiagram-JELNMOA3-BUA8njzO.cjs +267 -0
- package/dist/{ganttDiagram-JELNMOA3-BQ06J1_e.js → ganttDiagram-JELNMOA3-DSi9nt2I.js} +5 -4
- package/dist/gitGraphDiagram-NY62KEGX-C_9BbRSY.cjs +65 -0
- package/dist/{gitGraphDiagram-NY62KEGX-DGKuWsD-.js → gitGraphDiagram-NY62KEGX-Dr7HXTzE.js} +4 -4
- package/dist/graph-Bd_3fIRG.cjs +1 -0
- package/dist/{graph-BtbI7VTc.js → graph-DKQwyqwf.js} +2 -2
- package/dist/{index-Dt6Dj1ta.js → index-BCrgOJjI.js} +1947 -39999
- package/dist/{index-D15O8i4X.cjs → index-CPmaHYSB.cjs} +21 -577
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -3
- package/dist/infoDiagram-WHAUD3N6-LqpiKtaK.cjs +2 -0
- package/dist/{infoDiagram-WHAUD3N6-BiXQWsiv.js → infoDiagram-WHAUD3N6-cs5PUkbs.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-Cla-oCDS.cjs → journeyDiagram-XKPGCS4Q-Uzzobun-.cjs} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-C2MWaLmT.js → journeyDiagram-XKPGCS4Q-Xh1PuBF3.js} +4 -4
- package/dist/{kanban-definition-3W4ZIXB7-ClfNJh8C.cjs → kanban-definition-3W4ZIXB7-BGNcniUS.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-B3X7XfEF.js → kanban-definition-3W4ZIXB7-BrCevkcy.js} +2 -2
- package/dist/layout-C1JPMjBE.cjs +1 -0
- package/dist/{layout-BgYLdYky.js → layout-DCT3c1G0.js} +42 -42
- package/dist/{linear-BFO5vLsD.js → linear-1V2v3HAv.js} +19 -19
- package/dist/linear-BguQgdYO.cjs +1 -0
- package/dist/mermaid.core-B7U3vlPn.js +15269 -0
- package/dist/mermaid.core-Bi8BVJjR.cjs +249 -0
- package/dist/{min-DiGdXYOi.js → min-DxTpsh5w.js} +2 -2
- package/dist/min-IWR7y697.cjs +1 -0
- package/dist/{mindmap-definition-VGOIOE7T-CmSUhHv6.cjs → mindmap-definition-VGOIOE7T-Bo_AaB3S.cjs} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-CnRmuPob.js → mindmap-definition-VGOIOE7T-y7MJRkKb.js} +3 -3
- package/dist/pieDiagram-ADFJNKIX-B3MwEiQQ.cjs +30 -0
- package/dist/{pieDiagram-ADFJNKIX-Bt102zKr.js → pieDiagram-ADFJNKIX-Dat2qDxW.js} +4 -4
- package/dist/preview.cjs +1 -0
- package/dist/preview.css +2 -0
- package/dist/preview.d.ts +6 -0
- package/dist/preview.js +6 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BehctfoW.js → quadrantDiagram-AYHSOK5B-BPI6p5FS.js} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-YmxHO2cX.cjs → quadrantDiagram-AYHSOK5B-DJPxR-7E.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-CMgTZmHy.js → requirementDiagram-UZGBJVZJ-BjJSqttW.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-c7BYrB-d.cjs → requirementDiagram-UZGBJVZJ-CmIwuHrt.cjs} +1 -1
- package/dist/sankeyDiagram-TZEHDZUN-CLroAHms.cjs +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-Db4r9es3.js → sankeyDiagram-TZEHDZUN-jMmEhl5n.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-DZsgc4S6.cjs → sequenceDiagram-WL72ISMW-BVZMWdMT.cjs} +9 -9
- package/dist/{sequenceDiagram-WL72ISMW-BqwMBgFC.js → sequenceDiagram-WL72ISMW-CqGWWpuM.js} +3 -3
- package/dist/stateDiagram-FKZM4ZOC-DYHXgEjX.cjs +1 -0
- package/dist/{stateDiagram-FKZM4ZOC-BpzsWdw_.js → stateDiagram-FKZM4ZOC-h1ovMUWJ.js} +4 -4
- package/dist/stateDiagram-v2-4FDKWEC3-Di23ehqW.cjs +1 -0
- package/dist/{stateDiagram-v2-4FDKWEC3-m99Hol5r.js → stateDiagram-v2-4FDKWEC3-GGpuzcKb.js} +2 -2
- package/dist/style.css +3 -1
- package/dist/{timeline-definition-IT6M3QCI-DXmNZlSf.js → timeline-definition-IT6M3QCI-DC_axTKs.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-CH-CMvXQ.cjs → timeline-definition-IT6M3QCI-DYx-RdCk.cjs} +13 -13
- package/dist/{mermaid-parser.core-BxQ0g4lG.js → treemap-KMMF4GRG-B-9lqUoG.js} +1421 -1406
- package/dist/{mermaid-parser.core-DjlS6xPn.cjs → treemap-KMMF4GRG-EXqF5Yz1.cjs} +26 -26
- package/dist/{xychartDiagram-PRI3JC2R-D_IHQfqs.cjs → xychartDiagram-PRI3JC2R-CedpkbBs.cjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-w5ZlLVRH.js → xychartDiagram-PRI3JC2R-gFwsBSHN.js} +2 -2
- package/package.json +46 -13
- package/dist/_baseUniq-foHbCj6X.cjs +0 -1
- package/dist/arc-7MT5KXIA.cjs +0 -1
- package/dist/architecture-U656AL7Q-BVnhKnm5.js +0 -5
- package/dist/architecture-U656AL7Q-BYqGU00Q.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-DKNGocPu.cjs +0 -36
- package/dist/channel-D91n4y1R.cjs +0 -1
- package/dist/chunk-4BX2VUAB-DJhfQlQ5.cjs +0 -1
- package/dist/chunk-55IACEB6-NzT3iwni.cjs +0 -1
- package/dist/chunk-QN33PNHL-CHBhUQ6H.cjs +0 -1
- package/dist/chunk-QZHKN3VN-le2xl2H3.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DcOjcK3-.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-xp2npAPn.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-xp2npAPn.cjs +0 -1
- package/dist/clone-CxqiwW9v.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-I9Cp1dWG.cjs +0 -1
- package/dist/dagre-6UL2VRFP-CUII8dcg.cjs +0 -4
- package/dist/diagram-PSM6KHXK-CzMqstzY.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BW2hWt-X.cjs +0 -43
- package/dist/diagram-S2PKOQOG-ylO3X_18.cjs +0 -24
- package/dist/ganttDiagram-JELNMOA3-BfMtc9I-.cjs +0 -267
- package/dist/gitGraph-F6HP7TQM-DYwFDMxP.js +0 -5
- package/dist/gitGraph-F6HP7TQM-mroySgpI.cjs +0 -1
- package/dist/gitGraphDiagram-NY62KEGX-D5AOFAGD.cjs +0 -65
- package/dist/graph-BWw50i39.cjs +0 -1
- package/dist/info-NVLQJR56-2rqVmyp1.js +0 -5
- package/dist/info-NVLQJR56-Y14aSIJi.cjs +0 -1
- package/dist/infoDiagram-WHAUD3N6-Zr9a_fG-.cjs +0 -2
- package/dist/layout-BrNbgLq_.cjs +0 -1
- package/dist/linear-CjKu-AoJ.cjs +0 -1
- package/dist/min-BSj73R3Z.cjs +0 -1
- package/dist/packet-BFZMPI3H-QkJB7y-Q.js +0 -5
- package/dist/packet-BFZMPI3H-k-rne8Iw.cjs +0 -1
- package/dist/pie-7BOR55EZ-CHjUaKH7.js +0 -5
- package/dist/pie-7BOR55EZ-DpO85ZQm.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-CgKWBbfw.cjs +0 -30
- package/dist/radar-NHE76QYJ-Cbghh3S_.js +0 -5
- package/dist/radar-NHE76QYJ-KAIDvvnp.cjs +0 -1
- package/dist/sankeyDiagram-TZEHDZUN-_OuTis5y.cjs +0 -10
- package/dist/stateDiagram-FKZM4ZOC-B5QCgwwJ.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-BArIsfvp.cjs +0 -1
- package/dist/treemap-KMMF4GRG-BwJLjelF.js +0 -5
- package/dist/treemap-KMMF4GRG-C5BqVz2b.cjs +0 -1
package/dist/editor.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { j as t } from "./CodeBlock-BdSjKnRY.js";
|
|
2
|
+
import { useState as y, useEffect as m } from "react";
|
|
3
|
+
import { M as w } from "./MarkdownPreview-CcTDfsgR.js";
|
|
4
|
+
const N = "_root_1izxe_1", P = "_tabs_1izxe_8", S = "_tabButton_1izxe_16", j = "_tabButtonActive_1izxe_41", z = "_tabPanel_1izxe_47", f = "_sideBySide_1izxe_52", $ = "_sideBySideWithPreview_1izxe_57", h = "_sideBySideNoPreview_1izxe_61", k = "_textarea_1izxe_65", A = "_previewPane_1izxe_87", e = {
|
|
5
|
+
root: N,
|
|
6
|
+
tabs: P,
|
|
7
|
+
tabButton: S,
|
|
8
|
+
tabButtonActive: j,
|
|
9
|
+
tabPanel: z,
|
|
10
|
+
sideBySide: f,
|
|
11
|
+
sideBySideWithPreview: $,
|
|
12
|
+
sideBySideNoPreview: h,
|
|
13
|
+
textarea: k,
|
|
14
|
+
previewPane: A
|
|
15
|
+
};
|
|
16
|
+
function W({
|
|
17
|
+
value: r,
|
|
18
|
+
onChange: v,
|
|
19
|
+
mode: _ = "tabbed",
|
|
20
|
+
showPreview: a = !0,
|
|
21
|
+
id: d,
|
|
22
|
+
placeholder: x,
|
|
23
|
+
disabled: u,
|
|
24
|
+
rows: B,
|
|
25
|
+
className: n,
|
|
26
|
+
theme: s = "system"
|
|
27
|
+
}) {
|
|
28
|
+
const [i, o] = y("editor");
|
|
29
|
+
m(() => {
|
|
30
|
+
!a && i === "preview" && o("editor");
|
|
31
|
+
}, [i, a]);
|
|
32
|
+
const c = /* @__PURE__ */ t.jsx(
|
|
33
|
+
"textarea",
|
|
34
|
+
{
|
|
35
|
+
id: d,
|
|
36
|
+
className: e.textarea,
|
|
37
|
+
value: r,
|
|
38
|
+
onChange: (p) => v(p.target.value),
|
|
39
|
+
placeholder: x,
|
|
40
|
+
disabled: u,
|
|
41
|
+
rows: B,
|
|
42
|
+
"aria-label": d ? void 0 : "Markdown editor"
|
|
43
|
+
}
|
|
44
|
+
), l = a ? /* @__PURE__ */ t.jsx("div", { className: e.previewPane, children: /* @__PURE__ */ t.jsx(w, { content: r, theme: s }) }) : null, b = n ? `${e.root} ${n}` : e.root;
|
|
45
|
+
return _ === "side-by-side" ? /* @__PURE__ */ t.jsx("div", { className: b, "data-theme": s === "system" ? void 0 : s, children: /* @__PURE__ */ t.jsxs(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: `${e.sideBySide} ${a ? e.sideBySideWithPreview : e.sideBySideNoPreview}`,
|
|
49
|
+
children: [
|
|
50
|
+
c,
|
|
51
|
+
l
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
) }) : /* @__PURE__ */ t.jsxs("div", { className: b, "data-theme": s === "system" ? void 0 : s, children: [
|
|
55
|
+
a ? /* @__PURE__ */ t.jsxs("div", { className: e.tabs, role: "tablist", "aria-label": "Markdown editor tabs", children: [
|
|
56
|
+
/* @__PURE__ */ t.jsx(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
type: "button",
|
|
60
|
+
className: `${e.tabButton} ${i === "editor" ? e.tabButtonActive : ""}`,
|
|
61
|
+
onClick: () => o("editor"),
|
|
62
|
+
"aria-pressed": i === "editor",
|
|
63
|
+
children: "Editor"
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ t.jsx(
|
|
67
|
+
"button",
|
|
68
|
+
{
|
|
69
|
+
type: "button",
|
|
70
|
+
className: `${e.tabButton} ${i === "preview" ? e.tabButtonActive : ""}`,
|
|
71
|
+
onClick: () => o("preview"),
|
|
72
|
+
"aria-pressed": i === "preview",
|
|
73
|
+
children: "Preview"
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] }) : null,
|
|
77
|
+
/* @__PURE__ */ t.jsx("div", { className: e.tabPanel, children: a && i === "preview" ? l : c })
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
W as MarkdownEditor,
|
|
82
|
+
W as default
|
|
83
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-DZnx2f_C.cjs"),vt=require("./chunk-QN33PNHL-C1YRBk0j.cjs"),a=require("./mermaid.core-Bi8BVJjR.cjs"),Dt=require("./channel-MPm5yYgZ.cjs");var ht=(function(){var s=a.__name(function(R,r,c,l){for(c=c||{},l=R.length;l--;c[R[l]]=r);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],o=[1,10],d=[1,11],h=[1,12],u=[1,13],f=[1,20],y=[1,21],k=[1,22],w=[1,23],K=[1,24],S=[1,19],$=[1,25],Z=[1,26],T=[1,18],L=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],ut=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],N=[1,43],V=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],P=[1,62],Y=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],_t=[1,81],pt=[1,80],ft=[1,78],yt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],q=[1,87],z=[19,56],mt=[1,98],bt=[1,97],nt=[19,56,58,60],rt={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:a.__name(function(r,c,l,n,_,t,G){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ut,[2,54]),s(ut,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:N},{16:44,40:O,41:N},{16:45,40:O,41:N},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:N},{18:48,19:[1,49],51:50,52:51,56:V},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(M,[2,69]),s(M,[2,70]),s(M,[2,71]),s(M,[2,72]),s(M,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:P,49:Y},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:N,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:P,49:Y},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:L,64:tt,65:et,66:st,67:it}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:V},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:tt,65:et,66:st,67:it},s(dt,[2,74]),s(dt,[2,75]),{6:_t,10:pt,39:77,42:ft,47:yt},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:B,41:F,48:P,49:Y}),s(x,[2,45]),s(x,[2,50]),s(x,[2,51]),s(x,[2,52]),s(x,[2,53]),s(i,[2,41],{42:A}),{6:_t,10:pt,39:85,42:ft,47:yt},{14:86,40:j,50:W,70:q},{16:90,40:O,41:N},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:V},s(i,[2,12]),{19:[2,57]},s(z,[2,58],{54:94,55:95,57:96,59:mt,60:bt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:B,41:F,45:101,46:60,48:P,49:Y},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(x,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(z,[2,59],{55:106,58:[1,107],60:bt}),s(z,[2,60]),s(nt,[2,64]),s(z,[2,67]),s(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:V},{16:110,40:O,41:N},s(gt,[2,44],{46:84,13:B,41:F,48:P,49:Y}),{14:111,40:j,50:W,70:q},{16:112,40:O,41:N},{14:113,40:j,50:W,70:q},s(i,[2,13]),s(z,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:A}),s(i,[2,11]),{13:[1,117],42:A},s(i,[2,10]),s(nt,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:V},{14:120,40:j,50:W,70:q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:a.__name(function(r,c){if(c.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=c,l}},"parseError"),parse:a.__name(function(r){var c=this,l=[0],n=[],_=[null],t=[],G=this.table,e="",X=0,kt=0,At=2,Et=1,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),C={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(C.yy[at]=this.yy[at]);p.setInput(r,C.yy),C.yy.lexer=p,C.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var ct=p.yylloc;t.push(ct);var Ct=p.options&&p.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function It(m){l.length=l.length-2*m,_.length=_.length-m,t.length=t.length-m}a.__name(It,"popStack");function St(){var m;return m=n.pop()||p.lex()||Et,typeof m!="number"&&(m instanceof Array&&(n=m,m=n.pop()),m=c.symbols_[m]||m),m}a.__name(St,"lex");for(var g,I,b,lt,v={},H,E,Tt,J;;){if(I=l[l.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=St()),b=G[I]&&G[I][g]),typeof b>"u"||!b.length||!b[0]){var ot="";J=[];for(H in G[I])this.terminals_[H]&&H>At&&J.push("'"+this.terminals_[H]+"'");p.showPosition?ot="Parse error on line "+(X+1)+`:
|
|
2
2
|
`+p.showPosition()+`
|
|
3
3
|
Expecting `+J.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ot="Parse error on line "+(X+1)+": Unexpected "+(g==Et?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ot,{text:p.match,token:this.terminals_[g]||g,line:p.yylineno,loc:ct,expected:J})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+g);switch(b[0]){case 1:l.push(g),_.push(p.yytext),t.push(p.yylloc),l.push(b[1]),g=null,kt=p.yyleng,e=p.yytext,X=p.yylineno,ct=p.yylloc;break;case 2:if(E=this.productions_[b[1]][1],v.$=_[_.length-E],v._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(v,[e,kt,X,C.yy,b[1],_,t].concat(Rt)),typeof lt<"u")return lt;E&&(l=l.slice(0,-1*E*2),_=_.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[b[1]][0]),_.push(v.$),t.push(v._$),Tt=G[l[l.length-2]][l[l.length-1]],l.push(Tt);break;case 3:return!0}}return!0},"parse")},Nt=(function(){var R={EOF:1,parseError:a.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:a.__name(function(r,c){return this.yy=c||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var c=r.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a.__name(function(r){var c=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var r=this.pastInput(),c=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as Dt } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as wt } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./
|
|
4
|
-
import { c as Qt } from "./channel-
|
|
1
|
+
import { g as Dt } from "./chunk-55IACEB6-CzZUDZ70.js";
|
|
2
|
+
import { s as wt } from "./chunk-QN33PNHL-B6FGlZxV.js";
|
|
3
|
+
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./mermaid.core-B7U3vlPn.js";
|
|
4
|
+
import { c as Qt } from "./channel-BWUNfmCm.js";
|
|
5
5
|
var dt = (function() {
|
|
6
6
|
var s = /* @__PURE__ */ u(function(R, n, a, c) {
|
|
7
7
|
for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ut=require("./chunk-FMBD7UC4-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ut=require("./chunk-FMBD7UC4-DekHPa2I.cjs"),l=require("./mermaid.core-Bi8BVJjR.cjs"),Wt=require("./chunk-55IACEB6-DZnx2f_C.cjs"),jt=require("./chunk-QN33PNHL-C1YRBk0j.cjs"),zt=require("./channel-MPm5yYgZ.cjs");var qt="flowchart-",Ie,Kt=(Ie=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,n,a,c,b,h={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let m;A.includes(`
|
|
2
2
|
`)?m=A+`
|
|
3
3
|
`:m=`{
|
|
4
4
|
`+A+`
|
|
5
|
-
}`,u=l.load(m,{schema:l.JSON_SCHEMA})}const k=this.edges.find(m=>m.id===i);if(k){const m=u;m?.animate!==void 0&&(k.animate=m.animate),m?.animation!==void 0&&(k.animation=m.animation),m?.curve!==void 0&&(k.interpolate=m.curve);return}let
|
|
5
|
+
}`,u=l.load(m,{schema:l.JSON_SCHEMA})}const k=this.edges.find(m=>m.id===i);if(k){const m=u;m?.animate!==void 0&&(k.animate=m.animate),m?.animation!==void 0&&(k.animation=m.animation),m?.curve!==void 0&&(k.interpolate=m.curve);return}let x,g=this.vertices.get(i);if(g===void 0&&(g={id:i,labelType:"text",domId:qt+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,g)),this.vertexCounter++,r!==void 0?(this.config=l.getConfig2(),x=this.sanitizeText(r.text.trim()),g.labelType=r.type,x.startsWith('"')&&x.endsWith('"')&&(x=x.substring(1,x.length-1)),g.text=x):g.text===void 0&&(g.text=i),n!==void 0&&(g.type=n),a?.forEach(m=>{g.styles.push(m)}),c?.forEach(m=>{g.classes.push(m)}),b!==void 0&&(g.dir=b),g.props===void 0?g.props=h:h!==void 0&&Object.assign(g.props,h),u!==void 0){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes("_"))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!l.isValidShape(u.shape))throw new Error(`No such shape: ${u.shape}.`);g.type=u?.shape}u?.label&&(g.text=u?.label),u?.icon&&(g.icon=u?.icon,!u.label?.trim()&&g.text===i&&(g.text="")),u?.form&&(g.form=u?.form),u?.pos&&(g.pos=u?.pos),u?.img&&(g.img=u?.img,!u.label?.trim()&&g.text===i&&(g.text="")),u?.constraint&&(g.constraint=u.constraint),u.w&&(g.assetWidth=Number(u.w)),u.h&&(g.assetHeight=Number(u.h))}}addSingleLink(i,r,n,a){const h={start:i,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};l.log.info("abc78 Got edge...",h);const A=n.text;if(A!==void 0&&(h.text=this.sanitizeText(A.text.trim()),h.text.startsWith('"')&&h.text.endsWith('"')&&(h.text=h.text.substring(1,h.text.length-1)),h.labelType=A.type),n!==void 0&&(h.type=n.type,h.stroke=n.stroke,h.length=n.length>10?10:n.length),a&&!this.edges.some(u=>u.id===a))h.id=a,h.isUserDefinedId=!0;else{const u=this.edges.filter(k=>k.start===h.start&&k.end===h.end);u.length===0?h.id=l.getEdgeId(h.start,h.end,{counter:0,prefix:"L"}):h.id=l.getEdgeId(h.start,h.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))l.log.info("Pushing edge..."),this.edges.push(h);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
6
6
|
|
|
7
7
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
8
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
-
You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,r,n){const a=this.isLinkData(n)?n.id.replace("@",""):void 0;l.log.info("addLink",i,r,a);for(const c of i)for(const b of r){const h=c===i[i.length-1],A=b===r[0];h&&A?this.addSingleLink(c,b,n,a):this.addSingleLink(c,b,n,void 0)}}updateLinkInterpolate(i,r){i.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(i,r){i.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(i,r){const n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(a=>{let c=this.classes.get(a);c===void 0&&(c={id:a,styles:[],textStyles:[]},this.classes.set(a,c)),n?.forEach(b=>{if(/color/.exec(b)){const h=b.replace("fill","bgFill");c.textStyles.push(h)}c.styles.push(b)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,r){for(const n of i.split(",")){const a=this.vertices.get(n);a&&a.classes.push(r);const c=this.edges.find(h=>h.id===n);c&&c.classes.push(r);const b=this.subGraphLookup.get(n);b&&b.classes.push(r)}}setTooltip(i,r){if(r!==void 0){r=this.sanitizeText(r);for(const n of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(i,r,n){const a=this.lookUpDomId(i);if(l.getConfig2().securityLevel!=="loose"||r===void 0)return;let c=[];if(typeof n=="string"){c=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<c.length;h++){let A=c[h].trim();A.startsWith('"')&&A.endsWith('"')&&(A=A.substr(1,A.length-2)),c[h]=A}}c.length===0&&c.push(i);const b=this.vertices.get(i);b&&(b.haveCallback=!0,this.funs.push(()=>{const h=document.querySelector(`[id="${a}"]`);h!==null&&h.addEventListener("click",()=>{l.utils_default.runFunc(r,...c)},!1)}))}setLink(i,r,n){i.split(",").forEach(a=>{const c=this.vertices.get(a);c!==void 0&&(c.link=l.utils_default.formatUrl(r,this.config),c.linkTarget=n)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,r,n){i.split(",").forEach(a=>{this.setClickFun(a,r,n)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(r=>{r(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){let r=l.select(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=l.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),l.select(i).select("svg").selectAll("g.node").on("mouseover",c=>{const b=l.select(c.currentTarget);if(b.attr("title")===null)return;const A=c.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(b.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"<br/>")),b.classed("hover",!0)}).on("mouseout",c=>{r.transition().duration(500).style("opacity",0),l.select(c.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=l.getConfig2(),l.clear()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,r,n){let a=i.text.trim(),c=n.text;i===n&&/\s/.exec(n.text)&&(a=void 0);const h=l.__name(g=>{const m={boolean:{},number:{},string:{}},D=[];let x;return{nodeList:g.filter(function(W){const J=typeof W;return W.stmt&&W.stmt==="dir"?(x=W.value,!1):W.trim()===""?!1:J in m?m[J].hasOwnProperty(W)?!1:m[J][W]=!0:D.includes(W)?!1:D.push(W)}),dir:x}},"uniq")(r.flat()),A=h.nodeList;let u=h.dir;const k=l.getConfig2().flowchart??{};if(u=u??(k.inheritDir?this.getDirection()??l.getConfig2().direction??void 0:void 0),this.version==="gen-1")for(let g=0;g<A.length;g++)A[g]=this.lookUpDomId(A[g]);a=a??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;const T={id:a,nodes:A,title:c.trim(),classes:[],dir:u,labelType:n.type};return l.log.info("Adding",T.id,T.nodes,T.dir),T.nodes=this.makeUniq(T,this.subGraphs).nodes,this.subGraphs.push(T),this.subGraphLookup.set(a,T),a}getPosForId(i){for(const[r,n]of this.subGraphs.entries())if(n.id===i)return r;return-1}indexNodes2(i,r){const n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===i)return{result:!0,count:0};let a=0,c=1;for(;a<n.length;){const b=this.getPosForId(n[a]);if(b>=0){const h=this.indexNodes2(i,b);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}a=a+1}return{result:!1,count:c}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let r=i.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let a="normal";return r.includes("=")&&(a="thick"),r.includes(".")&&(a="dotted"),{type:n,stroke:a}}countChar(i,r){const n=r.length;let a=0;for(let c=0;c<n;++c)r[c]===i&&++a;return a}destructEndLink(i){const r=i.trim();let n=r.slice(0,-1),a="arrow_open";switch(r.slice(-1)){case"x":a="arrow_cross",r.startsWith("x")&&(a="double_"+a,n=n.slice(1));break;case">":a="arrow_point",r.startsWith("<")&&(a="double_"+a,n=n.slice(1));break;case"o":a="arrow_circle",r.startsWith("o")&&(a="double_"+a,n=n.slice(1));break}let c="normal",b=n.length-1;n.startsWith("=")&&(c="thick"),n.startsWith("~")&&(c="invisible");const h=this.countChar(".",n);return h&&(c="dotted",b=h),{type:a,stroke:c,length:b}}destructLink(i,r){const n=this.destructEndLink(i);let a;if(r){if(a=this.destructStartLink(r),a.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=n.type;else{if(a.type!==n.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=n.length,a}return n}exists(i,r){for(const n of i)if(n.nodes.includes(r))return!0;return!1}makeUniq(i,r){const n=[];return i.nodes.forEach((a,c)=>{this.exists(r,a)||n.push(i.nodes[c])}),{nodes:n}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,r){return i.find(n=>n.id===r)}destructEdgeType(i){let r="none",n="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":n=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=i.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(i,r,n,a,c,b){const h=n.get(i.id),A=a.get(i.id)??!1,u=this.findNode(r,i.id);if(u)u.cssStyles=i.styles,u.cssCompiledStyles=this.getCompiledStyles(i.classes),u.cssClasses=i.classes.join(" ");else{const k={id:i.id,label:i.text,labelStyle:"",parentId:h,padding:c.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:b,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};A?r.push({...k,isGroup:!0,shape:"rect"}):r.push({...k,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let r=[];for(const n of i){const a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(c=>c.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(c=>c.trim()))}return r}getData(){const i=l.getConfig2(),r=[],n=[],a=this.getSubGraphs(),c=new Map,b=new Map;for(let u=a.length-1;u>=0;u--){const k=a[u];k.nodes.length>0&&b.set(k.id,!0);for(const T of k.nodes)c.set(T,k.id)}for(let u=a.length-1;u>=0;u--){const k=a[u];r.push({id:k.id,label:k.title,labelStyle:"",parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:i.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,r,c,b,i,i.look||"classic")});const A=this.getEdges();return A.forEach((u,k)=>{const{arrowTypeStart:T,arrowTypeEnd:g}=this.destructEdgeType(u.type),m=[...A.defaultStyle??[]];u.style&&m.push(...u.style);const D={id:l.getEdgeId(u.start,u.end,{counter:k,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":T,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":g,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:m,style:m,pattern:u.stroke,look:i.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve};n.push(D)}),{nodes:r,edges:n,other:{},config:i}}defaultConfig(){return l.defaultConfig2.flowchart}},l.__name(Ie,"FlowDB"),Ie),Yt=l.__name(function(s,i){return i.db.getClasses()},"getClasses"),Ht=l.__name(async function(s,i,r,n){l.log.info("REF0:"),l.log.info("Drawing state diagram (v2)",i);const{securityLevel:a,flowchart:c,layout:b}=l.getConfig2();let h;a==="sandbox"&&(h=l.select("#i"+i));const A=a==="sandbox"?h.nodes()[0].contentDocument:document;l.log.debug("Before getData: ");const u=n.db.getData();l.log.debug("Data: ",u);const k=Wt.getDiagramElement(i,a),T=n.db.getDirection();u.type=n.type,u.layoutAlgorithm=l.getRegisteredLayoutAlgorithm(b),u.layoutAlgorithm==="dagre"&&b==="elk"&&l.log.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),u.direction=T,u.nodeSpacing=c?.nodeSpacing||50,u.rankSpacing=c?.rankSpacing||50,u.markers=["point","circle","cross"],u.diagramId=i,l.log.debug("REF1:",u),await l.render(u,k);const g=u.config.flowchart?.diagramPadding??8;l.utils_default.insertTitle(k,"flowchartTitleText",c?.titleTopMargin||0,n.db.getDiagramTitle()),jt.setupViewPortForSVG(k,g,"flowchart",c?.useMaxWidth||!1);for(const m of u.nodes){const D=l.select(`#${i} [id="${m.id}"]`);if(!D||!m.link)continue;const x=A.createElementNS("http://www.w3.org/2000/svg","a");x.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),x.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?x.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&x.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);const he=D.insert(function(){return x},":first-child"),W=D.select(".label-container");W&&he.append(function(){return W.node()});const J=D.select(".label");J&&he.append(function(){return J.node()})}},"draw"),Xt={getClasses:Yt,draw:Ht},$e=(function(){var s=l.__name(function(fe,d,p,f){for(p=p||{},f=fe.length;f--;p[fe[f]]=d);return p},"o"),i=[1,4],r=[1,3],n=[1,5],a=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],c=[2,2],b=[1,13],h=[1,14],A=[1,15],u=[1,16],k=[1,23],T=[1,25],g=[1,26],m=[1,27],D=[1,49],x=[1,48],he=[1,29],W=[1,30],J=[1,31],Ne=[1,32],Ge=[1,33],V=[1,44],w=[1,46],I=[1,42],R=[1,47],N=[1,43],G=[1,50],P=[1,45],O=[1,51],M=[1,52],Pe=[1,34],Oe=[1,35],Me=[1,36],Ue=[1,37],de=[1,57],y=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],$=[1,61],ee=[1,60],te=[1,62],ke=[8,9,11,75,77,78],et=[1,78],me=[1,91],_e=[1,96],Ce=[1,95],Ee=[1,92],Se=[1,88],De=[1,94],xe=[1,90],Te=[1,97],ye=[1,93],Fe=[1,98],Be=[1,89],ge=[8,9,10,11,40,75,77,78],j=[8,9,10,11,40,46,75,77,78],Y=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],tt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ve=[44,60,89,102,105,106,109,111,114,115,116],st=[1,121],it=[1,122],We=[1,124],je=[1,123],rt=[44,60,62,74,89,102,105,106,109,111,114,115,116],nt=[1,133],at=[1,147],ut=[1,148],ot=[1,149],lt=[1,150],ct=[1,135],ht=[1,137],dt=[1,141],pt=[1,142],ft=[1,143],gt=[1,144],bt=[1,145],At=[1,146],kt=[1,151],mt=[1,152],_t=[1,131],Ct=[1,132],Et=[1,139],St=[1,134],Dt=[1,138],xt=[1,136],Ye=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],Tt=[1,154],yt=[1,156],v=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],_=[1,176],z=[1,172],q=[1,173],C=[1,177],E=[1,174],S=[1,175],Le=[77,116,119],F=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ft=[10,106],pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],se=[1,247],ie=[1,245],re=[1,249],ne=[1,243],ae=[1,244],ue=[1,246],oe=[1,248],le=[1,250],Ve=[1,268],Bt=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],He={trace:l.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:l.__name(function(d,p,f,o,B,e,Re){var t=e.length-1;switch(B){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 183:this.$=e[t];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(e[t-1]),this.$=e[t-1];break;case 27:this.$=e[t-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4]);break;case 34:this.$=o.addSubGraph(e[t-3],e[t-1],e[t-3]);break;case 35:this.$=o.addSubGraph(void 0,e[t-1],void 0);break;case 37:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 43:this.$=e[t-1]+e[t];break;case 44:this.$=e[t];break;case 45:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 46:o.addLink(e[t-2].stmt,e[t],e[t-1]),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 47:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 48:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 49:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 50:this.$={stmt:e[t],nodes:e[t]};break;case 51:this.$=[e[t]];break;case 52:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4]),this.$=e[t-5].concat(e[t]);break;case 53:this.$=e[t-4].concat(e[t]);break;case 54:this.$=e[t];break;case 55:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 56:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square");break;case 57:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle");break;case 58:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle");break;case 59:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse");break;case 60:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium");break;case 61:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine");break;case 62:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]]));break;case 63:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder");break;case 64:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round");break;case 65:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond");break;case 66:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon");break;case 67:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd");break;case 68:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid");break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid");break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right");break;case 71:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left");break;case 72:this.$=e[t],o.addVertex(e[t]);break;case 73:e[t-1].text=e[t],this.$=e[t-1];break;case 74:case 75:e[t-2].text=e[t-1],this.$=e[t-2];break;case 76:this.$=e[t];break;case 77:var L=o.destructLink(e[t],e[t-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:e[t-1]};break;case 78:var L=o.destructLink(e[t],e[t-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:e[t-1],id:e[t-3]};break;case 79:this.$={text:e[t],type:"text"};break;case 80:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 81:this.$={text:e[t],type:"string"};break;case 82:this.$={text:e[t],type:"markdown"};break;case 83:var L=o.destructLink(e[t]);this.$={type:L.type,stroke:L.stroke,length:L.length};break;case 84:var L=o.destructLink(e[t]);this.$={type:L.type,stroke:L.stroke,length:L.length,id:e[t-1]};break;case 85:this.$=e[t-1];break;case 86:this.$={text:e[t],type:"text"};break;case 87:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 88:this.$={text:e[t],type:"string"};break;case 89:case 104:this.$={text:e[t],type:"markdown"};break;case 101:this.$={text:e[t],type:"text"};break;case 102:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 103:this.$={text:e[t],type:"text"};break;case 105:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 106:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 107:case 115:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 108:case 116:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 109:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 110:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 111:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 112:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 113:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 114:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 117:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 118:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 119:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 120:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 121:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 122:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 123:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 124:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 125:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 126:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 127:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 128:case 130:this.$=[e[t]];break;case 129:case 131:e[t-2].push(e[t]),this.$=e[t-2];break;case 133:this.$=e[t-1]+e[t];break;case 181:this.$=e[t];break;case 182:this.$=e[t-1]+""+e[t];break;case 184:this.$=e[t-1]+""+e[t];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:n},{1:[3]},s(a,c,{5:6}),{4:7,9:i,10:r,12:n},{4:8,9:i,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,33:24,34:T,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:x,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},s(a,[2,9]),s(a,[2,10]),s(a,[2,11]),{8:[1,54],9:[1,55],10:de,15:53,18:56},s(y,[2,3]),s(y,[2,4]),s(y,[2,5]),s(y,[2,6]),s(y,[2,7]),s(y,[2,8]),{8:$,9:ee,11:te,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:$,9:ee,11:te,21:67},{8:$,9:ee,11:te,21:68},{8:$,9:ee,11:te,21:69},{8:$,9:ee,11:te,21:70},{8:$,9:ee,11:te,21:71},{8:$,9:ee,10:[1,72],11:te,21:73},s(y,[2,36]),{35:[1,74]},{37:[1,75]},s(y,[2,39]),s(ke,[2,50],{18:76,39:77,10:de,40:et}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:me,44:_e,60:Ce,80:[1,86],89:Ee,95:[1,83],97:[1,84],101:85,105:Se,106:De,109:xe,111:Te,114:ye,115:Fe,116:Be,120:87},s(y,[2,185]),s(y,[2,186]),s(y,[2,187]),s(y,[2,188]),s(ge,[2,51]),s(ge,[2,54],{46:[1,99]}),s(j,[2,72],{113:112,29:[1,100],44:D,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:x,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:V,102:w,105:I,106:R,109:N,111:G,114:P,115:O,116:M}),s(Y,[2,181]),s(Y,[2,142]),s(Y,[2,143]),s(Y,[2,144]),s(Y,[2,145]),s(Y,[2,146]),s(Y,[2,147]),s(Y,[2,148]),s(Y,[2,149]),s(Y,[2,150]),s(Y,[2,151]),s(Y,[2,152]),s(a,[2,12]),s(a,[2,18]),s(a,[2,19]),{9:[1,113]},s(tt,[2,26],{18:114,10:de}),s(y,[2,27]),{42:115,43:38,44:D,45:39,47:40,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(y,[2,40]),s(y,[2,41]),s(y,[2,42]),s(ve,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:st,81:it,116:We,119:je},{75:[1,125],77:[1,126]},s(rt,[2,83]),s(y,[2,28]),s(y,[2,29]),s(y,[2,30]),s(y,[2,31]),s(y,[2,32]),{10:nt,12:at,14:ut,27:ot,28:127,32:lt,44:ct,60:ht,75:dt,80:[1,129],81:[1,130],83:140,84:pt,85:ft,86:gt,87:bt,88:At,89:kt,90:mt,91:128,105:_t,109:Ct,111:Et,114:St,115:Dt,116:xt},s(Ye,c,{5:153}),s(y,[2,37]),s(y,[2,38]),s(ke,[2,48],{44:Tt}),s(ke,[2,49],{18:155,10:de,40:yt}),s(ge,[2,44]),{44:D,47:157,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{102:[1,158],103:159,105:[1,160]},{44:D,47:161,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{44:D,47:162,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(v,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},s(v,[2,115],{120:167,10:[1,166],14:me,44:_e,60:Ce,89:Ee,105:Se,106:De,109:xe,111:Te,114:ye,115:Fe,116:Be}),s(v,[2,117],{10:[1,168]}),s(H,[2,183]),s(H,[2,170]),s(H,[2,171]),s(H,[2,172]),s(H,[2,173]),s(H,[2,174]),s(H,[2,175]),s(H,[2,176]),s(H,[2,177]),s(H,[2,178]),s(H,[2,179]),s(H,[2,180]),{44:D,47:169,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{30:170,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:178,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:180,50:[1,179],67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:181,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:182,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:183,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{109:[1,184]},{30:185,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:186,65:[1,187],67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:188,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:189,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:190,67:_,80:z,81:q,82:171,116:C,117:E,118:S},s(Y,[2,182]),s(a,[2,20]),s(tt,[2,25]),s(ke,[2,46],{39:191,18:192,10:de,40:et}),s(ve,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{77:[1,196],79:197,116:We,119:je},s(Le,[2,79]),s(Le,[2,81]),s(Le,[2,82]),s(Le,[2,168]),s(Le,[2,169]),{76:198,79:120,80:st,81:it,116:We,119:je},s(rt,[2,84]),{8:$,9:ee,10:nt,11:te,12:at,14:ut,21:200,27:ot,29:[1,199],32:lt,44:ct,60:ht,75:dt,83:140,84:pt,85:ft,86:gt,87:bt,88:At,89:kt,90:mt,91:201,105:_t,109:Ct,111:Et,114:St,115:Dt,116:xt},s(F,[2,101]),s(F,[2,103]),s(F,[2,104]),s(F,[2,157]),s(F,[2,158]),s(F,[2,159]),s(F,[2,160]),s(F,[2,161]),s(F,[2,162]),s(F,[2,163]),s(F,[2,164]),s(F,[2,165]),s(F,[2,166]),s(F,[2,167]),s(F,[2,90]),s(F,[2,91]),s(F,[2,92]),s(F,[2,93]),s(F,[2,94]),s(F,[2,95]),s(F,[2,96]),s(F,[2,97]),s(F,[2,98]),s(F,[2,99]),s(F,[2,100]),{6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,202],33:24,34:T,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:x,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},{10:de,18:203},{44:[1,204]},s(ge,[2,43]),{10:[1,205],44:D,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:112,114:P,115:O,116:M},{10:[1,206]},{10:[1,207],106:[1,208]},s(Ft,[2,128]),{10:[1,209],44:D,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:112,114:P,115:O,116:M},{10:[1,210],44:D,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:112,114:P,115:O,116:M},{80:[1,211]},s(v,[2,109],{10:[1,212]}),s(v,[2,111],{10:[1,213]}),{80:[1,214]},s(H,[2,184]),{80:[1,215],98:[1,216]},s(ge,[2,55],{113:112,44:D,60:x,89:V,102:w,105:I,106:R,109:N,111:G,114:P,115:O,116:M}),{31:[1,217],67:_,82:218,116:C,117:E,118:S},s(pe,[2,86]),s(pe,[2,88]),s(pe,[2,89]),s(pe,[2,153]),s(pe,[2,154]),s(pe,[2,155]),s(pe,[2,156]),{49:[1,219],67:_,82:218,116:C,117:E,118:S},{30:220,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{51:[1,221],67:_,82:218,116:C,117:E,118:S},{53:[1,222],67:_,82:218,116:C,117:E,118:S},{55:[1,223],67:_,82:218,116:C,117:E,118:S},{57:[1,224],67:_,82:218,116:C,117:E,118:S},{60:[1,225]},{64:[1,226],67:_,82:218,116:C,117:E,118:S},{66:[1,227],67:_,82:218,116:C,117:E,118:S},{30:228,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{31:[1,229],67:_,82:218,116:C,117:E,118:S},{67:_,69:[1,230],71:[1,231],82:218,116:C,117:E,118:S},{67:_,69:[1,233],71:[1,232],82:218,116:C,117:E,118:S},s(ke,[2,45],{18:155,10:de,40:yt}),s(ke,[2,47],{44:Tt}),s(ve,[2,75]),s(ve,[2,74]),{62:[1,234],67:_,82:218,116:C,117:E,118:S},s(ve,[2,77]),s(Le,[2,80]),{77:[1,235],79:197,116:We,119:je},{30:236,67:_,80:z,81:q,82:171,116:C,117:E,118:S},s(Ye,c,{5:237}),s(F,[2,102]),s(y,[2,35]),{43:238,44:D,45:39,47:40,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{10:de,18:239},{10:se,60:ie,84:re,92:240,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{10:se,60:ie,84:re,92:251,104:[1,252],105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{10:se,60:ie,84:re,92:253,104:[1,254],105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{105:[1,255]},{10:se,60:ie,84:re,92:256,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{44:D,47:257,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(v,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},s(v,[2,116]),s(v,[2,118],{10:[1,261]}),s(v,[2,119]),s(j,[2,56]),s(pe,[2,87]),s(j,[2,57]),{51:[1,262],67:_,82:218,116:C,117:E,118:S},s(j,[2,64]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),{109:[1,263]},s(j,[2,63]),s(j,[2,65]),{66:[1,264],67:_,82:218,116:C,117:E,118:S},s(j,[2,67]),s(j,[2,68]),s(j,[2,70]),s(j,[2,69]),s(j,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(ve,[2,78]),{31:[1,265],67:_,82:218,116:C,117:E,118:S},{6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,266],33:24,34:T,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:x,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},s(ge,[2,53]),{43:267,44:D,45:39,47:40,60:x,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(v,[2,121],{106:Ve}),s(Bt,[2,130],{108:269,10:se,60:ie,84:re,105:ne,109:ae,110:ue,111:oe,112:le}),s(Z,[2,132]),s(Z,[2,134]),s(Z,[2,135]),s(Z,[2,136]),s(Z,[2,137]),s(Z,[2,138]),s(Z,[2,139]),s(Z,[2,140]),s(Z,[2,141]),s(v,[2,122],{106:Ve}),{10:[1,270]},s(v,[2,123],{106:Ve}),{10:[1,271]},s(Ft,[2,129]),s(v,[2,105],{106:Ve}),s(v,[2,106],{113:112,44:D,60:x,89:V,102:w,105:I,106:R,109:N,111:G,114:P,115:O,116:M}),s(v,[2,110]),s(v,[2,112],{10:[1,272]}),s(v,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:$,9:ee,11:te,21:277},s(y,[2,34]),s(ge,[2,52]),{10:se,60:ie,84:re,105:ne,107:278,108:242,109:ae,110:ue,111:oe,112:le},s(Z,[2,133]),{14:me,44:_e,60:Ce,89:Ee,101:279,105:Se,106:De,109:xe,111:Te,114:ye,115:Fe,116:Be,120:87},{14:me,44:_e,60:Ce,89:Ee,101:280,105:Se,106:De,109:xe,111:Te,114:ye,115:Fe,116:Be,120:87},{98:[1,281]},s(v,[2,120]),s(j,[2,58]),{30:282,67:_,80:z,81:q,82:171,116:C,117:E,118:S},s(j,[2,66]),s(Ye,c,{5:283}),s(Bt,[2,131],{108:269,10:se,60:ie,84:re,105:ne,109:ae,110:ue,111:oe,112:le}),s(v,[2,126],{120:167,10:[1,284],14:me,44:_e,60:Ce,89:Ee,105:Se,106:De,109:xe,111:Te,114:ye,115:Fe,116:Be}),s(v,[2,127],{120:167,10:[1,285],14:me,44:_e,60:Ce,89:Ee,105:Se,106:De,109:xe,111:Te,114:ye,115:Fe,116:Be}),s(v,[2,114]),{31:[1,286],67:_,82:218,116:C,117:E,118:S},{6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,287],33:24,34:T,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:x,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},{10:se,60:ie,84:re,92:288,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{10:se,60:ie,84:re,92:289,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},s(j,[2,62]),s(y,[2,33]),s(v,[2,124],{106:Ve}),s(v,[2,125],{106:Ve})],defaultActions:{},parseError:l.__name(function(d,p){if(p.recoverable)this.trace(d);else{var f=new Error(d);throw f.hash=p,f}},"parseError"),parse:l.__name(function(d){var p=this,f=[0],o=[],B=[null],e=[],Re=this.table,t="",L=0,vt=0,Gt=2,Lt=1,Pt=e.slice.call(arguments,1),U=Object.create(this.lexer),be={yy:{}};for(var Xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xe)&&(be.yy[Xe]=this.yy[Xe]);U.setInput(d,be.yy),be.yy.lexer=U,be.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var Qe=U.yylloc;e.push(Qe);var Ot=U.options&&U.options.ranges;typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(X){f.length=f.length-2*X,B.length=B.length-X,e.length=e.length-X}l.__name(Mt,"popStack");function Vt(){var X;return X=o.pop()||U.lex()||Lt,typeof X!="number"&&(X instanceof Array&&(o=X,X=o.pop()),X=p.symbols_[X]||X),X}l.__name(Vt,"lex");for(var K,Ae,Q,Je,we={},qe,ce,wt,Ke;;){if(Ae=f[f.length-1],this.defaultActions[Ae]?Q=this.defaultActions[Ae]:((K===null||typeof K>"u")&&(K=Vt()),Q=Re[Ae]&&Re[Ae][K]),typeof Q>"u"||!Q.length||!Q[0]){var Ze="";Ke=[];for(qe in Re[Ae])this.terminals_[qe]&&qe>Gt&&Ke.push("'"+this.terminals_[qe]+"'");U.showPosition?Ze="Parse error on line "+(L+1)+`:
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,r,n){const a=this.isLinkData(n)?n.id.replace("@",""):void 0;l.log.info("addLink",i,r,a);for(const c of i)for(const b of r){const h=c===i[i.length-1],A=b===r[0];h&&A?this.addSingleLink(c,b,n,a):this.addSingleLink(c,b,n,void 0)}}updateLinkInterpolate(i,r){i.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(i,r){i.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(i,r){const n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(a=>{let c=this.classes.get(a);c===void 0&&(c={id:a,styles:[],textStyles:[]},this.classes.set(a,c)),n?.forEach(b=>{if(/color/.exec(b)){const h=b.replace("fill","bgFill");c.textStyles.push(h)}c.styles.push(b)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,r){for(const n of i.split(",")){const a=this.vertices.get(n);a&&a.classes.push(r);const c=this.edges.find(h=>h.id===n);c&&c.classes.push(r);const b=this.subGraphLookup.get(n);b&&b.classes.push(r)}}setTooltip(i,r){if(r!==void 0){r=this.sanitizeText(r);for(const n of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(i,r,n){const a=this.lookUpDomId(i);if(l.getConfig2().securityLevel!=="loose"||r===void 0)return;let c=[];if(typeof n=="string"){c=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<c.length;h++){let A=c[h].trim();A.startsWith('"')&&A.endsWith('"')&&(A=A.substr(1,A.length-2)),c[h]=A}}c.length===0&&c.push(i);const b=this.vertices.get(i);b&&(b.haveCallback=!0,this.funs.push(()=>{const h=document.querySelector(`[id="${a}"]`);h!==null&&h.addEventListener("click",()=>{l.utils_default.runFunc(r,...c)},!1)}))}setLink(i,r,n){i.split(",").forEach(a=>{const c=this.vertices.get(a);c!==void 0&&(c.link=l.utils_default.formatUrl(r,this.config),c.linkTarget=n)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,r,n){i.split(",").forEach(a=>{this.setClickFun(a,r,n)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(r=>{r(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){let r=l.select(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=l.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),l.select(i).select("svg").selectAll("g.node").on("mouseover",c=>{const b=l.select(c.currentTarget);if(b.attr("title")===null)return;const A=c.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(b.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"<br/>")),b.classed("hover",!0)}).on("mouseout",c=>{r.transition().duration(500).style("opacity",0),l.select(c.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=l.getConfig2(),l.clear()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,r,n){let a=i.text.trim(),c=n.text;i===n&&/\s/.exec(n.text)&&(a=void 0);const h=l.__name(g=>{const m={boolean:{},number:{},string:{}},D=[];let T;return{nodeList:g.filter(function(W){const J=typeof W;return W.stmt&&W.stmt==="dir"?(T=W.value,!1):W.trim()===""?!1:J in m?m[J].hasOwnProperty(W)?!1:m[J][W]=!0:D.includes(W)?!1:D.push(W)}),dir:T}},"uniq")(r.flat()),A=h.nodeList;let u=h.dir;const k=l.getConfig2().flowchart??{};if(u=u??(k.inheritDir?this.getDirection()??l.getConfig2().direction??void 0:void 0),this.version==="gen-1")for(let g=0;g<A.length;g++)A[g]=this.lookUpDomId(A[g]);a=a??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;const x={id:a,nodes:A,title:c.trim(),classes:[],dir:u,labelType:n.type};return l.log.info("Adding",x.id,x.nodes,x.dir),x.nodes=this.makeUniq(x,this.subGraphs).nodes,this.subGraphs.push(x),this.subGraphLookup.set(a,x),a}getPosForId(i){for(const[r,n]of this.subGraphs.entries())if(n.id===i)return r;return-1}indexNodes2(i,r){const n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===i)return{result:!0,count:0};let a=0,c=1;for(;a<n.length;){const b=this.getPosForId(n[a]);if(b>=0){const h=this.indexNodes2(i,b);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}a=a+1}return{result:!1,count:c}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let r=i.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let a="normal";return r.includes("=")&&(a="thick"),r.includes(".")&&(a="dotted"),{type:n,stroke:a}}countChar(i,r){const n=r.length;let a=0;for(let c=0;c<n;++c)r[c]===i&&++a;return a}destructEndLink(i){const r=i.trim();let n=r.slice(0,-1),a="arrow_open";switch(r.slice(-1)){case"x":a="arrow_cross",r.startsWith("x")&&(a="double_"+a,n=n.slice(1));break;case">":a="arrow_point",r.startsWith("<")&&(a="double_"+a,n=n.slice(1));break;case"o":a="arrow_circle",r.startsWith("o")&&(a="double_"+a,n=n.slice(1));break}let c="normal",b=n.length-1;n.startsWith("=")&&(c="thick"),n.startsWith("~")&&(c="invisible");const h=this.countChar(".",n);return h&&(c="dotted",b=h),{type:a,stroke:c,length:b}}destructLink(i,r){const n=this.destructEndLink(i);let a;if(r){if(a=this.destructStartLink(r),a.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=n.type;else{if(a.type!==n.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=n.length,a}return n}exists(i,r){for(const n of i)if(n.nodes.includes(r))return!0;return!1}makeUniq(i,r){const n=[];return i.nodes.forEach((a,c)=>{this.exists(r,a)||n.push(i.nodes[c])}),{nodes:n}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,r){return i.find(n=>n.id===r)}destructEdgeType(i){let r="none",n="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":n=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=i.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(i,r,n,a,c,b){const h=n.get(i.id),A=a.get(i.id)??!1,u=this.findNode(r,i.id);if(u)u.cssStyles=i.styles,u.cssCompiledStyles=this.getCompiledStyles(i.classes),u.cssClasses=i.classes.join(" ");else{const k={id:i.id,label:i.text,labelStyle:"",parentId:h,padding:c.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:b,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};A?r.push({...k,isGroup:!0,shape:"rect"}):r.push({...k,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let r=[];for(const n of i){const a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(c=>c.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(c=>c.trim()))}return r}getData(){const i=l.getConfig2(),r=[],n=[],a=this.getSubGraphs(),c=new Map,b=new Map;for(let u=a.length-1;u>=0;u--){const k=a[u];k.nodes.length>0&&b.set(k.id,!0);for(const x of k.nodes)c.set(x,k.id)}for(let u=a.length-1;u>=0;u--){const k=a[u];r.push({id:k.id,label:k.title,labelStyle:"",parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:i.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,r,c,b,i,i.look||"classic")});const A=this.getEdges();return A.forEach((u,k)=>{const{arrowTypeStart:x,arrowTypeEnd:g}=this.destructEdgeType(u.type),m=[...A.defaultStyle??[]];u.style&&m.push(...u.style);const D={id:l.getEdgeId(u.start,u.end,{counter:k,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":x,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":g,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:m,style:m,pattern:u.stroke,look:i.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve};n.push(D)}),{nodes:r,edges:n,other:{},config:i}}defaultConfig(){return l.defaultConfig2.flowchart}},l.__name(Ie,"FlowDB"),Ie),Yt=l.__name(function(s,i){return i.db.getClasses()},"getClasses"),Ht=l.__name(async function(s,i,r,n){l.log.info("REF0:"),l.log.info("Drawing state diagram (v2)",i);const{securityLevel:a,flowchart:c,layout:b}=l.getConfig2();let h;a==="sandbox"&&(h=l.select("#i"+i));const A=a==="sandbox"?h.nodes()[0].contentDocument:document;l.log.debug("Before getData: ");const u=n.db.getData();l.log.debug("Data: ",u);const k=Wt.getDiagramElement(i,a),x=n.db.getDirection();u.type=n.type,u.layoutAlgorithm=l.getRegisteredLayoutAlgorithm(b),u.layoutAlgorithm==="dagre"&&b==="elk"&&l.log.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),u.direction=x,u.nodeSpacing=c?.nodeSpacing||50,u.rankSpacing=c?.rankSpacing||50,u.markers=["point","circle","cross"],u.diagramId=i,l.log.debug("REF1:",u),await l.render(u,k);const g=u.config.flowchart?.diagramPadding??8;l.utils_default.insertTitle(k,"flowchartTitleText",c?.titleTopMargin||0,n.db.getDiagramTitle()),jt.setupViewPortForSVG(k,g,"flowchart",c?.useMaxWidth||!1);for(const m of u.nodes){const D=l.select(`#${i} [id="${m.id}"]`);if(!D||!m.link)continue;const T=A.createElementNS("http://www.w3.org/2000/svg","a");T.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),T.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?T.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&T.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);const he=D.insert(function(){return T},":first-child"),W=D.select(".label-container");W&&he.append(function(){return W.node()});const J=D.select(".label");J&&he.append(function(){return J.node()})}},"draw"),Xt={getClasses:Yt,draw:Ht},$e=(function(){var s=l.__name(function(fe,d,p,f){for(p=p||{},f=fe.length;f--;p[fe[f]]=d);return p},"o"),i=[1,4],r=[1,3],n=[1,5],a=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],c=[2,2],b=[1,13],h=[1,14],A=[1,15],u=[1,16],k=[1,23],x=[1,25],g=[1,26],m=[1,27],D=[1,49],T=[1,48],he=[1,29],W=[1,30],J=[1,31],Ne=[1,32],Ge=[1,33],V=[1,44],w=[1,46],I=[1,42],R=[1,47],N=[1,43],G=[1,50],P=[1,45],O=[1,51],M=[1,52],Pe=[1,34],Oe=[1,35],Me=[1,36],Ue=[1,37],de=[1,57],y=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],$=[1,61],ee=[1,60],te=[1,62],ke=[8,9,11,75,77,78],et=[1,78],me=[1,91],_e=[1,96],Ce=[1,95],Ee=[1,92],Se=[1,88],De=[1,94],Te=[1,90],xe=[1,97],ye=[1,93],Fe=[1,98],Be=[1,89],ge=[8,9,10,11,40,75,77,78],j=[8,9,10,11,40,46,75,77,78],Y=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],tt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ve=[44,60,89,102,105,106,109,111,114,115,116],st=[1,121],it=[1,122],We=[1,124],je=[1,123],rt=[44,60,62,74,89,102,105,106,109,111,114,115,116],nt=[1,133],at=[1,147],ut=[1,148],ot=[1,149],lt=[1,150],ct=[1,135],ht=[1,137],dt=[1,141],pt=[1,142],ft=[1,143],gt=[1,144],bt=[1,145],At=[1,146],kt=[1,151],mt=[1,152],_t=[1,131],Ct=[1,132],Et=[1,139],St=[1,134],Dt=[1,138],Tt=[1,136],Ye=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],xt=[1,154],yt=[1,156],v=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],_=[1,176],z=[1,172],q=[1,173],C=[1,177],E=[1,174],S=[1,175],Le=[77,116,119],F=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ft=[10,106],pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],se=[1,247],ie=[1,245],re=[1,249],ne=[1,243],ae=[1,244],ue=[1,246],oe=[1,248],le=[1,250],Ve=[1,268],Bt=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],He={trace:l.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:l.__name(function(d,p,f,o,B,e,Re){var t=e.length-1;switch(B){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 183:this.$=e[t];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(e[t-1]),this.$=e[t-1];break;case 27:this.$=e[t-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4]);break;case 34:this.$=o.addSubGraph(e[t-3],e[t-1],e[t-3]);break;case 35:this.$=o.addSubGraph(void 0,e[t-1],void 0);break;case 37:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 43:this.$=e[t-1]+e[t];break;case 44:this.$=e[t];break;case 45:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 46:o.addLink(e[t-2].stmt,e[t],e[t-1]),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 47:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 48:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 49:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 50:this.$={stmt:e[t],nodes:e[t]};break;case 51:this.$=[e[t]];break;case 52:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4]),this.$=e[t-5].concat(e[t]);break;case 53:this.$=e[t-4].concat(e[t]);break;case 54:this.$=e[t];break;case 55:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 56:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square");break;case 57:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle");break;case 58:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle");break;case 59:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse");break;case 60:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium");break;case 61:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine");break;case 62:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]]));break;case 63:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder");break;case 64:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round");break;case 65:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond");break;case 66:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon");break;case 67:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd");break;case 68:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid");break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid");break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right");break;case 71:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left");break;case 72:this.$=e[t],o.addVertex(e[t]);break;case 73:e[t-1].text=e[t],this.$=e[t-1];break;case 74:case 75:e[t-2].text=e[t-1],this.$=e[t-2];break;case 76:this.$=e[t];break;case 77:var L=o.destructLink(e[t],e[t-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:e[t-1]};break;case 78:var L=o.destructLink(e[t],e[t-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:e[t-1],id:e[t-3]};break;case 79:this.$={text:e[t],type:"text"};break;case 80:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 81:this.$={text:e[t],type:"string"};break;case 82:this.$={text:e[t],type:"markdown"};break;case 83:var L=o.destructLink(e[t]);this.$={type:L.type,stroke:L.stroke,length:L.length};break;case 84:var L=o.destructLink(e[t]);this.$={type:L.type,stroke:L.stroke,length:L.length,id:e[t-1]};break;case 85:this.$=e[t-1];break;case 86:this.$={text:e[t],type:"text"};break;case 87:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 88:this.$={text:e[t],type:"string"};break;case 89:case 104:this.$={text:e[t],type:"markdown"};break;case 101:this.$={text:e[t],type:"text"};break;case 102:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 103:this.$={text:e[t],type:"text"};break;case 105:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 106:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 107:case 115:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 108:case 116:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 109:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 110:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 111:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 112:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 113:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 114:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 117:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 118:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 119:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 120:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 121:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 122:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 123:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 124:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 125:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 126:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 127:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 128:case 130:this.$=[e[t]];break;case 129:case 131:e[t-2].push(e[t]),this.$=e[t-2];break;case 133:this.$=e[t-1]+e[t];break;case 181:this.$=e[t];break;case 182:this.$=e[t-1]+""+e[t];break;case 184:this.$=e[t-1]+""+e[t];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:n},{1:[3]},s(a,c,{5:6}),{4:7,9:i,10:r,12:n},{4:8,9:i,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,33:24,34:x,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:T,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},s(a,[2,9]),s(a,[2,10]),s(a,[2,11]),{8:[1,54],9:[1,55],10:de,15:53,18:56},s(y,[2,3]),s(y,[2,4]),s(y,[2,5]),s(y,[2,6]),s(y,[2,7]),s(y,[2,8]),{8:$,9:ee,11:te,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:$,9:ee,11:te,21:67},{8:$,9:ee,11:te,21:68},{8:$,9:ee,11:te,21:69},{8:$,9:ee,11:te,21:70},{8:$,9:ee,11:te,21:71},{8:$,9:ee,10:[1,72],11:te,21:73},s(y,[2,36]),{35:[1,74]},{37:[1,75]},s(y,[2,39]),s(ke,[2,50],{18:76,39:77,10:de,40:et}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:me,44:_e,60:Ce,80:[1,86],89:Ee,95:[1,83],97:[1,84],101:85,105:Se,106:De,109:Te,111:xe,114:ye,115:Fe,116:Be,120:87},s(y,[2,185]),s(y,[2,186]),s(y,[2,187]),s(y,[2,188]),s(ge,[2,51]),s(ge,[2,54],{46:[1,99]}),s(j,[2,72],{113:112,29:[1,100],44:D,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:T,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:V,102:w,105:I,106:R,109:N,111:G,114:P,115:O,116:M}),s(Y,[2,181]),s(Y,[2,142]),s(Y,[2,143]),s(Y,[2,144]),s(Y,[2,145]),s(Y,[2,146]),s(Y,[2,147]),s(Y,[2,148]),s(Y,[2,149]),s(Y,[2,150]),s(Y,[2,151]),s(Y,[2,152]),s(a,[2,12]),s(a,[2,18]),s(a,[2,19]),{9:[1,113]},s(tt,[2,26],{18:114,10:de}),s(y,[2,27]),{42:115,43:38,44:D,45:39,47:40,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(y,[2,40]),s(y,[2,41]),s(y,[2,42]),s(ve,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:st,81:it,116:We,119:je},{75:[1,125],77:[1,126]},s(rt,[2,83]),s(y,[2,28]),s(y,[2,29]),s(y,[2,30]),s(y,[2,31]),s(y,[2,32]),{10:nt,12:at,14:ut,27:ot,28:127,32:lt,44:ct,60:ht,75:dt,80:[1,129],81:[1,130],83:140,84:pt,85:ft,86:gt,87:bt,88:At,89:kt,90:mt,91:128,105:_t,109:Ct,111:Et,114:St,115:Dt,116:Tt},s(Ye,c,{5:153}),s(y,[2,37]),s(y,[2,38]),s(ke,[2,48],{44:xt}),s(ke,[2,49],{18:155,10:de,40:yt}),s(ge,[2,44]),{44:D,47:157,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{102:[1,158],103:159,105:[1,160]},{44:D,47:161,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{44:D,47:162,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(v,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},s(v,[2,115],{120:167,10:[1,166],14:me,44:_e,60:Ce,89:Ee,105:Se,106:De,109:Te,111:xe,114:ye,115:Fe,116:Be}),s(v,[2,117],{10:[1,168]}),s(H,[2,183]),s(H,[2,170]),s(H,[2,171]),s(H,[2,172]),s(H,[2,173]),s(H,[2,174]),s(H,[2,175]),s(H,[2,176]),s(H,[2,177]),s(H,[2,178]),s(H,[2,179]),s(H,[2,180]),{44:D,47:169,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{30:170,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:178,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:180,50:[1,179],67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:181,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:182,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:183,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{109:[1,184]},{30:185,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:186,65:[1,187],67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:188,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:189,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{30:190,67:_,80:z,81:q,82:171,116:C,117:E,118:S},s(Y,[2,182]),s(a,[2,20]),s(tt,[2,25]),s(ke,[2,46],{39:191,18:192,10:de,40:et}),s(ve,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{77:[1,196],79:197,116:We,119:je},s(Le,[2,79]),s(Le,[2,81]),s(Le,[2,82]),s(Le,[2,168]),s(Le,[2,169]),{76:198,79:120,80:st,81:it,116:We,119:je},s(rt,[2,84]),{8:$,9:ee,10:nt,11:te,12:at,14:ut,21:200,27:ot,29:[1,199],32:lt,44:ct,60:ht,75:dt,83:140,84:pt,85:ft,86:gt,87:bt,88:At,89:kt,90:mt,91:201,105:_t,109:Ct,111:Et,114:St,115:Dt,116:Tt},s(F,[2,101]),s(F,[2,103]),s(F,[2,104]),s(F,[2,157]),s(F,[2,158]),s(F,[2,159]),s(F,[2,160]),s(F,[2,161]),s(F,[2,162]),s(F,[2,163]),s(F,[2,164]),s(F,[2,165]),s(F,[2,166]),s(F,[2,167]),s(F,[2,90]),s(F,[2,91]),s(F,[2,92]),s(F,[2,93]),s(F,[2,94]),s(F,[2,95]),s(F,[2,96]),s(F,[2,97]),s(F,[2,98]),s(F,[2,99]),s(F,[2,100]),{6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,202],33:24,34:x,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:T,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},{10:de,18:203},{44:[1,204]},s(ge,[2,43]),{10:[1,205],44:D,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:112,114:P,115:O,116:M},{10:[1,206]},{10:[1,207],106:[1,208]},s(Ft,[2,128]),{10:[1,209],44:D,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:112,114:P,115:O,116:M},{10:[1,210],44:D,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:112,114:P,115:O,116:M},{80:[1,211]},s(v,[2,109],{10:[1,212]}),s(v,[2,111],{10:[1,213]}),{80:[1,214]},s(H,[2,184]),{80:[1,215],98:[1,216]},s(ge,[2,55],{113:112,44:D,60:T,89:V,102:w,105:I,106:R,109:N,111:G,114:P,115:O,116:M}),{31:[1,217],67:_,82:218,116:C,117:E,118:S},s(pe,[2,86]),s(pe,[2,88]),s(pe,[2,89]),s(pe,[2,153]),s(pe,[2,154]),s(pe,[2,155]),s(pe,[2,156]),{49:[1,219],67:_,82:218,116:C,117:E,118:S},{30:220,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{51:[1,221],67:_,82:218,116:C,117:E,118:S},{53:[1,222],67:_,82:218,116:C,117:E,118:S},{55:[1,223],67:_,82:218,116:C,117:E,118:S},{57:[1,224],67:_,82:218,116:C,117:E,118:S},{60:[1,225]},{64:[1,226],67:_,82:218,116:C,117:E,118:S},{66:[1,227],67:_,82:218,116:C,117:E,118:S},{30:228,67:_,80:z,81:q,82:171,116:C,117:E,118:S},{31:[1,229],67:_,82:218,116:C,117:E,118:S},{67:_,69:[1,230],71:[1,231],82:218,116:C,117:E,118:S},{67:_,69:[1,233],71:[1,232],82:218,116:C,117:E,118:S},s(ke,[2,45],{18:155,10:de,40:yt}),s(ke,[2,47],{44:xt}),s(ve,[2,75]),s(ve,[2,74]),{62:[1,234],67:_,82:218,116:C,117:E,118:S},s(ve,[2,77]),s(Le,[2,80]),{77:[1,235],79:197,116:We,119:je},{30:236,67:_,80:z,81:q,82:171,116:C,117:E,118:S},s(Ye,c,{5:237}),s(F,[2,102]),s(y,[2,35]),{43:238,44:D,45:39,47:40,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},{10:de,18:239},{10:se,60:ie,84:re,92:240,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{10:se,60:ie,84:re,92:251,104:[1,252],105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{10:se,60:ie,84:re,92:253,104:[1,254],105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{105:[1,255]},{10:se,60:ie,84:re,92:256,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{44:D,47:257,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(v,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},s(v,[2,116]),s(v,[2,118],{10:[1,261]}),s(v,[2,119]),s(j,[2,56]),s(pe,[2,87]),s(j,[2,57]),{51:[1,262],67:_,82:218,116:C,117:E,118:S},s(j,[2,64]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),{109:[1,263]},s(j,[2,63]),s(j,[2,65]),{66:[1,264],67:_,82:218,116:C,117:E,118:S},s(j,[2,67]),s(j,[2,68]),s(j,[2,70]),s(j,[2,69]),s(j,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(ve,[2,78]),{31:[1,265],67:_,82:218,116:C,117:E,118:S},{6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,266],33:24,34:x,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:T,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},s(ge,[2,53]),{43:267,44:D,45:39,47:40,60:T,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M},s(v,[2,121],{106:Ve}),s(Bt,[2,130],{108:269,10:se,60:ie,84:re,105:ne,109:ae,110:ue,111:oe,112:le}),s(Z,[2,132]),s(Z,[2,134]),s(Z,[2,135]),s(Z,[2,136]),s(Z,[2,137]),s(Z,[2,138]),s(Z,[2,139]),s(Z,[2,140]),s(Z,[2,141]),s(v,[2,122],{106:Ve}),{10:[1,270]},s(v,[2,123],{106:Ve}),{10:[1,271]},s(Ft,[2,129]),s(v,[2,105],{106:Ve}),s(v,[2,106],{113:112,44:D,60:T,89:V,102:w,105:I,106:R,109:N,111:G,114:P,115:O,116:M}),s(v,[2,110]),s(v,[2,112],{10:[1,272]}),s(v,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:$,9:ee,11:te,21:277},s(y,[2,34]),s(ge,[2,52]),{10:se,60:ie,84:re,105:ne,107:278,108:242,109:ae,110:ue,111:oe,112:le},s(Z,[2,133]),{14:me,44:_e,60:Ce,89:Ee,101:279,105:Se,106:De,109:Te,111:xe,114:ye,115:Fe,116:Be,120:87},{14:me,44:_e,60:Ce,89:Ee,101:280,105:Se,106:De,109:Te,111:xe,114:ye,115:Fe,116:Be,120:87},{98:[1,281]},s(v,[2,120]),s(j,[2,58]),{30:282,67:_,80:z,81:q,82:171,116:C,117:E,118:S},s(j,[2,66]),s(Ye,c,{5:283}),s(Bt,[2,131],{108:269,10:se,60:ie,84:re,105:ne,109:ae,110:ue,111:oe,112:le}),s(v,[2,126],{120:167,10:[1,284],14:me,44:_e,60:Ce,89:Ee,105:Se,106:De,109:Te,111:xe,114:ye,115:Fe,116:Be}),s(v,[2,127],{120:167,10:[1,285],14:me,44:_e,60:Ce,89:Ee,105:Se,106:De,109:Te,111:xe,114:ye,115:Fe,116:Be}),s(v,[2,114]),{31:[1,286],67:_,82:218,116:C,117:E,118:S},{6:11,7:12,8:b,9:h,10:A,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:k,32:[1,287],33:24,34:x,36:g,38:m,42:28,43:38,44:D,45:39,47:40,60:T,84:he,85:W,86:J,87:Ne,88:Ge,89:V,102:w,105:I,106:R,109:N,111:G,113:41,114:P,115:O,116:M,121:Pe,122:Oe,123:Me,124:Ue},{10:se,60:ie,84:re,92:288,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},{10:se,60:ie,84:re,92:289,105:ne,107:241,108:242,109:ae,110:ue,111:oe,112:le},s(j,[2,62]),s(y,[2,33]),s(v,[2,124],{106:Ve}),s(v,[2,125],{106:Ve})],defaultActions:{},parseError:l.__name(function(d,p){if(p.recoverable)this.trace(d);else{var f=new Error(d);throw f.hash=p,f}},"parseError"),parse:l.__name(function(d){var p=this,f=[0],o=[],B=[null],e=[],Re=this.table,t="",L=0,vt=0,Gt=2,Lt=1,Pt=e.slice.call(arguments,1),U=Object.create(this.lexer),be={yy:{}};for(var Xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xe)&&(be.yy[Xe]=this.yy[Xe]);U.setInput(d,be.yy),be.yy.lexer=U,be.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var Qe=U.yylloc;e.push(Qe);var Ot=U.options&&U.options.ranges;typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(X){f.length=f.length-2*X,B.length=B.length-X,e.length=e.length-X}l.__name(Mt,"popStack");function Vt(){var X;return X=o.pop()||U.lex()||Lt,typeof X!="number"&&(X instanceof Array&&(o=X,X=o.pop()),X=p.symbols_[X]||X),X}l.__name(Vt,"lex");for(var K,Ae,Q,Je,we={},qe,ce,wt,Ke;;){if(Ae=f[f.length-1],this.defaultActions[Ae]?Q=this.defaultActions[Ae]:((K===null||typeof K>"u")&&(K=Vt()),Q=Re[Ae]&&Re[Ae][K]),typeof Q>"u"||!Q.length||!Q[0]){var Ze="";Ke=[];for(qe in Re[Ae])this.terminals_[qe]&&qe>Gt&&Ke.push("'"+this.terminals_[qe]+"'");U.showPosition?Ze="Parse error on line "+(L+1)+`:
|
|
10
10
|
`+U.showPosition()+`
|
|
11
11
|
Expecting `+Ke.join(", ")+", got '"+(this.terminals_[K]||K)+"'":Ze="Parse error on line "+(L+1)+": Unexpected "+(K==Lt?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(Ze,{text:U.match,token:this.terminals_[K]||K,line:U.yylineno,loc:Qe,expected:Ke})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+K);switch(Q[0]){case 1:f.push(K),B.push(U.yytext),e.push(U.yylloc),f.push(Q[1]),K=null,vt=U.yyleng,t=U.yytext,L=U.yylineno,Qe=U.yylloc;break;case 2:if(ce=this.productions_[Q[1]][1],we.$=B[B.length-ce],we._$={first_line:e[e.length-(ce||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(ce||1)].first_column,last_column:e[e.length-1].last_column},Ot&&(we._$.range=[e[e.length-(ce||1)].range[0],e[e.length-1].range[1]]),Je=this.performAction.apply(we,[t,vt,L,be.yy,Q[1],B,e].concat(Pt)),typeof Je<"u")return Je;ce&&(f=f.slice(0,-1*ce*2),B=B.slice(0,-1*ce),e=e.slice(0,-1*ce)),f.push(this.productions_[Q[1]][0]),B.push(we.$),e.push(we._$),wt=Re[f[f.length-2]][f[f.length-1]],f.push(wt);break;case 3:return!0}}return!0},"parse")},Nt=(function(){var fe={EOF:1,parseError:l.__name(function(p,f){if(this.yy.parser)this.yy.parser.parseError(p,f);else throw new Error(p)},"parseError"),setInput:l.__name(function(d,p){return this.yy=p||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l.__name(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var p=d.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:l.__name(function(d){var p=d.length,f=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var B=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===o.length?this.yylloc.first_column:0)+o[o.length-f.length].length-f[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[B[0],B[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:l.__name(function(){return this._more=!0,this},"more"),reject:l.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
12
12
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l.__name(function(d){this.unput(this.match.slice(d))},"less"),pastInput:l.__name(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l.__name(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l.__name(function(){var d=this.pastInput(),p=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as qt } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./
|
|
3
|
-
import { g as le } from "./chunk-55IACEB6-
|
|
4
|
-
import { s as ce } from "./chunk-QN33PNHL-
|
|
5
|
-
import { c as he } from "./channel-
|
|
1
|
+
import { g as qt } from "./chunk-FMBD7UC4-RBUwxloo.js";
|
|
2
|
+
import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./mermaid.core-B7U3vlPn.js";
|
|
3
|
+
import { g as le } from "./chunk-55IACEB6-CzZUDZ70.js";
|
|
4
|
+
import { s as ce } from "./chunk-QN33PNHL-B6FGlZxV.js";
|
|
5
|
+
import { c as he } from "./channel-BWUNfmCm.js";
|
|
6
6
|
var de = "flowchart-", G1, pe = (G1 = class {
|
|
7
7
|
// cspell:ignore funs
|
|
8
8
|
constructor() {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|