@nxgt/material-vue 0.16.0 → 0.19.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.
- package/README.md +4 -0
- package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
- package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
- package/dist/arc-DNNg1pxp.js +80 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-B5Z0jbc8.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
- package/dist/{camera-Cbd1TWFd.js → camera-oxz1xItP.js} +4 -4
- package/dist/channel-BA1GJyZ7.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-CX-v_TQz.js +364 -0
- package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
- package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
- package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
- package/dist/chunk-7M6MHVWA-Deh_-m6x.js +4256 -0
- package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-rS2K544k.js +75 -0
- package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
- package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
- package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
- package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
- package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
- package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
- package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
- package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
- package/dist/classDiagram-v2-NBCMYWYE-Caqw5P6A.js +3397 -0
- package/dist/{components-DLtnz66n.js → components-IbdMALGv.js} +43465 -18610
- package/dist/components.js +5 -5
- package/dist/{composables-BJ2GgDD0.js → composables-6zV0t-y7.js} +1 -1
- package/dist/composables.js +1 -1
- package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-EHXNn6Wq.js +2192 -0
- package/dist/defaultLocale-DnzPsei5.js +201 -0
- package/dist/diagram-22UHCM2B-B3RAQlqQ.js +5084 -0
- package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
- package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
- package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
- package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
- package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
- package/dist/dist-D9zvfe2i.js +59 -0
- package/dist/{dnd-Cmcrm28l.js → dnd-CaDeYjQx.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
- package/dist/elk-276RUBZZ-B9WeHolc.js +47597 -0
- package/dist/erDiagram-OPXOYQCR-DReZElBu.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DYss4vEI.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
- package/dist/graphlib-CrmIPC4m.js +372 -0
- package/dist/{i18n-DmMS3ID3.js → i18n-OBzfa-B7.js} +233 -924
- package/dist/i18n.js +2 -2
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
- package/dist/init-MwSGRDIl.js +15 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/isEmpty-CMjyBU-a.js +136 -0
- package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
- package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
- package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
- package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/markdown/index.d.ts +2 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
- package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
- package/dist/lib/components/ui/mentions/index.d.ts +4 -0
- package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/types.d.ts +5 -0
- package/dist/lib/components/ui/terminal/index.d.ts +3 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
- package/dist/lib/i18n/resources/en/index.d.ts +7 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/index.d.ts +14 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib-B9AHrvmh.js +389 -0
- package/dist/lib.js +1 -1
- package/dist/line-UP6dkL36.js +34 -0
- package/dist/linear-bD_QoED_.js +289 -0
- package/dist/main.js +9 -9
- package/dist/material-vue.css +1 -1
- package/dist/merge-B4IBXGaq.js +170 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-C_Rtflmc.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-CO6s2Afv.js +1008 -0
- package/dist/ordinal-D_ZgubzR.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-DGNPZRdx.js +85 -0
- package/dist/{pdf-outline-sidebar-BBXJRwdt.js → pdf-outline-sidebar-D5VedBgk.js} +3 -2
- package/dist/{pdf-page-DZyTFukn.js → pdf-page-B1Ze518d.js} +1 -1
- package/dist/{pdf-page-list-C3GukJ3_.js → pdf-page-list-CBJziavm.js} +3 -2
- package/dist/{pdf-reader-Ci4v2Ff9.js → pdf-reader-Cn1uxtJN.js} +13 -13
- package/dist/{pdf-sidebar-Dl8fQStG.js → pdf-sidebar-PXfgGlmq.js} +4 -4
- package/dist/{pdf-thumbnail-sidebar-GS_V0PGc.js → pdf-thumbnail-sidebar-7agqWsXT.js} +4 -3
- package/dist/{pdf-toolbar-D37w-WIK.js → pdf-toolbar-Blm9CFvh.js} +22 -21
- package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
- package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-JpWB5sEv.js +2228 -0
- package/dist/rolldown-runtime-CWhphoD1.js +23 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
- package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-CNRY2AUH.js +2142 -0
- package/dist/stateDiagram-v2-GCMORJYK-DJkVDIb0.js +2143 -0
- package/dist/{stx-player-C0FOaRjU.js → stx-player-rs3uH0iI.js} +17 -17
- package/dist/swimlanes-2SLR337P-D7Ff0hLr.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-DZZ9d76C.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-BrRAt7Wu.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
- package/lib/nuxt/component-names.ts +2 -0
- package/package.json +5 -1
- package/dist/lib-CT0uRn8S.js +0 -611
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
import { h as t, m as n, p as r } from "./src-CNRY2AUH.js";
|
|
3
|
+
import { $ as i, C as a, E as o, I as s, J as c, K as l, L as u, N as d, P as f, Q as p, S as m, T as h, V as g, W as _, Z as v, _ as y, b, c as x, et as S, f as C, g as w, l as T, m as E, n as ee, p as D, r as te, t as O, u as k } from "./chunk-O7XYJQB3-WMQqqzRb.js";
|
|
4
|
+
import { S as ne, a as re, f as ie, g as A, h as ae, i as oe, o as se, v as ce, x as le, y as ue } from "./chunk-ZIGJFQKS-DBdWb0bj.js";
|
|
5
|
+
import { t as de } from "./chunk-6AEJRKK7-D9IaQdwq.js";
|
|
6
|
+
import { r as fe } from "./chunk-742MDFTN-BIhVe9GR.js";
|
|
7
|
+
import { a as pe } from "./chunk-MBY4JIJT-HYVRUG_P.js";
|
|
8
|
+
import "./chunk-7PRAP22T-CofnNOEr.js";
|
|
9
|
+
import "./chunk-7INBJB4K-CwPgdc2G.js";
|
|
10
|
+
import "./chunk-5DYCD2WN-B9vjeX2u.js";
|
|
11
|
+
import "./chunk-Z7XXMR3K-CJmsOGTV.js";
|
|
12
|
+
import "./chunk-UA2S7LBM-DtBatid7.js";
|
|
13
|
+
import { n as me } from "./chunk-GNY47TPC-rS2K544k.js";
|
|
14
|
+
import { n as he, t as ge } from "./chunk-LNGE3PJU-CiGrDO_F.js";
|
|
15
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
|
|
16
|
+
function _e(e) {
|
|
17
|
+
let t = e?.constructor;
|
|
18
|
+
return e === (typeof t == "function" ? t.prototype : Object.prototype);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
22
|
+
function ve(e) {
|
|
23
|
+
if (e == null) return !0;
|
|
24
|
+
if (le(e)) return typeof e.splice != "function" && typeof e != "string" && !ne(e) && !ce(e) && !ue(e) ? !1 : e.length === 0;
|
|
25
|
+
if (typeof e == "object" || typeof e == "function") {
|
|
26
|
+
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
27
|
+
let t = Object.keys(e);
|
|
28
|
+
return _e(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
|
|
29
|
+
}
|
|
30
|
+
return !0;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region node_modules/stylis/src/Enum.js
|
|
34
|
+
var j = "comm", ye = "rule", be = "decl", xe = "@import", Se = "@namespace", Ce = "@keyframes", we = "@layer", Te = Math.abs, M = String.fromCharCode;
|
|
35
|
+
function Ee(e) {
|
|
36
|
+
return e.trim();
|
|
37
|
+
}
|
|
38
|
+
function De(e, t, n) {
|
|
39
|
+
return e.replace(t, n);
|
|
40
|
+
}
|
|
41
|
+
function N(e, t) {
|
|
42
|
+
return e.charCodeAt(t) | 0;
|
|
43
|
+
}
|
|
44
|
+
function P(e, t, n) {
|
|
45
|
+
return e.slice(t, n);
|
|
46
|
+
}
|
|
47
|
+
function F(e) {
|
|
48
|
+
return e.length;
|
|
49
|
+
}
|
|
50
|
+
function Oe(e) {
|
|
51
|
+
return e.length;
|
|
52
|
+
}
|
|
53
|
+
function I(e, t) {
|
|
54
|
+
return t.push(e), e;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/stylis/src/Tokenizer.js
|
|
58
|
+
var L = 1, R = 1, ke = 0, z = 0, B = 0, V = "";
|
|
59
|
+
function H(e, t, n, r, i, a, o, s) {
|
|
60
|
+
return {
|
|
61
|
+
value: e,
|
|
62
|
+
root: t,
|
|
63
|
+
parent: n,
|
|
64
|
+
type: r,
|
|
65
|
+
props: i,
|
|
66
|
+
children: a,
|
|
67
|
+
line: L,
|
|
68
|
+
column: R,
|
|
69
|
+
length: o,
|
|
70
|
+
return: "",
|
|
71
|
+
siblings: s
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function Ae() {
|
|
75
|
+
return B;
|
|
76
|
+
}
|
|
77
|
+
function je() {
|
|
78
|
+
return B = z > 0 ? N(V, --z) : 0, R--, B === 10 && (R = 1, L--), B;
|
|
79
|
+
}
|
|
80
|
+
function U() {
|
|
81
|
+
return B = z < ke ? N(V, z++) : 0, R++, B === 10 && (R = 1, L++), B;
|
|
82
|
+
}
|
|
83
|
+
function W() {
|
|
84
|
+
return N(V, z);
|
|
85
|
+
}
|
|
86
|
+
function G() {
|
|
87
|
+
return z;
|
|
88
|
+
}
|
|
89
|
+
function K(e, t) {
|
|
90
|
+
return P(V, e, t);
|
|
91
|
+
}
|
|
92
|
+
function q(e) {
|
|
93
|
+
switch (e) {
|
|
94
|
+
case 0:
|
|
95
|
+
case 9:
|
|
96
|
+
case 10:
|
|
97
|
+
case 13:
|
|
98
|
+
case 32: return 5;
|
|
99
|
+
case 33:
|
|
100
|
+
case 43:
|
|
101
|
+
case 44:
|
|
102
|
+
case 47:
|
|
103
|
+
case 62:
|
|
104
|
+
case 64:
|
|
105
|
+
case 126:
|
|
106
|
+
case 59:
|
|
107
|
+
case 123:
|
|
108
|
+
case 125: return 4;
|
|
109
|
+
case 58: return 3;
|
|
110
|
+
case 34:
|
|
111
|
+
case 39:
|
|
112
|
+
case 40:
|
|
113
|
+
case 91: return 2;
|
|
114
|
+
case 41:
|
|
115
|
+
case 93: return 1;
|
|
116
|
+
}
|
|
117
|
+
return 0;
|
|
118
|
+
}
|
|
119
|
+
function Me(e) {
|
|
120
|
+
return L = R = 1, ke = F(V = e), z = 0, [];
|
|
121
|
+
}
|
|
122
|
+
function Ne(e) {
|
|
123
|
+
return V = "", e;
|
|
124
|
+
}
|
|
125
|
+
function Pe(e) {
|
|
126
|
+
return Ee(K(z - 1, Le(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
127
|
+
}
|
|
128
|
+
function Fe(e) {
|
|
129
|
+
for (; (B = W()) && B < 33;) U();
|
|
130
|
+
return q(e) > 2 || q(B) > 3 ? "" : " ";
|
|
131
|
+
}
|
|
132
|
+
function Ie(e, t) {
|
|
133
|
+
for (; --t && U() && !(B < 48 || B > 102 || B > 57 && B < 65 || B > 70 && B < 97););
|
|
134
|
+
return K(e, G() + (t < 6 && W() == 32 && U() == 32));
|
|
135
|
+
}
|
|
136
|
+
function Le(e) {
|
|
137
|
+
for (; U();) switch (B) {
|
|
138
|
+
case e: return z;
|
|
139
|
+
case 34:
|
|
140
|
+
case 39:
|
|
141
|
+
e !== 34 && e !== 39 && Le(B);
|
|
142
|
+
break;
|
|
143
|
+
case 40:
|
|
144
|
+
e === 41 && Le(e);
|
|
145
|
+
break;
|
|
146
|
+
case 92:
|
|
147
|
+
U();
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
return z;
|
|
151
|
+
}
|
|
152
|
+
function Re(e, t) {
|
|
153
|
+
for (; U() && e + B !== 57 && !(e + B === 84 && W() === 47););
|
|
154
|
+
return "/*" + K(t, z - 1) + "*" + M(e === 47 ? e : U());
|
|
155
|
+
}
|
|
156
|
+
function ze(e) {
|
|
157
|
+
for (; !q(W());) U();
|
|
158
|
+
return K(e, z);
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region node_modules/stylis/src/Parser.js
|
|
162
|
+
function Be(e) {
|
|
163
|
+
return Ne(J("", null, null, null, [""], e = Me(e), 0, [0], e));
|
|
164
|
+
}
|
|
165
|
+
function J(e, t, n, r, i, a, o, s, c) {
|
|
166
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = U()) {
|
|
167
|
+
case 40:
|
|
168
|
+
m != 108 && N(w, d - 1) == 58 ? (v++, w += "(") : w += Pe(y);
|
|
169
|
+
break;
|
|
170
|
+
case 41:
|
|
171
|
+
v--, w += ")";
|
|
172
|
+
break;
|
|
173
|
+
case 34:
|
|
174
|
+
case 39:
|
|
175
|
+
case 91:
|
|
176
|
+
w += Pe(y);
|
|
177
|
+
break;
|
|
178
|
+
case 9:
|
|
179
|
+
case 10:
|
|
180
|
+
case 13:
|
|
181
|
+
case 32:
|
|
182
|
+
if (v > 0) {
|
|
183
|
+
w += M(y);
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
w += Fe(m);
|
|
187
|
+
break;
|
|
188
|
+
case 92:
|
|
189
|
+
w += Ie(G() - 1, 7);
|
|
190
|
+
continue;
|
|
191
|
+
case 47:
|
|
192
|
+
switch (W()) {
|
|
193
|
+
case 42:
|
|
194
|
+
case 47:
|
|
195
|
+
I(He(Re(U(), G()), t, n, c), c), (q(m || 1) == 5 || q(W() || 1) == 5) && F(w) && P(w, -1, void 0) !== " " && (w += " ");
|
|
196
|
+
break;
|
|
197
|
+
default: w += "/";
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
case 123 * h: s[l++] = F(w) * _;
|
|
201
|
+
case 125 * h:
|
|
202
|
+
case 59:
|
|
203
|
+
case 0:
|
|
204
|
+
if (v > 0 && y) {
|
|
205
|
+
w += M(y);
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
switch (y) {
|
|
209
|
+
case 0:
|
|
210
|
+
case 125: g = 0;
|
|
211
|
+
case 59 + u:
|
|
212
|
+
_ == -1 && (w = De(w, /\f/g, "")), p > 0 && (F(w) - d || h === 0) && I(p > 32 ? Ue(w + ";", r, n, d - 1, c) : Ue(De(w, " ", "") + ";", r, n, d - 2, c), c);
|
|
213
|
+
break;
|
|
214
|
+
case 59: w += ";";
|
|
215
|
+
default: if (I(C = Ve(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) if (u === 0) J(w, t, C, C, x, a, d, s, S);
|
|
216
|
+
else {
|
|
217
|
+
switch (f) {
|
|
218
|
+
case 99: if (N(w, 3) === 110) break;
|
|
219
|
+
case 108: if (N(w, 2) === 97) break;
|
|
220
|
+
default: u = 0;
|
|
221
|
+
case 100:
|
|
222
|
+
case 109:
|
|
223
|
+
case 115:
|
|
224
|
+
}
|
|
225
|
+
u ? J(e, C, C, r && I(Ve(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : J(w, C, C, C, [""], S, 0, s, S);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
l = u = p = 0, h = _ = 1, b = w = "", d = o;
|
|
229
|
+
break;
|
|
230
|
+
case 58: d = 1 + F(w), p = m;
|
|
231
|
+
default:
|
|
232
|
+
if (h < 1) {
|
|
233
|
+
if (y == 123) --h;
|
|
234
|
+
else if (y == 125 && h++ == 0 && je() == 125) continue;
|
|
235
|
+
}
|
|
236
|
+
switch (w += M(y), y * h) {
|
|
237
|
+
case 38:
|
|
238
|
+
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
239
|
+
break;
|
|
240
|
+
case 44:
|
|
241
|
+
if (v > 0) break;
|
|
242
|
+
s[l++] = (F(w) - 1) * _, _ = 1;
|
|
243
|
+
break;
|
|
244
|
+
case 64:
|
|
245
|
+
W() === 45 && (w += Pe(U())), f = W(), u = d = F(b = w += ze(G())), y++;
|
|
246
|
+
break;
|
|
247
|
+
case 45: m === 45 && F(w) == 2 && (h = 0);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return a;
|
|
251
|
+
}
|
|
252
|
+
function Ve(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
253
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = Oe(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = P(e, f + 1, f = Te(g = o[h])), b = e; v < m; ++v) (b = Ee(g > 0 ? p[v] + " " + y : De(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
254
|
+
return H(e, t, n, i === 0 ? ye : s, c, l, u, d);
|
|
255
|
+
}
|
|
256
|
+
function He(e, t, n, r) {
|
|
257
|
+
return H(e, t, n, j, M(Ae()), P(e, 2, -2), 0, r);
|
|
258
|
+
}
|
|
259
|
+
function Ue(e, t, n, r, i) {
|
|
260
|
+
return H(e, t, n, be, P(e, 0, r), P(e, r + 1, -1), r, i);
|
|
261
|
+
}
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region node_modules/stylis/src/Serializer.js
|
|
264
|
+
function We(e, t) {
|
|
265
|
+
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
266
|
+
return n;
|
|
267
|
+
}
|
|
268
|
+
function Ge(e, t, n, r) {
|
|
269
|
+
switch (e.type) {
|
|
270
|
+
case we: if (e.children.length) break;
|
|
271
|
+
case xe:
|
|
272
|
+
case Se:
|
|
273
|
+
case be: return e.return = e.return || e.value;
|
|
274
|
+
case j: return "";
|
|
275
|
+
case Ce: return e.return = e.value + "{" + We(e.children, r) + "}";
|
|
276
|
+
case ye: if (!F(e.value = e.props.join(","))) return "";
|
|
277
|
+
}
|
|
278
|
+
return F(n = We(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
279
|
+
}
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region node_modules/stylis/src/Middleware.js
|
|
282
|
+
function Ke(e) {
|
|
283
|
+
var t = Oe(e);
|
|
284
|
+
return function(n, r, i, a) {
|
|
285
|
+
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
286
|
+
return o;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region node_modules/mermaid/dist/mermaid.core.mjs
|
|
291
|
+
var qe = "c4", Je = {
|
|
292
|
+
id: qe,
|
|
293
|
+
detector: /* @__PURE__ */ e((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
294
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
295
|
+
let { diagram: e } = await import("./c4Diagram-YGBWAQC7-B6jKsl3h.js");
|
|
296
|
+
return {
|
|
297
|
+
id: qe,
|
|
298
|
+
diagram: e
|
|
299
|
+
};
|
|
300
|
+
}, "loader")
|
|
301
|
+
}, Ye = "flowchart-v2", Xe = {
|
|
302
|
+
id: Ye,
|
|
303
|
+
detector: /* @__PURE__ */ e((e) => /^\s*(graph|flowchart)/.test(e), "detector"),
|
|
304
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
305
|
+
let { diagram: e } = await import("./flowDiagram-KWPJA3E3-DYss4vEI.js");
|
|
306
|
+
return {
|
|
307
|
+
id: Ye,
|
|
308
|
+
diagram: e
|
|
309
|
+
};
|
|
310
|
+
}, "loader")
|
|
311
|
+
}, Ze = "agentflow", Qe = {
|
|
312
|
+
id: Ze,
|
|
313
|
+
detector: /* @__PURE__ */ e((e) => /^\s*agentflow-beta\b/.test(e), "detector"),
|
|
314
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
315
|
+
let { diagram: e } = await import("./diagram-22UHCM2B-B3RAQlqQ.js");
|
|
316
|
+
return {
|
|
317
|
+
id: Ze,
|
|
318
|
+
diagram: e
|
|
319
|
+
};
|
|
320
|
+
}, "loader")
|
|
321
|
+
}, $e = "swimlane", et = {
|
|
322
|
+
id: $e,
|
|
323
|
+
detector: /* @__PURE__ */ e((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
|
|
324
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
325
|
+
let { diagram: e } = await import("./swimlanesDiagram-TC7HE7FX-DZZ9d76C.js");
|
|
326
|
+
return {
|
|
327
|
+
id: $e,
|
|
328
|
+
diagram: e
|
|
329
|
+
};
|
|
330
|
+
}, "loader")
|
|
331
|
+
}, tt = "er", nt = {
|
|
332
|
+
id: tt,
|
|
333
|
+
detector: /* @__PURE__ */ e((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
334
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
335
|
+
let { diagram: e } = await import("./erDiagram-OPXOYQCR-DReZElBu.js");
|
|
336
|
+
return {
|
|
337
|
+
id: tt,
|
|
338
|
+
diagram: e
|
|
339
|
+
};
|
|
340
|
+
}, "loader")
|
|
341
|
+
}, rt = "gitGraph", it = {
|
|
342
|
+
id: rt,
|
|
343
|
+
detector: /* @__PURE__ */ e((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
344
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
345
|
+
let { diagram: e } = await import("./gitGraphDiagram-X574FWY7-DmMMrp5A.js");
|
|
346
|
+
return {
|
|
347
|
+
id: rt,
|
|
348
|
+
diagram: e
|
|
349
|
+
};
|
|
350
|
+
}, "loader")
|
|
351
|
+
}, at = "gantt", ot = {
|
|
352
|
+
id: at,
|
|
353
|
+
detector: /* @__PURE__ */ e((e) => /^\s*gantt/.test(e), "detector"),
|
|
354
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
355
|
+
let { diagram: e } = await import("./ganttDiagram-FUAMR5RP-64EZDDmC.js");
|
|
356
|
+
return {
|
|
357
|
+
id: at,
|
|
358
|
+
diagram: e
|
|
359
|
+
};
|
|
360
|
+
}, "loader")
|
|
361
|
+
}, st = "info", ct = {
|
|
362
|
+
id: st,
|
|
363
|
+
detector: /* @__PURE__ */ e((e) => /^\s*info/.test(e), "detector"),
|
|
364
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
365
|
+
let { diagram: e } = await import("./infoDiagram-VRGFBTTK-XlBUAu0t.js");
|
|
366
|
+
return {
|
|
367
|
+
id: st,
|
|
368
|
+
diagram: e
|
|
369
|
+
};
|
|
370
|
+
}, "loader")
|
|
371
|
+
}, lt = "pie", ut = {
|
|
372
|
+
id: lt,
|
|
373
|
+
detector: /* @__PURE__ */ e((e) => /^\s*pie/.test(e), "detector"),
|
|
374
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
375
|
+
let { diagram: e } = await import("./pieDiagram-5QR66LMP-DLBcErnI.js");
|
|
376
|
+
return {
|
|
377
|
+
id: lt,
|
|
378
|
+
diagram: e
|
|
379
|
+
};
|
|
380
|
+
}, "loader")
|
|
381
|
+
}, dt = "quadrantChart", ft = {
|
|
382
|
+
id: dt,
|
|
383
|
+
detector: /* @__PURE__ */ e((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
384
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
385
|
+
let { diagram: e } = await import("./quadrantDiagram-O4NWA36T-Bn3CmGxM.js");
|
|
386
|
+
return {
|
|
387
|
+
id: dt,
|
|
388
|
+
diagram: e
|
|
389
|
+
};
|
|
390
|
+
}, "loader")
|
|
391
|
+
}, pt = "xychart", mt = {
|
|
392
|
+
id: pt,
|
|
393
|
+
detector: /* @__PURE__ */ e((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
394
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
395
|
+
let { diagram: e } = await import("./xychartDiagram-PMCCYNJV-DtuDs9I7.js");
|
|
396
|
+
return {
|
|
397
|
+
id: pt,
|
|
398
|
+
diagram: e
|
|
399
|
+
};
|
|
400
|
+
}, "loader")
|
|
401
|
+
}, ht = "requirement", gt = {
|
|
402
|
+
id: ht,
|
|
403
|
+
detector: /* @__PURE__ */ e((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
404
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
405
|
+
let { diagram: e } = await import("./requirementDiagram-PLB6GJNP-JpWB5sEv.js");
|
|
406
|
+
return {
|
|
407
|
+
id: ht,
|
|
408
|
+
diagram: e
|
|
409
|
+
};
|
|
410
|
+
}, "loader")
|
|
411
|
+
}, _t = "sequence", vt = {
|
|
412
|
+
id: _t,
|
|
413
|
+
detector: /* @__PURE__ */ e((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
414
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
415
|
+
let { diagram: e } = await import("./sequenceDiagram-PO4LG4MO-CjUigcL2.js");
|
|
416
|
+
return {
|
|
417
|
+
id: _t,
|
|
418
|
+
diagram: e
|
|
419
|
+
};
|
|
420
|
+
}, "loader")
|
|
421
|
+
}, yt = "classDiagram", bt = {
|
|
422
|
+
id: yt,
|
|
423
|
+
detector: /* @__PURE__ */ e((e) => /^\s*classDiagram/.test(e), "detector"),
|
|
424
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
425
|
+
let { diagram: e } = await import("./classDiagram-v2-NBCMYWYE-Caqw5P6A.js");
|
|
426
|
+
return {
|
|
427
|
+
id: yt,
|
|
428
|
+
diagram: e
|
|
429
|
+
};
|
|
430
|
+
}, "loader")
|
|
431
|
+
}, xt = "stateDiagram", St = {
|
|
432
|
+
id: xt,
|
|
433
|
+
detector: /* @__PURE__ */ e((e) => /^\s*stateDiagram/.test(e), "detector"),
|
|
434
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
435
|
+
let { diagram: e } = await import("./stateDiagram-v2-GCMORJYK-DJkVDIb0.js");
|
|
436
|
+
return {
|
|
437
|
+
id: xt,
|
|
438
|
+
diagram: e
|
|
439
|
+
};
|
|
440
|
+
}, "loader")
|
|
441
|
+
}, Ct = "journey", wt = {
|
|
442
|
+
id: Ct,
|
|
443
|
+
detector: /* @__PURE__ */ e((e) => /^\s*journey/.test(e), "detector"),
|
|
444
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
445
|
+
let { diagram: e } = await import("./journeyDiagram-ZHPQQLJL-DXdfP9BW.js");
|
|
446
|
+
return {
|
|
447
|
+
id: Ct,
|
|
448
|
+
diagram: e
|
|
449
|
+
};
|
|
450
|
+
}, "loader")
|
|
451
|
+
}, Tt = { draw: /* @__PURE__ */ e((e, t, r) => {
|
|
452
|
+
n.debug("rendering svg for syntax error\n");
|
|
453
|
+
let i = de(t), a = i.append("g");
|
|
454
|
+
i.attr("viewBox", "0 0 2412 512"), x(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 ${r}`);
|
|
455
|
+
}, "draw") }, Et = Tt, Dt = {
|
|
456
|
+
db: {},
|
|
457
|
+
renderer: Tt,
|
|
458
|
+
parser: { parse: /* @__PURE__ */ e(() => {}, "parse") }
|
|
459
|
+
}, Ot = "flowchart-elk", kt = {
|
|
460
|
+
id: Ot,
|
|
461
|
+
detector: /* @__PURE__ */ e((e, t = {}) => /^\s*flowchart-elk/.test(e) ? (t.layout = "elk", !0) : !1, "detector"),
|
|
462
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
463
|
+
let { diagram: e } = await import("./flowDiagram-KWPJA3E3-DYss4vEI.js");
|
|
464
|
+
return {
|
|
465
|
+
id: Ot,
|
|
466
|
+
diagram: e
|
|
467
|
+
};
|
|
468
|
+
}, "loader")
|
|
469
|
+
}, At = "timeline", jt = {
|
|
470
|
+
id: At,
|
|
471
|
+
detector: /* @__PURE__ */ e((e) => /^\s*timeline/.test(e), "detector"),
|
|
472
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
473
|
+
let { diagram: e } = await import("./timeline-definition-EJHVYXUP-C0aHlt9K.js");
|
|
474
|
+
return {
|
|
475
|
+
id: At,
|
|
476
|
+
diagram: e
|
|
477
|
+
};
|
|
478
|
+
}, "loader")
|
|
479
|
+
}, Mt = "mindmap", Nt = {
|
|
480
|
+
id: Mt,
|
|
481
|
+
detector: /* @__PURE__ */ e((e) => /^\s*mindmap/.test(e), "detector"),
|
|
482
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
483
|
+
let { diagram: e } = await import("./mindmap-definition-NLK3R4M7-CO6s2Afv.js");
|
|
484
|
+
return {
|
|
485
|
+
id: Mt,
|
|
486
|
+
diagram: e
|
|
487
|
+
};
|
|
488
|
+
}, "loader")
|
|
489
|
+
}, Pt = "kanban", Ft = {
|
|
490
|
+
id: Pt,
|
|
491
|
+
detector: /* @__PURE__ */ e((e) => /^\s*kanban/.test(e), "detector"),
|
|
492
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
493
|
+
let { diagram: e } = await import("./kanban-definition-PNTS6WVX-DhOBy3A0.js");
|
|
494
|
+
return {
|
|
495
|
+
id: Pt,
|
|
496
|
+
diagram: e
|
|
497
|
+
};
|
|
498
|
+
}, "loader")
|
|
499
|
+
}, It = "sankey", Lt = {
|
|
500
|
+
id: It,
|
|
501
|
+
detector: /* @__PURE__ */ e((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
502
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
503
|
+
let { diagram: e } = await import("./sankeyDiagram-IPEJSGJF-a4rFl5rR.js");
|
|
504
|
+
return {
|
|
505
|
+
id: It,
|
|
506
|
+
diagram: e
|
|
507
|
+
};
|
|
508
|
+
}, "loader")
|
|
509
|
+
}, Rt = "packet", zt = {
|
|
510
|
+
id: Rt,
|
|
511
|
+
detector: /* @__PURE__ */ e((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
512
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
513
|
+
let { diagram: e } = await import("./diagram-MLGK6HIB-Dx2UboD6.js");
|
|
514
|
+
return {
|
|
515
|
+
id: Rt,
|
|
516
|
+
diagram: e
|
|
517
|
+
};
|
|
518
|
+
}, "loader")
|
|
519
|
+
}, Bt = "radar", Vt = {
|
|
520
|
+
id: Bt,
|
|
521
|
+
detector: /* @__PURE__ */ e((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
522
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
523
|
+
let { diagram: e } = await import("./diagram-MPIPVDR6-DnPL3RV0.js");
|
|
524
|
+
return {
|
|
525
|
+
id: Bt,
|
|
526
|
+
diagram: e
|
|
527
|
+
};
|
|
528
|
+
}, "loader")
|
|
529
|
+
}, Ht = "block", Ut = {
|
|
530
|
+
id: Ht,
|
|
531
|
+
detector: /* @__PURE__ */ e((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
532
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
533
|
+
let { diagram: e } = await import("./blockDiagram-BEXU5L5S-B5Z0jbc8.js");
|
|
534
|
+
return {
|
|
535
|
+
id: Ht,
|
|
536
|
+
diagram: e
|
|
537
|
+
};
|
|
538
|
+
}, "loader")
|
|
539
|
+
}, Wt = "treeView", Gt = {
|
|
540
|
+
id: Wt,
|
|
541
|
+
detector: /* @__PURE__ */ e((e) => /^\s*treeView-beta/.test(e), "detector"),
|
|
542
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
543
|
+
let { diagram: e } = await import("./diagram-CDSNMT55-DOjN3BR2.js");
|
|
544
|
+
return {
|
|
545
|
+
id: Wt,
|
|
546
|
+
diagram: e
|
|
547
|
+
};
|
|
548
|
+
}, "loader")
|
|
549
|
+
}, Kt = "architecture", qt = {
|
|
550
|
+
id: Kt,
|
|
551
|
+
detector: /* @__PURE__ */ e((e) => /^\s*architecture/.test(e), "detector"),
|
|
552
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
553
|
+
let { diagram: e } = await import("./architectureDiagram-NJMV4G6O-CVS4UUCi.js");
|
|
554
|
+
return {
|
|
555
|
+
id: Kt,
|
|
556
|
+
diagram: e
|
|
557
|
+
};
|
|
558
|
+
}, "loader")
|
|
559
|
+
}, Jt = "eventmodeling", Yt = {
|
|
560
|
+
id: Jt,
|
|
561
|
+
detector: /* @__PURE__ */ e((e) => /^\s*eventmodeling/.test(e), "detector"),
|
|
562
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
563
|
+
let { diagram: e } = await import("./diagram-ATOU4E4O-DtIUxSAn.js");
|
|
564
|
+
return {
|
|
565
|
+
id: Jt,
|
|
566
|
+
diagram: e
|
|
567
|
+
};
|
|
568
|
+
}, "loader")
|
|
569
|
+
}, Xt = "ishikawa", Zt = {
|
|
570
|
+
id: Xt,
|
|
571
|
+
detector: /* @__PURE__ */ e((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
|
|
572
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
573
|
+
let { diagram: e } = await import("./ishikawaDiagram-OU5B5YK6-C9cMWMPO.js");
|
|
574
|
+
return {
|
|
575
|
+
id: Xt,
|
|
576
|
+
diagram: e
|
|
577
|
+
};
|
|
578
|
+
}, "loader")
|
|
579
|
+
}, Qt = "venn", $t = {
|
|
580
|
+
id: Qt,
|
|
581
|
+
detector: /* @__PURE__ */ e((e) => /^\s*venn-beta/.test(e), "detector"),
|
|
582
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
583
|
+
let { diagram: e } = await import("./vennDiagram-UO4OBE2U-B22Jhju8.js");
|
|
584
|
+
return {
|
|
585
|
+
id: Qt,
|
|
586
|
+
diagram: e
|
|
587
|
+
};
|
|
588
|
+
}, "loader")
|
|
589
|
+
}, en = "treemap", tn = {
|
|
590
|
+
id: en,
|
|
591
|
+
detector: /* @__PURE__ */ e((e) => /^\s*treemap/.test(e), "detector"),
|
|
592
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
593
|
+
let { diagram: e } = await import("./diagram-3UASUU5V-BznCZHss.js");
|
|
594
|
+
return {
|
|
595
|
+
id: en,
|
|
596
|
+
diagram: e
|
|
597
|
+
};
|
|
598
|
+
}, "loader")
|
|
599
|
+
}, nn = "usecase", rn = {
|
|
600
|
+
id: nn,
|
|
601
|
+
detector: /* @__PURE__ */ e((e) => /^\s*usecase-beta(?:\s|$)/.test(e), "detector"),
|
|
602
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
603
|
+
let { diagram: e } = await import("./usecaseDiagram-POWQR4AR-BrRAt7Wu.js");
|
|
604
|
+
return {
|
|
605
|
+
id: nn,
|
|
606
|
+
diagram: e
|
|
607
|
+
};
|
|
608
|
+
}, "loader")
|
|
609
|
+
}, an = "wardley", on = {
|
|
610
|
+
id: an,
|
|
611
|
+
detector: /* @__PURE__ */ e((e) => /^\s*wardley-beta/i.test(e), "detector"),
|
|
612
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
613
|
+
let { diagram: e } = await import("./wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js");
|
|
614
|
+
return {
|
|
615
|
+
id: an,
|
|
616
|
+
diagram: e
|
|
617
|
+
};
|
|
618
|
+
}, "loader")
|
|
619
|
+
}, sn = "cynefin", cn = {
|
|
620
|
+
id: sn,
|
|
621
|
+
detector: /* @__PURE__ */ e((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
|
|
622
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
623
|
+
let { diagram: e } = await import("./cynefinDiagram-VND7K2PF-0Mq0e5NQ.js");
|
|
624
|
+
return {
|
|
625
|
+
id: sn,
|
|
626
|
+
diagram: e
|
|
627
|
+
};
|
|
628
|
+
}, "loader")
|
|
629
|
+
}, ln = "railroad", un = {
|
|
630
|
+
id: ln,
|
|
631
|
+
detector: /* @__PURE__ */ e((e) => /^\s*railroad-beta/i.test(e), "detector"),
|
|
632
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
633
|
+
let { diagram: e } = await import("./railroadDiagram-XR7U4H2S-DLeBxWbV.js");
|
|
634
|
+
return {
|
|
635
|
+
id: ln,
|
|
636
|
+
diagram: e
|
|
637
|
+
};
|
|
638
|
+
}, "loader")
|
|
639
|
+
}, dn = "railroadEbnf", fn = {
|
|
640
|
+
id: dn,
|
|
641
|
+
detector: /* @__PURE__ */ e((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
|
|
642
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
643
|
+
let { diagram: e } = await import("./ebnfDiagram-ZINNZB2B-BNbxCL0b.js");
|
|
644
|
+
return {
|
|
645
|
+
id: dn,
|
|
646
|
+
diagram: e
|
|
647
|
+
};
|
|
648
|
+
}, "loader")
|
|
649
|
+
}, pn = "railroadAbnf", mn = {
|
|
650
|
+
id: pn,
|
|
651
|
+
detector: /* @__PURE__ */ e((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
|
|
652
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
653
|
+
let { diagram: e } = await import("./abnfDiagram-O67JEVCF-Cl_I9xuI.js");
|
|
654
|
+
return {
|
|
655
|
+
id: pn,
|
|
656
|
+
diagram: e
|
|
657
|
+
};
|
|
658
|
+
}, "loader")
|
|
659
|
+
}, hn = "railroadPeg", gn = {
|
|
660
|
+
id: hn,
|
|
661
|
+
detector: /* @__PURE__ */ e((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
|
|
662
|
+
loader: /* @__PURE__ */ e(async () => {
|
|
663
|
+
let { diagram: e } = await import("./pegDiagram-GJSIUBJH-gvsGke9W.js");
|
|
664
|
+
return {
|
|
665
|
+
id: hn,
|
|
666
|
+
diagram: e
|
|
667
|
+
};
|
|
668
|
+
}, "loader")
|
|
669
|
+
}, _n = !1, Y = /* @__PURE__ */ e(() => {
|
|
670
|
+
_n || (_n = !0, d("error", Dt, (e) => e.toLowerCase().trim() === "error"), d("---", {
|
|
671
|
+
db: { clear: /* @__PURE__ */ e(() => {}, "clear") },
|
|
672
|
+
styles: {},
|
|
673
|
+
renderer: { draw: /* @__PURE__ */ e(() => {}, "draw") },
|
|
674
|
+
parser: { parse: /* @__PURE__ */ e(() => {
|
|
675
|
+
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");
|
|
676
|
+
}, "parse") },
|
|
677
|
+
init: /* @__PURE__ */ e(() => null, "init")
|
|
678
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), f(kt, Nt, qt), f(Qe, Je, Ft, bt, nt, ot, ct, ut, gt, vt, et, Xe, jt, it, St, wt, ft, Lt, zt, mt, Ut, Yt, Gt, Vt, Zt, tn, un, fn, mn, gn, $t, on, cn, rn));
|
|
679
|
+
}, "addDiagrams"), vn = /* @__PURE__ */ e(async () => {
|
|
680
|
+
n.debug("Loading registered diagrams");
|
|
681
|
+
let e = (await Promise.allSettled(Object.entries(E).map(async ([e, { detector: t, loader: r }]) => {
|
|
682
|
+
if (r) try {
|
|
683
|
+
m(e);
|
|
684
|
+
} catch {
|
|
685
|
+
try {
|
|
686
|
+
let { diagram: e, id: n } = await r();
|
|
687
|
+
d(n, e, t);
|
|
688
|
+
} catch (t) {
|
|
689
|
+
throw n.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete E[e], t;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}))).filter((e) => e.status === "rejected");
|
|
693
|
+
if (e.length > 0) {
|
|
694
|
+
n.error(`Failed to load ${e.length} external diagrams`);
|
|
695
|
+
for (let t of e) n.error(t);
|
|
696
|
+
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
697
|
+
}
|
|
698
|
+
}, "loadRegisteredDiagrams"), yn = "graphics-document document";
|
|
699
|
+
function bn(e, t) {
|
|
700
|
+
e.attr("role", yn), t !== "" && e.attr("aria-roledescription", t);
|
|
701
|
+
}
|
|
702
|
+
e(bn, "setA11yDiagramInfo");
|
|
703
|
+
function xn(e, t, n, r) {
|
|
704
|
+
if (e.insert !== void 0) {
|
|
705
|
+
if (n) {
|
|
706
|
+
let t = `chart-desc-${r}`;
|
|
707
|
+
e.attr("aria-describedby", t), e.insert("desc", ":first-child").attr("id", t).text(n);
|
|
708
|
+
}
|
|
709
|
+
if (t) {
|
|
710
|
+
let n = `chart-title-${r}`;
|
|
711
|
+
e.attr("aria-labelledby", n), e.insert("title", ":first-child").attr("id", n).text(t);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
e(xn, "addSVGa11yTitleDescription");
|
|
716
|
+
var X = class t {
|
|
717
|
+
constructor(e, t, n, r, i) {
|
|
718
|
+
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
719
|
+
}
|
|
720
|
+
static {
|
|
721
|
+
e(this, "Diagram");
|
|
722
|
+
}
|
|
723
|
+
static async fromText(e, r = {}) {
|
|
724
|
+
let i = typeof e == "string" ? {
|
|
725
|
+
raw: e,
|
|
726
|
+
cleaned: e
|
|
727
|
+
} : e, o = b(), s = D(i.cleaned, o);
|
|
728
|
+
try {
|
|
729
|
+
m(s);
|
|
730
|
+
} catch {
|
|
731
|
+
let e = a(s);
|
|
732
|
+
if (!e) throw new O(`Diagram ${s} not found.`);
|
|
733
|
+
let { id: t, diagram: n } = await e();
|
|
734
|
+
d(t, n);
|
|
735
|
+
}
|
|
736
|
+
let { db: c, parser: l, renderer: u, init: f } = m(s);
|
|
737
|
+
l.parser && (l.parser.yy = c), c.clear?.(), f?.(o), r.title && c.setDiagramTitle?.(r.title);
|
|
738
|
+
let p = i.cleaned;
|
|
739
|
+
if (c.preserveCommentsWhenParsing && i.withComments) {
|
|
740
|
+
let e = o.maxTextSize ?? C.maxTextSize;
|
|
741
|
+
i.withComments.length > e ? n.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`) : p = i.withComments;
|
|
742
|
+
}
|
|
743
|
+
let h = se(p) + "\n";
|
|
744
|
+
return i.frontmatterLineOffset && c.setFrontmatterLineOffset?.(i.frontmatterLineOffset), await l.parse(h), new t(s, h, c, l, u);
|
|
745
|
+
}
|
|
746
|
+
async render(e, t) {
|
|
747
|
+
await this.renderer.draw(this.text, e, t, this);
|
|
748
|
+
}
|
|
749
|
+
getParser() {
|
|
750
|
+
return this.parser;
|
|
751
|
+
}
|
|
752
|
+
getType() {
|
|
753
|
+
return this.type;
|
|
754
|
+
}
|
|
755
|
+
}, Sn = [], Cn = /* @__PURE__ */ e(() => {
|
|
756
|
+
Sn.forEach((e) => {
|
|
757
|
+
e();
|
|
758
|
+
}), Sn = [];
|
|
759
|
+
}, "attachFunctions"), wn = /* @__PURE__ */ e((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
760
|
+
function Tn(e) {
|
|
761
|
+
let t = e.match(y);
|
|
762
|
+
if (!t) return {
|
|
763
|
+
text: e,
|
|
764
|
+
metadata: {}
|
|
765
|
+
};
|
|
766
|
+
let n = t[1], r = he(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: ge }) ?? {};
|
|
767
|
+
r = typeof r == "object" && !Array.isArray(r) ? r : {};
|
|
768
|
+
let i = {};
|
|
769
|
+
return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
|
|
770
|
+
text: e.slice(t[0].length),
|
|
771
|
+
metadata: i
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
e(Tn, "extractFrontMatter");
|
|
775
|
+
var En = /* @__PURE__ */ e((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), Dn = /* @__PURE__ */ e((e) => {
|
|
776
|
+
let { text: t, metadata: n } = Tn(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
777
|
+
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
778
|
+
title: i,
|
|
779
|
+
config: a,
|
|
780
|
+
text: t
|
|
781
|
+
};
|
|
782
|
+
}, "processFrontmatter"), On = /* @__PURE__ */ e((e) => {
|
|
783
|
+
let t = A.detectInit(e) ?? {}, n = A.detectDirective(e, "wrap");
|
|
784
|
+
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
785
|
+
text: ae(e),
|
|
786
|
+
directive: t
|
|
787
|
+
};
|
|
788
|
+
}, "processDirectives");
|
|
789
|
+
function kn(e) {
|
|
790
|
+
let t = e, n = En(e), r = Dn(n), i = On(r.text), a = oe(r.config, i.directive), o = i.text;
|
|
791
|
+
return {
|
|
792
|
+
code: {
|
|
793
|
+
raw: t,
|
|
794
|
+
cleaned: wn(o),
|
|
795
|
+
withComments: o,
|
|
796
|
+
frontmatterLineOffset: n.length > r.text.length ? (n.substring(0, n.length - r.text.length).match(/\n/g) ?? []).length : 0
|
|
797
|
+
},
|
|
798
|
+
title: r.title,
|
|
799
|
+
config: a
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
e(kn, "preprocessDiagram");
|
|
803
|
+
function An(e) {
|
|
804
|
+
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
805
|
+
return btoa(n);
|
|
806
|
+
}
|
|
807
|
+
e(An, "toBase64");
|
|
808
|
+
var jn = 5e4, Mn = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Nn = "sandbox", Pn = "loose", Fn = "http://www.w3.org/2000/svg", In = "http://www.w3.org/1999/xlink", Ln = "http://www.w3.org/1999/xhtml", Rn = "100%", zn = "100%", Bn = "border:0;margin:0;", Vn = "margin:0", Hn = "allow-top-navigation-by-user-activation allow-popups", Un = "The \"iframe\" tag is not supported by your browser.", Wn = ["foreignobject"], Gn = ["dominant-baseline"];
|
|
809
|
+
function Kn(e) {
|
|
810
|
+
let t = kn(e);
|
|
811
|
+
s();
|
|
812
|
+
let n;
|
|
813
|
+
try {
|
|
814
|
+
n = D(t.code.cleaned, b());
|
|
815
|
+
} catch {
|
|
816
|
+
n = void 0;
|
|
817
|
+
}
|
|
818
|
+
return l(n), ee(t.config ?? {}), t;
|
|
819
|
+
}
|
|
820
|
+
e(Kn, "processAndSetConfigs");
|
|
821
|
+
async function qn(e, t) {
|
|
822
|
+
Y();
|
|
823
|
+
try {
|
|
824
|
+
let { code: t, config: n } = Kn(e);
|
|
825
|
+
return {
|
|
826
|
+
diagramType: (await X.fromText(t)).type,
|
|
827
|
+
config: n
|
|
828
|
+
};
|
|
829
|
+
} catch (e) {
|
|
830
|
+
if (t?.suppressErrors) return !1;
|
|
831
|
+
throw e;
|
|
832
|
+
} finally {
|
|
833
|
+
l(void 0);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
e(qn, "parse");
|
|
837
|
+
var Jn = /* @__PURE__ */ e((e, t, n = []) => `.${e} ${t} ${u(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Yn = /* @__PURE__ */ e((e, t = /* @__PURE__ */ new Map()) => {
|
|
838
|
+
let n = new CSSStyleSheet();
|
|
839
|
+
if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
|
|
840
|
+
let r = h(e) ? ["> *", "span"] : [
|
|
841
|
+
"rect",
|
|
842
|
+
"polygon",
|
|
843
|
+
"ellipse",
|
|
844
|
+
"circle",
|
|
845
|
+
"path"
|
|
846
|
+
];
|
|
847
|
+
t.forEach((e) => {
|
|
848
|
+
ve(e.styles) || r.forEach((t) => {
|
|
849
|
+
n.insertRule(Jn(e.id, t, e.styles), n.cssRules.length);
|
|
850
|
+
}), ve(e.textStyles) || n.insertRule(Jn(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
let r = "";
|
|
854
|
+
if (e.themeCSS !== void 0) if (typeof n.replaceSync == "function") {
|
|
855
|
+
let t = new CSSStyleSheet();
|
|
856
|
+
t.replaceSync(e.themeCSS), r = T(t) + "\n";
|
|
857
|
+
} else r += `${e.themeCSS}
|
|
858
|
+
`;
|
|
859
|
+
return r + T(n);
|
|
860
|
+
}, "createCssStyles"), Xn = /* @__PURE__ */ e((t, r) => We(Be(`${t}{${r}}`), Ke([/* @__PURE__ */ e(function(e, r, i, a) {
|
|
861
|
+
if (e.type === "rule" && Array.isArray(e.props)) {
|
|
862
|
+
if (e.parent && e.parent.type === "@keyframes") return;
|
|
863
|
+
e.props = e.props.map((n) => n === t && Array.isArray(e.children) && e.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
|
|
864
|
+
"font-family",
|
|
865
|
+
"font-size",
|
|
866
|
+
"fill"
|
|
867
|
+
])).has(e.props)) || (n.startsWith(`${t} `) || n.startsWith(`${t}>`)) && !n.startsWith(`${t} ||`) ? n : `${t} ${n}`);
|
|
868
|
+
} else e.type.startsWith("@") && ([
|
|
869
|
+
"@media",
|
|
870
|
+
"@supports",
|
|
871
|
+
"@layer",
|
|
872
|
+
"@scope",
|
|
873
|
+
"@container",
|
|
874
|
+
"@starting-style",
|
|
875
|
+
"@keyframes"
|
|
876
|
+
].includes(e.type) || (n.warn(`Removing unsupported at-rule ${e.type} from CSS`), e.type = j));
|
|
877
|
+
}, "addNamespace"), Ge])), "compileCSS"), Zn = /* @__PURE__ */ e((e, t, n, r) => Xn(r, v(t, Yn(e, n), {
|
|
878
|
+
...e.themeVariables,
|
|
879
|
+
theme: e.theme,
|
|
880
|
+
look: e.look
|
|
881
|
+
}, r)), "createUserStyles"), Qn = /* @__PURE__ */ e((e = "", t, n) => {
|
|
882
|
+
let r = e;
|
|
883
|
+
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;
|
|
884
|
+
}, "cleanUpSvgCode"), $n = /* @__PURE__ */ e((e = "", t) => `<iframe style="width:${Rn};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : zn};${Bn}" src="data:text/html;charset=UTF-8;base64,${An(`<body style="${Vn}">${e}</body>`)}" sandbox="${Hn}">
|
|
885
|
+
${Un}
|
|
886
|
+
</iframe>`, "putIntoIFrame"), er = /* @__PURE__ */ e((e, t, n, r, i) => {
|
|
887
|
+
let a = e.append("div");
|
|
888
|
+
a.attr("id", n), r && a.attr("style", r);
|
|
889
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Fn);
|
|
890
|
+
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
891
|
+
}, "appendDivSvgG");
|
|
892
|
+
function tr(e, t) {
|
|
893
|
+
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
894
|
+
}
|
|
895
|
+
e(tr, "sandboxedIframe");
|
|
896
|
+
var nr = /* @__PURE__ */ e((e, t, n, r) => {
|
|
897
|
+
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
898
|
+
}, "removeExistingElements"), rr = /* @__PURE__ */ e(async function(t, i, a) {
|
|
899
|
+
Y();
|
|
900
|
+
let o = Kn(i), s = o.code;
|
|
901
|
+
i = s.cleaned;
|
|
902
|
+
let c = b();
|
|
903
|
+
n.debug(c), i.length > (c?.maxTextSize ?? jn) && (i = Mn, s = {
|
|
904
|
+
raw: i,
|
|
905
|
+
cleaned: i
|
|
906
|
+
});
|
|
907
|
+
let l = `#${t}`, u = "i" + t, d = "#" + u, f = "d" + t, p = "#" + f, m = /* @__PURE__ */ e(() => {
|
|
908
|
+
let e = r(g ? d : p).node();
|
|
909
|
+
e && "remove" in e && e.remove();
|
|
910
|
+
}, "removeTempElements"), h = r(document.body), g = c.securityLevel === Nn, _ = c.securityLevel === Pn, v = c.fontFamily;
|
|
911
|
+
a === void 0 ? (nr(document, t, f, u), g ? (h = r(tr(r(document.body), u).nodes()[0].contentDocument.body), h.node().style.margin = "0") : h = r("body"), er(h, t, f)) : (a && (a.innerHTML = ""), g ? (h = r(tr(r(a), u).nodes()[0].contentDocument.body), h.node().style.margin = "0") : h = r(a), er(h, t, f, `font-family: ${v}`, In));
|
|
912
|
+
let y, x;
|
|
913
|
+
try {
|
|
914
|
+
y = await X.fromText(s, { title: o.title });
|
|
915
|
+
} catch (e) {
|
|
916
|
+
if (c.suppressErrorRendering) throw m(), e;
|
|
917
|
+
y = await X.fromText("error"), x = e;
|
|
918
|
+
}
|
|
919
|
+
let C = h.select(p).node(), T = y.type, E = C.firstChild, ee = E.firstChild, D = y.renderer.getClasses?.(i, y), te = Zn(c, T, D, l), O = document.createElement("style");
|
|
920
|
+
O.innerHTML = te, E.insertBefore(O, ee);
|
|
921
|
+
try {
|
|
922
|
+
await y.renderer.draw(i, t, "12.0.0", y);
|
|
923
|
+
} catch (e) {
|
|
924
|
+
throw c.suppressErrorRendering ? m() : Et.draw(i, t, "12.0.0"), e;
|
|
925
|
+
}
|
|
926
|
+
let k = h.select(`${p} svg`), ne = y.db.getAccTitle?.(), re = y.db.getAccDescription?.();
|
|
927
|
+
sr(T, k, ne, re);
|
|
928
|
+
let ie = (/* @__PURE__ */ e(() => {
|
|
929
|
+
h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", Ln);
|
|
930
|
+
let e = h.select(p).node().innerHTML;
|
|
931
|
+
if (n.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), e = Qn(e, g, w(c.arrowMarkerAbsolute)), g) {
|
|
932
|
+
let t = h.select(p + " svg").node();
|
|
933
|
+
e = $n(e, t);
|
|
934
|
+
} else _ || (e = S.sanitize(e, {
|
|
935
|
+
ADD_TAGS: Wn,
|
|
936
|
+
ADD_ATTR: Gn,
|
|
937
|
+
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
938
|
+
}));
|
|
939
|
+
return Cn(), e;
|
|
940
|
+
}, "serializeSvg"))();
|
|
941
|
+
if (x) throw x;
|
|
942
|
+
return m(), {
|
|
943
|
+
diagramType: T,
|
|
944
|
+
svg: ie,
|
|
945
|
+
bindFunctions: y.db.bindFunctions
|
|
946
|
+
};
|
|
947
|
+
}, "renderDiagram"), ir = /* @__PURE__ */ e(async function(e, t, n) {
|
|
948
|
+
try {
|
|
949
|
+
return await rr(e, t, n);
|
|
950
|
+
} finally {
|
|
951
|
+
l(void 0);
|
|
952
|
+
}
|
|
953
|
+
}, "render");
|
|
954
|
+
function ar(e = {}) {
|
|
955
|
+
let n = te({}, e);
|
|
956
|
+
n?.fontFamily && !n.themeVariables?.fontFamily && (n.themeVariables ||= {}, n.themeVariables.fontFamily = n.fontFamily), g(n);
|
|
957
|
+
let r = k.theme;
|
|
958
|
+
n?.theme && Object.hasOwn(p, n.theme) ? n.themeVariables = p[n.theme].getThemeVariables(n.themeVariables) : n && (n.theme != null && n.theme !== "null" && (n.theme = r), n.themeVariables = p[r].getThemeVariables(n.themeVariables)), t((typeof n == "object" ? c(n) : o()).logLevel), Y();
|
|
959
|
+
}
|
|
960
|
+
e(ar, "initialize");
|
|
961
|
+
var or = /* @__PURE__ */ e((e, t = {}) => {
|
|
962
|
+
let { code: n } = kn(e);
|
|
963
|
+
return X.fromText(n, t);
|
|
964
|
+
}, "getDiagramFromText");
|
|
965
|
+
function sr(e, t, n, r) {
|
|
966
|
+
bn(t, e), xn(t, n, r, t.attr("id"));
|
|
967
|
+
}
|
|
968
|
+
e(sr, "addA11yInfo");
|
|
969
|
+
var Z = Object.freeze({
|
|
970
|
+
render: ir,
|
|
971
|
+
parse: qn,
|
|
972
|
+
getDiagramFromText: or,
|
|
973
|
+
initialize: ar,
|
|
974
|
+
getConfig: b,
|
|
975
|
+
setConfig: _,
|
|
976
|
+
getSiteConfig: o,
|
|
977
|
+
updateSiteConfig: i,
|
|
978
|
+
reset: /* @__PURE__ */ e(() => {
|
|
979
|
+
s();
|
|
980
|
+
}, "reset"),
|
|
981
|
+
globalReset: /* @__PURE__ */ e(() => {
|
|
982
|
+
s(k);
|
|
983
|
+
}, "globalReset"),
|
|
984
|
+
defaultConfig: k
|
|
985
|
+
});
|
|
986
|
+
t(b().logLevel), s(b());
|
|
987
|
+
var cr = /* @__PURE__ */ e((e, t, r) => {
|
|
988
|
+
n.warn(e), ie(e) ? (r && r(e.str, e.hash), t.push({
|
|
989
|
+
...e,
|
|
990
|
+
message: e.str,
|
|
991
|
+
error: e
|
|
992
|
+
})) : (r && r(e), e instanceof Error && t.push({
|
|
993
|
+
str: e.message,
|
|
994
|
+
message: e.message,
|
|
995
|
+
hash: e.name,
|
|
996
|
+
error: e
|
|
997
|
+
}));
|
|
998
|
+
}, "handleError"), lr = /* @__PURE__ */ e(async function(e = { querySelector: ".mermaid" }) {
|
|
999
|
+
try {
|
|
1000
|
+
await ur(e);
|
|
1001
|
+
} catch (t) {
|
|
1002
|
+
if (ie(t) && n.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw n.error("Use the suppressErrors option to suppress these errors"), t;
|
|
1003
|
+
}
|
|
1004
|
+
}, "run"), ur = /* @__PURE__ */ e(async function({ postRenderCallback: e, querySelector: t, nodes: r } = { querySelector: ".mermaid" }) {
|
|
1005
|
+
let i = Z.getConfig();
|
|
1006
|
+
n.debug(`${e ? "" : "No "}Callback function found`);
|
|
1007
|
+
let a;
|
|
1008
|
+
if (r) a = r;
|
|
1009
|
+
else if (t) a = document.querySelectorAll(t);
|
|
1010
|
+
else throw Error("Nodes and querySelector are both undefined");
|
|
1011
|
+
n.debug(`Found ${a.length} diagrams`), i?.startOnLoad !== void 0 && (n.debug("Start On Load: " + i?.startOnLoad), Z.updateSiteConfig({ startOnLoad: i?.startOnLoad }));
|
|
1012
|
+
let o = new A.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
|
|
1013
|
+
for (let t of Array.from(a)) {
|
|
1014
|
+
if (n.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
1015
|
+
t.setAttribute("data-processed", "true");
|
|
1016
|
+
let r = `mermaid-${o.next()}`;
|
|
1017
|
+
s = t.innerHTML, s = pe(A.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
1018
|
+
let i = A.detectInit(s);
|
|
1019
|
+
i && n.debug("Detected early reinit: ", i);
|
|
1020
|
+
try {
|
|
1021
|
+
let { svg: n, bindFunctions: i } = await yr(r, s, t);
|
|
1022
|
+
t.innerHTML = n, e && await e(r), i && i(t);
|
|
1023
|
+
} catch (e) {
|
|
1024
|
+
cr(e, c, $.parseError);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
if (c.length > 0) throw c[0];
|
|
1028
|
+
}, "runThrowsErrors"), dr = /* @__PURE__ */ e(function(e) {
|
|
1029
|
+
Z.initialize(e);
|
|
1030
|
+
}, "initialize"), fr = /* @__PURE__ */ e(async function(e, t, r) {
|
|
1031
|
+
n.warn("mermaid.init is deprecated. Please use run instead."), e && dr(e);
|
|
1032
|
+
let i = {
|
|
1033
|
+
postRenderCallback: r,
|
|
1034
|
+
querySelector: ".mermaid"
|
|
1035
|
+
};
|
|
1036
|
+
typeof t == "string" ? i.querySelector = t : t && (t instanceof HTMLElement ? i.nodes = [t] : i.nodes = t), await lr(i);
|
|
1037
|
+
}, "init"), pr = /* @__PURE__ */ e(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
1038
|
+
Y(), f(...e), t === !1 && await vn();
|
|
1039
|
+
}, "registerExternalDiagrams"), mr = /* @__PURE__ */ e(function() {
|
|
1040
|
+
if ($.startOnLoad) {
|
|
1041
|
+
let { startOnLoad: e } = Z.getConfig();
|
|
1042
|
+
e && $.run().catch((e) => n.error("Mermaid failed to initialize", e));
|
|
1043
|
+
}
|
|
1044
|
+
}, "contentLoaded");
|
|
1045
|
+
typeof document < "u" && window.addEventListener("load", mr, !1);
|
|
1046
|
+
var hr = /* @__PURE__ */ e(function(e) {
|
|
1047
|
+
$.parseError = e;
|
|
1048
|
+
}, "setParseErrorHandler"), Q = [], gr = !1, _r = /* @__PURE__ */ e(async () => {
|
|
1049
|
+
if (!gr) {
|
|
1050
|
+
for (gr = !0; Q.length > 0;) {
|
|
1051
|
+
let e = Q.shift();
|
|
1052
|
+
if (e) try {
|
|
1053
|
+
await e();
|
|
1054
|
+
} catch (e) {
|
|
1055
|
+
n.error("Error executing queue", e);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
gr = !1;
|
|
1059
|
+
}
|
|
1060
|
+
}, "executeQueue"), vr = /* @__PURE__ */ e(async (t, r) => new Promise((i, a) => {
|
|
1061
|
+
let o = /* @__PURE__ */ e(() => new Promise((e, o) => {
|
|
1062
|
+
Z.parse(t, r).then((t) => {
|
|
1063
|
+
e(t), i(t);
|
|
1064
|
+
}, (e) => {
|
|
1065
|
+
n.error("Error parsing", e), $.parseError?.(e), o(e), a(e);
|
|
1066
|
+
});
|
|
1067
|
+
}), "performCall");
|
|
1068
|
+
Q.push(o), _r().catch(a);
|
|
1069
|
+
}), "parse"), yr = /* @__PURE__ */ e((t, r, i) => new Promise((a, o) => {
|
|
1070
|
+
let s = /* @__PURE__ */ e(() => new Promise((e, s) => {
|
|
1071
|
+
Z.render(t, r, i).then((t) => {
|
|
1072
|
+
e(t), a(t);
|
|
1073
|
+
}, (e) => {
|
|
1074
|
+
n.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
|
|
1075
|
+
});
|
|
1076
|
+
}), "performCall");
|
|
1077
|
+
Q.push(s), _r().catch(o);
|
|
1078
|
+
}), "render"), $ = {
|
|
1079
|
+
startOnLoad: !0,
|
|
1080
|
+
mermaidAPI: Z,
|
|
1081
|
+
parse: vr,
|
|
1082
|
+
render: yr,
|
|
1083
|
+
init: fr,
|
|
1084
|
+
run: lr,
|
|
1085
|
+
registerExternalDiagrams: pr,
|
|
1086
|
+
registerLayoutLoaders: me,
|
|
1087
|
+
initialize: dr,
|
|
1088
|
+
parseError: void 0,
|
|
1089
|
+
contentLoaded: mr,
|
|
1090
|
+
setParseErrorHandler: hr,
|
|
1091
|
+
detectType: D,
|
|
1092
|
+
registerIconPacks: fe,
|
|
1093
|
+
getRegisteredDiagramsMetadata: /* @__PURE__ */ e(() => Object.keys(E).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
1094
|
+
}, br = $;
|
|
1095
|
+
//#endregion
|
|
1096
|
+
export { br as default };
|