@sourcegraph/amp 0.0.1749585689-g82b91d → 0.0.1749614780-g9a56bd

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 (61) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/architectureDiagram-RWNHDUBN-1v8WgxdD.js +4635 -0
  3. package/dist/blockDiagram-XZSR5OGQ-XFBYN-jB.js +2243 -0
  4. package/dist/c4Diagram-6R2MQUNL-B0L0pltn.js +1587 -0
  5. package/dist/chunk-COUQ6RZ3-qd4eG6tc.js +17852 -0
  6. package/dist/chunk-CRQPXCKQ-yjI467Bq.js +65 -0
  7. package/dist/chunk-EFPBJHX4-DdHmqd0M.js +1378 -0
  8. package/dist/chunk-EOAU2GW5-CpRNAcjo.js +253 -0
  9. package/dist/chunk-IHYUGLNO-DJcRQIf7.js +1365 -0
  10. package/dist/chunk-K2ZEYYM2-CbqHhUqy.js +9 -0
  11. package/dist/chunk-Q7VUVKE6-gBSSbdjU.js +24 -0
  12. package/dist/chunk-T2M37SMK-Br8mK30k.js +1411 -0
  13. package/dist/chunk-TGZYFRKZ-BYBLXoJz.js +1331 -0
  14. package/dist/chunk-YJGJQOYZ-BGiSkWF0.js +19 -0
  15. package/dist/classDiagram-LB37KKQG-DhFsEyDS.js +17 -0
  16. package/dist/classDiagram-v2-KFQJBC22-DhFsEyDS.js +17 -0
  17. package/dist/{client-C1WG2nEf.js → client-D-YAg8x6.js} +6 -6
  18. package/dist/{console-DK0gDzNQ.js → console-CoE5Qzyz.js} +41106 -22971
  19. package/dist/create_file.node-Co0Uh1F3.js +21 -0
  20. package/dist/dagre-CMTPJJKG-UDPzd9Iy.js +446 -0
  21. package/dist/diagram-BIPOGRU5-B7TV59-n.js +128 -0
  22. package/dist/diagram-YF4VECWA-LsAZsciQ.js +219 -0
  23. package/dist/{edit_file.node-BH524GkF.js → edit_file.node-CmTZeBc2.js} +11 -11
  24. package/dist/erDiagram-AK44R45H-BWpeEu7D.js +843 -0
  25. package/dist/{executable-5cBRGrsC.js → executable-BE7tfoX5.js} +1 -1
  26. package/dist/{files-CybxYgbE.js → files-DqpRf5q4.js} +10 -10
  27. package/dist/flowDiagram-XARHJDSH-DzpV02UB.js +1618 -0
  28. package/dist/ganttDiagram-H5QQZTZ5-C0BhJTzn.js +1605 -0
  29. package/dist/gitGraphDiagram-XHLTLO3W-0EiOmv44.js +701 -0
  30. package/dist/{glob.node-C6HbLuPt.js → glob.node-DNei8bFS.js} +11 -11
  31. package/dist/{index-C2wo7rRZ.js → index-BcjxaWOc.js} +31 -31
  32. package/dist/infoDiagram-TP2HPDHO-CQX5a0Fc.js +24 -0
  33. package/dist/journeyDiagram-VHRN44N3-C82dEe4G.js +809 -0
  34. package/dist/kanban-definition-K5J3OUUV-xilJcrom.js +718 -0
  35. package/dist/katex-5N2NCDMP-CAsrnb6_.js +11703 -0
  36. package/dist/{list_directory.node-ZQscizpi.js → list_directory.node-CMiNNbXP.js} +1 -1
  37. package/dist/{load-profile-BbmyxO_7.js → load-profile-Cg8XaTx6.js} +1 -1
  38. package/dist/{main-CiUaVPC2.js → main-CtwgALCc.js} +23 -16
  39. package/dist/mindmap-definition-TI5ONXTW-BNaRba4R.js +3221 -0
  40. package/dist/{node-VrazB_nQ.js → node-Bfma_T75.js} +58 -58
  41. package/dist/{node-DvmQAW7h.js → node-BtG1o_DD.js} +2 -2
  42. package/dist/{node-GgocwWwI.js → node-CZJC9BSF.js} +3 -3
  43. package/dist/{node-Cpbjmhrj.js → node-Cp3D7_hw.js} +71 -71
  44. package/dist/{node-CiFAW-F3.js → node-Ctw1i0nl.js} +12 -12
  45. package/dist/{node-CgVq0JJ9.js → node-D1zxOCuN.js} +1 -1
  46. package/dist/pieDiagram-FPR3CNQC-_30_tQz0.js +120 -0
  47. package/dist/quadrantDiagram-RLP5YTJ2-CTD43GTk.js +1028 -0
  48. package/dist/radar-MK3ICKWK-55CS4JTO-afihMdR4.js +14398 -0
  49. package/dist/{read_file.node-CIdAFiJ6.js → read_file.node-QZ0VCmB2.js} +1 -1
  50. package/dist/requirementDiagram-P5NVWGNK-Sd2_6g8e.js +853 -0
  51. package/dist/sankeyDiagram-C6NZRJHT-D1EcCYaw.js +864 -0
  52. package/dist/sequenceDiagram-6SLVIXKN-CghQTpGf.js +2283 -0
  53. package/dist/stateDiagram-WI5ZVJ5I-Bv21MlSK.js +272 -0
  54. package/dist/stateDiagram-v2-KVDSFUFK-BgP0D8xL.js +17 -0
  55. package/dist/{stdio-D9HyubOc.js → stdio-yXWLIEvb.js} +8 -8
  56. package/dist/storybook.js +7 -7
  57. package/dist/timeline-definition-65575674-BUqRZdJ-.js +800 -0
  58. package/dist/{undo_edit.node-VYuTxRwd.js → undo_edit.node-BkletvTZ.js} +5 -5
  59. package/dist/xychartDiagram-674MFTBU-DjBabATx.js +1291 -0
  60. package/package.json +1 -1
  61. package/dist/create_file.node-DtVTaHj5.js +0 -21
@@ -0,0 +1,272 @@
1
+ #!/usr/bin/env node
2
+ import { s as W, a as C, S as N } from "./chunk-T2M37SMK-Br8mK30k.js";
3
+ import { l as P } from "./chunk-IHYUGLNO-DJcRQIf7.js";
4
+ import { G as U } from "./chunk-EOAU2GW5-CpRNAcjo.js";
5
+ import { _ as u, y as t, z, A as S, C as F, L as T, aE as O, aK as J, S as X } from "./console-CoE5Qzyz.js";
6
+ import "./chunk-TGZYFRKZ-BYBLXoJz.js";
7
+ var L = {}, D = /* @__PURE__ */ u((e, i) => {
8
+ L[e] = i;
9
+ }, "set"), Y = /* @__PURE__ */ u((e) => L[e], "get"), G = /* @__PURE__ */ u(() => Object.keys(L), "keys"), I = /* @__PURE__ */ u(() => G().length, "size"), $ = {
10
+ get: Y,
11
+ set: D,
12
+ keys: G,
13
+ size: I
14
+ }, j = /* @__PURE__ */ u((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), q = /* @__PURE__ */ u((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), K = /* @__PURE__ */ u((e, i) => {
15
+ const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), o = d.node().getBBox();
16
+ return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", o.width + 2 * t().state.padding).attr("height", o.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
17
+ }, "drawSimpleState"), Z = /* @__PURE__ */ u((e, i) => {
18
+ const d = /* @__PURE__ */ u(function(l, B, m) {
19
+ const k = l.append("tspan").attr("x", 2 * t().state.padding).text(B);
20
+ m || k.attr("dy", t().state.textHeight);
21
+ }, "addTspan"), r = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), g = r.height, x = e.append("text").attr("x", t().state.padding).attr(
22
+ "y",
23
+ g + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
24
+ ).attr("class", "state-description");
25
+ let a = !0, s = !0;
26
+ i.descriptions.forEach(function(l) {
27
+ a || (d(x, l, s), s = !1), a = !1;
28
+ });
29
+ const y = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + g + t().state.dividerMargin / 2).attr("y2", t().state.padding + g + t().state.dividerMargin / 2).attr("class", "descr-divider"), p = x.node().getBBox(), c = Math.max(p.width, r.width);
30
+ return y.attr("x2", c + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c + 2 * t().state.padding).attr("height", p.height + g + 2 * t().state.padding).attr("rx", t().state.radius), e;
31
+ }, "drawDescrState"), Q = /* @__PURE__ */ u((e, i, d) => {
32
+ const o = t().state.padding, r = 2 * t().state.padding, g = e.node().getBBox(), x = g.width, a = g.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), p = s.node().getBBox().width + r;
33
+ let c = Math.max(p, x);
34
+ c === x && (c = c + r);
35
+ let l;
36
+ const B = e.node().getBBox();
37
+ i.doc, l = a - o, p > x && (l = (x - c) / 2 + o), Math.abs(a - B.x) < o && p > x && (l = a - (p - x) / 2);
38
+ const m = 1 - t().state.textHeight;
39
+ return e.insert("rect", ":first-child").attr("x", l).attr("y", m).attr("class", d ? "alt-composit" : "composit").attr("width", c).attr(
40
+ "height",
41
+ B.height + t().state.textHeight + t().state.titleShift + 1
42
+ ).attr("rx", "0"), s.attr("x", l + o), p <= x && s.attr("x", a + (c - r) / 2 - p / 2 + o), e.insert("rect", ":first-child").attr("x", l).attr(
43
+ "y",
44
+ t().state.titleShift - t().state.textHeight - t().state.padding
45
+ ).attr("width", c).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", l).attr(
46
+ "y",
47
+ t().state.titleShift - t().state.textHeight - t().state.padding
48
+ ).attr("width", c).attr("height", B.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
49
+ }, "addTitleAndBox"), V = /* @__PURE__ */ u((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
50
+ "cx",
51
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
52
+ ).attr(
53
+ "cy",
54
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
55
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), tt = /* @__PURE__ */ u((e, i) => {
56
+ let d = t().state.forkWidth, o = t().state.forkHeight;
57
+ if (i.parentId) {
58
+ let r = d;
59
+ d = o, o = r;
60
+ }
61
+ return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", o).attr("x", t().state.padding).attr("y", t().state.padding);
62
+ }, "drawForkJoinState"), et = /* @__PURE__ */ u((e, i, d, o) => {
63
+ let r = 0;
64
+ const g = o.append("text");
65
+ g.style("text-anchor", "start"), g.attr("class", "noteText");
66
+ let x = e.replace(/\r\n/g, "<br/>");
67
+ x = x.replace(/\n/g, "<br/>");
68
+ const a = x.split(T.lineBreakRegex);
69
+ let s = 1.25 * t().state.noteMargin;
70
+ for (const y of a) {
71
+ const p = y.trim();
72
+ if (p.length > 0) {
73
+ const c = g.append("tspan");
74
+ if (c.text(p), s === 0) {
75
+ const l = c.node().getBBox();
76
+ s += l.height;
77
+ }
78
+ r += s, c.attr("x", i + t().state.noteMargin), c.attr("y", d + r + 1.25 * t().state.noteMargin);
79
+ }
80
+ }
81
+ return { textWidth: g.node().getBBox().width, textHeight: r };
82
+ }, "_drawLongText"), at = /* @__PURE__ */ u((e, i) => {
83
+ i.attr("class", "state-note");
84
+ const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), o = i.append("g"), { textWidth: r, textHeight: g } = et(e, 0, 0, o);
85
+ return d.attr("height", g + 2 * t().state.noteMargin), d.attr("width", r + t().state.noteMargin * 2), d;
86
+ }, "drawNote"), _ = /* @__PURE__ */ u(function(e, i) {
87
+ const d = i.id, o = {
88
+ id: d,
89
+ label: i.id,
90
+ width: 0,
91
+ height: 0
92
+ }, r = e.append("g").attr("id", d).attr("class", "stateGroup");
93
+ i.type === "start" && j(r), i.type === "end" && V(r), (i.type === "fork" || i.type === "join") && tt(r, i), i.type === "note" && at(i.note.text, r), i.type === "divider" && q(r), i.type === "default" && i.descriptions.length === 0 && K(r, i), i.type === "default" && i.descriptions.length > 0 && Z(r, i);
94
+ const g = r.node().getBBox();
95
+ return o.width = g.width + 2 * t().state.padding, o.height = g.height + 2 * t().state.padding, $.set(d, o), o;
96
+ }, "drawState"), A = 0, it = /* @__PURE__ */ u(function(e, i, d) {
97
+ const o = /* @__PURE__ */ u(function(s) {
98
+ switch (s) {
99
+ case N.relationType.AGGREGATION:
100
+ return "aggregation";
101
+ case N.relationType.EXTENSION:
102
+ return "extension";
103
+ case N.relationType.COMPOSITION:
104
+ return "composition";
105
+ case N.relationType.DEPENDENCY:
106
+ return "dependency";
107
+ }
108
+ }, "getRelationType");
109
+ i.points = i.points.filter((s) => !Number.isNaN(s.y));
110
+ const r = i.points, g = O().x(function(s) {
111
+ return s.x;
112
+ }).y(function(s) {
113
+ return s.y;
114
+ }).curve(J), x = e.append("path").attr("d", g(r)).attr("id", "edge" + A).attr("class", "transition");
115
+ let a = "";
116
+ if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), x.attr(
117
+ "marker-end",
118
+ "url(" + a + "#" + o(N.relationType.DEPENDENCY) + "End)"
119
+ ), d.title !== void 0) {
120
+ const s = e.append("g").attr("class", "stateLabel"), { x: y, y: p } = X.calcLabelPosition(i.points), c = T.getRows(d.title);
121
+ let l = 0;
122
+ const B = [];
123
+ let m = 0, k = 0;
124
+ for (let f = 0; f <= c.length; f++) {
125
+ const h = s.append("text").attr("text-anchor", "middle").text(c[f]).attr("x", y).attr("y", p + l), w = h.node().getBBox();
126
+ m = Math.max(m, w.width), k = Math.min(k, w.x), S.info(w.x, y, p + l), l === 0 && (l = h.node().getBBox().height, S.info("Title height", l, p)), B.push(h);
127
+ }
128
+ let E = l * c.length;
129
+ if (c.length > 1) {
130
+ const f = (c.length - 1) * l * 0.5;
131
+ B.forEach((h, w) => h.attr("y", p + w * l - f)), E = l * c.length;
132
+ }
133
+ const n = s.node().getBBox();
134
+ s.insert("rect", ":first-child").attr("class", "box").attr("x", y - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(n);
135
+ }
136
+ A++;
137
+ }, "drawEdge"), b, H = {}, nt = /* @__PURE__ */ u(function() {
138
+ }, "setConf"), rt = /* @__PURE__ */ u(function(e) {
139
+ 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");
140
+ }, "insertMarkers"), st = /* @__PURE__ */ u(function(e, i, d, o) {
141
+ b = t().state;
142
+ const r = t().securityLevel;
143
+ let g;
144
+ r === "sandbox" && (g = z("#i" + i));
145
+ const x = r === "sandbox" ? z(g.nodes()[0].contentDocument.body) : z("body"), a = r === "sandbox" ? g.nodes()[0].contentDocument : document;
146
+ S.debug("Rendering diagram " + e);
147
+ const s = x.select(`[id='${i}']`);
148
+ rt(s);
149
+ const y = o.db.getRootDoc();
150
+ R(y, s, void 0, !1, x, a, o);
151
+ const p = b.padding, c = s.node().getBBox(), l = c.width + p * 2, B = c.height + p * 2, m = l * 1.75;
152
+ F(s, B, m, b.useMaxWidth), s.attr(
153
+ "viewBox",
154
+ `${c.x - b.padding} ${c.y - b.padding} ` + l + " " + B
155
+ );
156
+ }, "draw"), dt = /* @__PURE__ */ u((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ u((e, i, d, o, r, g, x) => {
157
+ const a = new U({
158
+ compound: !0,
159
+ multigraph: !0
160
+ });
161
+ let s, y = !0;
162
+ for (s = 0; s < e.length; s++)
163
+ if (e[s].stmt === "relation") {
164
+ y = !1;
165
+ break;
166
+ }
167
+ d ? a.setGraph({
168
+ rankdir: "LR",
169
+ multigraph: !0,
170
+ compound: !0,
171
+ // acyclicer: 'greedy',
172
+ ranker: "tight-tree",
173
+ ranksep: y ? 1 : b.edgeLengthFactor,
174
+ nodeSep: y ? 1 : 50,
175
+ isMultiGraph: !0
176
+ // ranksep: 5,
177
+ // nodesep: 1
178
+ }) : a.setGraph({
179
+ rankdir: "TB",
180
+ multigraph: !0,
181
+ compound: !0,
182
+ // isCompound: true,
183
+ // acyclicer: 'greedy',
184
+ // ranker: 'longest-path'
185
+ ranksep: y ? 1 : b.edgeLengthFactor,
186
+ nodeSep: y ? 1 : 50,
187
+ ranker: "tight-tree",
188
+ // ranker: 'network-simplex'
189
+ isMultiGraph: !0
190
+ }), a.setDefaultEdgeLabel(function() {
191
+ return {};
192
+ });
193
+ const p = x.db.getStates(), c = x.db.getRelations(), l = Object.keys(p);
194
+ for (const n of l) {
195
+ const f = p[n];
196
+ d && (f.parentId = d);
197
+ let h;
198
+ if (f.doc) {
199
+ let w = i.append("g").attr("id", f.id).attr("class", "stateGroup");
200
+ h = R(f.doc, w, f.id, !o, r, g, x);
201
+ {
202
+ w = Q(w, f, o);
203
+ let v = w.node().getBBox();
204
+ h.width = v.width, h.height = v.height + b.padding / 2, H[f.id] = { y: b.compositTitleSize };
205
+ }
206
+ } else
207
+ h = _(i, f, a);
208
+ if (f.note) {
209
+ const w = {
210
+ descriptions: [],
211
+ id: f.id + "-note",
212
+ note: f.note,
213
+ type: "note"
214
+ }, v = _(i, w, a);
215
+ f.note.position === "left of" ? (a.setNode(h.id + "-note", v), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", v)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
216
+ } else
217
+ a.setNode(h.id, h);
218
+ }
219
+ S.debug("Count=", a.nodeCount(), a);
220
+ let B = 0;
221
+ c.forEach(function(n) {
222
+ B++, S.debug("Setting edge", n), a.setEdge(
223
+ n.id1,
224
+ n.id2,
225
+ {
226
+ relation: n,
227
+ width: dt(n.title),
228
+ height: b.labelHeight * T.getRows(n.title).length,
229
+ labelpos: "c"
230
+ },
231
+ "id" + B
232
+ );
233
+ }), P(a), S.debug("Graph after layout", a.nodes());
234
+ const m = i.node();
235
+ a.nodes().forEach(function(n) {
236
+ n !== void 0 && a.node(n) !== void 0 ? (S.warn("Node " + n + ": " + JSON.stringify(a.node(n))), r.select("#" + m.id + " #" + n).attr(
237
+ "transform",
238
+ "translate(" + (a.node(n).x - a.node(n).width / 2) + "," + (a.node(n).y + (H[n] ? H[n].y : 0) - a.node(n).height / 2) + " )"
239
+ ), r.select("#" + m.id + " #" + n).attr("data-x-shift", a.node(n).x - a.node(n).width / 2), g.querySelectorAll("#" + m.id + " #" + n + " .divider").forEach((h) => {
240
+ const w = h.parentElement;
241
+ let v = 0, M = 0;
242
+ w && (w.parentElement && (v = w.parentElement.getBBox().width), M = parseInt(w.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", v - M - 8);
243
+ })) : S.debug("No Node " + n + ": " + JSON.stringify(a.node(n)));
244
+ });
245
+ let k = m.getBBox();
246
+ a.edges().forEach(function(n) {
247
+ n !== void 0 && a.edge(n) !== void 0 && (S.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(a.edge(n))), it(i, a.edge(n), a.edge(n).relation));
248
+ }), k = m.getBBox();
249
+ const E = {
250
+ id: d || "root",
251
+ label: d || "root",
252
+ width: 0,
253
+ height: 0
254
+ };
255
+ return E.width = k.width + 2 * b.padding, E.height = k.height + 2 * b.padding, S.debug("Doc rendered", E, a), E;
256
+ }, "renderDoc"), ot = {
257
+ setConf: nt,
258
+ draw: st
259
+ }, xt = {
260
+ parser: C,
261
+ get db() {
262
+ return new N(1);
263
+ },
264
+ renderer: ot,
265
+ styles: W,
266
+ init: /* @__PURE__ */ u((e) => {
267
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
268
+ }, "init")
269
+ };
270
+ export {
271
+ xt as diagram
272
+ };
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ import { s as a, b as r, a as t, S as s } from "./chunk-T2M37SMK-Br8mK30k.js";
3
+ import { _ as i } from "./console-CoE5Qzyz.js";
4
+ var n = {
5
+ parser: t,
6
+ get db() {
7
+ return new s(2);
8
+ },
9
+ renderer: r,
10
+ styles: a,
11
+ init: /* @__PURE__ */ i((e) => {
12
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
13
+ }, "init")
14
+ };
15
+ export {
16
+ n as diagram
17
+ };
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { ae as ee, z as re } from "./console-DK0gDzNQ.js";
2
+ import { cD as ee, cC as re } from "./console-CoE5Qzyz.js";
3
3
  import ne from "node:child_process";
4
4
  import D from "node:path";
5
5
  import L from "node:fs";
6
6
  import R from "node:process";
7
7
  import { PassThrough as te } from "node:stream";
8
- import { J as se } from "./main-CiUaVPC2.js";
8
+ import { J as se } from "./main-CtwgALCc.js";
9
9
  var S = { exports: {} }, T, k;
10
10
  function oe() {
11
11
  if (k) return T;
@@ -150,20 +150,20 @@ function ae() {
150
150
  };
151
151
  return q = o, o.sync = f, q;
152
152
  }
153
- var b = { exports: {} }, z;
153
+ var b = { exports: {} }, U;
154
154
  function ue() {
155
- if (z) return b.exports;
156
- z = 1;
155
+ if (U) return b.exports;
156
+ U = 1;
157
157
  const c = (t = {}) => {
158
158
  const a = t.env || process.env;
159
159
  return (t.platform || process.platform) !== "win32" ? "PATH" : Object.keys(a).reverse().find((u) => u.toUpperCase() === "PATH") || "Path";
160
160
  };
161
161
  return b.exports = c, b.exports.default = c, b.exports;
162
162
  }
163
- var N, U;
163
+ var N, z;
164
164
  function fe() {
165
- if (U) return N;
166
- U = 1;
165
+ if (z) return N;
166
+ z = 1;
167
167
  const c = D, t = ae(), a = ue();
168
168
  function n(e, o) {
169
169
  const f = e.options.env || process.env, i = process.cwd(), s = e.options.cwd != null, r = s && process.chdir !== void 0 && !process.chdir.disabled;
package/dist/storybook.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { aa as r, aD as a, as as c, aE as d, ay as f, az as x, ak as b, ax as I } from "./console-DK0gDzNQ.js";
2
+ import { n as r, a, B as c, G as d, c as f, m as x, f as b, p as I } from "./console-CoE5Qzyz.js";
3
3
  import { stdout as s } from "node:process";
4
4
  import { parseArgs as w } from "node:util";
5
5
  function D() {
@@ -466,7 +466,7 @@ function B() {
466
466
  }
467
467
  };
468
468
  }
469
- function k() {
469
+ function U() {
470
470
  const n = r(), t = [];
471
471
  for (let e = 0; e < 5; e++)
472
472
  t.push(a());
@@ -599,7 +599,7 @@ main()
599
599
  }
600
600
  };
601
601
  }
602
- function U() {
602
+ function k() {
603
603
  const n = r(), t = [];
604
604
  for (let e = 0; e < 6; e++)
605
605
  t.push(a());
@@ -1290,7 +1290,7 @@ export const authMiddleware = async (req, res, next) => {
1290
1290
  }
1291
1291
  };
1292
1292
  }
1293
- function E() {
1293
+ function A() {
1294
1294
  const n = r(), t = [];
1295
1295
  for (let e = 0; e < 5; e++)
1296
1296
  t.push(a());
@@ -1463,7 +1463,7 @@ function E() {
1463
1463
  }
1464
1464
  };
1465
1465
  }
1466
- function A() {
1466
+ function E() {
1467
1467
  const n = r(), t = [];
1468
1468
  for (let e = 0; e < 5; e++)
1469
1469
  t.push(a());
@@ -2113,14 +2113,14 @@ const p = [
2113
2113
  D(),
2114
2114
  v(),
2115
2115
  B(),
2116
- k(),
2117
2116
  U(),
2117
+ k(),
2118
2118
  R(),
2119
2119
  S(),
2120
2120
  T(),
2121
2121
  C(),
2122
- E(),
2123
2122
  A(),
2123
+ E(),
2124
2124
  M(),
2125
2125
  j(),
2126
2126
  P(),