@blueking/ai-blueking 2.1.4-beta.7 → 2.1.4-beta.8

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 (105) hide show
  1. package/dist/standalone/_baseFor-DZ1vnh4H.js +393 -0
  2. package/dist/standalone/arc-WNacHY26.js +80 -0
  3. package/dist/standalone/architecture-YZFGNWBL-pIa_tKdA.js +3 -0
  4. package/dist/standalone/architectureDiagram-Q4EWVU46-Bfam8Fg3.js +4057 -0
  5. package/dist/standalone/array-CWNufkl9.js +6 -0
  6. package/dist/standalone/blockDiagram-DXYQGD6D-vAb9uyF5.js +3033 -0
  7. package/dist/standalone/c4Diagram-AHTNJAMY-BWACU0ER.js +2961 -0
  8. package/dist/standalone/channel-Br5ChI8U.js +5 -0
  9. package/dist/standalone/chunk-2KRD3SAO-Deh6AASy.js +23 -0
  10. package/dist/standalone/chunk-336JU56O-CFKWNcxR.js +49 -0
  11. package/dist/standalone/chunk-426QAEUC-D_wKNd3w.js +9 -0
  12. package/dist/standalone/chunk-4BX2VUAB-DKC_OBWg.js +8 -0
  13. package/dist/standalone/chunk-4TB4RGXK-HiVG7T1A.js +3254 -0
  14. package/dist/standalone/chunk-55IACEB6-DBivnNb2.js +8 -0
  15. package/dist/standalone/chunk-5FUZZQ4R-tiEjqlP4.js +3638 -0
  16. package/dist/standalone/chunk-5PVQY5BW-BCjrVrWB.js +1299 -0
  17. package/dist/standalone/chunk-67CJDMHE-BX09W6oy.js +23 -0
  18. package/dist/standalone/chunk-7N4EOEYR-G144j5Vc.js +35 -0
  19. package/dist/standalone/chunk-AA7GKIK3-Dx9YCoJ-.js +30 -0
  20. package/dist/standalone/chunk-BSJP7CBP-DE8WR0MI.js +82 -0
  21. package/dist/standalone/chunk-CIAEETIT-Bv86XVLB.js +23 -0
  22. package/dist/standalone/chunk-EDXVE4YY-DE9KzYM-.js +25 -0
  23. package/dist/standalone/chunk-ENJZ2VHE-DlxIC-A3.js +560 -0
  24. package/dist/standalone/chunk-FMBD7UC4-DCkBrKFO.js +5 -0
  25. package/dist/standalone/chunk-FOC6F5B3-C7hwrEZJ.js +23 -0
  26. package/dist/standalone/chunk-ICPOFSXX-B9JXAgJU.js +2772 -0
  27. package/dist/standalone/chunk-K5T4RW27-T6hJxJM0.js +16070 -0
  28. package/dist/standalone/chunk-KGLVRYIC-C0JPhrjn.js +23 -0
  29. package/dist/standalone/chunk-LIHQZDEY-CiavnvWh.js +64 -0
  30. package/dist/standalone/chunk-ORNJ4GCN-BtJ79bik.js +31 -0
  31. package/dist/standalone/chunk-OYMX7WX6-D2UHnmfD.js +2014 -0
  32. package/dist/standalone/chunk-QZHKN3VN-DhzThSvb.js +15 -0
  33. package/dist/standalone/chunk-U2HBQHQK-75Isf1R4.js +1896 -0
  34. package/dist/standalone/chunk-WQLz0Won.js +20 -0
  35. package/dist/standalone/chunk-X2U36JSP-DSzducJI.js +67 -0
  36. package/dist/standalone/chunk-XPW4576I-BFhmu0d4.js +1146 -0
  37. package/dist/standalone/chunk-YZCP3GAM-90EaSO-2.js +60 -0
  38. package/dist/standalone/chunk-ZZ45TVLE-DUagTZ9d.js +32 -0
  39. package/dist/standalone/classDiagram-6PBFFD2Q-Bwt78q4N.js +29 -0
  40. package/dist/standalone/classDiagram-v2-HSJHXN6E-B2qI9-xf.js +29 -0
  41. package/dist/standalone/clone-CBw-BHXl.js +8 -0
  42. package/dist/standalone/cose-bilkent-S5V4N54A-DFJ1nlog.js +2250 -0
  43. package/dist/standalone/cytoscape.esm-DdhenceR.js +18103 -0
  44. package/dist/standalone/dagre-KV5264BT-CXTBtAae.js +293 -0
  45. package/dist/standalone/dagre-kfvGmNUa.js +1606 -0
  46. package/dist/standalone/defaultLocale-bckJcYh1.js +201 -0
  47. package/dist/standalone/diagram-5BDNPKRD--gLHDKg-.js +101 -0
  48. package/dist/standalone/diagram-G4DWMVQ6-BwLE9Hsf.js +524 -0
  49. package/dist/standalone/diagram-MMDJMWI5-CoilYxa0.js +213 -0
  50. package/dist/standalone/diagram-TYMM5635-BupwRdr6.js +133 -0
  51. package/dist/standalone/dist-Dlj1jr8W.js +59 -0
  52. package/dist/standalone/erDiagram-SMLLAGMA-tIdn6ZCM.js +1700 -0
  53. package/dist/standalone/flatten-CXxC4cn2.js +40 -0
  54. package/dist/standalone/flowDiagram-DWJPFMVM-C86bLTAY.js +4146 -0
  55. package/dist/standalone/ganttDiagram-T4ZO3ILL-BT23lv_X.js +3077 -0
  56. package/dist/standalone/gitGraph-7Q5UKJZL-C-7nG8PF.js +3 -0
  57. package/dist/standalone/gitGraphDiagram-UUTBAWPF-DT1BGQsP.js +728 -0
  58. package/dist/standalone/graphlib-DrXiQBFg.js +373 -0
  59. package/dist/standalone/index.es.min.js +59705 -0
  60. package/dist/standalone/index.iife.min.js +3502 -0
  61. package/dist/standalone/index.umd.min.js +3502 -0
  62. package/dist/standalone/info-OMHHGYJF-BOS7mrON.js +3 -0
  63. package/dist/standalone/infoDiagram-42DDH7IO-Dx7LFK0B.js +19 -0
  64. package/dist/standalone/init-B75p2clj.js +15 -0
  65. package/dist/standalone/isEmpty-CVG4Bj-P.js +35 -0
  66. package/dist/standalone/ishikawaDiagram-UXIWVN3A-CX4cX3qb.js +718 -0
  67. package/dist/standalone/journeyDiagram-VCZTEJTY-BCvxmmFn.js +883 -0
  68. package/dist/standalone/kanban-definition-6JOO6SKY-SVINWaiM.js +973 -0
  69. package/dist/standalone/katex-CKrw0rbA.js +22016 -0
  70. package/dist/standalone/line-BF1XS-Ng.js +34 -0
  71. package/dist/standalone/linear-DGQDIL28.js +289 -0
  72. package/dist/standalone/mermaid-parser.core-Blz-Qy2h.js +69 -0
  73. package/dist/standalone/mermaid.core-CHTh1JGx.js +944 -0
  74. package/dist/standalone/mindmap-definition-QFDTVHPH-1Trzro3y.js +1009 -0
  75. package/dist/standalone/ordinal-F3U6aXtP.js +65 -0
  76. package/dist/standalone/packet-4T2RLAQJ-ai5Omp1h.js +3 -0
  77. package/dist/standalone/path-Dm3C8WEs.js +85 -0
  78. package/dist/standalone/pie-ZZUOXDRM-Df1rG6QC.js +3 -0
  79. package/dist/standalone/pieDiagram-DEJITSTG-D5Omb898.js +165 -0
  80. package/dist/standalone/purify.es-CZ_RvYUu.js +549 -0
  81. package/dist/standalone/quadrantDiagram-34T5L4WZ-Ct4g9T4o.js +1974 -0
  82. package/dist/standalone/radar-PYXPWWZC-B2t6k6Fg.js +3 -0
  83. package/dist/standalone/reduce-DbMsJ4nx.js +532 -0
  84. package/dist/standalone/requirementDiagram-MS252O5E-CP0BUgnz.js +2221 -0
  85. package/dist/standalone/rough.esm-UCEI3PYn.js +1352 -0
  86. package/dist/standalone/sankeyDiagram-XADWPNL6-D6C7yZ3k.js +920 -0
  87. package/dist/standalone/sequenceDiagram-FGHM5R23-KeodespT.js +4157 -0
  88. package/dist/standalone/src-CFVe5TPD.js +2146 -0
  89. package/dist/standalone/stateDiagram-FHFEXIEX-DAupoS9U.js +217 -0
  90. package/dist/standalone/stateDiagram-v2-QKLJ7IA2-C1Lw_i_z.js +27 -0
  91. package/dist/standalone/style.css +1 -0
  92. package/dist/standalone/timeline-definition-GMOUNBTQ-Cwhj84lX.js +1068 -0
  93. package/dist/standalone/treeView-SZITEDCU-BnoMeJSb.js +3 -0
  94. package/dist/standalone/treemap-W4RFUUIX-B38XFBZF.js +3 -0
  95. package/dist/standalone/vennDiagram-DHZGUBPP-_1PHloeO.js +1858 -0
  96. package/dist/standalone/wardley-RL74JXVD-bB8BBy_Y.js +3 -0
  97. package/dist/standalone/wardleyDiagram-NUSXRM2D-DRLCx-qh.js +578 -0
  98. package/dist/standalone/xychartDiagram-5P7HB3ND-Bz2-4Ufi.js +2044 -0
  99. package/dist/standalone-mount-core.d.ts +34 -0
  100. package/dist/standalone-mount-core.d.ts.map +1 -0
  101. package/dist/standalone-mount.d.ts +14 -0
  102. package/dist/standalone-mount.d.ts.map +1 -0
  103. package/dist/standalone.d.ts +8 -0
  104. package/dist/standalone.d.ts.map +1 -0
  105. package/package.json +12 -3
@@ -0,0 +1,944 @@
1
+ import { t as e } from "./purify.es-CZ_RvYUu.js";
2
+ import { t } from "./isEmpty-CVG4Bj-P.js";
3
+ import { _ as n, g as r, h as i, p as a } from "./src-CFVe5TPD.js";
4
+ import { F as o, G as s, H as c, J as l, M as u, N as d, S as f, T as p, X as m, Y as h, c as g, f as _, g as v, h as y, l as b, n as x, p as S, r as C, t as w, w as ee, x as T, y as E, z as te } from "./chunk-ICPOFSXX-B9JXAgJU.js";
5
+ import { a as D, d as ne, h as O, i as re, m as k, r as ie } from "./chunk-5PVQY5BW-BCjrVrWB.js";
6
+ import { t as ae } from "./chunk-426QAEUC-D_wKNd3w.js";
7
+ import { i as oe, o as se } from "./chunk-U2HBQHQK-75Isf1R4.js";
8
+ import "./chunk-BSJP7CBP-DE8WR0MI.js";
9
+ import "./chunk-ZZ45TVLE-DUagTZ9d.js";
10
+ import "./chunk-X2U36JSP-DSzducJI.js";
11
+ import "./chunk-5FUZZQ4R-tiEjqlP4.js";
12
+ import "./chunk-ENJZ2VHE-DlxIC-A3.js";
13
+ import { n as ce } from "./chunk-336JU56O-CFKWNcxR.js";
14
+ import { n as le, t as ue } from "./chunk-XPW4576I-BFhmu0d4.js";
15
+ //#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js
16
+ var de = "comm", fe = "rule", pe = "decl", me = "@import", he = "@namespace", ge = "@keyframes", _e = "@layer", ve = Math.abs, A = String.fromCharCode;
17
+ function ye(e) {
18
+ return e.trim();
19
+ }
20
+ function j(e, t, n) {
21
+ return e.replace(t, n);
22
+ }
23
+ function be(e, t, n) {
24
+ return e.indexOf(t, n);
25
+ }
26
+ function M(e, t) {
27
+ return e.charCodeAt(t) | 0;
28
+ }
29
+ function N(e, t, n) {
30
+ return e.slice(t, n);
31
+ }
32
+ function P(e) {
33
+ return e.length;
34
+ }
35
+ function xe(e) {
36
+ return e.length;
37
+ }
38
+ function F(e, t) {
39
+ return t.push(e), e;
40
+ }
41
+ //#endregion
42
+ //#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js
43
+ var I = 1, L = 1, Se = 0, R = 0, z = 0, B = "";
44
+ function V(e, t, n, r, i, a, o, s) {
45
+ return {
46
+ value: e,
47
+ root: t,
48
+ parent: n,
49
+ type: r,
50
+ props: i,
51
+ children: a,
52
+ line: I,
53
+ column: L,
54
+ length: o,
55
+ return: "",
56
+ siblings: s
57
+ };
58
+ }
59
+ function Ce() {
60
+ return z;
61
+ }
62
+ function we() {
63
+ return z = R > 0 ? M(B, --R) : 0, L--, z === 10 && (L = 1, I--), z;
64
+ }
65
+ function H() {
66
+ return z = R < Se ? M(B, R++) : 0, L++, z === 10 && (L = 1, I++), z;
67
+ }
68
+ function U() {
69
+ return M(B, R);
70
+ }
71
+ function W() {
72
+ return R;
73
+ }
74
+ function G(e, t) {
75
+ return N(B, e, t);
76
+ }
77
+ function K(e) {
78
+ switch (e) {
79
+ case 0:
80
+ case 9:
81
+ case 10:
82
+ case 13:
83
+ case 32: return 5;
84
+ case 33:
85
+ case 43:
86
+ case 44:
87
+ case 47:
88
+ case 62:
89
+ case 64:
90
+ case 126:
91
+ case 59:
92
+ case 123:
93
+ case 125: return 4;
94
+ case 58: return 3;
95
+ case 34:
96
+ case 39:
97
+ case 40:
98
+ case 91: return 2;
99
+ case 41:
100
+ case 93: return 1;
101
+ }
102
+ return 0;
103
+ }
104
+ function Te(e) {
105
+ return I = L = 1, Se = P(B = e), R = 0, [];
106
+ }
107
+ function Ee(e) {
108
+ return B = "", e;
109
+ }
110
+ function q(e) {
111
+ return ye(G(R - 1, J(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
112
+ }
113
+ function De(e) {
114
+ for (; (z = U()) && z < 33;) H();
115
+ return K(e) > 2 || K(z) > 3 ? "" : " ";
116
+ }
117
+ function Oe(e, t) {
118
+ for (; --t && H() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97););
119
+ return G(e, W() + (t < 6 && U() == 32 && H() == 32));
120
+ }
121
+ function J(e) {
122
+ for (; H();) switch (z) {
123
+ case e: return R;
124
+ case 34:
125
+ case 39:
126
+ e !== 34 && e !== 39 && J(z);
127
+ break;
128
+ case 40:
129
+ e === 41 && J(e);
130
+ break;
131
+ case 92:
132
+ H();
133
+ break;
134
+ }
135
+ return R;
136
+ }
137
+ function ke(e, t) {
138
+ for (; H() && e + z !== 57 && !(e + z === 84 && U() === 47););
139
+ return "/*" + G(t, R - 1) + "*" + A(e === 47 ? e : H());
140
+ }
141
+ function Ae(e) {
142
+ for (; !K(U());) H();
143
+ return G(e, R);
144
+ }
145
+ //#endregion
146
+ //#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js
147
+ function je(e) {
148
+ return Ee(Y("", null, null, null, [""], e = Te(e), 0, [0], e));
149
+ }
150
+ function Y(e, t, n, r, i, a, o, s, c) {
151
+ for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = H()) {
152
+ case 40: if (m != 108 && M(C, d - 1) == 58) {
153
+ be(C += j(q(v), "&", "&\f"), "&\f", ve(l ? s[l - 1] : 0)) != -1 && (_ = -1);
154
+ break;
155
+ }
156
+ case 34:
157
+ case 39:
158
+ case 91:
159
+ C += q(v);
160
+ break;
161
+ case 9:
162
+ case 10:
163
+ case 13:
164
+ case 32:
165
+ C += De(m);
166
+ break;
167
+ case 92:
168
+ C += Oe(W() - 1, 7);
169
+ continue;
170
+ case 47:
171
+ switch (U()) {
172
+ case 42:
173
+ case 47:
174
+ F(Ne(ke(H(), W()), t, n, c), c), (K(m || 1) == 5 || K(U() || 1) == 5) && P(C) && N(C, -1, void 0) !== " " && (C += " ");
175
+ break;
176
+ default: C += "/";
177
+ }
178
+ break;
179
+ case 123 * h: s[l++] = P(C) * _;
180
+ case 125 * h:
181
+ case 59:
182
+ case 0:
183
+ switch (v) {
184
+ case 0:
185
+ case 125: g = 0;
186
+ case 59 + u:
187
+ _ == -1 && (C = j(C, /\f/g, "")), p > 0 && (P(C) - d || h === 0 && m === 47) && F(p > 32 ? Pe(C + ";", r, n, d - 1, c) : Pe(j(C, " ", "") + ";", r, n, d - 2, c), c);
188
+ break;
189
+ case 59: C += ";";
190
+ default: if (F(S = Me(C, t, n, l, u, i, s, y, b = [], x = [], d, a), a), v === 123) if (u === 0) Y(C, t, S, S, b, a, d, s, x);
191
+ else {
192
+ switch (f) {
193
+ case 99: if (M(C, 3) === 110) break;
194
+ case 108: if (M(C, 2) === 97) break;
195
+ default: u = 0;
196
+ case 100:
197
+ case 109:
198
+ case 115:
199
+ }
200
+ u ? Y(e, S, S, r && F(Me(e, S, S, 0, 0, i, s, y, i, b = [], d, x), x), i, x, d, s, r ? b : x) : Y(C, S, S, S, [""], x, 0, s, x);
201
+ }
202
+ }
203
+ l = u = p = 0, h = _ = 1, y = C = "", d = o;
204
+ break;
205
+ case 58: d = 1 + P(C), p = m;
206
+ default:
207
+ if (h < 1) {
208
+ if (v == 123) --h;
209
+ else if (v == 125 && h++ == 0 && we() == 125) continue;
210
+ }
211
+ switch (C += A(v), v * h) {
212
+ case 38:
213
+ _ = u > 0 ? 1 : (C += "\f", -1);
214
+ break;
215
+ case 44:
216
+ s[l++] = (P(C) - 1) * _, _ = 1;
217
+ break;
218
+ case 64:
219
+ U() === 45 && (C += q(H())), f = U(), u = d = P(y = C += Ae(W())), v++;
220
+ break;
221
+ case 45: m === 45 && P(C) == 2 && (h = 0);
222
+ }
223
+ }
224
+ return a;
225
+ }
226
+ function Me(e, t, n, r, i, a, o, s, c, l, u, d) {
227
+ for (var f = i - 1, p = i === 0 ? a : [""], m = xe(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = N(e, f + 1, f = ve(g = o[h])), b = e; v < m; ++v) (b = ye(g > 0 ? p[v] + " " + y : j(y, /&\f/g, p[v]))) && (c[_++] = b);
228
+ return V(e, t, n, i === 0 ? fe : s, c, l, u, d);
229
+ }
230
+ function Ne(e, t, n, r) {
231
+ return V(e, t, n, de, A(Ce()), N(e, 2, -2), 0, r);
232
+ }
233
+ function Pe(e, t, n, r, i) {
234
+ return V(e, t, n, pe, N(e, 0, r), N(e, r + 1, -1), r, i);
235
+ }
236
+ //#endregion
237
+ //#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js
238
+ function Fe(e, t) {
239
+ for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
240
+ return n;
241
+ }
242
+ function Ie(e, t, n, r) {
243
+ switch (e.type) {
244
+ case _e: if (e.children.length) break;
245
+ case me:
246
+ case he:
247
+ case pe: return e.return = e.return || e.value;
248
+ case de: return "";
249
+ case ge: return e.return = e.value + "{" + Fe(e.children, r) + "}";
250
+ case fe: if (!P(e.value = e.props.join(","))) return "";
251
+ }
252
+ return P(n = Fe(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
253
+ }
254
+ //#endregion
255
+ //#region ../../node_modules/.pnpm/mermaid@11.14.0/node_modules/mermaid/dist/mermaid.core.mjs
256
+ var Le = "c4", Re = {
257
+ id: Le,
258
+ detector: /* @__PURE__ */ i((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
259
+ loader: /* @__PURE__ */ i(async () => {
260
+ let { diagram: e } = await import("./c4Diagram-AHTNJAMY-BWACU0ER.js");
261
+ return {
262
+ id: Le,
263
+ diagram: e
264
+ };
265
+ }, "loader")
266
+ }, ze = "flowchart", Be = {
267
+ id: ze,
268
+ detector: /* @__PURE__ */ i((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
269
+ loader: /* @__PURE__ */ i(async () => {
270
+ let { diagram: e } = await import("./flowDiagram-DWJPFMVM-C86bLTAY.js");
271
+ return {
272
+ id: ze,
273
+ diagram: e
274
+ };
275
+ }, "loader")
276
+ }, Ve = "flowchart-v2", He = {
277
+ id: Ve,
278
+ detector: /* @__PURE__ */ i((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"),
279
+ loader: /* @__PURE__ */ i(async () => {
280
+ let { diagram: e } = await import("./flowDiagram-DWJPFMVM-C86bLTAY.js");
281
+ return {
282
+ id: Ve,
283
+ diagram: e
284
+ };
285
+ }, "loader")
286
+ }, Ue = "er", We = {
287
+ id: Ue,
288
+ detector: /* @__PURE__ */ i((e) => /^\s*erDiagram/.test(e), "detector"),
289
+ loader: /* @__PURE__ */ i(async () => {
290
+ let { diagram: e } = await import("./erDiagram-SMLLAGMA-tIdn6ZCM.js");
291
+ return {
292
+ id: Ue,
293
+ diagram: e
294
+ };
295
+ }, "loader")
296
+ }, Ge = "gitGraph", Ke = {
297
+ id: Ge,
298
+ detector: /* @__PURE__ */ i((e) => /^\s*gitGraph/.test(e), "detector"),
299
+ loader: /* @__PURE__ */ i(async () => {
300
+ let { diagram: e } = await import("./gitGraphDiagram-UUTBAWPF-DT1BGQsP.js");
301
+ return {
302
+ id: Ge,
303
+ diagram: e
304
+ };
305
+ }, "loader")
306
+ }, qe = "gantt", Je = {
307
+ id: qe,
308
+ detector: /* @__PURE__ */ i((e) => /^\s*gantt/.test(e), "detector"),
309
+ loader: /* @__PURE__ */ i(async () => {
310
+ let { diagram: e } = await import("./ganttDiagram-T4ZO3ILL-BT23lv_X.js");
311
+ return {
312
+ id: qe,
313
+ diagram: e
314
+ };
315
+ }, "loader")
316
+ }, Ye = "info", Xe = {
317
+ id: Ye,
318
+ detector: /* @__PURE__ */ i((e) => /^\s*info/.test(e), "detector"),
319
+ loader: /* @__PURE__ */ i(async () => {
320
+ let { diagram: e } = await import("./infoDiagram-42DDH7IO-Dx7LFK0B.js");
321
+ return {
322
+ id: Ye,
323
+ diagram: e
324
+ };
325
+ }, "loader")
326
+ }, Ze = "pie", Qe = {
327
+ id: Ze,
328
+ detector: /* @__PURE__ */ i((e) => /^\s*pie/.test(e), "detector"),
329
+ loader: /* @__PURE__ */ i(async () => {
330
+ let { diagram: e } = await import("./pieDiagram-DEJITSTG-D5Omb898.js");
331
+ return {
332
+ id: Ze,
333
+ diagram: e
334
+ };
335
+ }, "loader")
336
+ }, $e = "quadrantChart", et = {
337
+ id: $e,
338
+ detector: /* @__PURE__ */ i((e) => /^\s*quadrantChart/.test(e), "detector"),
339
+ loader: /* @__PURE__ */ i(async () => {
340
+ let { diagram: e } = await import("./quadrantDiagram-34T5L4WZ-Ct4g9T4o.js");
341
+ return {
342
+ id: $e,
343
+ diagram: e
344
+ };
345
+ }, "loader")
346
+ }, tt = "xychart", nt = {
347
+ id: tt,
348
+ detector: /* @__PURE__ */ i((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
349
+ loader: /* @__PURE__ */ i(async () => {
350
+ let { diagram: e } = await import("./xychartDiagram-5P7HB3ND-Bz2-4Ufi.js");
351
+ return {
352
+ id: tt,
353
+ diagram: e
354
+ };
355
+ }, "loader")
356
+ }, rt = "requirement", it = {
357
+ id: rt,
358
+ detector: /* @__PURE__ */ i((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
359
+ loader: /* @__PURE__ */ i(async () => {
360
+ let { diagram: e } = await import("./requirementDiagram-MS252O5E-CP0BUgnz.js");
361
+ return {
362
+ id: rt,
363
+ diagram: e
364
+ };
365
+ }, "loader")
366
+ }, at = "sequence", ot = {
367
+ id: at,
368
+ detector: /* @__PURE__ */ i((e) => /^\s*sequenceDiagram/.test(e), "detector"),
369
+ loader: /* @__PURE__ */ i(async () => {
370
+ let { diagram: e } = await import("./sequenceDiagram-FGHM5R23-KeodespT.js");
371
+ return {
372
+ id: at,
373
+ diagram: e
374
+ };
375
+ }, "loader")
376
+ }, st = "class", ct = {
377
+ id: st,
378
+ detector: /* @__PURE__ */ i((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"),
379
+ loader: /* @__PURE__ */ i(async () => {
380
+ let { diagram: e } = await import("./classDiagram-6PBFFD2Q-Bwt78q4N.js");
381
+ return {
382
+ id: st,
383
+ diagram: e
384
+ };
385
+ }, "loader")
386
+ }, lt = "classDiagram", ut = {
387
+ id: lt,
388
+ detector: /* @__PURE__ */ i((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
389
+ loader: /* @__PURE__ */ i(async () => {
390
+ let { diagram: e } = await import("./classDiagram-v2-HSJHXN6E-B2qI9-xf.js");
391
+ return {
392
+ id: lt,
393
+ diagram: e
394
+ };
395
+ }, "loader")
396
+ }, dt = "state", ft = {
397
+ id: dt,
398
+ detector: /* @__PURE__ */ i((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"),
399
+ loader: /* @__PURE__ */ i(async () => {
400
+ let { diagram: e } = await import("./stateDiagram-FHFEXIEX-DAupoS9U.js");
401
+ return {
402
+ id: dt,
403
+ diagram: e
404
+ };
405
+ }, "loader")
406
+ }, pt = "stateDiagram", mt = {
407
+ id: pt,
408
+ detector: /* @__PURE__ */ i((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
409
+ loader: /* @__PURE__ */ i(async () => {
410
+ let { diagram: e } = await import("./stateDiagram-v2-QKLJ7IA2-C1Lw_i_z.js");
411
+ return {
412
+ id: pt,
413
+ diagram: e
414
+ };
415
+ }, "loader")
416
+ }, ht = "journey", gt = {
417
+ id: ht,
418
+ detector: /* @__PURE__ */ i((e) => /^\s*journey/.test(e), "detector"),
419
+ loader: /* @__PURE__ */ i(async () => {
420
+ let { diagram: e } = await import("./journeyDiagram-VCZTEJTY-BCvxmmFn.js");
421
+ return {
422
+ id: ht,
423
+ diagram: e
424
+ };
425
+ }, "loader")
426
+ }, _t = { draw: /* @__PURE__ */ i((e, t, n) => {
427
+ r.debug("rendering svg for syntax error\n");
428
+ let i = ae(t), a = i.append("g");
429
+ i.attr("viewBox", "0 0 2412 512"), g(i, 100, 512, !0), a.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), a.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), a.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), a.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), a.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), a.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
430
+ }, "draw") }, vt = _t, yt = {
431
+ db: {},
432
+ renderer: _t,
433
+ parser: { parse: /* @__PURE__ */ i(() => {}, "parse") }
434
+ }, bt = "flowchart-elk", xt = {
435
+ id: bt,
436
+ detector: /* @__PURE__ */ i((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
437
+ loader: /* @__PURE__ */ i(async () => {
438
+ let { diagram: e } = await import("./flowDiagram-DWJPFMVM-C86bLTAY.js");
439
+ return {
440
+ id: bt,
441
+ diagram: e
442
+ };
443
+ }, "loader")
444
+ }, St = "timeline", Ct = {
445
+ id: St,
446
+ detector: /* @__PURE__ */ i((e) => /^\s*timeline/.test(e), "detector"),
447
+ loader: /* @__PURE__ */ i(async () => {
448
+ let { diagram: e } = await import("./timeline-definition-GMOUNBTQ-Cwhj84lX.js");
449
+ return {
450
+ id: St,
451
+ diagram: e
452
+ };
453
+ }, "loader")
454
+ }, wt = "mindmap", Tt = {
455
+ id: wt,
456
+ detector: /* @__PURE__ */ i((e) => /^\s*mindmap/.test(e), "detector"),
457
+ loader: /* @__PURE__ */ i(async () => {
458
+ let { diagram: e } = await import("./mindmap-definition-QFDTVHPH-1Trzro3y.js");
459
+ return {
460
+ id: wt,
461
+ diagram: e
462
+ };
463
+ }, "loader")
464
+ }, Et = "kanban", Dt = {
465
+ id: Et,
466
+ detector: /* @__PURE__ */ i((e) => /^\s*kanban/.test(e), "detector"),
467
+ loader: /* @__PURE__ */ i(async () => {
468
+ let { diagram: e } = await import("./kanban-definition-6JOO6SKY-SVINWaiM.js");
469
+ return {
470
+ id: Et,
471
+ diagram: e
472
+ };
473
+ }, "loader")
474
+ }, Ot = "sankey", kt = {
475
+ id: Ot,
476
+ detector: /* @__PURE__ */ i((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
477
+ loader: /* @__PURE__ */ i(async () => {
478
+ let { diagram: e } = await import("./sankeyDiagram-XADWPNL6-D6C7yZ3k.js");
479
+ return {
480
+ id: Ot,
481
+ diagram: e
482
+ };
483
+ }, "loader")
484
+ }, At = "packet", jt = {
485
+ id: At,
486
+ detector: /* @__PURE__ */ i((e) => /^\s*packet(-beta)?/.test(e), "detector"),
487
+ loader: /* @__PURE__ */ i(async () => {
488
+ let { diagram: e } = await import("./diagram-TYMM5635-BupwRdr6.js");
489
+ return {
490
+ id: At,
491
+ diagram: e
492
+ };
493
+ }, "loader")
494
+ }, Mt = "radar", Nt = {
495
+ id: Mt,
496
+ detector: /* @__PURE__ */ i((e) => /^\s*radar-beta/.test(e), "detector"),
497
+ loader: /* @__PURE__ */ i(async () => {
498
+ let { diagram: e } = await import("./diagram-MMDJMWI5-CoilYxa0.js");
499
+ return {
500
+ id: Mt,
501
+ diagram: e
502
+ };
503
+ }, "loader")
504
+ }, Pt = "block", Ft = {
505
+ id: Pt,
506
+ detector: /* @__PURE__ */ i((e) => /^\s*block(-beta)?/.test(e), "detector"),
507
+ loader: /* @__PURE__ */ i(async () => {
508
+ let { diagram: e } = await import("./blockDiagram-DXYQGD6D-vAb9uyF5.js");
509
+ return {
510
+ id: Pt,
511
+ diagram: e
512
+ };
513
+ }, "loader")
514
+ }, It = "treeView", Lt = {
515
+ id: It,
516
+ detector: /* @__PURE__ */ i((e) => /^\s*treeView-beta/.test(e), "detector"),
517
+ loader: /* @__PURE__ */ i(async () => {
518
+ let { diagram: e } = await import("./diagram-5BDNPKRD--gLHDKg-.js");
519
+ return {
520
+ id: It,
521
+ diagram: e
522
+ };
523
+ }, "loader")
524
+ }, Rt = "architecture", zt = {
525
+ id: Rt,
526
+ detector: /* @__PURE__ */ i((e) => /^\s*architecture/.test(e), "detector"),
527
+ loader: /* @__PURE__ */ i(async () => {
528
+ let { diagram: e } = await import("./architectureDiagram-Q4EWVU46-Bfam8Fg3.js");
529
+ return {
530
+ id: Rt,
531
+ diagram: e
532
+ };
533
+ }, "loader")
534
+ }, Bt = "ishikawa", Vt = {
535
+ id: Bt,
536
+ detector: /* @__PURE__ */ i((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
537
+ loader: /* @__PURE__ */ i(async () => {
538
+ let { diagram: e } = await import("./ishikawaDiagram-UXIWVN3A-CX4cX3qb.js");
539
+ return {
540
+ id: Bt,
541
+ diagram: e
542
+ };
543
+ }, "loader")
544
+ }, Ht = "venn", Ut = {
545
+ id: Ht,
546
+ detector: /* @__PURE__ */ i((e) => /^\s*venn-beta/.test(e), "detector"),
547
+ loader: /* @__PURE__ */ i(async () => {
548
+ let { diagram: e } = await import("./vennDiagram-DHZGUBPP-_1PHloeO.js");
549
+ return {
550
+ id: Ht,
551
+ diagram: e
552
+ };
553
+ }, "loader")
554
+ }, Wt = "treemap", Gt = {
555
+ id: Wt,
556
+ detector: /* @__PURE__ */ i((e) => /^\s*treemap/.test(e), "detector"),
557
+ loader: /* @__PURE__ */ i(async () => {
558
+ let { diagram: e } = await import("./diagram-G4DWMVQ6-BwLE9Hsf.js");
559
+ return {
560
+ id: Wt,
561
+ diagram: e
562
+ };
563
+ }, "loader")
564
+ }, Kt = "wardley-beta", qt = {
565
+ id: Kt,
566
+ detector: /* @__PURE__ */ i((e) => /^\s*wardley-beta/i.test(e), "detector"),
567
+ loader: /* @__PURE__ */ i(async () => {
568
+ let { diagram: e } = await import("./wardleyDiagram-NUSXRM2D-DRLCx-qh.js");
569
+ return {
570
+ id: Kt,
571
+ diagram: e
572
+ };
573
+ }, "loader")
574
+ }, Jt = !1, X = /* @__PURE__ */ i(() => {
575
+ Jt || (Jt = !0, u("error", yt, (e) => e.toLowerCase().trim() === "error"), u("---", {
576
+ db: { clear: /* @__PURE__ */ i(() => {}, "clear") },
577
+ styles: {},
578
+ renderer: { draw: /* @__PURE__ */ i(() => {}, "draw") },
579
+ parser: { parse: /* @__PURE__ */ i(() => {
580
+ throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
581
+ }, "parse") },
582
+ init: /* @__PURE__ */ i(() => null, "init")
583
+ }, (e) => e.toLowerCase().trimStart().startsWith("---")), d(xt, Tt, zt), d(Re, Dt, ut, ct, We, Je, Xe, Qe, it, ot, He, Be, Ct, Ke, mt, ft, gt, et, kt, jt, nt, Ft, Lt, Nt, Vt, Gt, Ut, qt));
584
+ }, "addDiagrams"), Yt = /* @__PURE__ */ i(async () => {
585
+ r.debug("Loading registered diagrams");
586
+ let e = (await Promise.allSettled(Object.entries(S).map(async ([e, { detector: t, loader: n }]) => {
587
+ if (n) try {
588
+ T(e);
589
+ } catch {
590
+ try {
591
+ let { diagram: e, id: r } = await n();
592
+ u(r, e, t);
593
+ } catch (t) {
594
+ throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete S[e], t;
595
+ }
596
+ }
597
+ }))).filter((e) => e.status === "rejected");
598
+ if (e.length > 0) {
599
+ r.error(`Failed to load ${e.length} external diagrams`);
600
+ for (let t of e) r.error(t);
601
+ throw Error(`Failed to load ${e.length} external diagrams`);
602
+ }
603
+ }, "loadRegisteredDiagrams"), Xt = "graphics-document document";
604
+ function Zt(e, t) {
605
+ e.attr("role", Xt), t !== "" && e.attr("aria-roledescription", t);
606
+ }
607
+ i(Zt, "setA11yDiagramInfo");
608
+ function Qt(e, t, n, r) {
609
+ if (e.insert !== void 0) {
610
+ if (n) {
611
+ let t = `chart-desc-${r}`;
612
+ e.attr("aria-describedby", t), e.insert("desc", ":first-child").attr("id", t).text(n);
613
+ }
614
+ if (t) {
615
+ let n = `chart-title-${r}`;
616
+ e.attr("aria-labelledby", n), e.insert("title", ":first-child").attr("id", n).text(t);
617
+ }
618
+ }
619
+ }
620
+ i(Qt, "addSVGa11yTitleDescription");
621
+ var $t = class e {
622
+ constructor(e, t, n, r, i) {
623
+ this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
624
+ }
625
+ static {
626
+ i(this, "Diagram");
627
+ }
628
+ static async fromText(t, n = {}) {
629
+ let r = E(), i = _(t, r);
630
+ t = D(t) + "\n";
631
+ try {
632
+ T(i);
633
+ } catch {
634
+ let e = f(i);
635
+ if (!e) throw new w(`Diagram ${i} not found.`);
636
+ let { id: t, diagram: n } = await e();
637
+ u(t, n);
638
+ }
639
+ let { db: a, parser: o, renderer: s, init: c } = T(i);
640
+ return o.parser && (o.parser.yy = a), a.clear?.(), c?.(r), n.title && a.setDiagramTitle?.(n.title), await o.parse(t), new e(i, t, a, o, s);
641
+ }
642
+ async render(e, t) {
643
+ await this.renderer.draw(this.text, e, t, this);
644
+ }
645
+ getParser() {
646
+ return this.parser;
647
+ }
648
+ getType() {
649
+ return this.type;
650
+ }
651
+ }, en = [], tn = /* @__PURE__ */ i(() => {
652
+ en.forEach((e) => {
653
+ e();
654
+ }), en = [];
655
+ }, "attachFunctions"), nn = /* @__PURE__ */ i((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
656
+ function rn(e) {
657
+ let t = e.match(v);
658
+ if (!t) return {
659
+ text: e,
660
+ metadata: {}
661
+ };
662
+ let n = le(t[1], { schema: ue }) ?? {};
663
+ n = typeof n == "object" && !Array.isArray(n) ? n : {};
664
+ let r = {};
665
+ return n.displayMode && (r.displayMode = n.displayMode.toString()), n.title && (r.title = n.title.toString()), n.config && (r.config = n.config), {
666
+ text: e.slice(t[0].length),
667
+ metadata: r
668
+ };
669
+ }
670
+ i(rn, "extractFrontMatter");
671
+ var an = /* @__PURE__ */ i((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), on = /* @__PURE__ */ i((e) => {
672
+ let { text: t, metadata: n } = rn(e), { displayMode: r, title: i, config: a = {} } = n;
673
+ return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
674
+ title: i,
675
+ config: a,
676
+ text: t
677
+ };
678
+ }, "processFrontmatter"), sn = /* @__PURE__ */ i((e) => {
679
+ let t = O.detectInit(e) ?? {}, n = O.detectDirective(e, "wrap");
680
+ return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
681
+ text: k(e),
682
+ directive: t
683
+ };
684
+ }, "processDirectives");
685
+ function cn(e) {
686
+ let t = on(an(e)), n = sn(t.text), r = ie(t.config, n.directive);
687
+ return e = nn(n.text), {
688
+ code: e,
689
+ title: t.title,
690
+ config: r
691
+ };
692
+ }
693
+ i(cn, "preprocessDiagram");
694
+ function ln(e) {
695
+ let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
696
+ return btoa(n);
697
+ }
698
+ i(ln, "toBase64");
699
+ var un = 5e4, dn = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", fn = "sandbox", pn = "loose", mn = "http://www.w3.org/2000/svg", hn = "http://www.w3.org/1999/xlink", gn = "http://www.w3.org/1999/xhtml", _n = "100%", vn = "100%", yn = "border:0;margin:0;", bn = "margin:0", xn = "allow-top-navigation-by-user-activation allow-popups", Sn = "The \"iframe\" tag is not supported by your browser.", Cn = ["foreignobject"], wn = ["dominant-baseline"];
700
+ function Tn(e) {
701
+ let t = cn(e);
702
+ return o(), x(t.config ?? {}), t;
703
+ }
704
+ i(Tn, "processAndSetConfigs");
705
+ async function En(e, t) {
706
+ X();
707
+ try {
708
+ let { code: t, config: n } = Tn(e);
709
+ return {
710
+ diagramType: (await Ln(t)).type,
711
+ config: n
712
+ };
713
+ } catch (e) {
714
+ if (t?.suppressErrors) return !1;
715
+ throw e;
716
+ }
717
+ }
718
+ i(En, "parse");
719
+ var Dn = /* @__PURE__ */ i((e, t, n = []) => `
720
+ .${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"), On = /* @__PURE__ */ i((e, n = /* @__PURE__ */ new Map()) => {
721
+ let r = "";
722
+ if (e.themeCSS !== void 0 && (r += `
723
+ ${e.themeCSS}`), e.fontFamily !== void 0 && (r += `
724
+ :root { --mermaid-font-family: ${e.fontFamily}}`), e.altFontFamily !== void 0 && (r += `
725
+ :root { --mermaid-alt-font-family: ${e.altFontFamily}}`), n instanceof Map) {
726
+ let i = ee(e) ? ["> *", "span"] : [
727
+ "rect",
728
+ "polygon",
729
+ "ellipse",
730
+ "circle",
731
+ "path"
732
+ ];
733
+ n.forEach((e) => {
734
+ t(e.styles) || i.forEach((t) => {
735
+ r += Dn(e.id, t, e.styles);
736
+ }), t(e.textStyles) || (r += Dn(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))));
737
+ });
738
+ }
739
+ return r;
740
+ }, "createCssStyles"), kn = /* @__PURE__ */ i((e, t, n, r) => Fe(je(`${r}{${l(t, On(e, n), {
741
+ ...e.themeVariables,
742
+ theme: e.theme,
743
+ look: e.look
744
+ }, r)}}`), Ie), "createUserStyles"), An = /* @__PURE__ */ i((e = "", t, n) => {
745
+ let r = e;
746
+ return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = re(r), r = r.replace(/<br>/g, "<br/>"), r;
747
+ }, "cleanUpSvgCode"), jn = /* @__PURE__ */ i((e = "", t) => `<iframe style="width:${_n};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : vn};${yn}" src="data:text/html;charset=UTF-8;base64,${ln(`<body style="${bn}">${e}</body>`)}" sandbox="${xn}">
748
+ ${Sn}
749
+ </iframe>`, "putIntoIFrame"), Mn = /* @__PURE__ */ i((e, t, n, r, i) => {
750
+ let a = e.append("div");
751
+ a.attr("id", n), r && a.attr("style", r);
752
+ let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", mn);
753
+ return i && o.attr("xmlns:xlink", i), o.append("g"), e;
754
+ }, "appendDivSvgG");
755
+ function Nn(e, t) {
756
+ return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
757
+ }
758
+ i(Nn, "sandboxedIframe");
759
+ var Pn = /* @__PURE__ */ i((e, t, n, r) => {
760
+ e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
761
+ }, "removeExistingElements"), Fn = /* @__PURE__ */ i(async function(t, n, o) {
762
+ X();
763
+ let s = Tn(n);
764
+ n = s.code;
765
+ let c = E();
766
+ r.debug(c), n.length > (c?.maxTextSize ?? un) && (n = dn);
767
+ let l = "#" + t, u = "i" + t, d = "#" + u, f = "d" + t, p = "#" + f, m = /* @__PURE__ */ i(() => {
768
+ let e = a(g ? d : p).node();
769
+ e && "remove" in e && e.remove();
770
+ }, "removeTempElements"), h = a("body"), g = c.securityLevel === fn, _ = c.securityLevel === pn, v = c.fontFamily;
771
+ o === void 0 ? (Pn(document, t, f, u), g ? (h = a(Nn(a("body"), u).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = a("body"), Mn(h, t, f)) : (o && (o.innerHTML = ""), g ? (h = a(Nn(a(o), u).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = a(o), Mn(h, t, f, `font-family: ${v}`, hn));
772
+ let b, x;
773
+ try {
774
+ b = await $t.fromText(n, { title: s.title });
775
+ } catch (e) {
776
+ if (c.suppressErrorRendering) throw m(), e;
777
+ b = await $t.fromText("error"), x = e;
778
+ }
779
+ let S = h.select(p).node(), C = b.type, w = S.firstChild, ee = w.firstChild, T = b.renderer.getClasses?.(n, b), te = kn(c, C, T, l), D = document.createElement("style");
780
+ D.innerHTML = te, w.insertBefore(D, ee);
781
+ try {
782
+ await b.renderer.draw(n, t, "11.14.0", b);
783
+ } catch (e) {
784
+ throw c.suppressErrorRendering ? m() : vt.draw(n, t, "11.14.0"), e;
785
+ }
786
+ let ne = h.select(`${p} svg`), O = b.db.getAccTitle?.(), re = b.db.getAccDescription?.();
787
+ Rn(C, ne, O, re), h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", gn);
788
+ let k = h.select(p).node().innerHTML;
789
+ if (r.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), k = An(k, g, y(c.arrowMarkerAbsolute)), g) {
790
+ let e = h.select(p + " svg").node();
791
+ k = jn(k, e);
792
+ } else _ || (k = e.sanitize(k, {
793
+ ADD_TAGS: Cn,
794
+ ADD_ATTR: wn,
795
+ HTML_INTEGRATION_POINTS: { foreignobject: !0 }
796
+ }));
797
+ if (tn(), x) throw x;
798
+ return m(), {
799
+ diagramType: C,
800
+ svg: k,
801
+ bindFunctions: b.db.bindFunctions
802
+ };
803
+ }, "render");
804
+ function In(e = {}) {
805
+ let t = C({}, e);
806
+ t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), te(t), t?.theme && t.theme in h ? t.themeVariables = h[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = h.default.getThemeVariables(t.themeVariables)), n((typeof t == "object" ? s(t) : p()).logLevel), X();
807
+ }
808
+ i(In, "initialize");
809
+ var Ln = /* @__PURE__ */ i((e, t = {}) => {
810
+ let { code: n } = cn(e);
811
+ return $t.fromText(n, t);
812
+ }, "getDiagramFromText");
813
+ function Rn(e, t, n, r) {
814
+ Zt(t, e), Qt(t, n, r, t.attr("id"));
815
+ }
816
+ i(Rn, "addA11yInfo");
817
+ var Z = Object.freeze({
818
+ render: Fn,
819
+ parse: En,
820
+ getDiagramFromText: Ln,
821
+ initialize: In,
822
+ getConfig: E,
823
+ setConfig: c,
824
+ getSiteConfig: p,
825
+ updateSiteConfig: m,
826
+ reset: /* @__PURE__ */ i(() => {
827
+ o();
828
+ }, "reset"),
829
+ globalReset: /* @__PURE__ */ i(() => {
830
+ o(b);
831
+ }, "globalReset"),
832
+ defaultConfig: b
833
+ });
834
+ n(E().logLevel), o(E());
835
+ var zn = /* @__PURE__ */ i((e, t, n) => {
836
+ r.warn(e), ne(e) ? (n && n(e.str, e.hash), t.push({
837
+ ...e,
838
+ message: e.str,
839
+ error: e
840
+ })) : (n && n(e), e instanceof Error && t.push({
841
+ str: e.message,
842
+ message: e.message,
843
+ hash: e.name,
844
+ error: e
845
+ }));
846
+ }, "handleError"), Bn = /* @__PURE__ */ i(async function(e = { querySelector: ".mermaid" }) {
847
+ try {
848
+ await Vn(e);
849
+ } catch (t) {
850
+ if (ne(t) && r.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw r.error("Use the suppressErrors option to suppress these errors"), t;
851
+ }
852
+ }, "run"), Vn = /* @__PURE__ */ i(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
853
+ let i = Z.getConfig();
854
+ r.debug(`${e ? "" : "No "}Callback function found`);
855
+ let a;
856
+ if (n) a = n;
857
+ else if (t) a = document.querySelectorAll(t);
858
+ else throw Error("Nodes and querySelector are both undefined");
859
+ r.debug(`Found ${a.length} diagrams`), i?.startOnLoad !== void 0 && (r.debug("Start On Load: " + i?.startOnLoad), Z.updateSiteConfig({ startOnLoad: i?.startOnLoad }));
860
+ let o = new O.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
861
+ for (let t of Array.from(a)) {
862
+ if (r.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
863
+ t.setAttribute("data-processed", "true");
864
+ let n = `mermaid-${o.next()}`;
865
+ s = t.innerHTML, s = se(O.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
866
+ let i = O.detectInit(s);
867
+ i && r.debug("Detected early reinit: ", i);
868
+ try {
869
+ let { svg: r, bindFunctions: i } = await Xn(n, s, t);
870
+ t.innerHTML = r, e && await e(n), i && i(t);
871
+ } catch (e) {
872
+ zn(e, c, $.parseError);
873
+ }
874
+ }
875
+ if (c.length > 0) throw c[0];
876
+ }, "runThrowsErrors"), Hn = /* @__PURE__ */ i(function(e) {
877
+ Z.initialize(e);
878
+ }, "initialize"), Un = /* @__PURE__ */ i(async function(e, t, n) {
879
+ r.warn("mermaid.init is deprecated. Please use run instead."), e && Hn(e);
880
+ let i = {
881
+ postRenderCallback: n,
882
+ querySelector: ".mermaid"
883
+ };
884
+ typeof t == "string" ? i.querySelector = t : t && (t instanceof HTMLElement ? i.nodes = [t] : i.nodes = t), await Bn(i);
885
+ }, "init"), Wn = /* @__PURE__ */ i(async (e, { lazyLoad: t = !0 } = {}) => {
886
+ X(), d(...e), t === !1 && await Yt();
887
+ }, "registerExternalDiagrams"), Gn = /* @__PURE__ */ i(function() {
888
+ if ($.startOnLoad) {
889
+ let { startOnLoad: e } = Z.getConfig();
890
+ e && $.run().catch((e) => r.error("Mermaid failed to initialize", e));
891
+ }
892
+ }, "contentLoaded");
893
+ typeof document < "u" && window.addEventListener("load", Gn, !1);
894
+ var Kn = /* @__PURE__ */ i(function(e) {
895
+ $.parseError = e;
896
+ }, "setParseErrorHandler"), Q = [], qn = !1, Jn = /* @__PURE__ */ i(async () => {
897
+ if (!qn) {
898
+ for (qn = !0; Q.length > 0;) {
899
+ let e = Q.shift();
900
+ if (e) try {
901
+ await e();
902
+ } catch (e) {
903
+ r.error("Error executing queue", e);
904
+ }
905
+ }
906
+ qn = !1;
907
+ }
908
+ }, "executeQueue"), Yn = /* @__PURE__ */ i(async (e, t) => new Promise((n, a) => {
909
+ let o = /* @__PURE__ */ i(() => new Promise((i, o) => {
910
+ Z.parse(e, t).then((e) => {
911
+ i(e), n(e);
912
+ }, (e) => {
913
+ r.error("Error parsing", e), $.parseError?.(e), o(e), a(e);
914
+ });
915
+ }), "performCall");
916
+ Q.push(o), Jn().catch(a);
917
+ }), "parse"), Xn = /* @__PURE__ */ i((e, t, n) => new Promise((a, o) => {
918
+ let s = /* @__PURE__ */ i(() => new Promise((i, s) => {
919
+ Z.render(e, t, n).then((e) => {
920
+ i(e), a(e);
921
+ }, (e) => {
922
+ r.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
923
+ });
924
+ }), "performCall");
925
+ Q.push(s), Jn().catch(o);
926
+ }), "render"), $ = {
927
+ startOnLoad: !0,
928
+ mermaidAPI: Z,
929
+ parse: Yn,
930
+ render: Xn,
931
+ init: Un,
932
+ run: Bn,
933
+ registerExternalDiagrams: Wn,
934
+ registerLayoutLoaders: ce,
935
+ initialize: Hn,
936
+ parseError: void 0,
937
+ contentLoaded: Gn,
938
+ setParseErrorHandler: Kn,
939
+ detectType: _,
940
+ registerIconPacks: oe,
941
+ getRegisteredDiagramsMetadata: /* @__PURE__ */ i(() => Object.keys(S).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
942
+ }, Zn = $;
943
+ //#endregion
944
+ export { Zn as default };