@zjlab-frontier/markdown 1.0.4

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 (53) hide show
  1. package/README.md +148 -0
  2. package/dist/Tableau10-D7jGxypv.mjs +8 -0
  3. package/dist/arc-BkFOiLi7.mjs +84 -0
  4. package/dist/array-CqVTtuYm.mjs +6 -0
  5. package/dist/blockDiagram-c4efeb88-CngVNufX.mjs +1221 -0
  6. package/dist/c4Diagram-c83219d4-CvSWXhSV.mjs +1579 -0
  7. package/dist/channel-BCTzeqLo.mjs +5 -0
  8. package/dist/classDiagram-beda092f-8UkpWDgI.mjs +218 -0
  9. package/dist/classDiagram-v2-2358418a-D3LsBhTm.mjs +200 -0
  10. package/dist/clone-DZgGXtyK.mjs +8 -0
  11. package/dist/createText-1719965b-DMv-Bu7A.mjs +155 -0
  12. package/dist/edges-96097737-BeVwLt3S.mjs +1088 -0
  13. package/dist/erDiagram-0228fc6a-GXXkRZ8r.mjs +929 -0
  14. package/dist/flowDb-c6c81e3f-CrOg5i55.mjs +1126 -0
  15. package/dist/flowDiagram-50d868cf-sXe_oFAW.mjs +788 -0
  16. package/dist/flowDiagram-v2-4f6560a1-CoKYvZkH.mjs +17 -0
  17. package/dist/flowchart-elk-definition-6af322e1-SuvGsuBl.mjs +48146 -0
  18. package/dist/ganttDiagram-a2739b55-BbWq9bqY.mjs +2477 -0
  19. package/dist/gitGraphDiagram-82fe8481-C6-e4UmK.mjs +1264 -0
  20. package/dist/graph-CoIGCRFf.mjs +847 -0
  21. package/dist/index-5325376f-BENBY8aO.mjs +373 -0
  22. package/dist/index-5_ujiRGo.mjs +46276 -0
  23. package/dist/index.css +1 -0
  24. package/dist/index.d.ts +2 -0
  25. package/dist/index.mjs +8 -0
  26. package/dist/index.umd.js +2421 -0
  27. package/dist/infoDiagram-8eee0895-BEAb2pCD.mjs +319 -0
  28. package/dist/init-DjUOC4st.mjs +16 -0
  29. package/dist/journeyDiagram-c64418c1-CERjyYnA.mjs +801 -0
  30. package/dist/layout-aCAVHR2T.mjs +1472 -0
  31. package/dist/line-BGunMwE-.mjs +33 -0
  32. package/dist/linear-DciWi0hE.mjs +423 -0
  33. package/dist/markdown.d.ts +25 -0
  34. package/dist/mindmap-definition-8da855dc-Cc8_U7zD.mjs +21936 -0
  35. package/dist/ordinal-C0oynhte.mjs +61 -0
  36. package/dist/path-DLwuMfdd.mjs +84 -0
  37. package/dist/pieDiagram-a8764435-B00hy7Ez.mjs +500 -0
  38. package/dist/quadrantDiagram-1e28029f-DR7IGAoM.mjs +903 -0
  39. package/dist/requirementDiagram-08caed73-o6N3X3-m.mjs +767 -0
  40. package/dist/sankeyDiagram-a04cb91d-CYF9Ro1W.mjs +802 -0
  41. package/dist/sequenceDiagram-c5b8d532-vz_R7xBU.mjs +2234 -0
  42. package/dist/stateDiagram-1ecb1508-B0YUHnuE.mjs +266 -0
  43. package/dist/stateDiagram-v2-c2b004d7-CDTm1Jfb.mjs +184 -0
  44. package/dist/styles/highlight.scss +115 -0
  45. package/dist/styles/markdown.scss +1163 -0
  46. package/dist/styles-b4e223ce-C_-huVuQ.mjs +1089 -0
  47. package/dist/styles-ca3715f6-soe07Bnw.mjs +960 -0
  48. package/dist/styles-d45a18b0-0ZXwJp5P.mjs +436 -0
  49. package/dist/svgDrawCommon-b86b1483-UCLksviB.mjs +64 -0
  50. package/dist/timeline-definition-faaaa080-Dt5unv7p.mjs +792 -0
  51. package/dist/vite.config.d.ts +2 -0
  52. package/dist/xychartDiagram-f5964ef8-BZWS0E_9.mjs +1282 -0
  53. package/package.json +66 -0
@@ -0,0 +1,960 @@
1
+ import { C as Ut, D as zt, s as Mt, a as Ht, c as Xt, b as Kt, g as Y, k as ot, l as D, E as Wt, a6 as Jt } from "./index-5_ujiRGo.mjs";
2
+ var gt = (function() {
3
+ var t = function(C, r, n, i) {
4
+ for (n = n || {}, i = C.length; i--; n[C[i]] = r)
5
+ ;
6
+ return n;
7
+ }, s = [1, 2], a = [1, 3], h = [1, 4], f = [2, 4], d = [1, 9], y = [1, 11], k = [1, 15], u = [1, 16], E = [1, 17], T = [1, 18], R = [1, 30], G = [1, 19], j = [1, 20], U = [1, 21], z = [1, 22], M = [1, 23], H = [1, 25], X = [1, 26], K = [1, 27], W = [1, 28], J = [1, 29], q = [1, 32], Q = [1, 33], Z = [1, 34], tt = [1, 35], w = [1, 31], c = [1, 4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], et = [1, 4, 5, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], Dt = [4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], ht = {
8
+ trace: function() {
9
+ },
10
+ yy: {},
11
+ symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, cssClassStatement: 11, idStatement: 12, DESCR: 13, "-->": 14, HIDE_EMPTY: 15, scale: 16, WIDTH: 17, COMPOSIT_STATE: 18, STRUCT_START: 19, STRUCT_STOP: 20, STATE_DESCR: 21, AS: 22, ID: 23, FORK: 24, JOIN: 25, CHOICE: 26, CONCURRENT: 27, note: 28, notePosition: 29, NOTE_TEXT: 30, direction: 31, acc_title: 32, acc_title_value: 33, acc_descr: 34, acc_descr_value: 35, acc_descr_multiline_value: 36, classDef: 37, CLASSDEF_ID: 38, CLASSDEF_STYLEOPTS: 39, DEFAULT: 40, class: 41, CLASSENTITY_IDS: 42, STYLECLASS: 43, direction_tb: 44, direction_bt: 45, direction_rl: 46, direction_lr: 47, eol: 48, ";": 49, EDGE_STATE: 50, STYLE_SEPARATOR: 51, left_of: 52, right_of: 53, $accept: 0, $end: 1 },
12
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 13: "DESCR", 14: "-->", 15: "HIDE_EMPTY", 16: "scale", 17: "WIDTH", 18: "COMPOSIT_STATE", 19: "STRUCT_START", 20: "STRUCT_STOP", 21: "STATE_DESCR", 22: "AS", 23: "ID", 24: "FORK", 25: "JOIN", 26: "CHOICE", 27: "CONCURRENT", 28: "note", 30: "NOTE_TEXT", 32: "acc_title", 33: "acc_title_value", 34: "acc_descr", 35: "acc_descr_value", 36: "acc_descr_multiline_value", 37: "classDef", 38: "CLASSDEF_ID", 39: "CLASSDEF_STYLEOPTS", 40: "DEFAULT", 41: "class", 42: "CLASSENTITY_IDS", 43: "STYLECLASS", 44: "direction_tb", 45: "direction_bt", 46: "direction_rl", 47: "direction_lr", 49: ";", 50: "EDGE_STATE", 51: "STYLE_SEPARATOR", 52: "left_of", 53: "right_of" },
13
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [31, 1], [31, 1], [31, 1], [31, 1], [48, 1], [48, 1], [12, 1], [12, 1], [12, 3], [12, 3], [29, 1], [29, 1]],
14
+ performAction: function(r, n, i, o, p, e, $) {
15
+ var l = e.length - 1;
16
+ switch (p) {
17
+ case 3:
18
+ return o.setRootDoc(e[l]), e[l];
19
+ case 4:
20
+ this.$ = [];
21
+ break;
22
+ case 5:
23
+ e[l] != "nl" && (e[l - 1].push(e[l]), this.$ = e[l - 1]);
24
+ break;
25
+ case 6:
26
+ case 7:
27
+ this.$ = e[l];
28
+ break;
29
+ case 8:
30
+ this.$ = "nl";
31
+ break;
32
+ case 11:
33
+ this.$ = e[l];
34
+ break;
35
+ case 12:
36
+ const B = e[l - 1];
37
+ B.description = o.trimColon(e[l]), this.$ = B;
38
+ break;
39
+ case 13:
40
+ this.$ = { stmt: "relation", state1: e[l - 2], state2: e[l] };
41
+ break;
42
+ case 14:
43
+ const ft = o.trimColon(e[l]);
44
+ this.$ = { stmt: "relation", state1: e[l - 3], state2: e[l - 1], description: ft };
45
+ break;
46
+ case 18:
47
+ this.$ = { stmt: "state", id: e[l - 3], type: "default", description: "", doc: e[l - 1] };
48
+ break;
49
+ case 19:
50
+ var v = e[l], O = e[l - 2].trim();
51
+ if (e[l].match(":")) {
52
+ var st = e[l].split(":");
53
+ v = st[0], O = [O, st[1]];
54
+ }
55
+ this.$ = { stmt: "state", id: v, type: "default", description: O };
56
+ break;
57
+ case 20:
58
+ this.$ = { stmt: "state", id: e[l - 3], type: "default", description: e[l - 5], doc: e[l - 1] };
59
+ break;
60
+ case 21:
61
+ this.$ = { stmt: "state", id: e[l], type: "fork" };
62
+ break;
63
+ case 22:
64
+ this.$ = { stmt: "state", id: e[l], type: "join" };
65
+ break;
66
+ case 23:
67
+ this.$ = { stmt: "state", id: e[l], type: "choice" };
68
+ break;
69
+ case 24:
70
+ this.$ = { stmt: "state", id: o.getDividerId(), type: "divider" };
71
+ break;
72
+ case 25:
73
+ this.$ = { stmt: "state", id: e[l - 1].trim(), note: { position: e[l - 2].trim(), text: e[l].trim() } };
74
+ break;
75
+ case 28:
76
+ this.$ = e[l].trim(), o.setAccTitle(this.$);
77
+ break;
78
+ case 29:
79
+ case 30:
80
+ this.$ = e[l].trim(), o.setAccDescription(this.$);
81
+ break;
82
+ case 31:
83
+ case 32:
84
+ this.$ = { stmt: "classDef", id: e[l - 1].trim(), classes: e[l].trim() };
85
+ break;
86
+ case 33:
87
+ this.$ = { stmt: "applyClass", id: e[l - 1].trim(), styleClass: e[l].trim() };
88
+ break;
89
+ case 34:
90
+ o.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
91
+ break;
92
+ case 35:
93
+ o.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
94
+ break;
95
+ case 36:
96
+ o.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
97
+ break;
98
+ case 37:
99
+ o.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
100
+ break;
101
+ case 40:
102
+ case 41:
103
+ this.$ = { stmt: "state", id: e[l].trim(), type: "default", description: "" };
104
+ break;
105
+ case 42:
106
+ this.$ = { stmt: "state", id: e[l - 2].trim(), classes: [e[l].trim()], type: "default", description: "" };
107
+ break;
108
+ case 43:
109
+ this.$ = { stmt: "state", id: e[l - 2].trim(), classes: [e[l].trim()], type: "default", description: "" };
110
+ break;
111
+ }
112
+ },
113
+ table: [{ 3: 1, 4: s, 5: a, 6: h }, { 1: [3] }, { 3: 5, 4: s, 5: a, 6: h }, { 3: 6, 4: s, 5: a, 6: h }, t([1, 4, 5, 15, 16, 18, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], f, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 5]), { 9: 36, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 7]), t(c, [2, 8]), t(c, [2, 9]), t(c, [2, 10]), t(c, [2, 11], { 13: [1, 37], 14: [1, 38] }), t(c, [2, 15]), { 17: [1, 39] }, t(c, [2, 17], { 19: [1, 40] }), { 22: [1, 41] }, t(c, [2, 21]), t(c, [2, 22]), t(c, [2, 23]), t(c, [2, 24]), { 29: 42, 30: [1, 43], 52: [1, 44], 53: [1, 45] }, t(c, [2, 27]), { 33: [1, 46] }, { 35: [1, 47] }, t(c, [2, 30]), { 38: [1, 48], 40: [1, 49] }, { 42: [1, 50] }, t(et, [2, 40], { 51: [1, 51] }), t(et, [2, 41], { 51: [1, 52] }), t(c, [2, 34]), t(c, [2, 35]), t(c, [2, 36]), t(c, [2, 37]), t(c, [2, 6]), t(c, [2, 12]), { 12: 53, 23: R, 50: w }, t(c, [2, 16]), t(Dt, f, { 7: 54 }), { 23: [1, 55] }, { 23: [1, 56] }, { 22: [1, 57] }, { 23: [2, 44] }, { 23: [2, 45] }, t(c, [2, 28]), t(c, [2, 29]), { 39: [1, 58] }, { 39: [1, 59] }, { 43: [1, 60] }, { 23: [1, 61] }, { 23: [1, 62] }, t(c, [2, 13], { 13: [1, 63] }), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 20: [1, 64], 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 19], { 19: [1, 65] }), { 30: [1, 66] }, { 23: [1, 67] }, t(c, [2, 31]), t(c, [2, 32]), t(c, [2, 33]), t(et, [2, 42]), t(et, [2, 43]), t(c, [2, 14]), t(c, [2, 18]), t(Dt, f, { 7: 68 }), t(c, [2, 25]), t(c, [2, 26]), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 20: [1, 69], 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 20])],
114
+ defaultActions: { 5: [2, 1], 6: [2, 2], 44: [2, 44], 45: [2, 45] },
115
+ parseError: function(r, n) {
116
+ if (n.recoverable)
117
+ this.trace(r);
118
+ else {
119
+ var i = new Error(r);
120
+ throw i.hash = n, i;
121
+ }
122
+ },
123
+ parse: function(r) {
124
+ var n = this, i = [0], o = [], p = [null], e = [], $ = this.table, l = "", v = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), A = { yy: {} };
125
+ for (var dt in this.yy)
126
+ Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
127
+ S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
128
+ var yt = S.yylloc;
129
+ e.push(yt);
130
+ var Gt = S.options && S.options.ranges;
131
+ typeof A.yy.parseError == "function" ? this.parseError = A.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
132
+ function jt() {
133
+ var x;
134
+ return x = o.pop() || S.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
135
+ }
136
+ for (var _, L, m, pt, N = {}, it, b, Ct, rt; ; ) {
137
+ if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _ > "u") && (_ = jt()), m = $[L] && $[L][_]), typeof m > "u" || !m.length || !m[0]) {
138
+ var St = "";
139
+ rt = [];
140
+ for (it in $[L])
141
+ this.terminals_[it] && it > st && rt.push("'" + this.terminals_[it] + "'");
142
+ S.showPosition ? St = "Parse error on line " + (v + 1) + `:
143
+ ` + S.showPosition() + `
144
+ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St = "Parse error on line " + (v + 1) + ": Unexpected " + (_ == B ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(St, {
145
+ text: S.match,
146
+ token: this.terminals_[_] || _,
147
+ line: S.yylineno,
148
+ loc: yt,
149
+ expected: rt
150
+ });
151
+ }
152
+ if (m[0] instanceof Array && m.length > 1)
153
+ throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + _);
154
+ switch (m[0]) {
155
+ case 1:
156
+ i.push(_), p.push(S.yytext), e.push(S.yylloc), i.push(m[1]), _ = null, O = S.yyleng, l = S.yytext, v = S.yylineno, yt = S.yylloc;
157
+ break;
158
+ case 2:
159
+ if (b = this.productions_[m[1]][1], N.$ = p[p.length - b], N._$ = {
160
+ first_line: e[e.length - (b || 1)].first_line,
161
+ last_line: e[e.length - 1].last_line,
162
+ first_column: e[e.length - (b || 1)].first_column,
163
+ last_column: e[e.length - 1].last_column
164
+ }, Gt && (N._$.range = [
165
+ e[e.length - (b || 1)].range[0],
166
+ e[e.length - 1].range[1]
167
+ ]), pt = this.performAction.apply(N, [
168
+ l,
169
+ O,
170
+ v,
171
+ A.yy,
172
+ m[1],
173
+ p,
174
+ e
175
+ ].concat(ft)), typeof pt < "u")
176
+ return pt;
177
+ b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
178
+ break;
179
+ case 3:
180
+ return !0;
181
+ }
182
+ }
183
+ return !0;
184
+ }
185
+ }, Yt = /* @__PURE__ */ (function() {
186
+ var C = {
187
+ EOF: 1,
188
+ parseError: function(n, i) {
189
+ if (this.yy.parser)
190
+ this.yy.parser.parseError(n, i);
191
+ else
192
+ throw new Error(n);
193
+ },
194
+ // resets the lexer, sets new input
195
+ setInput: function(r, n) {
196
+ return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
197
+ first_line: 1,
198
+ first_column: 0,
199
+ last_line: 1,
200
+ last_column: 0
201
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
202
+ },
203
+ // consumes and returns one char from the input
204
+ input: function() {
205
+ var r = this._input[0];
206
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
207
+ var n = r.match(/(?:\r\n?|\n).*/g);
208
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
209
+ },
210
+ // unshifts one char (or a string) into the input
211
+ unput: function(r) {
212
+ var n = r.length, i = r.split(/(?:\r\n?|\n)/g);
213
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
214
+ var o = this.match.split(/(?:\r\n?|\n)/g);
215
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), i.length - 1 && (this.yylineno -= i.length - 1);
216
+ var p = this.yylloc.range;
217
+ return this.yylloc = {
218
+ first_line: this.yylloc.first_line,
219
+ last_line: this.yylineno + 1,
220
+ first_column: this.yylloc.first_column,
221
+ last_column: i ? (i.length === o.length ? this.yylloc.first_column : 0) + o[o.length - i.length].length - i[0].length : this.yylloc.first_column - n
222
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
223
+ },
224
+ // When called from action, caches matched text and appends it on next action
225
+ more: function() {
226
+ return this._more = !0, this;
227
+ },
228
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
229
+ reject: function() {
230
+ if (this.options.backtrack_lexer)
231
+ this._backtrack = !0;
232
+ else
233
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
234
+ ` + this.showPosition(), {
235
+ text: "",
236
+ token: null,
237
+ line: this.yylineno
238
+ });
239
+ return this;
240
+ },
241
+ // retain first n characters of the match
242
+ less: function(r) {
243
+ this.unput(this.match.slice(r));
244
+ },
245
+ // displays already matched input, i.e. for error messages
246
+ pastInput: function() {
247
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
248
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
249
+ },
250
+ // displays upcoming input, i.e. for error messages
251
+ upcomingInput: function() {
252
+ var r = this.match;
253
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
254
+ },
255
+ // displays the character position where the lexing error occurred, i.e. for error messages
256
+ showPosition: function() {
257
+ var r = this.pastInput(), n = new Array(r.length + 1).join("-");
258
+ return r + this.upcomingInput() + `
259
+ ` + n + "^";
260
+ },
261
+ // test the lexed token: return FALSE when not a match, otherwise return token
262
+ test_match: function(r, n) {
263
+ var i, o, p;
264
+ if (this.options.backtrack_lexer && (p = {
265
+ yylineno: this.yylineno,
266
+ yylloc: {
267
+ first_line: this.yylloc.first_line,
268
+ last_line: this.last_line,
269
+ first_column: this.yylloc.first_column,
270
+ last_column: this.yylloc.last_column
271
+ },
272
+ yytext: this.yytext,
273
+ match: this.match,
274
+ matches: this.matches,
275
+ matched: this.matched,
276
+ yyleng: this.yyleng,
277
+ offset: this.offset,
278
+ _more: this._more,
279
+ _input: this._input,
280
+ yy: this.yy,
281
+ conditionStack: this.conditionStack.slice(0),
282
+ done: this.done
283
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), o = r[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
284
+ first_line: this.yylloc.last_line,
285
+ last_line: this.yylineno + 1,
286
+ first_column: this.yylloc.last_column,
287
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
288
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], i = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), i)
289
+ return i;
290
+ if (this._backtrack) {
291
+ for (var e in p)
292
+ this[e] = p[e];
293
+ return !1;
294
+ }
295
+ return !1;
296
+ },
297
+ // return next match in input
298
+ next: function() {
299
+ if (this.done)
300
+ return this.EOF;
301
+ this._input || (this.done = !0);
302
+ var r, n, i, o;
303
+ this._more || (this.yytext = "", this.match = "");
304
+ for (var p = this._currentRules(), e = 0; e < p.length; e++)
305
+ if (i = this._input.match(this.rules[p[e]]), i && (!n || i[0].length > n[0].length)) {
306
+ if (n = i, o = e, this.options.backtrack_lexer) {
307
+ if (r = this.test_match(i, p[e]), r !== !1)
308
+ return r;
309
+ if (this._backtrack) {
310
+ n = !1;
311
+ continue;
312
+ } else
313
+ return !1;
314
+ } else if (!this.options.flex)
315
+ break;
316
+ }
317
+ return n ? (r = this.test_match(n, p[o]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
318
+ ` + this.showPosition(), {
319
+ text: "",
320
+ token: null,
321
+ line: this.yylineno
322
+ });
323
+ },
324
+ // return next match that has a token
325
+ lex: function() {
326
+ var n = this.next();
327
+ return n || this.lex();
328
+ },
329
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
330
+ begin: function(n) {
331
+ this.conditionStack.push(n);
332
+ },
333
+ // pop the previously active lexer condition state off the condition stack
334
+ popState: function() {
335
+ var n = this.conditionStack.length - 1;
336
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
337
+ },
338
+ // produce the lexer rule set which is active for the currently active lexer condition state
339
+ _currentRules: function() {
340
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
341
+ },
342
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
343
+ topState: function(n) {
344
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
345
+ },
346
+ // alias for begin(condition)
347
+ pushState: function(n) {
348
+ this.begin(n);
349
+ },
350
+ // return the number of states currently on the stack
351
+ stateStackSize: function() {
352
+ return this.conditionStack.length;
353
+ },
354
+ options: { "case-insensitive": !0 },
355
+ performAction: function(n, i, o, p) {
356
+ switch (o) {
357
+ case 0:
358
+ return 40;
359
+ case 1:
360
+ return 44;
361
+ case 2:
362
+ return 45;
363
+ case 3:
364
+ return 46;
365
+ case 4:
366
+ return 47;
367
+ case 5:
368
+ break;
369
+ case 6:
370
+ break;
371
+ case 7:
372
+ return 5;
373
+ case 8:
374
+ break;
375
+ case 9:
376
+ break;
377
+ case 10:
378
+ break;
379
+ case 11:
380
+ break;
381
+ case 12:
382
+ return this.pushState("SCALE"), 16;
383
+ case 13:
384
+ return 17;
385
+ case 14:
386
+ this.popState();
387
+ break;
388
+ case 15:
389
+ return this.begin("acc_title"), 32;
390
+ case 16:
391
+ return this.popState(), "acc_title_value";
392
+ case 17:
393
+ return this.begin("acc_descr"), 34;
394
+ case 18:
395
+ return this.popState(), "acc_descr_value";
396
+ case 19:
397
+ this.begin("acc_descr_multiline");
398
+ break;
399
+ case 20:
400
+ this.popState();
401
+ break;
402
+ case 21:
403
+ return "acc_descr_multiline_value";
404
+ case 22:
405
+ return this.pushState("CLASSDEF"), 37;
406
+ case 23:
407
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
408
+ case 24:
409
+ return this.popState(), this.pushState("CLASSDEFID"), 38;
410
+ case 25:
411
+ return this.popState(), 39;
412
+ case 26:
413
+ return this.pushState("CLASS"), 41;
414
+ case 27:
415
+ return this.popState(), this.pushState("CLASS_STYLE"), 42;
416
+ case 28:
417
+ return this.popState(), 43;
418
+ case 29:
419
+ return this.pushState("SCALE"), 16;
420
+ case 30:
421
+ return 17;
422
+ case 31:
423
+ this.popState();
424
+ break;
425
+ case 32:
426
+ this.pushState("STATE");
427
+ break;
428
+ case 33:
429
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
430
+ case 34:
431
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
432
+ case 35:
433
+ return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
434
+ case 36:
435
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
436
+ case 37:
437
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
438
+ case 38:
439
+ return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
440
+ case 39:
441
+ return 44;
442
+ case 40:
443
+ return 45;
444
+ case 41:
445
+ return 46;
446
+ case 42:
447
+ return 47;
448
+ case 43:
449
+ this.pushState("STATE_STRING");
450
+ break;
451
+ case 44:
452
+ return this.pushState("STATE_ID"), "AS";
453
+ case 45:
454
+ return this.popState(), "ID";
455
+ case 46:
456
+ this.popState();
457
+ break;
458
+ case 47:
459
+ return "STATE_DESCR";
460
+ case 48:
461
+ return 18;
462
+ case 49:
463
+ this.popState();
464
+ break;
465
+ case 50:
466
+ return this.popState(), this.pushState("struct"), 19;
467
+ case 51:
468
+ break;
469
+ case 52:
470
+ return this.popState(), 20;
471
+ case 53:
472
+ break;
473
+ case 54:
474
+ return this.begin("NOTE"), 28;
475
+ case 55:
476
+ return this.popState(), this.pushState("NOTE_ID"), 52;
477
+ case 56:
478
+ return this.popState(), this.pushState("NOTE_ID"), 53;
479
+ case 57:
480
+ this.popState(), this.pushState("FLOATING_NOTE");
481
+ break;
482
+ case 58:
483
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
484
+ case 59:
485
+ break;
486
+ case 60:
487
+ return "NOTE_TEXT";
488
+ case 61:
489
+ return this.popState(), "ID";
490
+ case 62:
491
+ return this.popState(), this.pushState("NOTE_TEXT"), 23;
492
+ case 63:
493
+ return this.popState(), i.yytext = i.yytext.substr(2).trim(), 30;
494
+ case 64:
495
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 30;
496
+ case 65:
497
+ return 6;
498
+ case 66:
499
+ return 6;
500
+ case 67:
501
+ return 15;
502
+ case 68:
503
+ return 50;
504
+ case 69:
505
+ return 23;
506
+ case 70:
507
+ return i.yytext = i.yytext.trim(), 13;
508
+ case 71:
509
+ return 14;
510
+ case 72:
511
+ return 27;
512
+ case 73:
513
+ return 51;
514
+ case 74:
515
+ return 5;
516
+ case 75:
517
+ return "INVALID";
518
+ }
519
+ },
520
+ rules: [/^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
521
+ conditions: { LINE: { rules: [9, 10], inclusive: !1 }, struct: { rules: [9, 10, 22, 26, 32, 39, 40, 41, 42, 51, 52, 53, 54, 68, 69, 70, 71, 72], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [61], inclusive: !1 }, FLOATING_NOTE: { rules: [58, 59, 60], inclusive: !1 }, NOTE_TEXT: { rules: [63, 64], inclusive: !1 }, NOTE_ID: { rules: [62], inclusive: !1 }, NOTE: { rules: [55, 56, 57], inclusive: !1 }, CLASS_STYLE: { rules: [28], inclusive: !1 }, CLASS: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [25], inclusive: !1 }, CLASSDEF: { rules: [23, 24], inclusive: !1 }, acc_descr_multiline: { rules: [20, 21], inclusive: !1 }, acc_descr: { rules: [18], inclusive: !1 }, acc_title: { rules: [16], inclusive: !1 }, SCALE: { rules: [13, 14, 30, 31], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [45], inclusive: !1 }, STATE_STRING: { rules: [46, 47], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [9, 10, 33, 34, 35, 36, 37, 38, 43, 44, 48, 49, 50], inclusive: !1 }, ID: { rules: [9, 10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 17, 19, 22, 26, 29, 32, 50, 54, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75], inclusive: !0 } }
522
+ };
523
+ return C;
524
+ })();
525
+ ht.lexer = Yt;
526
+ function ut() {
527
+ this.yy = {};
528
+ }
529
+ return ut.prototype = ht, ht.Parser = ut, new ut();
530
+ })();
531
+ gt.parser = gt;
532
+ const De = gt, qt = "LR", Ce = "TB", _t = "state", It = "relation", Qt = "classDef", Zt = "applyClass", Et = "default", te = "divider", bt = "[*]", Ot = "start", Nt = bt, Rt = "end", vt = "color", At = "fill", ee = "bgFill", se = ",";
533
+ function wt() {
534
+ return {};
535
+ }
536
+ let $t = qt, lt = [], P = wt();
537
+ const Bt = () => ({
538
+ relations: [],
539
+ states: {},
540
+ documents: {}
541
+ });
542
+ let ct = {
543
+ root: Bt()
544
+ }, g = ct.root, F = 0, Lt = 0;
545
+ const ie = {
546
+ LINE: 0,
547
+ DOTTED_LINE: 1
548
+ }, re = {
549
+ AGGREGATION: 0,
550
+ EXTENSION: 1,
551
+ COMPOSITION: 2,
552
+ DEPENDENCY: 3
553
+ }, nt = (t) => JSON.parse(JSON.stringify(t)), ne = (t) => {
554
+ D.info("Setting root doc", t), lt = t;
555
+ }, ae = () => lt, at = (t, s, a) => {
556
+ if (s.stmt === It)
557
+ at(t, s.state1, !0), at(t, s.state2, !1);
558
+ else if (s.stmt === _t && (s.id === "[*]" ? (s.id = a ? t.id + "_start" : t.id + "_end", s.start = a) : s.id = s.id.trim()), s.doc) {
559
+ const h = [];
560
+ let f = [], d;
561
+ for (d = 0; d < s.doc.length; d++)
562
+ if (s.doc[d].type === te) {
563
+ const y = nt(s.doc[d]);
564
+ y.doc = nt(f), h.push(y), f = [];
565
+ } else
566
+ f.push(s.doc[d]);
567
+ if (h.length > 0 && f.length > 0) {
568
+ const y = {
569
+ stmt: _t,
570
+ id: Jt(),
571
+ type: "divider",
572
+ doc: nt(f)
573
+ };
574
+ h.push(nt(y)), s.doc = h;
575
+ }
576
+ s.doc.forEach((y) => at(s, y, !0));
577
+ }
578
+ }, le = () => (at({ id: "root" }, { id: "root", doc: lt }, !0), { id: "root", doc: lt }), ce = (t) => {
579
+ let s;
580
+ t.doc ? s = t.doc : s = t, D.info(s), Pt(!0), D.info("Extract", s), s.forEach((a) => {
581
+ switch (a.stmt) {
582
+ case _t:
583
+ I(
584
+ a.id.trim(),
585
+ a.type,
586
+ a.doc,
587
+ a.description,
588
+ a.note,
589
+ a.classes,
590
+ a.styles,
591
+ a.textStyles
592
+ );
593
+ break;
594
+ case It:
595
+ Ft(a.state1, a.state2, a.description);
596
+ break;
597
+ case Qt:
598
+ Vt(a.id.trim(), a.classes);
599
+ break;
600
+ case Zt:
601
+ xt(a.id.trim(), a.styleClass);
602
+ break;
603
+ }
604
+ });
605
+ }, I = function(t, s = Et, a = null, h = null, f = null, d = null, y = null, k = null) {
606
+ const u = t?.trim();
607
+ g.states[u] === void 0 ? (D.info("Adding state ", u, h), g.states[u] = {
608
+ id: u,
609
+ descriptions: [],
610
+ type: s,
611
+ doc: a,
612
+ note: f,
613
+ classes: [],
614
+ styles: [],
615
+ textStyles: []
616
+ }) : (g.states[u].doc || (g.states[u].doc = a), g.states[u].type || (g.states[u].type = s)), h && (D.info("Setting state description", u, h), typeof h == "string" && kt(u, h.trim()), typeof h == "object" && h.forEach((E) => kt(u, E.trim()))), f && (g.states[u].note = f, g.states[u].note.text = ot.sanitizeText(
617
+ g.states[u].note.text,
618
+ Y()
619
+ )), d && (D.info("Setting state classes", u, d), (typeof d == "string" ? [d] : d).forEach((T) => xt(u, T.trim()))), y && (D.info("Setting state styles", u, y), (typeof y == "string" ? [y] : y).forEach((T) => _e(u, T.trim()))), k && (D.info("Setting state styles", u, y), (typeof k == "string" ? [k] : k).forEach((T) => me(u, T.trim())));
620
+ }, Pt = function(t) {
621
+ ct = {
622
+ root: Bt()
623
+ }, g = ct.root, F = 0, P = wt(), t || Wt();
624
+ }, V = function(t) {
625
+ return g.states[t];
626
+ }, oe = function() {
627
+ return g.states;
628
+ }, he = function() {
629
+ D.info("Documents = ", ct);
630
+ }, ue = function() {
631
+ return g.relations;
632
+ };
633
+ function mt(t = "") {
634
+ let s = t;
635
+ return t === bt && (F++, s = `${Ot}${F}`), s;
636
+ }
637
+ function Tt(t = "", s = Et) {
638
+ return t === bt ? Ot : s;
639
+ }
640
+ function fe(t = "") {
641
+ let s = t;
642
+ return t === Nt && (F++, s = `${Rt}${F}`), s;
643
+ }
644
+ function de(t = "", s = Et) {
645
+ return t === Nt ? Rt : s;
646
+ }
647
+ function ye(t, s, a) {
648
+ let h = mt(t.id.trim()), f = Tt(t.id.trim(), t.type), d = mt(s.id.trim()), y = Tt(s.id.trim(), s.type);
649
+ I(
650
+ h,
651
+ f,
652
+ t.doc,
653
+ t.description,
654
+ t.note,
655
+ t.classes,
656
+ t.styles,
657
+ t.textStyles
658
+ ), I(
659
+ d,
660
+ y,
661
+ s.doc,
662
+ s.description,
663
+ s.note,
664
+ s.classes,
665
+ s.styles,
666
+ s.textStyles
667
+ ), g.relations.push({
668
+ id1: h,
669
+ id2: d,
670
+ relationTitle: ot.sanitizeText(a, Y())
671
+ });
672
+ }
673
+ const Ft = function(t, s, a) {
674
+ if (typeof t == "object")
675
+ ye(t, s, a);
676
+ else {
677
+ const h = mt(t.trim()), f = Tt(t), d = fe(s.trim()), y = de(s);
678
+ I(h, f), I(d, y), g.relations.push({
679
+ id1: h,
680
+ id2: d,
681
+ title: ot.sanitizeText(a, Y())
682
+ });
683
+ }
684
+ }, kt = function(t, s) {
685
+ const a = g.states[t], h = s.startsWith(":") ? s.replace(":", "").trim() : s;
686
+ a.descriptions.push(ot.sanitizeText(h, Y()));
687
+ }, pe = function(t) {
688
+ return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
689
+ }, Se = () => (Lt++, "divider-id-" + Lt), Vt = function(t, s = "") {
690
+ P[t] === void 0 && (P[t] = { id: t, styles: [], textStyles: [] });
691
+ const a = P[t];
692
+ s?.split(se).forEach((h) => {
693
+ const f = h.replace(/([^;]*);/, "$1").trim();
694
+ if (h.match(vt)) {
695
+ const y = f.replace(At, ee).replace(vt, At);
696
+ a.textStyles.push(y);
697
+ }
698
+ a.styles.push(f);
699
+ });
700
+ }, ge = function() {
701
+ return P;
702
+ }, xt = function(t, s) {
703
+ t.split(",").forEach(function(a) {
704
+ let h = V(a);
705
+ if (h === void 0) {
706
+ const f = a.trim();
707
+ I(f), h = V(f);
708
+ }
709
+ h.classes.push(s);
710
+ });
711
+ }, _e = function(t, s) {
712
+ const a = V(t);
713
+ a !== void 0 && a.textStyles.push(s);
714
+ }, me = function(t, s) {
715
+ const a = V(t);
716
+ a !== void 0 && a.textStyles.push(s);
717
+ }, Te = () => $t, ke = (t) => {
718
+ $t = t;
719
+ }, Ee = (t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), ve = {
720
+ getConfig: () => Y().state,
721
+ addState: I,
722
+ clear: Pt,
723
+ getState: V,
724
+ getStates: oe,
725
+ getRelations: ue,
726
+ getClasses: ge,
727
+ getDirection: Te,
728
+ addRelation: Ft,
729
+ getDividerId: Se,
730
+ setDirection: ke,
731
+ cleanupLabel: pe,
732
+ lineType: ie,
733
+ relationType: re,
734
+ logDocuments: he,
735
+ getRootDoc: ae,
736
+ setRootDoc: ne,
737
+ getRootDocV2: le,
738
+ extract: ce,
739
+ trimColon: Ee,
740
+ getAccTitle: Kt,
741
+ setAccTitle: Xt,
742
+ getAccDescription: Ht,
743
+ setAccDescription: Mt,
744
+ addStyleClass: Vt,
745
+ setCssClass: xt,
746
+ addDescription: kt,
747
+ setDiagramTitle: zt,
748
+ getDiagramTitle: Ut
749
+ }, be = (t) => `
750
+ defs #statediagram-barbEnd {
751
+ fill: ${t.transitionColor};
752
+ stroke: ${t.transitionColor};
753
+ }
754
+ g.stateGroup text {
755
+ fill: ${t.nodeBorder};
756
+ stroke: none;
757
+ font-size: 10px;
758
+ }
759
+ g.stateGroup text {
760
+ fill: ${t.textColor};
761
+ stroke: none;
762
+ font-size: 10px;
763
+
764
+ }
765
+ g.stateGroup .state-title {
766
+ font-weight: bolder;
767
+ fill: ${t.stateLabelColor};
768
+ }
769
+
770
+ g.stateGroup rect {
771
+ fill: ${t.mainBkg};
772
+ stroke: ${t.nodeBorder};
773
+ }
774
+
775
+ g.stateGroup line {
776
+ stroke: ${t.lineColor};
777
+ stroke-width: 1;
778
+ }
779
+
780
+ .transition {
781
+ stroke: ${t.transitionColor};
782
+ stroke-width: 1;
783
+ fill: none;
784
+ }
785
+
786
+ .stateGroup .composit {
787
+ fill: ${t.background};
788
+ border-bottom: 1px
789
+ }
790
+
791
+ .stateGroup .alt-composit {
792
+ fill: #e0e0e0;
793
+ border-bottom: 1px
794
+ }
795
+
796
+ .state-note {
797
+ stroke: ${t.noteBorderColor};
798
+ fill: ${t.noteBkgColor};
799
+
800
+ text {
801
+ fill: ${t.noteTextColor};
802
+ stroke: none;
803
+ font-size: 10px;
804
+ }
805
+ }
806
+
807
+ .stateLabel .box {
808
+ stroke: none;
809
+ stroke-width: 0;
810
+ fill: ${t.mainBkg};
811
+ opacity: 0.5;
812
+ }
813
+
814
+ .edgeLabel .label rect {
815
+ fill: ${t.labelBackgroundColor};
816
+ opacity: 0.5;
817
+ }
818
+ .edgeLabel .label text {
819
+ fill: ${t.transitionLabelColor || t.tertiaryTextColor};
820
+ }
821
+ .label div .edgeLabel {
822
+ color: ${t.transitionLabelColor || t.tertiaryTextColor};
823
+ }
824
+
825
+ .stateLabel text {
826
+ fill: ${t.stateLabelColor};
827
+ font-size: 10px;
828
+ font-weight: bold;
829
+ }
830
+
831
+ .node circle.state-start {
832
+ fill: ${t.specialStateColor};
833
+ stroke: ${t.specialStateColor};
834
+ }
835
+
836
+ .node .fork-join {
837
+ fill: ${t.specialStateColor};
838
+ stroke: ${t.specialStateColor};
839
+ }
840
+
841
+ .node circle.state-end {
842
+ fill: ${t.innerEndBackground};
843
+ stroke: ${t.background};
844
+ stroke-width: 1.5
845
+ }
846
+ .end-state-inner {
847
+ fill: ${t.compositeBackground || t.background};
848
+ // stroke: ${t.background};
849
+ stroke-width: 1.5
850
+ }
851
+
852
+ .node rect {
853
+ fill: ${t.stateBkg || t.mainBkg};
854
+ stroke: ${t.stateBorder || t.nodeBorder};
855
+ stroke-width: 1px;
856
+ }
857
+ .node polygon {
858
+ fill: ${t.mainBkg};
859
+ stroke: ${t.stateBorder || t.nodeBorder};;
860
+ stroke-width: 1px;
861
+ }
862
+ #statediagram-barbEnd {
863
+ fill: ${t.lineColor};
864
+ }
865
+
866
+ .statediagram-cluster rect {
867
+ fill: ${t.compositeTitleBackground};
868
+ stroke: ${t.stateBorder || t.nodeBorder};
869
+ stroke-width: 1px;
870
+ }
871
+
872
+ .cluster-label, .nodeLabel {
873
+ color: ${t.stateLabelColor};
874
+ }
875
+
876
+ .statediagram-cluster rect.outer {
877
+ rx: 5px;
878
+ ry: 5px;
879
+ }
880
+ .statediagram-state .divider {
881
+ stroke: ${t.stateBorder || t.nodeBorder};
882
+ }
883
+
884
+ .statediagram-state .title-state {
885
+ rx: 5px;
886
+ ry: 5px;
887
+ }
888
+ .statediagram-cluster.statediagram-cluster .inner {
889
+ fill: ${t.compositeBackground || t.background};
890
+ }
891
+ .statediagram-cluster.statediagram-cluster-alt .inner {
892
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
893
+ }
894
+
895
+ .statediagram-cluster .inner {
896
+ rx:0;
897
+ ry:0;
898
+ }
899
+
900
+ .statediagram-state rect.basic {
901
+ rx: 5px;
902
+ ry: 5px;
903
+ }
904
+ .statediagram-state rect.divider {
905
+ stroke-dasharray: 10,10;
906
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
907
+ }
908
+
909
+ .note-edge {
910
+ stroke-dasharray: 5;
911
+ }
912
+
913
+ .statediagram-note rect {
914
+ fill: ${t.noteBkgColor};
915
+ stroke: ${t.noteBorderColor};
916
+ stroke-width: 1px;
917
+ rx: 0;
918
+ ry: 0;
919
+ }
920
+ .statediagram-note rect {
921
+ fill: ${t.noteBkgColor};
922
+ stroke: ${t.noteBorderColor};
923
+ stroke-width: 1px;
924
+ rx: 0;
925
+ ry: 0;
926
+ }
927
+
928
+ .statediagram-note text {
929
+ fill: ${t.noteTextColor};
930
+ }
931
+
932
+ .statediagram-note .nodeLabel {
933
+ color: ${t.noteTextColor};
934
+ }
935
+ .statediagram .edgeLabel {
936
+ color: red; // ${t.noteTextColor};
937
+ }
938
+
939
+ #dependencyStart, #dependencyEnd {
940
+ fill: ${t.lineColor};
941
+ stroke: ${t.lineColor};
942
+ stroke-width: 1;
943
+ }
944
+
945
+ .statediagramTitleText {
946
+ text-anchor: middle;
947
+ font-size: 18px;
948
+ fill: ${t.textColor};
949
+ }
950
+ `, Ae = be;
951
+ export {
952
+ Ce as D,
953
+ It as S,
954
+ Et as a,
955
+ te as b,
956
+ _t as c,
957
+ ve as d,
958
+ De as p,
959
+ Ae as s
960
+ };