@pi-outpost/embed 0.58.0 → 0.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abnfDiagram-WEYOIA3C-B_dTFm2g.js → abnfDiagram-S7VZAUFO-BdOzCXh1.js} +4 -4
- package/dist/{abnfDiagram-WEYOIA3C-Dk2VD3Iw.cjs → abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs} +1 -1
- package/dist/{architectureDiagram-ZHVYKT53-CslNYmQN.js → architectureDiagram-YGSQEFNW-DiYOcBqo.js} +5 -5
- package/dist/{architectureDiagram-ZHVYKT53-Bud-mHjo.cjs → architectureDiagram-YGSQEFNW-gEzRb5xY.cjs} +3 -3
- package/dist/{blockDiagram-RJAE7QA3-Dgm9J6pS.js → blockDiagram-APKKGZFW-CIX-8mpK.js} +106 -107
- package/dist/{blockDiagram-RJAE7QA3-lEBn-_Yn.cjs → blockDiagram-APKKGZFW-KL3nQT0s.cjs} +7 -7
- package/dist/bpmnIcons-APHXDYXF-BcsYKfS7.js +39 -0
- package/dist/bpmnIcons-APHXDYXF-DX8xcBUd.cjs +1 -0
- package/dist/{c4Diagram-XDPPPE54-rbzhqhW5.js → c4Diagram-KJ2TOQU5-BS_M90FN.js} +8 -8
- package/dist/{c4Diagram-XDPPPE54-BKNqVY-U.cjs → c4Diagram-KJ2TOQU5-D-dCJWvI.cjs} +1 -1
- package/dist/{chunk-7S6XSTFO-ejBVk-tI.cjs → chunk-6MUBBAK2-BTabKnTR.cjs} +1 -1
- package/dist/{chunk-7S6XSTFO-DrDRohsE.js → chunk-6MUBBAK2-DlUTxzYh.js} +2 -2
- package/dist/{chunk-HAGFOTED-BUPxFGdn.cjs → chunk-AXFCVDMN-B6dhmE32.cjs} +8 -8
- package/dist/{chunk-HAGFOTED-ceXO12G4.js → chunk-AXFCVDMN-DrVQa3gP.js} +1256 -1041
- package/dist/{chunk-DSNLSHJZ-BxQ7lMXY.cjs → chunk-BG4553SI-DFPUniBw.cjs} +1 -1
- package/dist/{chunk-DSNLSHJZ-DPpiuUZK.js → chunk-BG4553SI-j_gQs8M_.js} +2 -0
- package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +10 -0
- package/dist/{chunk-WQQL4CDK-C3yDIFZ3.js → chunk-DQASFODM-DAaU7yoa.js} +520 -211
- package/dist/{chunk-55XCU76K-o8OgDLPD.js → chunk-HFQBQIA3-DqHSeXIz.js} +2 -2
- package/dist/{chunk-55XCU76K-IpMfjRYv.cjs → chunk-HFQBQIA3-lOxrhpos.cjs} +1 -1
- package/dist/{chunk-ZCHMQSOR-BbO7eY2w.js → chunk-KQLB2F66-C7twW9LJ.js} +30 -30
- package/dist/{chunk-ZCHMQSOR-Cg8zPt0w.cjs → chunk-KQLB2F66-Ec2IAtUR.cjs} +1 -1
- package/dist/{chunk-4EMNKR2T-CGAdq4EA.cjs → chunk-KS47KZWR-C7Yv0kfF.cjs} +1 -1
- package/dist/{chunk-4EMNKR2T-BIO9veC4.js → chunk-KS47KZWR-OD3AMBe8.js} +2 -2
- package/dist/{chunk-ZAUX2LTX-DIQkgUFr.cjs → chunk-LEVMRMFU-BFGXlIAt.cjs} +1 -1
- package/dist/{chunk-ZAUX2LTX-P8LAwm_U.js → chunk-LEVMRMFU-NLMudZfn.js} +3 -3
- package/dist/chunk-M57EVK23-BSZ7OEGY.cjs +1 -0
- package/dist/{chunk-HNE4Q36P-uON_vFhT.js → chunk-M57EVK23-C8-Jp43x.js} +55 -54
- package/dist/{chunk-2E7WHVMD-Vo-POJc_.js → chunk-OY52VR5R-B7NRk2-S.js} +3 -3
- package/dist/{chunk-2E7WHVMD-BNsJOdNP.cjs → chunk-OY52VR5R-CvyV3pJF.cjs} +1 -1
- package/dist/{chunk-NQOKRVIF-DmOxzSOQ.js → chunk-QB3YPZ4I-DPQ26dC9.js} +788 -730
- package/dist/chunk-QB3YPZ4I-DaIXN7QF.cjs +213 -0
- package/dist/{chunk-YZO67HFG-DCQIFG8j.cjs → chunk-R3KSYZAL-BQPJVcO7.cjs} +1 -1
- package/dist/{chunk-YZO67HFG-WF3jklBn.js → chunk-R3KSYZAL-DeNSy3X8.js} +8 -8
- package/dist/{chunk-AQDTSKZB-DUZx386i.js → chunk-STOXU5M4-0WKKmqbF.js} +4 -4
- package/dist/{chunk-AQDTSKZB-B-MpZ-y2.cjs → chunk-STOXU5M4-CmoaBap6.cjs} +1 -1
- package/dist/{chunk-VQ5W62QI-Dw9Kffnl.cjs → chunk-TU62E6Q5-CMbRLUnW.cjs} +1 -1
- package/dist/{chunk-VQ5W62QI-Bvcxpp51.js → chunk-TU62E6Q5-DPxNUFFP.js} +2 -2
- package/dist/{chunk-UHW7PFBP-BTk1ZC8L.js → chunk-X4PVCEUW-C80IBt-t.js} +2 -2
- package/dist/{chunk-UHW7PFBP-Bays5Zi8.cjs → chunk-X4PVCEUW-Djs21j48.cjs} +1 -1
- package/dist/{classDiagram-v2-4MYWR3UA-DyMM0DMP.cjs → classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs} +1 -1
- package/dist/{classDiagram-v2-4MYWR3UA-DIjHIULx.js → classDiagram-v2-L25IHNXF-CAts0vNW.js} +13 -13
- package/dist/{conversationExport-DojQkOLk.js → conversationExport-BWbYNcNf.js} +3 -3
- package/dist/{conversationExport-CE0UTxEg.cjs → conversationExport-DuKpkQDn.cjs} +1 -1
- package/dist/{conversationHistory-DdjP3rjR.cjs → conversationHistory-DIGz_MD4.cjs} +1 -1
- package/dist/{conversationHistory-g6h0_Fjx.js → conversationHistory-DXpSCV87.js} +2 -2
- package/dist/{cynefinDiagram-WF24UDRP-DEFG-MNh.js → cynefinDiagram-L36ESFBY-ByHpHKCc.js} +4 -4
- package/dist/{cynefinDiagram-WF24UDRP-BC09SRT2.cjs → cynefinDiagram-L36ESFBY-CrsJmb7x.cjs} +1 -1
- package/dist/{dagre-NK4GIZVX-D6Xuc_Nw.js → dagre-SPEB5RXH-C01_UMxx.js} +51 -51
- package/dist/{dagre-NK4GIZVX-D0_oLrA9.cjs → dagre-SPEB5RXH-ExCiSqVu.cjs} +2 -2
- package/dist/{diagram-TYUNFSNR-Dy2nkVin.cjs → diagram-3B7GL73J-CRNoSH2i.cjs} +2 -2
- package/dist/{diagram-TYUNFSNR-BSq4ni3b.js → diagram-3B7GL73J-D7i6eGGQ.js} +14 -14
- package/dist/{diagram-I5XIIV2D-Dom9usNq.cjs → diagram-DNEMPZML-CkhkOJo2.cjs} +1 -1
- package/dist/{diagram-I5XIIV2D-DbwsxgDf.js → diagram-DNEMPZML-Di5RqN_h.js} +4 -4
- package/dist/{diagram-RJA3I4VV-Bt-BxYua.cjs → diagram-L3MUGCDN-B1vXsDB1.cjs} +1 -1
- package/dist/{diagram-RJA3I4VV-DCygetH_.js → diagram-L3MUGCDN-BtQkAzOD.js} +4 -4
- package/dist/{diagram-CBK3MWTC-CuUrHQAz.js → diagram-LA4NIPWU-Badv-tyU.js} +6 -6
- package/dist/{diagram-CBK3MWTC-DbXGbFMz.cjs → diagram-LA4NIPWU-DST6DvSP.cjs} +1 -1
- package/dist/{diagram-PFBEJUXE-DAIw33Bx.cjs → diagram-MHCOC4E2-BafwTqOD.cjs} +1 -1
- package/dist/{diagram-PFBEJUXE-ChA6KYWw.js → diagram-MHCOC4E2-DmA9ezb9.js} +3 -3
- package/dist/{diagram-ODIL2UCW-CSnuo9bJ.js → diagram-XPFHEONP-CZHt29x-.js} +5 -5
- package/dist/{diagram-ODIL2UCW-CLSAtgxG.cjs → diagram-XPFHEONP-DCm8Rjp8.cjs} +2 -2
- package/dist/{docxExport-CrsGZa8E.cjs → docxExport-BlPADe6b.cjs} +1 -1
- package/dist/{docxExport-9XrmWN9x.js → docxExport-Bwi2TlqP.js} +2 -2
- package/dist/{ebnfDiagram-V4P3TTPT-e4I3Otpa.js → ebnfDiagram-UZSYDL2S-DVGQga8g.js} +4 -4
- package/dist/{ebnfDiagram-V4P3TTPT-6xhHNshj.cjs → ebnfDiagram-UZSYDL2S-fO0plY-B.cjs} +1 -1
- package/dist/elk-XV6XMXQE-BkH0WNCd.js +48285 -0
- package/dist/elk-XV6XMXQE-CioXUob9.cjs +27 -0
- package/dist/{erDiagram-KYQIGQAA-BTNANm6p.js → erDiagram-EYBAPDEH-Byy0RKKe.js} +12 -13
- package/dist/{erDiagram-KYQIGQAA-DsqyoDOz.cjs → erDiagram-EYBAPDEH-CUgDxVam.cjs} +2 -2
- package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +15 -0
- package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +1 -0
- package/dist/{ganttDiagram-R7GPNTJY-B1juClwW.cjs → ganttDiagram-23REXITY-D82ogzPM.cjs} +1 -1
- package/dist/{ganttDiagram-R7GPNTJY-CEGQ6hzi.js → ganttDiagram-23REXITY-DAs5LGLL.js} +2 -2
- package/dist/{gitGraphDiagram-PDYL7XHY-6cCNinUi.cjs → gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs} +1 -1
- package/dist/{gitGraphDiagram-PDYL7XHY-D_ADFBrL.js → gitGraphDiagram-STJD7YCW-BVa0DHTU.js} +3 -3
- package/dist/{infoDiagram-MVDRKAX5-Dkuw3h5s.js → infoDiagram-KBXO4MBG-BW7IcSQr.js} +4 -4
- package/dist/{infoDiagram-MVDRKAX5-CVeFOzof.cjs → infoDiagram-KBXO4MBG-DRQkxKbg.cjs} +1 -1
- package/dist/{ishikawaDiagram-HPEHV2GE-oTSoKUOA.js → ishikawaDiagram-M35NCXHK-BiLoyI1l.js} +4 -4
- package/dist/{ishikawaDiagram-HPEHV2GE-92CAbMpi.cjs → ishikawaDiagram-M35NCXHK-DBokYlS8.cjs} +1 -1
- package/dist/{journeyDiagram-BOSHW7O7-Cb_yTQWF.cjs → journeyDiagram-OPLOXDXO-CgabMAC2.cjs} +1 -1
- package/dist/{journeyDiagram-BOSHW7O7-CMbGxPLA.js → journeyDiagram-OPLOXDXO-DsyubZVY.js} +3 -3
- package/dist/{kanban-definition-FNSA4HC5-DlUMoAIT.cjs → kanban-definition-BZKZHSQY-CLi3J9cI.cjs} +1 -1
- package/dist/{kanban-definition-FNSA4HC5-DzEQcVPw.js → kanban-definition-BZKZHSQY-DU8sOWQd.js} +10 -10
- package/dist/{line-ZwhMGa3_.cjs → line-Bf0B129l.cjs} +1 -1
- package/dist/{line-0VTxwDiV.js → line-DRq00lCg.js} +1 -1
- package/dist/{loadReferencedImage-RUfxAG0o.cjs → loadReferencedImage-D47xCpa7.cjs} +1 -1
- package/dist/{loadReferencedImage-LF2DEOPa.js → loadReferencedImage-VNYxXIzB.js} +1 -1
- package/dist/{mermaid.core-73kk5oPm.cjs → mermaid.core-BL4WDqAH.cjs} +12 -12
- package/dist/{mermaid.core-C8dp1dnD.js → mermaid.core-DPCy8dJO.js} +511 -504
- package/dist/{mermaidToImage-Ckx06W6z.cjs → mermaidToImage-B7I6iJ9s.cjs} +1 -1
- package/dist/{mermaidToImage-knc9XzLd.js → mermaidToImage-CViP9wx2.js} +1 -1
- package/dist/{mindmap-definition-6OY57UG3-CXobmoZM.js → mindmap-definition-I2QAS2VK-C2KpoDqG.js} +38 -68
- package/dist/{mindmap-definition-6OY57UG3-DLx3d1V6.cjs → mindmap-definition-I2QAS2VK-GT8_r7or.cjs} +8 -8
- package/dist/{pegDiagram-ECIUJNBX-ODBWqs1V.js → pegDiagram-FD4XPPHP-CSA4sB83.js} +4 -4
- package/dist/{pegDiagram-ECIUJNBX-B-eSDSQK.cjs → pegDiagram-FD4XPPHP-D0OZoETj.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +31 -31
- package/dist/pi-outpost-embed.js +2936 -2915
- package/dist/{pieDiagram-GNMPY74T-DYDC5z2D.js → pieDiagram-J4AKIIQI-CNLlH6kK.js} +4 -4
- package/dist/{pieDiagram-GNMPY74T-BtYyKCrf.cjs → pieDiagram-J4AKIIQI-O870G6iX.cjs} +1 -1
- package/dist/{quadrantDiagram-D57K4MC3-BfQWcg-D.js → quadrantDiagram-XTYBLID2-BjaZuA3m.js} +2 -2
- package/dist/{quadrantDiagram-D57K4MC3-Cu6JmzPE.cjs → quadrantDiagram-XTYBLID2-CfdtTmYm.cjs} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-BdHmqKV_.cjs → railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-ChQwG3mZ.js → railroadDiagram-MRQ6NCDL-DgAKQKiD.js} +4 -4
- package/dist/{requirementDiagram-EQYSW5RA-Dj4E0fE3.js → requirementDiagram-Y7LWUY3S-Bhlk2ueA.js} +12 -12
- package/dist/{requirementDiagram-EQYSW5RA-CDQ6Nza1.cjs → requirementDiagram-Y7LWUY3S-nSr_pknl.cjs} +1 -1
- package/dist/{sankeyDiagram-SY24JHO5-luxVW4uf.js → sankeyDiagram-WGJFYUXA-DUYWd4HF.js} +2 -2
- package/dist/{sankeyDiagram-SY24JHO5-BPFkmPzT.cjs → sankeyDiagram-WGJFYUXA-x6J896b3.cjs} +1 -1
- package/dist/{sequenceDiagram-BLEHNHQU-DX51aIRY.cjs → sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs} +1 -1
- package/dist/{sequenceDiagram-BLEHNHQU-H4rQDzp-.js → sequenceDiagram-5NDRBG5M-D1YS8Amk.js} +5 -5
- package/dist/{stateDiagram-v2-A6IESKWZ-DBJ11U2p.js → stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js} +13 -13
- package/dist/{stateDiagram-v2-A6IESKWZ-Dbp783Hd.cjs → stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs} +1 -1
- package/dist/swimlanes-UMQ2AFYF-BQLQzNLz.cjs +1 -0
- package/dist/{swimlanes-B3ENRKFQ-Bp3vZCmK.js → swimlanes-UMQ2AFYF-CNb1NF60.js} +1742 -1338
- package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +8 -0
- package/dist/swimlanesDiagram-OMPLPG4O-BOl138lS.js +27 -0
- package/dist/{timeline-definition-JXYKGLGB-BE6iAj4r.js → timeline-definition-SEUHKTQE-B_909Amn.js} +4 -4
- package/dist/{timeline-definition-JXYKGLGB-DKhMPFBi.cjs → timeline-definition-SEUHKTQE-Du5-RSsU.cjs} +1 -1
- package/dist/{usecaseDiagram-WPOLBNNX-BRWufOTq.cjs → usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs} +2 -2
- package/dist/{usecaseDiagram-WPOLBNNX-DY9Md_AG.js → usecaseDiagram-AFA6YXN4-CiVGRP5X.js} +12 -12
- package/dist/{vennDiagram-Q3Y3IDCW-NYVHk5sI.cjs → vennDiagram-NNMJR3RB-CKxaec4G.cjs} +1 -1
- package/dist/{vennDiagram-Q3Y3IDCW-DbPGt27W.js → vennDiagram-NNMJR3RB-l3A_FZxZ.js} +4 -4
- package/dist/{wardleyDiagram-IVAIDKWA-BHkJFpfC.js → wardleyDiagram-S7YFUSEH-BMQf5dl9.js} +4 -4
- package/dist/{wardleyDiagram-IVAIDKWA-DsYJNlmX.cjs → wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs} +1 -1
- package/dist/{xychartDiagram-4URNHDU4-B_g46bSg.cjs → xychartDiagram-GGNKY7IX-BUma86Wh.cjs} +1 -1
- package/dist/{xychartDiagram-4URNHDU4-IvFjWG-y.js → xychartDiagram-GGNKY7IX-CuFU4ynf.js} +7 -7
- package/package.json +2 -2
- package/dist/channel-AESWk0Yw.cjs +0 -1
- package/dist/channel-CEoRf1uz.js +0 -5
- package/dist/chunk-HNE4Q36P-CCHAgwa3.cjs +0 -1
- package/dist/chunk-NQOKRVIF-DcZqKWzv.cjs +0 -213
- package/dist/chunk-WQQL4CDK-DxEEyQzx.cjs +0 -10
- package/dist/elk-QONTBCTQ-B8RYU1Ay.js +0 -47505
- package/dist/elk-QONTBCTQ-hBYUI6Nr.cjs +0 -27
- package/dist/flowDiagram-IUGLLWBU-BJlVRCj8.js +0 -15
- package/dist/flowDiagram-IUGLLWBU-CsC_IEV_.cjs +0 -1
- package/dist/swimlanes-B3ENRKFQ-DY1V--Rq.cjs +0 -1
- package/dist/swimlanesDiagram-AYQRV4AK-COavJcG4.js +0 -27
- package/dist/swimlanesDiagram-AYQRV4AK-dUd5QjxZ.cjs +0 -8
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-65Lfw03T.js";
|
|
3
|
-
import { a as r, at as i, b as a, c as o, s, y as c } from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { A as
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import { i as
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import { t as ge } from "./graphlib-CQa_B3rm.js";
|
|
3
|
+
import { a as r, at as i, b as a, c as o, s, y as c } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
+
import { a as l, f as u, h as d, o as f, u as p } from "./chunk-DQASFODM-DAaU7yoa.js";
|
|
5
|
+
import { A as m, B as h, D as g, E as _, F as v, G as y, H as b, I as x, K as S, L as C, M as w, N as T, O as E, P as D, R as O, T as k, U as A, V as j, W as M, j as ee, k as te, u as ne, w as re, x as ie, y as ae, z as oe } from "./chunk-6MUBBAK2-DlUTxzYh.js";
|
|
6
|
+
import "./chunk-R3KSYZAL-DeNSy3X8.js";
|
|
7
|
+
import "./chunk-STOXU5M4-0WKKmqbF.js";
|
|
8
|
+
import { t as se } from "./chunk-5VM5RSS4-BMfgdMFU.js";
|
|
9
|
+
import { t as ce } from "./chunk-DUW6YSOI-CVhxvrBO.js";
|
|
10
|
+
import "./chunk-X4PVCEUW-C80IBt-t.js";
|
|
11
|
+
import { i as le, n as ue, o as de, r as fe, s as pe } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
12
|
+
import "./chunk-AXFCVDMN-DrVQa3gP.js";
|
|
13
|
+
import { i as me, r as N } from "./chunk-LEVMRMFU-NLMudZfn.js";
|
|
14
|
+
import { t as he } from "./graphlib-CQa_B3rm.js";
|
|
16
15
|
//#region ../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
|
|
17
|
-
function
|
|
16
|
+
function ge(e) {
|
|
18
17
|
return Array.isArray(e);
|
|
19
18
|
}
|
|
20
19
|
//#endregion
|
|
21
20
|
//#region ../node_modules/es-toolkit/dist/compat/object/clone.mjs
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
let t =
|
|
25
|
-
if (!
|
|
26
|
-
if (
|
|
21
|
+
function _e(e) {
|
|
22
|
+
if (ie(e)) return e;
|
|
23
|
+
let t = S(e);
|
|
24
|
+
if (!ve(e)) return {};
|
|
25
|
+
if (ge(e)) {
|
|
27
26
|
let t = Array.from(e);
|
|
28
27
|
return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (t.index = e.index, t.input = e.input), t;
|
|
29
28
|
}
|
|
30
|
-
if (
|
|
29
|
+
if (ae(e)) {
|
|
31
30
|
let t = e, n = t.constructor;
|
|
32
31
|
return new n(t.buffer, t.byteOffset, t.length);
|
|
33
32
|
}
|
|
@@ -38,7 +37,7 @@ function ve(e) {
|
|
|
38
37
|
}
|
|
39
38
|
if (t === "[object Boolean]" || t === "[object Number]" || t === "[object String]") {
|
|
40
39
|
let n = e.constructor, r = new n(e.valueOf());
|
|
41
|
-
return t === "[object String]" ?
|
|
40
|
+
return t === "[object String]" ? be(r, e) : P(r, e), r;
|
|
42
41
|
}
|
|
43
42
|
if (t === "[object Date]") return new Date(Number(e));
|
|
44
43
|
if (t === "[object RegExp]") {
|
|
@@ -60,59 +59,59 @@ function ve(e) {
|
|
|
60
59
|
}
|
|
61
60
|
if (t === "[object Arguments]") {
|
|
62
61
|
let t = e, n = {};
|
|
63
|
-
return
|
|
62
|
+
return P(n, t), n.length = t.length, n[Symbol.iterator] = t[Symbol.iterator], n;
|
|
64
63
|
}
|
|
65
64
|
let n = {};
|
|
66
|
-
return
|
|
65
|
+
return xe(n, e), P(n, e), ye(n, e), n;
|
|
67
66
|
}
|
|
68
|
-
function
|
|
69
|
-
switch (
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case T:
|
|
73
|
-
case S:
|
|
74
|
-
case f:
|
|
75
|
-
case A:
|
|
76
|
-
case u:
|
|
67
|
+
function ve(e) {
|
|
68
|
+
switch (S(e)) {
|
|
69
|
+
case re:
|
|
70
|
+
case _:
|
|
77
71
|
case k:
|
|
78
|
-
case
|
|
79
|
-
case
|
|
80
|
-
case
|
|
72
|
+
case E:
|
|
73
|
+
case g:
|
|
74
|
+
case te:
|
|
81
75
|
case m:
|
|
82
|
-
case
|
|
83
|
-
case y:
|
|
84
|
-
case w:
|
|
85
|
-
case ne:
|
|
86
|
-
case d:
|
|
76
|
+
case ee:
|
|
87
77
|
case D:
|
|
78
|
+
case w:
|
|
79
|
+
case T:
|
|
80
|
+
case v:
|
|
81
|
+
case x:
|
|
82
|
+
case C:
|
|
88
83
|
case O:
|
|
84
|
+
case oe:
|
|
89
85
|
case h:
|
|
90
|
-
case
|
|
91
|
-
case
|
|
86
|
+
case j:
|
|
87
|
+
case M:
|
|
88
|
+
case y:
|
|
89
|
+
case b:
|
|
90
|
+
case A: return !0;
|
|
92
91
|
default: return !1;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function P(e, t) {
|
|
96
95
|
for (let n in t) Object.hasOwn(t, n) && (e[n] = t[n]);
|
|
97
96
|
}
|
|
98
|
-
function
|
|
97
|
+
function ye(e, t) {
|
|
99
98
|
let n = Object.getOwnPropertySymbols(t);
|
|
100
99
|
for (let r = 0; r < n.length; r++) {
|
|
101
100
|
let i = n[r];
|
|
102
101
|
Object.prototype.propertyIsEnumerable.call(t, i) && (e[i] = t[i]);
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
function
|
|
104
|
+
function be(e, t) {
|
|
106
105
|
let n = t.valueOf().length;
|
|
107
106
|
for (let r in t) Object.hasOwn(t, r) && (Number.isNaN(Number(r)) || Number(r) >= n) && (e[r] = t[r]);
|
|
108
107
|
}
|
|
109
|
-
function
|
|
108
|
+
function xe(e, t) {
|
|
110
109
|
let n = Object.getPrototypeOf(t);
|
|
111
110
|
n !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, n);
|
|
112
111
|
}
|
|
113
112
|
//#endregion
|
|
114
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-
|
|
115
|
-
var
|
|
113
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-APKKGZFW.mjs
|
|
114
|
+
var F = (function() {
|
|
116
115
|
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
117
116
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
118
117
|
return n;
|
|
@@ -1250,54 +1249,54 @@ var P = (function() {
|
|
|
1250
1249
|
}
|
|
1251
1250
|
return e(v, "Parser"), v.prototype = _, _.Parser = v, new v();
|
|
1252
1251
|
})();
|
|
1253
|
-
|
|
1254
|
-
var
|
|
1255
|
-
let n =
|
|
1252
|
+
F.parser = F;
|
|
1253
|
+
var Se = F, I = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map(), z = "color", B = "fill", Ce = "bgFill", V = ",", H = /* @__PURE__ */ new Map(), U = "", we = /* @__PURE__ */ e((e) => s.sanitizeText(e, a()), "sanitizeText"), Te = /* @__PURE__ */ e(function(e, t = "") {
|
|
1254
|
+
let n = H.get(e);
|
|
1256
1255
|
n || (n = {
|
|
1257
1256
|
id: e,
|
|
1258
1257
|
styles: [],
|
|
1259
1258
|
textStyles: []
|
|
1260
|
-
},
|
|
1259
|
+
}, H.set(e, n)), t?.split(V).forEach((e) => {
|
|
1261
1260
|
let t = e.replace(/([^;]*);/, "$1").trim();
|
|
1262
|
-
if (RegExp(
|
|
1263
|
-
let e = t.replace(
|
|
1261
|
+
if (RegExp(z).exec(e)) {
|
|
1262
|
+
let e = t.replace(B, Ce).replace(z, B);
|
|
1264
1263
|
n.textStyles.push(e);
|
|
1265
1264
|
}
|
|
1266
1265
|
n.styles.push(t);
|
|
1267
1266
|
});
|
|
1268
|
-
}, "addStyleClass"),
|
|
1269
|
-
let n =
|
|
1270
|
-
t != null && (n.styles = t.split(
|
|
1271
|
-
}, "addStyle2Node"),
|
|
1267
|
+
}, "addStyleClass"), Ee = /* @__PURE__ */ e(function(e, t = "") {
|
|
1268
|
+
let n = I.get(e);
|
|
1269
|
+
t != null && (n.styles = t.split(V));
|
|
1270
|
+
}, "addStyle2Node"), De = /* @__PURE__ */ e(function(e, t) {
|
|
1272
1271
|
e.split(",").forEach(function(e) {
|
|
1273
|
-
let n =
|
|
1272
|
+
let n = I.get(e);
|
|
1274
1273
|
if (n === void 0) {
|
|
1275
1274
|
let t = e.trim();
|
|
1276
1275
|
n = {
|
|
1277
1276
|
id: t,
|
|
1278
1277
|
type: "na",
|
|
1279
1278
|
children: []
|
|
1280
|
-
},
|
|
1279
|
+
}, I.set(t, n);
|
|
1281
1280
|
}
|
|
1282
1281
|
n.classes || (n.classes = []), n.classes.push(t);
|
|
1283
1282
|
});
|
|
1284
|
-
}, "setCssClass"),
|
|
1283
|
+
}, "setCssClass"), Oe = 0, ke = /* @__PURE__ */ e((e, n) => {
|
|
1285
1284
|
let r = e.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
|
|
1286
|
-
for (let e of r) if (typeof a == "number" && a > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > a && t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`), e.label &&=
|
|
1287
|
-
else if (e.type === "applyClass")
|
|
1288
|
-
else if (e.type === "applyStyles") e?.stylesStr &&
|
|
1285
|
+
for (let e of r) if (typeof a == "number" && a > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > a && t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`), e.label &&= we(e.label), e.type === "classDef") Te(e.id, e.css);
|
|
1286
|
+
else if (e.type === "applyClass") De(e.id, e?.styleClass ?? "");
|
|
1287
|
+
else if (e.type === "applyStyles") e?.stylesStr && Ee(e.id, e?.stylesStr);
|
|
1289
1288
|
else if (e.type === "column-setting") n.columns = e.columns ?? -1;
|
|
1290
1289
|
else if (e.type === "edge") {
|
|
1291
|
-
let t = (
|
|
1292
|
-
|
|
1290
|
+
let t = (R.get(e.id) ?? 0) + 1;
|
|
1291
|
+
R.set(e.id, t), e.id = t + "-" + e.id, L.push(e);
|
|
1293
1292
|
} else {
|
|
1294
1293
|
e.label ||= e.type === "composite" ? "" : e.id;
|
|
1295
|
-
let t =
|
|
1296
|
-
if (t === void 0 ? (e.type === "composite" && (e.colorIndex =
|
|
1294
|
+
let t = I.get(e.id);
|
|
1295
|
+
if (t === void 0 ? (e.type === "composite" && (e.colorIndex = Oe++), I.set(e.id, e)) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && ke(e.children, e), e.type === "space") {
|
|
1297
1296
|
let t = e.width ?? 1;
|
|
1298
1297
|
for (let n = 0; n < t; n++) {
|
|
1299
|
-
let t =
|
|
1300
|
-
t.id = t.id + "-" + n,
|
|
1298
|
+
let t = _e(e);
|
|
1299
|
+
t.id = t.id + "-" + n, I.set(t.id, t), i.push(t);
|
|
1301
1300
|
}
|
|
1302
1301
|
} else t === void 0 && i.push(e);
|
|
1303
1302
|
}
|
|
@@ -1313,7 +1312,7 @@ var Ce = P, F = /* @__PURE__ */ new Map(), I = [], L = /* @__PURE__ */ new Map()
|
|
|
1313
1312
|
type: "composite",
|
|
1314
1313
|
children: [],
|
|
1315
1314
|
columns: -1
|
|
1316
|
-
},
|
|
1315
|
+
}, I = /* @__PURE__ */ new Map([["root", G]]), W = [], H = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map(), U = "", Oe = 0;
|
|
1317
1316
|
}, "clear");
|
|
1318
1317
|
function je(e) {
|
|
1319
1318
|
switch (t.debug("typeStr2Type", e), e) {
|
|
@@ -1378,34 +1377,34 @@ var Le = 0, Re = {
|
|
|
1378
1377
|
edgeStrToThickness: Fe,
|
|
1379
1378
|
edgeStrToPattern: Ie,
|
|
1380
1379
|
getLogger: /* @__PURE__ */ e(() => t, "getLogger"),
|
|
1381
|
-
getBlocksFlat: /* @__PURE__ */ e(() => [...
|
|
1380
|
+
getBlocksFlat: /* @__PURE__ */ e(() => [...I.values()], "getBlocksFlat"),
|
|
1382
1381
|
getBlocks: /* @__PURE__ */ e(() => W || [], "getBlocks"),
|
|
1383
|
-
getEdges: /* @__PURE__ */ e(() =>
|
|
1382
|
+
getEdges: /* @__PURE__ */ e(() => L, "getEdges"),
|
|
1384
1383
|
setHierarchy: /* @__PURE__ */ e((e) => {
|
|
1385
1384
|
G.children = e, ke(e, G), W = G.children;
|
|
1386
1385
|
}, "setHierarchy"),
|
|
1387
|
-
getBlock: /* @__PURE__ */ e((e) =>
|
|
1386
|
+
getBlock: /* @__PURE__ */ e((e) => I.get(e), "getBlock"),
|
|
1388
1387
|
setBlock: /* @__PURE__ */ e((e) => {
|
|
1389
|
-
|
|
1388
|
+
I.set(e.id, e);
|
|
1390
1389
|
}, "setBlock"),
|
|
1391
1390
|
getColumns: /* @__PURE__ */ e((e) => {
|
|
1392
|
-
let t =
|
|
1391
|
+
let t = I.get(e);
|
|
1393
1392
|
return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
|
|
1394
1393
|
}, "getColumns"),
|
|
1395
1394
|
getClasses: /* @__PURE__ */ e(function() {
|
|
1396
|
-
return
|
|
1395
|
+
return H;
|
|
1397
1396
|
}, "getClasses"),
|
|
1398
1397
|
clear: Ae,
|
|
1399
1398
|
generateId: /* @__PURE__ */ e(() => (Le++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Le), "generateId"),
|
|
1400
1399
|
setDiagramId: /* @__PURE__ */ e((e) => {
|
|
1401
|
-
|
|
1400
|
+
U = e;
|
|
1402
1401
|
}, "setDiagramId"),
|
|
1403
|
-
getDiagramId: /* @__PURE__ */ e(() =>
|
|
1402
|
+
getDiagramId: /* @__PURE__ */ e(() => U, "getDiagramId")
|
|
1404
1403
|
}, ze = /* @__PURE__ */ e((e) => {
|
|
1405
1404
|
let { theme: t, bkgColorArray: n, borderColorArray: r } = e;
|
|
1406
|
-
if (!
|
|
1407
|
-
let i =
|
|
1408
|
-
for (let t = 0; t <
|
|
1405
|
+
if (!le(t, r)) return "";
|
|
1406
|
+
let i = de(e.look), a = fe(n), o = "";
|
|
1407
|
+
for (let t = 0; t < ue(e.THEME_COLOR_LIMIT, r); t++) {
|
|
1409
1408
|
let e = r[t % r.length], s = a ? `fill: ${n[t % n.length]};` : "", c = `[data-look="${i}"][data-color-id="color-${t}"]`;
|
|
1410
1409
|
o += `
|
|
1411
1410
|
|
|
@@ -1417,7 +1416,7 @@ var Le = 0, Re = {
|
|
|
1417
1416
|
}
|
|
1418
1417
|
return o;
|
|
1419
1418
|
}, "genColor"), K = /* @__PURE__ */ e((e, t) => {
|
|
1420
|
-
let n =
|
|
1419
|
+
let n = d, r = n(e, "r"), a = n(e, "g"), o = n(e, "b");
|
|
1421
1420
|
return i(r, a, o, t);
|
|
1422
1421
|
}, "fade"), Be = /* @__PURE__ */ e((e) => `${ze(e)}
|
|
1423
1422
|
.label {
|
|
@@ -1546,7 +1545,7 @@ var Le = 0, Re = {
|
|
|
1546
1545
|
font-size: 18px;
|
|
1547
1546
|
fill: ${e.textColor};
|
|
1548
1547
|
}
|
|
1549
|
-
${
|
|
1548
|
+
${se()}
|
|
1550
1549
|
`, "getStyles");
|
|
1551
1550
|
function q(e, t) {
|
|
1552
1551
|
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
@@ -1770,7 +1769,7 @@ function Z(e, t, n = !1) {
|
|
|
1770
1769
|
break;
|
|
1771
1770
|
default: s = "rect";
|
|
1772
1771
|
}
|
|
1773
|
-
let u =
|
|
1772
|
+
let u = ne(r?.styles ?? []), d = r.label, f = r.size ?? {
|
|
1774
1773
|
width: 0,
|
|
1775
1774
|
height: 0,
|
|
1776
1775
|
x: 0,
|
|
@@ -1809,7 +1808,7 @@ e(Z, "getNodeFromBlock");
|
|
|
1809
1808
|
async function Ue(e, t, n) {
|
|
1810
1809
|
let r = Z(t, n, !1);
|
|
1811
1810
|
if (t.type === "group") return;
|
|
1812
|
-
let i = c(), a = await
|
|
1811
|
+
let i = c(), a = await N(e, r, { config: i }), o = a.node()?.getBBox() ?? {
|
|
1813
1812
|
width: 0,
|
|
1814
1813
|
height: 0
|
|
1815
1814
|
}, s = n.getBlock(r.id);
|
|
@@ -1825,8 +1824,8 @@ e(Ue, "calculateBlockSize");
|
|
|
1825
1824
|
async function We(e, t, n) {
|
|
1826
1825
|
let r = Z(t, n, !0);
|
|
1827
1826
|
if (n.getBlock(r.id).type !== "space") {
|
|
1828
|
-
let n = c(), i = await
|
|
1829
|
-
r.colorIndex !== void 0 &&
|
|
1827
|
+
let n = c(), i = await N(e, r, { config: n });
|
|
1828
|
+
r.colorIndex !== void 0 && pe(i, r.colorIndex, n.theme, n.themeVariables?.borderColorArray), t.intersect = r?.intersect, me(r);
|
|
1830
1829
|
}
|
|
1831
1830
|
}
|
|
1832
1831
|
e(We, "insertBlockPositioned");
|
|
@@ -1843,7 +1842,7 @@ async function Ke(e, t, n) {
|
|
|
1843
1842
|
}
|
|
1844
1843
|
e(Ke, "insertBlocks");
|
|
1845
1844
|
async function $(e, t, n, r, i) {
|
|
1846
|
-
let a = new
|
|
1845
|
+
let a = new he({
|
|
1847
1846
|
multigraph: !0,
|
|
1848
1847
|
compound: !0
|
|
1849
1848
|
});
|
|
@@ -1875,23 +1874,23 @@ async function $(e, t, n, r, i) {
|
|
|
1875
1874
|
x: s.x,
|
|
1876
1875
|
y: s.y
|
|
1877
1876
|
}
|
|
1878
|
-
],
|
|
1879
|
-
|
|
1877
|
+
], d = i ? `${i}-${n.id}` : n.id, p = `${n.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${n.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
|
|
1878
|
+
l(e, {
|
|
1880
1879
|
...n,
|
|
1881
|
-
id:
|
|
1880
|
+
id: d,
|
|
1882
1881
|
arrowTypeEnd: n.arrowTypeEnd,
|
|
1883
1882
|
arrowTypeStart: n.arrowTypeStart,
|
|
1884
1883
|
points: c,
|
|
1885
|
-
classes:
|
|
1886
|
-
}, {}, "block", a.node(n.start), a.node(n.end), i), n.label && (await
|
|
1884
|
+
classes: p
|
|
1885
|
+
}, {}, "block", a.node(n.start), a.node(n.end), i), n.label && (await f(e, {
|
|
1887
1886
|
...n,
|
|
1888
1887
|
label: n.label,
|
|
1889
1888
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
1890
1889
|
arrowTypeEnd: n.arrowTypeEnd,
|
|
1891
1890
|
arrowTypeStart: n.arrowTypeStart,
|
|
1892
1891
|
points: c,
|
|
1893
|
-
classes:
|
|
1894
|
-
}),
|
|
1892
|
+
classes: p
|
|
1893
|
+
}), u({
|
|
1895
1894
|
...n,
|
|
1896
1895
|
x: c[1].x,
|
|
1897
1896
|
y: c[1].y
|
|
@@ -1901,7 +1900,7 @@ async function $(e, t, n, r, i) {
|
|
|
1901
1900
|
}
|
|
1902
1901
|
e($, "insertEdges");
|
|
1903
1902
|
var qe = {
|
|
1904
|
-
parser:
|
|
1903
|
+
parser: Se,
|
|
1905
1904
|
db: Re,
|
|
1906
1905
|
renderer: {
|
|
1907
1906
|
draw: /* @__PURE__ */ e(async function(e, r, i, a) {
|
|
@@ -1909,20 +1908,20 @@ var qe = {
|
|
|
1909
1908
|
u.setDiagramId(r);
|
|
1910
1909
|
let d;
|
|
1911
1910
|
s === "sandbox" && (d = n("#i" + r));
|
|
1912
|
-
let f = n(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"),
|
|
1913
|
-
|
|
1911
|
+
let f = n(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), m = s === "sandbox" ? f.select(`[id="${r}"]`) : n(`[id="${r}"]`);
|
|
1912
|
+
ce(m, c()), p(m, [
|
|
1914
1913
|
"point",
|
|
1915
1914
|
"circle",
|
|
1916
1915
|
"cross"
|
|
1917
1916
|
], a.type, r);
|
|
1918
|
-
let
|
|
1919
|
-
await Ge(
|
|
1920
|
-
let
|
|
1921
|
-
await Ke(
|
|
1922
|
-
let
|
|
1923
|
-
if (
|
|
1924
|
-
let e = Math.max(1, Math.round(.125 * (
|
|
1925
|
-
o(
|
|
1917
|
+
let h = u.getBlocks(), g = u.getBlocksFlat(), _ = u.getEdges(), v = m.insert("g").attr("class", "block");
|
|
1918
|
+
await Ge(v, h, u);
|
|
1919
|
+
let y = He(u);
|
|
1920
|
+
await Ke(v, h, u), await $(v, _, g, u, r);
|
|
1921
|
+
let b = v.node()?.getBBox(), x = b && Number.isFinite(b.width) && Number.isFinite(b.height) ? b : y;
|
|
1922
|
+
if (x) {
|
|
1923
|
+
let e = Math.max(1, Math.round(.125 * (x.width / x.height))), n = x.height + e + 10, r = x.width + 10, { useMaxWidth: i } = l;
|
|
1924
|
+
o(m, n, r, !!i), t.debug("Here Bounds", y, x), m.attr("viewBox", `${x.x - 5} ${x.y - 5} ${x.width + 10} ${x.height + 10}`);
|
|
1926
1925
|
}
|
|
1927
1926
|
}, "draw"),
|
|
1928
1927
|
getClasses: /* @__PURE__ */ e(function(e, t) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-DSNLSHJZ-BxQ7lMXY.cjs"),r=require("./channel-AESWk0Yw.cjs"),i=require("./chunk-7S6XSTFO-ejBVk-tI.cjs");require("./chunk-YZO67HFG-DCQIFG8j.cjs"),require("./chunk-AQDTSKZB-B-MpZ-y2.cjs");const a=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs"),o=require("./chunk-DUW6YSOI-2RXTEh_8.cjs");require("./chunk-UHW7PFBP-Bays5Zi8.cjs");const s=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs");require("./chunk-HAGFOTED-BUPxFGdn.cjs");const c=require("./chunk-ZAUX2LTX-DIQkgUFr.cjs"),l=require("./chunk-WQQL4CDK-DxEEyQzx.cjs"),u=require("./graphlib-BaETKKSa.cjs");function d(e){return Array.isArray(e)}function f(e){if(i.x(e))return e;let t=i.K(e);if(!p(e))return{};if(d(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(i.y(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?g(r,e):m(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return m(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return _(n,e),m(n,e),h(n,e),n}function p(e){switch(i.K(e)){case i.w:case i.E:case i.T:case i.O:case i.D:case i.k:case i.A:case i.j:case i.P:case i.M:case i.N:case i.F:case i.I:case i.L:case i.R:case i.z:case i.B:case i.V:case i.W:case i.G:case i.H:case i.U:return!0;default:return!1}}function m(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function h(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function g(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function _(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var v=(function(){var t=e.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:e.n(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:e.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),t(d,[2,16],{14:22,15:f,16:p}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(m,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:o},{10:n,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},t(m,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(h,[2,30]),{18:[1,43]},{18:[1,44]},t(m,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},t(d,[2,27]),t(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},t(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:e.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.n(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./chunk-DQASFODM-BBkQ8gE7.cjs"),i=require("./chunk-6MUBBAK2-BTabKnTR.cjs");require("./chunk-R3KSYZAL-BQPJVcO7.cjs"),require("./chunk-STOXU5M4-CmoaBap6.cjs");const a=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs"),o=require("./chunk-DUW6YSOI-2RXTEh_8.cjs");require("./chunk-X4PVCEUW-Djs21j48.cjs");const s=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs");require("./chunk-AXFCVDMN-B6dhmE32.cjs");const c=require("./chunk-LEVMRMFU-BFGXlIAt.cjs"),l=require("./graphlib-BaETKKSa.cjs");function u(e){return Array.isArray(e)}function d(e){if(i.x(e))return e;let t=i.K(e);if(!f(e))return{};if(u(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(i.y(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?h(r,e):p(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return p(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return g(n,e),p(n,e),m(n,e),n}function f(e){switch(i.K(e)){case i.w:case i.E:case i.T:case i.O:case i.D:case i.k:case i.A:case i.j:case i.P:case i.M:case i.N:case i.F:case i.I:case i.L:case i.R:case i.z:case i.B:case i.V:case i.W:case i.G:case i.H:case i.U:return!0;default:return!1}}function p(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function m(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function h(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function g(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var _=(function(){var t=e.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:e.n(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:e.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},t(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),t(d,[2,16],{14:22,15:f,16:p}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(m,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,31:o},{10:n,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},t(m,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(h,[2,30]),{18:[1,43]},{18:[1,44]},t(m,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},t(d,[2,27]),t(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},t(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:e.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.n(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:e.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e.n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={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:e.n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e.n(function(){return this._more=!0,this},`more`),reject:e.n(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:e.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
5
|
`+t+`^`},`showPosition`),test_match:e.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e.n(function(){return this.next()||this.lex()},`lex`),begin:e.n(function(e){this.conditionStack.push(e)},`begin`),popState:e.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.n(function(e){this.begin(e)},`pushState`),stateStackSize:e.n(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e.n(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return e.n(v,`Parser`),v.prototype=_,_.Parser=v,new v})();v.parser=v;var y=v,b=new Map,x=[],S=new Map,C=`color`,w=`fill`,T=`bgFill`,E=`,`,D=new Map,O=``,k=e.n(e=>n.s.sanitizeText(e,n.b()),`sanitizeText`),A=e.n(function(e,t=``){let n=D.get(e);n||(n={id:e,styles:[],textStyles:[]},D.set(e,n)),t?.split(E).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(C).exec(e)){let e=t.replace(w,T).replace(C,w);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),j=e.n(function(e,t=``){let n=b.get(e);t!=null&&(n.styles=t.split(E))},`addStyle2Node`),M=e.n(function(e,t){e.split(`,`).forEach(function(e){let n=b.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},b.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),N=0,P=e.n((e,n)=>{let r=e.flat(),i=[],a=r.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of r)if(typeof a==`number`&&a>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>a&&t.m.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`),e.label&&=k(e.label),e.type===`classDef`)A(e.id,e.css);else if(e.type===`applyClass`)M(e.id,e?.styleClass??``);else if(e.type===`applyStyles`)e?.stylesStr&&j(e.id,e?.stylesStr);else if(e.type===`column-setting`)n.columns=e.columns??-1;else if(e.type===`edge`){let t=(S.get(e.id)??0)+1;S.set(e.id,t),e.id=t+`-`+e.id,x.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=b.get(e.id);if(t===void 0?(e.type===`composite`&&(e.colorIndex=N++),b.set(e.id,e)):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&P(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n<t;n++){let t=f(e);t.id=t.id+`-`+n,b.set(t.id,t),i.push(t)}}else t===void 0&&i.push(e)}n.children=i},`populateBlockDatabase`),F=[],I={id:`root`,type:`composite`,children:[],columns:-1},ee=e.n(()=>{t.m.debug(`Clear called`),n.a(),I={id:`root`,type:`composite`,children:[],columns:-1},b=new Map([[`root`,I]]),F=[],D=new Map,x=[],S=new Map,O=``,N=0},`clear`);function L(e){switch(t.m.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return t.m.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}e.n(L,`typeStr2Type`);function R(e){switch(t.m.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}e.n(R,`edgeTypeStr2Type`);function z(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}e.n(z,`edgeStrToEdgeData`);function B(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}e.n(B,`edgeStrToEdgeStartData`);function V(e){return e.includes(`==`)?`thick`:`normal`}e.n(V,`edgeStrToThickness`);function H(e){return e.includes(`.-`)?`dotted`:`solid`}e.n(H,`edgeStrToPattern`);var U=0,te={getConfig:e.n(()=>n.y().block,`getConfig`),typeStr2Type:L,edgeTypeStr2Type:R,edgeStrToEdgeData:z,edgeStrToEdgeStartData:B,edgeStrToThickness:V,edgeStrToPattern:H,getLogger:e.n(()=>t.m,`getLogger`),getBlocksFlat:e.n(()=>[...b.values()],`getBlocksFlat`),getBlocks:e.n(()=>F||[],`getBlocks`),getEdges:e.n(()=>x,`getEdges`),setHierarchy:e.n(e=>{I.children=e,P(e,I),F=I.children},`setHierarchy`),getBlock:e.n(e=>b.get(e),`getBlock`),setBlock:e.n(e=>{b.set(e.id,e)},`setBlock`),getColumns:e.n(e=>{let t=b.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:e.n(function(){return D},`getClasses`),clear:ee,generateId:e.n(()=>(U++,`id-`+Math.random().toString(36).substr(2,12)+`-`+U),`generateId`),setDiagramId:e.n(e=>{O=e},`setDiagramId`),getDiagramId:e.n(()=>O,`getDiagramId`)},ne=e.n(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!s.i(t,r))return``;let i=s.o(e.look),a=s.r(n),o=``;for(let t=0;t<s.n(e.THEME_COLOR_LIMIT,r);t++){let e=r[t%r.length],s=a?`fill: ${n[t%n.length]};`:``,c=`[data-look="${i}"][data-color-id="color-${t}"]`;o+=`
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e.n(function(){return this.next()||this.lex()},`lex`),begin:e.n(function(e){this.conditionStack.push(e)},`begin`),popState:e.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.n(function(e){this.begin(e)},`pushState`),stateStackSize:e.n(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:e.n(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return e.n(v,`Parser`),v.prototype=_,_.Parser=v,new v})();_.parser=_;var v=_,y=new Map,b=[],x=new Map,S=`color`,C=`fill`,w=`bgFill`,T=`,`,E=new Map,D=``,O=e.n(e=>n.s.sanitizeText(e,n.b()),`sanitizeText`),k=e.n(function(e,t=``){let n=E.get(e);n||(n={id:e,styles:[],textStyles:[]},E.set(e,n)),t?.split(T).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(S).exec(e)){let e=t.replace(C,w).replace(S,C);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),A=e.n(function(e,t=``){let n=y.get(e);t!=null&&(n.styles=t.split(T))},`addStyle2Node`),j=e.n(function(e,t){e.split(`,`).forEach(function(e){let n=y.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},y.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),M=0,N=e.n((e,n)=>{let r=e.flat(),i=[],a=r.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of r)if(typeof a==`number`&&a>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>a&&t.m.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`),e.label&&=O(e.label),e.type===`classDef`)k(e.id,e.css);else if(e.type===`applyClass`)j(e.id,e?.styleClass??``);else if(e.type===`applyStyles`)e?.stylesStr&&A(e.id,e?.stylesStr);else if(e.type===`column-setting`)n.columns=e.columns??-1;else if(e.type===`edge`){let t=(x.get(e.id)??0)+1;x.set(e.id,t),e.id=t+`-`+e.id,b.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=y.get(e.id);if(t===void 0?(e.type===`composite`&&(e.colorIndex=M++),y.set(e.id,e)):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&N(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n<t;n++){let t=d(e);t.id=t.id+`-`+n,y.set(t.id,t),i.push(t)}}else t===void 0&&i.push(e)}n.children=i},`populateBlockDatabase`),P=[],F={id:`root`,type:`composite`,children:[],columns:-1},ee=e.n(()=>{t.m.debug(`Clear called`),n.a(),F={id:`root`,type:`composite`,children:[],columns:-1},y=new Map([[`root`,F]]),P=[],E=new Map,b=[],x=new Map,D=``,M=0},`clear`);function I(e){switch(t.m.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return t.m.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}e.n(I,`typeStr2Type`);function L(e){switch(t.m.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}e.n(L,`edgeTypeStr2Type`);function R(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}e.n(R,`edgeStrToEdgeData`);function z(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}e.n(z,`edgeStrToEdgeStartData`);function B(e){return e.includes(`==`)?`thick`:`normal`}e.n(B,`edgeStrToThickness`);function V(e){return e.includes(`.-`)?`dotted`:`solid`}e.n(V,`edgeStrToPattern`);var H=0,te={getConfig:e.n(()=>n.y().block,`getConfig`),typeStr2Type:I,edgeTypeStr2Type:L,edgeStrToEdgeData:R,edgeStrToEdgeStartData:z,edgeStrToThickness:B,edgeStrToPattern:V,getLogger:e.n(()=>t.m,`getLogger`),getBlocksFlat:e.n(()=>[...y.values()],`getBlocksFlat`),getBlocks:e.n(()=>P||[],`getBlocks`),getEdges:e.n(()=>b,`getEdges`),setHierarchy:e.n(e=>{F.children=e,N(e,F),P=F.children},`setHierarchy`),getBlock:e.n(e=>y.get(e),`getBlock`),setBlock:e.n(e=>{y.set(e.id,e)},`setBlock`),getColumns:e.n(e=>{let t=y.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:e.n(function(){return E},`getClasses`),clear:ee,generateId:e.n(()=>(H++,`id-`+Math.random().toString(36).substr(2,12)+`-`+H),`generateId`),setDiagramId:e.n(e=>{D=e},`setDiagramId`),getDiagramId:e.n(()=>D,`getDiagramId`)},ne=e.n(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!s.i(t,r))return``;let i=s.o(e.look),a=s.r(n),o=``;for(let t=0;t<s.n(e.THEME_COLOR_LIMIT,r);t++){let e=r[t%r.length],s=a?`fill: ${n[t%n.length]};`:``,c=`[data-look="${i}"][data-color-id="color-${t}"]`;o+=`
|
|
7
7
|
|
|
8
8
|
${c}.node rect.composite {
|
|
9
9
|
stroke: ${e};
|
|
10
10
|
${s}
|
|
11
11
|
}
|
|
12
|
-
`}return o},`genColor`),
|
|
12
|
+
`}return o},`genColor`),U=e.n((e,t)=>{let i=r.h,a=i(e,`r`),o=i(e,`g`),s=i(e,`b`);return n.at(a,o,s,t)},`fade`),re=e.n(e=>`${ne(e)}
|
|
13
13
|
.label {
|
|
14
14
|
font-family: ${e.fontFamily};
|
|
15
15
|
color: ${e.nodeTextColor||e.textColor};
|
|
@@ -99,9 +99,9 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.node .cluster {
|
|
102
|
-
// fill: ${
|
|
103
|
-
fill: ${
|
|
104
|
-
stroke: ${
|
|
102
|
+
// fill: ${U(e.mainBkg,.5)};
|
|
103
|
+
fill: ${U(e.clusterBkg,.5)};
|
|
104
|
+
stroke: ${U(e.clusterBorder,.2)};
|
|
105
105
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
106
106
|
stroke-width: 1px;
|
|
107
107
|
}
|
|
@@ -137,4 +137,4 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
|
|
|
137
137
|
fill: ${e.textColor};
|
|
138
138
|
}
|
|
139
139
|
${a.t()}
|
|
140
|
-
`,`getStyles`);function
|
|
140
|
+
`,`getStyles`);function W(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}e.n(W,`calculateBlockPosition`);var ie=e.n(e=>{let n=0,r=0;for(let i of e.children){let{width:e,height:a,x:o,y:s}=i.size??{width:0,height:0,x:0,y:0};if(t.m.debug(`getMaxChildSize abc95 child:`,i.id,`width:`,e,`height:`,a,`x:`,o,`y:`,s,i.type),i.type===`space`)continue;let c=e/(i.widthInColumns??1);c>n&&(n=c),a>r&&(r=a)}return{width:n,height:r}},`getMaxChildSize`);function G(e,n,r=0,i=0,a=8){t.m.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,r),e?.size?.width||(e.size={width:r,height:i,x:0,y:0});let o=0,s=0;if(e.children?.length>0){for(let t of e.children)G(t,n,0,0,a);let c=ie(e);o=c.width,s=c.height,t.m.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,o,s);for(let n of e.children)n.size&&(t.m.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${o} ${s} ${JSON.stringify(n.size)}`),n.size.width=o*(n.widthInColumns??1)+a*((n.widthInColumns??1)-1),n.size.height=s,n.size.x=0,n.size.y=0,t.m.debug(`abc95 updating size of ${e.id} children child:${n.id} maxWidth:${o} maxHeight:${s}`));for(let t of e.children)G(t,n,o,s,a);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l<u&&(d=l);let f=Math.ceil(u/d),p=d*(o+a)+a,m=f*(s+a)+a;if(p<r){t.m.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${p}`),p=r,m=i;let n=(r-d*a-a)/d,c=(i-f*a-a)/f;t.m.debug(`Size indata abc88`,e.id,`childWidth`,n,`maxWidth`,o),t.m.debug(`Size indata abc88`,e.id,`childHeight`,c,`maxHeight`,s),t.m.debug(`Size indata abc88 xSize`,d,`padding`,a);for(let t of e.children)t.size&&(t.size.width=n,t.size.height=c,t.size.x=0,t.size.y=0)}if(t.m.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${f} columns ${l}${e.children.length} width=${Math.max(p,e.size?.width||0)}`),p<(e?.size?.width||0)){p=e?.size?.width||0;let n=l>0?Math.min(e.children.length,l):e.children.length;if(n>0){let r=(p-n*a-a)/n;t.m.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,r);for(let t of e.children)t.size&&(t.size.width=r)}}e.size={width:p,height:m,x:0,y:0}}t.m.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}e.n(G,`setBlockSizes`);function K(e,n,r=8){t.m.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let i=e.columns??-1;if(t.m.debug(`layoutBlocks columns abc95`,e.id,`=>`,i,e),e.children&&e.children.length>0){let a=e?.children[0]?.size?.width??0,o=e.children.length*a+(e.children.length-1)*r;t.m.debug(`widthOfChildren 88`,o,`posX`);let s=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=W(i,t),r=s.get(e)??0;n.size.height>r&&s.set(e,n.size.height);let a=n?.widthInColumns??1;i>0&&(a=Math.min(a,i-t%i)),t+=a}}let c=new Map;{let e=0,t=[...s.keys()].sort((e,t)=>e-t);for(let n of t)c.set(n,e),e+=(s.get(n)??0)+r}let l=0;t.m.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-r,d=0;for(let a of e.children){let o=e;if(!a.size)continue;let{width:f,height:p}=a.size,{px:m,py:h}=W(i,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-r,t.m.debug(`New row in layout for block`,e.id,` and child `,a.id,d)),t.m.debug(`abc89 layout blocks (child) id: ${a.id} Pos: ${l} (px, py) ${m},${h} (${o?.size?.x},${o?.size?.y}) parent: ${o.id} width: ${f}${r}`),o.size){let e=f/2;a.size.x=u+r+e,t.m.debug(`abc91 layout blocks (calc) px, pyid:${a.id} startingPos=X${u} new startingPosX${a.size.x} ${e} padding=${r} width=${f} halfWidth=${e} => x:${a.size.x} y:${a.size.y} ${a.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(a?.widthInColumns??1)/2}`),u=a.size.x+e;let n=c.get(h)??0,i=s.get(h)??p;a.size.y=o.size.y-o.size.height/2+n+i/2+r,t.m.debug(`abc88 layout blocks (calc) px, pyid:${a.id}startingPosX${u}${r}${e}=>x:${a.size.x}y:${a.size.y}${a.widthInColumns}(width * (child?.w || 1)) / 2${f*(a?.widthInColumns??1)/2}`)}a.children&&K(a,n,r);let g=a?.widthInColumns??1;i>0&&(g=Math.min(g,i-l%i)),l+=g,t.m.debug(`abc88 columnsPos`,a,l)}}t.m.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}e.n(K,`layoutBlocks`);function q(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2<t&&(t=a-s/2),o-c/2<n&&(n=o-c/2),a+s/2>r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=q(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}e.n(q,`findBounds`);function J(e){let r=e.getBlock(`root`);if(!r)return;let i=n.b()?.block?.padding??8;G(r,e,0,0,i),K(r,e,i),t.m.debug(`getBlocks`,JSON.stringify(r,null,2));let{minX:a,minY:o,maxX:s,maxY:c}=q(r),l=c-o;return{x:a,y:o,width:s-a,height:l}}e.n(J,`layout`);function Y(e,t,r=!1){let a=e,o=`default`;(a?.classes?.length||0)>0&&(o=(a?.classes??[]).join(` `)),o+=` flowchart-label`;let s=(a?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),c=0,l=`rect`,u;switch(a.type){case`round`:c=5,l=`rect`;break;case`composite`:c=0,l=`composite`,u=0;break;case`square`:l=`rect`;break;case`diamond`:l=`question`;break;case`hexagon`:l=`hexagon`;break;case`block_arrow`:l=`block_arrow`;break;case`odd`:l=`rect_left_inv_arrow`;break;case`lean_right`:l=`lean_right`;break;case`lean_left`:l=`lean_left`;break;case`trapezoid`:l=`trapezoid`;break;case`inv_trapezoid`:l=`inv_trapezoid`;break;case`rect_left_inv_arrow`:l=`rect_left_inv_arrow`;break;case`circle`:l=`circle`;break;case`ellipse`:l=`ellipse`;break;case`stadium`:l=`stadium`;break;case`subroutine`:l=`subroutine`;break;case`cylinder`:l=`cylinder`;break;case`group`:l=`rect`;break;case`doublecircle`:l=`doublecircle`;break;default:l=`rect`}let d=i.u(a?.styles??[]),f=a.label,p=a.size??{width:0,height:0,x:0,y:0},m=t.getDiagramId();return{labelStyle:d.labelStyle,shape:l,label:f,labelText:f,rx:c,ry:c,class:o,cssClasses:o,cssStyles:a?.styles??[],cssCompiledStyles:s,style:d.style,id:a.id,domId:m?`${m}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:p.width||void 0,height:p.height||void 0,wrappingWidth:p.width||1/0,x:p.x,y:p.y,positioned:r,intersect:void 0,padding:u??n.y()?.block?.padding??0,widthInColumns:a.widthInColumns??1,colorIndex:a.colorIndex,look:n.y().look}}e.n(Y,`getNodeFromBlock`);async function X(e,t,r){let i=Y(t,r,!1);if(t.type===`group`)return;let a=n.y(),o=await c.r(e,i,{config:a}),s=o.node()?.getBBox()??{width:0,height:0},l=r.getBlock(i.id);l.size={width:s.width,height:s.height,x:0,y:0,node:o},r.setBlock(l),o.remove()}e.n(X,`calculateBlockSize`);async function Z(e,t,r){let i=Y(t,r,!0);if(r.getBlock(i.id).type!==`space`){let r=n.y(),a=await c.r(e,i,{config:r});i.colorIndex!==void 0&&s.s(a,i.colorIndex,r.theme,r.themeVariables?.borderColorArray),t.intersect=i?.intersect,c.i(i)}}e.n(Z,`insertBlockPositioned`);async function Q(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await Q(e,i.children,n,r)}e.n(Q,`performOperations`);async function $(e,t,n){await Q(e,t,n,X)}e.n($,`calculateBlockSizes`);async function ae(e,t,n){await Q(e,t,n,Z)}e.n(ae,`insertBlocks`);async function oe(e,t,n,i,a){let o=new l.t({multigraph:!0,compound:!0});o.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&o.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=i.getBlock(n.start),s=i.getBlock(n.end);if(t?.size&&s?.size){let i=t.size,c=s.size,l=[{x:i.x,y:i.y},{x:i.x+(c.x-i.x)/2,y:i.y+(c.y-i.y)/2},{x:c.x,y:c.y}],u=a?`${a}-${n.id}`:n.id,d=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;r.a(e,{...n,id:u,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d},{},`block`,o.node(n.start),o.node(n.end),a),n.label&&(await r.o(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d}),r.f({...n,x:l[1].x,y:l[1].y},{originalPath:l}))}}}e.n(oe,`insertEdges`);var se={parser:v,db:te,renderer:{draw:e.n(async function(e,i,a,s){let{securityLevel:c,block:l}=n.y(),u=s.db;u.setDiagramId(i);let d;c===`sandbox`&&(d=t.p(`#i`+i));let f=c===`sandbox`?t.p(d.nodes()[0].contentDocument.body):t.p(`body`),p=c===`sandbox`?f.select(`[id="${i}"]`):t.p(`[id="${i}"]`);o.t(p,n.y()),r.u(p,[`point`,`circle`,`cross`],s.type,i);let m=u.getBlocks(),h=u.getBlocksFlat(),g=u.getEdges(),_=p.insert(`g`).attr(`class`,`block`);await $(_,m,u);let v=J(u);await ae(_,m,u),await oe(_,g,h,u,i);let y=_.node()?.getBBox(),b=y&&Number.isFinite(y.width)&&Number.isFinite(y.height)?y:v;if(b){let e=Math.max(1,Math.round(.125*(b.width/b.height))),r=b.height+e+10,i=b.width+10,{useMaxWidth:a}=l;n.c(p,r,i,!!a),t.m.debug(`Here Bounds`,v,b),p.attr(`viewBox`,`${b.x-5} ${b.y-5} ${b.width+10} ${b.height+10}`)}},`draw`),getClasses:e.n(function(e,t){return t.db.getClasses()},`getClasses`)},styles:re};exports.diagram=se;
|