@pi-outpost/embed 0.6.5 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abnfDiagram-VRR7QNED-BYiK127A.cjs → abnfDiagram-N423BO3Z-DOZfbvMH.cjs} +1 -1
- package/dist/{abnfDiagram-VRR7QNED-B7qtYi43.js → abnfDiagram-N423BO3Z-WMOVzCba.js} +4 -4
- package/dist/{architectureDiagram-ZJ3FMSHR-Dfn1Eluq.js → architectureDiagram-T3A2C74G-BH-F8FzB.js} +190 -164
- package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +36 -0
- package/dist/{blockDiagram-677ZJIJ3-5sBqwUmB.cjs → blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-DbAJu3k8.js → blockDiagram-VBNYF7ZC-DYMmF9bV.js} +8 -8
- package/dist/{c4Diagram-LMCZKHZV-thRhKJog.js → c4Diagram-5PPSVZJV-Cfnl6tZM.js} +4 -4
- package/dist/{c4Diagram-LMCZKHZV-DI1J-00k.cjs → c4Diagram-5PPSVZJV-DM6x-BYG.cjs} +1 -1
- package/dist/{channel-Ba6eou00.js → channel-Bq-0ENlK.js} +1 -1
- package/dist/channel-DoxF0tZj.cjs +1 -0
- package/dist/{chunk-32BRIVSS-CWVz3-4w.js → chunk-2GRJ4B5K-DXwE-yr5.js} +2 -2
- package/dist/{chunk-32BRIVSS-z7FKg2Pv.cjs → chunk-2GRJ4B5K-DzaxUd3W.cjs} +1 -1
- package/dist/{chunk-VAUOI2AC-CjcMRxtg.cjs → chunk-3NCLNEKW-CO28EZBG.cjs} +1 -1
- package/dist/{chunk-VAUOI2AC-CYw9chtc.js → chunk-3NCLNEKW-dTH67Ne_.js} +2 -2
- package/dist/{chunk-HOUHSVGY-DxW96-AB.js → chunk-4I5QYGJK-JZmvuONC.js} +2 -2
- package/dist/{chunk-HOUHSVGY-DV6Acnl8.cjs → chunk-4I5QYGJK-LCSWSJfh.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-BQIgFxoP.cjs → chunk-5RXB4S5H-B5b3tdRl.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-DbrJJGQa.js → chunk-5RXB4S5H-JthGygoA.js} +6 -6
- package/dist/{chunk-MOJQB5TN-BMWWOyJv.cjs → chunk-6Q2QTUOP-C5n08EA-.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-CEfcwUfx.js → chunk-6Q2QTUOP-DvJxCxMM.js} +3 -3
- package/dist/{chunk-52WLFC77-qxhAtY0M.js → chunk-7Z6QIM7H-CIoK8R3m.js} +8 -8
- package/dist/{chunk-52WLFC77-BQFqILl5.cjs → chunk-7Z6QIM7H-Ctljl7Vq.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-DmZ7gcnm.js → chunk-GF5L2VYU-BPBMCCz5.js} +6 -6
- package/dist/{chunk-V7JOEXUC-jX56MdQR.cjs → chunk-GF5L2VYU-DgG-wovM.cjs} +1 -1
- package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +127 -0
- package/dist/{chunk-WYO6CB5R-C9QlJ7t3.js → chunk-I66GZJ75-DexfhZwA.js} +386 -367
- package/dist/{chunk-FWX5IMBZ-BqwXqA9g.js → chunk-J7OUQ5F2-DhMpZbAr.js} +7 -7
- package/dist/{chunk-FWX5IMBZ-DuYeCVfe.cjs → chunk-J7OUQ5F2-b-MfW4O9.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-Bj0-QOjk.cjs → chunk-JQJVKLGR-2AQwaWbm.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-D0QWPoHn.js → chunk-JQJVKLGR-CZorbEP3.js} +8 -8
- package/dist/{chunk-VR4S4FIN-D-R-67xf.js → chunk-KBJHAD2P-BlQyFndF.js} +2 -2
- package/dist/{chunk-VR4S4FIN-C_53SlqF.cjs → chunk-KBJHAD2P-CthZVYG5.cjs} +1 -1
- package/dist/{chunk-ICXQ74PX-DtHODNRc.cjs → chunk-NSK5VX7P-D5CepZHI.cjs} +1 -1
- package/dist/{chunk-ICXQ74PX-C0c64VZJ.js → chunk-NSK5VX7P-DPxIxDdV.js} +2 -2
- package/dist/{chunk-ZGVPDNZ5-BXZklZiD.js → chunk-QR6OTTB3-CQ_jjYb-.js} +7 -7
- package/dist/{chunk-ZGVPDNZ5-DlOaIRV9.cjs → chunk-QR6OTTB3-DSg3ZWNW.cjs} +1 -1
- package/dist/{chunk-OGEWGWER-CmVjY0nN.js → chunk-UBXNYLIW-BBncokef.js} +3 -3
- package/dist/{chunk-OGEWGWER-DNcXwflY.cjs → chunk-UBXNYLIW-DlNyCWjj.cjs} +1 -1
- package/dist/{chunk-C7G6YPKG-D5RsHjmn.js → chunk-W5SLKNZC-Djmw_p6f.js} +2 -2
- package/dist/{chunk-C7G6YPKG-C0kXpvB9.cjs → chunk-W5SLKNZC-bHBkM2CL.cjs} +1 -1
- package/dist/{chunk-Q4XR5HBZ-DZp3iZyL.cjs → chunk-WRU74C26-9KZxhHnn.cjs} +1 -1
- package/dist/{chunk-Q4XR5HBZ-Do2IPcal.js → chunk-WRU74C26-D4huAZcy.js} +4 -4
- package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +1 -0
- package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +30 -0
- package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +1 -0
- package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +30 -0
- package/dist/{cynefinDiagram-TSTJHNR4-BvOW3232.cjs → cynefinDiagram-MW4NZA55-By102s5I.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-D0SwDPh4.js → cynefinDiagram-MW4NZA55-CB4ZzMEN.js} +4 -4
- package/dist/{dagre-VKFMJZFB-BFmNqGsf.js → dagre-VZM6K2ZE-5zrH2LqV.js} +9 -9
- package/dist/{dagre-VKFMJZFB-CviZfakU.cjs → dagre-VZM6K2ZE-CNe7-jhy.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-Bb-L6sPQ.cjs → diagram-7IWD3JNH-CSzLXhRw.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-P_wpH5Im.js → diagram-7IWD3JNH-Cschro8T.js} +5 -5
- package/dist/{diagram-FQU43EPY-ZkC_gGab.js → diagram-B4RE2ZJO-B94mhDmV.js} +3 -3
- package/dist/{diagram-FQU43EPY-BbpqeES9.cjs → diagram-B4RE2ZJO-DKbKOwkP.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-DTxScPZq.js → diagram-LBJQPF4R-D0MEwBt6.js} +4 -4
- package/dist/{diagram-NH7WQ7WH-Bz4Neh4O.cjs → diagram-LBJQPF4R-DgD0a56I.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-DkscVNSn.js → diagram-Q27KOJAE-Cqn3IliP.js} +6 -6
- package/dist/{diagram-G47NLZAW-Y1WmJnra.cjs → diagram-Q27KOJAE-DNWfiaD5.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-Cywimh_Q.js → diagram-UB23O5K3-D-yL2fvd.js} +54 -54
- package/dist/diagram-UB23O5K3-DguyM6v_.cjs +41 -0
- package/dist/{ebnfDiagram-CCIWWBDH-pGpPnqYW.js → ebnfDiagram-BXEA7PRR-B2HDWFYF.js} +4 -4
- package/dist/{ebnfDiagram-CCIWWBDH-BfY9RE3m.cjs → ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-C4mX2n9f.js → erDiagram-JOGREHBK-Badv_hu8.js} +12 -12
- package/dist/{erDiagram-Q63AITRT-Bu9iy-KQ.cjs → erDiagram-JOGREHBK-DtyaQROs.cjs} +1 -1
- package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +17 -0
- package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-DniUcCQY.js → ganttDiagram-PKOTCBZU-By0w7TmO.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-B23jdPRh.cjs → ganttDiagram-PKOTCBZU-CFgz4r57.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-C90HZKUb.js → gitGraphDiagram-DS77QQ5N-B1uJYchG.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-DWdu5n9P.cjs → gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-oZ8okdlc.cjs → infoDiagram-6WML65LV-CB6z_iKE.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-DYxiankl.js → infoDiagram-6WML65LV-CkWm_KTB.js} +4 -4
- package/dist/{ishikawaDiagram-FXEZZL3T-Duf4wJ7z.cjs → ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-DoLXsB43.js → ishikawaDiagram-WSZJBQD7-DTeFqC8L.js} +4 -4
- package/dist/{journeyDiagram-5HDEW3XC-AnP7Hgyg.js → journeyDiagram-NVQOT4AX-Cg6C3dFy.js} +3 -3
- package/dist/{journeyDiagram-5HDEW3XC-CtmpqS0G.cjs → journeyDiagram-NVQOT4AX-DLomv_vN.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-U7vhLTXB.cjs → kanban-definition-27J2QSJJ-B9Fog3W7.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-sNNSXAcc.js → kanban-definition-27J2QSJJ-Bb7nb0gX.js} +9 -9
- package/dist/{line-CzTN7vFx.cjs → line-pOZ7Sdj7.cjs} +1 -1
- package/dist/{line-BCC5VaQh.js → line-yqcJYv29.js} +1 -1
- package/dist/{mermaid.core-D4MSGV51.js → mermaid.core-BIq27e0A.js} +55 -51
- package/dist/{mermaid.core-DsQ2cTZb.cjs → mermaid.core-DpsSj3iy.cjs} +4 -4
- package/dist/{mindmap-definition-LN4V7U3C-BDXyXsYc.cjs → mindmap-definition-FAOFIHXS-9wa1P9NT.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-CDdi0CNr.js → mindmap-definition-FAOFIHXS-DFG0Zs_1.js} +11 -11
- package/dist/{pegDiagram-2B236MQR-PUegmPq4.cjs → pegDiagram-VL7TDLO6-B4FslsmM.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-C2iFSdWA.js → pegDiagram-VL7TDLO6-XOjprD-j.js} +4 -4
- package/dist/pi-outpost-embed.cjs +59 -56
- package/dist/pi-outpost-embed.js +6411 -6332
- package/dist/{pieDiagram-ENE6RG2P-DdCURg8Z.cjs → pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-BD4E9x3q.js → pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js} +4 -4
- package/dist/{quadrantDiagram-ABIIQ3AL-D_HJfnw7.cjs → quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-B29o3-5x.js → quadrantDiagram-CIZ2JOQS-CbaMHmYB.js} +2 -2
- package/dist/{railroadDiagram-RFXS5EU6-Eu2-eTxR.js → railroadDiagram-AXF67PYL-CVXAv-Uu.js} +4 -4
- package/dist/{railroadDiagram-RFXS5EU6-Bqz7Hmlf.cjs → railroadDiagram-AXF67PYL-EO1cBHEj.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-B7upMxNQ.cjs → requirementDiagram-LRYGKXZP-BGlGCftH.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-DE9BVZKg.js → requirementDiagram-LRYGKXZP-Bzik4kgS.js} +11 -11
- package/dist/{sankeyDiagram-HTMAVEWB-UgWMXgH0.cjs → sankeyDiagram-W5VNT64P-OeLUMuT6.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-DWYscCb7.js → sankeyDiagram-W5VNT64P-_8xZpo45.js} +2 -2
- package/dist/{sequenceDiagram-DBY2YBRQ-B8Wj3FxL.cjs → sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-2Q8poJLj.js → sequenceDiagram-SI44F4Z6-X4mzY21C.js} +4 -4
- package/dist/{stateDiagram-2N3HPSRC-D5l36r9f.js → stateDiagram-OKZ733FA-CMM1orC_.js} +14 -14
- package/dist/{stateDiagram-2N3HPSRC-DdBm7zAq.cjs → stateDiagram-OKZ733FA-Dq6hI_pq.cjs} +1 -1
- package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +30 -0
- package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +1 -0
- package/dist/{swimlanes-5IMT3BWC-DLXSmhPP.cjs → swimlanes-SLNWSIFB-BMS6R0BK.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-C-d6S2T8.js → swimlanes-SLNWSIFB-C7LLK1V2.js} +9 -9
- package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +8 -0
- package/dist/{swimlanesDiagram-G3AALYLV-yAL_7-lO.js → swimlanesDiagram-ULZ7WXOC-uXMuqsao.js} +13 -13
- package/dist/{timeline-definition-FHXFAJF6-M0fyTC2Q.js → timeline-definition-Z64GVDOM-Cgc-2OmU.js} +4 -4
- package/dist/{timeline-definition-FHXFAJF6-DjbbA72K.cjs → timeline-definition-Z64GVDOM-PPJqDdOy.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-PAy6Hi1U.js → vennDiagram-T6HMQDX7-BWj1BhMh.js} +4 -4
- package/dist/{vennDiagram-L72KCM5P-BzU_8gqp.cjs → vennDiagram-T6HMQDX7-DqY7YgNx.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-DQgwqGGC.cjs → wardleyDiagram-T6FBY63Y-OomvVIFj.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-KQfJDE49.js → wardleyDiagram-T6FBY63Y-d_t4oVLE.js} +4 -4
- package/dist/{xychartDiagram-FW5EYKEG-BJuIG0ER.cjs → xychartDiagram-ELKLHX3M-BOSOdubI.cjs} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-Cgi_Sfv1.js → xychartDiagram-ELKLHX3M-Ce-ai3a8.js} +13 -10
- package/package.json +10 -2
- package/dist/architectureDiagram-ZJ3FMSHR-CnEarI2q.cjs +0 -36
- package/dist/channel-G59is6ug.cjs +0 -1
- package/dist/chunk-WYO6CB5R-BeX_IRrv.cjs +0 -127
- package/dist/classDiagram-OUVF2IWQ-BXk_zmpX.cjs +0 -1
- package/dist/classDiagram-OUVF2IWQ-TuB0I2YU.js +0 -30
- package/dist/classDiagram-v2-EOCWNBFH-BXk_zmpX.cjs +0 -1
- package/dist/classDiagram-v2-EOCWNBFH-BwF0gRU-.js +0 -30
- package/dist/diagram-WEI45ONY-Xve-bzio.cjs +0 -41
- package/dist/flowDiagram-23GEKE2U-p9J8mqjX.js +0 -17
- package/dist/flowDiagram-23GEKE2U-qNQmKrgX.cjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-B32DzP9u.js +0 -30
- package/dist/stateDiagram-v2-6OUMAXLB-Dt4my2LB.cjs +0 -1
- package/dist/swimlanesDiagram-G3AALYLV-BFTabgJm.cjs +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-DJ4x3y2O.js";
|
|
3
|
-
import { b as n, s as r } from "./chunk-
|
|
4
|
-
import { d as i } from "./chunk-
|
|
5
|
-
import { a, i as o, s } from "./chunk-
|
|
6
|
-
import { a as c, i as l, o as u, r as d } from "./chunk-
|
|
7
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
3
|
+
import { b as n, s as r } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
4
|
+
import { d as i } from "./chunk-NSK5VX7P-DPxIxDdV.js";
|
|
5
|
+
import { a, i as o, s } from "./chunk-QR6OTTB3-CQ_jjYb-.js";
|
|
6
|
+
import { a as c, i as l, o as u, r as d } from "./chunk-7Z6QIM7H-CIoK8R3m.js";
|
|
7
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-J7OUQ5F2.mjs
|
|
8
8
|
var f = {
|
|
9
9
|
common: r,
|
|
10
10
|
getConfig: n,
|
|
@@ -24,11 +24,11 @@ var f = {
|
|
|
24
24
|
m([
|
|
25
25
|
{
|
|
26
26
|
name: "dagre",
|
|
27
|
-
loader: /* @__PURE__ */ e(async () => await import("./dagre-
|
|
27
|
+
loader: /* @__PURE__ */ e(async () => await import("./dagre-VZM6K2ZE-5zrH2LqV.js"), "loader")
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
name: "swimlane",
|
|
31
|
-
loader: /* @__PURE__ */ e(async () => await import("./swimlanes-
|
|
31
|
+
loader: /* @__PURE__ */ e(async () => await import("./swimlanes-SLNWSIFB-C7LLK1V2.js"), "loader")
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
name: "cose-bilkent",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-I66GZJ75-CrpH-Rmq.cjs"),r=require("./chunk-NSK5VX7P-D5CepZHI.cjs"),i=require("./chunk-QR6OTTB3-DSg3ZWNW.cjs"),a=require("./chunk-7Z6QIM7H-Ctljl7Vq.cjs");var o={common:n.s,getConfig:n.b,insertCluster:i.i,insertEdge:a.r,insertEdgeLabel:a.i,insertMarkers:a.a,insertNode:i.a,interpolateToCurve:r.d,labelHelper:i.s,log:t.m,positionEdgeLabel:a.o},s={},c=e.n(e=>{for(let t of e)s[t.name]=t},`registerLayoutLoaders`);e.n(()=>{c([{name:`dagre`,loader:e.n(async()=>await Promise.resolve().then(()=>require("./dagre-VZM6K2ZE-CNe7-jhy.cjs")),`loader`)},{name:`swimlane`,loader:e.n(async()=>await Promise.resolve().then(()=>require("./swimlanes-SLNWSIFB-BMS6R0BK.cjs")),`loader`)},{name:`cose-bilkent`,loader:e.n(async()=>await Promise.resolve().then(()=>require("./cose-bilkent-JH36ORCC-AyWV1dUo.cjs")),`loader`)}])},`registerDefaultLayoutLoaders`)();var l=e.n(async(e,t,n)=>{if(!(e.layoutAlgorithm in s))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=s[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:c}=e.config,{useGradient:l,gradientStart:u,gradientStop:d}=c,f=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${f}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${f}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),l){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}return i.render(e,t,o,{algorithm:r.algorithm},n)},`render`),u=e.n((e=``,{fallback:n=`dagre`}={})=>{if(e in s)return e;if(n in s)return t.m.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Both layout algorithms ${e} and ${n} are not registered.`)},`getRegisteredLayoutAlgorithm`);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-I66GZJ75-CrpH-Rmq.cjs"),r=require("./channel-DoxF0tZj.cjs"),i=require("./chunk-NSK5VX7P-D5CepZHI.cjs"),a=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs"),o=require("./chunk-2GRJ4B5K-DzaxUd3W.cjs"),s=require("./chunk-XXDRQBXY-gWcN0uCZ.cjs"),c=require("./chunk-KBJHAD2P-CthZVYG5.cjs"),l=require("./chunk-QR6OTTB3-DSg3ZWNW.cjs"),u=require("./chunk-J7OUQ5F2-b-MfW4O9.cjs"),d=require("./chunk-ZIRB5QZD-BU6XQUGC.cjs");var f=`flowchart-`,p=class{constructor(){this.vertexCounter=0,this.config=n.x(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=n.U,this.setAccDescription=n.H,this.setDiagramTitle=n.K,this.getAccTitle=n.y,this.getAccDescription=n.v,this.getDiagramTitle=n.w,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,r,i,a,o,s,c={},u){if(!e||e.trim().length===0)return;let p;if(u!==void 0){let e;e=u.includes(`
|
|
2
2
|
`)?u+`
|
|
3
3
|
`:`{
|
|
4
4
|
`+u+`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-DJ4x3y2O.js";
|
|
3
|
-
import { $ as r, G as i, H as a, K as o, U as s, a as c, d as l, it as u, k as d, s as f, v as p, w as ee, x as m, y as h } from "./chunk-
|
|
4
|
-
import { t as te } from "./channel-
|
|
5
|
-
import { c as g, g as _ } from "./chunk-
|
|
3
|
+
import { $ as r, G as i, H as a, K as o, U as s, a as c, d as l, it as u, k as d, s as f, v as p, w as ee, x as m, y as h } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
4
|
+
import { t as te } from "./channel-Bq-0ENlK.js";
|
|
5
|
+
import { c as g, g as _ } from "./chunk-NSK5VX7P-DPxIxDdV.js";
|
|
6
6
|
import { t as ne } from "./chunk-5VM5RSS4-BMfgdMFU.js";
|
|
7
|
-
import { t as re } from "./chunk-
|
|
7
|
+
import { t as re } from "./chunk-2GRJ4B5K-DXwE-yr5.js";
|
|
8
8
|
import { t as v } from "./chunk-XXDRQBXY-DsVp5qjg.js";
|
|
9
|
-
import { t as y } from "./chunk-
|
|
10
|
-
import { o as b } from "./chunk-
|
|
11
|
-
import { r as x, t as S } from "./chunk-
|
|
9
|
+
import { t as y } from "./chunk-KBJHAD2P-BlQyFndF.js";
|
|
10
|
+
import { o as b } from "./chunk-QR6OTTB3-CQ_jjYb-.js";
|
|
11
|
+
import { r as x, t as S } from "./chunk-J7OUQ5F2-DhMpZbAr.js";
|
|
12
12
|
import { n as C, t as w } from "./chunk-ZIRB5QZD-Cj-y77rH.js";
|
|
13
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
13
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.mjs
|
|
14
14
|
var T = "flowchart-", E = class {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.vertexCounter = 0, this.config = m(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = s, this.setAccDescription = a, this.setDiagramTitle = o, this.getAccTitle = h, this.getAccDescription = p, this.getDiagramTitle = ee, 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");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-DJ4x3y2O.js";
|
|
3
|
-
import { c as n } from "./chunk-
|
|
4
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
3
|
+
import { c as n } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
4
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-KBJHAD2P.mjs
|
|
5
5
|
var r = /* @__PURE__ */ e((e, r, o, s) => {
|
|
6
6
|
e.attr("class", o);
|
|
7
7
|
let { width: c, height: l, x: u, y: d } = i(e, r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-I66GZJ75-CrpH-Rmq.cjs");var r=e.n((e,r,o,s)=>{e.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(e,r);n.c(e,l,c,s);let f=a(u,d,c,l,r);e.attr(`viewBox`,f),t.m.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=e.n((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=e.n((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-WYO6CB5R-BeX_IRrv.cjs"),r=require("./dist-DNGlMOWd.cjs");function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function a(e){return new i(e)}var o=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function s(e){return new o(e,!0)}function c(e){return new o(e,!1)}function l(){}function u(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d(e){this._context=e}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:u(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f(e){return new d(e)}function ee(e){this._context=e}ee.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function te(e){return new ee(e)}function ne(e){this._context=e}ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new ne(e)}function ie(e,t){this._basis=new d(e),this._beta=t}ie.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ae=(function e(t){function n(e){return t===1?new d(e):new ie(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function p(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function m(e,t){this._context=e,this._k=(1-t)/6}m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:p(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:p(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var h=(function e(t){function n(e){return new m(e,t)}return n.tension=function(t){return e(+t)},n})(0);function g(e,t){this._context=e,this._k=(1-t)/6}g.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:p(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=(function e(t){function n(e){return new g(e,t)}return n.tension=function(t){return e(+t)},n})(0);function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:p(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var se=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function y(e,t){this._context=e,this._alpha=t}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:v(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var b=(function e(t){function n(e){return t?new y(e,t):new m(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function x(e,t){this._context=e,this._alpha=t}x.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:v(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return t?new x(e,t):new g(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function le(e,t){this._context=e,this._alpha=t}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:v(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return t?new le(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function de(e){this._context=e}de.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function fe(e){return new de(e)}function pe(e){return e<0?-1:1}function me(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(pe(a)+pe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function he(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function S(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function C(e){this._context=e}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:S(this,this._t0,he(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,S(this,he(this,n=me(this,e,t)),n);break;default:S(this,this._t0,n=me(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ge(e){this._context=new _e(e)}(ge.prototype=Object.create(C.prototype)).point=function(e,t){C.prototype.point.call(this,t,e)};function _e(e){this._context=e}_e.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function ve(e){return new C(e)}function ye(e){return new ge(e)}function be(e){this._context=e}be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=xe(e),i=xe(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xe(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Se(e){return new be(e)}function w(e,t){this._context=e,this._t=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Ce(e){return new w(e,.5)}function we(e){return new w(e,0)}function T(e){return new w(e,1)}function E(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Te(){}function D(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function O(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var k=`[object RegExp]`,A=`[object String]`,j=`[object Number]`,M=`[object Boolean]`,N=`[object Arguments]`,Ee=`[object Symbol]`,De=`[object Date]`,Oe=`[object Map]`,ke=`[object Set]`,Ae=`[object Array]`,je=`[object ArrayBuffer]`,Me=`[object Object]`,Ne=`[object DataView]`,Pe=`[object Uint8Array]`,Fe=`[object Uint8ClampedArray]`,Ie=`[object Uint16Array]`,Le=`[object Uint32Array]`,Re=`[object Int8Array]`,ze=`[object Int16Array]`,Be=`[object Int32Array]`,Ve=`[object Float32Array]`,He=`[object Float64Array]`,Ue=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function P(e){return Ue.Buffer!==void 0&&Ue.Buffer.isBuffer(e)}function We(e){return Number.isSafeInteger(e)&&e>=0}function Ge(e){return e!=null&&typeof e!=`function`&&We(e.length)}function Ke(e){return e===`__proto__`}function F(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function I(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qe(e,t){return L(e,void 0,e,new Map,t)}function L(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(F(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,L(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(L(a,void 0,n,r,i));return t}if(P(e))return e.subarray();if(I(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),R(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,R(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(typeof e==`object`&&Je(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),R(t,e,n,r,i),t}return e}function R(e,t,n=e,r,i){let a=[...Object.keys(t),...D(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=L(t[s],s,n,r,i))}}function Je(e){switch(O(e)){case N:case Ae:case je:case Ne:case M:case De:case Ve:case He:case Re:case ze:case Be:case Oe:case j:case Me:case k:case ke:case A:case Ee:case Pe:case Fe:case Ie:case Le:return!0;default:return!1}}function Ye(e,t){return qe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(O(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),R(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case j:case A:case M:{let t=new e.constructor(e?.valueOf());return R(t,e),t}case N:{let t={};return R(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Xe(e){return Ye(e)}function z(e){return typeof e==`object`&&!!e&&O(e)===`[object Arguments]`}function B(e){return typeof e==`object`&&!!e}function Ze(e){return B(e)&&Ge(e)}function V(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(V.Cache||Map),n}V.Cache=Map;function H(e){return I(e)}function Qe(e){if(F(e))return e;if(Array.isArray(e)||I(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function $e(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=U(i,t,r,new Map)}return i}function U(e,t,n,r){if(F(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return Qe(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...D(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Ke(o))continue;let s=t[o],c=e[o];if(z(s)&&(s={...s}),z(c)&&(c={...c}),P(s)&&(s=Xe(s)),Array.isArray(s))if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(Ze(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[];let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||B(c)&&B(s)&&(E(c)||E(s)||H(c)||H(s))?e[o]=U(c,s,n,r):c==null&&E(s)?e[o]=U({},s,n,r):c==null&&H(s)?e[o]=Xe(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function et(e,...t){return $e(e,...t,Te)}var tt=r.t(),nt={curveBasis:f,curveBasisClosed:te,curveBasisOpen:re,curveBumpX:s,curveBumpY:c,curveBundle:ae,curveCardinalClosed:oe,curveCardinalOpen:se,curveCardinal:h,curveCatmullRomClosed:ce,curveCatmullRomOpen:ue,curveCatmullRom:b,curveLinear:a,curveLinearClosed:fe,curveMonotoneX:ve,curveMonotoneY:ye,curveNatural:Se,curveStep:Ce,curveStepAfter:T,curveStepBefore:we},rt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,it=e.n(function(e,t){let r=at(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let e=r.map(e=>e.args);n.R(e),i=n.r(i,[...e])}else i=r.args;if(!i)return;let a=n.p(e,t),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),at=e.n(function(e,r=null){try{let i=RegExp(`[%]{2}(?![{]${rt.source})(?=[}][%]{2}).*
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-I66GZJ75-CrpH-Rmq.cjs"),r=require("./dist-DNGlMOWd.cjs");function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function a(e){return new i(e)}var o=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function s(e){return new o(e,!0)}function c(e){return new o(e,!1)}function l(){}function u(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d(e){this._context=e}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:u(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f(e){return new d(e)}function ee(e){this._context=e}ee.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function te(e){return new ee(e)}function ne(e){this._context=e}ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new ne(e)}function ie(e,t){this._basis=new d(e),this._beta=t}ie.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ae=(function e(t){function n(e){return t===1?new d(e):new ie(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function p(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function m(e,t){this._context=e,this._k=(1-t)/6}m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:p(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:p(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var h=(function e(t){function n(e){return new m(e,t)}return n.tension=function(t){return e(+t)},n})(0);function g(e,t){this._context=e,this._k=(1-t)/6}g.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:p(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=(function e(t){function n(e){return new g(e,t)}return n.tension=function(t){return e(+t)},n})(0);function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:p(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var se=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function y(e,t){this._context=e,this._alpha=t}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:v(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var b=(function e(t){function n(e){return t?new y(e,t):new m(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function x(e,t){this._context=e,this._alpha=t}x.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:v(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return t?new x(e,t):new g(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function le(e,t){this._context=e,this._alpha=t}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:v(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return t?new le(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function de(e){this._context=e}de.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function fe(e){return new de(e)}function pe(e){return e<0?-1:1}function me(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(pe(a)+pe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function he(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function S(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function C(e){this._context=e}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:S(this,this._t0,he(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,S(this,he(this,n=me(this,e,t)),n);break;default:S(this,this._t0,n=me(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ge(e){this._context=new _e(e)}(ge.prototype=Object.create(C.prototype)).point=function(e,t){C.prototype.point.call(this,t,e)};function _e(e){this._context=e}_e.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function ve(e){return new C(e)}function ye(e){return new ge(e)}function be(e){this._context=e}be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=xe(e),i=xe(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xe(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Se(e){return new be(e)}function w(e,t){this._context=e,this._t=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Ce(e){return new w(e,.5)}function we(e){return new w(e,0)}function T(e){return new w(e,1)}function E(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Te(){}function D(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function O(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var k=`[object RegExp]`,A=`[object String]`,j=`[object Number]`,M=`[object Boolean]`,N=`[object Arguments]`,Ee=`[object Symbol]`,De=`[object Date]`,Oe=`[object Map]`,ke=`[object Set]`,Ae=`[object Array]`,je=`[object ArrayBuffer]`,Me=`[object Object]`,Ne=`[object DataView]`,Pe=`[object Uint8Array]`,Fe=`[object Uint8ClampedArray]`,Ie=`[object Uint16Array]`,Le=`[object Uint32Array]`,Re=`[object Int8Array]`,ze=`[object Int16Array]`,Be=`[object Int32Array]`,Ve=`[object Float32Array]`,He=`[object Float64Array]`,Ue=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function P(e){return Ue.Buffer!==void 0&&Ue.Buffer.isBuffer(e)}function We(e){return Number.isSafeInteger(e)&&e>=0}function Ge(e){return e!=null&&typeof e!=`function`&&We(e.length)}function Ke(e){return e===`__proto__`}function F(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function I(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qe(e,t){return L(e,void 0,e,new Map,t)}function L(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(F(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,L(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(L(a,void 0,n,r,i));return t}if(P(e))return e.subarray();if(I(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=L(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),R(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,R(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),R(t,e,n,r,i),t}if(typeof e==`object`&&Je(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),R(t,e,n,r,i),t}return e}function R(e,t,n=e,r,i){let a=[...Object.keys(t),...D(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=L(t[s],s,n,r,i))}}function Je(e){switch(O(e)){case N:case Ae:case je:case Ne:case M:case De:case Ve:case He:case Re:case ze:case Be:case Oe:case j:case Me:case k:case ke:case A:case Ee:case Pe:case Fe:case Ie:case Le:return!0;default:return!1}}function Ye(e,t){return qe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(O(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),R(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case j:case A:case M:{let t=new e.constructor(e?.valueOf());return R(t,e),t}case N:{let t={};return R(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Xe(e){return Ye(e)}function z(e){return typeof e==`object`&&!!e&&O(e)===`[object Arguments]`}function B(e){return typeof e==`object`&&!!e}function Ze(e){return B(e)&&Ge(e)}function V(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(V.Cache||Map),n}V.Cache=Map;function H(e){return I(e)}function Qe(e){if(F(e))return e;if(Array.isArray(e)||I(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function $e(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=U(i,t,r,new Map)}return i}function U(e,t,n,r){if(F(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return Qe(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...D(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Ke(o))continue;let s=t[o],c=e[o];if(z(s)&&(s={...s}),z(c)&&(c={...c}),P(s)&&(s=Xe(s)),Array.isArray(s))if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(Ze(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[];let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||B(c)&&B(s)&&(E(c)||E(s)||H(c)||H(s))?e[o]=U(c,s,n,r):c==null&&E(s)?e[o]=U({},s,n,r):c==null&&H(s)?e[o]=Xe(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function et(e,...t){return $e(e,...t,Te)}var tt=r.t(),nt={curveBasis:f,curveBasisClosed:te,curveBasisOpen:re,curveBumpX:s,curveBumpY:c,curveBundle:ae,curveCardinalClosed:oe,curveCardinalOpen:se,curveCardinal:h,curveCatmullRomClosed:ce,curveCatmullRomOpen:ue,curveCatmullRom:b,curveLinear:a,curveLinearClosed:fe,curveMonotoneX:ve,curveMonotoneY:ye,curveNatural:Se,curveStep:Ce,curveStepAfter:T,curveStepBefore:we},rt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,it=e.n(function(e,t){let r=at(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let e=r.map(e=>e.args);n.R(e),i=n.r(i,[...e])}else i=r.args;if(!i)return;let a=n.p(e,t),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),at=e.n(function(e,r=null){try{let i=RegExp(`[%]{2}(?![{]${rt.source})(?=[}][%]{2}).*
|
|
2
2
|
`,`ig`);e=e.trim().replace(i,``).replace(/'/gm,`"`),t.m.debug(`Detecting diagram directive${r===null?``:` type:`+r} based on the text:${e}`);let a,o=[];for(;(a=n.h.exec(e))!==null;)if(a.index===n.h.lastIndex&&n.h.lastIndex++,a&&!r||r&&a[1]?.match(r)||r&&a[2]?.match(r)){let e=a[1]?a[1]:a[2],t=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:e,args:t})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return t.m.error(`ERROR: ${n.message} - Unable to parse directive type: '${r}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),ot=e.n(function(e){return e.replace(n.h,``)},`removeDirectives`),st=e.n(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function W(e,t){return e?nt[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}e.n(W,`interpolateToCurve`);function ct(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,tt.sanitizeUrl)(n)}e.n(ct,`formatUrl`);var lt=e.n((e,...n)=>{let r=e.split(`.`),i=r.length-1,a=r[i],o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o){t.m.error(`Function name: ${e} not found in window`);return}o[a](...n)},`runFunc`);function G(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}e.n(G,`distance`);function ut(e){let t,n=0;return e.forEach(e=>{n+=G(e,t),t=e}),K(e,n/2)}e.n(ut,`traverseEdge`);function dt(e){return e.length===1?e[0]:ut(e)}e.n(dt,`calcLabelPosition`);var ft=e.n((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),K=e.n((e,t)=>{let n,r=t;for(let t of e){if(n){let e=G(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:ft((1-i)*n.x+i*t.x,5),y:ft((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),pt=e.n((e,n,r)=>{t.m.info(`our points ${JSON.stringify(n)}`),n[0]!==r&&(n=n.reverse());let i=K(n,25),a=e?10:5,o=Math.atan2(n[0].y-i.y,n[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(n[0].x+i.x)/2,s.y=-Math.cos(o)*a+(n[0].y+i.y)/2,s},`calcCardinalityPosition`);function mt(e,n,r){let i=structuredClone(r);t.m.info(`our points`,i),n!==`start_left`&&n!==`start_right`&&i.reverse();let a=K(i,25+e),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return n===`start_left`?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):n===`end_right`?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):n===`end_left`?(c.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}e.n(mt,`calcTerminalLabelPosition`);function q(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}e.n(q,`getStylesFromArray`);var ht=0,gt=e.n(()=>(ht++,`id-`+Math.random().toString(36).substr(2,12)+`-`+ht),`generateId`);function _t(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}e.n(_t,`makeRandomHex`);var vt=e.n(e=>_t(e.length),`random`),yt=e.n(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),bt=e.n(function(e,t){let r=t.text.replace(n.s.lineBreakRegex,` `),[,i]=Q(t.fontSize),a=e.append(`text`);a.attr(`x`,t.x),a.attr(`y`,t.y),a.style(`text-anchor`,t.anchor),a.style(`font-family`,t.fontFamily),a.style(`font-size`,i),a.style(`font-weight`,t.fontWeight),a.attr(`fill`,t.fill),t.class!==void 0&&a.attr(`class`,t.class);let o=a.append(`tspan`);return o.attr(`x`,t.x+t.textMargin*2),o.attr(`fill`,t.fill),o.text(r),a},`drawSimpleText`),xt=V((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},r),n.s.lineBreakRegex.test(e)))return e;let i=e.split(` `).filter(Boolean),a=[],o=``;return i.forEach((e,n)=>{let s=Y(`${e} `,r),c=Y(o,r);if(s>t){let{hyphenatedStrings:n,remainingWord:i}=St(e,t,`-`,r);a.push(o,...n),o=i}else c+s>=t?(a.push(o),o=e):o=[o,e].filter(Boolean).join(` `);n+1===i.length&&a.push(o)}),a.filter(e=>e!==``).join(r.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),St=V((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(Y(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function J(e,t){return X(e,t).height}e.n(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}e.n(Y,`calculateTextWidth`);var X=V((e,r)=>{let{fontSize:i=12,fontFamily:a=`Arial`,fontWeight:o=400}=r;if(!e)return{width:0,height:0};let[,s]=Q(i),c=[`sans-serif`,a],l=e.split(n.s.lineBreakRegex),u=[],d=t.p(`body`);if(!d.remove)return{width:0,height:0,lineHeight:0};let f=d.append(`svg`);for(let e of c){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=yt();i.text=r||``;let a=bt(f,i).style(`font-size`,s).style(`font-weight`,o).style(`font-family`,e),c=(a._groups||a)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}return f.remove(),u[isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ct=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{e.n(this,`InitIDGenerator`)}},Z,wt=e.n(function(e){return Z||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Z.innerHTML=e,unescape(Z.textContent)},`entityDecode`);function Tt(e){return`str`in e}e.n(Tt,`isDetailedError`);var Et=e.n((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Q=e.n(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function $(e,t){return et({},e,t)}e.n($,`cleanAndMerge`);var Dt={assignWithDepth:n.r,wrapLabel:xt,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:it,detectDirective:at,isSubstringInArray:st,interpolateToCurve:W,calcLabelPosition:dt,calcCardinalityPosition:pt,calcTerminalLabelPosition:mt,formatUrl:ct,getStylesFromArray:q,generateId:gt,random:vt,runFunc:lt,entityDecode:wt,insertTitle:Et,isLabelCoordinateInPath:Mt,parseFontSize:Q,InitIDGenerator:Ct},Ot=e.n(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),kt=e.n(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),At=e.n((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function jt(e){return e??null}e.n(jt,`handleUndefinedAttr`);function Mt(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}e.n(Mt,`isLabelCoordinateInPath`),Object.defineProperty(exports,"$",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"X",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"Z",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"et",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"nt",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"rt",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"tt",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return A}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-DJ4x3y2O.js";
|
|
3
|
-
import { R as r, h as i, p as a, r as o, s } from "./chunk-
|
|
3
|
+
import { R as r, h as i, p as a, r as o, s } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
4
4
|
import { t as c } from "./dist-D6LMt8nW.js";
|
|
5
5
|
//#region ../node_modules/d3-shape/src/curve/linear.js
|
|
6
6
|
function l(e) {
|
|
@@ -1045,7 +1045,7 @@ function ot(e, ...t) {
|
|
|
1045
1045
|
return at(e, ...t, Ae);
|
|
1046
1046
|
}
|
|
1047
1047
|
//#endregion
|
|
1048
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
1048
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.mjs
|
|
1049
1049
|
var st = c(), ct = {
|
|
1050
1050
|
curveBasis: te,
|
|
1051
1051
|
curveBasisClosed: re,
|
|
@@ -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-DJ4x3y2O.js";
|
|
3
|
-
import { A as r, B as i, M as a, T as o, b as s, g as c, x as l, z as u } from "./chunk-
|
|
4
|
-
import { a as d, r as f, u as p } from "./chunk-
|
|
5
|
-
import { t as m } from "./chunk-
|
|
6
|
-
import { n as h } from "./chunk-
|
|
7
|
-
import { n as g, t as _ } from "./chunk-
|
|
8
|
-
import { a as v, i as y, r as b, t as x } from "./chunk-
|
|
3
|
+
import { A as r, B as i, M as a, T as o, b as s, g as c, x as l, z as u } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
4
|
+
import { a as d, r as f, u as p } from "./chunk-NSK5VX7P-DPxIxDdV.js";
|
|
5
|
+
import { t as m } from "./chunk-4I5QYGJK-JZmvuONC.js";
|
|
6
|
+
import { n as h } from "./chunk-WRU74C26-D4huAZcy.js";
|
|
7
|
+
import { n as g, t as _ } from "./chunk-UBXNYLIW-BBncokef.js";
|
|
8
|
+
import { a as v, i as y, r as b, t as x } from "./chunk-W5SLKNZC-Djmw_p6f.js";
|
|
9
9
|
import { t as S } from "./rough.esm-C5XyeDCN.js";
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-QR6OTTB3.mjs
|
|
11
11
|
var C = /* @__PURE__ */ e(async (e, t, r) => {
|
|
12
12
|
let i, a = t.useHtmlLabels || c(l()?.htmlLabels);
|
|
13
13
|
i = r || "node default";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-WYO6CB5R-BeX_IRrv.cjs"),r=require("./chunk-ICXQ74PX-DtHODNRc.cjs"),i=require("./chunk-HOUHSVGY-DV6Acnl8.cjs"),a=require("./chunk-Q4XR5HBZ-DZp3iZyL.cjs"),o=require("./chunk-OGEWGWER-DNcXwflY.cjs"),s=require("./chunk-C7G6YPKG-C0kXpvB9.cjs"),c=require("./rough.esm-r0QOSzHM.cjs");var l=e.n(async(e,i,s)=>{let c,l=i.useHtmlLabels||n.g(n.x()?.htmlLabels);c=s||`node default`;let u=e.insert(`g`).attr(`class`,c).attr(`id`,i.domId||i.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,r.u(i.labelStyle)),f;f=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let p=!!i.icon||!!i.img,m=i.labelType===`markdown`,h=await a.n(d,n.z(r.a(f),n.x()),{useHtmlLabels:l,width:i.width||n.x().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:i.labelStyle,addSvgBackground:p,markdown:m},n.x()),g=h.getBBox(),_=(i?.padding??0)/2;if(l){let e=h.children[0],n=t.p(h);await o.t(e,f),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),i.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),u=e.n(async(e,i,o)=>{let s=o.useHtmlLabels??n.T(n.x()),c=e.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,n.z(r.a(i),n.x()),{useHtmlLabels:s,width:o.width||n.x()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(n.T(n.x())){let e=l.children[0],n=t.p(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:u,halfPadding:d,label:c}},`insertLabel`),d=e.n((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),f=e.n((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function p(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e.n(p,`createPathFromPoints`);function m(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e.n(m,`generateFullSineWavePoints`);function h(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(h,`generateCirclePoints`);function g(t){let n=Array.from(t.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=e.n((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}e.n(g,`mergePaths`);var _=e.n((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),v=e.n(async(e,t,r,i=!1,o=!1)=>{let s=t||``;typeof s==`object`&&(s=s[0]);let c=n.x(),l=n.T(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),y=e.n((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),b=e.n(async(e,r)=>{let i=n.x(),{themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:u,clusterBorder:d}=o,f=d,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),v=e.insert(`g`).attr(`class`,`cluster swimlane `+(r.cssClasses||``)).attr(`id`,r.id).attr(`data-id`,r.id).attr(`data-et`,`cluster`).attr(`data-look`,r.look),y=n.g(i.flowchart.htmlLabels),b=r.direction===`LR`,x=v.insert(`g`).attr(`class`,`cluster-label swimlane-label`),S=await a.n(x,r.label,{style:r.labelStyle,useHtmlLabels:y,isNode:!0,width:r.width}),C=S.getBBox();if(y){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=r.padding??0,T=r.width<=C.width+w?C.width+w:r.width;r.width<=C.width+w?r.diff=(T-r.width)/2-w:r.diff=-w;let E=r.height,D=r.y-E/2,O=r.y+E/2,k=r.x-T/2,A=r.swimlaneContentTop===void 0?D+E/3:r.swimlaneContentTop,j=b?4:0,M=C.height+2*j,N,P;if(b){let e=Math.max(M,C.height+2*j),t=k+e,n=Math.max(0,T-e);if(r.look===`handDrawn`){let i=c.t.svg(v),a=s.a(r,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:l}),o=s.a(r,{roughness:.7,fill:`none`,stroke:f,seed:l}),d=i.rectangle(k,D,e,E,a);N=v.insert(()=>d,`:first-child`);let p=i.rectangle(t,D,n,E,o);P=v.insert(()=>p,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),N.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,m).attr(`x`,k).attr(`y`,D).attr(`width`,e).attr(`height`,E).attr(`fill`,u).attr(`stroke`,f),P.attr(`class`,`swimlane-body`).attr(`style`,m).attr(`x`,t).attr(`y`,D).attr(`width`,n).attr(`height`,E).attr(`fill`,`none`).attr(`stroke`,f);let i=k+e/2,a=r.y;x.attr(`transform`,`translate(${i}, ${a}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{let e=Math.max(0,A-D),t=Math.min(M,e),n=D+t,i=Math.max(0,O-n),a=r.x-T/2;if(r.look===`handDrawn`){let e=c.t.svg(v),o=s.a(r,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:l}),d=s.a(r,{roughness:.7,fill:`none`,stroke:f,seed:l}),p=e.rectangle(a,D,T,t,o);N=v.insert(()=>p,`:first-child`);let m=e.rectangle(a,n,T,i,d);P=v.insert(()=>m,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),N.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,m).attr(`x`,a).attr(`y`,D).attr(`width`,T).attr(`height`,t).attr(`fill`,u).attr(`stroke`,f),P.attr(`class`,`swimlane-body`).attr(`style`,m).attr(`x`,a).attr(`y`,n).attr(`width`,T).attr(`height`,i).attr(`fill`,`none`).attr(`stroke`,f);let o=r.x-C.width/2,d=D+(t-C.height)/2;x.attr(`transform`,`translate(${o}, ${d})`)}if(t.m.trace(`Swimlane data `,r,JSON.stringify(r)),p){let e=x.select(`span`);e&&e.attr(`style`,p)}return r.offsetX=0,r.width=T,r.height=E,r.offsetY=C.height-w/2,r.intersect=function(e){return _(r,e)},{cluster:v,labelBBox:C}},`swimlane`),x=e.n(async(e,r)=>{t.m.info(`Creating subgraph rect for `,r.id,r);let i=n.x(),{themeVariables:l,handDrawnSeed:u}=i,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),b=e.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),x=n.T(i),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=r.labelType===`markdown`?await a.n(S,r.label,{style:r.labelStyle,useHtmlLabels:x,isNode:!0,width:r.width}):await v(S,r.label,r.labelStyle||``,!1,!0);let w=C.getBBox();if(n.T(i)){let e=C.children[0],n=t.p(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=r.width<=w.width+r.padding?w.width+r.padding:r.width;r.width<=w.width+r.padding?r.diff=(T-r.width)/2-r.padding:r.diff=-r.padding;let E=r.height,D=r.x-T/2,O=r.y-E/2;t.m.trace(`Data `,r,JSON.stringify(r));let k;if(r.look===`handDrawn`){let e=c.t.svg(b),n=s.a(r,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),i=e.path(y(D,O,T,E,0),n);k=b.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),k.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,m).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=o.n(i);if(S.attr(`transform`,`translate(${r.x-w.width/2}, ${r.y-r.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return r.offsetX=0,r.width=j.width,r.height=j.height,r.offsetY=w.height-r.padding/2,r.intersect=function(e){return _(r,e)},{cluster:b,labelBBox:w}},`rect`),S={rect:x,squareRect:x,roundedWithTitle:e.n(async(e,r)=>{let i=n.x(),{themeVariables:a,handDrawnSeed:o}=i,{altBackground:s,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=e.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),h=f.append(`rect`),g=await v(m,r.label,r.labelStyle,void 0,!0),b=g.getBBox();if(n.T(i)){let e=g.children[0],n=t.p(g);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=c.t.svg(f),n=r.rx||r.ry?t.path(y(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:o}):t.rectangle(E,D,C,w,{seed:o});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?s:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:o});k=f.insert(()=>n,`:first-child`),h=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),h.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return m.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(n.T(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return _(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup: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 _(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:e.n((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=n.x(),{nodeBorder:a}=r,o=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),s=o.insert(`g`,`:first-child`),l=0*t.padding,u=t.width+l;t.diff=-t.padding;let d=t.height+l,f=t.x-u/2,p=t.y-d/2;t.width=u;let m;if(t.look===`handDrawn`){let e=c.t.svg(o).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=o.insert(()=>e,`:first-child`)}else{m=s.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,t.look)}return t.height=m.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return _(t,e)},{cluster:o,labelBBox:{}}},`divider`),kanbanSection:e.n(async(e,r)=>{t.m.info(`Creating subgraph rect for `,r.id,r);let i=n.x(),{themeVariables:l,handDrawnSeed:u}=i,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),v=e.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),b=n.T(i),x=v.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,r.label,{style:r.labelStyle,useHtmlLabels:b,isNode:!0,width:r.width}),C=S.getBBox();if(n.T(i)){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=r.width<=C.width+r.padding?C.width+r.padding:r.width;r.width<=C.width+r.padding?r.diff=(w-r.width)/2-r.padding:r.diff=-r.padding;let T=r.height,E=r.x-w/2,D=r.y-T/2;t.m.trace(`Data `,r,JSON.stringify(r));let O;if(r.look===`handDrawn`){let e=c.t.svg(v),n=s.a(r,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),i=e.path(y(E,D,w,T,r.rx),n);O=v.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),O.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else O=v.insert(`rect`,`:first-child`),O.attr(`style`,m).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=o.n(i);if(x.attr(`transform`,`translate(${r.x-C.width/2}, ${r.y-r.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return r.offsetX=0,r.width=A.width,r.height=A.height,r.offsetY=C.height-r.padding/2,r.intersect=function(e){return _(r,e)},{cluster:v,labelBBox:C}},`kanbanSection`),swimlane:b},C=new Map,w=e.n(async(e,t)=>{let n=await S[t.shape||`rect`](e,t);return C.set(t.id,n),n},`insertCluster`),T=e.n(()=>{C=new Map},`clear`);function E(e,t){return e.intersect(t)}e.n(E,`intersectNode`);var D=E;function O(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e.n(O,`intersectEllipse`);var k=O;function A(e,t,n){return k(e,t,t,n)}e.n(A,`intersectCircle`);var j=A;function M(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&N(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&N(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}e.n(M,`intersectLine`);function N(e,t){return e*t>0}e.n(N,`sameSign`);var P=M;function F(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=P(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e.n(F,`intersectPolygon`);var I={node:D,circle:j,ellipse:k,polygon:F,rect:_};function L(e,n){let{labelStyles:i}=s.i(n);n.labelStyle=i;let a=f(n),o=a;a||(o=`anchor`);let l=e.insert(`g`).attr(`class`,o).attr(`id`,n.domId||n.id),{cssStyles:u}=n,p=c.t.svg(l),m=s.a(n,{fill:`black`,stroke:`none`,fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=l.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,r.u(u)),d(n,g),n.intersect=function(e){return t.m.info(`Circle intersect`,n,1,e),I.circle(n,1,e)},l}e.n(L,`anchor`);function R(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e.n(R,`generateArcPoints`);function z(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}e.n(z,`calculateArcSagitta`);async function ee(t,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?16:a,u=n.look===`neo`?12:a,m=e.n(e=>e+u,`calcTotalHeight`),h=e.n(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await l(t,n,f(n)),v=m(n?.height?n?.height:_.height),[y,b]=h(v),x=z(v,y,b),S=(n?.width?n?.width:_.width)+o*2+x-x,C=v,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...R(-S/2,-C/2,-S/2,C/2,y,b,!1),{x:S/2,y:C/2},...R(S/2,C/2,S/2,-C/2,y,b,!0)],E=c.t.svg(g),D=s.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=p(T),k=E.path(O,D),A=g.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),i&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,i),A.attr(`transform`,`translate(${y/2}, 0)`),d(n,A),n.intersect=function(e){return I.polygon(n,T,e)},g}e.n(ee,`bowTieRect`);function B(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e.n(B,`insertPolygonShape`);var V=12;async function H(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.width??m.width)+(t.look===`neo`?a*2:a+V),g=(t?.height??m.height)+(t.look===`neo`?o*2:o),_=h,v=-g,y=[{x:0+V,y:v},{x:_,y:v},{x:_,y:0},{x:0,y:0},{x:0,y:v+V},{x:0+V,y:v}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(y),i=e.path(r,n);b=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),x&&b.attr(`style`,x)}else b=B(u,h,g,y);return r&&b.attr(`style`,r),d(t,b),t.intersect=function(e){return I.polygon(t,y,e)},u}e.n(H,`card`);function U(e,t){let{nodeStyles:n}=s.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,f(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=c.t.svg(r),u=s.a(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=p(o),m=l.path(d,u),h=r.insert(()=>m,`:first-child`);return i&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return I.polygon(t,o,e)},r}e.n(U,`choice`);async function te(e,n,i){let{labelStyles:a,nodeStyles:o}=s.i(n);n.labelStyle=a;let{shapeSvg:u,bbox:p,halfPadding:m}=await l(e,n,f(n)),h=i?.padding??m,g=n.look===`neo`?p.width/2+32:p.width/2+h,_,{cssStyles:v}=n;if(n.look===`handDrawn`){let e=c.t.svg(u),t=s.a(n,{}),i=e.circle(0,0,g*2,t);_=u.insert(()=>i,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,r.u(v))}else _=u.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,o).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return d(n,_),n.calcIntersect=function(e,t){let n=e.width/2;return I.circle(e,n,t)},n.intersect=function(e){return t.m.info(`Circle intersect`,n,g,e),I.circle(n,g,e)},u}e.n(te,`circle`);function ne(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-I66GZJ75-CrpH-Rmq.cjs"),r=require("./chunk-NSK5VX7P-D5CepZHI.cjs"),i=require("./chunk-4I5QYGJK-LCSWSJfh.cjs"),a=require("./chunk-WRU74C26-9KZxhHnn.cjs"),o=require("./chunk-UBXNYLIW-DlNyCWjj.cjs"),s=require("./chunk-W5SLKNZC-bHBkM2CL.cjs"),c=require("./rough.esm-r0QOSzHM.cjs");var l=e.n(async(e,i,s)=>{let c,l=i.useHtmlLabels||n.g(n.x()?.htmlLabels);c=s||`node default`;let u=e.insert(`g`).attr(`class`,c).attr(`id`,i.domId||i.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,r.u(i.labelStyle)),f;f=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let p=!!i.icon||!!i.img,m=i.labelType===`markdown`,h=await a.n(d,n.z(r.a(f),n.x()),{useHtmlLabels:l,width:i.width||n.x().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:i.labelStyle,addSvgBackground:p,markdown:m},n.x()),g=h.getBBox(),_=(i?.padding??0)/2;if(l){let e=h.children[0],n=t.p(h);await o.t(e,f),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),i.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),u=e.n(async(e,i,o)=>{let s=o.useHtmlLabels??n.T(n.x()),c=e.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,n.z(r.a(i),n.x()),{useHtmlLabels:s,width:o.width||n.x()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(n.T(n.x())){let e=l.children[0],n=t.p(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:u,halfPadding:d,label:c}},`insertLabel`),d=e.n((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),f=e.n((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function p(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e.n(p,`createPathFromPoints`);function m(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e.n(m,`generateFullSineWavePoints`);function h(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(h,`generateCirclePoints`);function g(t){let n=Array.from(t.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=e.n((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}e.n(g,`mergePaths`);var _=e.n((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),v=e.n(async(e,t,r,i=!1,o=!1)=>{let s=t||``;typeof s==`object`&&(s=s[0]);let c=n.x(),l=n.T(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),y=e.n((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),b=e.n(async(e,r)=>{let i=n.x(),{themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:u,clusterBorder:d}=o,f=d,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),v=e.insert(`g`).attr(`class`,`cluster swimlane `+(r.cssClasses||``)).attr(`id`,r.id).attr(`data-id`,r.id).attr(`data-et`,`cluster`).attr(`data-look`,r.look),y=n.g(i.flowchart.htmlLabels),b=r.direction===`LR`,x=v.insert(`g`).attr(`class`,`cluster-label swimlane-label`),S=await a.n(x,r.label,{style:r.labelStyle,useHtmlLabels:y,isNode:!0,width:r.width}),C=S.getBBox();if(y){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=r.padding??0,T=r.width<=C.width+w?C.width+w:r.width;r.width<=C.width+w?r.diff=(T-r.width)/2-w:r.diff=-w;let E=r.height,D=r.y-E/2,O=r.y+E/2,k=r.x-T/2,A=r.swimlaneContentTop===void 0?D+E/3:r.swimlaneContentTop,j=b?4:0,M=C.height+2*j,N,P;if(b){let e=Math.max(M,C.height+2*j),t=k+e,n=Math.max(0,T-e);if(r.look===`handDrawn`){let i=c.t.svg(v),a=s.a(r,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:l}),o=s.a(r,{roughness:.7,fill:`none`,stroke:f,seed:l}),d=i.rectangle(k,D,e,E,a);N=v.insert(()=>d,`:first-child`);let p=i.rectangle(t,D,n,E,o);P=v.insert(()=>p,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),N.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,m).attr(`x`,k).attr(`y`,D).attr(`width`,e).attr(`height`,E).attr(`fill`,u).attr(`stroke`,f),P.attr(`class`,`swimlane-body`).attr(`style`,m).attr(`x`,t).attr(`y`,D).attr(`width`,n).attr(`height`,E).attr(`fill`,`none`).attr(`stroke`,f);let i=k+e/2,a=r.y;x.attr(`transform`,`translate(${i}, ${a}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{let e=Math.max(0,A-D),t=Math.min(M,e),n=D+t,i=Math.max(0,O-n),a=r.x-T/2;if(r.look===`handDrawn`){let e=c.t.svg(v),o=s.a(r,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:l}),d=s.a(r,{roughness:.7,fill:`none`,stroke:f,seed:l}),p=e.rectangle(a,D,T,t,o);N=v.insert(()=>p,`:first-child`);let m=e.rectangle(a,n,T,i,d);P=v.insert(()=>m,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),N.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,m).attr(`x`,a).attr(`y`,D).attr(`width`,T).attr(`height`,t).attr(`fill`,u).attr(`stroke`,f),P.attr(`class`,`swimlane-body`).attr(`style`,m).attr(`x`,a).attr(`y`,n).attr(`width`,T).attr(`height`,i).attr(`fill`,`none`).attr(`stroke`,f);let o=r.x-C.width/2,d=D+(t-C.height)/2;x.attr(`transform`,`translate(${o}, ${d})`)}if(t.m.trace(`Swimlane data `,r,JSON.stringify(r)),p){let e=x.select(`span`);e&&e.attr(`style`,p)}return r.offsetX=0,r.width=T,r.height=E,r.offsetY=C.height-w/2,r.intersect=function(e){return _(r,e)},{cluster:v,labelBBox:C}},`swimlane`),x=e.n(async(e,r)=>{t.m.info(`Creating subgraph rect for `,r.id,r);let i=n.x(),{themeVariables:l,handDrawnSeed:u}=i,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),b=e.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),x=n.T(i),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=r.labelType===`markdown`?await a.n(S,r.label,{style:r.labelStyle,useHtmlLabels:x,isNode:!0,width:r.width}):await v(S,r.label,r.labelStyle||``,!1,!0);let w=C.getBBox();if(n.T(i)){let e=C.children[0],n=t.p(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=r.width<=w.width+r.padding?w.width+r.padding:r.width;r.width<=w.width+r.padding?r.diff=(T-r.width)/2-r.padding:r.diff=-r.padding;let E=r.height,D=r.x-T/2,O=r.y-E/2;t.m.trace(`Data `,r,JSON.stringify(r));let k;if(r.look===`handDrawn`){let e=c.t.svg(b),n=s.a(r,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),i=e.path(y(D,O,T,E,0),n);k=b.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),k.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,m).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=o.n(i);if(S.attr(`transform`,`translate(${r.x-w.width/2}, ${r.y-r.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return r.offsetX=0,r.width=j.width,r.height=j.height,r.offsetY=w.height-r.padding/2,r.intersect=function(e){return _(r,e)},{cluster:b,labelBBox:w}},`rect`),S={rect:x,squareRect:x,roundedWithTitle:e.n(async(e,r)=>{let i=n.x(),{themeVariables:a,handDrawnSeed:o}=i,{altBackground:s,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=e.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),h=f.append(`rect`),g=await v(m,r.label,r.labelStyle,void 0,!0),b=g.getBBox();if(n.T(i)){let e=g.children[0],n=t.p(g);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=c.t.svg(f),n=r.rx||r.ry?t.path(y(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:o}):t.rectangle(E,D,C,w,{seed:o});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?s:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:o});k=f.insert(()=>n,`:first-child`),h=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),h.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return m.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(n.T(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return _(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup: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 _(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:e.n((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=n.x(),{nodeBorder:a}=r,o=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),s=o.insert(`g`,`:first-child`),l=0*t.padding,u=t.width+l;t.diff=-t.padding;let d=t.height+l,f=t.x-u/2,p=t.y-d/2;t.width=u;let m;if(t.look===`handDrawn`){let e=c.t.svg(o).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=o.insert(()=>e,`:first-child`)}else{m=s.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,t.look)}return t.height=m.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return _(t,e)},{cluster:o,labelBBox:{}}},`divider`),kanbanSection:e.n(async(e,r)=>{t.m.info(`Creating subgraph rect for `,r.id,r);let i=n.x(),{themeVariables:l,handDrawnSeed:u}=i,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),v=e.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),b=n.T(i),x=v.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,r.label,{style:r.labelStyle,useHtmlLabels:b,isNode:!0,width:r.width}),C=S.getBBox();if(n.T(i)){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=r.width<=C.width+r.padding?C.width+r.padding:r.width;r.width<=C.width+r.padding?r.diff=(w-r.width)/2-r.padding:r.diff=-r.padding;let T=r.height,E=r.x-w/2,D=r.y-T/2;t.m.trace(`Data `,r,JSON.stringify(r));let O;if(r.look===`handDrawn`){let e=c.t.svg(v),n=s.a(r,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),i=e.path(y(E,D,w,T,r.rx),n);O=v.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),O.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else O=v.insert(`rect`,`:first-child`),O.attr(`style`,m).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=o.n(i);if(x.attr(`transform`,`translate(${r.x-C.width/2}, ${r.y-r.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return r.offsetX=0,r.width=A.width,r.height=A.height,r.offsetY=C.height-r.padding/2,r.intersect=function(e){return _(r,e)},{cluster:v,labelBBox:C}},`kanbanSection`),swimlane:b},C=new Map,w=e.n(async(e,t)=>{let n=await S[t.shape||`rect`](e,t);return C.set(t.id,n),n},`insertCluster`),T=e.n(()=>{C=new Map},`clear`);function E(e,t){return e.intersect(t)}e.n(E,`intersectNode`);var D=E;function O(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e.n(O,`intersectEllipse`);var k=O;function A(e,t,n){return k(e,t,t,n)}e.n(A,`intersectCircle`);var j=A;function M(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&N(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&N(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}e.n(M,`intersectLine`);function N(e,t){return e*t>0}e.n(N,`sameSign`);var P=M;function F(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=P(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e.n(F,`intersectPolygon`);var I={node:D,circle:j,ellipse:k,polygon:F,rect:_};function L(e,n){let{labelStyles:i}=s.i(n);n.labelStyle=i;let a=f(n),o=a;a||(o=`anchor`);let l=e.insert(`g`).attr(`class`,o).attr(`id`,n.domId||n.id),{cssStyles:u}=n,p=c.t.svg(l),m=s.a(n,{fill:`black`,stroke:`none`,fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=l.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,r.u(u)),d(n,g),n.intersect=function(e){return t.m.info(`Circle intersect`,n,1,e),I.circle(n,1,e)},l}e.n(L,`anchor`);function R(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e.n(R,`generateArcPoints`);function z(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}e.n(z,`calculateArcSagitta`);async function ee(t,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?16:a,u=n.look===`neo`?12:a,m=e.n(e=>e+u,`calcTotalHeight`),h=e.n(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await l(t,n,f(n)),v=m(n?.height?n?.height:_.height),[y,b]=h(v),x=z(v,y,b),S=(n?.width?n?.width:_.width)+o*2+x-x,C=v,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...R(-S/2,-C/2,-S/2,C/2,y,b,!1),{x:S/2,y:C/2},...R(S/2,C/2,S/2,-C/2,y,b,!0)],E=c.t.svg(g),D=s.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=p(T),k=E.path(O,D),A=g.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),i&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,i),A.attr(`transform`,`translate(${y/2}, 0)`),d(n,A),n.intersect=function(e){return I.polygon(n,T,e)},g}e.n(ee,`bowTieRect`);function B(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e.n(B,`insertPolygonShape`);var V=12;async function H(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.width??m.width)+(t.look===`neo`?a*2:a+V),g=(t?.height??m.height)+(t.look===`neo`?o*2:o),_=h,v=-g,y=[{x:0+V,y:v},{x:_,y:v},{x:_,y:0},{x:0,y:0},{x:0,y:v+V},{x:0+V,y:v}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(y),i=e.path(r,n);b=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),x&&b.attr(`style`,x)}else b=B(u,h,g,y);return r&&b.attr(`style`,r),d(t,b),t.intersect=function(e){return I.polygon(t,y,e)},u}e.n(H,`card`);function U(e,t){let{nodeStyles:n}=s.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,f(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=c.t.svg(r),u=s.a(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=p(o),m=l.path(d,u),h=r.insert(()=>m,`:first-child`);return i&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return I.polygon(t,o,e)},r}e.n(U,`choice`);async function te(e,n,i){let{labelStyles:a,nodeStyles:o}=s.i(n);n.labelStyle=a;let{shapeSvg:u,bbox:p,halfPadding:m}=await l(e,n,f(n)),h=i?.padding??m,g=n.look===`neo`?p.width/2+32:p.width/2+h,_,{cssStyles:v}=n;if(n.look===`handDrawn`){let e=c.t.svg(u),t=s.a(n,{}),i=e.circle(0,0,g*2,t);_=u.insert(()=>i,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,r.u(v))}else _=u.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,o).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return d(n,_),n.calcIntersect=function(e,t){let n=e.width/2;return I.circle(e,n,t)},n.intersect=function(e){return t.m.info(`Circle intersect`,n,g,e),I.circle(n,g,e)},u}e.n(te,`circle`);function ne(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
2
2
|
M ${i.x},${i.y} L ${o.x},${o.y}`}e.n(ne,`createLine`);function W(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r,n.label=``;let a=e.insert(`g`).attr(`class`,f(n)).attr(`id`,n.domId??n.id),o=Math.max(30,n?.width??0),{cssStyles:l}=n,u=c.t.svg(a),p=s.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=u.circle(0,0,o*2,p),h=ne(o),g=u.path(h,p),_=a.insert(()=>m,`:first-child`);return _.insert(()=>g),_.attr(`class`,`outer-path`),l&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,l),i&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),d(n,_),n.intersect=function(e){return t.m.info(`crossedCircle intersect`,n,{radius:o,point:e}),I.circle(n,o,e)},a}e.n(W,`crossedCircle`);function G(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(G,`generateCirclePoints`);async function K(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=a.width+u,g=a.height+m,_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...G(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...G(h/2+_*2,-_,_,20,-180,-270),...G(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...G(h/2,g/2,_,20,0,90)],b=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...G(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...G(h/2+h*.1,-_,_,20,-180,-270),...G(h/2+h*.1,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...G(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2,y:g/2+_}],x=c.t.svg(i),S=s.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=p(y).replace(`Z`,``),w=x.path(C,S),T=p(b),E=x.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${_}, 0)`),o.attr(`transform`,`translate(${-h/2+_-(a.x-(a.left??0))},${-g/2+(t.padding??0)/2-(a.y-(a.top??0))})`),d(t,D),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(K,`curlyBraceLeft`);function q(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}e.n(q,`generateCirclePoints`);async function re(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=a.width+(t.look===`neo`?u*2:u),g=a.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...q(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...q(h/2,g/2,_,20,0,90)],b=[{x:-h/2,y:-g/2-_},{x:h/2,y:-g/2-_},...q(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...q(h/2,g/2,_,20,0,90),{x:h/2,y:g/2+_},{x:-h/2,y:g/2+_}],x=c.t.svg(i),S=s.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=p(y).replace(`Z`,``),w=x.path(C,S),T=p(b),E=x.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-_}, 0)`),o.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(a.x-(a.left??0))},${-g/2+(t.padding??0)/2-(a.y-(a.top??0))})`),d(t,D),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(re,`curlyBraceRight`);function J(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(J,`generateCirclePoints`);async function ie(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=a.width+(t.look===`neo`?u*2:u),g=a.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...J(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...J(h/2+_*2,-_,_,20,-180,-270),...J(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...J(h/2,g/2,_,20,0,90)],b=[...J(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...J(-h/2-_/2,-_,_,20,0,90),...J(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...J(-h/2+_+_/2,g/2,_,30,-180,-270)],x=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...J(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...J(h/2+_*2,-_,_,20,-180,-270),...J(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...J(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2-_-_/2,y:g/2+_},...J(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...J(-h/2-_/2,-_,_,20,0,90),...J(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...J(-h/2+_+_/2,g/2,_,30,-180,-270)],S=c.t.svg(i),C=s.a(t,{fill:`none`});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=p(y).replace(`Z`,``),T=S.path(w,C),E=p(b).replace(`Z`,``),D=S.path(E,C),O=p(x),k=S.path(O,{...C}),A=i.insert(`g`,`:first-child`);return A.insert(()=>k,`:first-child`).attr(`stroke-opacity`,0),A.insert(()=>T,`:first-child`),A.insert(()=>D,`:first-child`),A.attr(`class`,`text`),v&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(${_-_/4}, 0)`),o.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(a.x-(a.left??0))},${-g/2+(t.padding??0)/2-(a.y-(a.top??0))})`),d(t,A),t.intersect=function(e){return I.polygon(t,x,e)},i}e.n(ie,`curlyBraces`);async function ae(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),g=Math.max(20,(m.width+a*2)*1.25,t?.width??0),_=Math.max(5,m.height+o*2,t?.height??0),v=_/2,{cssStyles:y}=t,b=c.t.svg(u),x=s.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=g,C=_,w=S-v,T=C/4,E=[{x:w,y:0},{x:T,y:0},{x:0,y:C/2},{x:T,y:C},{x:w,y:C},...h(-w,-C/2,v,50,270,90)],D=p(E),O=b.path(D,x),k=u.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(${-g/2}, ${-_/2})`),d(t,k),t.intersect=function(e){return I.polygon(t,E,e)},u}e.n(ae,`curvedTrapezoid`);var oe=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),se=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),ce=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),le=8,ue=8;async function de(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?24:a,u=t.look===`neo`?24:a;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-u,t.width<ue&&(t.width=ue);let n=e/2/(2.5+e/50);t.height=(t.height??0)-o-n*3,t.height<le&&(t.height=le)}let{shapeSvg:p,bbox:m,label:h}=await l(e,t,f(t)),g=(t.width?t.width:m.width)+u,_=g/2,v=_/(2.5+g/50),y=(t.height?t.height:m.height)+o+v,b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=c.t.svg(p),n=se(0,0,g,y,_,v),r=ce(0,v,g,y,_,v),i=s.a(t,{}),a=e.path(n,i),o=e.path(r,s.a(t,{fill:`none`}));b=p.insert(()=>o,`:first-child`),b=p.insert(()=>a,`:first-child`),b.attr(`class`,`basic label-container`),x&&b.attr(`style`,x)}else{let e=oe(0,0,g,y,_,v);b=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(x)).attr(`style`,i)}return b.attr(`label-offset-y`,v),b.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),d(t,b),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+(t.padding??0)/1.5-(m.y-(m.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}e.n(de,`cylinder`);async function Y(e,t,n){let{labelStyles:i,nodeStyles:a}=s.i(t);t.labelStyle=i;let{shapeSvg:o,bbox:u}=await l(e,t,f(t)),p=Math.max(u.width+n.labelPaddingX*2,t?.width||0),m=Math.max(u.height+n.labelPaddingY*2,t?.height||0),h=-p/2,g=-m/2,_,{rx:v,ry:b}=t,{cssStyles:x}=t;if(n?.rx&&n.ry&&(v=n.rx,b=n.ry),t.look===`handDrawn`){let e=c.t.svg(o),n=s.a(t,{}),i=v||b?e.path(y(h,g,p,m,v||0),n):e.rectangle(h,g,p,m,n);_=o.insert(()=>i,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,r.u(x))}else _=o.insert(`rect`,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,a).attr(`rx`,r.u(v)).attr(`ry`,r.u(b)).attr(`x`,h).attr(`y`,g).attr(`width`,p).attr(`height`,m);return d(t,_),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},o}e.n(Y,`drawRect`);async function fe(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:l}=t,u=await Y(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=u.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return u;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return u;return u.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),u.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),u}let d=u.select(`.basic.label-container`),f=(Number(d.attr(`width`))||o)??0,p=(Number(d.attr(`height`))||l)??0;return f>0&&p>0&&d.attr(`stroke-dasharray`,`${f} ${p}`),u}e.n(fe,`datastore`);async function pe(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:u,label:p}=await l(e,t,f(t)),m=u.width+i,h=u.height+a,g=h*.2,_=-m/2,v=-h/2-g/2,{cssStyles:y}=t,b=c.t.svg(o),x=s.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:_,y:v+g},{x:-_,y:v+g},{x:-_,y:-v},{x:_,y:-v},{x:_,y:v},{x:-_,y:v},{x:-_,y:v+g}],C=b.polygon(S.map(e=>[e.x,e.y]),x),w=o.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),p.attr(`transform`,`translate(${_+(t.padding??0)/2-(u.x-(u.left??0))}, ${v+g+(t.padding??0)/2-(u.y-(u.top??0))})`),d(t,w),t.intersect=function(e){return I.rect(t,e)},o}e.n(pe,`dividedRectangle`);async function me(e,n){let{labelStyles:i,nodeStyles:a}=s.i(n),o=n.look===`neo`?12:5;n.labelStyle=i;let u=n.padding??0,p=n.look===`neo`?16:u,{shapeSvg:m,bbox:h}=await l(e,n,f(n)),g=(n?.width?n?.width/2:h.width/2)+(p??0),_=g-o,v,{cssStyles:y}=n;if(n.look===`handDrawn`){let e=c.t.svg(m),t=s.a(n,{roughness:.2,strokeWidth:2.5}),i=s.a(n,{roughness:.2,strokeWidth:1.5}),a=e.circle(0,0,g*2,t),o=e.circle(0,0,_*2,i);v=m.insert(`g`,`:first-child`),v.attr(`class`,r.u(n.cssClasses)).attr(`style`,r.u(y)),v.node()?.appendChild(a),v.node()?.appendChild(o)}else{v=m.insert(`g`,`:first-child`);let e=v.insert(`circle`,`:first-child`),t=v.insert(`circle`);v.attr(`class`,`basic label-container`).attr(`style`,a),e.attr(`class`,`outer-circle`).attr(`style`,a).attr(`r`,g).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,a).attr(`r`,_).attr(`cx`,0).attr(`cy`,0)}return d(n,v),n.intersect=function(e){return t.m.info(`DoubleCircle intersect`,n,g,e),I.circle(n,g,e)},m}e.n(me,`doublecircle`);function he(e,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=s.i(n);n.label=``,n.labelStyle=i;let o=e.insert(`g`).attr(`class`,f(n)).attr(`id`,n.domId??n.id),{cssStyles:l}=n,u=c.t.svg(o),{nodeBorder:p}=r,m=s.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=u.circle(0,0,14,m),g=o.insert(()=>h,`:first-child`);return g.selectAll(`path`).attr(`style`,`fill: ${p} !important;`),l&&l.length>0&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,l),a&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,a),d(n,g),n.intersect=function(e){return t.m.info(`filledCircle intersect`,n,{radius:7,point:e}),I.circle(n,7,e)},o}e.n(he,`filledCircle`);var ge=10,_e=10;async function ve(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?a*2:a;(n.width||n.height)&&(n.height=n?.height??0,n.height<ge&&(n.height=ge),n.width=(n?.width??0)-o-o/2,n.width<_e&&(n.width=_e));let{shapeSvg:u,bbox:m,label:h}=await l(e,n,f(n)),g=(n?.width?n?.width:m.width)+(o??0),_=n?.height?n?.height:g+m.height,v=_,y=[{x:0,y:-_},{x:v,y:-_},{x:v/2,y:0}],{cssStyles:b}=n,x=c.t.svg(u),S=s.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=p(y),w=x.path(C,S),T=u.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-_/2}, ${_/2})`).attr(`class`,`outer-path`);return b&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,b),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),n.width=g,n.height=_,d(n,T),h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))}, ${-_/2+(n.padding??0)/2+(m.y-(m.top??0))})`),n.intersect=function(e){return t.m.info(`Triangle intersect`,n,y,e),I.polygon(n,y,e)},u}e.n(ve,`flippedTriangle`);function ye(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=s.i(t);t.label=``;let o=e.insert(`g`).attr(`class`,f(t)).attr(`id`,t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),p=Math.max(10,t?.height??0);n===`LR`&&(u=Math.max(10,t?.width??0),p=Math.max(70,t?.height??0));let m=-1*u/2,h=-1*p/2,g=c.t.svg(o),_=s.a(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=g.rectangle(m,h,u,p,_),y=o.insert(()=>v,`:first-child`);l&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,l),a&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,a),d(t,y);let b=r?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(e){return I.rect(t,e)},o}e.n(ye,`forkJoin`);async function be(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.look===`neo`?16:n.padding??0,o=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-o*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-a*2,n.width<15&&(n.width=15));let{shapeSvg:u,bbox:m}=await l(e,n,f(n)),g=(n?.width?n?.width:Math.max(15,m.width))+a*2,_=(n?.height?n?.height:Math.max(10,m.height))+o*2,v=_/2,{cssStyles:y}=n,b=c.t.svg(u),x=s.a(n,{});n.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-g/2,y:-_/2},{x:g/2-v,y:-_/2},...h(-g/2+v,0,v,50,90,270),{x:g/2-v,y:_/2},{x:-g/2,y:_/2}],C=p(S),w=b.path(C,x),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),d(n,T),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{radius:v,point:e}),I.polygon(n,S,e)},u}e.n(be,`halfRoundedRectangle`);var xe=e.n((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function Se(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,u=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-u,t.height=(t.height??0)-o}let{shapeSvg:p,bbox:m}=await l(e,t,f(t)),h=(t?.height?t?.height:m.height)+o,g=h/i,_=(t?.width?t?.width:m.width)+2*g+u,v=[{x:g,y:0},{x:_-g,y:0},{x:_,y:-h/2},{x:_-g,y:-h},{x:g,y:-h},{x:0,y:-h/2}],y,{cssStyles:b}=t;if(t.look===`handDrawn`){let e=c.t.svg(p),n=s.a(t,{}),r=xe(0,0,_,h,g),i=e.path(r,n);y=p.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-_/2}, ${h/2})`),b&&y.attr(`style`,b)}else y=B(p,_,h,v);return r&&y.attr(`style`,r),t.width=_,t.height=h,d(t,y),t.intersect=function(e){return I.polygon(t,v,e)},p}e.n(Se,`hexagon`);async function Ce(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:a}=await l(e,n,f(n)),o=Math.max(30,n?.width??0),u=Math.max(30,n?.height??0),{cssStyles:m}=n,h=c.t.svg(a),g=s.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:0,y:0},{x:o,y:0},{x:0,y:u},{x:o,y:u}],v=p(_),y=h.path(v,g),b=a.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),i&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,i),b.attr(`transform`,`translate(${-o/2}, ${-u/2})`),d(n,b),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{points:_}),I.polygon(n,_,e)},a}e.n(Ce,`hourglass`);async function we(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await l(e,n,`icon-shape default`),v=n.pos===`t`,y=p,b=p,{nodeBorder:x}=r,{stylesMap:S}=s.t(n),C=-b/2,w=-y/2,T=n.label?8:0,E=c.t.svg(h),D=s.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,y,D),k=Math.max(b,g.width),A=y+g.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),M=h.insert(()=>O,`:first-child`),N=h.insert(()=>j);if(n.icon){let e=h.append(`g`);e.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?g.height/2+T/2-a/2-s:-g.height/2-T/2-a/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return _.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${v?-A/2:A/2-g.height})`),M.attr(`transform`,`translate(0,${v?g.height/2+T/2:-g.height/2-T/2})`),d(n,N),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+T},{x:r+b/2,y:i-a/2+g.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+g.height+T},{x:r-g.width/2,y:i-a/2+g.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+g.width/2,y:i-a/2+y},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],I.polygon(n,o,e)},h}e.n(we,`icon`);async function Te(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await l(e,n,`icon-shape default`),v=n.label?8:0,y=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=s.t(n),C=c.t.svg(h),w=s.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=h.append(`g`);n.icon&&T.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,M=C.circle(0,0,j,w),N=Math.max(j,g.width),P=j+g.height+v,F=C.rectangle(-N/2,-P/2,N,P,{...w,fill:`transparent`,stroke:`none`}),L=h.insert(()=>M,`:first-child`),R=h.insert(()=>F);return T.attr(`transform`,`translate(${-D/2-k},${y?g.height/2+v/2-O/2-A:-g.height/2-v/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),_.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${y?-P/2:P/2-g.height})`),L.attr(`transform`,`translate(0,${y?g.height/2+v/2:-g.height/2-v/2})`),d(n,R),n.intersect=function(e){return t.m.info(`iconSquare intersect`,n,e),I.rect(n,e)},h}e.n(Te,`iconCircle`);async function Ee(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:_,label:v}=await l(e,n,`icon-shape default`),b=n.pos===`t`,x=p+_*2,S=p+_*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=s.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=c.t.svg(h),A=s.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(y(E,D,S,x,5),A),M=Math.max(S,g.width),N=x+g.height+O,P=k.rectangle(-M/2,-N/2,M,N,{...A,fill:`transparent`,stroke:`none`}),F=h.insert(()=>j,`:first-child`).attr(`class`,`icon-shape2`),L=h.insert(()=>P);if(n.icon){let e=h.append(`g`);e.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-a/2-s:-g.height/2-O/2-a/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return v.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-N/2:N/2-g.height})`),F.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),d(n,L),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],I.polygon(n,o,e)},h}e.n(Ee,`iconRounded`);async function De(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:_,label:v}=await l(e,n,`icon-shape default`),b=n.pos===`t`,x=p+_*2,S=p+_*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=s.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=c.t.svg(h),A=s.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(y(E,D,S,x,.1),A),M=Math.max(S,g.width),N=x+g.height+O,P=k.rectangle(-M/2,-N/2,M,N,{...A,fill:`transparent`,stroke:`none`}),F=h.insert(()=>j,`:first-child`),L=h.insert(()=>P);if(n.icon){let e=h.append(`g`);e.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-a/2-s:-g.height/2-O/2-a/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return v.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-N/2:N/2-g.height})`),F.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),d(n,L),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],I.polygon(n,o,e)},h}e.n(De,`iconSquare`);async function Oe(e,n,{config:{flowchart:r}}){let i=new Image;i.src=n?.img??``,await i.decode();let a=Number(i.naturalWidth.toString().replace(`px`,``)),o=Number(i.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=a/o;let{labelStyles:u}=s.i(n);n.labelStyle=u;let f=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let p=Math.max(n.label?f??0:0,n?.assetWidth??a),m=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:p,h=n.constraint===`on`?m/n.imageAspectRatio:n?.assetHeight??o;n.width=Math.max(m,f??0);let{shapeSvg:g,bbox:_,label:v}=await l(e,n,`image-shape default`),y=n.pos===`t`,b=-m/2,x=-h/2,S=n.label?8:0,C=c.t.svg(g),w=s.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,m,h,w),E=Math.max(m,_.width),D=h+_.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=g.insert(()=>T,`:first-child`),A=g.insert(()=>O);if(n.img){let e=g.append(`image`);e.attr(`href`,n.img),e.attr(`width`,m),e.attr(`height`,h),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-m/2},${y?D/2-h:-D/2})`)}return v.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${y?-h/2-_.height/2-S/2:h/2-_.height/2+S/2})`),k.attr(`transform`,`translate(0,${y?_.height/2+S/2:-_.height/2-S/2})`),d(n,A),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+S},{x:r+m/2,y:i-a/2+_.height+S},{x:r+m/2,y:i+a/2},{x:r-m/2,y:i+a/2},{x:r-m/2,y:i-a/2+_.height+S},{x:r-_.width/2,y:i-a/2+_.height+S}]:[{x:r-m/2,y:i-a/2},{x:r+m/2,y:i-a/2},{x:r+m/2,y:i-a/2+h},{x:r+_.width/2,y:i-a/2+h},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+h},{x:r-m/2,y:i-a/2+h}],I.polygon(n,o,e)},g}e.n(Oe,`imageSquare`);async function ke(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=Math.max(m.width+(o??0)*2,t?.width??0),g=Math.max(m.height+(a??0)*2,t?.height??0),_=[{x:0,y:0},{x:h,y:0},{x:h+3*g/6,y:-g},{x:-3*g/6,y:-g}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),y&&v.attr(`style`,y)}else v=B(u,h,g,_);return r&&v.attr(`style`,r),t.width=h,t.height=g,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(ke,`inv_trapezoid`);async function Ae(e,t){let{shapeSvg:n,bbox:r,label:i}=await l(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),d(t,a),t.intersect=function(e){return I.rect(t,e)},n}e.n(Ae,`labelRect`);async function je(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height??m.height)+a,g=(t?.width??m.width)+o,_=[{x:0,y:0},{x:g+3*h/6,y:0},{x:g,y:-h},{x:-(3*h)/6,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=B(u,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(je,`lean_left`);async function Me(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height??m.height)+a,g=(t?.width??m.width)+o,_=[{x:-3*h/6,y:0},{x:g,y:0},{x:g+3*h/6,y:-h},{x:0,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=B(u,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(Me,`lean_right`);function Ne(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.label=``,n.labelStyle=r;let a=e.insert(`g`).attr(`class`,f(n)).attr(`id`,n.domId??n.id),{cssStyles:o}=n,l=Math.max(35,n?.width??0),u=Math.max(35,n?.height??0),m=[{x:l,y:0},{x:0,y:u+7/2},{x:l-14,y:u+7/2},{x:0,y:2*u},{x:l,y:u-7/2},{x:14,y:u-7/2}],h=c.t.svg(a),g=s.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=p(m),v=h.path(_,g),y=a.insert(()=>v,`:first-child`);return y.attr(`class`,`outer-path`),o&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,o),i&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,i),y.attr(`transform`,`translate(-${l/2},${-u})`),d(n,y),n.intersect=function(e){return t.m.info(`lightningBolt intersect`,n,e),I.polygon(n,m,e)},a}e.n(Ne,`lightningBolt`);var Pe=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),Fe=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Ie=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Le=10,Re=10;async function ze(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?16:a,u=t.look===`neo`?24:a;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-o,t.width<Re&&(t.width=Re);let n=e/2/(2.5+e/50);t.height=(t.height??0)-u-n*3,t.height<Le&&(t.height=Le)}let{shapeSvg:p,bbox:m,label:h}=await l(e,t,f(t)),g=(t?.width?t?.width:m.width)+o*2,_=g/2,v=_/(2.5+g/50),y=(t?.height?t?.height:m.height)+v+u*2,b=y*.1,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=c.t.svg(p),n=Fe(0,0,g,y,_,v,b),r=Ie(0,v,g,y,_,v),i=s.a(t,{}),a=e.path(n,i),o=e.path(r,i);p.insert(()=>o,`:first-child`).attr(`class`,`line`),x=p.insert(()=>a,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=Pe(0,0,g,y,_,v,b);x=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(S)).attr(`style`,i)}return x.attr(`label-offset-y`,v),x.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),d(t,x),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+v-(m.y-(m.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}e.n(ze,`linedCylinder`);async function Be(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:u,bbox:p,label:h}=await l(e,t,f(t)),g=(t?.width?t?.width:p.width)+(a??0)*2,_=(t?.height?t?.height:p.height)+(o??0)*2,v=t.look===`neo`?_/4:_/8,y=_+v,{cssStyles:b}=t,x=c.t.svg(u),S=s.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2-g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:y/2},...m(-g/2-g/2*.1,y/2,g/2+g/2*.1,y/2,v,.8),{x:g/2+g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:-y/2},{x:-g/2,y:-y/2},{x:-g/2,y:y/2*1.1},{x:-g/2,y:-y/2}],w=x.polygon(C.map(e=>[e.x,e.y]),S),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-v/2})`),h.attr(`transform`,`translate(${-g/2+(t.padding??0)+g/2*.1/2-(p.x-(p.left??0))},${-_/2+(t.padding??0)-v/2-(p.y-(p.top??0))})`),d(t,T),t.intersect=function(e){return I.polygon(t,C,e)},u}e.n(Be,`linedWaveEdgedRect`);async function Ve(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,u=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*u,10),t.height=Math.max((t?.height??0)-o*2-2*u,10));let{shapeSvg:m,bbox:h,label:_}=await l(e,t,f(t)),v=(t?.width?t?.width:h.width)+a*2+2*u,y=(t?.height?t?.height:h.height)+o*2+2*u,b=v-2*u,x=y-2*u,S=-b/2,C=-x/2,{cssStyles:w}=t,T=c.t.svg(m),E=s.a(t,{}),D=[{x:S-u,y:C+u},{x:S-u,y:C+x+u},{x:S+b-u,y:C+x+u},{x:S+b-u,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C+x-u},{x:S+b+u,y:C+x-u},{x:S+b+u,y:C-u},{x:S+u,y:C-u},{x:S+u,y:C},{x:S,y:C},{x:S,y:C+u}],O=[{x:S,y:C+u},{x:S+b-u,y:C+u},{x:S+b-u,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C},{x:S,y:C}];t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let k=p(D),A=T.path(k,E),j=p(O),M=T.path(j,E);t.look!==`handDrawn`&&(A=g(A),M=g(M));let N=m.insert(`g`,`:first-child`);return N.insert(()=>A),N.insert(()=>M),N.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,r),_.attr(`transform`,`translate(${-(h.width/2)-u-(h.x-(h.left??0))}, ${-(h.height/2)+u-(h.y-(h.top??0))})`),d(t,N),t.intersect=function(e){return I.polygon(t,D,e)},m}e.n(Ve,`multiRect`);async function He(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.padding??0,h=t.look===`neo`?16:u,g=t.look===`neo`?12:u,_=!0;(t.width||t.height)&&(_=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-g*3);let v=Math.max(a.width,t?.width??0)+h*2,y=Math.max(a.height,t?.height??0)+g*3,b=t.look===`neo`?y/4:y/8,x=y+(_?b/2:-b/2),S=-v/2,C=-x/2,{cssStyles:w}=t,T=m(S-10,C+x+10,S+v-10,C+x+10,b,.8),E=T?.[T.length-1],D=[{x:S-10,y:C+10},{x:S-10,y:C+x+10},...T,{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:E.y-20},{x:S+v+10,y:E.y-20},{x:S+v+10,y:C-10},{x:S+10,y:C-10},{x:S+10,y:C},{x:S,y:C},{x:S,y:C+10}],O=[{x:S,y:C+10},{x:S+v-10,y:C+10},{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:C},{x:S,y:C}],k=c.t.svg(i),A=s.a(t,{});t.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`);let j=p(D),M=k.path(j,A),N=p(O),P=k.path(N,A),F=i.insert(()=>M,`:first-child`);return F.insert(()=>P),F.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,r),F.attr(`transform`,`translate(0,${-b/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-b/2-(a.y-(a.top??0))})`),d(t,F),t.intersect=function(e){return I.polygon(t,D,e)},i}e.n(He,`multiWaveEdgedRectangle`);async function Ue(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=s.i(t);t.labelStyle=i,t.useHtmlLabels||n.T(n.b())||(t.centerLabel=!0);let{shapeSvg:o,bbox:u,label:p}=await l(e,t,f(t)),m=Math.max(u.width+(t.padding??0)*2,t?.width??0),h=Math.max(u.height+(t.padding??0)*2,t?.height??0),g=-m/2,_=-h/2,{cssStyles:v}=t,y=c.t.svg(o),b=s.a(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,m,h,b),S=o.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),p.attr(`class`,`label noteLabel`),v&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,v),a&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,a),p.attr(`transform`,`translate(${-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),d(t,S),t.intersect=function(e){return I.rect(t,e)},o}e.n(Ue,`note`);var We=e.n((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function Ge(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await l(e,t,f(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),u=.5,p=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=c.t.svg(i),n=s.a(t,{}),r=We(0,0,o),a=e.path(r,n);m=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+u}, ${o/2})`),h&&m.attr(`style`,h)}else m=B(i,o,o,p),m.attr(`transform`,`translate(${-o/2+u}, ${o/2})`);return r&&m.attr(`style`,r),d(t,m),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=I.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}e.n(Ge,`question`);async function Ke(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:u,bbox:m,label:h}=await l(e,t,f(t)),g=(t?.width??m.width)+(t.look===`neo`?a*2:a),_=(t?.height??m.height)+(t.look===`neo`?o*2:o),v=-g/2,y=-_/2,b=y/2,x=[{x:v+b,y},{x:v,y:0},{x:v+b,y:-y},{x:-v,y:-y},{x:-v,y}],{cssStyles:S}=t,C=c.t.svg(u),w=s.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=p(x),E=C.path(T,w),D=u.insert(()=>E,`:first-child`);return D.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-b/2},0)`),h.attr(`transform`,`translate(${-b/2-m.width/2-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),d(t,D),t.intersect=function(e){return I.polygon(t,x,e)},u}e.n(Ke,`rect_left_inv_arrow`);async function qe(e,r){let{labelStyles:i,nodeStyles:a}=s.i(r);r.labelStyle=i;let o;o=r.cssClasses?`node `+r.cssClasses:`node default`;let l=e.insert(`g`).attr(`class`,o).attr(`id`,r.domId||r.id),u=l.insert(`g`),f=l.insert(`g`).attr(`class`,`label`).attr(`style`,a),p=r.description,m=r.label,h=await v(f,m,r.labelStyle,!0,!0),g={width:0,height:0};if(n.T(n.x())){let e=h.children[0],n=t.p(h);g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}t.m.info(`Text 2`,p);let _=p||[],b=h.getBBox(),x=await v(f,Array.isArray(_)?_.join(`<br/>`):_,r.labelStyle,!0,!0),S=x.children[0],C=t.p(x);g=S.getBoundingClientRect(),C.attr(`width`,g.width),C.attr(`height`,g.height);let w=(r.padding||0)/2;t.p(x).attr(`transform`,`translate( `+(g.width>b.width?0:(b.width-g.width)/2)+`, `+(b.height+w+5)+`)`),t.p(h).attr(`transform`,`translate( `+(g.width<b.width?0:-(b.width-g.width)/2)+`, 0)`),g=f.node().getBBox(),f.attr(`transform`,`translate(`+-g.width/2+`, `+(-g.height/2-w+3)+`)`);let T=g.width+(r.padding||0),E=g.height+(r.padding||0),D=-g.width/2-w,O=-g.height/2-w,k,A;if(r.look===`handDrawn`){let e=c.t.svg(l),n=s.a(r,{}),i=e.path(y(D,O,T,E,r.rx||0),n),a=e.line(-g.width/2-w,-g.height/2-w+b.height+w,g.width/2+w,-g.height/2-w+b.height+w,n);A=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),a),`:first-child`),k=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`)}else k=u.insert(`rect`,`:first-child`),A=u.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,a).attr(`x`,-g.width/2-w).attr(`y`,-g.height/2-w).attr(`width`,g.width+(r.padding||0)).attr(`height`,g.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-g.width/2-w).attr(`x2`,g.width/2+w).attr(`y1`,-g.height/2-w+b.height+w).attr(`y2`,-g.height/2-w+b.height+w);return d(r,k),r.intersect=function(e){return I.rect(r,e)},l}e.n(qe,`rectWithTitle`);async function Je(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Y(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}e.n(Je,`roundedRect`);var X=8;async function Ye(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,o=t.look===`neo`?12:t.padding??0,{shapeSvg:u,bbox:p,label:m}=await l(e,t,f(t)),h=(t?.width??p.width)+a*2+(t.look===`neo`?X:X*2),g=(t?.height??p.height)+o*2,_=h-X,v=g,y=X-h/2,b=-g/2,{cssStyles:x}=t,S=c.t.svg(u),C=s.a(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=[{x:y,y:b},{x:y+_,y:b},{x:y+_,y:b+v},{x:y-X,y:b+v},{x:y-X,y:b},{x:y,y:b},{x:y,y:b+v}],T=S.polygon(w.map(e=>[e.x,e.y]),C),E=u.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(x)),i&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),x&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),m.attr(`transform`,`translate(${X/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),d(t,E),t.intersect=function(e){return I.rect(t,e)},u}e.n(Ye,`shadedProcess`);async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:u,bbox:m,label:h}=await l(e,t,f(t)),g=(t?.width?t?.width:m.width)+a*2,_=((t?.height?t?.height:m.height)+o*2)*1.5,v=g,y=_/1.5,b=-v/2,x=-y/2,{cssStyles:S}=t,C=c.t.svg(u),w=s.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=[{x:b,y:x},{x:b,y:x+y},{x:b+v,y:x+y},{x:b+v,y:x-y/2}],E=p(T),D=C.path(E,w),O=u.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,r),O.attr(`transform`,`translate(0, ${y/4})`),h.attr(`transform`,`translate(${-v/2+(t.padding??0)-(m.x-(m.left??0))}, ${-y/4+(t.padding??0)-(m.y-(m.top??0))})`),d(t,O),t.intersect=function(e){return I.polygon(t,T,e)},u}e.n(Xe,`slopedRect`);async function Ze(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return Y(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}e.n(Ze,`squareRect`);async function Qe(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,o=t.look===`neo`?12:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),g=m.height+(t.look===`neo`?o*2:o),_=m.width+g/4+(t.look===`neo`?a*2:a),v=g/2,{cssStyles:y}=t,b=c.t.svg(u),x=s.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-_/2+v,y:-g/2},{x:_/2-v,y:-g/2},...h(-_/2+v,0,v,50,90,270),{x:_/2-v,y:g/2},...h(_/2-v,0,v,50,270,450)],C=p(S),w=b.path(C,x),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),d(t,T),t.intersect=function(e){return I.polygon(t,S,e)},u}e.n(Qe,`stadium`);async function $e(e,t){return Y(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}e.n($e,`state`);function et(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=s.i(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:l,nodeBorder:u,nodeShadow:f}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let p=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),m=c.t.svg(p),h=s.a(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.circle(0,0,t.width,{...h,stroke:o,strokeWidth:2}),_=l??u,v=(t.width??0)*5/14,y=m.circle(0,0,v,{...h,fill:_,stroke:_,strokeWidth:2,fillStyle:`solid`}),b=p.insert(()=>g,`:first-child`);if(b.insert(()=>y),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),a&&b.selectAll(`path`).attr(`style`,a),i&&b.selectAll(`path`).attr(`style`,i),t.width<25&&f&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return d(t,b),t.intersect=function(e){return I.circle(t,(t.width??0)/2,e)},p}e.n(et,`stateEnd`);function tt(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=c.t.svg(a).circle(0,0,t.width,s.r(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return d(t,o),t.intersect=function(e){return I.circle(t,(t.width??7)/2,e)},a}e.n(tt,`stateStart`);var Z=8;async function nt(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t?.padding??8,o=t.look===`neo`?28:a,u=t.look===`neo`?12:a,{shapeSvg:p,bbox:m}=await l(e,t,f(t)),h=(t?.width??m.width)+2*Z+o,g=(t?.height??m.height)+u,_=h-2*Z,v=g,y=-h/2,b=-g/2,x=[{x:0,y:0},{x:_,y:0},{x:_,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:_+8,y:0},{x:_+8,y:-v},{x:-8,y:-v},{x:-8,y:0}];if(t.look===`handDrawn`){let e=c.t.svg(p),n=s.a(t,{}),i=e.rectangle(y,b,_+16,v,n),a=e.line(y+Z,b,y+Z,b+v,n),o=e.line(y+Z+_,b,y+Z+_,b+v,n);p.insert(()=>a,`:first-child`),p.insert(()=>o,`:first-child`);let l=p.insert(()=>i,`:first-child`),{cssStyles:u}=t;l.attr(`class`,`basic label-container`).attr(`style`,r.u(u)),d(t,l)}else{let e=B(p,_,v,x);i&&e.attr(`style`,i),d(t,e)}return t.intersect=function(e){return I.polygon(t,x,e)},p}e.n(nt,`subroutine`);var rt=.2;async function it(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-rt*(t.height+o*2),10));let{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height?t?.height:m.height)+o*2,g=rt*h,_=rt*h,v=(t?.width?t?.width:m.width)+a*2+g-g,y=h,b=-v/2,x=-y/2,{cssStyles:S}=t,C=c.t.svg(u),w=s.a(t,{}),T=[{x:b-g/2,y:x},{x:b+v+g/2,y:x},{x:b+v+g/2,y:x+y},{x:b-g/2,y:x+y}],E=[{x:b+v-g/2,y:x+y},{x:b+v+g/2,y:x+y},{x:b+v+g/2,y:x+y-_}];t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let D=p(T),O=C.path(D,w),k=p(E),A=C.path(k,{...w,fillStyle:`solid`}),j=u.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),d(t,j),t.intersect=function(e){return I.polygon(t,T,e)},u}e.n(it,`taggedRect`);async function at(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),g=h/8,_=.2*u,v=.2*h,y=h+g,{cssStyles:b}=t,x=c.t.svg(i),S=s.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-u/2-u/2*.1,y:y/2},...m(-u/2-u/2*.1,y/2,u/2+u/2*.1,y/2,g,.8),{x:u/2+u/2*.1,y:-y/2},{x:-u/2-u/2*.1,y:-y/2}],w=-u/2+u/2*.1,T=-y/2-v*.4,E=[{x:w+u-_,y:(T+h)*1.3},{x:w+u,y:T+h-v},{x:w+u,y:(T+h)*.9},...m(w+u,(T+h)*1.25,w+u-_,(T+h)*1.3,-h*.02,.5)],D=p(C),O=x.path(D,S),k=p(E),A=x.path(k,{...S,fillStyle:`solid`}),j=i.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)-(a.x-(a.left??0))},${-h/2+(t.padding??0)-g/2-(a.y-(a.top??0))})`),d(t,j),t.intersect=function(e){return I.polygon(t,C,e)},i}e.n(at,`taggedWaveEdgedRectangle`);async function ot(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await l(e,t,f(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),c=Math.max(a.height+(t.padding??0),t?.height||0),u=-o/2,p=-c/2,m=i.insert(`rect`,`:first-child`);return m.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,u).attr(`y`,p).attr(`width`,o).attr(`height`,c),d(t,m),t.intersect=function(e){return I.rect(t,e)},i}e.n(ot,`text`);var st=e.n((e,t,n,r,i,a)=>`M${e},${t}
|
|
3
3
|
a${i},${a} 0,0,1 0,${-r}
|
|
4
4
|
l${n},0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { f as t, x as n } from "./chunk-
|
|
3
|
-
import { p as r } from "./chunk-
|
|
4
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
2
|
+
import { f as t, x as n } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
3
|
+
import { p as r } from "./chunk-NSK5VX7P-DPxIxDdV.js";
|
|
4
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-UBXNYLIW.mjs
|
|
5
5
|
var i = /* @__PURE__ */ e(({ flowchart: e }) => {
|
|
6
6
|
let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
|
|
7
7
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-I66GZJ75-CrpH-Rmq.cjs"),n=require("./chunk-NSK5VX7P-D5CepZHI.cjs");var r=e.n(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function i(r,i){let a=r.getElementsByTagName(`img`);if(!a||a.length===0)return;let o=i.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...a].map(r=>new Promise(i=>{function a(){if(r.style.display=`flex`,r.style.flexDirection=`column`,o){let e=t.x().fontSize?t.x().fontSize:window.getComputedStyle(document.body).fontSize,[i=t.f.fontSize]=n.p(e),a=i*5+`px`;r.style.minWidth=a,r.style.maxWidth=a}else r.style.width=`100%`;i(r)}e.n(a,`setupImage`),setTimeout(()=>{r.complete&&a()}),r.addEventListener(`error`,a),r.addEventListener(`load`,a)})))}e.n(i,`configureLabelImages`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { x as t } from "./chunk-
|
|
3
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
2
|
+
import { x as t } from "./chunk-I66GZJ75-DexfhZwA.js";
|
|
3
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-W5SLKNZC.mjs
|
|
4
4
|
var n = /* @__PURE__ */ e((e) => {
|
|
5
5
|
let { handDrawnSeed: n } = t();
|
|
6
6
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-I66GZJ75-CrpH-Rmq.cjs");var n=e.n(e=>{let{handDrawnSeed:n}=t.x();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e.n(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e.n(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e.n(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e.n(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e.n((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t.x(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e.n(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|