@pi-outpost/embed 0.58.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +5 -5
- package/dist/pi-outpost-embed.js +169 -155
- 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,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { p as t } from "./src-65Lfw03T.js";
|
|
3
|
-
import { A as n } from "./chunk-
|
|
3
|
+
import { A as n } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
4
|
import { t as r } from "./dist-CZhfI1u7.js";
|
|
5
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
5
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-HFQBQIA3.mjs
|
|
6
6
|
var i = r(), a = /* @__PURE__ */ e((e, t) => {
|
|
7
7
|
let n = e.append("rect");
|
|
8
8
|
if (n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), t.name && n.attr("name", t.name), t.rx && n.attr("rx", t.rx), t.ry && n.attr("ry", t.ry), t.attrs !== void 0) for (let e in t.attrs) n.attr(e, t.attrs[e]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs");var r=require("./dist-BB5r6V4R.cjs").t(),i=e.n((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),a=e.n((e,t)=>{i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),o=e.n((e,t)=>{let r=t.text.replace(n.A,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),s=e.n((e,t,n,i)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,r.sanitizeUrl)(i);a.attr(`xlink:href`,o)},`drawImage`),c=e.n((e,t,n,i)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,r.sanitizeUrl)(i);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),l=e.n(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),u=e.n(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),d=e.n(()=>{let e=t.p(`.mermaidTooltip`);return e.empty()&&(e=t.p(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-65Lfw03T.js";
|
|
3
|
-
import { b as n, y as r } from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { b as n, y as r } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
+
import { a as i, i as a, m as o, n as s, o as c, p as l, t as u, u as d } from "./chunk-DQASFODM-DAaU7yoa.js";
|
|
5
|
+
import { _ as f } from "./chunk-6MUBBAK2-DlUTxzYh.js";
|
|
6
|
+
import { o as p } from "./chunk-AXFCVDMN-DrVQa3gP.js";
|
|
7
|
+
import { i as m, n as h, r as g, t as ee } from "./chunk-LEVMRMFU-NLMudZfn.js";
|
|
8
8
|
import { t as _ } from "./graphlib-CQa_B3rm.js";
|
|
9
|
-
import { r as v, t as y } from "./chunk-
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
9
|
+
import { r as v, t as y } from "./chunk-M57EVK23-C8-Jp43x.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-KQLB2F66.mjs
|
|
11
11
|
function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
12
12
|
let n = e.insert("g").attr("class", "root");
|
|
13
13
|
return {
|
|
@@ -21,7 +21,7 @@ function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
|
21
21
|
e(b, "createLayoutElementGroups");
|
|
22
22
|
async function x(e, t, n) {
|
|
23
23
|
if (t.label) {
|
|
24
|
-
let { shapeSvg: r, bbox: i } = await
|
|
24
|
+
let { shapeSvg: r, bbox: i } = await p(e, n === void 0 ? t : {
|
|
25
25
|
...t,
|
|
26
26
|
width: n
|
|
27
27
|
});
|
|
@@ -36,7 +36,7 @@ async function x(e, t, n) {
|
|
|
36
36
|
}
|
|
37
37
|
e(x, "measureGroupLabel");
|
|
38
38
|
async function S(e, t, n) {
|
|
39
|
-
let r = await
|
|
39
|
+
let r = await g(e, t, n), i = r.node()?.getBBox() ?? {
|
|
40
40
|
width: 0,
|
|
41
41
|
height: 0
|
|
42
42
|
};
|
|
@@ -57,34 +57,34 @@ async function w(e, t, r = {}) {
|
|
|
57
57
|
let i = new _({
|
|
58
58
|
multigraph: !0,
|
|
59
59
|
compound: !0
|
|
60
|
-
}),
|
|
60
|
+
}), o = [...t.edges], s = n(), l = b(e), { edgeLabels: u, nodes: d } = l, f = /* @__PURE__ */ new Map(), p = new Map(t.nodes.map((e) => [e.id, e])), m = t.direction, h = e.node() != null;
|
|
61
61
|
await Promise.all(t.nodes.map(async (e) => {
|
|
62
62
|
if (e.isGroup) {
|
|
63
|
-
if (
|
|
63
|
+
if (h) {
|
|
64
64
|
let t = r.unwrapGroupLabels && e.labelType !== "markdown";
|
|
65
|
-
await x(
|
|
65
|
+
await x(d, e, t ? Infinity : void 0);
|
|
66
66
|
}
|
|
67
67
|
i.setNode(e.id, { ...e });
|
|
68
68
|
} else {
|
|
69
|
-
if (
|
|
70
|
-
let t = await S(
|
|
71
|
-
config:
|
|
72
|
-
dir: C(e,
|
|
69
|
+
if (h) {
|
|
70
|
+
let t = await S(d, e, {
|
|
71
|
+
config: s,
|
|
72
|
+
dir: C(e, p, m)
|
|
73
73
|
});
|
|
74
|
-
|
|
74
|
+
f.set(e.id, t);
|
|
75
75
|
}
|
|
76
76
|
i.setNode(e.id, { ...e });
|
|
77
77
|
}
|
|
78
78
|
}));
|
|
79
|
-
for (let e of
|
|
79
|
+
for (let e of o) h && a(e) && await c(u, e), i.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
80
80
|
if (globalThis.mermaidCaptureSizes) {
|
|
81
81
|
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-Uzko9_4n.js");
|
|
82
82
|
n(e, t);
|
|
83
83
|
}
|
|
84
84
|
return {
|
|
85
85
|
graph: i,
|
|
86
|
-
groups:
|
|
87
|
-
nodeElements:
|
|
86
|
+
groups: l,
|
|
87
|
+
nodeElements: f
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
e(w, "createGraphWithElements");
|
|
@@ -271,7 +271,7 @@ function V({ prepareLayout: t, measureLayout: n, runLayoutCore: r, paintLayout:
|
|
|
271
271
|
}
|
|
272
272
|
e(V, "createCommonLayoutRenderer");
|
|
273
273
|
function H() {
|
|
274
|
-
|
|
274
|
+
ee(), u(), y(), O();
|
|
275
275
|
}
|
|
276
276
|
e(H, "clearLayoutRenderState");
|
|
277
277
|
async function U(e, { element: t }, n) {
|
|
@@ -286,7 +286,7 @@ async function W(e, t, n = {}) {
|
|
|
286
286
|
}
|
|
287
287
|
e(W, "paintLayoutData");
|
|
288
288
|
async function G(e, t, n, r) {
|
|
289
|
-
t.clusterNode ?
|
|
289
|
+
t.clusterNode ? m(t) : K(t, n, r) ? await v(e.clusters, t) : m(t);
|
|
290
290
|
}
|
|
291
291
|
e(G, "paintLayoutNode");
|
|
292
292
|
function K(e, t, n) {
|
|
@@ -303,9 +303,9 @@ function J(e, t) {
|
|
|
303
303
|
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
304
304
|
}
|
|
305
305
|
e(J, "shouldSkipPaintEdge");
|
|
306
|
-
async function Y(e, t, n, r,
|
|
307
|
-
let
|
|
308
|
-
|
|
306
|
+
async function Y(e, t, n, r, o, l) {
|
|
307
|
+
let u = i(e.edgePaths, { ...t }, o.clusterDb ?? /* @__PURE__ */ new Map(), r.type, X(t.start, t, n, l, o), X(t.end, t, n, l, o), r.diagramId, Z(t, o), r.layoutAlgorithm);
|
|
308
|
+
a(t) && (s.has(t.id) || await c(e.edgeLabels, t), Q(t, u));
|
|
309
309
|
}
|
|
310
310
|
e(Y, "paintLayoutEdge");
|
|
311
311
|
function X(e, t, n, r, i) {
|
|
@@ -317,9 +317,9 @@ function Z(e, t) {
|
|
|
317
317
|
}
|
|
318
318
|
e(Z, "shouldSkipIntersect");
|
|
319
319
|
function Q(e, t) {
|
|
320
|
-
let n = t?.updatedPath ?? t?.originalPath, i = r(), { subGraphTitleTotalMargin: a } =
|
|
320
|
+
let n = t?.updatedPath ?? t?.originalPath, i = r(), { subGraphTitleTotalMargin: a } = h({ flowchart: i.flowchart ?? {} });
|
|
321
321
|
if (e.label) {
|
|
322
|
-
let n =
|
|
322
|
+
let n = s.get(e.id), { x: r, y: i } = l(e, t);
|
|
323
323
|
n.attr("transform", `translate(${r}, ${i + a / 2})`);
|
|
324
324
|
}
|
|
325
325
|
for (let [t, r] of [
|
|
@@ -329,7 +329,7 @@ function Q(e, t) {
|
|
|
329
329
|
["endRight", e.endLabelRight]
|
|
330
330
|
]) if (r) {
|
|
331
331
|
let { x: r, y: i } = $(e, t, n);
|
|
332
|
-
|
|
332
|
+
o.get(e.id)[t].attr("transform", `translate(${r}, ${i})`);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
e(Q, "positionRenderedEdgeLabel");
|
|
@@ -346,8 +346,8 @@ function $(e, t, n) {
|
|
|
346
346
|
x: e.x,
|
|
347
347
|
y: e.y
|
|
348
348
|
};
|
|
349
|
-
let
|
|
350
|
-
return
|
|
349
|
+
let i = t.startsWith("start") ? e.arrowTypeStart : e.arrowTypeEnd;
|
|
350
|
+
return f.calcTerminalLabelPosition(i ? 10 : 0, ne[t], n);
|
|
351
351
|
}
|
|
352
352
|
e($, "terminalLabelTranslate");
|
|
353
353
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-DSNLSHJZ-BxQ7lMXY.cjs"),r=require("./chunk-7S6XSTFO-ejBVk-tI.cjs"),i=require("./chunk-HAGFOTED-BUPxFGdn.cjs"),a=require("./chunk-ZAUX2LTX-DIQkgUFr.cjs"),o=require("./chunk-WQQL4CDK-DxEEyQzx.cjs"),s=require("./graphlib-BaETKKSa.cjs"),c=require("./chunk-HNE4Q36P-CCHAgwa3.cjs");function l(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}e.n(l,`createLayoutElementGroups`);async function u(e,t,n){if(t.label){let{shapeSvg:r,bbox:a}=await i.o(e,n===void 0?t:{...t,width:n});t.labelBBox={width:a.width,height:a.height},r.remove()}else t.labelBBox={width:0,height:0}}e.n(u,`measureGroupLabel`);async function d(e,t,n){let r=await a.r(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}e.n(d,`insertMeasuredNode`);function f(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}e.n(f,`resolveNodeDir`);async function p(e,t,r={}){let i=new s.t({multigraph:!0,compound:!0}),a=[...t.edges],c=n.b(),p=l(e),{edgeLabels:m,nodes:h}=p,g=new Map,_=new Map(t.nodes.map(e=>[e.id,e])),v=t.direction,y=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(y){let t=r.unwrapGroupLabels&&e.labelType!==`markdown`;await u(h,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(y){let t=await d(h,e,{config:c,dir:f(e,_,v)});g.set(e.id,t)}i.setNode(e.id,{...e})}}));for(let e of a)y&&o.r(e)&&await o.a(m,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>require("./sizeCapture-INFHLROL-bi8MyHwB.cjs"));n(e,t)}return{graph:i,groups:p,nodeElements:g}}e.n(p,`createGraphWithElements`);var m=new Map,h=new Map,g=new Map,_=e.n(()=>{h.clear(),g.clear(),m.clear()},`clear`),v=e.n((e,n)=>{let r=h.get(n)||[];return t.m.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),y=e.n((e,n)=>{let r=h.get(n)||[];return t.m.info(`Descendants of `,n,` is `,r),t.m.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||v(e.v,n)||v(e.w,n)||r.includes(e.w):(t.m.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),b=e.n((e,n,r,i)=>{t.m.debug(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.m.debug(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)b(a,n,r,i);else{let o=n.node(a);t.m.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.m.debug(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.m.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.m.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.m.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.m.debug(`Copying Edges`,s),s.forEach(a=>{t.m.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.m.info(`Edge data`,o,i);try{y(a,i)?(t.m.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.m.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.m.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.m.error(e)}})}t.m.debug(`Removing node`,a),n.removeNode(a)})},`copy`),x=e.n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)g.set(i,e),r=[...r,...x(i,t)];return r},`extractDescendants`),S=e.n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),C=e.n((e,n,r)=>{let i=n.children(e);if(t.m.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=C(e,n,r),i=S(n,r,t);if(t){if(i.length>0)a=t;else return t}}return a},`findNonClusterChild`),w=e.n(e=>!m.has(e)||!m.get(e).externalConnections?e:m.has(e)?m.get(e).id:e,`getAnchorId`),T=e.n((e,n)=>{if(!e||n>10)t.m.debug(`Opting out, no graph `);else{t.m.debug(`Opting in, graph `),e.nodes().forEach(function(n){e.children(n).length>0&&(t.m.debug(`Cluster identified`,n,` Replacement id in edges: `,C(n,e,n)),h.set(n,x(n,e)),m.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.m.debug(`Cluster identified`,n,h),i.forEach(e=>{v(e.v,n)^v(e.w,n)&&(t.m.debug(`Edge: `,e,` leaves cluster `,n),t.m.debug(`Descendants of XXX `,n,`: `,h.get(n)),m.get(n).externalConnections=!0)})):t.m.debug(`Not a cluster `,n,h)});for(let t of m.keys()){let n=m.get(t).id,r=e.parent(n);r!==t&&m.has(r)&&!m.get(r).externalConnections&&(m.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&m.get(t)?.externalConnections&&i&&k(e,n,t)){let r=A(e,t,e.parent(n));r&&(m.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.m.debug(`Fix XXX`,m,`ids:`,n.v,n.w,`Translating: `,m.get(n.v),` --- `,m.get(n.w)),m.get(n.v)||m.get(n.w)){if(t.m.debug(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=w(n.v),a=w(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);m.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);m.get(t).externalConnections=!0,r.toCluster=n.w}t.m.debug(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),E(e,0),t.m.trace(m)}},`adjustClustersAndEdges`),E=e.n((e,n)=>{if(n>10){t.m.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i)t.m.debug(`Done, no node has children`,e.nodes());else{t.m.debug(`Nodes = `,r,n);for(let i of r)if(t.m.debug(`Extracting node`,i,m,m.has(i)&&!m.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!m.has(i))t.m.debug(`Not a cluster`,i,n);else if(!m.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.m.debug(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;m.get(i)?.clusterData?.dir&&(r=m.get(i).clusterData.dir,t.m.debug(`Fixing dir`,m.get(i).clusterData.dir,r));let a=new s.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:m.get(i).clusterData,label:m.get(i).label,graph:a})}else t.m.debug(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!m.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.m.debug(m);r=e.nodes(),t.m.debug(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.m.debug(` Now next level`,i,r),r?.clusterNode&&E(r.graph,n+1)}}},`extractor`),D=e.n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=D(e,e.children(t));n=[...n,...r]}),n},`sorter`),O=e.n(e=>D(e,e.children()),`sortNodesByHierarchy`),k=e.n((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=m.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),A=e.n((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||v(i,n))continue;let r=C(i,e,t);if(r&&!k(e,r,t))return r}return null},`findSafeAnchorNode`);function j({prepareLayout:t,measureLayout:n,runLayoutCore:r,paintLayout:i,afterPaint:a,paintOptions:s}){let c=n??N;return e.n(async function(e,n,l,u){let d=n.select(`g`);(l?.insertMarkers??o.c)(d,e.markers,e.type,e.diagramId),M();let f={element:d,helpers:l,options:u};f.preparedLayout=await t?.(e,f);let p=await c(e,f),m=await r(e,f),h={...f,measure:p};i?await i(e,h,m):await P(e,h,s),await a?.(e,h,m)},`render`)}e.n(j,`createCommonLayoutRenderer`);function M(){a.t(),o.t(),c.t(),_()}e.n(M,`clearLayoutRenderState`);async function N(e,{element:t},n){return await p(t,e,n)}e.n(N,`defaultMeasureLayout`);async function P(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await F(i,r,t,n);let a=L(e.nodes);for(let r of e.edges)R(r,n)||await z(i,r,a,e,n,t)}e.n(P,`paintLayoutData`);async function F(e,t,n,r){t.clusterNode?a.i(t):I(t,n,r)?await c.r(e.clusters,t):a.i(t)}e.n(F,`paintLayoutNode`);function I(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}e.n(I,`shouldPaintAsCluster`);function L(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}e.n(L,`buildNodeLookup`);function R(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}e.n(R,`shouldSkipPaintEdge`);async function z(e,t,n,r,i,a){let s=o.i(e.edgePaths,{...t},i.clusterDb??new Map,r.type,B(t.start,t,n,a,i),B(t.end,t,n,a,i),r.diagramId,V(t,i),r.layoutAlgorithm);o.r(t)&&(o.n.has(t.id)||await o.a(e.edgeLabels,t),H(t,s))}e.n(z,`paintLayoutEdge`);function B(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}e.n(B,`getRenderedNode`);function V(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}e.n(V,`shouldSkipIntersect`);function H(e,t){let r=t?.updatedPath??t?.originalPath,i=n.y(),{subGraphTitleTotalMargin:s}=a.n({flowchart:i.flowchart??{}});if(e.label){let n=o.n.get(e.id),{x:r,y:i}=o.u(e,t);n.attr(`transform`,`translate(${r}, ${i+s/2})`)}for(let[t,n]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(n){let{x:n,y:i}=W(e,t,r);o.d.get(e.id)[t].attr(`transform`,`translate(${n}, ${i})`)}}e.n(H,`positionRenderedEdgeLabel`);var U={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function W(e,t,n){let i=e.terminalLabelCenters?.[t];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let a=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return r._.calcTerminalLabelPosition(a?10:0,U[t],n)}e.n(W,`terminalLabelTranslate`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
|
|
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"),a=require("./chunk-AXFCVDMN-B6dhmE32.cjs"),o=require("./chunk-LEVMRMFU-BFGXlIAt.cjs"),s=require("./graphlib-BaETKKSa.cjs"),c=require("./chunk-M57EVK23-BSZ7OEGY.cjs");function l(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}e.n(l,`createLayoutElementGroups`);async function u(e,t,n){if(t.label){let{shapeSvg:r,bbox:i}=await a.o(e,n===void 0?t:{...t,width:n});t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}e.n(u,`measureGroupLabel`);async function d(e,t,n){let r=await o.r(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}e.n(d,`insertMeasuredNode`);function f(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}e.n(f,`resolveNodeDir`);async function p(e,t,i={}){let a=new s.t({multigraph:!0,compound:!0}),o=[...t.edges],c=n.b(),p=l(e),{edgeLabels:m,nodes:h}=p,g=new Map,_=new Map(t.nodes.map(e=>[e.id,e])),v=t.direction,y=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(y){let t=i.unwrapGroupLabels&&e.labelType!==`markdown`;await u(h,e,t?1/0:void 0)}a.setNode(e.id,{...e})}else{if(y){let t=await d(h,e,{config:c,dir:f(e,_,v)});g.set(e.id,t)}a.setNode(e.id,{...e})}}));for(let e of o)y&&r.i(e)&&await r.o(m,e),a.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>require("./sizeCapture-INFHLROL-bi8MyHwB.cjs"));n(e,t)}return{graph:a,groups:p,nodeElements:g}}e.n(p,`createGraphWithElements`);var m=new Map,h=new Map,g=new Map,_=e.n(()=>{h.clear(),g.clear(),m.clear()},`clear`),v=e.n((e,n)=>{let r=h.get(n)||[];return t.m.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),y=e.n((e,n)=>{let r=h.get(n)||[];return t.m.info(`Descendants of `,n,` is `,r),t.m.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||v(e.v,n)||v(e.w,n)||r.includes(e.w):(t.m.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),b=e.n((e,n,r,i)=>{t.m.debug(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.m.debug(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)b(a,n,r,i);else{let o=n.node(a);t.m.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.m.debug(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.m.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.m.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.m.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.m.debug(`Copying Edges`,s),s.forEach(a=>{t.m.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.m.info(`Edge data`,o,i);try{y(a,i)?(t.m.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.m.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.m.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.m.error(e)}})}t.m.debug(`Removing node`,a),n.removeNode(a)})},`copy`),x=e.n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)g.set(i,e),r=[...r,...x(i,t)];return r},`extractDescendants`),S=e.n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),C=e.n((e,n,r)=>{let i=n.children(e);if(t.m.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=C(e,n,r),i=S(n,r,t);if(t){if(i.length>0)a=t;else return t}}return a},`findNonClusterChild`),w=e.n(e=>!m.has(e)||!m.get(e).externalConnections?e:m.has(e)?m.get(e).id:e,`getAnchorId`),T=e.n((e,n)=>{if(!e||n>10)t.m.debug(`Opting out, no graph `);else{t.m.debug(`Opting in, graph `),e.nodes().forEach(function(n){e.children(n).length>0&&(t.m.debug(`Cluster identified`,n,` Replacement id in edges: `,C(n,e,n)),h.set(n,x(n,e)),m.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.m.debug(`Cluster identified`,n,h),i.forEach(e=>{v(e.v,n)^v(e.w,n)&&(t.m.debug(`Edge: `,e,` leaves cluster `,n),t.m.debug(`Descendants of XXX `,n,`: `,h.get(n)),m.get(n).externalConnections=!0)})):t.m.debug(`Not a cluster `,n,h)});for(let t of m.keys()){let n=m.get(t).id,r=e.parent(n);r!==t&&m.has(r)&&!m.get(r).externalConnections&&(m.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&m.get(t)?.externalConnections&&i&&k(e,n,t)){let r=A(e,t,e.parent(n));r&&(m.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.m.debug(`Fix XXX`,m,`ids:`,n.v,n.w,`Translating: `,m.get(n.v),` --- `,m.get(n.w)),m.get(n.v)||m.get(n.w)){if(t.m.debug(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=w(n.v),a=w(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);m.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);m.get(t).externalConnections=!0,r.toCluster=n.w}t.m.debug(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),E(e,0),t.m.trace(m)}},`adjustClustersAndEdges`),E=e.n((e,n)=>{if(n>10){t.m.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i)t.m.debug(`Done, no node has children`,e.nodes());else{t.m.debug(`Nodes = `,r,n);for(let i of r)if(t.m.debug(`Extracting node`,i,m,m.has(i)&&!m.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!m.has(i))t.m.debug(`Not a cluster`,i,n);else if(!m.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.m.debug(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;m.get(i)?.clusterData?.dir&&(r=m.get(i).clusterData.dir,t.m.debug(`Fixing dir`,m.get(i).clusterData.dir,r));let a=new s.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:m.get(i).clusterData,label:m.get(i).label,graph:a})}else t.m.debug(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!m.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.m.debug(m);r=e.nodes(),t.m.debug(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.m.debug(` Now next level`,i,r),r?.clusterNode&&E(r.graph,n+1)}}},`extractor`),D=e.n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=D(e,e.children(t));n=[...n,...r]}),n},`sorter`),O=e.n(e=>D(e,e.children()),`sortNodesByHierarchy`),k=e.n((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=m.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),A=e.n((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||v(i,n))continue;let r=C(i,e,t);if(r&&!k(e,r,t))return r}return null},`findSafeAnchorNode`);function j({prepareLayout:t,measureLayout:n,runLayoutCore:i,paintLayout:a,afterPaint:o,paintOptions:s}){let c=n??N;return e.n(async function(e,n,l,u){let d=n.select(`g`);(l?.insertMarkers??r.u)(d,e.markers,e.type,e.diagramId),M();let f={element:d,helpers:l,options:u};f.preparedLayout=await t?.(e,f);let p=await c(e,f),m=await i(e,f),h={...f,measure:p};a?await a(e,h,m):await P(e,h,s),await o?.(e,h,m)},`render`)}e.n(j,`createCommonLayoutRenderer`);function M(){o.t(),r.t(),c.t(),_()}e.n(M,`clearLayoutRenderState`);async function N(e,{element:t},n){return await p(t,e,n)}e.n(N,`defaultMeasureLayout`);async function P(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await F(i,r,t,n);let a=L(e.nodes);for(let r of e.edges)R(r,n)||await z(i,r,a,e,n,t)}e.n(P,`paintLayoutData`);async function F(e,t,n,r){t.clusterNode?o.i(t):I(t,n,r)?await c.r(e.clusters,t):o.i(t)}e.n(F,`paintLayoutNode`);function I(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}e.n(I,`shouldPaintAsCluster`);function L(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}e.n(L,`buildNodeLookup`);function R(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}e.n(R,`shouldSkipPaintEdge`);async function z(e,t,n,i,a,o){let s=r.a(e.edgePaths,{...t},a.clusterDb??new Map,i.type,B(t.start,t,n,o,a),B(t.end,t,n,o,a),i.diagramId,V(t,a),i.layoutAlgorithm);r.i(t)&&(r.n.has(t.id)||await r.o(e.edgeLabels,t),H(t,s))}e.n(z,`paintLayoutEdge`);function B(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}e.n(B,`getRenderedNode`);function V(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}e.n(V,`shouldSkipIntersect`);function H(e,t){let i=t?.updatedPath??t?.originalPath,a=n.y(),{subGraphTitleTotalMargin:s}=o.n({flowchart:a.flowchart??{}});if(e.label){let n=r.n.get(e.id),{x:i,y:a}=r.p(e,t);n.attr(`transform`,`translate(${i}, ${a+s/2})`)}for(let[t,n]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(n){let{x:n,y:a}=W(e,t,i);r.m.get(e.id)[t].attr(`transform`,`translate(${n}, ${a})`)}}e.n(H,`positionRenderedEdgeLabel`);var U={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function W(e,t,n){let r=e.terminalLabelCenters?.[t];if(r)return{...r};if(!n)return{x:e.x,y:e.y};let a=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return i._.calcTerminalLabelPosition(a?10:0,U[t],n)}e.n(W,`terminalLabelTranslate`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-DQASFODM-BBkQ8gE7.cjs");var n=5,r=1e-5,i=2,a=.6,o=1e-6;function s(e){let t=[];for(let n=0;n<e.length-1;n++)t.push({a:e[n],b:e[n+1]});return t}e.n(s,`buildSegmentList`);function c(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,s=r.x-n.x,c=r.y-n.y,l=i*c-a*s;if(l===0)return null;let u=n.x-e.x,d=n.y-e.y,f=(u*c-d*s)/l,p=(u*a-d*i)/l;return f<=o||f>=1-o||p<=o||p>=1-o?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}e.n(c,`segmentIntersection`);function l(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}e.n(l,`isHorizontalSeg`);function u(e,t,r){if(e.curve!==`rounded`)return!1;let i=e.points,a=i[t],o=i[t+1];if(!a||!o)return!1;let s=Math.hypot(o.x-a.x,o.y-a.y),c=r*s,l=t>0?_(i[t-1],a,o,n):null;if(l&&c<l.cutLen)return!0;let u=t+2<i.length?_(a,o,i[t+2],n):null;return u!==null&&s-c<u.cutLen}e.n(u,`crossingSitsInRoundedCorner`);function d(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=s(r.points);for(let a=n+1;a<e.length;a++){let n=e[a],o=s(n.points);for(let[e,a]of i.entries())for(let[i,s]of o.entries()){let o=c(a.a,a.b,s.a,s.b);if(!o||u(r,e,o.tA)||u(n,i,o.tB))continue;let d=l(a);d!==l(s)&&d?t.push({jumpEdgeId:r.id,otherEdgeId:n.id,segIndex:e,t:o.tA,point:o.point}):t.push({jumpEdgeId:n.id,otherEdgeId:r.id,segIndex:i,t:o.tB,point:o.point})}}}return t}e.n(d,`findEdgeIntersections`);function f(e){return`${Math.round(e*1e3)/1e3}`}e.n(f,`fmt`);function p(e){return`${f(e.x)},${f(e.y)}`}e.n(p,`pointToString`);function m(e){let t=e.b.x-e.a.x,n=e.b.y-e.a.y;return Math.abs(t)>=Math.abs(n)?+(t>=0):+(n>=0)}e.n(m,`getArcSweepFlag`);function h(e,n){if(e.length<2)return e.map(e=>({...e}));let r=e.map(e=>({...e})),i=n.arrowTypeStart&&t.c[n.arrowTypeStart];if(i){let t=e[0],n=e[1],a=Math.atan2(n.y-t.y,n.x-t.x);r[0].x=t.x+i*Math.cos(a),r[0].y=t.y+i*Math.sin(a)}let a=n.arrowTypeEnd&&t.c[n.arrowTypeEnd];if(a){let t=e.length,n=e[t-2],i=e[t-1],o=Math.atan2(i.y-n.y,i.x-n.x);r[t-1].x=i.x-a*Math.cos(o),r[t-1].y=i.y-a*Math.sin(o)}return r}e.n(h,`applyMarkerOffsets`);function g(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},c={x:a+t*e.r,y:o+n*e.r},l=[`L${p(s)}`];return i===`arc`?l.push(`A${f(e.r)},${f(e.r)} 0 0 ${r} ${p(c)}`):l.push(`M${p(c)}`),l}e.n(g,`emitJump`);function _(e,t,n,i){let a=t.x-e.x,o=t.y-e.y,s=n.x-t.x,c=n.y-t.y,l=Math.hypot(a,o),u=Math.hypot(s,c);if(l<r||u<r)return null;let d=a/l,f=o/l,p=s/u,m=c/u,h=d*p+f*m,g=Math.acos(Math.max(-1,Math.min(1,h)));if(g<r||Math.abs(Math.PI-g)<r)return null;let _=Math.min(i/Math.sin(g/2),l/2,u/2);return{startX:t.x-d*_,startY:t.y-f*_,endX:t.x+p*_,endY:t.y+m*_,ctrlX:t.x,ctrlY:t.y,cutLen:_}}e.n(_,`computeRoundedCorner`);function v(e,t,r){let o=e.points;if(o.length<2)return``;let c=h(o,e),l=e.curve===`rounded`,u=s(c),d=new Map;for(let e of t){let t=u[e.segIndex];if(!t)continue;let n=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),i=d.get(e.segIndex)??[];i.push({t:e.t,point:e.point,d:e.t*n,r:r.jumpRadius}),d.set(e.segIndex,i)}let v=[`M${p(c[0])}`];for(let e=0;e<u.length;e++){let t=u[e],o=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),s=o===0?0:(t.b.x-t.a.x)/o,h=o===0?0:(t.b.y-t.a.y)/o,y=m(t),b=0;if(l&&e>0){let t=_(c[e-1],c[e],c[e+1]??c[e],n);t&&(b=t.cutLen)}let x=o,S=null;l&&e<u.length-1&&(S=_(c[e],c[e+1],c[e+2]??c[e+1],n),S&&(x=o-S.cutLen));let C=r.jumpRadius*a,w=[...d.get(e)??[]].sort((e,t)=>e.t-t.t).filter(e=>{let t=Math.min(e.d-b,x-e.d)-i;return e.r=Math.min(e.r,t),e.r>=C});for(let e=0;e<w.length-1;e++){let t=w[e+1].d-w[e].d;if(w[e].r+w[e+1].r>t){let n=t/2;w[e].r=Math.min(w[e].r,n),w[e+1].r=Math.min(w[e+1].r,n)}}for(let e of w)e.r<C||v.push(...g(e,s,h,y,r.jumpStyle));l&&S?(v.push(`L${f(S.startX)},${f(S.startY)}`),v.push(`Q${f(S.ctrlX)},${f(S.ctrlY)} ${f(S.endX)},${f(S.endY)}`)):v.push(`L${p(t.b)}`)}return v.join(` `)}e.n(v,`rewriteEdgePath`);function y(e){return/^[\d\s+,.LMelm-]*$/.test(e)}e.n(y,`isStraightPath`);function b(e){return!e||e===`linear`||e===`rounded`||e===`step`||e===`stepBefore`||e===`stepAfter`}e.n(b,`curveSupportsLineHops`);function x(e){if(!e)return null;try{let t=typeof atob==`function`?atob(e):Buffer.from(e,`base64`).toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;let r=[];for(let e of n)e&&typeof e.x==`number`&&typeof e.y==`number`&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}e.n(x,`decodeDataPoints`);function S(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=new Map;for(let e of r.querySelectorAll(`path[data-id]`)){let t=e.getAttribute(`data-id`);t!==null&&!a.has(t)&&a.set(t,e)}let o=[];for(let e of t){let t=a.get(e.id);if(!t)continue;let n=x(t.getAttribute(`data-points`))??e.points;o.push({...e,points:n})}let s=d(o);if(s.length===0)return;let c=new Map;for(let e of s){let t=c.get(e.jumpEdgeId)??[];t.push(e),c.set(e.jumpEdgeId,t)}for(let e of o){let t=c.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!b(r))continue;let o=a.get(e.id);if(!o||r===void 0&&!y(o.getAttribute(`d`)??``))continue;let s=o.getAttribute(`style`)??``,l=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),u=l?Number.parseFloat(l[1]):null,d=l?Number.parseFloat(l[2]):null,f=v(e,t,n);if(o.setAttribute(`d`,f),u!==null&&d!==null&&typeof o.getTotalLength==`function`){let e=o.getTotalLength(),t=`0 ${u} ${Math.max(0,e-u-d)} ${d}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);o.setAttribute(`style`,n)}}}e.n(S,`applyLineJumpsToSvg`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return S}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import {
|
|
3
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
2
|
+
import { c as t } from "./chunk-DQASFODM-DAaU7yoa.js";
|
|
3
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-KS47KZWR.mjs
|
|
4
4
|
var n = 5, r = 1e-5, i = 2, a = .6, o = 1e-6;
|
|
5
5
|
function s(e) {
|
|
6
6
|
let t = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-6MUBBAK2-BTabKnTR.cjs"),r=require("./chunk-AXFCVDMN-B6dhmE32.cjs");var i=e.n(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),a=new Map;async function o(e,t,i){let o,s;t.shape===`rect`&&(t.shape=t.rx&&t.ry?`roundedRect`:`squareRect`);let c=t.shape?r.s[t.shape]:void 0;if(!c)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let n;i.config.securityLevel===`sandbox`?n=`_top`:t.linkTarget&&(n=t.linkTarget||`_blank`),o=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,n??null),s=await c(o,t,i)}else s=await c(e,t,i),o=s;return o.attr(`data-look`,n.d(t.look)),t.tooltip&&s.attr(`title`,t.tooltip),a.set(t.id,o),t.haveCallback&&o.attr(`class`,o.attr(`class`)+` clickable`),o}e.n(o,`insertNode`);var s=e.n((e,t)=>{a.set(t.id,e)},`setNodeElem`),c=e.n(()=>{a.clear()},`clear`),l=e.n(e=>{let n=a.get(e.id);t.m.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?n.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):n.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-65Lfw03T.js";
|
|
3
|
-
import { d as n } from "./chunk-
|
|
4
|
-
import { s as r } from "./chunk-
|
|
5
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
3
|
+
import { d as n } from "./chunk-6MUBBAK2-DlUTxzYh.js";
|
|
4
|
+
import { s as r } from "./chunk-AXFCVDMN-DrVQa3gP.js";
|
|
5
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-LEVMRMFU.mjs
|
|
6
6
|
var i = /* @__PURE__ */ e(({ flowchart: e }) => {
|
|
7
7
|
let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
|
|
8
8
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./chunk-STOXU5M4-CmoaBap6.cjs"),i=require("./chunk-X4PVCEUW-Djs21j48.cjs"),a=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs"),o=require("./rough.esm-ChRLLRha.cjs"),s=require("./chunk-AXFCVDMN-B6dhmE32.cjs"),c=require("./chunk-LEVMRMFU-BFGXlIAt.cjs");var l=e.n(async(e,c,{variant:l=`swimlane`}={})=>{let u=l===`pool`,d=u?`pool swimlane`:`swimlane`,f=u?`pool-label swimlane-label`:`swimlane-label`,p=u?`pool-title swimlane-title`:`swimlane-title`,m=u?`pool-body swimlane-body`:`swimlane-body`,h=n.b(),{theme:g,themeVariables:_,handDrawnSeed:v}=h,{clusterBkg:y,clusterBorder:b,borderColorArray:x}=_,S=b,{labelStyles:C,nodeStyles:w,borderStyles:T,backgroundStyles:E}=i.i(c),D=e.insert(`g`).attr(`class`,`cluster `+d+` `+(c.cssClasses||``)).attr(`id`,c.domId??c.id).attr(`data-id`,c.id).attr(`data-et`,`cluster`).attr(`data-look`,c.look);a.s(D,c.colorIndex,g,x);let O=n.g(h.flowchart.htmlLabels),k=c.direction===`LR`,A=D.insert(`g`).attr(`class`,`cluster-label `+f),j=await r.n(A,c.label,{style:c.labelStyle,useHtmlLabels:O,isNode:!0,width:c.width}),M=j.getBBox();if(O){let e=j.children[0],n=t.p(j);M=e.getBoundingClientRect(),n.attr(`width`,M.width),n.attr(`height`,M.height)}let N=c.padding??0,P=c.width<=M.width+N?M.width+N:c.width;c.diff=c.width<=M.width+N?(P-c.width)/2-N:-N;let F=c.height,I=c.y-F/2,L=c.y+F/2,R=c.x-P/2,z=c.swimlaneContentTop===void 0?I+F/3:c.swimlaneContentTop,B=k?4:0,V=M.height+2*B,H,U;if(k){let e=Math.max(V,M.height+2*B),t=R+e,n=Math.max(0,P-e);if(c.look===`handDrawn`){let r=o.t.svg(D),a=i.a(c,{roughness:.7,fill:y,stroke:S,seed:v}),s=i.a(c,{roughness:.7,fill:`none`,stroke:S,seed:v}),l=r.rectangle(R,I,e,F,a);H=D.insert(()=>l,`:first-child`).attr(`class`,p);let u=r.rectangle(t,I,n,F,s);U=D.insert(()=>u,`:first-child`).attr(`class`,m),H.select(`path:nth-child(2)`).attr(`style`,T.join(`;`)),H.select(`path`).attr(`style`,E.join(`;`).replace(`fill`,`stroke`))}else H=D.insert(`rect`,`:first-child`),U=D.insert(`rect`,`:first-child`),H.attr(`class`,p).attr(`style`,w).attr(`x`,R).attr(`y`,I).attr(`width`,e).attr(`height`,F).attr(`fill`,y).attr(`stroke`,S),U.attr(`class`,m).attr(`style`,w).attr(`x`,t).attr(`y`,I).attr(`width`,n).attr(`height`,F).attr(`fill`,`none`).attr(`stroke`,S);let r=R+e/2,a=c.y;A.attr(`transform`,`translate(${r}, ${a}) rotate(-90) translate(${-M.width/2}, ${-M.height/2})`)}else{let e=Math.max(0,z-I),t=Math.min(V,e),n=I+t,r=Math.max(0,L-n),a=c.x-P/2;if(c.look===`handDrawn`){let e=o.t.svg(D),s=i.a(c,{roughness:.7,fill:y,stroke:S,fillWeight:3,seed:v}),l=i.a(c,{roughness:.7,fill:`none`,stroke:S,seed:v}),u=e.rectangle(a,I,P,t,s);H=D.insert(()=>u,`:first-child`).attr(`class`,p);let d=e.rectangle(a,n,P,r,l);U=D.insert(()=>d,`:first-child`).attr(`class`,m),H.select(`path:nth-child(2)`).attr(`style`,T.join(`;`)),H.select(`path`).attr(`style`,E.join(`;`).replace(`fill`,`stroke`))}else H=D.insert(`rect`,`:first-child`),U=D.insert(`rect`,`:first-child`),H.attr(`class`,p).attr(`style`,w).attr(`x`,a).attr(`y`,I).attr(`width`,P).attr(`height`,t).attr(`fill`,y).attr(`stroke`,S),U.attr(`class`,m).attr(`style`,w).attr(`x`,a).attr(`y`,n).attr(`width`,P).attr(`height`,r).attr(`fill`,`none`).attr(`stroke`,S);let s=c.x-M.width/2,l=I+(t-M.height)/2;A.attr(`transform`,`translate(${s}, ${l})`)}if(t.m.trace(`Swimlane data `,c,JSON.stringify(c)),C){let e=A.select(`span`);e&&e.attr(`style`,C)}return c.offsetX=0,c.width=P,c.height=F,c.offsetY=M.height-N/2,c.intersect=function(e){return s.i(c,e)},{cluster:D,labelBBox:M}},`swimlane`),u=e.n(async(e,l)=>{t.m.info(`Creating subgraph rect for `,l.id,l);let u=n.b(),{theme:d,themeVariables:f,handDrawnSeed:p}=u,{clusterBkg:m,clusterBorder:h,borderColorArray:g}=f,{labelStyles:_,nodeStyles:v,borderStyles:y,backgroundStyles:b}=i.i(l),x=e.insert(`g`).attr(`class`,`cluster `+l.cssClasses).attr(`id`,l.domId).attr(`data-look`,l.look);a.s(x,l.colorIndex,d,g);let S=n.w(u),C=x.insert(`g`).attr(`class`,`cluster-label `),w;w=l.labelType===`markdown`?await r.n(C,l.label,{style:l.labelStyle,useHtmlLabels:S,isNode:!0,width:l.width}):await s.t(C,l.label,l.labelStyle||``,!1,!0);let T=w.getBBox();if(n.w(u)){let e=w.children[0],n=t.p(w);T=e.getBoundingClientRect(),n.attr(`width`,T.width),n.attr(`height`,T.height)}let E=l.width<=T.width+l.padding?T.width+l.padding:l.width;l.diff=l.width<=T.width+l.padding?(E-l.width)/2-l.padding:-l.padding;let D=l.height,O=l.x-E/2,k=l.y-D/2;t.m.trace(`Data `,l,JSON.stringify(l));let A;if(l.look===`handDrawn`){let e=o.t.svg(x),n=i.a(l,{roughness:.7,fill:m,stroke:h,fillWeight:3,seed:p}),r=e.path(s.n(O,k,E,D,0),n);A=x.insert(()=>(t.m.debug(`Rough node insert CXC`,r),r),`:first-child`),A.select(`path:nth-child(2)`).attr(`style`,y.join(`;`)),A.select(`path`).attr(`style`,b.join(`;`).replace(`fill`,`stroke`))}else A=x.insert(`rect`,`:first-child`),A.attr(`style`,v).attr(`rx`,l.rx).attr(`ry`,l.ry).attr(`x`,O).attr(`y`,k).attr(`width`,E).attr(`height`,D);let{subGraphTitleTopMargin:j}=c.n(u);if(C.attr(`transform`,`translate(${l.x-T.width/2}, ${l.y-l.height/2+j})`),_){let e=C.select(`span`);e&&e.attr(`style`,_)}let M=A.node().getBBox();return l.offsetX=0,l.width=M.width,l.height=M.height,l.offsetY=T.height-l.padding/2,l.intersect=function(e){return s.i(l,e)},{cluster:x,labelBBox:T}},`rect`),d=e.n((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return s.i(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),f=e.n(async(e,r)=>{let i=n.b(),{theme:c,themeVariables:l,handDrawnSeed:u}=i,{altBackground:d,borderColorArray:f,compositeBackground:p,compositeTitleBackground:m,nodeBorder:h}=l,g=e.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look);a.s(g,r.colorIndex,c,f);let _=g.insert(`g`,`:first-child`),v=g.insert(`g`).attr(`class`,`cluster-label`),y=g.append(`rect`),b=await s.t(v,r.label,r.labelStyle,void 0,!0),x=b.getBBox();if(n.w(i)){let e=b.children[0],n=t.p(b);x=e.getBoundingClientRect(),n.attr(`width`,x.width),n.attr(`height`,x.height)}let S=0*r.padding,C=S/2,w=(r.width<=x.width+r.padding?x.width+r.padding:r.width)+S;r.diff=r.width<=x.width+r.padding?(w-r.width)/2-r.padding:-r.padding;let T=r.height+S,E=r.height+S-x.height-6,D=r.x-w/2,O=r.y-T/2;r.width=w;let k=r.y-r.height/2-C+x.height+2,A;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=o.t.svg(g),n=r.rx||r.ry?t.path(s.n(D,O,w,T,10),{roughness:.7,fill:m,fillStyle:`solid`,stroke:h,seed:u}):t.rectangle(D,O,w,T,{seed:u});A=g.insert(()=>n,`:first-child`);let i=t.rectangle(D,k,w,E,{fill:e?d:p,fillStyle:e?`hachure`:`solid`,stroke:h,seed:u});A=g.insert(()=>n,`:first-child`),y=g.insert(()=>i),A.attr(`class`,`outer`),y.attr(`class`,`inner`)}else A=_.insert(`rect`,`:first-child`),A.attr(`class`,`outer`).attr(`x`,D).attr(`y`,O).attr(`width`,w).attr(`height`,T).attr(`data-look`,r.look),y.attr(`class`,`inner`).attr(`x`,D).attr(`y`,k).attr(`width`,w).attr(`height`,E);return v.attr(`transform`,`translate(${r.x-x.width/2}, ${O+1-(n.w(i)?0:3)})`),r.height=A.node().getBBox().height,r.offsetX=0,r.offsetY=x.height-r.padding/2,r.labelBBox=x,r.intersect=function(e){return s.i(r,e)},{cluster:g,labelBBox:x}},`roundedWithTitle`),p=e.n(async(e,a)=>{t.m.info(`Creating subgraph rect for `,a.id,a);let l=n.b(),{themeVariables:u,handDrawnSeed:d}=l,{clusterBkg:f,clusterBorder:p}=u,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=i.i(a),v=e.insert(`g`).attr(`class`,`cluster `+a.cssClasses).attr(`id`,a.domId).attr(`data-look`,a.look),y=n.w(l),b=v.insert(`g`).attr(`class`,`cluster-label `),x=await r.n(b,a.label,{style:a.labelStyle,useHtmlLabels:y,isNode:!0,width:a.width}),S=x.getBBox();if(n.w(l)){let e=x.children[0],n=t.p(x);S=e.getBoundingClientRect(),n.attr(`width`,S.width),n.attr(`height`,S.height)}let C=a.width<=S.width+a.padding?S.width+a.padding:a.width;a.diff=a.width<=S.width+a.padding?(C-a.width)/2-a.padding:-a.padding;let w=a.height,T=a.x-C/2,E=a.y-w/2;t.m.trace(`Data `,a,JSON.stringify(a));let D;if(a.look===`handDrawn`){let e=o.t.svg(v),n=i.a(a,{roughness:.7,fill:f,stroke:p,fillWeight:4,seed:d}),r=e.path(s.n(T,E,C,w,a.rx),n);D=v.insert(()=>(t.m.debug(`Rough node insert CXC`,r),r),`:first-child`),D.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),D.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else D=v.insert(`rect`,`:first-child`),D.attr(`style`,h).attr(`rx`,a.rx).attr(`ry`,a.ry).attr(`x`,T).attr(`y`,E).attr(`width`,C).attr(`height`,w);let{subGraphTitleTopMargin:O}=c.n(l);if(b.attr(`transform`,`translate(${a.x-S.width/2}, ${a.y-a.height/2+O})`),m){let e=b.select(`span`);e&&e.attr(`style`,m)}let k=D.node().getBBox();return a.offsetX=0,a.width=k.width,a.height=k.height,a.offsetY=S.height-a.padding/2,a.intersect=function(e){return s.i(a,e)},{cluster:v,labelBBox:S}},`kanbanSection`),m=e.n((e,t)=>{let{theme:r,themeVariables:i,handDrawnSeed:c}=n.b(),{altBackground:l,nodeBorder:u,borderColorArray:d}=i,f=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look);a.s(f,t.colorIndex,r,d);let p=f.insert(`g`,`:first-child`),m=0*t.padding,h=t.width+m;t.diff=-t.padding;let g=t.height+m,_=t.x-h/2,v=t.y-g/2;t.width=h;let y;if(t.look===`handDrawn`){let e=o.t.svg(f).rectangle(_,v,h,g,{fill:l??`#efefef`,fillStyle:`solid`,roughness:.5,strokeLineDash:[5],stroke:u,seed:c});y=f.insert(()=>e,`:first-child`).attr(`class`,`divider`)}else{y=p.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),y.attr(`class`,e).attr(`x`,_).attr(`y`,v).attr(`width`,h).attr(`height`,g).attr(`data-look`,t.look)}return t.height=y.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return s.i(t,e)},{cluster:f,labelBBox:{}}},`divider`),h=e.n(async(e,l,u)=>{t.m.info(`Creating ${u.cssClass} for `,l.id,l);let d=n.b(),{theme:f,themeVariables:p,handDrawnSeed:m}=d,{borderColorArray:h}=p,{labelStyles:g,borderStyles:_}=i.i(l),v=e.insert(`g`).attr(`class`,`cluster `+u.cssClass+` `+l.cssClasses).attr(`id`,l.domId??l.id).attr(`data-look`,l.look);a.s(v,l.colorIndex,f,h);let y=n.w(d),b=v.insert(`g`).attr(`class`,`cluster-label`),x={width:0,height:0},S=l.label?.trim();if(S){let e;if(e=l.labelType===`markdown`?await r.n(b,l.label,{style:l.labelStyle,useHtmlLabels:y,isNode:!0,width:l.width}):await s.t(b,l.label,l.labelStyle||``,!1,!0),x=e.getBBox(),y){let n=e.children[0],r=t.p(e);x=n.getBoundingClientRect(),r.attr(`width`,x.width),r.attr(`height`,x.height)}}let C=l.width<=x.width+l.padding?x.width+l.padding:l.width;l.diff=l.width<=x.width+l.padding?(C-l.width)/2-l.padding:-l.padding;let w=l.height,T=l.x-C/2,E=l.y-w/2,D;if(l.look===`handDrawn`){let e=o.t.svg(v),t=i.a(l,{roughness:u.roughness,fill:u.fill,stroke:u.stroke,strokeWidth:u.strokeWidth,seed:m,...u.fill===`none`?{fillWeight:0}:{fillStyle:`solid`},...u.strokeDash?{strokeLineDash:u.strokeDash}:{}}),n=e.path(s.n(T,E,C,w,u.rx),t);D=v.insert(()=>n,`:first-child`),D.select(`path:nth-child(2)`).attr(`style`,_.join(`;`))}else D=v.insert(`rect`,`:first-child`),D.attr(`rx`,u.rx).attr(`ry`,u.rx).attr(`x`,T).attr(`y`,E).attr(`width`,C).attr(`height`,w).attr(`fill`,u.fill).attr(`stroke`,u.stroke).attr(`stroke-width`,u.strokeWidth+`px`),u.strokeDash&&D.attr(`stroke-dasharray`,u.strokeDash.join(`, `));if(S){let{subGraphTitleTopMargin:e}=c.n(d);if(b.attr(`transform`,`translate(${l.x-x.width/2}, ${l.y-l.height/2+e})`),g){let e=b.select(`span`);e&&e.attr(`style`,g)}}let O=D.node().getBBox();return l.offsetX=0,l.width=O.width,l.height=O.height,l.offsetY=x.height-l.padding/2,l.intersect=function(e){return s.i(l,e)},{cluster:v,labelBBox:x}},`createContainerGroup`),g=e.n(async(e,t)=>{let{themeVariables:r}=n.b();return h(e,t,{cssClass:`flow-cluster`,rx:10,fill:`none`,stroke:r.flowContainerStroke||r.secondaryBorderColor,strokeWidth:.75,roughness:.7})},`flowGroup`),_=e.n((e,t)=>{let n=e.boundaryType||`rect`,r=n===`package`?20:e.padding,i=n===`package`?t.height+10:0,a=Math.max(e.width,t.width+r),o=n===`package`?Math.max(e.height,i+e.padding*2):e.height,s=e.x-a/2,c=e.y-o/2;return{boundaryType:n,width:a,height:o,x:s,y:c,bodyY:c+i,bodyHeight:o-i,tabHeight:i,tabWidth:n===`package`?Math.min(a,Math.max(80,t.width+20)):0}},`getUsecaseSystemBoundaryGeometry`),v={rect:u,squareRect:u,roundedWithTitle:f,noteGroup:d,divider:m,kanbanSection:p,flowGroup:g,usecaseSystemBoundary:e.n(async(e,l)=>{t.m.info(`Creating usecase system boundary for `,l.id,l);let u=n.b(),{theme:d,themeVariables:f,handDrawnSeed:p}=u,{clusterBkg:m,clusterBorder:h,borderColorArray:g}=f,{labelStyles:v,nodeStyles:y}=i.i(l),{stylesMap:b}=i.t(l),x=l.boundaryType||`rect`,S=e.insert(`g`).attr(`class`,`cluster usecase-system-boundary usecase-system-boundary-${x} ${l.cssClasses}`).attr(`id`,typeof l.domId==`string`?l.domId:l.id).attr(`data-boundary-type`,x).attr(`data-look`,l.look);a.s(S,l.colorIndex,d,g);let C=n.w(u),w=S.insert(`g`).attr(`class`,`cluster-label system-boundary-title`),T=await r.n(w,l.label,{style:v,useHtmlLabels:C,isNode:!0}),E=T.getBBox();if(C){let e=T.children[0],n=t.p(T);E=e.getBoundingClientRect(),n.attr(`width`,E.width),n.attr(`height`,E.height)}let{width:D,height:O,x:k,y:A,bodyY:j,bodyHeight:M,tabHeight:N,tabWidth:P}=_(l,E);l.diff=l.width<=E.width+l.padding?(D-l.width)/2-l.padding:-l.padding;let F=i.a(l,{fill:b.get(`fill`)||m,stroke:b.get(`stroke`)||h,strokeWidth:b.get(`stroke-width`)?.replace(`px`,``)||1,seed:p});if(l.look===`handDrawn`){let e=o.t.svg(S),t=e.rectangle(k,j,D,M,F);if(S.insert(()=>t,`:first-child`).attr(`class`,`boundary-body label-container`),x===`package`){let t=e.rectangle(k,A,P,N,F);S.insert(()=>t,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`)}}else S.insert(`rect`,`:first-child`).attr(`class`,`boundary-body label-container`).attr(`style`,y).attr(`x`,k).attr(`y`,j).attr(`width`,D).attr(`height`,M),x===`package`&&S.insert(`rect`,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`).attr(`style`,y).attr(`x`,k).attr(`y`,A).attr(`width`,P).attr(`height`,N);let{subGraphTitleTopMargin:I}=c.n(u);return x===`package`?w.attr(`transform`,`translate(${k+(P-E.width)/2}, ${A+(N-E.height)/2})`):w.attr(`transform`,`translate(${l.x-E.width/2}, ${A+I})`),v&&(w.attr(`style`,v),w.select(`span`).attr(`style`,v)),l.offsetX=0,l.width=D,l.height=O,l.offsetY=E.height-l.padding/2,l.labelBBox=E,l.intersect=function(e){return s.i(l,e)},{cluster:S,labelBBox:E}},`usecaseSystemBoundary`),swimlane:l,pool:e.n((e,t)=>l(e,t,{variant:`pool`}),`pool`)},y=new Set([`noteGroup`,`divider`]),b=e.n(e=>!y.has(e??`rect`),`clusterPaintsTitle`),x=new Map,S=e.n(async(e,t)=>{let n=await v[t.shape||`rect`](e,t);return x.set(t.id,n),n},`insertCluster`),C=e.n(()=>{x=new Map},`clear`);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return C}});
|
|
@@ -1,80 +1,80 @@
|
|
|
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 { b as r, g as i, w as a } from "./chunk-
|
|
4
|
-
import { n as o } from "./chunk-
|
|
5
|
-
import { a as s, i as c, t as l } from "./chunk-
|
|
3
|
+
import { b as r, g as i, w as a } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
+
import { n as o } from "./chunk-STOXU5M4-0WKKmqbF.js";
|
|
5
|
+
import { a as s, i as c, t as l } from "./chunk-X4PVCEUW-C80IBt-t.js";
|
|
6
6
|
import { s as u } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
7
7
|
import { t as d } from "./rough.esm-D2JJJ0Ot.js";
|
|
8
|
-
import { i as f, n as p, t as m } from "./chunk-
|
|
9
|
-
import { n as h } from "./chunk-
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
11
|
-
var g = /* @__PURE__ */ e(async (e, a) => {
|
|
12
|
-
let l = r(), { theme:
|
|
13
|
-
u(
|
|
14
|
-
let
|
|
8
|
+
import { i as f, n as p, t as m } from "./chunk-AXFCVDMN-DrVQa3gP.js";
|
|
9
|
+
import { n as h } from "./chunk-LEVMRMFU-NLMudZfn.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-M57EVK23.mjs
|
|
11
|
+
var g = /* @__PURE__ */ e(async (e, a, { variant: l = "swimlane" } = {}) => {
|
|
12
|
+
let p = l === "pool", m = p ? "pool swimlane" : "swimlane", h = p ? "pool-label swimlane-label" : "swimlane-label", g = p ? "pool-title swimlane-title" : "swimlane-title", _ = p ? "pool-body swimlane-body" : "swimlane-body", v = r(), { theme: y, themeVariables: b, handDrawnSeed: x } = v, { clusterBkg: S, clusterBorder: C, borderColorArray: w } = b, T = C, { labelStyles: E, nodeStyles: D, borderStyles: O, backgroundStyles: k } = c(a), A = e.insert("g").attr("class", "cluster " + m + " " + (a.cssClasses || "")).attr("id", a.domId ?? a.id).attr("data-id", a.id).attr("data-et", "cluster").attr("data-look", a.look);
|
|
13
|
+
u(A, a.colorIndex, y, w);
|
|
14
|
+
let j = i(v.flowchart.htmlLabels), M = a.direction === "LR", N = A.insert("g").attr("class", "cluster-label " + h), P = await o(N, a.label, {
|
|
15
15
|
style: a.labelStyle,
|
|
16
|
-
useHtmlLabels:
|
|
16
|
+
useHtmlLabels: j,
|
|
17
17
|
isNode: !0,
|
|
18
18
|
width: a.width
|
|
19
|
-
}),
|
|
20
|
-
if (
|
|
21
|
-
let e =
|
|
22
|
-
|
|
19
|
+
}), F = P.getBBox();
|
|
20
|
+
if (j) {
|
|
21
|
+
let e = P.children[0], t = n(P);
|
|
22
|
+
F = e.getBoundingClientRect(), t.attr("width", F.width), t.attr("height", F.height);
|
|
23
23
|
}
|
|
24
|
-
let
|
|
25
|
-
a.diff = a.width <=
|
|
26
|
-
let
|
|
27
|
-
if (
|
|
28
|
-
let e = Math.max(
|
|
24
|
+
let I = a.padding ?? 0, L = a.width <= F.width + I ? F.width + I : a.width;
|
|
25
|
+
a.diff = a.width <= F.width + I ? (L - a.width) / 2 - I : -I;
|
|
26
|
+
let R = a.height, z = a.y - R / 2, B = a.y + R / 2, V = a.x - L / 2, H = a.swimlaneContentTop === void 0 ? z + R / 3 : a.swimlaneContentTop, U = M ? 4 : 0, W = F.height + 2 * U, G, K;
|
|
27
|
+
if (M) {
|
|
28
|
+
let e = Math.max(W, F.height + 2 * U), t = V + e, n = Math.max(0, L - e);
|
|
29
29
|
if (a.look === "handDrawn") {
|
|
30
|
-
let r = d.svg(
|
|
30
|
+
let r = d.svg(A), i = s(a, {
|
|
31
31
|
roughness: .7,
|
|
32
|
-
fill:
|
|
33
|
-
stroke:
|
|
34
|
-
seed:
|
|
32
|
+
fill: S,
|
|
33
|
+
stroke: T,
|
|
34
|
+
seed: x
|
|
35
35
|
}), o = s(a, {
|
|
36
36
|
roughness: .7,
|
|
37
37
|
fill: "none",
|
|
38
|
-
stroke:
|
|
39
|
-
seed:
|
|
40
|
-
}), c = r.rectangle(
|
|
41
|
-
|
|
42
|
-
let l = r.rectangle(t,
|
|
43
|
-
|
|
44
|
-
} else
|
|
45
|
-
let r =
|
|
46
|
-
|
|
38
|
+
stroke: T,
|
|
39
|
+
seed: x
|
|
40
|
+
}), c = r.rectangle(V, z, e, R, i);
|
|
41
|
+
G = A.insert(() => c, ":first-child").attr("class", g);
|
|
42
|
+
let l = r.rectangle(t, z, n, R, o);
|
|
43
|
+
K = A.insert(() => l, ":first-child").attr("class", _), G.select("path:nth-child(2)").attr("style", O.join(";")), G.select("path").attr("style", k.join(";").replace("fill", "stroke"));
|
|
44
|
+
} else G = A.insert("rect", ":first-child"), K = A.insert("rect", ":first-child"), G.attr("class", g).attr("style", D).attr("x", V).attr("y", z).attr("width", e).attr("height", R).attr("fill", S).attr("stroke", T), K.attr("class", _).attr("style", D).attr("x", t).attr("y", z).attr("width", n).attr("height", R).attr("fill", "none").attr("stroke", T);
|
|
45
|
+
let r = V + e / 2, i = a.y;
|
|
46
|
+
N.attr("transform", `translate(${r}, ${i}) rotate(-90) translate(${-F.width / 2}, ${-F.height / 2})`);
|
|
47
47
|
} else {
|
|
48
|
-
let e = Math.max(0,
|
|
48
|
+
let e = Math.max(0, H - z), t = Math.min(W, e), n = z + t, r = Math.max(0, B - n), i = a.x - L / 2;
|
|
49
49
|
if (a.look === "handDrawn") {
|
|
50
|
-
let e = d.svg(
|
|
50
|
+
let e = d.svg(A), o = s(a, {
|
|
51
51
|
roughness: .7,
|
|
52
|
-
fill:
|
|
53
|
-
stroke:
|
|
52
|
+
fill: S,
|
|
53
|
+
stroke: T,
|
|
54
54
|
fillWeight: 3,
|
|
55
|
-
seed:
|
|
55
|
+
seed: x
|
|
56
56
|
}), c = s(a, {
|
|
57
57
|
roughness: .7,
|
|
58
58
|
fill: "none",
|
|
59
|
-
stroke:
|
|
60
|
-
seed:
|
|
61
|
-
}), l = e.rectangle(i,
|
|
62
|
-
|
|
63
|
-
let u = e.rectangle(i, n,
|
|
64
|
-
|
|
65
|
-
} else
|
|
66
|
-
let o = a.x -
|
|
67
|
-
|
|
59
|
+
stroke: T,
|
|
60
|
+
seed: x
|
|
61
|
+
}), l = e.rectangle(i, z, L, t, o);
|
|
62
|
+
G = A.insert(() => l, ":first-child").attr("class", g);
|
|
63
|
+
let u = e.rectangle(i, n, L, r, c);
|
|
64
|
+
K = A.insert(() => u, ":first-child").attr("class", _), G.select("path:nth-child(2)").attr("style", O.join(";")), G.select("path").attr("style", k.join(";").replace("fill", "stroke"));
|
|
65
|
+
} else G = A.insert("rect", ":first-child"), K = A.insert("rect", ":first-child"), G.attr("class", g).attr("style", D).attr("x", i).attr("y", z).attr("width", L).attr("height", t).attr("fill", S).attr("stroke", T), K.attr("class", _).attr("style", D).attr("x", i).attr("y", n).attr("width", L).attr("height", r).attr("fill", "none").attr("stroke", T);
|
|
66
|
+
let o = a.x - F.width / 2, c = z + (t - F.height) / 2;
|
|
67
|
+
N.attr("transform", `translate(${o}, ${c})`);
|
|
68
68
|
}
|
|
69
|
-
if (t.trace("Swimlane data ", a, JSON.stringify(a)),
|
|
70
|
-
let e =
|
|
71
|
-
e && e.attr("style",
|
|
69
|
+
if (t.trace("Swimlane data ", a, JSON.stringify(a)), E) {
|
|
70
|
+
let e = N.select("span");
|
|
71
|
+
e && e.attr("style", E);
|
|
72
72
|
}
|
|
73
|
-
return a.offsetX = 0, a.width =
|
|
73
|
+
return a.offsetX = 0, a.width = L, a.height = R, a.offsetY = F.height - I / 2, a.intersect = function(e) {
|
|
74
74
|
return f(a, e);
|
|
75
75
|
}, {
|
|
76
|
-
cluster:
|
|
77
|
-
labelBBox:
|
|
76
|
+
cluster: A,
|
|
77
|
+
labelBBox: F
|
|
78
78
|
};
|
|
79
79
|
}, "swimlane"), _ = /* @__PURE__ */ e(async (e, i) => {
|
|
80
80
|
t.info("Creating subgraph rect for ", i.id, i);
|
|
@@ -352,7 +352,8 @@ var g = /* @__PURE__ */ e(async (e, a) => {
|
|
|
352
352
|
labelBBox: A
|
|
353
353
|
};
|
|
354
354
|
}, "usecaseSystemBoundary"),
|
|
355
|
-
swimlane: g
|
|
355
|
+
swimlane: g,
|
|
356
|
+
pool: /* @__PURE__ */ e((e, t) => g(e, t, { variant: "pool" }), "pool")
|
|
356
357
|
}, E = /* @__PURE__ */ new Set(["noteGroup", "divider"]), D = /* @__PURE__ */ e((e) => !E.has(e ?? "rect"), "clusterPaintsTitle"), O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ e(async (e, t) => {
|
|
357
358
|
let n = await T[t.shape || "rect"](e, t);
|
|
358
359
|
return O.set(t.id, n), n;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-65Lfw03T.js";
|
|
3
|
-
import { E as n, a as r, b as i, c as a, y as o, z as s } from "./chunk-
|
|
4
|
-
import { o as c } from "./mermaid.core-
|
|
5
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
3
|
+
import { E as n, a as r, b as i, c as a, y as o, z as s } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
+
import { o as c } from "./mermaid.core-DPCy8dJO.js";
|
|
5
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-OY52VR5R.mjs
|
|
6
6
|
var l = "", u = "", d = "", f = [], p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ e((e) => s(e, i()), "sanitizeText"), h = /* @__PURE__ */ e((e) => {
|
|
7
7
|
switch (e.type) {
|
|
8
8
|
case "terminal": return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./mermaid.core-BL4WDqAH.cjs");var i=``,a=``,o=``,s=[],c=new Map,l=e.n(e=>n.z(e,n.b()),`sanitizeText`),u=e.n(e=>{switch(e.type){case`terminal`:return{...e,value:l(e.value)};case`nonterminal`:return{...e,name:l(e.name)};case`sequence`:return{...e,elements:e.elements.map(u)};case`choice`:return{...e,alternatives:e.alternatives.map(u)};case`optional`:return{...e,element:u(e.element)};case`repetition`:return{...e,element:u(e.element),separator:e.separator?u(e.separator):void 0};case`special`:return{...e,text:l(e.text)}}},`sanitizeAstNode`),d=e.n(()=>{i=``,a=``,o=``,s.length=0,c.clear(),n.a(),t.m.debug(`[Railroad] Database cleared`)},`clear`),f=e.n(e=>{i=l(e),t.m.debug(`[Railroad] Title set:`,e)},`setTitle`),p=e.n(()=>i,`getTitle`),m={clear:d,setTitle:f,getTitle:p,addRule:e.n(e=>{let n={...e,name:l(e.name),definition:u(e.definition),comment:e.comment?l(e.comment):void 0};t.m.debug(`[Railroad] Adding rule:`,n.name),c.has(n.name)&&t.m.warn(`[Railroad] Rule '${n.name}' is already defined. Overwriting.`),s.push(n),c.set(n.name,n)},`addRule`),getRules:e.n(()=>s,`getRules`),getRule:e.n(e=>c.get(e),`getRule`),setAccTitle:e.n(e=>{a=l(e).replace(/^\s+/g,``),t.m.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:e.n(()=>a,`getAccTitle`),setAccDescription:e.n(e=>{o=l(e).replace(/\n\s+/g,`
|
|
2
2
|
`),t.m.debug(`[Railroad] Accessibility description set:`,e)},`setAccDescription`),getAccDescription:e.n(()=>o,`getAccDescription`),setDiagramTitle:f,getDiagramTitle:p},h={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:`monospace`,terminalFill:`#FFFFC0`,terminalStroke:`#000000`,terminalTextColor:`#000000`,nonTerminalFill:`#FFFFFF`,nonTerminalStroke:`#000000`,nonTerminalTextColor:`#000000`,lineColor:`#000000`,strokeWidth:2,markerFill:`#000000`,commentFill:`#E8E8E8`,commentStroke:`#888888`,commentTextColor:`#666666`,specialFill:`#F0E0FF`,specialStroke:`#8800CC`,ruleNameColor:`#000066`,showMarkers:!0,markerRadius:5},g=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,_=/^[\w "',.-]+$/,v=new Set([`compactMode`,`padding`,`verticalSeparation`,`horizontalSeparation`,`arcRadius`,`fontSize`,`fontFamily`,`terminalFill`,`terminalStroke`,`terminalTextColor`,`nonTerminalFill`,`nonTerminalStroke`,`nonTerminalTextColor`,`lineColor`,`strokeWidth`,`markerFill`,`commentFill`,`commentStroke`,`commentTextColor`,`specialFill`,`specialStroke`,`ruleNameColor`,`showMarkers`,`markerRadius`]),y=e.n(e=>e?Object.keys(e).every(e=>e===`railroad`||v.has(e)):!1,`isRailroadStyleOptions`),b=e.n(e=>e?`railroad`in e&&e.railroad?e.railroad:y(e)?e:{}:{},`extractRailroadOverrides`),x=e.n(e=>{if(!e||y(e))return{};let{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},`extractThemeOverrides`),S=e.n((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return g.test(n)?n:t},`sanitizeColorValue`),C=e.n((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return _.test(n)?n:t},`sanitizeFontFamilyValue`),w=e.n((e,t)=>{let n=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>=0?n:t},`sanitizeNumberValue`),T=e.n(e=>{let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},`parseThemeFontSize`),E=e.n(e=>{let t=C(e.fontFamily,h.fontFamily),n=T(e.fontSize)??h.fontSize;return{...h,fontFamily:t,fontSize:n,terminalFill:S(e.secondBkg??e.secondaryColor,h.terminalFill),terminalStroke:S(e.secondaryBorderColor??e.lineColor,h.terminalStroke),terminalTextColor:S(e.secondaryTextColor??e.textColor,h.terminalTextColor),nonTerminalFill:S(e.mainBkg??e.background,h.nonTerminalFill),nonTerminalStroke:S(e.primaryBorderColor??e.lineColor,h.nonTerminalStroke),nonTerminalTextColor:S(e.primaryTextColor??e.textColor,h.nonTerminalTextColor),lineColor:S(e.lineColor,h.lineColor),markerFill:S(e.lineColor,h.markerFill),commentFill:S(e.labelBackground??e.tertiaryColor,h.commentFill),commentStroke:S(e.tertiaryBorderColor??e.lineColor,h.commentStroke),commentTextColor:S(e.tertiaryTextColor??e.textColor,h.commentTextColor),specialFill:S(e.tertiaryColor??e.secondaryColor,h.specialFill),specialStroke:S(e.tertiaryBorderColor??e.secondaryBorderColor,h.specialStroke),ruleNameColor:S(e.titleColor??e.textColor,h.ruleNameColor)}},`buildThemeDefaults`),D=e.n(e=>{let t=n.y(),r=E({...n.E(),...t.themeVariables??{},...x(e)}),i={...t.railroad??{},...b(e)};return{compactMode:i.compactMode??r.compactMode,padding:w(i.padding,r.padding),verticalSeparation:w(i.verticalSeparation,r.verticalSeparation),horizontalSeparation:w(i.horizontalSeparation,r.horizontalSeparation),arcRadius:w(i.arcRadius,r.arcRadius),fontSize:w(i.fontSize,r.fontSize),fontFamily:C(i.fontFamily,r.fontFamily),terminalFill:S(i.terminalFill,r.terminalFill),terminalStroke:S(i.terminalStroke,r.terminalStroke),terminalTextColor:S(i.terminalTextColor,r.terminalTextColor),nonTerminalFill:S(i.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:S(i.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:S(i.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:S(i.lineColor,r.lineColor),strokeWidth:w(i.strokeWidth,r.strokeWidth),markerFill:S(i.markerFill,r.markerFill),commentFill:S(i.commentFill,r.commentFill),commentStroke:S(i.commentStroke,r.commentStroke),commentTextColor:S(i.commentTextColor,r.commentTextColor),specialFill:S(i.specialFill,r.specialFill),specialStroke:S(i.specialStroke,r.specialStroke),ruleNameColor:S(i.ruleNameColor,r.ruleNameColor),showMarkers:i.showMarkers??r.showMarkers,markerRadius:w(i.markerRadius,r.markerRadius)}},`buildRailroadStyleOptions`),O=e.n(e=>{let{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:s,nonTerminalTextColor:c,lineColor:l,strokeWidth:u,markerFill:d,commentFill:f,commentStroke:p,commentTextColor:m,specialFill:h,specialStroke:g,ruleNameColor:_}=D(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${t};
|