@pi-outpost/embed 0.61.0 → 0.62.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/README.md +4 -0
- package/dist/{abnfDiagram-S7VZAUFO-BdOzCXh1.js → abnfDiagram-S7VZAUFO-BvdbTr4n.js} +2 -2
- package/dist/{abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs → abnfDiagram-S7VZAUFO-C14iOswH.cjs} +1 -1
- package/dist/{architectureDiagram-YGSQEFNW-DiYOcBqo.js → architectureDiagram-YGSQEFNW-CPW5HJ_P.js} +20 -20
- package/dist/{architectureDiagram-YGSQEFNW-gEzRb5xY.cjs → architectureDiagram-YGSQEFNW-CfDEcnft.cjs} +3 -3
- package/dist/{blockDiagram-APKKGZFW-CIX-8mpK.js → blockDiagram-APKKGZFW-C4ig73DE.js} +5 -5
- package/dist/{blockDiagram-APKKGZFW-KL3nQT0s.cjs → blockDiagram-APKKGZFW-DLTDUF2F.cjs} +1 -1
- package/dist/{c4Diagram-KJ2TOQU5-BS_M90FN.js → c4Diagram-KJ2TOQU5-BViiS4eZ.js} +4 -4
- package/dist/{c4Diagram-KJ2TOQU5-D-dCJWvI.cjs → c4Diagram-KJ2TOQU5-BZrZGJnq.cjs} +1 -1
- package/dist/chunk-6MUBBAK2-Do5Y2VaL.js +631 -0
- package/dist/chunk-6MUBBAK2-fxSdrddJ.cjs +2 -0
- package/dist/{chunk-AXFCVDMN-DrVQa3gP.js → chunk-AXFCVDMN-BTcT9L5T.js} +196 -196
- package/dist/{chunk-AXFCVDMN-B6dhmE32.cjs → chunk-AXFCVDMN-DSN0_Pz7.cjs} +7 -7
- package/dist/{chunk-DQASFODM-DAaU7yoa.js → chunk-DQASFODM-BjATojAo.js} +30 -30
- package/dist/chunk-DQASFODM-GtaZ5zZF.cjs +10 -0
- package/dist/{chunk-HFQBQIA3-lOxrhpos.cjs → chunk-HFQBQIA3-Bt4zc3D1.cjs} +1 -1
- package/dist/{chunk-HFQBQIA3-DqHSeXIz.js → chunk-HFQBQIA3-l7lNC9FO.js} +1 -1
- package/dist/{chunk-KQLB2F66-C7twW9LJ.js → chunk-KQLB2F66-P-DwEW1U.js} +5 -5
- package/dist/{chunk-KQLB2F66-Ec2IAtUR.cjs → chunk-KQLB2F66-xBZn8cMv.cjs} +1 -1
- package/dist/{chunk-KS47KZWR-OD3AMBe8.js → chunk-KS47KZWR-Ca0eP7K6.js} +1 -1
- package/dist/{chunk-KS47KZWR-C7Yv0kfF.cjs → chunk-KS47KZWR-DLYUwvq1.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-BFGXlIAt.cjs → chunk-LEVMRMFU-8QpYqPF4.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-NLMudZfn.js → chunk-LEVMRMFU-DXj_Ks_M.js} +2 -2
- package/dist/{chunk-M57EVK23-BSZ7OEGY.cjs → chunk-M57EVK23-Cvl56jvK.cjs} +1 -1
- package/dist/{chunk-M57EVK23-C8-Jp43x.js → chunk-M57EVK23-D_qW99As.js} +3 -3
- package/dist/{chunk-OY52VR5R-B7NRk2-S.js → chunk-OY52VR5R-DAhIWmSX.js} +1 -1
- package/dist/{chunk-OY52VR5R-CvyV3pJF.cjs → chunk-OY52VR5R-DoFojbud.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DaIXN7QF.cjs → chunk-QB3YPZ4I-CcobelQp.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DPQ26dC9.js → chunk-QB3YPZ4I-DZ4KU0AI.js} +5 -5
- package/dist/{chunk-STOXU5M4-0WKKmqbF.js → chunk-STOXU5M4-CcGFpnKt.js} +7 -7
- package/dist/{chunk-STOXU5M4-CmoaBap6.cjs → chunk-STOXU5M4-_pvE8f8d.cjs} +2 -2
- package/dist/{classDiagram-v2-L25IHNXF-CAts0vNW.js → classDiagram-v2-L25IHNXF-CoK-3RrH.js} +8 -8
- package/dist/{classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs → classDiagram-v2-L25IHNXF-DUh5AzbW.cjs} +1 -1
- package/dist/{conversationExport-C-0oWDfL.cjs → conversationExport-DXxmgLoF.cjs} +1 -1
- package/dist/{conversationExport-BGLSsVDO.js → conversationExport-jRLUX0kH.js} +3 -3
- package/dist/{conversationHistory-CRkCClAn.js → conversationHistory-3pDBlkZZ.js} +11 -6
- package/dist/{conversationHistory-BgnXSxWk.cjs → conversationHistory-C6PqGsO9.cjs} +2 -2
- package/dist/{cynefinDiagram-L36ESFBY-CrsJmb7x.cjs → cynefinDiagram-L36ESFBY-BLUfdwhj.cjs} +1 -1
- package/dist/{cynefinDiagram-L36ESFBY-ByHpHKCc.js → cynefinDiagram-L36ESFBY-COLv504g.js} +7 -7
- package/dist/{dagre-SPEB5RXH-C01_UMxx.js → dagre-SPEB5RXH-CohPsDHQ.js} +7 -7
- package/dist/{dagre-SPEB5RXH-ExCiSqVu.cjs → dagre-SPEB5RXH-DF8bZfUb.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-CRNoSH2i.cjs → diagram-3B7GL73J-CFwrYkyI.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-D7i6eGGQ.js → diagram-3B7GL73J-w28Iaq_1.js} +8 -8
- package/dist/{diagram-DNEMPZML-CkhkOJo2.cjs → diagram-DNEMPZML-CezYrBHl.cjs} +1 -1
- package/dist/{diagram-DNEMPZML-Di5RqN_h.js → diagram-DNEMPZML-HpZqPF1t.js} +6 -6
- package/dist/{diagram-L3MUGCDN-BtQkAzOD.js → diagram-L3MUGCDN-Bg9oF9vU.js} +7 -7
- package/dist/{diagram-L3MUGCDN-B1vXsDB1.cjs → diagram-L3MUGCDN-FmKU8C82.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-DST6DvSP.cjs → diagram-LA4NIPWU-B4zPp12a.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-Badv-tyU.js → diagram-LA4NIPWU-D5S10Z1M.js} +16 -16
- package/dist/{diagram-MHCOC4E2-DmA9ezb9.js → diagram-MHCOC4E2-BMg2Maje.js} +5 -5
- package/dist/{diagram-MHCOC4E2-BafwTqOD.cjs → diagram-MHCOC4E2-DcF56W3-.cjs} +2 -2
- package/dist/{diagram-XPFHEONP-CZHt29x-.js → diagram-XPFHEONP-COT08Qlw.js} +9 -9
- package/dist/{diagram-XPFHEONP-DCm8Rjp8.cjs → diagram-XPFHEONP-GLEfHAAK.cjs} +5 -5
- package/dist/dist-BDWJ0PuE.js +1007 -0
- package/dist/dist-CeGGIzgU.cjs +1 -0
- package/dist/{docxExport-DM0_V94R.cjs → docxExport-D-T3fTj7.cjs} +1 -1
- package/dist/{docxExport-COweplKv.js → docxExport-diU6sv-G.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-DVGQga8g.js → ebnfDiagram-UZSYDL2S-Cu5-1sQW.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-fO0plY-B.cjs → ebnfDiagram-UZSYDL2S-ftYbml6-.cjs} +1 -1
- package/dist/{elk-XV6XMXQE-CioXUob9.cjs → elk-XV6XMXQE-32eNFZGY.cjs} +2 -2
- package/dist/{elk-XV6XMXQE-BkH0WNCd.js → elk-XV6XMXQE-BoimJY8z.js} +9 -8
- package/dist/{erDiagram-EYBAPDEH-CUgDxVam.cjs → erDiagram-EYBAPDEH-BCiRLs1y.cjs} +1 -1
- package/dist/{erDiagram-EYBAPDEH-Byy0RKKe.js → erDiagram-EYBAPDEH-BxyIjrYb.js} +7 -7
- package/dist/flowDiagram-MALGAFMO-BwqIeP0j.js +15 -0
- package/dist/flowDiagram-MALGAFMO-DkxE7jK-.cjs +1 -0
- package/dist/ganttDiagram-23REXITY-CSCN0suz.cjs +292 -0
- package/dist/{ganttDiagram-23REXITY-DAs5LGLL.js → ganttDiagram-23REXITY-uW1Fo-_u.js} +467 -489
- package/dist/{gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs → gitGraphDiagram-STJD7YCW-DsKvmxrY.cjs} +3 -3
- package/dist/{gitGraphDiagram-STJD7YCW-BVa0DHTU.js → gitGraphDiagram-STJD7YCW-j7-SImA3.js} +57 -57
- package/dist/{infoDiagram-KBXO4MBG-DRQkxKbg.cjs → infoDiagram-KBXO4MBG-CYMQGNUj.cjs} +1 -1
- package/dist/{infoDiagram-KBXO4MBG-BW7IcSQr.js → infoDiagram-KBXO4MBG-DE6zWbEk.js} +1 -1
- package/dist/init-DP9k4ltr.js +151 -0
- package/dist/init-UgQs1rm8.cjs +1 -0
- package/dist/{ishikawaDiagram-M35NCXHK-DBokYlS8.cjs → ishikawaDiagram-M35NCXHK-DbHbBLzt.cjs} +1 -1
- package/dist/{ishikawaDiagram-M35NCXHK-BiLoyI1l.js → ishikawaDiagram-M35NCXHK-zvWEWMyM.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-DsyubZVY.js → journeyDiagram-OPLOXDXO-Ckjy-e7g.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-CgabMAC2.cjs → journeyDiagram-OPLOXDXO-Df3Isppt.cjs} +2 -2
- package/dist/{kanban-definition-BZKZHSQY-DU8sOWQd.js → kanban-definition-BZKZHSQY-BmePUr-s.js} +6 -6
- package/dist/{kanban-definition-BZKZHSQY-CLi3J9cI.cjs → kanban-definition-BZKZHSQY-C0592yvk.cjs} +1 -1
- package/dist/linear-DgbjLlQ3.cjs +1 -0
- package/dist/linear-uoBSwo4a.js +198 -0
- package/dist/{loadReferencedImage-D47xCpa7.cjs → loadReferencedImage-N3Qidv7i.cjs} +1 -1
- package/dist/{loadReferencedImage-VNYxXIzB.js → loadReferencedImage-u2es0OEX.js} +1 -1
- package/dist/{mermaid.core-DPCy8dJO.js → mermaid.core-BlYpILf7.js} +65 -65
- package/dist/{mermaid.core-BL4WDqAH.cjs → mermaid.core-uCBIzEBU.cjs} +7 -7
- package/dist/{mermaidToImage-CViP9wx2.js → mermaidToImage-CBa4nUvP.js} +1 -1
- package/dist/{mermaidToImage-B7I6iJ9s.cjs → mermaidToImage-Gx6dNGEn.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-GT8_r7or.cjs → mindmap-definition-I2QAS2VK-CRXX7-9C.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-C2KpoDqG.js → mindmap-definition-I2QAS2VK-DgJirDRS.js} +7 -7
- package/dist/ordinal-CeUiYJ7_.cjs +1 -0
- package/dist/ordinal-DFWF7eBM.js +28 -0
- package/dist/{pegDiagram-FD4XPPHP-D0OZoETj.cjs → pegDiagram-FD4XPPHP-DFmA0OWh.cjs} +1 -1
- package/dist/{pegDiagram-FD4XPPHP-CSA4sB83.js → pegDiagram-FD4XPPHP-DpYyVjjQ.js} +2 -2
- package/dist/pi-outpost-embed.cjs +3 -3
- package/dist/pi-outpost-embed.js +3 -3
- package/dist/pieDiagram-J4AKIIQI-Cz-UbIk9.cjs +39 -0
- package/dist/pieDiagram-J4AKIIQI-DuqHiYUq.js +155 -0
- package/dist/{quadrantDiagram-XTYBLID2-BjaZuA3m.js → quadrantDiagram-XTYBLID2-B94UoyXc.js} +1 -1
- package/dist/{quadrantDiagram-XTYBLID2-CfdtTmYm.cjs → quadrantDiagram-XTYBLID2-BCN9RHwV.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs → railroadDiagram-MRQ6NCDL-BlrwhMUX.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DgAKQKiD.js → railroadDiagram-MRQ6NCDL-Br7PQgSm.js} +2 -2
- package/dist/{requirementDiagram-Y7LWUY3S-Bhlk2ueA.js → requirementDiagram-Y7LWUY3S-CT4WIq10.js} +7 -7
- package/dist/{requirementDiagram-Y7LWUY3S-nSr_pknl.cjs → requirementDiagram-Y7LWUY3S-CzR9zsNk.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-x6J896b3.cjs → sankeyDiagram-WGJFYUXA-D8LLSvqn.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-DUYWd4HF.js → sankeyDiagram-WGJFYUXA-DiEth1kw.js} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs → sequenceDiagram-5NDRBG5M-BATWsrlf.cjs} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-D1YS8Amk.js → sequenceDiagram-5NDRBG5M-DJ1ruzP_.js} +4 -4
- package/dist/{stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js → stateDiagram-v2-FJ4FJNEA-CtEFZimW.js} +8 -8
- package/dist/{stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs → stateDiagram-v2-FJ4FJNEA-DS0IS9Xt.cjs} +1 -1
- package/dist/{swimlanes-UMQ2AFYF-CNb1NF60.js → swimlanes-UMQ2AFYF-B9sFO11Y.js} +8 -8
- package/dist/{swimlanes-UMQ2AFYF-BQLQzNLz.cjs → swimlanes-UMQ2AFYF-CNdzpvk7.cjs} +1 -1
- package/dist/{swimlanesDiagram-OMPLPG4O-BOl138lS.js → swimlanesDiagram-OMPLPG4O-CEjeo6Pa.js} +9 -9
- package/dist/swimlanesDiagram-OMPLPG4O-F8fhW_eR.cjs +8 -0
- package/dist/{timeline-definition-SEUHKTQE-B_909Amn.js → timeline-definition-SEUHKTQE-BiPtPmVz.js} +3 -3
- package/dist/{timeline-definition-SEUHKTQE-Du5-RSsU.cjs → timeline-definition-SEUHKTQE-CHvbMdoq.cjs} +2 -2
- package/dist/{usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs → usecaseDiagram-AFA6YXN4-B_KoFCdb.cjs} +1 -1
- package/dist/{usecaseDiagram-AFA6YXN4-CiVGRP5X.js → usecaseDiagram-AFA6YXN4-VzWSjfFU.js} +7 -7
- package/dist/{vennDiagram-NNMJR3RB-CKxaec4G.cjs → vennDiagram-NNMJR3RB-BRWZo29n.cjs} +1 -1
- package/dist/{vennDiagram-NNMJR3RB-l3A_FZxZ.js → vennDiagram-NNMJR3RB-D5u2Njla.js} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs → wardleyDiagram-S7YFUSEH-CSq-zmI3.cjs} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-BMQf5dl9.js → wardleyDiagram-S7YFUSEH-VNmN8A6j.js} +5 -5
- package/dist/{xychartDiagram-GGNKY7IX-CuFU4ynf.js → xychartDiagram-GGNKY7IX-D-eT4Gjt.js} +18 -25
- package/dist/{xychartDiagram-GGNKY7IX-BUma86Wh.cjs → xychartDiagram-GGNKY7IX-D4bccPOk.cjs} +3 -3
- package/package.json +1 -1
- package/dist/arc-37kcMiGl.js +0 -82
- package/dist/arc-C7P0rHQr.cjs +0 -1
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/chunk-6MUBBAK2-BTabKnTR.cjs +0 -2
- package/dist/chunk-6MUBBAK2-DlUTxzYh.js +0 -1334
- package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +0 -10
- package/dist/dist-BB5r6V4R.cjs +0 -1
- package/dist/dist-CZhfI1u7.js +0 -59
- package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +0 -15
- package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +0 -1
- package/dist/ganttDiagram-23REXITY-D82ogzPM.cjs +0 -292
- package/dist/init-BJdqMO10.cjs +0 -1
- package/dist/init-CuXVI8k2.js +0 -13
- package/dist/line-Bf0B129l.cjs +0 -1
- package/dist/line-DRq00lCg.js +0 -34
- package/dist/linear-Bh2vuvAF.cjs +0 -1
- package/dist/linear-CxE0kir0.js +0 -287
- package/dist/ordinal-Bm_chml2.cjs +0 -1
- package/dist/ordinal-D3SPD7Kk.js +0 -65
- package/dist/path-DIS6ck99.cjs +0 -1
- package/dist/path-PGqhG0Rz.js +0 -84
- package/dist/pieDiagram-J4AKIIQI-CNLlH6kK.js +0 -203
- package/dist/pieDiagram-J4AKIIQI-O870G6iX.cjs +0 -39
- package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +0 -8
|
@@ -1,13 +1,13 @@
|
|
|
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
3
|
import { b as r, ot as i, st as a, w as o, y as s } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as ie, r as y } from "./chunk-STOXU5M4-
|
|
4
|
+
import { C as c, S as l, b as u, f as d, g as f, h as p, l as m, o as h, r as ee, s as g, v as _, w as te, y as ne } from "./dist-BDWJ0PuE.js";
|
|
5
|
+
import { _ as v, d as re } from "./chunk-6MUBBAK2-Do5Y2VaL.js";
|
|
6
|
+
import { n as ie, r as y } from "./chunk-STOXU5M4-CcGFpnKt.js";
|
|
7
7
|
import { i as b, n as ae } from "./chunk-X4PVCEUW-C80IBt-t.js";
|
|
8
8
|
import { t as oe } from "./rough.esm-D2JJJ0Ot.js";
|
|
9
|
-
import { t as x } from "./chunk-AXFCVDMN-
|
|
10
|
-
import { n as se } from "./chunk-LEVMRMFU-
|
|
9
|
+
import { t as x } from "./chunk-AXFCVDMN-BTcT9L5T.js";
|
|
10
|
+
import { n as se } from "./chunk-LEVMRMFU-DXj_Ks_M.js";
|
|
11
11
|
//#region ../node_modules/khroma/dist/methods/channel.js
|
|
12
12
|
var S = (e, t) => a.lang.round(i.parse(e)[t]), C = /* @__PURE__ */ e((e, t) => {
|
|
13
13
|
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
@@ -238,7 +238,7 @@ var D = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
238
238
|
return [...n, ...r];
|
|
239
239
|
}, "collectBadgeObstacles"), ke = /* @__PURE__ */ e((e, t) => {
|
|
240
240
|
if (!e.label || t.length === 0) return [];
|
|
241
|
-
let { x: n, y: r } =
|
|
241
|
+
let { x: n, y: r } = v.calcLabelPosition(t);
|
|
242
242
|
return [{
|
|
243
243
|
x: n,
|
|
244
244
|
y: r,
|
|
@@ -512,9 +512,9 @@ e(X, "setTerminalWidth");
|
|
|
512
512
|
var Ye = /* @__PURE__ */ e((e, t) => {
|
|
513
513
|
let n = e.x, r = e.y;
|
|
514
514
|
if (t?.updatedPath) {
|
|
515
|
-
let i =
|
|
515
|
+
let i = v.calcLabelPosition(t.updatedPath);
|
|
516
516
|
if (t.originalPath) {
|
|
517
|
-
let a =
|
|
517
|
+
let a = v.calcLabelPosition(t.originalPath);
|
|
518
518
|
n = e.x + (i.x - a.x), r = e.y + (i.y - a.y);
|
|
519
519
|
} else n = i.x, r = i.y;
|
|
520
520
|
}
|
|
@@ -533,7 +533,7 @@ var Ye = /* @__PURE__ */ e((e, t) => {
|
|
|
533
533
|
if (e.startLabelLeft) {
|
|
534
534
|
let t = q.get(e.id).startLeft, n = e.x, r = e.y;
|
|
535
535
|
if (o) {
|
|
536
|
-
let t =
|
|
536
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", o);
|
|
537
537
|
n = t.x, r = t.y;
|
|
538
538
|
}
|
|
539
539
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
@@ -541,7 +541,7 @@ var Ye = /* @__PURE__ */ e((e, t) => {
|
|
|
541
541
|
if (e.startLabelRight) {
|
|
542
542
|
let t = q.get(e.id).startRight, n = e.x, r = e.y;
|
|
543
543
|
if (o) {
|
|
544
|
-
let t =
|
|
544
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", o);
|
|
545
545
|
n = t.x, r = t.y;
|
|
546
546
|
}
|
|
547
547
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
@@ -549,7 +549,7 @@ var Ye = /* @__PURE__ */ e((e, t) => {
|
|
|
549
549
|
if (e.endLabelLeft) {
|
|
550
550
|
let t = q.get(e.id).endLeft, n = e.x, r = e.y;
|
|
551
551
|
if (o) {
|
|
552
|
-
let t =
|
|
552
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", o);
|
|
553
553
|
n = t.x, r = t.y;
|
|
554
554
|
}
|
|
555
555
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
@@ -557,7 +557,7 @@ var Ye = /* @__PURE__ */ e((e, t) => {
|
|
|
557
557
|
if (e.endLabelRight) {
|
|
558
558
|
let t = q.get(e.id).endRight, n = e.x, r = e.y;
|
|
559
559
|
if (o) {
|
|
560
|
-
let t =
|
|
560
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", o);
|
|
561
561
|
n = t.x, r = t.y;
|
|
562
562
|
}
|
|
563
563
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
@@ -738,50 +738,50 @@ var ut = /* @__PURE__ */ e(function(e, t, n) {
|
|
|
738
738
|
i.toCluster && (t.info("to cluster abc88", a.get(i.toCluster)), w = ct(i.points, a.get(i.toCluster).node), E = !0), i.fromCluster && (t.debug("from cluster abc88", a.get(i.fromCluster), JSON.stringify(w, null, 2)), w = ct(w.reverse(), a.get(i.fromCluster).node).reverse(), E = !0);
|
|
739
739
|
let j = w.filter((e) => !Number.isNaN(e.y)), M = Ge(i.curve);
|
|
740
740
|
M !== "rounded" && (j = dt(j));
|
|
741
|
-
let N =
|
|
741
|
+
let N = p;
|
|
742
742
|
switch (M) {
|
|
743
743
|
case "linear":
|
|
744
|
-
N =
|
|
744
|
+
N = p;
|
|
745
745
|
break;
|
|
746
746
|
case "basis":
|
|
747
|
-
N =
|
|
747
|
+
N = ee;
|
|
748
748
|
break;
|
|
749
749
|
case "cardinal":
|
|
750
|
-
N =
|
|
750
|
+
N = m;
|
|
751
751
|
break;
|
|
752
752
|
case "bumpX":
|
|
753
|
-
N =
|
|
753
|
+
N = h;
|
|
754
754
|
break;
|
|
755
755
|
case "bumpY":
|
|
756
|
-
N =
|
|
756
|
+
N = g;
|
|
757
757
|
break;
|
|
758
758
|
case "catmullRom":
|
|
759
|
-
N =
|
|
759
|
+
N = d;
|
|
760
760
|
break;
|
|
761
761
|
case "monotoneX":
|
|
762
|
-
N =
|
|
762
|
+
N = _;
|
|
763
763
|
break;
|
|
764
764
|
case "monotoneY":
|
|
765
|
-
N =
|
|
765
|
+
N = ne;
|
|
766
766
|
break;
|
|
767
767
|
case "natural":
|
|
768
|
-
N =
|
|
768
|
+
N = u;
|
|
769
769
|
break;
|
|
770
770
|
case "step":
|
|
771
|
-
N =
|
|
771
|
+
N = l;
|
|
772
772
|
break;
|
|
773
773
|
case "stepAfter":
|
|
774
|
-
N =
|
|
774
|
+
N = c;
|
|
775
775
|
break;
|
|
776
776
|
case "stepBefore":
|
|
777
|
-
N =
|
|
777
|
+
N = te;
|
|
778
778
|
break;
|
|
779
779
|
case "rounded":
|
|
780
|
-
N =
|
|
780
|
+
N = p;
|
|
781
781
|
break;
|
|
782
|
-
default: N =
|
|
782
|
+
default: N = ee;
|
|
783
783
|
}
|
|
784
|
-
let { x: le, y: ue } = ce(i), P =
|
|
784
|
+
let { x: le, y: ue } = ce(i), P = f().x(le).y(ue).curve(N), F;
|
|
785
785
|
switch (i.thickness) {
|
|
786
786
|
case "normal":
|
|
787
787
|
F = "edge-thickness-normal";
|
|
@@ -828,7 +828,7 @@ var ut = /* @__PURE__ */ e(function(e, t, n) {
|
|
|
828
828
|
I.attr("style", e + I.attr("style"));
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
if (I.attr("data-edge", !0), I.attr("data-et", "edge"), I.attr("data-id", i.id), I.attr("data-points", A), I.attr("data-look",
|
|
831
|
+
if (I.attr("data-edge", !0), I.attr("data-et", "edge"), I.attr("data-id", i.id), I.attr("data-points", A), I.attr("data-look", re(i.look)), i.step !== void 0) {
|
|
832
832
|
let { themeVariables: t } = r(), n = z ?? t?.lineColor;
|
|
833
833
|
Be(e, i, L, y, {
|
|
834
834
|
points: j,
|
|
@@ -845,7 +845,7 @@ var ut = /* @__PURE__ */ e(function(e, t, n) {
|
|
|
845
845
|
let de = !V && i?.look === "neo";
|
|
846
846
|
Ve(I, i, H, y, o, de, z);
|
|
847
847
|
let fe = Math.floor(w.length / 2), pe = w[fe];
|
|
848
|
-
|
|
848
|
+
v.isLabelCoordinateInPath(pe, I.attr("d")) || (E = !0);
|
|
849
849
|
let U = {};
|
|
850
850
|
return E && (U.updatedPath = w), U.originalPath = i.points, U;
|
|
851
851
|
}, "insertEdge");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./dist-CeGGIzgU.cjs"),i=require("./chunk-6MUBBAK2-fxSdrddJ.cjs"),a=require("./chunk-STOXU5M4-_pvE8f8d.cjs"),o=require("./chunk-X4PVCEUW-Djs21j48.cjs"),s=require("./rough.esm-ChRLLRha.cjs"),c=require("./chunk-AXFCVDMN-DSN0_Pz7.cjs"),l=require("./chunk-LEVMRMFU-8QpYqPF4.cjs");var u=(e,t)=>n.st.lang.round(n.ot.parse(e)[t]),d=e.n((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),f={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},p={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};function m(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=h(e),t=h(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}e.n(m,`calculateDeltaAndAngle`);var h=e.n(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),g=e.n(t=>({x:e.n(function(e,n,r){let i=0,a=h(r[0]).x<h(r[r.length-1]).x?`left`:`right`;if(n===0&&Object.hasOwn(f,t.arrowTypeStart)){let{angle:e,deltaX:n}=m(r[0],r[1]);i=f[t.arrowTypeStart]*Math.cos(e)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(f,t.arrowTypeEnd)){let{angle:e,deltaX:n}=m(r[r.length-1],r[r.length-2]);i=f[t.arrowTypeEnd]*Math.cos(e)*(n>=0?1:-1)}let o=Math.abs(h(e).x-h(r[r.length-1]).x),s=Math.abs(h(e).y-h(r[r.length-1]).y),c=Math.abs(h(e).x-h(r[0]).x),l=Math.abs(h(e).y-h(r[0]).y),u=f[t.arrowTypeStart],d=f[t.arrowTypeEnd];if(o<d&&o>0&&s<d){let e=d+1-o;e*=a===`right`?-1:1,i-=e}if(c<u&&c>0&&l<u){let e=u+1-c;e*=a===`right`?-1:1,i+=e}return h(e).x+i},`x`),y:e.n(function(e,n,r){let i=0,a=h(r[0]).y<h(r[r.length-1]).y?`down`:`up`;if(n===0&&Object.hasOwn(f,t.arrowTypeStart)){let{angle:e,deltaY:n}=m(r[0],r[1]);i=f[t.arrowTypeStart]*Math.abs(Math.sin(e))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(f,t.arrowTypeEnd)){let{angle:e,deltaY:n}=m(r[r.length-1],r[r.length-2]);i=f[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(n>=0?1:-1)}let o=Math.abs(h(e).y-h(r[r.length-1]).y),s=Math.abs(h(e).x-h(r[r.length-1]).x),c=Math.abs(h(e).y-h(r[0]).y),l=Math.abs(h(e).x-h(r[0]).x),u=f[t.arrowTypeStart],d=f[t.arrowTypeEnd];if(o<d&&o>0&&s<d){let e=d+1-o;e*=a===`up`?-1:1,i-=e}if(c<u&&c>0&&l<u){let e=u+1-c;e*=a===`up`?-1:1,i+=e}return h(e).y+i},`y`)}),`getLineFunctionsWithOffset`),_=1,v=e.n(e=>typeof e==`number`&&Number.isFinite(e)&&e>0?e:_,`getStepDuration`),y=e.n(e=>typeof e.step==`number`&&Number.isInteger(e.step)&&e.step>0,`isStepEdge`),b=[.25,.35,.15,.65,.75,.5,.85,.1,.9],x=9,S=11,C=2,w=`#333333`,T=12,E=6,D=14,O=.01,ee=4.5,k=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,te=4,A=.6,j=4,M=e.n((e,t,n=_)=>{let r=Math.max(t,e);return{begin:(e-1)*n,dur:n,gap:(r-1)*n}},`getEdgeStepTiming`),N=e.n(e=>`step_${Array.from(e,e=>/[\dA-Za-z]/.test(e)?e:`_${(e.codePointAt(0)??0).toString(16)}_`).join(``)}`,`toAnimationId`),P=e.n(e=>{let t=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(e.trim());return t?`translate(${t[1]},${t[2]}) `:``},`pathStartTranslate`),F=e.n(e=>Array.from(e,(t,n)=>{let r=t.codePointAt(0)??0;if(r===0)return`�`;let i=r<=31||r===127,a=/\d/.test(t)&&(n===0||n===1&&e.startsWith(`-`));return i||a?`\\${r.toString(16)} `:e===`-`?`\\-`:r>=128||/[\w-]/.test(t)?t:`\\${t}`}).join(``),`escapeCssIdentifierFallback`),I=e.n(e=>typeof CSS<`u`&&typeof CSS.escape==`function`?CSS.escape(e):F(e),`escapeCssIdentifier`),L=e.n((e,t)=>{let n=e.node(),r=n?.ownerSVGElement??n?.closest?.(`svg`)??n,i=t||r?.getAttribute(`id`);if(!r||!i||r.querySelector(`style.edge-step-style`))return;let a=`#${I(i)} `,o=r.ownerDocument.createElementNS(`http://www.w3.org/2000/svg`,`style`);o.setAttribute(`class`,`edge-step-style`),o.textContent=`@media (prefers-reduced-motion: reduce) { ${a}.edge-step-dot, ${a}.edge-step-highlight { display: none; } }`,r.appendChild(o)},`ensureReducedMotionStyle`),ne=e.n((e,t)=>{let n=e.filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y));if(n.length===0)return;let r=n.slice(1).map((e,t)=>Math.hypot(e.x-n[t].x,e.y-n[t].y)),i=r.reduce((e,t)=>e+t,0)*t;for(let[e,t]of r.entries()){if(i<=t&&t>0){let r=i/t,a=n[e],o=n[e+1];return{x:a.x+(o.x-a.x)*r,y:a.y+(o.y-a.y)*r}}i-=t}return n[n.length-1]},`pointAlongPolyline`),re=e.n((e,t)=>{let n=typeof t?.getTotalLength==`function`?t.getTotalLength():0,r=t?.getPointAtLength?.bind(t);return n>0&&r?e=>{let{x:t,y:i}=r(n*e);return{x:t,y:i}}:t=>ne(e,t)},`createPathSampler`),ie=e.n((e,t)=>Math.min(1/0,...t.map(t=>{let n=Math.max(Math.abs(e.x-t.x)-t.halfWidth,0),r=Math.max(Math.abs(e.y-t.y)-t.halfHeight,0);return Math.hypot(n,r)-x})),`roomAround`),R=e.n((e,t)=>{let n=e(t),r=e(Math.max(t-O,0)),i=e(Math.min(t+O,1));if(!n||!r||!i)return[];let a=Math.hypot(i.x-r.x,i.y-r.y);if(a===0)return[];let o={x:-(i.y-r.y)/a,y:(i.x-r.x)/a};return[1,-1].map(e=>({x:n.x+o.x*D*e,y:n.y+o.y*D*e}))},`besideThePath`),ae=e.n((e,t)=>{let n=[...b.map(e),...b.flatMap(t=>R(e,t))],r,i=-1/0;for(let e of n){if(!e||!Number.isFinite(e.x)||!Number.isFinite(e.y))continue;let n=ie(e,t);if(n>=C)return e;n>i&&(r=e,i=n)}return r},`chooseBadgePosition`),oe=e.n((e,t)=>({...e,halfWidth:t,halfHeight:t}),`square`),se=e.n(e=>{let t=k.exec(e.getAttribute(`transform`)??``);return t?{x:Number(t[1]),y:Number(t[2])}:{x:0,y:0}},`translationOf`),z=e.n(e=>{let t={x:0,y:0};for(let n=e;n&&n.localName!==`svg`;n=n.parentElement){let{x:e,y:r}=se(n);t.x+=e,t.y+=r}return t},`offsetInSvg`),ce=e.n((e,t)=>{if(!k.test(e.getAttribute(`transform`)??``))return;let n=z(e),r=n.x-t.x,i=n.y-t.y,a=e.getBBox?.();if(a)return{x:r+a.x+a.width/2,y:i+a.y+a.height/2,halfWidth:a.width/2,halfHeight:a.height/2}},`boxedObstacle`),le=e.n(e=>{try{let t=JSON.parse(atob(e.getAttribute(`data-points`)??``));return Array.isArray(t)?t:[]}catch{return[]}},`readPoints`),ue=e.n((e,t)=>{let n=Math.hypot(e.x-t.x,e.y-t.y);if(n===0)return oe(e,T);let r={x:(e.x-t.x)/n,y:(e.y-t.y)/n},i=T/2;return{x:e.x-r.x*i,y:e.y-r.y*i,halfWidth:Math.abs(r.x)*i+Math.abs(r.y)*E,halfHeight:Math.abs(r.y)*i+Math.abs(r.x)*E}},`arrowheadObstacle`),de=e.n((e,t)=>{let n=e.getAttribute(t);return!!n&&n!==`none`},`hasMarker`),fe=e.n((t,n)=>{let r=le(t).filter(e=>Number.isFinite(e?.x)&&Number.isFinite(e?.y));if(r.length===0)return[];let i=z(t),a=e.n(e=>({x:e.x+i.x-n.x,y:e.y+i.y-n.y}),`toSvg`),o=r.length-1,s=[];return de(t,`marker-start`)&&s.push(ue(a(r[0]),a(r[Math.min(1,o)]))),de(t,`marker-end`)&&s.push(ue(a(r[o]),a(r[Math.max(o-1,0)]))),s},`arrowheadObstacles`),B=e.n(e=>{let t={x:0,y:0},n=[...e?.querySelectorAll(`.edgeLabel, .node`)??[]].map(e=>ce(e,t)).filter(e=>e!==void 0),r=[...e?.querySelectorAll(`path[data-edge="true"]`)??[]].flatMap(e=>fe(e,t));return[...n,...r]},`collectBadgeObstacles`),pe=e.n((e,t)=>{if(!e.label||t.length===0)return[];let{x:n,y:r}=i._.calcLabelPosition(t);return[{x:n,y:r,halfWidth:(e.width??0)/2,halfHeight:(e.height??0)/2}]},`edgeLabelObstacles`),me=e.n(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},`linearChannel`),V=e.n(e=>{try{let[t,n,r]=[`r`,`g`,`b`].map(t=>me(u(e,t)));return .2126*t+.7152*n+.0722*r}catch{return}},`relativeLuminance`),he=e.n((e,t)=>{let n=V(e),r=V(t);return n===void 0||r===void 0?0:(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},`contrastRatio`),ge=e.n((e,t)=>{let n=[...t.filter(e=>!!e),`#ffffff`,`#000000`].map(t=>({color:t,ratio:he(e,t)}));return(n.find(({ratio:e})=>e>=ee)??n.reduce((e,t)=>t.ratio>e.ratio?t:e)).color},`pickBadgeTextColor`),_e=e.n(e=>{let t=e?.replace(/^stroke:\s*/,``).trim();return t===``?void 0:t},`bareColor`),ve=e.n((e,t,n,r=B(e.node()?.closest(`svg`)))=>{if(!y(t)||!t.showStepNumber)return;let i=z(e.node()),a=r.map(e=>({...e,x:e.x-i.x,y:e.y-i.y})),o=ae(re(n.points,n.pathNode),[...a,...pe(t,n.points)]);if(!o)return;let s=_e(n.color)??w,c=e.append(`g`).attr(`class`,`edge-step-badge`).attr(`transform`,`translate(${o.x},${o.y})`).attr(`pointer-events`,`none`).attr(`data-step`,t.step);return c.append(`circle`).attr(`r`,x).attr(`fill`,s),c.append(`text`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,S).attr(`fill`,ge(s,n.textColors??[])).text(String(t.step)),oe({x:o.x+i.x,y:o.y+i.y},x)},`insertEdgeStepBadge`),ye=e.n((e,t,n)=>{e.append(`animateTransform`).attr(`attributeName`,`transform`).attr(`type`,`scale`).attr(`values`,`1;1`).attr(`dur`,`${n}s`).attr(`begin`,`${t}.begin`).attr(`fill`,`remove`)},`showWhileStepPlays`),be=e.n((e,t,n,r,i)=>{if(!y(t)||!n)return;let{begin:a,dur:o,gap:s}=M(t.step,t.stepCount??t.step,v(t.stepDuration)),c=N(`${r}-${t.id}-step`),l=`${P(n)}scale(0)`,u=i?.replace(/^stroke:\s*/,``);ye(e.append(`path`).attr(`class`,`edge-step-highlight`).attr(`aria-hidden`,`true`).attr(`d`,n).attr(`fill`,`none`).attr(`stroke`,u??`currentColor`).attr(`stroke-width`,te).attr(`stroke-linecap`,`round`).attr(`stroke-opacity`,A).attr(`pointer-events`,`none`).attr(`transform`,l).attr(`data-step`,t.step),c,o);let d=e.append(`circle`).attr(`class`,`edge-step-dot`).attr(`r`,j).attr(`aria-hidden`,`true`).attr(`transform`,l).attr(`data-step`,t.step);u&&d.attr(`fill`,u).attr(`stroke`,`none`),d.append(`animateMotion`).attr(`id`,c).attr(`path`,n).attr(`dur`,`${o}s`).attr(`begin`,`${a}s;${c}.end+${s}s`).attr(`fill`,`remove`),ye(d,c,o),L(e,r)},`insertEdgeStepDot`),H=new WeakMap,xe=e.n(e=>{let t=e.querySelector(`:scope > g.edge-step-badges`);if(t)return t;let n=e.ownerDocument.createElementNS(`http://www.w3.org/2000/svg`,`g`);return n.setAttribute(`class`,`edge-step-badges`),e.appendChild(n)},`badgeLayer`),Se=e.n(e=>{let n=e?H.get(e):void 0;if(!e||!n)return;H.delete(e);let r=B(e);for(let{elem:e,edge:i,options:a}of n){let n=e.node()?.parentElement;if(!n)continue;let o=ve(t.p(xe(n)),i,a,r);o&&r.push(o)}},`placeQueuedStepBadges`),Ce=e.n((e,t,n,r,i)=>{be(e,t,n,r,i.color);let a=e.node(),o=a?.ownerSVGElement??a;o&&y(t)&&t.showStepNumber&&H.set(o,[...H.get(o)??[],{elem:e,edge:t,options:i}])},`insertEdgeStepMarks`),we=e.n((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&De(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&De(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),Te={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},arrow_open_head:{type:`openArrow`,fill:!1},arrow_hollow_circle:{type:`hollowCircle`,fill:!1},arrow_hierarchy:{type:`hierarchy`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},Ee=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],De=e.n((e,n,r,i,a,o,s=!1,c)=>{if(!r||r===`none`)return;let l=Te[r],u=l&&Ee.includes(l.type);if(!l){t.m.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(d);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${d})`)},`addEdgeMarker`),Oe=e.n(e=>typeof e==`string`?e:n.b()?.flowchart?.curve,`resolveEdgeCurveType`),U=new Map,W=new Map,ke=e.n(()=>{U.clear(),W.clear()},`clear`),Ae=e.n(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),G=e.n(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),je=e.n(async(e,r)=>{let i=n.b(),s=n.w(i),{labelStyles:l}=o.i(r);r.labelStyle=l;let u=e.insert(`g`).attr(`class`,`edgeLabel`),f=u.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),p=r.labelType===`markdown`,m=await a.n(e,r.label,{style:G(r.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:p,width:void 0},i);f.node().appendChild(m),t.m.info(`abc82`,r,r.labelType);let h,g;if(s){let e=m.children[0],n=t.p(m);h=await a.r.measure(()=>e.getBoundingClientRect()),g=h,n.attr(`width`,h.width),n.attr(`height`,h.height)}else{let e=t.p(m).select(`text`).node();await a.r.measure(()=>{h=m.getBBox(),g=e&&typeof e.getBBox==`function`?e.getBBox():h})}f.attr(`transform`,d(g,s)),U.set(r.id,u),r.width=h.width,r.height=h.height;let _;if(r.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await c.t(i,r.startLabelLeft,G(r.labelStyle)||``,!1,!1);_=a;let o=a.getBBox();if(s){let e=a.children[0],n=t.p(a);o=e.getBoundingClientRect(),n.attr(`width`,o.width),n.attr(`height`,o.height)}i.attr(`transform`,d(o,s)),W.get(r.id)||W.set(r.id,{}),W.get(r.id).startLeft=n,q(_,r.startLabelLeft,o),K(r,`startLeft`,o)}if(r.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await c.t(i,r.startLabelRight,G(r.labelStyle)||``,!1,!1);_=a;let o=a.getBBox();if(s){let e=a.children[0],n=t.p(a);o=e.getBoundingClientRect(),n.attr(`width`,o.width),n.attr(`height`,o.height)}i.attr(`transform`,d(o,s)),W.get(r.id)||W.set(r.id,{}),W.get(r.id).startRight=n,q(_,r.startLabelRight,o),K(r,`startRight`,o)}if(r.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await c.t(i,r.endLabelLeft,G(r.labelStyle)||``,!1,!1);_=a;let o=a.getBBox();if(s){let e=a.children[0],n=t.p(a);o=e.getBoundingClientRect(),n.attr(`width`,o.width),n.attr(`height`,o.height)}i.attr(`transform`,d(o,s)),W.get(r.id)||W.set(r.id,{}),W.get(r.id).endLeft=n,q(_,r.endLabelLeft,o),K(r,`endLeft`,o)}if(r.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await c.t(i,r.endLabelRight,G(r.labelStyle)||``,!1,!1);_=a;let o=a.getBBox();if(s){let e=a.children[0],n=t.p(a);o=e.getBoundingClientRect(),n.attr(`width`,o.width),n.attr(`height`,o.height)}i.attr(`transform`,d(o,s)),W.get(r.id)||W.set(r.id,{}),W.get(r.id).endRight=n,q(_,r.endLabelRight,o),K(r,`endRight`,o)}return m},`insertEdgeLabel`);function K(e,t,n){e.terminalLabelSizes??={},e.terminalLabelSizes[t]={width:n.width,height:n.height}}e.n(K,`recordTerminalLabelSize`);function q(e,t,r){n.w(n.b())&&e&&(e.style.width=Math.max(t.length*9,r.width)+`px`,e.style.height=r.height+`px`)}e.n(q,`setTerminalWidth`);var Me=e.n((e,t)=>{let n=e.x,r=e.y;if(t?.updatedPath){let a=i._.calcLabelPosition(t.updatedPath);if(t.originalPath){let o=i._.calcLabelPosition(t.originalPath);n=e.x+(a.x-o.x),r=e.y+(a.y-o.y)}else n=a.x,r=a.y}return{x:n,y:r}},`resolveEdgeLabelPosition`),Ne=e.n((e,r)=>{t.m.debug(`Moving label abc88 `,e.id,e.label,U.get(e.id),r);let a=n.b(),{subGraphTitleTotalMargin:o}=l.n(a);if(e.label){let n=U.get(e.id),{x:i,y:a}=Me(e,r);t.m.debug(`Moving label `+e.label+` from (`,e.x,`,`,e.y,`) to (`,i,`,`,a,`) abc88`),n.attr(`transform`,`translate(${i}, ${a+o/2})`)}let s=r.updatedPath?r.updatedPath:r.originalPath;if(e.startLabelLeft){let t=W.get(e.id).startLeft,n=e.x,r=e.y;if(s){let t=i._.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,s);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.startLabelRight){let t=W.get(e.id).startRight,n=e.x,r=e.y;if(s){let t=i._.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,s);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.endLabelLeft){let t=W.get(e.id).endLeft,n=e.x,r=e.y;if(s){let t=i._.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,s);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}if(e.endLabelRight){let t=W.get(e.id).endRight,n=e.x,r=e.y;if(s){let t=i._.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,s);n=t.x,r=t.y}t.attr(`transform`,`translate(${n}, ${r})`)}},`positionEdgeLabel`),J=.5,Y=e.n((e,t)=>Math.abs(e.x-t.x)<J,`sharesColumn`),X=e.n((e,t)=>Math.abs(e.y-t.y)<J,`sharesRow`),Pe=e.n((e,t)=>Y(e,t)&&X(e,t),`coincides`);function Fe(e,t,n){return Y(e,t)&&!X(e,t)?Y(n,t):X(e,t)&&!Y(e,t)?X(n,t):Y(n,t)||X(n,t)}e.n(Fe,`keepsArrivalAxis`);function Ie(e,t,n){return Pe(e,t)?{heading:t,from:n}:{heading:e,from:t}}e.n(Ie,`arrivalSegment`);function Le({heading:e,from:t},n,r){return(e.x-t.x)*(r.x-n.x)+(e.y-t.y)*(r.y-n.y)<0}e.n(Le,`runsAgainstHeading`);function Re({heading:e,from:t},n,r){return X(e,t)&&!Y(e,t)?{x:r.x,y:n.y}:Y(e,t)&&!X(e,t)?{x:n.x,y:r.y}:r}e.n(Re,`snapToArrivalAxis`);function ze(e,t,n,r){if((Y(e,t)||X(e,t))&&!Fe(e,t,r))return e;let i=Ie(e,t,n);return Le(i,t,r)?t:Re(i,t,r)}e.n(ze,`dockFinalPoint`);function Z(e){let t=Object.hasOwn(f,e)?f[e]:0;return Number.isFinite(t)?t:0}e.n(Z,`markerPullBack`);function Be({originalLast:e,lastInner:t,newLast:n,minLength:r}){let i=!Pe(e,t),a=Math.hypot(n.x-t.x,n.y-t.y);return a>=Math.max(J,r)?n:i&&a>=J?e:void 0}e.n(Be,`finalDockPoint`);var Ve=e.n((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),He=e.n((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),Ue=e.n((e,n,r)=>{t.m.debug(`intersection calc abc89:
|
|
2
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
3
|
+
insidePoint : ${JSON.stringify(r)}
|
|
4
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<n.x?s-o:s+o,l=e.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let e=r.y<n.y?n.y-l-a:a-l-n.y;c=d*e/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),t.m.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}{c=r.x<n.x?n.x-s-i:i-s-n.x;let e=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+e:r.y-e;return t.m.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),We=e.n((e,n)=>{t.m.warn(`abc88 cutPathAtIntersect`,e,n);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(t.m.info(`abc88 checking point`,e,n),!He(n,e)&&!a){let o=Ue(n,i,e);t.m.debug(`abc88 inside`,e,i,o),t.m.debug(`abc88 intersection`,o,n);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?t.m.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else t.m.warn(`abc88 outside`,e,i),i=e,a||r.push(e)}),t.m.debug(`returning points`,r),r},`cutPathAtIntersect`);function Ge(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}e.n(Ge,`extractCornerPoints`);var Ke=e.n(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),qe=e.n(function(e){let{cornerPointPositions:n}=Ge(e),r=[];for(let i=0;i<e.length;i++)if(n.includes(i)){let n=e[i-1],a=e[i+1],o=e[i],s=Ke(n,o,5),c=Ke(a,o,5),l=c.x-s.x,u=c.y-s.y;r.push(s);let d=Math.sqrt(2)*2,f={x:o.x,y:o.y};Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10?(t.m.debug(`Corner point fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):t.m.debug(`Corner point skipping fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),r.push(f,c)}else r.push(e[i]);return r},`fixCorners`),Je=e.n((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),Ye=e.n(function(e,a,c,l,u,d,f,m=!1,h=void 0){if(!f)throw Error(`insertEdge: missing diagramId for edge "${a.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:_,layout:v}=n.b(),y=h??v,b=a.points,x=!1,S=u;var C=d;let w=[];for(let e in a.cssCompiledStyles)o.n(e)||w.push(a.cssCompiledStyles[e]);if(y===`swimlane`){if(!m&&C.intersect&&S.intersect&&Array.isArray(b)&&b.length>=2){if(b.length===2){let[e,t]=b;b=Y(e,t)||X(e,t)?[S.intersect(e),C.intersect(t)]:[S.intersect(t),C.intersect(e)]}else{let e=b.slice(1,-1),t=e[0],n=e[e.length-1],r=S.intersect(t),i=b[b.length-1],o=C.intersect(n),s=Be({originalLast:i,lastInner:n,newLast:ze(i,n,e.at(-2)??b[0],o),minLength:Z(a.arrowTypeEnd)}),c=Math.abs(r.x-t.x)<J&&Math.abs(r.y-t.y)<J?[]:[r],l=s?[s]:[];b=[...c,...e,...l]}}b=Ve(a,b)}else C.intersect&&S.intersect&&!m&&(b=b.slice(1,a.points.length-1),b.unshift(S.intersect(b[0])),b.push(C.intersect(b[b.length-1])));let T=btoa(JSON.stringify(b));a.toCluster&&(t.m.info(`to cluster abc88`,c.get(a.toCluster)),b=We(a.points,c.get(a.toCluster).node),x=!0),a.fromCluster&&(t.m.debug(`from cluster abc88`,c.get(a.fromCluster),JSON.stringify(b,null,2)),b=We(b.reverse(),c.get(a.fromCluster).node).reverse(),x=!0);let E=b.filter(e=>!Number.isNaN(e.y)),D=Oe(a.curve);D!==`rounded`&&(E=qe(E));let O=r.h;switch(D){case`linear`:O=r.h;break;case`basis`:O=r.r;break;case`cardinal`:O=r.l;break;case`bumpX`:O=r.o;break;case`bumpY`:O=r.s;break;case`catmullRom`:O=r.f;break;case`monotoneX`:O=r.v;break;case`monotoneY`:O=r.y;break;case`natural`:O=r.b;break;case`step`:O=r.S;break;case`stepAfter`:O=r.C;break;case`stepBefore`:O=r.w;break;case`rounded`:O=r.h;break;default:O=r.r}let{x:ee,y:k}=g(a),te=r.g().x(ee).y(k).curve(O),A;switch(a.thickness){case`normal`:A=`edge-thickness-normal`;break;case`thick`:A=`edge-thickness-thick`;break;case`invisible`:A=`edge-thickness-invisible`;break;default:A=`edge-thickness-normal`}switch(a.pattern){case`solid`:A+=` edge-pattern-solid`;break;case`dotted`:A+=` edge-pattern-dotted`;break;case`dashed`:A+=` edge-pattern-dashed`;break;default:A+=` edge-pattern-solid`}let j,M=D===`rounded`?Xe($(E,a),5):te(E),N=Array.isArray(a.style)?a.style:[a.style],P=N.find(e=>e?.startsWith(`stroke:`)),F=``;a.animate&&(F=`edge-animation-fast`),a.animation&&(F=`edge-animation-`+a.animation);let I=!1;if(a.look===`handDrawn`){let n=s.t.svg(e);Object.assign([],E);let r=n.path(M,{roughness:.3,seed:_});A+=` transition`,j=t.p(r).select(`path`).attr(`id`,`${f}-${a.id}`).attr(`class`,` `+A+(a.classes?` `+a.classes:``)+(F?` `+F:``)).attr(`style`,N?N.reduce((e,t)=>e+`;`+t,``):``);let i=j.attr(`d`);j.attr(`d`,i),e.node().appendChild(j.node())}else{let t=w.join(`;`),n=N?N.reduce((e,t)=>e+t+`;`,``):``,r=(t?t+`;`+n+`;`:n)+`;`+(N?N.reduce((e,t)=>e+`;`+t,``):``);j=e.append(`path`).attr(`d`,M).attr(`id`,`${f}-${a.id}`).attr(`class`,` `+A+(a.classes?` `+a.classes:``)+(F?` `+F:``)).attr(`style`,r),P=r.match(/stroke:([^;]+)/)?.[1],I=a.animate===!0||!!a.animation||t.includes(`animation`);let i=j.node(),o=typeof i.getTotalLength==`function`?i.getTotalLength():0,s=p[a.arrowTypeStart]||0,c=p[a.arrowTypeEnd]||0;if(a.look===`neo`&&!I){let e=`stroke-dasharray: ${a.pattern===`dotted`||a.pattern===`dashed`?Je(o,s,c):`0 ${s} ${o-s-c} ${c}`}; stroke-dashoffset: 0;`;j.attr(`style`,e+j.attr(`style`))}}if(j.attr(`data-edge`,!0),j.attr(`data-et`,`edge`),j.attr(`data-id`,a.id),j.attr(`data-points`,T),j.attr(`data-look`,i.d(a.look)),a.step!==void 0){let{themeVariables:t}=n.b(),r=P??t?.lineColor;Ce(e,a,M,f,{points:E,pathNode:j.node(),color:r,textColors:[t?.background,t?.primaryTextColor]})}a.showPoints&&E.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let L=``;(n.b().flowchart.arrowMarkerAbsolute||n.b().state.arrowMarkerAbsolute)&&(L=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),t.m.info(`arrowTypeStart`,a.arrowTypeStart),t.m.info(`arrowTypeEnd`,a.arrowTypeEnd);let ne=!I&&a?.look===`neo`;we(j,a,L,f,l,ne,P);let re=Math.floor(b.length/2),ie=b[re];i._.isLabelCoordinateInPath(ie,j.attr(`d`))||(x=!0);let R={};return x&&(R.updatedPath=b),R.originalPath=a.points,R},`insertEdge`);function Xe(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}e.n(Xe,`generateRoundedPath`);function Q(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}e.n(Q,`calculateDeltaAndAngle`);function $(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&f[t.arrowTypeStart]){let r=f[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=Q(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&f[t.arrowTypeEnd]){let i=f[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=Q(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}e.n($,`applyMarkerOffsetsToPoints`);var Ze=e.n((e,t,n,r)=>{t.forEach(t=>{Qe[t](e,n,r)})},`insertMarkers`),Qe={extension:e.n((e,n,r)=>{t.m.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,r+`_`+n+`-extensionStart-margin`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd-margin`).attr(`class`,`marker extension `+n).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:e.n((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:e.n((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:e.n((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{transitionColor:a}=i;e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${a}`)},`barbNeo`),hierarchy:e.n((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-hierarchyEnd`).attr(`class`,`marker hierarchy `+t).attr(`viewBox`,`0 0 12 10`).attr(`refX`,10).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`),e.append(`marker`).attr(`id`,n+`_`+t+`-hierarchyStart`).attr(`class`,`marker hierarchy `+t).attr(`viewBox`,`0 0 12 10`).attr(`refX`,2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`)},`hierarchy`),only_one:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:e.n((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:e.n((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{strokeWidth:a}=i;e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${a}`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${a}`)},`only_one_neo`),zero_or_one_neo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{strokeWidth:a,mainBkg:o}=i,s=e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${a}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${a}`);let c=e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${a}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${a}`)},`zero_or_one_neo`),one_or_more_neo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{strokeWidth:a}=i;e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${a}`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${a}`)},`one_or_more_neo`),zero_or_more_neo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{strokeWidth:a,mainBkg:o}=i,s=e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${a}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${a}`);let c=e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${a}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${a}`)},`zero_or_more_neo`),requirement_arrow:e.n((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
|
|
5
|
+
L20,10
|
|
6
|
+
M20,10
|
|
7
|
+
L0,20`)},`requirement_arrow`),requirement_contains:e.n((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{strokeWidth:a}=i;e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${a}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0
|
|
8
|
+
L20,10
|
|
9
|
+
M20,10
|
|
10
|
+
L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:e.n((e,t,r)=>{let{themeVariables:i}=n.y(),{strokeWidth:a}=i,o=e.append(`defs`).append(`marker`).attr(`id`,r+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);o.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),o.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),o.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),o.selectAll(`*`).attr(`stroke-width`,`${a}`)},`requirement_contains_neo`),openArrow:e.n((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-openArrowEnd`).attr(`class`,`marker openArrow `+t).attr(`viewBox`,`0 0 12 12`).attr(`refX`,11).attr(`refY`,6).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1 1 L 11 6 L 1 11`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1.4).style(`stroke-linecap`,`round`).style(`stroke-linejoin`,`round`).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`),e.append(`marker`).attr(`id`,n+`_`+t+`-openArrowStart`).attr(`class`,`marker openArrow `+t).attr(`viewBox`,`0 0 12 12`).attr(`refX`,1).attr(`refY`,6).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 11 1 L 1 6 L 11 11`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1.4).style(`stroke-linecap`,`round`).style(`stroke-linejoin`,`round`).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`)},`openArrow`),hollowCircle:e.n((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-hollowCircleStart`).attr(`class`,`marker hollowCircle `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`circle`).attr(`cx`,5).attr(`cy`,5).attr(`r`,3.6).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1.4).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`),e.append(`marker`).attr(`id`,n+`_`+t+`-hollowCircleEnd`).attr(`class`,`marker hollowCircle `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,10).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10).attr(`markerHeight`,10).attr(`orient`,`auto`).append(`circle`).attr(`cx`,5).attr(`cy`,5).attr(`r`,3.6).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1.4).style(`stroke-dasharray`,`1,0`).style(`fill`,`none`)},`hollowCircle`)},$e=Ze;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return $e}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs");var r=require("./dist-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs");var r=require("./dist-CeGGIzgU.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,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { p as t } from "./src-65Lfw03T.js";
|
|
3
3
|
import { A as n } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
-
import { t as r } from "./dist-
|
|
4
|
+
import { t as r } from "./dist-BDWJ0PuE.js";
|
|
5
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");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-65Lfw03T.js";
|
|
3
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-
|
|
5
|
-
import { _ as f } from "./chunk-6MUBBAK2-
|
|
6
|
-
import { o as p } from "./chunk-AXFCVDMN-
|
|
7
|
-
import { i as m, n as h, r as g, t as ee } from "./chunk-LEVMRMFU-
|
|
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-BjATojAo.js";
|
|
5
|
+
import { _ as f } from "./chunk-6MUBBAK2-Do5Y2VaL.js";
|
|
6
|
+
import { o as p } from "./chunk-AXFCVDMN-BTcT9L5T.js";
|
|
7
|
+
import { i as m, n as h, r as g, t as ee } from "./chunk-LEVMRMFU-DXj_Ks_M.js";
|
|
8
8
|
import { t as _ } from "./graphlib-CQa_B3rm.js";
|
|
9
|
-
import { r as v, t as y } from "./chunk-M57EVK23-
|
|
9
|
+
import { r as v, t as y } from "./chunk-M57EVK23-D_qW99As.js";
|
|
10
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");
|
|
@@ -1 +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"),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
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./chunk-DQASFODM-GtaZ5zZF.cjs"),i=require("./chunk-6MUBBAK2-fxSdrddJ.cjs"),a=require("./chunk-AXFCVDMN-DSN0_Pz7.cjs"),o=require("./chunk-LEVMRMFU-8QpYqPF4.cjs"),s=require("./graphlib-BaETKKSa.cjs"),c=require("./chunk-M57EVK23-Cvl56jvK.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,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { c as t } from "./chunk-DQASFODM-
|
|
2
|
+
import { c as t } from "./chunk-DQASFODM-BjATojAo.js";
|
|
3
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) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-DQASFODM-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-DQASFODM-GtaZ5zZF.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 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-6MUBBAK2-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-6MUBBAK2-fxSdrddJ.cjs"),r=require("./chunk-AXFCVDMN-DSN0_Pz7.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,7 +1,7 @@
|
|
|
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-6MUBBAK2-
|
|
4
|
-
import { s as r } from "./chunk-AXFCVDMN-
|
|
3
|
+
import { d as n } from "./chunk-6MUBBAK2-Do5Y2VaL.js";
|
|
4
|
+
import { s as r } from "./chunk-AXFCVDMN-BTcT9L5T.js";
|
|
5
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;
|
|
@@ -1 +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
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./chunk-STOXU5M4-_pvE8f8d.cjs"),i=require("./chunk-X4PVCEUW-Djs21j48.cjs"),a=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs"),o=require("./rough.esm-ChRLLRha.cjs"),s=require("./chunk-AXFCVDMN-DSN0_Pz7.cjs"),c=require("./chunk-LEVMRMFU-8QpYqPF4.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,12 +1,12 @@
|
|
|
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
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-
|
|
4
|
+
import { n as o } from "./chunk-STOXU5M4-CcGFpnKt.js";
|
|
5
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-AXFCVDMN-
|
|
9
|
-
import { n as h } from "./chunk-LEVMRMFU-
|
|
8
|
+
import { i as f, n as p, t as m } from "./chunk-AXFCVDMN-BTcT9L5T.js";
|
|
9
|
+
import { n as h } from "./chunk-LEVMRMFU-DXj_Ks_M.js";
|
|
10
10
|
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-M57EVK23.mjs
|
|
11
11
|
var g = /* @__PURE__ */ e(async (e, a, { variant: l = "swimlane" } = {}) => {
|
|
12
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);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-65Lfw03T.js";
|
|
3
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-
|
|
4
|
+
import { o as c } from "./mermaid.core-BlYpILf7.js";
|
|
5
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) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./mermaid.core-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./mermaid.core-uCBIzEBU.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./chunk-DQASFODM-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-BN1VgXwj.cjs"),n=require("./chunk-BG4553SI-DFPUniBw.cjs"),r=require("./chunk-DQASFODM-GtaZ5zZF.cjs"),i=require("./chunk-6MUBBAK2-fxSdrddJ.cjs"),a=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs"),o=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs"),s=require("./chunk-AXFCVDMN-DSN0_Pz7.cjs"),c=require("./chunk-HFQBQIA3-Bt4zc3D1.cjs"),l=require("./chunk-XXDRQBXY-DfReYcER.cjs"),u=require("./chunk-TU62E6Q5-CMbRLUnW.cjs"),d=require("./mermaid.core-uCBIzEBU.cjs");var f=`flowchart-`,p=[`laneRole`,`laneIndex`,`drawnExtent`];function m(e){if(!e||typeof e!=`object`)return e;let t={...e};for(let e of p)Reflect.deleteProperty(t,e);return t}e.n(m,`withoutInternalKeys`);var h=class{constructor(){this.vertexCounter=0,this.config=n.b(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=n.U,this.setAccDescription=n.H,this.setDiagramTitle=n.q,this.getAccTitle=n.v,this.getAccDescription=n._,this.getDiagramTitle=n.C,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{e.n(this,`FlowDB`)}sanitizeText(e){return n.s.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,a,o,c,l,u={},p){if(!e||e.trim().length===0)return;let h;if(p!==void 0){let e;e=p.includes(`
|
|
2
2
|
`)?p+`
|
|
3
3
|
`:`{
|
|
4
4
|
`+p+`
|