@sme.up/ketchup2 2.0.0-SNAPSHOT-20250909094906 → 2.0.0-SNAPSHOT-20250909100819
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/{_basePickBy-jbGD0zVt.cjs → _basePickBy-Ca1ngxe-.cjs} +1 -1
- package/dist/{_basePickBy-Do84EYM_.js → _basePickBy-CnPX6Bdb.js} +2 -2
- package/dist/{_baseUniq-ChWtQCAg.js → _baseUniq-CQt2p9Xf.js} +1 -1
- package/dist/{_baseUniq-QOx9ZFk8.cjs → _baseUniq-bHS4L6X9.cjs} +1 -1
- package/dist/{arc-ChfU56Id.js → arc-B2BtxFI4.js} +1 -1
- package/dist/{arc-BIKBJW81.cjs → arc-Bg-chCuU.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-3YFJqJ0Z.cjs → architecture-O4VJ6CD3-Bogzr-i1.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-BUnL0V-N.js → architecture-O4VJ6CD3-DYTHPFXy.js} +1 -1
- package/dist/{architectureDiagram-W76B3OCA-CZqalw5r.cjs → architectureDiagram-W76B3OCA-BUHj3Zr2.cjs} +1 -1
- package/dist/{architectureDiagram-W76B3OCA-CBK4zgfT.js → architectureDiagram-W76B3OCA-Bj05bf6s.js} +3 -3
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-QIGZ2CNN-GTeJnx7A.cjs → blockDiagram-QIGZ2CNN-BAiichlp.cjs} +1 -1
- package/dist/{blockDiagram-QIGZ2CNN-D-oSz2sZ.js → blockDiagram-QIGZ2CNN-CwpHAq1V.js} +5 -5
- package/dist/{c4Diagram-FPNF74CW-CTzfs_2H.cjs → c4Diagram-FPNF74CW-De8NL9Id.cjs} +1 -1
- package/dist/{c4Diagram-FPNF74CW-ARWMN1wL.js → c4Diagram-FPNF74CW-DiSLBa6J.js} +2 -2
- package/dist/channel-C-hM23ua.cjs +1 -0
- package/dist/{channel-DioWzi4t.js → channel-Cn_5XvBc.js} +1 -1
- package/dist/{chunk-4BX2VUAB-CseI-Vvw.cjs → chunk-4BX2VUAB-D2Fra4jo.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-B3NOuiDi.js → chunk-4BX2VUAB-Dc8D0um4.js} +1 -1
- package/dist/{chunk-55IACEB6-DWsrLxcl.cjs → chunk-55IACEB6-B9OyHdBl.cjs} +1 -1
- package/dist/{chunk-55IACEB6-J1JahOGA.js → chunk-55IACEB6-WLFUV7oZ.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CZgAaUUx.js → chunk-FMBD7UC4-CB2wfBwS.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CM5L8bW6.cjs → chunk-FMBD7UC4-gecPdlnv.cjs} +1 -1
- package/dist/{chunk-K7UQS3LO-BT7hVqcS.js → chunk-K7UQS3LO-Ct-3gwwe.js} +4 -4
- package/dist/{chunk-K7UQS3LO-CtzkJjTw.cjs → chunk-K7UQS3LO-DlKvL8UP.cjs} +1 -1
- package/dist/{chunk-QN33PNHL-DfPMtcCm.js → chunk-QN33PNHL-D4Q8z0QK.js} +1 -1
- package/dist/{chunk-QN33PNHL-Djjr-gFo.cjs → chunk-QN33PNHL-DnwK1wh-.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-DiLRWGZ4.js → chunk-QZHKN3VN-BQc1ljoT.js} +1 -1
- package/dist/{chunk-QZHKN3VN-D80R1Bnw.cjs → chunk-QZHKN3VN-cx48mWRx.cjs} +1 -1
- package/dist/{chunk-TVAH2DTR-BUlQxrvQ.js → chunk-TVAH2DTR-C6i3nG3J.js} +3 -3
- package/dist/{chunk-TVAH2DTR-OscPged-.cjs → chunk-TVAH2DTR-Cln0v1mj.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-C4Bupww9.cjs → chunk-TZMSLE5B-B512fbOf.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-BFDfGKmV.js → chunk-TZMSLE5B-Ch4jqMvo.js} +1 -1
- package/dist/{classDiagram-KNZD7YFC-DU5lVeNU.cjs → classDiagram-KNZD7YFC-BoArhhwm.cjs} +1 -1
- package/dist/{classDiagram-v2-RKCZMP56-D2lEcWc2.js → classDiagram-KNZD7YFC-CDc6SE_W.js} +2 -2
- package/dist/{classDiagram-v2-RKCZMP56-DU5lVeNU.cjs → classDiagram-v2-RKCZMP56-BoArhhwm.cjs} +1 -1
- package/dist/{classDiagram-KNZD7YFC-D2lEcWc2.js → classDiagram-v2-RKCZMP56-CDc6SE_W.js} +2 -2
- package/dist/{clone-BIRPLFeu.js → clone-CP0dShvp.js} +1 -1
- package/dist/clone-DxIwbnXb.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BWGKRiDx.js → cose-bilkent-S5V4N54A-Bx4ACTR3.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-DL456FIj.cjs → cose-bilkent-S5V4N54A-DLiy4Dys.cjs} +1 -1
- package/dist/{dagre-5GWH7T2D-gZxGoa1q.js → dagre-5GWH7T2D-B_9p1wnG.js} +6 -6
- package/dist/{dagre-5GWH7T2D-N31ttJV3.cjs → dagre-5GWH7T2D-XNzFQlw3.cjs} +1 -1
- package/dist/{diagram-N5W7TBWH-Drncbwhp.cjs → diagram-N5W7TBWH-CELy5R0I.cjs} +1 -1
- package/dist/{diagram-N5W7TBWH-BdTxNJib.js → diagram-N5W7TBWH-DgzCbhxK.js} +4 -4
- package/dist/{diagram-QEK2KX5R-RjWKQ2ED.cjs → diagram-QEK2KX5R-CWUJhJRb.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-WZI40S3K.js → diagram-QEK2KX5R-DDJzGT4e.js} +3 -3
- package/dist/{diagram-S2PKOQOG-B9JzzA2t.js → diagram-S2PKOQOG-CGS6jThV.js} +3 -3
- package/dist/{diagram-S2PKOQOG-BNCnAE-c.cjs → diagram-S2PKOQOG-CxivHA5Z.cjs} +1 -1
- package/dist/{erDiagram-AWTI2OKA-CC7O9cWw.cjs → erDiagram-AWTI2OKA-Bm9UKu4a.cjs} +1 -1
- package/dist/{erDiagram-AWTI2OKA-CHFxr-_a.js → erDiagram-AWTI2OKA-uK37swgK.js} +4 -4
- package/dist/{flowDiagram-PVAE7QVJ-HeYvgtJE.cjs → flowDiagram-PVAE7QVJ-BoifHLur.cjs} +1 -1
- package/dist/{flowDiagram-PVAE7QVJ-BqSE3m5u.js → flowDiagram-PVAE7QVJ-CseXgbf4.js} +5 -5
- package/dist/{ganttDiagram-OWAHRB6G-BP1W4LwQ.js → ganttDiagram-OWAHRB6G-DBcQE30n.js} +2 -2
- package/dist/{ganttDiagram-OWAHRB6G-Cd3cccSw.cjs → ganttDiagram-OWAHRB6G-DxrVdbSN.cjs} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-jdm9JJYB.cjs → gitGraph-ZV4HHKMB--W5fvjOe.cjs} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-C3MJKIFJ.js → gitGraph-ZV4HHKMB-DI7K1S9a.js} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-MeKzzURg.cjs → gitGraphDiagram-NY62KEGX-C8IAHC2w.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-CAuDLddf.js → gitGraphDiagram-NY62KEGX-_dzUqzP_.js} +4 -4
- package/dist/{graph-Vhpd_PNV.js → graph-BoeGwTWO.js} +2 -2
- package/dist/{graph-D6Um4HxB.cjs → graph-v1PSEGdd.cjs} +1 -1
- package/dist/{index-DizklrOW.cjs → index-CdZgX2Ma.cjs} +4 -4
- package/dist/{index-JAUwzcHq.js → index-kj0EuvQM.js} +32 -32
- package/dist/{info-63CPKGFF-CVwGg7sm.cjs → info-63CPKGFF-DExJutq3.cjs} +1 -1
- package/dist/info-63CPKGFF-_OKf26EF.js +5 -0
- package/dist/{infoDiagram-STP46IZ2-BCtb4AJp.js → infoDiagram-STP46IZ2-BybsRpjy.js} +2 -2
- package/dist/{infoDiagram-STP46IZ2-TvwZFY0I.cjs → infoDiagram-STP46IZ2-ylOwUZka.cjs} +1 -1
- package/dist/{journeyDiagram-BIP6EPQ6-BpcOCeFx.cjs → journeyDiagram-BIP6EPQ6-B8QfAOqB.cjs} +1 -1
- package/dist/{journeyDiagram-BIP6EPQ6-CyCYA5CK.js → journeyDiagram-BIP6EPQ6-aD-qICsN.js} +4 -4
- package/dist/{kanban-definition-6OIFK2YF-4YIBsMQL.js → kanban-definition-6OIFK2YF-C0EFe9JN.js} +2 -2
- package/dist/{kanban-definition-6OIFK2YF-__0ex79Z.cjs → kanban-definition-6OIFK2YF-Dxddoy_3.cjs} +1 -1
- package/dist/ketchup2.cjs.js +1 -1
- package/dist/ketchup2.es.js +1 -1
- package/dist/{layout-4fomnJM7.cjs → layout-CwMglWfT.cjs} +1 -1
- package/dist/{layout-DtdTzvka.js → layout-D6agY5Ds.js} +4 -4
- package/dist/{linear-BFBJjwEz.js → linear-CHZKZE-6.js} +1 -1
- package/dist/{linear-DqF6L3Zm.cjs → linear-zcj9uSLT.cjs} +1 -1
- package/dist/{mermaid-parser.core-CySFdxC3.cjs → mermaid-parser.core-BFoNlVio.cjs} +2 -2
- package/dist/{mermaid-parser.core-DX0wl6-K.js → mermaid-parser.core-Blpz4SbD.js} +11 -11
- package/dist/{mindmap-definition-Q6HEUPPD-xX1MDaCF.js → mindmap-definition-Q6HEUPPD-BdQ8h5vs.js} +3 -3
- package/dist/{mindmap-definition-Q6HEUPPD-DS17jgrc.cjs → mindmap-definition-Q6HEUPPD-low7Mewd.cjs} +1 -1
- package/dist/{packet-HUATNLJX-Cg3sBc6j.cjs → packet-HUATNLJX-BmvldEFD.cjs} +1 -1
- package/dist/{packet-HUATNLJX-BYVUpbG6.js → packet-HUATNLJX-TyfgX3j3.js} +1 -1
- package/dist/{pie-WTHONI2E-aHt6d3si.cjs → pie-WTHONI2E-BltdTNxf.cjs} +1 -1
- package/dist/pie-WTHONI2E-Dt2hdV7w.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-DT0Ws9pS.cjs → pieDiagram-ADFJNKIX-CzvxfXwl.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-B8i8yWnV.js → pieDiagram-ADFJNKIX-ExzVUSNO.js} +4 -4
- package/dist/{quadrantDiagram-LMRXKWRM-DtGKIjme.cjs → quadrantDiagram-LMRXKWRM-Bi7EaXZ7.cjs} +1 -1
- package/dist/{quadrantDiagram-LMRXKWRM-BhJb9RD_.js → quadrantDiagram-LMRXKWRM-DqMz0iQn.js} +2 -2
- package/dist/radar-NJJJXTRR-BWXgZsQ6.js +5 -0
- package/dist/{radar-NJJJXTRR-BAYIFlfJ.cjs → radar-NJJJXTRR-DduW7l7R.cjs} +1 -1
- package/dist/{requirementDiagram-4UW4RH46-DAI3Uiz3.js → requirementDiagram-4UW4RH46-DykQlAiG.js} +3 -3
- package/dist/{requirementDiagram-4UW4RH46-CVZ_dXqx.cjs → requirementDiagram-4UW4RH46-ud4W-Zp9.cjs} +1 -1
- package/dist/{sankeyDiagram-GR3RE2ED-DKDgKlXn.cjs → sankeyDiagram-GR3RE2ED-CUj9_a8o.cjs} +1 -1
- package/dist/{sankeyDiagram-GR3RE2ED-BXuYlJUa.js → sankeyDiagram-GR3RE2ED-RK19iv1u.js} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-DW6rFBHn.js → sequenceDiagram-C3RYC4MD-BuBk17RB.js} +3 -3
- package/dist/{sequenceDiagram-C3RYC4MD-CIIj5p5i.cjs → sequenceDiagram-C3RYC4MD-CcM-9wjX.cjs} +1 -1
- package/dist/{stateDiagram-KXAO66HF-ZTmYAzzc.js → stateDiagram-KXAO66HF-C_vpiwWi.js} +4 -4
- package/dist/{stateDiagram-KXAO66HF-DHLO3kOk.cjs → stateDiagram-KXAO66HF-leA_Ugq1.cjs} +1 -1
- package/dist/{stateDiagram-v2-UMBNRL4Z-1TzBIAjq.cjs → stateDiagram-v2-UMBNRL4Z-DMn1PJJZ.cjs} +1 -1
- package/dist/{stateDiagram-v2-UMBNRL4Z-8NUwdmML.js → stateDiagram-v2-UMBNRL4Z-krzWPwwC.js} +2 -2
- package/dist/{timeline-definition-XQNQX7LJ-D4fALhvp.js → timeline-definition-XQNQX7LJ-CbPKkQDk.js} +2 -2
- package/dist/{timeline-definition-XQNQX7LJ-CtFKMZOO.cjs → timeline-definition-XQNQX7LJ-DbVINiOM.cjs} +1 -1
- package/dist/{treemap-75Q7IDZK-tSdwGttm.js → treemap-75Q7IDZK-CRSsbp2b.js} +1 -1
- package/dist/{treemap-75Q7IDZK-DH4yrCnW.cjs → treemap-75Q7IDZK-CcdS7WCH.cjs} +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-vmeOyvTD.cjs → xychartDiagram-6GGTOJPD-8fzwt7BJ.cjs} +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-CRUaY0o_.js → xychartDiagram-6GGTOJPD-CGq5lmkW.js} +2 -2
- package/package.json +1 -1
- package/dist/channel-B4Pxd4YX.cjs +0 -1
- package/dist/clone-Yz3NuvEr.cjs +0 -1
- package/dist/info-63CPKGFF-BADmngvb.js +0 -5
- package/dist/pie-WTHONI2E-8_e9e1PJ.js +0 -5
- package/dist/radar-NJJJXTRR-zWC19E7g.js +0 -5
|
@@ -2431,7 +2431,7 @@ const Xx = 10, vc = ({
|
|
|
2431
2431
|
role: i,
|
|
2432
2432
|
children: [
|
|
2433
2433
|
t,
|
|
2434
|
-
o
|
|
2434
|
+
o && /* @__PURE__ */ S.jsx("div", { "smp-id": "toolbar-button", ref: p, children: /* @__PURE__ */ S.jsx(
|
|
2435
2435
|
Rt,
|
|
2436
2436
|
{
|
|
2437
2437
|
icon: "more_vert",
|
|
@@ -2440,7 +2440,7 @@ const Xx = 10, vc = ({
|
|
|
2440
2440
|
x.stopPropagation(), d(!0);
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
2443
|
-
) })
|
|
2443
|
+
) })
|
|
2444
2444
|
]
|
|
2445
2445
|
}
|
|
2446
2446
|
),
|
|
@@ -5168,7 +5168,7 @@ const Sc = ({
|
|
|
5168
5168
|
displayMode: t,
|
|
5169
5169
|
minimumChars: r,
|
|
5170
5170
|
listDisplayMode: i,
|
|
5171
|
-
isEditable: n
|
|
5171
|
+
isEditable: n,
|
|
5172
5172
|
placeholder: a,
|
|
5173
5173
|
label: o,
|
|
5174
5174
|
disabled: s,
|
|
@@ -22564,11 +22564,11 @@ var id = /* @__PURE__ */ m(function(e, t, r) {
|
|
|
22564
22564
|
lb([
|
|
22565
22565
|
{
|
|
22566
22566
|
name: "dagre",
|
|
22567
|
-
loader: /* @__PURE__ */ m(async () => await import("./dagre-5GWH7T2D-
|
|
22567
|
+
loader: /* @__PURE__ */ m(async () => await import("./dagre-5GWH7T2D-B_9p1wnG.js"), "loader")
|
|
22568
22568
|
},
|
|
22569
22569
|
{
|
|
22570
22570
|
name: "cose-bilkent",
|
|
22571
|
-
loader: /* @__PURE__ */ m(async () => await import("./cose-bilkent-S5V4N54A-
|
|
22571
|
+
loader: /* @__PURE__ */ m(async () => await import("./cose-bilkent-S5V4N54A-Bx4ACTR3.js"), "loader")
|
|
22572
22572
|
}
|
|
22573
22573
|
]);
|
|
22574
22574
|
}, "registerDefaultLayoutLoaders");
|
|
@@ -22915,119 +22915,119 @@ function ud(e) {
|
|
|
22915
22915
|
return !0;
|
|
22916
22916
|
}
|
|
22917
22917
|
var gb = "c4", VM = /* @__PURE__ */ m((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), XM = /* @__PURE__ */ m(async () => {
|
|
22918
|
-
const { diagram: e } = await import("./c4Diagram-FPNF74CW-
|
|
22918
|
+
const { diagram: e } = await import("./c4Diagram-FPNF74CW-DiSLBa6J.js");
|
|
22919
22919
|
return { id: gb, diagram: e };
|
|
22920
22920
|
}, "loader"), KM = {
|
|
22921
22921
|
id: gb,
|
|
22922
22922
|
detector: VM,
|
|
22923
22923
|
loader: XM
|
|
22924
22924
|
}, ZM = KM, mb = "flowchart", QM = /* @__PURE__ */ m((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"), JM = /* @__PURE__ */ m(async () => {
|
|
22925
|
-
const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-
|
|
22925
|
+
const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-CseXgbf4.js");
|
|
22926
22926
|
return { id: mb, diagram: e };
|
|
22927
22927
|
}, "loader"), tB = {
|
|
22928
22928
|
id: mb,
|
|
22929
22929
|
detector: QM,
|
|
22930
22930
|
loader: JM
|
|
22931
22931
|
}, eB = tB, yb = "flowchart-v2", rB = /* @__PURE__ */ m((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"), iB = /* @__PURE__ */ m(async () => {
|
|
22932
|
-
const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-
|
|
22932
|
+
const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-CseXgbf4.js");
|
|
22933
22933
|
return { id: yb, diagram: e };
|
|
22934
22934
|
}, "loader"), nB = {
|
|
22935
22935
|
id: yb,
|
|
22936
22936
|
detector: rB,
|
|
22937
22937
|
loader: iB
|
|
22938
22938
|
}, aB = nB, bb = "er", sB = /* @__PURE__ */ m((e) => /^\s*erDiagram/.test(e), "detector"), oB = /* @__PURE__ */ m(async () => {
|
|
22939
|
-
const { diagram: e } = await import("./erDiagram-AWTI2OKA-
|
|
22939
|
+
const { diagram: e } = await import("./erDiagram-AWTI2OKA-uK37swgK.js");
|
|
22940
22940
|
return { id: bb, diagram: e };
|
|
22941
22941
|
}, "loader"), lB = {
|
|
22942
22942
|
id: bb,
|
|
22943
22943
|
detector: sB,
|
|
22944
22944
|
loader: oB
|
|
22945
22945
|
}, cB = lB, xb = "gitGraph", hB = /* @__PURE__ */ m((e) => /^\s*gitGraph/.test(e), "detector"), uB = /* @__PURE__ */ m(async () => {
|
|
22946
|
-
const { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-
|
|
22946
|
+
const { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-_dzUqzP_.js");
|
|
22947
22947
|
return { id: xb, diagram: e };
|
|
22948
22948
|
}, "loader"), fB = {
|
|
22949
22949
|
id: xb,
|
|
22950
22950
|
detector: hB,
|
|
22951
22951
|
loader: uB
|
|
22952
22952
|
}, dB = fB, vb = "gantt", pB = /* @__PURE__ */ m((e) => /^\s*gantt/.test(e), "detector"), gB = /* @__PURE__ */ m(async () => {
|
|
22953
|
-
const { diagram: e } = await import("./ganttDiagram-OWAHRB6G-
|
|
22953
|
+
const { diagram: e } = await import("./ganttDiagram-OWAHRB6G-DBcQE30n.js");
|
|
22954
22954
|
return { id: vb, diagram: e };
|
|
22955
22955
|
}, "loader"), mB = {
|
|
22956
22956
|
id: vb,
|
|
22957
22957
|
detector: pB,
|
|
22958
22958
|
loader: gB
|
|
22959
22959
|
}, yB = mB, wb = "info", bB = /* @__PURE__ */ m((e) => /^\s*info/.test(e), "detector"), xB = /* @__PURE__ */ m(async () => {
|
|
22960
|
-
const { diagram: e } = await import("./infoDiagram-STP46IZ2-
|
|
22960
|
+
const { diagram: e } = await import("./infoDiagram-STP46IZ2-BybsRpjy.js");
|
|
22961
22961
|
return { id: wb, diagram: e };
|
|
22962
22962
|
}, "loader"), vB = {
|
|
22963
22963
|
id: wb,
|
|
22964
22964
|
detector: bB,
|
|
22965
22965
|
loader: xB
|
|
22966
22966
|
}, Cb = "pie", wB = /* @__PURE__ */ m((e) => /^\s*pie/.test(e), "detector"), CB = /* @__PURE__ */ m(async () => {
|
|
22967
|
-
const { diagram: e } = await import("./pieDiagram-ADFJNKIX-
|
|
22967
|
+
const { diagram: e } = await import("./pieDiagram-ADFJNKIX-ExzVUSNO.js");
|
|
22968
22968
|
return { id: Cb, diagram: e };
|
|
22969
22969
|
}, "loader"), _B = {
|
|
22970
22970
|
id: Cb,
|
|
22971
22971
|
detector: wB,
|
|
22972
22972
|
loader: CB
|
|
22973
22973
|
}, _b = "quadrantChart", SB = /* @__PURE__ */ m((e) => /^\s*quadrantChart/.test(e), "detector"), kB = /* @__PURE__ */ m(async () => {
|
|
22974
|
-
const { diagram: e } = await import("./quadrantDiagram-LMRXKWRM-
|
|
22974
|
+
const { diagram: e } = await import("./quadrantDiagram-LMRXKWRM-DqMz0iQn.js");
|
|
22975
22975
|
return { id: _b, diagram: e };
|
|
22976
22976
|
}, "loader"), TB = {
|
|
22977
22977
|
id: _b,
|
|
22978
22978
|
detector: SB,
|
|
22979
22979
|
loader: kB
|
|
22980
22980
|
}, EB = TB, Sb = "xychart", LB = /* @__PURE__ */ m((e) => /^\s*xychart(-beta)?/.test(e), "detector"), AB = /* @__PURE__ */ m(async () => {
|
|
22981
|
-
const { diagram: e } = await import("./xychartDiagram-6GGTOJPD-
|
|
22981
|
+
const { diagram: e } = await import("./xychartDiagram-6GGTOJPD-CGq5lmkW.js");
|
|
22982
22982
|
return { id: Sb, diagram: e };
|
|
22983
22983
|
}, "loader"), $B = {
|
|
22984
22984
|
id: Sb,
|
|
22985
22985
|
detector: LB,
|
|
22986
22986
|
loader: AB
|
|
22987
22987
|
}, MB = $B, kb = "requirement", BB = /* @__PURE__ */ m((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), OB = /* @__PURE__ */ m(async () => {
|
|
22988
|
-
const { diagram: e } = await import("./requirementDiagram-4UW4RH46-
|
|
22988
|
+
const { diagram: e } = await import("./requirementDiagram-4UW4RH46-DykQlAiG.js");
|
|
22989
22989
|
return { id: kb, diagram: e };
|
|
22990
22990
|
}, "loader"), DB = {
|
|
22991
22991
|
id: kb,
|
|
22992
22992
|
detector: BB,
|
|
22993
22993
|
loader: OB
|
|
22994
22994
|
}, RB = DB, Tb = "sequence", FB = /* @__PURE__ */ m((e) => /^\s*sequenceDiagram/.test(e), "detector"), IB = /* @__PURE__ */ m(async () => {
|
|
22995
|
-
const { diagram: e } = await import("./sequenceDiagram-C3RYC4MD-
|
|
22995
|
+
const { diagram: e } = await import("./sequenceDiagram-C3RYC4MD-BuBk17RB.js");
|
|
22996
22996
|
return { id: Tb, diagram: e };
|
|
22997
22997
|
}, "loader"), NB = {
|
|
22998
22998
|
id: Tb,
|
|
22999
22999
|
detector: FB,
|
|
23000
23000
|
loader: IB
|
|
23001
23001
|
}, PB = NB, Eb = "class", jB = /* @__PURE__ */ m((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"), zB = /* @__PURE__ */ m(async () => {
|
|
23002
|
-
const { diagram: e } = await import("./classDiagram-KNZD7YFC-
|
|
23002
|
+
const { diagram: e } = await import("./classDiagram-KNZD7YFC-CDc6SE_W.js");
|
|
23003
23003
|
return { id: Eb, diagram: e };
|
|
23004
23004
|
}, "loader"), WB = {
|
|
23005
23005
|
id: Eb,
|
|
23006
23006
|
detector: jB,
|
|
23007
23007
|
loader: zB
|
|
23008
23008
|
}, qB = WB, Lb = "classDiagram", HB = /* @__PURE__ */ m((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"), UB = /* @__PURE__ */ m(async () => {
|
|
23009
|
-
const { diagram: e } = await import("./classDiagram-v2-RKCZMP56-
|
|
23009
|
+
const { diagram: e } = await import("./classDiagram-v2-RKCZMP56-CDc6SE_W.js");
|
|
23010
23010
|
return { id: Lb, diagram: e };
|
|
23011
23011
|
}, "loader"), YB = {
|
|
23012
23012
|
id: Lb,
|
|
23013
23013
|
detector: HB,
|
|
23014
23014
|
loader: UB
|
|
23015
23015
|
}, GB = YB, Ab = "state", VB = /* @__PURE__ */ m((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"), XB = /* @__PURE__ */ m(async () => {
|
|
23016
|
-
const { diagram: e } = await import("./stateDiagram-KXAO66HF-
|
|
23016
|
+
const { diagram: e } = await import("./stateDiagram-KXAO66HF-C_vpiwWi.js");
|
|
23017
23017
|
return { id: Ab, diagram: e };
|
|
23018
23018
|
}, "loader"), KB = {
|
|
23019
23019
|
id: Ab,
|
|
23020
23020
|
detector: VB,
|
|
23021
23021
|
loader: XB
|
|
23022
23022
|
}, ZB = KB, $b = "stateDiagram", QB = /* @__PURE__ */ m((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"), JB = /* @__PURE__ */ m(async () => {
|
|
23023
|
-
const { diagram: e } = await import("./stateDiagram-v2-UMBNRL4Z-
|
|
23023
|
+
const { diagram: e } = await import("./stateDiagram-v2-UMBNRL4Z-krzWPwwC.js");
|
|
23024
23024
|
return { id: $b, diagram: e };
|
|
23025
23025
|
}, "loader"), tO = {
|
|
23026
23026
|
id: $b,
|
|
23027
23027
|
detector: QB,
|
|
23028
23028
|
loader: JB
|
|
23029
23029
|
}, eO = tO, Mb = "journey", rO = /* @__PURE__ */ m((e) => /^\s*journey/.test(e), "detector"), iO = /* @__PURE__ */ m(async () => {
|
|
23030
|
-
const { diagram: e } = await import("./journeyDiagram-BIP6EPQ6-
|
|
23030
|
+
const { diagram: e } = await import("./journeyDiagram-BIP6EPQ6-aD-qICsN.js");
|
|
23031
23031
|
return { id: Mb, diagram: e };
|
|
23032
23032
|
}, "loader"), nO = {
|
|
23033
23033
|
id: Mb,
|
|
@@ -23068,70 +23068,70 @@ var gb = "c4", VM = /* @__PURE__ */ m((e) => /^\s*C4Context|C4Container|C4Compon
|
|
|
23068
23068
|
/^\s*flowchart-elk/.test(e) || // If a flowchart/graph diagram has their default renderer set to elk
|
|
23069
23069
|
/^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1
|
|
23070
23070
|
), "detector"), uO = /* @__PURE__ */ m(async () => {
|
|
23071
|
-
const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-
|
|
23071
|
+
const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-CseXgbf4.js");
|
|
23072
23072
|
return { id: Ob, diagram: e };
|
|
23073
23073
|
}, "loader"), fO = {
|
|
23074
23074
|
id: Ob,
|
|
23075
23075
|
detector: hO,
|
|
23076
23076
|
loader: uO
|
|
23077
23077
|
}, dO = fO, Db = "timeline", pO = /* @__PURE__ */ m((e) => /^\s*timeline/.test(e), "detector"), gO = /* @__PURE__ */ m(async () => {
|
|
23078
|
-
const { diagram: e } = await import("./timeline-definition-XQNQX7LJ-
|
|
23078
|
+
const { diagram: e } = await import("./timeline-definition-XQNQX7LJ-CbPKkQDk.js");
|
|
23079
23079
|
return { id: Db, diagram: e };
|
|
23080
23080
|
}, "loader"), mO = {
|
|
23081
23081
|
id: Db,
|
|
23082
23082
|
detector: pO,
|
|
23083
23083
|
loader: gO
|
|
23084
23084
|
}, yO = mO, Rb = "mindmap", bO = /* @__PURE__ */ m((e) => /^\s*mindmap/.test(e), "detector"), xO = /* @__PURE__ */ m(async () => {
|
|
23085
|
-
const { diagram: e } = await import("./mindmap-definition-Q6HEUPPD-
|
|
23085
|
+
const { diagram: e } = await import("./mindmap-definition-Q6HEUPPD-BdQ8h5vs.js");
|
|
23086
23086
|
return { id: Rb, diagram: e };
|
|
23087
23087
|
}, "loader"), vO = {
|
|
23088
23088
|
id: Rb,
|
|
23089
23089
|
detector: bO,
|
|
23090
23090
|
loader: xO
|
|
23091
23091
|
}, wO = vO, Fb = "kanban", CO = /* @__PURE__ */ m((e) => /^\s*kanban/.test(e), "detector"), _O = /* @__PURE__ */ m(async () => {
|
|
23092
|
-
const { diagram: e } = await import("./kanban-definition-6OIFK2YF-
|
|
23092
|
+
const { diagram: e } = await import("./kanban-definition-6OIFK2YF-C0EFe9JN.js");
|
|
23093
23093
|
return { id: Fb, diagram: e };
|
|
23094
23094
|
}, "loader"), SO = {
|
|
23095
23095
|
id: Fb,
|
|
23096
23096
|
detector: CO,
|
|
23097
23097
|
loader: _O
|
|
23098
23098
|
}, kO = SO, Ib = "sankey", TO = /* @__PURE__ */ m((e) => /^\s*sankey(-beta)?/.test(e), "detector"), EO = /* @__PURE__ */ m(async () => {
|
|
23099
|
-
const { diagram: e } = await import("./sankeyDiagram-GR3RE2ED-
|
|
23099
|
+
const { diagram: e } = await import("./sankeyDiagram-GR3RE2ED-RK19iv1u.js");
|
|
23100
23100
|
return { id: Ib, diagram: e };
|
|
23101
23101
|
}, "loader"), LO = {
|
|
23102
23102
|
id: Ib,
|
|
23103
23103
|
detector: TO,
|
|
23104
23104
|
loader: EO
|
|
23105
23105
|
}, AO = LO, Nb = "packet", $O = /* @__PURE__ */ m((e) => /^\s*packet(-beta)?/.test(e), "detector"), MO = /* @__PURE__ */ m(async () => {
|
|
23106
|
-
const { diagram: e } = await import("./diagram-S2PKOQOG-
|
|
23106
|
+
const { diagram: e } = await import("./diagram-S2PKOQOG-CGS6jThV.js");
|
|
23107
23107
|
return { id: Nb, diagram: e };
|
|
23108
23108
|
}, "loader"), BO = {
|
|
23109
23109
|
id: Nb,
|
|
23110
23110
|
detector: $O,
|
|
23111
23111
|
loader: MO
|
|
23112
23112
|
}, Pb = "radar", OO = /* @__PURE__ */ m((e) => /^\s*radar-beta/.test(e), "detector"), DO = /* @__PURE__ */ m(async () => {
|
|
23113
|
-
const { diagram: e } = await import("./diagram-QEK2KX5R-
|
|
23113
|
+
const { diagram: e } = await import("./diagram-QEK2KX5R-DDJzGT4e.js");
|
|
23114
23114
|
return { id: Pb, diagram: e };
|
|
23115
23115
|
}, "loader"), RO = {
|
|
23116
23116
|
id: Pb,
|
|
23117
23117
|
detector: OO,
|
|
23118
23118
|
loader: DO
|
|
23119
23119
|
}, jb = "block", FO = /* @__PURE__ */ m((e) => /^\s*block(-beta)?/.test(e), "detector"), IO = /* @__PURE__ */ m(async () => {
|
|
23120
|
-
const { diagram: e } = await import("./blockDiagram-QIGZ2CNN-
|
|
23120
|
+
const { diagram: e } = await import("./blockDiagram-QIGZ2CNN-CwpHAq1V.js");
|
|
23121
23121
|
return { id: jb, diagram: e };
|
|
23122
23122
|
}, "loader"), NO = {
|
|
23123
23123
|
id: jb,
|
|
23124
23124
|
detector: FO,
|
|
23125
23125
|
loader: IO
|
|
23126
23126
|
}, PO = NO, zb = "architecture", jO = /* @__PURE__ */ m((e) => /^\s*architecture/.test(e), "detector"), zO = /* @__PURE__ */ m(async () => {
|
|
23127
|
-
const { diagram: e } = await import("./architectureDiagram-W76B3OCA-
|
|
23127
|
+
const { diagram: e } = await import("./architectureDiagram-W76B3OCA-Bj05bf6s.js");
|
|
23128
23128
|
return { id: zb, diagram: e };
|
|
23129
23129
|
}, "loader"), WO = {
|
|
23130
23130
|
id: zb,
|
|
23131
23131
|
detector: jO,
|
|
23132
23132
|
loader: zO
|
|
23133
23133
|
}, qO = WO, Wb = "treemap", HO = /* @__PURE__ */ m((e) => /^\s*treemap/.test(e), "detector"), UO = /* @__PURE__ */ m(async () => {
|
|
23134
|
-
const { diagram: e } = await import("./diagram-N5W7TBWH-
|
|
23134
|
+
const { diagram: e } = await import("./diagram-N5W7TBWH-DgzCbhxK.js");
|
|
23135
23135
|
return { id: Wb, diagram: e };
|
|
23136
23136
|
}, "loader"), YO = {
|
|
23137
23137
|
id: Wb,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BFoNlVio.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e, l as s, H as o, e as i, I as g } from "./index-
|
|
2
|
-
import { p } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as e, l as s, H as o, e as i, I as g } from "./index-kj0EuvQM.js";
|
|
2
|
+
import { p } from "./mermaid-parser.core-Blpz4SbD.js";
|
|
3
3
|
var v = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
5
5
|
const a = await p("info", r);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CdZgX2Ma.cjs"),s=require("./mermaid-parser.core-BFoNlVio.cjs");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:o,db:d,renderer:c};exports.diagram=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-B512fbOf.cjs"),ft=require("./chunk-FMBD7UC4-gecPdlnv.cjs"),i=require("./index-CdZgX2Ma.cjs"),tt=require("./arc-Bg-chCuU.cjs");var H=function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?X="Parse error on line "+(E+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":X="Parse error on line "+(E+1)+": Unexpected "+(v==J?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(X,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(k.yytext),o.push(k.yylloc),l.push(T[1]),v=null,D=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(F,[x,D,E,A.yy,T[1],p,o].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),Q=b[l[l.length-2]][l[l.length-1]],l.push(Q);break;case 3:return!0}}return!0},"parse")},g=function(){var h={EOF:1,parseError:i.__name(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:i.__name(function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:i.__name(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:i.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { g as kt } from "./chunk-FMBD7UC4-
|
|
3
|
-
import { _ as n, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as G, e as $t, y as Mt } from "./index-
|
|
4
|
-
import { d as et } from "./arc-
|
|
1
|
+
import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-Ch4jqMvo.js";
|
|
2
|
+
import { g as kt } from "./chunk-FMBD7UC4-CB2wfBwS.js";
|
|
3
|
+
import { _ as n, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as G, e as $t, y as Mt } from "./index-kj0EuvQM.js";
|
|
4
|
+
import { d as et } from "./arc-B2BtxFI4.js";
|
|
5
5
|
var U = function() {
|
|
6
6
|
var t = /* @__PURE__ */ n(function(h, i, a, l) {
|
|
7
7
|
for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
|
package/dist/{kanban-definition-6OIFK2YF-4YIBsMQL.js → kanban-definition-6OIFK2YF-C0EFe9JN.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o, l as te, c as U, H as fe, ah as ye, ai as be, aj as me, V as _e, F as Y, i as F, t as Ee, J as ke, W as Se, X as ce, Y as le } from "./index-
|
|
2
|
-
import { g as Ne } from "./chunk-FMBD7UC4-
|
|
1
|
+
import { _ as o, l as te, c as U, H as fe, ah as ye, ai as be, aj as me, V as _e, F as Y, i as F, t as Ee, J as ke, W as Se, X as ce, Y as le } from "./index-kj0EuvQM.js";
|
|
2
|
+
import { g as Ne } from "./chunk-FMBD7UC4-CB2wfBwS.js";
|
|
3
3
|
var $ = function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(O, i, n, r) {
|
|
5
5
|
for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
|
package/dist/{kanban-definition-6OIFK2YF-__0ex79Z.cjs → kanban-definition-6OIFK2YF-Dxddoy_3.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CdZgX2Ma.cjs"),le=require("./chunk-FMBD7UC4-gecPdlnv.cjs");var J=function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],b=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],y=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,h,t,G){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:C,7:g,10:23,11:T},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:F}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:y,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:F}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:y,11:w}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:M}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],h=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var K=_.yylloc;t.push(K);var oe=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||_.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},H,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(H in G[P])this.terminals_[H]&&H>re&&z.push("'"+this.terminals_[H]+"'");_.showPosition?q="Parse error on line "+(U+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(U+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:_.match,token:this.terminals_[E]||E,line:_.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),h.push(_.yytext),t.push(_.yylloc),a.push(N[1]),E=null,ee=_.yyleng,c=_.yytext,U=_.yylineno,K=_.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=h[h.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,U,R.yy,N[1],h,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),h.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
package/dist/ketchup2.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CdZgX2Ma.cjs");exports.AppBar=e.AppBar;exports.Autocomplete=e.Autocomplete;exports.Button=e.Button;exports.ButtonList=e.ButtonList;exports.Checkbox=e.Checkbox;exports.Chips=e.Chips;exports.Combobox=e.Combobox;exports.DashList=e.DashList;exports.DataTableComponent=e.DataTableComponent;exports.DatePicker=e.DatePicker;exports.Drawer=e.Drawer;exports.Field=e.Field;exports.INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME=e.INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME;exports.Icon=e.Icon;exports.InputPanel=e.InputPanel;exports.MermaidChart=e.MermaidChart;exports.Password=e.Password;exports.TabBar=e.TabBar;exports.Textarea=e.Textarea;exports.Textfield=e.Textfield;exports.Toolbar=e.Toolbar;exports.Typography=e.Typography;exports.configurePaths=e.configurePaths;
|
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bE as b, bO as o, bP as e, bQ as t, bR as r, bS as T, bT as p, bF as i, bG as n, bU as P, bH as h, bI as l, bK as C, bV as M, bJ as N, bL as _, bW as c, bM as m, bX as u, bY as x, bN as A, bZ as B, b_ as D } from "./index-
|
|
1
|
+
import { bE as b, bO as o, bP as e, bQ as t, bR as r, bS as T, bT as p, bF as i, bG as n, bU as P, bH as h, bI as l, bK as C, bV as M, bJ as N, bL as _, bW as c, bM as m, bX as u, bY as x, bN as A, bZ as B, b_ as D } from "./index-kj0EuvQM.js";
|
|
2
2
|
export {
|
|
3
3
|
b as AppBar,
|
|
4
4
|
o as Autocomplete,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const E=require("./graph-D6Um4HxB.cjs"),f=require("./_baseUniq-QOx9ZFk8.cjs"),l=require("./_basePickBy-jbGD0zVt.cjs"),m=require("./index-DizklrOW.cjs");function he(e){return m.setToString(m.overRest(e,void 0,l.flatten),e+"")}var le=1,ve=4;function pe(e){return f.baseClone(e,le|ve)}function we(e,n){return e==null?e:m.baseFor(e,f.castFunction(n),m.keysIn)}function me(e,n){return e&&f.baseForOwn(e,f.castFunction(n))}function be(e,n){return e>n}function C(e,n){var r={};return n=f.baseIteratee(n),f.baseForOwn(e,function(a,t,o){m.baseAssignValue(r,t,n(a,t,o))}),r}function g(e){return e&&e.length?l.baseExtremum(e,m.identity,be):void 0}function j(e,n){return e&&e.length?l.baseExtremum(e,f.baseIteratee(n),l.baseLt):void 0}function Ee(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function ge(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,o=f.isSymbol(e),i=n!==void 0,u=n===null,d=n===n,c=f.isSymbol(n);if(!u&&!c&&!o&&e>n||o&&i&&d&&!u&&!c||a&&i&&d||!r&&d||!t)return 1;if(!a&&!o&&!c&&e<n||c&&r&&t&&!a&&!o||u&&r&&t||!i&&t||!d)return-1}return 0}function ye(e,n,r){for(var a=-1,t=e.criteria,o=n.criteria,i=t.length,u=r.length;++a<i;){var d=ge(t[a],o[a]);if(d){if(a>=u)return d;var c=r[a];return d*(c=="desc"?-1:1)}}return e.index-n.index}function ke(e,n,r){n.length?n=f.arrayMap(n,function(o){return m.isArray(o)?function(i){return f.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var a=-1;n=f.arrayMap(n,m.baseUnary(f.baseIteratee));var t=l.baseMap(e,function(o,i,u){var d=f.arrayMap(n,function(c){return c(o)});return{criteria:d,index:++a,value:o}});return Ee(t,function(o,i){return ye(o,i,r)})}function xe(e,n){return l.basePickBy(e,n,function(r,a){return f.hasIn(e,a)})}var P=he(function(e,n){return e==null?{}:xe(e,n)}),Oe=Math.ceil,Le=Math.max;function Ne(e,n,r,a){for(var t=-1,o=Le(Oe((n-e)/(r||1)),0),i=Array(o);o--;)i[++t]=e,e+=r;return i}function Pe(e){return function(n,r,a){return a&&typeof a!="number"&&m.isIterateeCall(n,r,a)&&(r=a=void 0),n=l.toFinite(n),r===void 0?(r=n,n=0):r=l.toFinite(r),a=a===void 0?n<r?1:-1:l.toFinite(a),Ne(n,r,a)}}var k=Pe(),N=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),ke(e,f.baseFlatten(n),[])}),Ce=0;function G(e){var n=++Ce;return f.toString(e)+n}function _e(e,n,r){for(var a=-1,t=e.length,o=n.length,i={};++a<t;){var u=a<o?n[a]:void 0;r(i,e[a],u)}return i}function Re(e,n){return _e(e||[],n||[],m.assignValue)}class Ie{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return U(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&U(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,Me)),a=a._prev;return"["+n.join(", ")+"]"}}function U(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Me(e,n){if(e!=="_next"&&e!=="_prev")return n}var Te=m.constant$1(1);function Fe(e,n){if(e.nodeCount()<=1)return[];var r=je(e,n||Te),a=Se(r.graph,r.buckets,r.zeroIdx);return l.flatten(l.map(a,function(t){return e.outEdges(t.v,t.w)}))}function Se(e,n,r){for(var a=[],t=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)R(e,n,r,i);for(;i=t.dequeue();)R(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(R(e,n,r,i,!0));break}}}return a}function R(e,n,r,a,t){var o=t?[]:void 0;return f.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&o.push({v:i.v,w:i.w}),d.out-=u,S(n,r,d)}),f.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,S(n,r,c)}),e.removeNode(a.v),o}function je(e,n){var r=new E.Graph,a=0,t=0;f.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var o=k(t+a+3).map(function(){return new Ie}),i=a+1;return f.forEach(r.nodes(),function(u){S(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function S(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Ge(e){var n=e.graph().acyclicer==="greedy"?Fe(e,r(e)):Ve(e);f.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,G("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function Ve(e){var n=[],r={},a={};function t(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,f.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):t(i.w)}),delete r[o])}return f.forEach(e.nodes(),t),n}function Ae(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function x(e,n,r,a){var t;do t=G(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function Be(e){var n=new E.Graph().setGraph(e.graph());return f.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function K(e){var n=new E.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return f.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function q(e,n){var r=e.x,a=e.y,t=n.x-r,o=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(o)*i>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,c=u):(t<0&&(i=-i),d=i,c=i*o/t),{x:r+d,y:a+c}}function _(e){var n=l.map(k(Q(e)+1),function(){return[]});return f.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;f.isUndefined(t)||(n[t][a.order]=r)}),n}function Ye(e){var n=l.min(l.map(e.nodes(),function(r){return e.node(r).rank}));f.forEach(e.nodes(),function(r){var a=e.node(r);l.has(a,"rank")&&(a.rank-=n)})}function Ue(e){var n=l.min(l.map(e.nodes(),function(o){return e.node(o).rank})),r=[];f.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var a=0,t=e.graph().nodeRankFactor;f.forEach(r,function(o,i){f.isUndefined(o)&&i%t!==0?--a:a&&f.forEach(o,function(u){e.node(u).rank+=a})})}function D(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),x(e,"border",t,n)}function Q(e){return g(l.map(e.nodes(),function(n){var r=e.node(n).rank;if(!f.isUndefined(r))return r}))}function qe(e,n){var r={lhs:[],rhs:[]};return f.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function De(e,n){return n()}function $e(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&f.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,i=t.maxRank+1;o<i;++o)$(e,"borderLeft","_bl",r,t,o),$(e,"borderRight","_br",r,t,o)}}f.forEach(e.children(),n)}function $(e,n,r,a,t,o){var i={width:0,height:0,rank:o,borderType:n},u=t[n][o-1],d=x(e,"border",i,r);t[n][o]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function We(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ee(e)}function ze(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Xe(e),(n==="lr"||n==="rl")&&(He(e),ee(e))}function ee(e){f.forEach(e.nodes(),function(n){W(e.node(n))}),f.forEach(e.edges(),function(n){W(e.edge(n))})}function W(e){var n=e.width;e.width=e.height,e.height=n}function Xe(e){f.forEach(e.nodes(),function(n){I(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,I),Object.prototype.hasOwnProperty.call(r,"y")&&I(r)})}function I(e){e.y=-e.y}function He(e){f.forEach(e.nodes(),function(n){M(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,M),Object.prototype.hasOwnProperty.call(r,"x")&&M(r)})}function M(e){var n=e.x;e.x=e.y,e.y=n}function Je(e){e.graph().dummyChains=[],f.forEach(e.edges(),function(n){Ze(e,n)})}function Ze(e,n){var r=n.v,a=e.node(r).rank,t=n.w,o=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(o!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<o;++h,++a)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},s=x(e,"edge",c,"_d"),a===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:u.weight},i)}}function Ke(e){f.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function V(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var o=l.min(l.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),t.rank=o}f.forEach(e.sources(),r)}function L(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ne(e){var n=new E.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,o;Qe(n,e)<a;)t=en(n,e),o=n.hasNode(t.v)?L(e,t):-L(e,t),nn(n,e,o);return n}function Qe(e,n){function r(a){f.forEach(n.nodeEdges(a),function(t){var o=t.v,i=a===o?t.w:o;!e.hasNode(i)&&!L(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return f.forEach(e.nodes(),r),e.nodeCount()}function en(e,n){return j(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return L(n,r)})}function nn(e,n,r){f.forEach(e.nodes(),function(a){n.node(a).rank+=r})}function rn(){}rn.prototype=new Error;function re(e,n,r){m.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],o={};return f.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ae(e,i,r==="post",o,a,t)}),t}function ae(e,n,r,a,t,o){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||o.push(n),f.forEach(t(n),function(i){ae(e,i,r,a,t,o)}),r&&o.push(n))}function an(e,n){return re(e,n,"post")}function tn(e,n){return re(e,n,"pre")}y.initLowLimValues=B;y.initCutValues=A;y.calcCutValue=te;y.leaveEdge=ie;y.enterEdge=ue;y.exchangeEdges=fe;function y(e){e=Be(e),V(e);var n=ne(e);B(n),A(n,e);for(var r,a;r=ie(n);)a=ue(n,e,r),fe(n,e,r,a)}function A(e,n){var r=an(e,e.nodes());r=r.slice(0,r.length-1),f.forEach(r,function(a){on(e,n,a)})}function on(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=te(e,n,r)}function te(e,n,r){var a=e.node(r),t=a.parent,o=!0,i=n.edge(r,t),u=0;return i||(o=!1,i=n.edge(t,r)),u=i.weight,f.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===o,v=n.edge(d).weight;if(u+=h?v:-v,fn(e,r,s)){var p=e.edge(r,s).cutvalue;u+=h?-p:p}}}),u}function B(e,n){arguments.length<2&&(n=e.nodes()[0]),oe(e,{},1,n)}function oe(e,n,r,a,t){var o=r,i=e.node(a);return n[a]=!0,f.forEach(e.neighbors(a),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=oe(e,n,r,u,a))}),i.low=o,i.lim=r++,t?i.parent=t:delete i.parent,r}function ie(e){return l.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ue(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var o=e.node(a),i=e.node(t),u=o,d=!1;o.lim>i.lim&&(u=i,d=!0);var c=f.filter(n.edges(),function(s){return d===z(e,e.node(s.v),u)&&d!==z(e,e.node(s.w),u)});return j(c,function(s){return L(n,s)})}function fe(e,n,r,a){var t=r.v,o=r.w;e.removeEdge(t,o),e.setEdge(a.v,a.w,{}),B(e),A(e,n),un(e,n)}function un(e,n){var r=l.find(e.nodes(),function(t){return!n.node(t).parent}),a=tn(e,r);a=a.slice(1),f.forEach(a,function(t){var o=e.node(t).parent,i=n.edge(t,o),u=!1;i||(i=n.edge(o,t),u=!0),n.node(t).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function fn(e,n,r){return e.hasEdge(n,r)}function z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function dn(e){switch(e.graph().ranker){case"network-simplex":X(e);break;case"tight-tree":sn(e);break;case"longest-path":cn(e);break;default:X(e)}}var cn=V;function sn(e){V(e),ne(e)}function X(e){y(e)}function hn(e){var n=x(e,"root",{},"_root"),r=ln(e),a=g(f.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,f.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var o=vn(e)+1;f.forEach(e.children(),function(i){de(e,n,t,o,a,r,i)}),e.graph().nodeRankFactor=t}function de(e,n,r,a,t,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=D(e,"_bt"),c=D(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,f.forEach(u,function(h){de(e,n,r,a,t,o,h);var v=e.node(h),p=v.borderTop?v.borderTop:h,w=v.borderBottom?v.borderBottom:h,b=v.borderTop?a:2*a,O=p!==w?1:t-o[i]+1;e.setEdge(d,p,{weight:b,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:b,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+o[i]})}function ln(e){var n={};function r(a,t){var o=e.children(a);o&&o.length&&f.forEach(o,function(i){r(i,t+1)}),n[a]=t}return f.forEach(e.children(),function(a){r(a,1)}),n}function vn(e){return f.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function pn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function wn(e,n,r){var a={},t;f.forEach(r,function(o){for(var i=e.parent(o),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function mn(e,n,r){var a=bn(e),t=new E.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return f.forEach(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(o),t.setParent(o,u||a),f.forEach(e[r](o),function(d){var c=d.v===o?d.w:d.v,s=t.edge(c,o),h=f.isUndefined(s)?0:s.weight;t.setEdge(c,o,{weight:e.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&t.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function bn(e){for(var n;e.hasNode(n=G("_root")););return n}function En(e,n){for(var r=0,a=1;a<n.length;++a)r+=gn(e,n[a-1],n[a]);return r}function gn(e,n,r){for(var a=Re(r,l.map(r,function(c,s){return s})),t=l.flatten(l.map(n,function(c){return N(l.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=l.map(new Array(i),function(){return 0}),d=0;return f.forEach(t.forEach(function(c){var s=c.pos+o;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function yn(e){var n={},r=f.filter(e.nodes(),function(u){return!e.children(u).length}),a=g(l.map(r,function(u){return e.node(u).rank})),t=l.map(k(a+1),function(){return[]});function o(u){if(!l.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),f.forEach(e.successors(u),o)}}var i=N(r,function(u){return e.node(u).rank});return f.forEach(i,o),t}function kn(e,n){return l.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=f.reduce(a,function(o,i){var u=e.edge(i),d=e.node(i.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function xn(e,n){var r={};f.forEach(e,function(t,o){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};f.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f.forEach(n.edges(),function(t){var o=r[t.v],i=r[t.w];!f.isUndefined(o)&&!f.isUndefined(i)&&(i.indegree++,o.out.push(r[t.w]))});var a=f.filter(r,function(t){return!t.indegree});return On(a)}function On(e){var n=[];function r(o){return function(i){i.merged||(f.isUndefined(i.barycenter)||f.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&Ln(o,i)}}function a(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),f.forEach(t.in.reverse(),r(t)),f.forEach(t.out,a(t))}return l.map(f.filter(n,function(o){return!o.merged}),function(o){return P(o,["vs","i","barycenter","weight"])})}function Ln(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function Nn(e,n){var r=qe(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=N(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,d=0;a.sort(Pn(!!n)),d=H(o,t,d),f.forEach(a,function(s){d+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=H(o,t,d)});var c={vs:l.flatten(o)};return u&&(c.barycenter=i/u,c.weight=u),c}function H(e,n,r){for(var a;n.length&&(a=l.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function Pn(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ce(e,n,r,a){var t=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};i&&(t=f.filter(t,function(w){return w!==i&&w!==u}));var c=kn(e,t);f.forEach(c,function(w){if(e.children(w.v).length){var b=ce(e,w.v,r,a);d[w.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&_n(w,b)}});var s=xn(c,r);Cn(s,d);var h=Nn(s,a);if(i&&(h.vs=l.flatten([i,h.vs,u]),e.predecessors(i).length)){var v=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+p.order)/(h.weight+2),h.weight+=2}return h}function Cn(e,n){f.forEach(e,function(r){r.vs=l.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function _n(e,n){f.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Rn(e){var n=Q(e),r=J(e,k(1,n+1),"inEdges"),a=J(e,k(n-1,-1,-1),"outEdges"),t=yn(e);Z(e,t);for(var o=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){In(u%2?r:a,u%4>=2),t=_(e);var c=En(e,t);c<o&&(d=0,i=pe(t),o=c)}Z(e,i)}function J(e,n,r){return l.map(n,function(a){return mn(e,a,r)})}function In(e,n){var r=new E.Graph;f.forEach(e,function(a){var t=a.graph().root,o=ce(a,t,r,n);f.forEach(o.vs,function(i,u){a.node(i).order=u}),wn(a,r,o.vs)})}function Z(e,n){f.forEach(n,function(r){f.forEach(r,function(a,t){e.node(a).order=t})})}function Mn(e){var n=Fn(e);f.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,o=Tn(e,n,t.v,t.w),i=o.path,u=o.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function Tn(e,n,r,a){var t=[],o=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)o.push(d);return{path:t.concat(o.reverse()),lca:c}}function Fn(e){var n={},r=0;function a(t){var o=r;f.forEach(e.children(t),a),n[t]={low:o,lim:r++}}return f.forEach(e.children(),a),n}function Sn(e,n){var r={};function a(t,o){var i=0,u=0,d=t.length,c=l.last(o);return f.forEach(o,function(s,h){var v=Gn(e,s),p=v?e.node(v).order:d;(v||s===c)&&(f.forEach(o.slice(u,h+1),function(w){f.forEach(e.predecessors(w),function(b){var O=e.node(b),Y=O.order;(Y<i||p<Y)&&!(O.dummy&&e.node(w).dummy)&&se(r,b,w)})}),u=h+1,i=p)}),o}return f.reduce(n,a),r}function jn(e,n){var r={};function a(o,i,u,d,c){var s;f.forEach(k(i,u),function(h){s=o[h],e.node(s).dummy&&f.forEach(e.predecessors(s),function(v){var p=e.node(v);p.dummy&&(p.order<d||p.order>c)&&se(r,v,s)})})}function t(o,i){var u=-1,d,c=0;return f.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var v=e.predecessors(s);v.length&&(d=e.node(v[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,o.length)}),i}return f.reduce(n,t),r}function Gn(e,n){if(e.node(n).dummy)return l.find(e.predecessors(n),function(r){return e.node(r).dummy})}function se(e,n,r){if(n>r){var a=n;n=r,r=a}var t=e[n];t||(e[n]=t={}),t[r]=!0}function Vn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function An(e,n,r,a){var t={},o={},i={};return f.forEach(n,function(u){f.forEach(u,function(d,c){t[d]=d,o[d]=d,i[d]=c})}),f.forEach(n,function(u){var d=-1;f.forEach(u,function(c){var s=a(c);if(s.length){s=N(s,function(b){return i[b]});for(var h=(s.length-1)/2,v=Math.floor(h),p=Math.ceil(h);v<=p;++v){var w=s[v];o[c]===c&&d<i[w]&&!Vn(r,c,w)&&(o[w]=c,o[c]=t[c]=t[w],d=i[w])}}})}),{root:t,align:o}}function Bn(e,n,r,a,t){var o={},i=Yn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,v){for(var p=i.nodes(),w=p.pop(),b={};w;)b[w]?h(w):(b[w]=!0,p.push(w),p=p.concat(v(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(v,p){return Math.max(v,o[p.v]+i.edge(p))},0)}function s(h){var v=i.outEdges(h).reduce(function(w,b){return Math.min(w,o[b.w]-i.edge(b))},Number.POSITIVE_INFINITY),p=e.node(h);v!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),f.forEach(a,function(h){o[h]=o[r[h]]}),o}function Yn(e,n,r,a){var t=new E.Graph,o=e.graph(),i=Wn(o.nodesep,o.edgesep,a);return f.forEach(n,function(u){var d;f.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],v=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),v||0))}d=c})}),t}function Un(e,n){return j(f.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return we(r,function(o,i){var u=zn(e,i)/2;a=Math.max(o+u,a),t=Math.min(o-u,t)}),a-t})}function qn(e,n){var r=f.values(n),a=l.min(r),t=g(r);f.forEach(["u","d"],function(o){f.forEach(["l","r"],function(i){var u=o+i,d=e[u],c;if(d!==n){var s=f.values(d);c=i==="l"?a-l.min(s):t-g(s),c&&(e[u]=C(d,function(h){return h+c}))}})})}function Dn(e,n){return C(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=N(l.map(e,a));return(t[1]+t[2])/2})}function $n(e){var n=_(e),r=m.merge(Sn(e,n),jn(e,n)),a={},t;f.forEach(["u","d"],function(i){t=i==="u"?n:f.values(n).reverse(),f.forEach(["l","r"],function(u){u==="r"&&(t=l.map(t,function(h){return f.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=An(e,t,r,d),s=Bn(e,t,c.root,c.align,u==="r");u==="r"&&(s=C(s,function(h){return-h})),a[i+u]=s})});var o=Un(e,a);return qn(a,o),Dn(a,e.graph().align)}function Wn(e,n,r){return function(a,t,o){var i=a.node(t),u=a.node(o),d=0,c;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function zn(e,n){return e.node(n).width}function Xn(e){e=K(e),Hn(e),me($n(e),function(n,r){e.node(r).x=n})}function Hn(e){var n=_(e),r=e.graph().ranksep,a=0;f.forEach(n,function(t){var o=g(l.map(t,function(i){return e.node(i).height}));f.forEach(t,function(i){e.node(i).y=a+o/2}),a+=o+r})}function Jn(e,n){var r=De;r("layout",()=>{var a=r(" buildLayoutGraph",()=>ur(e));r(" runLayout",()=>Zn(a,r)),r(" updateInputGraph",()=>Kn(e,a))})}function Zn(e,n){n(" makeSpaceForEdgeLabels",()=>fr(e)),n(" removeSelfEdges",()=>mr(e)),n(" acyclic",()=>Ge(e)),n(" nestingGraph.run",()=>hn(e)),n(" rank",()=>dn(K(e))),n(" injectEdgeLabelProxies",()=>dr(e)),n(" removeEmptyRanks",()=>Ue(e)),n(" nestingGraph.cleanup",()=>pn(e)),n(" normalizeRanks",()=>Ye(e)),n(" assignRankMinMax",()=>cr(e)),n(" removeEdgeLabelProxies",()=>sr(e)),n(" normalize.run",()=>Je(e)),n(" parentDummyChains",()=>Mn(e)),n(" addBorderSegments",()=>$e(e)),n(" order",()=>Rn(e)),n(" insertSelfEdges",()=>br(e)),n(" adjustCoordinateSystem",()=>We(e)),n(" position",()=>Xn(e)),n(" positionSelfEdges",()=>Er(e)),n(" removeBorderNodes",()=>wr(e)),n(" normalize.undo",()=>Ke(e)),n(" fixupEdgeLabelCoords",()=>vr(e)),n(" undoCoordinateSystem",()=>ze(e)),n(" translateGraph",()=>hr(e)),n(" assignNodeIntersects",()=>lr(e)),n(" reversePoints",()=>pr(e)),n(" acyclic.undo",()=>Ae(e))}function Kn(e,n){f.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),f.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Qn=["nodesep","edgesep","ranksep","marginx","marginy"],er={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nr=["acyclicer","ranker","rankdir","align"],rr=["width","height"],ar={width:0,height:0},tr=["minlen","weight","width","height","labeloffset"],or={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},ir=["labelpos"];function ur(e){var n=new E.Graph({multigraph:!0,compound:!0}),r=F(e.graph());return n.setGraph(m.merge({},er,T(r,Qn),P(r,nr))),f.forEach(e.nodes(),function(a){var t=F(e.node(a));n.setNode(a,l.defaults(T(t,rr),ar)),n.setParent(a,e.parent(a))}),f.forEach(e.edges(),function(a){var t=F(e.edge(a));n.setEdge(a,m.merge({},or,T(t,tr),P(t,ir)))}),n}function fr(e){var n=e.graph();n.ranksep/=2,f.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function dr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),o={rank:(t.rank-a.rank)/2+a.rank,e:n};x(e,"edge-proxy",o,"_ep")}})}function cr(e){var n=0;f.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=g(n,a.maxRank))}),e.graph().maxRank=n}function sr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function hr(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function d(c){var s=c.x,h=c.y,v=c.width,p=c.height;n=Math.min(n,s-v/2),r=Math.max(r,s+v/2),a=Math.min(a,h-p/2),t=Math.max(t,h+p/2)}f.forEach(e.nodes(),function(c){d(e.node(c))}),f.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),n-=i,a-=u,f.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),f.forEach(e.edges(),function(c){var s=e.edge(c);f.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),o.width=r-n+i,o.height=t-a+u}function lr(e){f.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=t,i=a),r.points.unshift(q(a,o)),r.points.push(q(t,i))})}function vr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function pr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function wr(e){f.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),o=e.node(l.last(r.borderLeft)),i=e.node(l.last(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(t.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),f.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function mr(e){f.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function br(e){var n=_(e);f.forEach(n,function(r){var a=0;f.forEach(r,function(t,o){var i=e.node(t);i.order=o+a,f.forEach(i.selfEdges,function(u){x(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function Er(e){f.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,o=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:o-u},{x:t+5*i/6,y:o-u},{x:t+i,y:o},{x:t+5*i/6,y:o+u},{x:t+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function T(e,n){return C(P(e,n),Number)}function F(e){var n={};return f.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Jn;
|
|
1
|
+
"use strict";const E=require("./graph-v1PSEGdd.cjs"),f=require("./_baseUniq-bHS4L6X9.cjs"),l=require("./_basePickBy-Ca1ngxe-.cjs"),m=require("./index-CdZgX2Ma.cjs");function he(e){return m.setToString(m.overRest(e,void 0,l.flatten),e+"")}var le=1,ve=4;function pe(e){return f.baseClone(e,le|ve)}function we(e,n){return e==null?e:m.baseFor(e,f.castFunction(n),m.keysIn)}function me(e,n){return e&&f.baseForOwn(e,f.castFunction(n))}function be(e,n){return e>n}function C(e,n){var r={};return n=f.baseIteratee(n),f.baseForOwn(e,function(a,t,o){m.baseAssignValue(r,t,n(a,t,o))}),r}function g(e){return e&&e.length?l.baseExtremum(e,m.identity,be):void 0}function j(e,n){return e&&e.length?l.baseExtremum(e,f.baseIteratee(n),l.baseLt):void 0}function Ee(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function ge(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,o=f.isSymbol(e),i=n!==void 0,u=n===null,d=n===n,c=f.isSymbol(n);if(!u&&!c&&!o&&e>n||o&&i&&d&&!u&&!c||a&&i&&d||!r&&d||!t)return 1;if(!a&&!o&&!c&&e<n||c&&r&&t&&!a&&!o||u&&r&&t||!i&&t||!d)return-1}return 0}function ye(e,n,r){for(var a=-1,t=e.criteria,o=n.criteria,i=t.length,u=r.length;++a<i;){var d=ge(t[a],o[a]);if(d){if(a>=u)return d;var c=r[a];return d*(c=="desc"?-1:1)}}return e.index-n.index}function ke(e,n,r){n.length?n=f.arrayMap(n,function(o){return m.isArray(o)?function(i){return f.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var a=-1;n=f.arrayMap(n,m.baseUnary(f.baseIteratee));var t=l.baseMap(e,function(o,i,u){var d=f.arrayMap(n,function(c){return c(o)});return{criteria:d,index:++a,value:o}});return Ee(t,function(o,i){return ye(o,i,r)})}function xe(e,n){return l.basePickBy(e,n,function(r,a){return f.hasIn(e,a)})}var P=he(function(e,n){return e==null?{}:xe(e,n)}),Oe=Math.ceil,Le=Math.max;function Ne(e,n,r,a){for(var t=-1,o=Le(Oe((n-e)/(r||1)),0),i=Array(o);o--;)i[++t]=e,e+=r;return i}function Pe(e){return function(n,r,a){return a&&typeof a!="number"&&m.isIterateeCall(n,r,a)&&(r=a=void 0),n=l.toFinite(n),r===void 0?(r=n,n=0):r=l.toFinite(r),a=a===void 0?n<r?1:-1:l.toFinite(a),Ne(n,r,a)}}var k=Pe(),N=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),ke(e,f.baseFlatten(n),[])}),Ce=0;function G(e){var n=++Ce;return f.toString(e)+n}function _e(e,n,r){for(var a=-1,t=e.length,o=n.length,i={};++a<t;){var u=a<o?n[a]:void 0;r(i,e[a],u)}return i}function Re(e,n){return _e(e||[],n||[],m.assignValue)}class Ie{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return U(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&U(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,Me)),a=a._prev;return"["+n.join(", ")+"]"}}function U(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Me(e,n){if(e!=="_next"&&e!=="_prev")return n}var Te=m.constant$1(1);function Fe(e,n){if(e.nodeCount()<=1)return[];var r=je(e,n||Te),a=Se(r.graph,r.buckets,r.zeroIdx);return l.flatten(l.map(a,function(t){return e.outEdges(t.v,t.w)}))}function Se(e,n,r){for(var a=[],t=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)R(e,n,r,i);for(;i=t.dequeue();)R(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(R(e,n,r,i,!0));break}}}return a}function R(e,n,r,a,t){var o=t?[]:void 0;return f.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&o.push({v:i.v,w:i.w}),d.out-=u,S(n,r,d)}),f.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,S(n,r,c)}),e.removeNode(a.v),o}function je(e,n){var r=new E.Graph,a=0,t=0;f.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var o=k(t+a+3).map(function(){return new Ie}),i=a+1;return f.forEach(r.nodes(),function(u){S(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function S(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Ge(e){var n=e.graph().acyclicer==="greedy"?Fe(e,r(e)):Ve(e);f.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,G("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function Ve(e){var n=[],r={},a={};function t(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,f.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):t(i.w)}),delete r[o])}return f.forEach(e.nodes(),t),n}function Ae(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function x(e,n,r,a){var t;do t=G(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function Be(e){var n=new E.Graph().setGraph(e.graph());return f.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function K(e){var n=new E.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return f.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function q(e,n){var r=e.x,a=e.y,t=n.x-r,o=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(o)*i>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,c=u):(t<0&&(i=-i),d=i,c=i*o/t),{x:r+d,y:a+c}}function _(e){var n=l.map(k(Q(e)+1),function(){return[]});return f.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;f.isUndefined(t)||(n[t][a.order]=r)}),n}function Ye(e){var n=l.min(l.map(e.nodes(),function(r){return e.node(r).rank}));f.forEach(e.nodes(),function(r){var a=e.node(r);l.has(a,"rank")&&(a.rank-=n)})}function Ue(e){var n=l.min(l.map(e.nodes(),function(o){return e.node(o).rank})),r=[];f.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var a=0,t=e.graph().nodeRankFactor;f.forEach(r,function(o,i){f.isUndefined(o)&&i%t!==0?--a:a&&f.forEach(o,function(u){e.node(u).rank+=a})})}function D(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),x(e,"border",t,n)}function Q(e){return g(l.map(e.nodes(),function(n){var r=e.node(n).rank;if(!f.isUndefined(r))return r}))}function qe(e,n){var r={lhs:[],rhs:[]};return f.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function De(e,n){return n()}function $e(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&f.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,i=t.maxRank+1;o<i;++o)$(e,"borderLeft","_bl",r,t,o),$(e,"borderRight","_br",r,t,o)}}f.forEach(e.children(),n)}function $(e,n,r,a,t,o){var i={width:0,height:0,rank:o,borderType:n},u=t[n][o-1],d=x(e,"border",i,r);t[n][o]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function We(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ee(e)}function ze(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Xe(e),(n==="lr"||n==="rl")&&(He(e),ee(e))}function ee(e){f.forEach(e.nodes(),function(n){W(e.node(n))}),f.forEach(e.edges(),function(n){W(e.edge(n))})}function W(e){var n=e.width;e.width=e.height,e.height=n}function Xe(e){f.forEach(e.nodes(),function(n){I(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,I),Object.prototype.hasOwnProperty.call(r,"y")&&I(r)})}function I(e){e.y=-e.y}function He(e){f.forEach(e.nodes(),function(n){M(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,M),Object.prototype.hasOwnProperty.call(r,"x")&&M(r)})}function M(e){var n=e.x;e.x=e.y,e.y=n}function Je(e){e.graph().dummyChains=[],f.forEach(e.edges(),function(n){Ze(e,n)})}function Ze(e,n){var r=n.v,a=e.node(r).rank,t=n.w,o=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(o!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<o;++h,++a)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},s=x(e,"edge",c,"_d"),a===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:u.weight},i)}}function Ke(e){f.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function V(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var o=l.min(l.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),t.rank=o}f.forEach(e.sources(),r)}function L(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ne(e){var n=new E.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,o;Qe(n,e)<a;)t=en(n,e),o=n.hasNode(t.v)?L(e,t):-L(e,t),nn(n,e,o);return n}function Qe(e,n){function r(a){f.forEach(n.nodeEdges(a),function(t){var o=t.v,i=a===o?t.w:o;!e.hasNode(i)&&!L(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return f.forEach(e.nodes(),r),e.nodeCount()}function en(e,n){return j(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return L(n,r)})}function nn(e,n,r){f.forEach(e.nodes(),function(a){n.node(a).rank+=r})}function rn(){}rn.prototype=new Error;function re(e,n,r){m.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],o={};return f.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ae(e,i,r==="post",o,a,t)}),t}function ae(e,n,r,a,t,o){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||o.push(n),f.forEach(t(n),function(i){ae(e,i,r,a,t,o)}),r&&o.push(n))}function an(e,n){return re(e,n,"post")}function tn(e,n){return re(e,n,"pre")}y.initLowLimValues=B;y.initCutValues=A;y.calcCutValue=te;y.leaveEdge=ie;y.enterEdge=ue;y.exchangeEdges=fe;function y(e){e=Be(e),V(e);var n=ne(e);B(n),A(n,e);for(var r,a;r=ie(n);)a=ue(n,e,r),fe(n,e,r,a)}function A(e,n){var r=an(e,e.nodes());r=r.slice(0,r.length-1),f.forEach(r,function(a){on(e,n,a)})}function on(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=te(e,n,r)}function te(e,n,r){var a=e.node(r),t=a.parent,o=!0,i=n.edge(r,t),u=0;return i||(o=!1,i=n.edge(t,r)),u=i.weight,f.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===o,v=n.edge(d).weight;if(u+=h?v:-v,fn(e,r,s)){var p=e.edge(r,s).cutvalue;u+=h?-p:p}}}),u}function B(e,n){arguments.length<2&&(n=e.nodes()[0]),oe(e,{},1,n)}function oe(e,n,r,a,t){var o=r,i=e.node(a);return n[a]=!0,f.forEach(e.neighbors(a),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=oe(e,n,r,u,a))}),i.low=o,i.lim=r++,t?i.parent=t:delete i.parent,r}function ie(e){return l.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ue(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var o=e.node(a),i=e.node(t),u=o,d=!1;o.lim>i.lim&&(u=i,d=!0);var c=f.filter(n.edges(),function(s){return d===z(e,e.node(s.v),u)&&d!==z(e,e.node(s.w),u)});return j(c,function(s){return L(n,s)})}function fe(e,n,r,a){var t=r.v,o=r.w;e.removeEdge(t,o),e.setEdge(a.v,a.w,{}),B(e),A(e,n),un(e,n)}function un(e,n){var r=l.find(e.nodes(),function(t){return!n.node(t).parent}),a=tn(e,r);a=a.slice(1),f.forEach(a,function(t){var o=e.node(t).parent,i=n.edge(t,o),u=!1;i||(i=n.edge(o,t),u=!0),n.node(t).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function fn(e,n,r){return e.hasEdge(n,r)}function z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function dn(e){switch(e.graph().ranker){case"network-simplex":X(e);break;case"tight-tree":sn(e);break;case"longest-path":cn(e);break;default:X(e)}}var cn=V;function sn(e){V(e),ne(e)}function X(e){y(e)}function hn(e){var n=x(e,"root",{},"_root"),r=ln(e),a=g(f.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,f.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var o=vn(e)+1;f.forEach(e.children(),function(i){de(e,n,t,o,a,r,i)}),e.graph().nodeRankFactor=t}function de(e,n,r,a,t,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=D(e,"_bt"),c=D(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,f.forEach(u,function(h){de(e,n,r,a,t,o,h);var v=e.node(h),p=v.borderTop?v.borderTop:h,w=v.borderBottom?v.borderBottom:h,b=v.borderTop?a:2*a,O=p!==w?1:t-o[i]+1;e.setEdge(d,p,{weight:b,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:b,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+o[i]})}function ln(e){var n={};function r(a,t){var o=e.children(a);o&&o.length&&f.forEach(o,function(i){r(i,t+1)}),n[a]=t}return f.forEach(e.children(),function(a){r(a,1)}),n}function vn(e){return f.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function pn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function wn(e,n,r){var a={},t;f.forEach(r,function(o){for(var i=e.parent(o),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function mn(e,n,r){var a=bn(e),t=new E.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return f.forEach(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(o),t.setParent(o,u||a),f.forEach(e[r](o),function(d){var c=d.v===o?d.w:d.v,s=t.edge(c,o),h=f.isUndefined(s)?0:s.weight;t.setEdge(c,o,{weight:e.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&t.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function bn(e){for(var n;e.hasNode(n=G("_root")););return n}function En(e,n){for(var r=0,a=1;a<n.length;++a)r+=gn(e,n[a-1],n[a]);return r}function gn(e,n,r){for(var a=Re(r,l.map(r,function(c,s){return s})),t=l.flatten(l.map(n,function(c){return N(l.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=l.map(new Array(i),function(){return 0}),d=0;return f.forEach(t.forEach(function(c){var s=c.pos+o;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function yn(e){var n={},r=f.filter(e.nodes(),function(u){return!e.children(u).length}),a=g(l.map(r,function(u){return e.node(u).rank})),t=l.map(k(a+1),function(){return[]});function o(u){if(!l.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),f.forEach(e.successors(u),o)}}var i=N(r,function(u){return e.node(u).rank});return f.forEach(i,o),t}function kn(e,n){return l.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=f.reduce(a,function(o,i){var u=e.edge(i),d=e.node(i.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function xn(e,n){var r={};f.forEach(e,function(t,o){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};f.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f.forEach(n.edges(),function(t){var o=r[t.v],i=r[t.w];!f.isUndefined(o)&&!f.isUndefined(i)&&(i.indegree++,o.out.push(r[t.w]))});var a=f.filter(r,function(t){return!t.indegree});return On(a)}function On(e){var n=[];function r(o){return function(i){i.merged||(f.isUndefined(i.barycenter)||f.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&Ln(o,i)}}function a(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),f.forEach(t.in.reverse(),r(t)),f.forEach(t.out,a(t))}return l.map(f.filter(n,function(o){return!o.merged}),function(o){return P(o,["vs","i","barycenter","weight"])})}function Ln(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function Nn(e,n){var r=qe(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=N(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,d=0;a.sort(Pn(!!n)),d=H(o,t,d),f.forEach(a,function(s){d+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=H(o,t,d)});var c={vs:l.flatten(o)};return u&&(c.barycenter=i/u,c.weight=u),c}function H(e,n,r){for(var a;n.length&&(a=l.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function Pn(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ce(e,n,r,a){var t=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};i&&(t=f.filter(t,function(w){return w!==i&&w!==u}));var c=kn(e,t);f.forEach(c,function(w){if(e.children(w.v).length){var b=ce(e,w.v,r,a);d[w.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&_n(w,b)}});var s=xn(c,r);Cn(s,d);var h=Nn(s,a);if(i&&(h.vs=l.flatten([i,h.vs,u]),e.predecessors(i).length)){var v=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+p.order)/(h.weight+2),h.weight+=2}return h}function Cn(e,n){f.forEach(e,function(r){r.vs=l.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function _n(e,n){f.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Rn(e){var n=Q(e),r=J(e,k(1,n+1),"inEdges"),a=J(e,k(n-1,-1,-1),"outEdges"),t=yn(e);Z(e,t);for(var o=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){In(u%2?r:a,u%4>=2),t=_(e);var c=En(e,t);c<o&&(d=0,i=pe(t),o=c)}Z(e,i)}function J(e,n,r){return l.map(n,function(a){return mn(e,a,r)})}function In(e,n){var r=new E.Graph;f.forEach(e,function(a){var t=a.graph().root,o=ce(a,t,r,n);f.forEach(o.vs,function(i,u){a.node(i).order=u}),wn(a,r,o.vs)})}function Z(e,n){f.forEach(n,function(r){f.forEach(r,function(a,t){e.node(a).order=t})})}function Mn(e){var n=Fn(e);f.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,o=Tn(e,n,t.v,t.w),i=o.path,u=o.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function Tn(e,n,r,a){var t=[],o=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)o.push(d);return{path:t.concat(o.reverse()),lca:c}}function Fn(e){var n={},r=0;function a(t){var o=r;f.forEach(e.children(t),a),n[t]={low:o,lim:r++}}return f.forEach(e.children(),a),n}function Sn(e,n){var r={};function a(t,o){var i=0,u=0,d=t.length,c=l.last(o);return f.forEach(o,function(s,h){var v=Gn(e,s),p=v?e.node(v).order:d;(v||s===c)&&(f.forEach(o.slice(u,h+1),function(w){f.forEach(e.predecessors(w),function(b){var O=e.node(b),Y=O.order;(Y<i||p<Y)&&!(O.dummy&&e.node(w).dummy)&&se(r,b,w)})}),u=h+1,i=p)}),o}return f.reduce(n,a),r}function jn(e,n){var r={};function a(o,i,u,d,c){var s;f.forEach(k(i,u),function(h){s=o[h],e.node(s).dummy&&f.forEach(e.predecessors(s),function(v){var p=e.node(v);p.dummy&&(p.order<d||p.order>c)&&se(r,v,s)})})}function t(o,i){var u=-1,d,c=0;return f.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var v=e.predecessors(s);v.length&&(d=e.node(v[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,o.length)}),i}return f.reduce(n,t),r}function Gn(e,n){if(e.node(n).dummy)return l.find(e.predecessors(n),function(r){return e.node(r).dummy})}function se(e,n,r){if(n>r){var a=n;n=r,r=a}var t=e[n];t||(e[n]=t={}),t[r]=!0}function Vn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function An(e,n,r,a){var t={},o={},i={};return f.forEach(n,function(u){f.forEach(u,function(d,c){t[d]=d,o[d]=d,i[d]=c})}),f.forEach(n,function(u){var d=-1;f.forEach(u,function(c){var s=a(c);if(s.length){s=N(s,function(b){return i[b]});for(var h=(s.length-1)/2,v=Math.floor(h),p=Math.ceil(h);v<=p;++v){var w=s[v];o[c]===c&&d<i[w]&&!Vn(r,c,w)&&(o[w]=c,o[c]=t[c]=t[w],d=i[w])}}})}),{root:t,align:o}}function Bn(e,n,r,a,t){var o={},i=Yn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,v){for(var p=i.nodes(),w=p.pop(),b={};w;)b[w]?h(w):(b[w]=!0,p.push(w),p=p.concat(v(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(v,p){return Math.max(v,o[p.v]+i.edge(p))},0)}function s(h){var v=i.outEdges(h).reduce(function(w,b){return Math.min(w,o[b.w]-i.edge(b))},Number.POSITIVE_INFINITY),p=e.node(h);v!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),f.forEach(a,function(h){o[h]=o[r[h]]}),o}function Yn(e,n,r,a){var t=new E.Graph,o=e.graph(),i=Wn(o.nodesep,o.edgesep,a);return f.forEach(n,function(u){var d;f.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],v=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),v||0))}d=c})}),t}function Un(e,n){return j(f.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return we(r,function(o,i){var u=zn(e,i)/2;a=Math.max(o+u,a),t=Math.min(o-u,t)}),a-t})}function qn(e,n){var r=f.values(n),a=l.min(r),t=g(r);f.forEach(["u","d"],function(o){f.forEach(["l","r"],function(i){var u=o+i,d=e[u],c;if(d!==n){var s=f.values(d);c=i==="l"?a-l.min(s):t-g(s),c&&(e[u]=C(d,function(h){return h+c}))}})})}function Dn(e,n){return C(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=N(l.map(e,a));return(t[1]+t[2])/2})}function $n(e){var n=_(e),r=m.merge(Sn(e,n),jn(e,n)),a={},t;f.forEach(["u","d"],function(i){t=i==="u"?n:f.values(n).reverse(),f.forEach(["l","r"],function(u){u==="r"&&(t=l.map(t,function(h){return f.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=An(e,t,r,d),s=Bn(e,t,c.root,c.align,u==="r");u==="r"&&(s=C(s,function(h){return-h})),a[i+u]=s})});var o=Un(e,a);return qn(a,o),Dn(a,e.graph().align)}function Wn(e,n,r){return function(a,t,o){var i=a.node(t),u=a.node(o),d=0,c;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function zn(e,n){return e.node(n).width}function Xn(e){e=K(e),Hn(e),me($n(e),function(n,r){e.node(r).x=n})}function Hn(e){var n=_(e),r=e.graph().ranksep,a=0;f.forEach(n,function(t){var o=g(l.map(t,function(i){return e.node(i).height}));f.forEach(t,function(i){e.node(i).y=a+o/2}),a+=o+r})}function Jn(e,n){var r=De;r("layout",()=>{var a=r(" buildLayoutGraph",()=>ur(e));r(" runLayout",()=>Zn(a,r)),r(" updateInputGraph",()=>Kn(e,a))})}function Zn(e,n){n(" makeSpaceForEdgeLabels",()=>fr(e)),n(" removeSelfEdges",()=>mr(e)),n(" acyclic",()=>Ge(e)),n(" nestingGraph.run",()=>hn(e)),n(" rank",()=>dn(K(e))),n(" injectEdgeLabelProxies",()=>dr(e)),n(" removeEmptyRanks",()=>Ue(e)),n(" nestingGraph.cleanup",()=>pn(e)),n(" normalizeRanks",()=>Ye(e)),n(" assignRankMinMax",()=>cr(e)),n(" removeEdgeLabelProxies",()=>sr(e)),n(" normalize.run",()=>Je(e)),n(" parentDummyChains",()=>Mn(e)),n(" addBorderSegments",()=>$e(e)),n(" order",()=>Rn(e)),n(" insertSelfEdges",()=>br(e)),n(" adjustCoordinateSystem",()=>We(e)),n(" position",()=>Xn(e)),n(" positionSelfEdges",()=>Er(e)),n(" removeBorderNodes",()=>wr(e)),n(" normalize.undo",()=>Ke(e)),n(" fixupEdgeLabelCoords",()=>vr(e)),n(" undoCoordinateSystem",()=>ze(e)),n(" translateGraph",()=>hr(e)),n(" assignNodeIntersects",()=>lr(e)),n(" reversePoints",()=>pr(e)),n(" acyclic.undo",()=>Ae(e))}function Kn(e,n){f.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),f.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Qn=["nodesep","edgesep","ranksep","marginx","marginy"],er={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nr=["acyclicer","ranker","rankdir","align"],rr=["width","height"],ar={width:0,height:0},tr=["minlen","weight","width","height","labeloffset"],or={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},ir=["labelpos"];function ur(e){var n=new E.Graph({multigraph:!0,compound:!0}),r=F(e.graph());return n.setGraph(m.merge({},er,T(r,Qn),P(r,nr))),f.forEach(e.nodes(),function(a){var t=F(e.node(a));n.setNode(a,l.defaults(T(t,rr),ar)),n.setParent(a,e.parent(a))}),f.forEach(e.edges(),function(a){var t=F(e.edge(a));n.setEdge(a,m.merge({},or,T(t,tr),P(t,ir)))}),n}function fr(e){var n=e.graph();n.ranksep/=2,f.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function dr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),o={rank:(t.rank-a.rank)/2+a.rank,e:n};x(e,"edge-proxy",o,"_ep")}})}function cr(e){var n=0;f.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=g(n,a.maxRank))}),e.graph().maxRank=n}function sr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function hr(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function d(c){var s=c.x,h=c.y,v=c.width,p=c.height;n=Math.min(n,s-v/2),r=Math.max(r,s+v/2),a=Math.min(a,h-p/2),t=Math.max(t,h+p/2)}f.forEach(e.nodes(),function(c){d(e.node(c))}),f.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),n-=i,a-=u,f.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),f.forEach(e.edges(),function(c){var s=e.edge(c);f.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),o.width=r-n+i,o.height=t-a+u}function lr(e){f.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=t,i=a),r.points.unshift(q(a,o)),r.points.push(q(t,i))})}function vr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function pr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function wr(e){f.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),o=e.node(l.last(r.borderLeft)),i=e.node(l.last(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(t.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),f.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function mr(e){f.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function br(e){var n=_(e);f.forEach(n,function(r){var a=0;f.forEach(r,function(t,o){var i=e.node(t);i.order=o+a,f.forEach(i.selfEdges,function(u){x(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function Er(e){f.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,o=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:o-u},{x:t+5*i/6,y:o-u},{x:t+i,y:o},{x:t+5*i/6,y:o+u},{x:t+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function T(e,n){return C(P(e,n),Number)}function F(e){var n={};return f.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Jn;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as g } from "./graph-
|
|
2
|
-
import { b as Te, p as ce, q as le, g as X, e as ee, l as j, o as Ie, s as Me, c as Se, u as Fe, d as f, i as m, f as _, v as x, r as M } from "./_baseUniq-
|
|
3
|
-
import { f as O, b as he, a as je, c as Ve, d as Ae, t as V, m as w, e as P, h as ve, g as z, l as T, i as Be } from "./_basePickBy-
|
|
4
|
-
import { b9 as Ge, ba as Ye, bb as De, aU as qe, bc as $e, aY as pe, aX as we, bd as We, aT as q, aC as Xe, a_ as ze, aE as Ue, be as $ } from "./index-
|
|
1
|
+
import { G as g } from "./graph-BoeGwTWO.js";
|
|
2
|
+
import { b as Te, p as ce, q as le, g as X, e as ee, l as j, o as Ie, s as Me, c as Se, u as Fe, d as f, i as m, f as _, v as x, r as M } from "./_baseUniq-CQt2p9Xf.js";
|
|
3
|
+
import { f as O, b as he, a as je, c as Ve, d as Ae, t as V, m as w, e as P, h as ve, g as z, l as T, i as Be } from "./_basePickBy-CnPX6Bdb.js";
|
|
4
|
+
import { b9 as Ge, ba as Ye, bb as De, aU as qe, bc as $e, aY as pe, aX as we, bd as We, aT as q, aC as Xe, a_ as ze, aE as Ue, be as $ } from "./index-kj0EuvQM.js";
|
|
5
5
|
function He(e) {
|
|
6
6
|
return Ge(Ye(e, void 0, O), e + "");
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aN as j, aO as p, aP as w, aQ as q, aR as k } from "./index-
|
|
1
|
+
import { aN as j, aO as p, aP as w, aQ as q, aR as k } from "./index-kj0EuvQM.js";
|
|
2
2
|
import { i as D } from "./init-DjUOC4st.js";
|
|
3
3
|
import { e as g, f as F, a as P, b as z } from "./defaultLocale-D7EN2tov.js";
|
|
4
4
|
function M(n, r) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./index-
|
|
1
|
+
"use strict";const m=require("./index-CdZgX2Ma.cjs"),j=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-DIVzfLaQ.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function L(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function O(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function T(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function C(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function E(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function G(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$2(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?E:T(r)?O:Array.isArray(r)?C:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?G:m.interpolateNumber)(n,r)}function H(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=H,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,x){return e=h,u=x,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return L(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},j.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
|