novelaid-markdown 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +15 -0
  2. package/dist/_baseFor-Btt7qhvA.js +394 -0
  3. package/dist/arc-B1ElyJRe.js +80 -0
  4. package/dist/architecture-YZFGNWBL-DbwpLiaF.js +3 -0
  5. package/dist/architectureDiagram-Q4EWVU46-DPdA1a51.js +4057 -0
  6. package/dist/array-D9V22jUe.js +6 -0
  7. package/dist/blockDiagram-DXYQGD6D-Bf0IzYoN.js +3035 -0
  8. package/dist/c4Diagram-AHTNJAMY-BlTBDzAq.js +2961 -0
  9. package/dist/channel-CoqXOEHz.js +5 -0
  10. package/dist/chunk-2KRD3SAO-r21hNzXt.js +23 -0
  11. package/dist/chunk-336JU56O-DcVNMTsS.js +49 -0
  12. package/dist/chunk-426QAEUC-B4JQ_vPF.js +9 -0
  13. package/dist/chunk-4BX2VUAB-JBqrV_IE.js +8 -0
  14. package/dist/chunk-4TB4RGXK-DHS8LN6H.js +3255 -0
  15. package/dist/chunk-55IACEB6-C9COrGK_.js +8 -0
  16. package/dist/chunk-5FUZZQ4R-CdCLluck.js +3638 -0
  17. package/dist/chunk-5PVQY5BW-Dgwc0dUk.js +1299 -0
  18. package/dist/chunk-67CJDMHE-UQ-a7p3g.js +23 -0
  19. package/dist/chunk-7N4EOEYR-CPiwpV-A.js +35 -0
  20. package/dist/chunk-AA7GKIK3-DR_Iqho4.js +30 -0
  21. package/dist/chunk-BSJP7CBP-BrxQKL1l.js +82 -0
  22. package/dist/chunk-CIAEETIT-tbco3aB3.js +23 -0
  23. package/dist/chunk-EDXVE4YY-BHsZxHlc.js +25 -0
  24. package/dist/chunk-ENJZ2VHE-Dm2kuGCh.js +560 -0
  25. package/dist/chunk-FMBD7UC4-DwV8Wmed.js +5 -0
  26. package/dist/chunk-FOC6F5B3-CQtHQje_.js +23 -0
  27. package/dist/chunk-ICPOFSXX-B9lsZaK9.js +3363 -0
  28. package/dist/chunk-K5T4RW27-DI9nuGzI.js +16082 -0
  29. package/dist/chunk-KGLVRYIC-BMNH9LI-.js +23 -0
  30. package/dist/chunk-LIHQZDEY-Dc-yVZ_W.js +64 -0
  31. package/dist/chunk-ORNJ4GCN-DqZLt4_8.js +31 -0
  32. package/dist/chunk-OYMX7WX6-B8KpS9qK.js +2014 -0
  33. package/dist/chunk-QZHKN3VN-C4dmvHME.js +15 -0
  34. package/dist/chunk-U2HBQHQK-BME65g2a.js +1896 -0
  35. package/dist/chunk-X2U36JSP-CesuQ-Sm.js +67 -0
  36. package/dist/chunk-XPW4576I-Wv7jaLUC.js +1146 -0
  37. package/dist/chunk-YZCP3GAM-CJIt1xzm.js +60 -0
  38. package/dist/chunk-ZZ45TVLE-CMBGSmdv.js +32 -0
  39. package/dist/chunk-ha4E1CQs.js +20 -0
  40. package/dist/classDiagram-6PBFFD2Q-kvmQgIxu.js +29 -0
  41. package/dist/classDiagram-v2-HSJHXN6E-DLlYyLVf.js +29 -0
  42. package/dist/clone-B5XHQkPs.js +8 -0
  43. package/dist/cose-bilkent-S5V4N54A-xGhciOop.js +2250 -0
  44. package/dist/cytoscape.esm-BgCYa94Q.js +18103 -0
  45. package/dist/dagre-KV5264BT-DNe8h1eH.js +293 -0
  46. package/dist/dagre-SfibWTbo.js +1606 -0
  47. package/dist/defaultLocale-9iKoEQQi.js +201 -0
  48. package/dist/diagram-5BDNPKRD-D_R6IIhE.js +101 -0
  49. package/dist/diagram-G4DWMVQ6-CGlOggN-.js +524 -0
  50. package/dist/diagram-MMDJMWI5-GlxWkSbK.js +213 -0
  51. package/dist/diagram-TYMM5635-Empbfz-2.js +133 -0
  52. package/dist/dist-Dz2K8jVv.js +59 -0
  53. package/dist/erDiagram-SMLLAGMA-DSnlNLPr.js +1700 -0
  54. package/dist/{esm-Psdhd_27.js → esm-Binvve4F.js} +285 -303
  55. package/dist/flatten-BeeUCBYF.js +40 -0
  56. package/dist/flowDiagram-DWJPFMVM-YAh0NsG9.js +4145 -0
  57. package/dist/ganttDiagram-T4ZO3ILL-DkmkZTO5.js +3077 -0
  58. package/dist/gitGraph-7Q5UKJZL-DamMrPFa.js +3 -0
  59. package/dist/gitGraphDiagram-UUTBAWPF-IjLQtHgn.js +728 -0
  60. package/dist/graphlib-DSQqP-5Y.js +373 -0
  61. package/dist/index.css +2 -0
  62. package/dist/index.js +115 -38
  63. package/dist/index.umd.cjs +3218 -23
  64. package/dist/info-OMHHGYJF-BovemagY.js +3 -0
  65. package/dist/infoDiagram-42DDH7IO-izJQDQJs.js +19 -0
  66. package/dist/init-DkX7cl9c.js +15 -0
  67. package/dist/isEmpty-kLGD071T.js +35 -0
  68. package/dist/ishikawaDiagram-UXIWVN3A-SJb5qsLR.js +718 -0
  69. package/dist/journeyDiagram-VCZTEJTY-BDa8bFXG.js +883 -0
  70. package/dist/kanban-definition-6JOO6SKY-i73I3KFw.js +973 -0
  71. package/dist/katex-DI2iMRYj.js +22000 -0
  72. package/dist/line-BD0OIRsH.js +34 -0
  73. package/dist/linear-DV1pG6aV.js +289 -0
  74. package/dist/mermaid-parser.core-CZznKIov.js +69 -0
  75. package/dist/mermaid.core-a1TLqUAY.js +951 -0
  76. package/dist/mindmap-definition-QFDTVHPH-DPG-HkqU.js +1009 -0
  77. package/dist/ordinal-Zd5qpGcV.js +65 -0
  78. package/dist/packet-4T2RLAQJ-BEP9UcAl.js +3 -0
  79. package/dist/path-BSwIfggT.js +85 -0
  80. package/dist/pie-ZZUOXDRM-AZqQmg1p.js +3 -0
  81. package/dist/pieDiagram-DEJITSTG-Cj1YBlb1.js +165 -0
  82. package/dist/quadrantDiagram-34T5L4WZ-ypBI9wre.js +1974 -0
  83. package/dist/radar-PYXPWWZC-BpKM_Ghb.js +3 -0
  84. package/dist/{react-markdown-BXmDW998.js → react-markdown-CwHVAeQi.js} +82 -81
  85. package/dist/reduce-DQgHi9nw.js +532 -0
  86. package/dist/{rehype-raw-_yRr8ewB.js → rehype-raw-CbJS4QeP.js} +346 -346
  87. package/dist/{remark-gfm-Cfc5YeEq.js → remark-gfm-D_QtAzOA.js} +2 -2
  88. package/dist/requirementDiagram-MS252O5E-CkuWjAxJ.js +2221 -0
  89. package/dist/rough.esm-Dun2l6dn.js +1352 -0
  90. package/dist/sankeyDiagram-XADWPNL6-BzIHfJyL.js +920 -0
  91. package/dist/sequenceDiagram-FGHM5R23-NC0cKvy5.js +4157 -0
  92. package/dist/src-D7IEzgYM.js +2149 -0
  93. package/dist/stateDiagram-FHFEXIEX-vd0cNpSx.js +217 -0
  94. package/dist/stateDiagram-v2-QKLJ7IA2-BXsBMk9U.js +27 -0
  95. package/dist/timeline-definition-GMOUNBTQ-DeOvCyAs.js +1068 -0
  96. package/dist/treeView-SZITEDCU-D-ftaYOL.js +3 -0
  97. package/dist/treemap-W4RFUUIX-B2bp9KIg.js +3 -0
  98. package/dist/vennDiagram-DHZGUBPP-Hraq3pvR.js +1858 -0
  99. package/dist/wardley-RL74JXVD-BdjKuxh8.js +3 -0
  100. package/dist/wardleyDiagram-NUSXRM2D-C06eRanG.js +578 -0
  101. package/dist/xychartDiagram-5P7HB3ND-BiD79JlS.js +2044 -0
  102. package/package.json +2 -1
  103. /package/dist/{blank-line-ClJSvRAu.js → blank-line-DxLGQ569.js} +0 -0
  104. /package/dist/{lib-DWIu06lZ.js → lib-z8X9LcoZ.js} +0 -0
@@ -0,0 +1,217 @@
1
+ import { g as e, h as t, p as n } from "./src-D7IEzgYM.js";
2
+ import { D as r, b as i, c as a, s as o } from "./chunk-ICPOFSXX-B9lsZaK9.js";
3
+ import { H as s, h as c } from "./chunk-5PVQY5BW-Dgwc0dUk.js";
4
+ import { t as l } from "./line-BD0OIRsH.js";
5
+ import "./chunk-U2HBQHQK-BME65g2a.js";
6
+ import "./chunk-BSJP7CBP-BrxQKL1l.js";
7
+ import "./chunk-ZZ45TVLE-CMBGSmdv.js";
8
+ import { t as u } from "./graphlib-DSQqP-5Y.js";
9
+ import { t as d } from "./dagre-SfibWTbo.js";
10
+ import "./chunk-55IACEB6-C9COrGK_.js";
11
+ import "./chunk-EDXVE4YY-BHsZxHlc.js";
12
+ import "./chunk-X2U36JSP-CesuQ-Sm.js";
13
+ import "./chunk-5FUZZQ4R-CdCLluck.js";
14
+ import "./chunk-ENJZ2VHE-Dm2kuGCh.js";
15
+ import "./chunk-336JU56O-DcVNMTsS.js";
16
+ import { i as f, n as p, t as m } from "./chunk-OYMX7WX6-B8KpS9qK.js";
17
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.mjs
18
+ var h = /* @__PURE__ */ t((e) => e.append("circle").attr("class", "start-state").attr("r", i().state.sizeUnit).attr("cx", i().state.padding + i().state.sizeUnit).attr("cy", i().state.padding + i().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ t((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", i().state.textHeight).attr("class", "divider").attr("x2", i().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ t((e, t) => {
19
+ let n = e.append("text").attr("x", 2 * i().state.padding).attr("y", i().state.textHeight + 2 * i().state.padding).attr("font-size", i().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
20
+ return e.insert("rect", ":first-child").attr("x", i().state.padding).attr("y", i().state.padding).attr("width", r.width + 2 * i().state.padding).attr("height", r.height + 2 * i().state.padding).attr("rx", i().state.radius), n;
21
+ }, "drawSimpleState"), v = /* @__PURE__ */ t((e, n) => {
22
+ let r = /* @__PURE__ */ t(function(e, t, n) {
23
+ let r = e.append("tspan").attr("x", 2 * i().state.padding).text(t);
24
+ n || r.attr("dy", i().state.textHeight);
25
+ }, "addTspan"), a = e.append("text").attr("x", 2 * i().state.padding).attr("y", i().state.textHeight + 1.3 * i().state.padding).attr("font-size", i().state.fontSize).attr("class", "state-title").text(n.descriptions[0]).node().getBBox(), o = a.height, s = e.append("text").attr("x", i().state.padding).attr("y", o + i().state.padding * .4 + i().state.dividerMargin + i().state.textHeight).attr("class", "state-description"), c = !0, l = !0;
26
+ n.descriptions.forEach(function(e) {
27
+ c || (r(s, e, l), l = !1), c = !1;
28
+ });
29
+ let u = e.append("line").attr("x1", i().state.padding).attr("y1", i().state.padding + o + i().state.dividerMargin / 2).attr("y2", i().state.padding + o + i().state.dividerMargin / 2).attr("class", "descr-divider"), d = s.node().getBBox(), f = Math.max(d.width, a.width);
30
+ return u.attr("x2", f + 3 * i().state.padding), e.insert("rect", ":first-child").attr("x", i().state.padding).attr("y", i().state.padding).attr("width", f + 2 * i().state.padding).attr("height", d.height + o + 2 * i().state.padding).attr("rx", i().state.radius), e;
31
+ }, "drawDescrState"), y = /* @__PURE__ */ t((e, t, n) => {
32
+ let r = i().state.padding, a = 2 * i().state.padding, o = e.node().getBBox(), s = o.width, c = o.x, l = e.append("text").attr("x", 0).attr("y", i().state.titleShift).attr("font-size", i().state.fontSize).attr("class", "state-title").text(t.id), u = l.node().getBBox().width + a, d = Math.max(u, s);
33
+ d === s && (d += a);
34
+ let f, p = e.node().getBBox();
35
+ t.doc, f = c - r, u > s && (f = (s - d) / 2 + r), Math.abs(c - p.x) < r && u > s && (f = c - (u - s) / 2);
36
+ let m = 1 - i().state.textHeight;
37
+ return e.insert("rect", ":first-child").attr("x", f).attr("y", m).attr("class", n ? "alt-composit" : "composit").attr("width", d).attr("height", p.height + i().state.textHeight + i().state.titleShift + 1).attr("rx", "0"), l.attr("x", f + r), u <= s && l.attr("x", c + (d - a) / 2 - u / 2 + r), e.insert("rect", ":first-child").attr("x", f).attr("y", i().state.titleShift - i().state.textHeight - i().state.padding).attr("width", d).attr("height", i().state.textHeight * 3).attr("rx", i().state.radius), e.insert("rect", ":first-child").attr("x", f).attr("y", i().state.titleShift - i().state.textHeight - i().state.padding).attr("width", d).attr("height", p.height + 3 + 2 * i().state.textHeight).attr("rx", i().state.radius), e;
38
+ }, "addTitleAndBox"), b = /* @__PURE__ */ t((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", i().state.sizeUnit + i().state.miniPadding).attr("cx", i().state.padding + i().state.sizeUnit + i().state.miniPadding).attr("cy", i().state.padding + i().state.sizeUnit + i().state.miniPadding), e.append("circle").attr("class", "end-state-inner").attr("r", i().state.sizeUnit).attr("cx", i().state.padding + i().state.sizeUnit + 2).attr("cy", i().state.padding + i().state.sizeUnit + 2)), "drawEndState"), x = /* @__PURE__ */ t((e, t) => {
39
+ let n = i().state.forkWidth, r = i().state.forkHeight;
40
+ if (t.parentId) {
41
+ let e = n;
42
+ n = r, r = e;
43
+ }
44
+ return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", n).attr("height", r).attr("x", i().state.padding).attr("y", i().state.padding);
45
+ }, "drawForkJoinState"), S = /* @__PURE__ */ t((e, t, n, r) => {
46
+ let a = 0, s = r.append("text");
47
+ s.style("text-anchor", "start"), s.attr("class", "noteText");
48
+ let c = e.replace(/\r\n/g, "<br/>");
49
+ c = c.replace(/\n/g, "<br/>");
50
+ let l = c.split(o.lineBreakRegex), u = 1.25 * i().state.noteMargin;
51
+ for (let e of l) {
52
+ let r = e.trim();
53
+ if (r.length > 0) {
54
+ let e = s.append("tspan");
55
+ if (e.text(r), u === 0) {
56
+ let t = e.node().getBBox();
57
+ u += t.height;
58
+ }
59
+ a += u, e.attr("x", t + i().state.noteMargin), e.attr("y", n + a + 1.25 * i().state.noteMargin);
60
+ }
61
+ }
62
+ return {
63
+ textWidth: s.node().getBBox().width,
64
+ textHeight: a
65
+ };
66
+ }, "_drawLongText"), C = /* @__PURE__ */ t((e, t) => {
67
+ t.attr("class", "state-note");
68
+ let n = t.append("rect").attr("x", 0).attr("y", i().state.padding), { textWidth: r, textHeight: a } = S(e, 0, 0, t.append("g"));
69
+ return n.attr("height", a + 2 * i().state.noteMargin), n.attr("width", r + i().state.noteMargin * 2), n;
70
+ }, "drawNote"), w = /* @__PURE__ */ t(function(e, t) {
71
+ let n = t.id, r = {
72
+ id: n,
73
+ label: t.id,
74
+ width: 0,
75
+ height: 0
76
+ }, a = e.append("g").attr("id", n).attr("class", "stateGroup");
77
+ t.type === "start" && h(a), t.type === "end" && b(a), (t.type === "fork" || t.type === "join") && x(a, t), t.type === "note" && C(t.note.text, a), t.type === "divider" && g(a), t.type === "default" && t.descriptions.length === 0 && _(a, t), t.type === "default" && t.descriptions.length > 0 && v(a, t);
78
+ let o = a.node().getBBox();
79
+ return r.width = o.width + 2 * i().state.padding, r.height = o.height + 2 * i().state.padding, r;
80
+ }, "drawState"), T = 0, E = /* @__PURE__ */ t(function(n, a, u) {
81
+ let d = /* @__PURE__ */ t(function(e) {
82
+ switch (e) {
83
+ case m.relationType.AGGREGATION: return "aggregation";
84
+ case m.relationType.EXTENSION: return "extension";
85
+ case m.relationType.COMPOSITION: return "composition";
86
+ case m.relationType.DEPENDENCY: return "dependency";
87
+ }
88
+ }, "getRelationType");
89
+ a.points = a.points.filter((e) => !Number.isNaN(e.y));
90
+ let f = a.points, p = l().x(function(e) {
91
+ return e.x;
92
+ }).y(function(e) {
93
+ return e.y;
94
+ }).curve(s), h = n.append("path").attr("d", p(f)).attr("id", "edge" + T).attr("class", "transition"), g = "";
95
+ if (i().state.arrowMarkerAbsolute && (g = r(!0)), h.attr("marker-end", "url(" + g + "#" + d(m.relationType.DEPENDENCY) + "End)"), u.title !== void 0) {
96
+ let t = n.append("g").attr("class", "stateLabel"), { x: r, y: s } = c.calcLabelPosition(a.points), l = o.getRows(u.title), d = 0, f = [], p = 0, m = 0;
97
+ for (let n = 0; n <= l.length; n++) {
98
+ let i = t.append("text").attr("text-anchor", "middle").text(l[n]).attr("x", r).attr("y", s + d), a = i.node().getBBox();
99
+ p = Math.max(p, a.width), m = Math.min(m, a.x), e.info(a.x, r, s + d), d === 0 && (d = i.node().getBBox().height, e.info("Title height", d, s)), f.push(i);
100
+ }
101
+ let h = d * l.length;
102
+ if (l.length > 1) {
103
+ let e = (l.length - 1) * d * .5;
104
+ f.forEach((t, n) => t.attr("y", s + n * d - e)), h = d * l.length;
105
+ }
106
+ let g = t.node().getBBox();
107
+ t.insert("rect", ":first-child").attr("class", "box").attr("x", r - p / 2 - i().state.padding / 2).attr("y", s - h / 2 - i().state.padding / 2 - 3.5).attr("width", p + i().state.padding).attr("height", h + i().state.padding), e.info(g);
108
+ }
109
+ T++;
110
+ }, "drawEdge"), D, O = {}, k = /* @__PURE__ */ t(function() {}, "setConf"), A = /* @__PURE__ */ t(function(e) {
111
+ e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
112
+ }, "insertMarkers"), j = /* @__PURE__ */ t(function(t, r, o, s) {
113
+ D = i().state;
114
+ let c = i().securityLevel, l;
115
+ c === "sandbox" && (l = n("#i" + r));
116
+ let u = n(c === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = c === "sandbox" ? l.nodes()[0].contentDocument : document;
117
+ e.debug("Rendering diagram " + t);
118
+ let f = u.select(`[id='${r}']`);
119
+ A(f), N(s.db.getRootDoc(), f.append("g").attr("id", r + "-root"), void 0, !1, u, d, s);
120
+ let p = D.padding, m = f.node().getBBox(), h = m.width + p * 2, g = m.height + p * 2;
121
+ a(f, g, h * 1.75, D.useMaxWidth), f.attr("viewBox", `${m.x - D.padding} ${m.y - D.padding} ` + h + " " + g);
122
+ }, "draw"), M = /* @__PURE__ */ t((e) => e ? e.length * D.fontSizeFactor : 1, "getLabelWidth"), N = /* @__PURE__ */ t((t, n, r, i, a, s, c) => {
123
+ let l = new u({
124
+ compound: !0,
125
+ multigraph: !0
126
+ }), f, p = !0;
127
+ for (f = 0; f < t.length; f++) if (t[f].stmt === "relation") {
128
+ p = !1;
129
+ break;
130
+ }
131
+ r ? l.setGraph({
132
+ rankdir: "LR",
133
+ multigraph: !0,
134
+ compound: !0,
135
+ ranker: "tight-tree",
136
+ ranksep: p ? 1 : D.edgeLengthFactor,
137
+ nodeSep: p ? 1 : 50,
138
+ isMultiGraph: !0
139
+ }) : l.setGraph({
140
+ rankdir: "TB",
141
+ multigraph: !0,
142
+ compound: !0,
143
+ ranksep: p ? 1 : D.edgeLengthFactor,
144
+ nodeSep: p ? 1 : 50,
145
+ ranker: "tight-tree",
146
+ isMultiGraph: !0
147
+ }), l.setDefaultEdgeLabel(function() {
148
+ return {};
149
+ });
150
+ let m = c.db.getStates(), h = c.db.getRelations(), g = Object.keys(m);
151
+ for (let e of g) {
152
+ let t = m[e];
153
+ r && (t.parentId = r);
154
+ let o;
155
+ if (t.doc) {
156
+ let e = n.append("g").attr("id", t.id).attr("class", "stateGroup");
157
+ o = N(t.doc, e, t.id, !i, a, s, c);
158
+ {
159
+ e = y(e, t, i);
160
+ let n = e.node().getBBox();
161
+ o.width = n.width, o.height = n.height + D.padding / 2, O[t.id] = { y: D.compositTitleSize };
162
+ }
163
+ } else o = w(n, t, l);
164
+ if (t.note) {
165
+ let e = w(n, {
166
+ descriptions: [],
167
+ id: t.id + "-note",
168
+ note: t.note,
169
+ type: "note"
170
+ }, l);
171
+ t.note.position === "left of" ? (l.setNode(o.id + "-note", e), l.setNode(o.id, o)) : (l.setNode(o.id, o), l.setNode(o.id + "-note", e)), l.setParent(o.id, o.id + "-group"), l.setParent(o.id + "-note", o.id + "-group");
172
+ } else l.setNode(o.id, o);
173
+ }
174
+ e.debug("Count=", l.nodeCount(), l);
175
+ let _ = 0;
176
+ h.forEach(function(t) {
177
+ _++, e.debug("Setting edge", t), l.setEdge(t.id1, t.id2, {
178
+ relation: t,
179
+ width: M(t.title),
180
+ height: D.labelHeight * o.getRows(t.title).length,
181
+ labelpos: "c"
182
+ }, "id" + _);
183
+ }), d(l), e.debug("Graph after layout", l.nodes());
184
+ let v = n.node();
185
+ l.nodes().forEach(function(t) {
186
+ t !== void 0 && l.node(t) !== void 0 ? (e.warn("Node " + t + ": " + JSON.stringify(l.node(t))), a.select("#" + v.id + " #" + t).attr("transform", "translate(" + (l.node(t).x - l.node(t).width / 2) + "," + (l.node(t).y + (O[t] ? O[t].y : 0) - l.node(t).height / 2) + " )"), a.select("#" + v.id + " #" + t).attr("data-x-shift", l.node(t).x - l.node(t).width / 2), s.querySelectorAll("#" + v.id + " #" + t + " .divider").forEach((e) => {
187
+ let t = e.parentElement, n = 0, r = 0;
188
+ t && (t.parentElement && (n = t.parentElement.getBBox().width), r = parseInt(t.getAttribute("data-x-shift"), 10), Number.isNaN(r) && (r = 0)), e.setAttribute("x1", 0 - r + 8), e.setAttribute("x2", n - r - 8);
189
+ })) : e.debug("No Node " + t + ": " + JSON.stringify(l.node(t)));
190
+ });
191
+ let b = v.getBBox();
192
+ l.edges().forEach(function(t) {
193
+ t !== void 0 && l.edge(t) !== void 0 && (e.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(l.edge(t))), E(n, l.edge(t), l.edge(t).relation));
194
+ }), b = v.getBBox();
195
+ let x = {
196
+ id: r || "root",
197
+ label: r || "root",
198
+ width: 0,
199
+ height: 0
200
+ };
201
+ return x.width = b.width + 2 * D.padding, x.height = b.height + 2 * D.padding, e.debug("Doc rendered", x, l), x;
202
+ }, "renderDoc"), P = {
203
+ parser: p,
204
+ get db() {
205
+ return new m(1);
206
+ },
207
+ renderer: {
208
+ setConf: k,
209
+ draw: j
210
+ },
211
+ styles: f,
212
+ init: /* @__PURE__ */ t((e) => {
213
+ e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
214
+ }, "init")
215
+ };
216
+ //#endregion
217
+ export { P as diagram };
@@ -0,0 +1,27 @@
1
+ import { h as e } from "./src-D7IEzgYM.js";
2
+ import "./chunk-ICPOFSXX-B9lsZaK9.js";
3
+ import "./chunk-5PVQY5BW-Dgwc0dUk.js";
4
+ import "./chunk-U2HBQHQK-BME65g2a.js";
5
+ import "./chunk-BSJP7CBP-BrxQKL1l.js";
6
+ import "./chunk-ZZ45TVLE-CMBGSmdv.js";
7
+ import "./chunk-55IACEB6-C9COrGK_.js";
8
+ import "./chunk-EDXVE4YY-BHsZxHlc.js";
9
+ import "./chunk-X2U36JSP-CesuQ-Sm.js";
10
+ import "./chunk-5FUZZQ4R-CdCLluck.js";
11
+ import "./chunk-ENJZ2VHE-Dm2kuGCh.js";
12
+ import "./chunk-336JU56O-DcVNMTsS.js";
13
+ import { i as t, n, r, t as i } from "./chunk-OYMX7WX6-B8KpS9qK.js";
14
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.mjs
15
+ var a = {
16
+ parser: n,
17
+ get db() {
18
+ return new i(2);
19
+ },
20
+ renderer: r,
21
+ styles: t,
22
+ init: /* @__PURE__ */ e((e) => {
23
+ e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
24
+ }, "init")
25
+ };
26
+ //#endregion
27
+ export { a as diagram };