@ucap-llm/ai-ui 1.1.6 → 1.1.7

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 (55) hide show
  1. package/_basePickBy-7d00d05e.mjs +153 -0
  2. package/_baseUniq-1876be04.mjs +440 -0
  3. package/ai-ui.es.js +11 -78207
  4. package/ai-ui.umd.js +2701 -143
  5. package/arc-bb1e7b28.mjs +85 -0
  6. package/architecture-4AB2E3PP-26f07d27.mjs +10 -0
  7. package/architectureDiagram-IEHRJDOE-535e4958.mjs +4640 -0
  8. package/blockDiagram-JOT3LUYC-e5536854.mjs +2251 -0
  9. package/c4Diagram-VJAJSXHY-311741c3.mjs +1583 -0
  10. package/channel-5d097975.mjs +5 -0
  11. package/chunk-4BMEZGHF-55420838.mjs +9 -0
  12. package/chunk-A2AXSNBT-5f9de039.mjs +1373 -0
  13. package/chunk-AEK57VVT-bd6e836f.mjs +1416 -0
  14. package/chunk-D6G4REZN-69cf348a.mjs +64 -0
  15. package/chunk-RZ5BOZE2-ebe3985e.mjs +24 -0
  16. package/chunk-XZIHB7SX-ed9a9d65.mjs +15 -0
  17. package/classDiagram-GIVACNV2-4d61f06d.mjs +18 -0
  18. package/classDiagram-v2-COTLJTTW-4d61f06d.mjs +18 -0
  19. package/clone-44064c55.mjs +8 -0
  20. package/cytoscape.esm-bb479f88.mjs +18232 -0
  21. package/dagre-OKDRZEBW-0574359b.mjs +448 -0
  22. package/diagram-SSKATNLV-f4dd04b2.mjs +225 -0
  23. package/diagram-VNBRO52H-f77f925a.mjs +130 -0
  24. package/erDiagram-Q7BY3M3F-8213684f.mjs +843 -0
  25. package/flowDiagram-4HSFHLVR-1decdff6.mjs +1624 -0
  26. package/ganttDiagram-APWFNJXF-461381a5.mjs +2521 -0
  27. package/gitGraph-O2Q2CXLX-d961db16.mjs +10 -0
  28. package/gitGraphDiagram-7IBYFJ6S-be6c39c3.mjs +716 -0
  29. package/graph-7ba79f74.mjs +249 -0
  30. package/index-f5aac161.mjs +93487 -0
  31. package/info-4N47QTOZ-615527c9.mjs +10 -0
  32. package/infoDiagram-PH2N3AL5-064df479.mjs +26 -0
  33. package/init-f9637058.mjs +16 -0
  34. package/journeyDiagram-U35MCT3I-94c54b39.mjs +811 -0
  35. package/kanban-definition-NDS4AKOZ-58a05db1.mjs +720 -0
  36. package/katex-2e45926a.mjs +11700 -0
  37. package/layout-c953b0e7.mjs +1344 -0
  38. package/linear-3c81794f.mjs +447 -0
  39. package/mermaid-parser.core-7afd2b2f.mjs +12845 -0
  40. package/mindmap-definition-ALO5MXBD-60e68e28.mjs +3222 -0
  41. package/ordinal-980380c7.mjs +65 -0
  42. package/package.json +1 -1
  43. package/packet-KVYON367-4b5a305e.mjs +10 -0
  44. package/pie-R6RNRRYF-0f27d16d.mjs +10 -0
  45. package/pieDiagram-IB7DONF6-66cebf11.mjs +167 -0
  46. package/quadrantDiagram-7GDLP6J5-f2cbfc79.mjs +1027 -0
  47. package/radar-MK3ICKWK-9e1913d7.mjs +10 -0
  48. package/requirementDiagram-KVF5MWMF-36d316c2.mjs +853 -0
  49. package/sankeyDiagram-QLVOVGJD-76245efb.mjs +826 -0
  50. package/sequenceDiagram-X6HHIX6F-a0ec0021.mjs +2283 -0
  51. package/stateDiagram-DGXRK772-e6387816.mjs +274 -0
  52. package/stateDiagram-v2-YXO3MK2T-f011ada4.mjs +18 -0
  53. package/style.css +1 -1
  54. package/timeline-definition-BDJGKUSR-a62514a7.mjs +806 -0
  55. package/xychartDiagram-VJFVF3MP-1b807048.mjs +1306 -0
@@ -0,0 +1,1373 @@
1
+ import { g as et, s as tt } from "./chunk-RZ5BOZE2-ebe3985e.mjs";
2
+ import { _ as f, i as st, d as F, P as R, j as J, s as it, g as at, c as nt, b as rt, n as ut, o as lt, e as v, t as ct, l as Oe, u as we, r as ot, y as ht, z as dt } from "./index-f5aac161.mjs";
3
+ var Ve = function() {
4
+ var s = /* @__PURE__ */ f(function(I, c, h, p) {
5
+ for (h = h || {}, p = I.length; p--; h[I[p]] = c)
6
+ ;
7
+ return h;
8
+ }, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], o = [1, 26], A = [1, 24], g = [1, 25], k = [1, 32], L = [1, 33], Ae = [1, 34], m = [1, 45], fe = [1, 35], ge = [1, 36], Ce = [1, 37], me = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], D = [1, 47], De = [1, 9], d = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], Fe = [1, 63], Be = [1, 64], ne = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], re = [1, 8, 9, 12, 13, 17, 20, 22, 39, 41, 44, 48, 58, 66, 67, 68, 69, 70, 71, 72, 77, 79, 84, 99, 101, 102], ue = [13, 58, 84, 99, 101, 102], G = [13, 58, 71, 72, 84, 99, 101, 102], Me = [13, 58, 66, 67, 68, 69, 70, 84, 99, 101, 102], _e = [1, 98], U = [1, 115], z = [1, 107], K = [1, 113], Y = [1, 108], j = [1, 109], Q = [1, 110], W = [1, 111], X = [1, 112], H = [1, 114], Re = [22, 58, 59, 80, 84, 85, 86, 87, 88, 89], Se = [1, 8, 9, 39, 41, 44], le = [1, 8, 9, 22], Ge = [1, 143], Ue = [1, 8, 9, 59], N = [1, 8, 9, 22, 58, 59, 80, 84, 85, 86, 87, 88, 89], Ne = {
9
+ trace: /* @__PURE__ */ f(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, DOT: 17, className: 18, classLiteralName: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, CLASS: 46, ANNOTATION_START: 47, ANNOTATION_END: 48, MEMBER: 49, SEPARATOR: 50, relation: 51, NOTE_FOR: 52, noteText: 53, NOTE: 54, CLASSDEF: 55, classList: 56, stylesOpt: 57, ALPHA: 58, COMMA: 59, direction_tb: 60, direction_bt: 61, direction_rl: 62, direction_lr: 63, relationType: 64, lineType: 65, AGGREGATION: 66, EXTENSION: 67, COMPOSITION: 68, DEPENDENCY: 69, LOLLIPOP: 70, LINE: 71, DOTTED_LINE: 72, CALLBACK: 73, LINK: 74, LINK_TARGET: 75, CLICK: 76, CALLBACK_NAME: 77, CALLBACK_ARGS: 78, HREF: 79, STYLE: 80, CSSCLASS: 81, style: 82, styleComponent: 83, NUM: 84, COLON: 85, UNIT: 86, SPACE: 87, BRKT: 88, PCT: 89, commentToken: 90, textToken: 91, graphCodeTokens: 92, textNoTagsToken: 93, TAGSTART: 94, TAGEND: 95, "==": 96, "--": 97, DEFAULT: 98, MINUS: 99, keywords: 100, UNICODE_TEXT: 101, BQUOTE_STR: 102, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 17: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "CLASS", 47: "ANNOTATION_START", 48: "ANNOTATION_END", 49: "MEMBER", 50: "SEPARATOR", 52: "NOTE_FOR", 54: "NOTE", 55: "CLASSDEF", 58: "ALPHA", 59: "COMMA", 60: "direction_tb", 61: "direction_bt", 62: "direction_rl", 63: "direction_lr", 66: "AGGREGATION", 67: "EXTENSION", 68: "COMPOSITION", 69: "DEPENDENCY", 70: "LOLLIPOP", 71: "LINE", 72: "DOTTED_LINE", 73: "CALLBACK", 74: "LINK", 75: "LINK_TARGET", 76: "CLICK", 77: "CALLBACK_NAME", 78: "CALLBACK_ARGS", 79: "HREF", 80: "STYLE", 81: "CSSCLASS", 84: "NUM", 85: "COLON", 86: "UNIT", 87: "SPACE", 88: "BRKT", 89: "PCT", 92: "graphCodeTokens", 94: "TAGSTART", 95: "TAGEND", 96: "==", 97: "--", 98: "DEFAULT", 99: "MINUS", 100: "keywords", 101: "UNICODE_TEXT", 102: "BQUOTE_STR" },
14
+ productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 3], [15, 2], [18, 1], [18, 3], [18, 1], [18, 2], [18, 2], [18, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 6], [43, 2], [43, 3], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [56, 1], [56, 3], [32, 1], [32, 1], [32, 1], [32, 1], [51, 3], [51, 2], [51, 2], [51, 1], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [57, 1], [57, 3], [82, 1], [82, 2], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [90, 1], [90, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [93, 1], [93, 1], [93, 1], [93, 1], [16, 1], [16, 1], [16, 1], [16, 1], [19, 1], [53, 1]],
15
+ performAction: /* @__PURE__ */ f(function(c, h, p, n, C, e, q) {
16
+ var t = e.length - 1;
17
+ switch (C) {
18
+ case 8:
19
+ this.$ = e[t - 1];
20
+ break;
21
+ case 9:
22
+ case 12:
23
+ case 14:
24
+ this.$ = e[t];
25
+ break;
26
+ case 10:
27
+ case 13:
28
+ this.$ = e[t - 2] + "." + e[t];
29
+ break;
30
+ case 11:
31
+ case 15:
32
+ this.$ = e[t - 1] + e[t];
33
+ break;
34
+ case 16:
35
+ case 17:
36
+ this.$ = e[t - 1] + "~" + e[t] + "~";
37
+ break;
38
+ case 18:
39
+ n.addRelation(e[t]);
40
+ break;
41
+ case 19:
42
+ e[t - 1].title = n.cleanupLabel(e[t]), n.addRelation(e[t - 1]);
43
+ break;
44
+ case 30:
45
+ this.$ = e[t].trim(), n.setAccTitle(this.$);
46
+ break;
47
+ case 31:
48
+ case 32:
49
+ this.$ = e[t].trim(), n.setAccDescription(this.$);
50
+ break;
51
+ case 33:
52
+ n.addClassesToNamespace(e[t - 3], e[t - 1]);
53
+ break;
54
+ case 34:
55
+ n.addClassesToNamespace(e[t - 4], e[t - 1]);
56
+ break;
57
+ case 35:
58
+ this.$ = e[t], n.addNamespace(e[t]);
59
+ break;
60
+ case 36:
61
+ this.$ = [e[t]];
62
+ break;
63
+ case 37:
64
+ this.$ = [e[t - 1]];
65
+ break;
66
+ case 38:
67
+ e[t].unshift(e[t - 2]), this.$ = e[t];
68
+ break;
69
+ case 40:
70
+ n.setCssClass(e[t - 2], e[t]);
71
+ break;
72
+ case 41:
73
+ n.addMembers(e[t - 3], e[t - 1]);
74
+ break;
75
+ case 42:
76
+ n.setCssClass(e[t - 5], e[t - 3]), n.addMembers(e[t - 5], e[t - 1]);
77
+ break;
78
+ case 43:
79
+ this.$ = e[t], n.addClass(e[t]);
80
+ break;
81
+ case 44:
82
+ this.$ = e[t - 1], n.addClass(e[t - 1]), n.setClassLabel(e[t - 1], e[t]);
83
+ break;
84
+ case 45:
85
+ n.addAnnotation(e[t], e[t - 2]);
86
+ break;
87
+ case 46:
88
+ case 59:
89
+ this.$ = [e[t]];
90
+ break;
91
+ case 47:
92
+ e[t].push(e[t - 1]), this.$ = e[t];
93
+ break;
94
+ case 48:
95
+ break;
96
+ case 49:
97
+ n.addMember(e[t - 1], n.cleanupLabel(e[t]));
98
+ break;
99
+ case 50:
100
+ break;
101
+ case 51:
102
+ break;
103
+ case 52:
104
+ this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
105
+ break;
106
+ case 53:
107
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
108
+ break;
109
+ case 54:
110
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
111
+ break;
112
+ case 55:
113
+ this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
114
+ break;
115
+ case 56:
116
+ n.addNote(e[t], e[t - 1]);
117
+ break;
118
+ case 57:
119
+ n.addNote(e[t]);
120
+ break;
121
+ case 58:
122
+ this.$ = e[t - 2], n.defineClass(e[t - 1], e[t]);
123
+ break;
124
+ case 60:
125
+ this.$ = e[t - 2].concat([e[t]]);
126
+ break;
127
+ case 61:
128
+ n.setDirection("TB");
129
+ break;
130
+ case 62:
131
+ n.setDirection("BT");
132
+ break;
133
+ case 63:
134
+ n.setDirection("RL");
135
+ break;
136
+ case 64:
137
+ n.setDirection("LR");
138
+ break;
139
+ case 65:
140
+ this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
141
+ break;
142
+ case 66:
143
+ this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
144
+ break;
145
+ case 67:
146
+ this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
147
+ break;
148
+ case 68:
149
+ this.$ = { type1: "none", type2: "none", lineType: e[t] };
150
+ break;
151
+ case 69:
152
+ this.$ = n.relationType.AGGREGATION;
153
+ break;
154
+ case 70:
155
+ this.$ = n.relationType.EXTENSION;
156
+ break;
157
+ case 71:
158
+ this.$ = n.relationType.COMPOSITION;
159
+ break;
160
+ case 72:
161
+ this.$ = n.relationType.DEPENDENCY;
162
+ break;
163
+ case 73:
164
+ this.$ = n.relationType.LOLLIPOP;
165
+ break;
166
+ case 74:
167
+ this.$ = n.lineType.LINE;
168
+ break;
169
+ case 75:
170
+ this.$ = n.lineType.DOTTED_LINE;
171
+ break;
172
+ case 76:
173
+ case 82:
174
+ this.$ = e[t - 2], n.setClickEvent(e[t - 1], e[t]);
175
+ break;
176
+ case 77:
177
+ case 83:
178
+ this.$ = e[t - 3], n.setClickEvent(e[t - 2], e[t - 1]), n.setTooltip(e[t - 2], e[t]);
179
+ break;
180
+ case 78:
181
+ this.$ = e[t - 2], n.setLink(e[t - 1], e[t]);
182
+ break;
183
+ case 79:
184
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t - 1], e[t]);
185
+ break;
186
+ case 80:
187
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t - 1]), n.setTooltip(e[t - 2], e[t]);
188
+ break;
189
+ case 81:
190
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 2], e[t]), n.setTooltip(e[t - 3], e[t - 1]);
191
+ break;
192
+ case 84:
193
+ this.$ = e[t - 3], n.setClickEvent(e[t - 2], e[t - 1], e[t]);
194
+ break;
195
+ case 85:
196
+ this.$ = e[t - 4], n.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), n.setTooltip(e[t - 3], e[t]);
197
+ break;
198
+ case 86:
199
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t]);
200
+ break;
201
+ case 87:
202
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 1], e[t]);
203
+ break;
204
+ case 88:
205
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 1]), n.setTooltip(e[t - 3], e[t]);
206
+ break;
207
+ case 89:
208
+ this.$ = e[t - 5], n.setLink(e[t - 4], e[t - 2], e[t]), n.setTooltip(e[t - 4], e[t - 1]);
209
+ break;
210
+ case 90:
211
+ this.$ = e[t - 2], n.setCssStyle(e[t - 1], e[t]);
212
+ break;
213
+ case 91:
214
+ n.setCssClass(e[t - 1], e[t]);
215
+ break;
216
+ case 92:
217
+ this.$ = [e[t]];
218
+ break;
219
+ case 93:
220
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
221
+ break;
222
+ case 95:
223
+ this.$ = e[t - 1] + e[t];
224
+ break;
225
+ }
226
+ }, "anonymous"),
227
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 18], { 22: [1, 50] }), s(d, [2, 20]), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 32]), s(d, [2, 48], { 51: 53, 64: 56, 65: 57, 13: [1, 54], 22: [1, 55], 66: ee, 67: te, 68: se, 69: ie, 70: ae, 71: Fe, 72: Be }), { 39: [1, 65] }, s(ne, [2, 39], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 50]), s(d, [2, 51]), { 16: 68, 58: m, 84: b, 99: E, 101: y }, { 16: 39, 18: 69, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 16: 39, 18: 70, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 16: 39, 18: 71, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 58: [1, 72] }, { 13: [1, 73] }, { 16: 39, 18: 74, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 13: Pe, 53: 75 }, { 56: 77, 58: [1, 78] }, s(d, [2, 61]), s(d, [2, 62]), s(d, [2, 63]), s(d, [2, 64]), s(P, [2, 12], { 16: 39, 19: 40, 18: 80, 17: [1, 79], 20: [1, 81], 58: m, 84: b, 99: E, 101: y, 102: D }), s(P, [2, 14], { 20: [1, 82] }), { 15: 83, 16: 84, 58: m, 84: b, 99: E, 101: y }, { 16: 39, 18: 85, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(re, [2, 118]), s(re, [2, 119]), s(re, [2, 120]), s(re, [2, 121]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], [2, 122]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 18: 21, 38: 22, 43: 23, 16: 39, 19: 40, 5: 86, 33: i, 35: a, 37: u, 42: l, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }), { 5: 87, 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }, s(d, [2, 19]), s(d, [2, 30]), s(d, [2, 31]), { 13: [1, 89], 16: 39, 18: 88, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 51: 90, 64: 56, 65: 57, 66: ee, 67: te, 68: se, 69: ie, 70: ae, 71: Fe, 72: Be }, s(d, [2, 49]), { 65: 91, 71: Fe, 72: Be }, s(ue, [2, 68], { 64: 92, 66: ee, 67: te, 68: se, 69: ie, 70: ae }), s(G, [2, 69]), s(G, [2, 70]), s(G, [2, 71]), s(G, [2, 72]), s(G, [2, 73]), s(Me, [2, 74]), s(Me, [2, 75]), { 8: [1, 94], 24: 95, 40: 93, 43: 23, 46: r }, { 16: 96, 58: m, 84: b, 99: E, 101: y }, { 45: 97, 49: _e }, { 48: [1, 99] }, { 13: [1, 100] }, { 13: [1, 101] }, { 77: [1, 102], 79: [1, 103] }, { 22: U, 57: 104, 58: z, 80: K, 82: 105, 83: 106, 84: Y, 85: j, 86: Q, 87: W, 88: X, 89: H }, { 58: [1, 116] }, { 13: Pe, 53: 117 }, s(d, [2, 57]), s(d, [2, 123]), { 22: U, 57: 118, 58: z, 59: [1, 119], 80: K, 82: 105, 83: 106, 84: Y, 85: j, 86: Q, 87: W, 88: X, 89: H }, s(Re, [2, 59]), { 16: 39, 18: 120, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(P, [2, 15]), s(P, [2, 16]), s(P, [2, 17]), { 39: [2, 35] }, { 15: 122, 16: 84, 17: [1, 121], 39: [2, 9], 58: m, 84: b, 99: E, 101: y }, s(Se, [2, 43], { 11: 123, 12: [1, 124] }), s(De, [2, 7]), { 9: [1, 125] }, s(le, [2, 52]), { 16: 39, 18: 126, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 13: [1, 128], 16: 39, 18: 127, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(ue, [2, 67], { 64: 129, 66: ee, 67: te, 68: se, 69: ie, 70: ae }), s(ue, [2, 66]), { 41: [1, 130] }, { 24: 95, 40: 131, 43: 23, 46: r }, { 8: [1, 132], 41: [2, 36] }, s(ne, [2, 40], { 39: [1, 133] }), { 41: [1, 134] }, { 41: [2, 46], 45: 135, 49: _e }, { 16: 39, 18: 136, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(d, [2, 76], { 13: [1, 137] }), s(d, [2, 78], { 13: [1, 139], 75: [1, 138] }), s(d, [2, 82], { 13: [1, 140], 78: [1, 141] }), { 13: [1, 142] }, s(d, [2, 90], { 59: Ge }), s(Ue, [2, 92], { 83: 144, 22: U, 58: z, 80: K, 84: Y, 85: j, 86: Q, 87: W, 88: X, 89: H }), s(N, [2, 94]), s(N, [2, 96]), s(N, [2, 97]), s(N, [2, 98]), s(N, [2, 99]), s(N, [2, 100]), s(N, [2, 101]), s(N, [2, 102]), s(N, [2, 103]), s(N, [2, 104]), s(d, [2, 91]), s(d, [2, 56]), s(d, [2, 58], { 59: Ge }), { 58: [1, 145] }, s(P, [2, 13]), { 15: 146, 16: 84, 58: m, 84: b, 99: E, 101: y }, { 39: [2, 11] }, s(Se, [2, 44]), { 13: [1, 147] }, { 1: [2, 4] }, s(le, [2, 54]), s(le, [2, 53]), { 16: 39, 18: 148, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(ue, [2, 65]), s(d, [2, 33]), { 41: [1, 149] }, { 24: 95, 40: 150, 41: [2, 37], 43: 23, 46: r }, { 45: 151, 49: _e }, s(ne, [2, 41]), { 41: [2, 47] }, s(d, [2, 45]), s(d, [2, 77]), s(d, [2, 79]), s(d, [2, 80], { 75: [1, 152] }), s(d, [2, 83]), s(d, [2, 84], { 13: [1, 153] }), s(d, [2, 86], { 13: [1, 155], 75: [1, 154] }), { 22: U, 58: z, 80: K, 82: 156, 83: 106, 84: Y, 85: j, 86: Q, 87: W, 88: X, 89: H }, s(N, [2, 95]), s(Re, [2, 60]), { 39: [2, 10] }, { 14: [1, 157] }, s(le, [2, 55]), s(d, [2, 34]), { 41: [2, 38] }, { 41: [1, 158] }, s(d, [2, 81]), s(d, [2, 85]), s(d, [2, 87]), s(d, [2, 88], { 75: [1, 159] }), s(Ue, [2, 93], { 83: 144, 22: U, 58: z, 80: K, 84: Y, 85: j, 86: Q, 87: W, 88: X, 89: H }), s(Se, [2, 8]), s(ne, [2, 42]), s(d, [2, 89])],
228
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 35], 122: [2, 11], 125: [2, 4], 135: [2, 47], 146: [2, 10], 150: [2, 38] },
229
+ parseError: /* @__PURE__ */ f(function(c, h) {
230
+ if (h.recoverable)
231
+ this.trace(c);
232
+ else {
233
+ var p = new Error(c);
234
+ throw p.hash = h, p;
235
+ }
236
+ }, "parseError"),
237
+ parse: /* @__PURE__ */ f(function(c) {
238
+ var h = this, p = [0], n = [], C = [null], e = [], q = this.table, t = "", oe = 0, ze = 0, qe = 2, Ke = 1, Je = e.slice.call(arguments, 1), T = Object.create(this.lexer), O = { yy: {} };
239
+ for (var Le in this.yy)
240
+ Object.prototype.hasOwnProperty.call(this.yy, Le) && (O.yy[Le] = this.yy[Le]);
241
+ T.setInput(c, O.yy), O.yy.lexer = T, O.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
242
+ var xe = T.yylloc;
243
+ e.push(xe);
244
+ var Ze = T.options && T.options.ranges;
245
+ typeof O.yy.parseError == "function" ? this.parseError = O.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
246
+ function $e(_) {
247
+ p.length = p.length - 2 * _, C.length = C.length - _, e.length = e.length - _;
248
+ }
249
+ f($e, "popStack");
250
+ function Ye() {
251
+ var _;
252
+ return _ = n.pop() || T.lex() || Ke, typeof _ != "number" && (_ instanceof Array && (n = _, _ = n.pop()), _ = h.symbols_[_] || _), _;
253
+ }
254
+ f(Ye, "lex");
255
+ for (var B, w, S, ve, M = {}, he, x, je, de; ; ) {
256
+ if (w = p[p.length - 1], this.defaultActions[w] ? S = this.defaultActions[w] : ((B === null || typeof B > "u") && (B = Ye()), S = q[w] && q[w][B]), typeof S > "u" || !S.length || !S[0]) {
257
+ var Ie = "";
258
+ de = [];
259
+ for (he in q[w])
260
+ this.terminals_[he] && he > qe && de.push("'" + this.terminals_[he] + "'");
261
+ T.showPosition ? Ie = "Parse error on line " + (oe + 1) + `:
262
+ ` + T.showPosition() + `
263
+ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie = "Parse error on line " + (oe + 1) + ": Unexpected " + (B == Ke ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Ie, {
264
+ text: T.match,
265
+ token: this.terminals_[B] || B,
266
+ line: T.yylineno,
267
+ loc: xe,
268
+ expected: de
269
+ });
270
+ }
271
+ if (S[0] instanceof Array && S.length > 1)
272
+ throw new Error("Parse Error: multiple actions possible at state: " + w + ", token: " + B);
273
+ switch (S[0]) {
274
+ case 1:
275
+ p.push(B), C.push(T.yytext), e.push(T.yylloc), p.push(S[1]), B = null, ze = T.yyleng, t = T.yytext, oe = T.yylineno, xe = T.yylloc;
276
+ break;
277
+ case 2:
278
+ if (x = this.productions_[S[1]][1], M.$ = C[C.length - x], M._$ = {
279
+ first_line: e[e.length - (x || 1)].first_line,
280
+ last_line: e[e.length - 1].last_line,
281
+ first_column: e[e.length - (x || 1)].first_column,
282
+ last_column: e[e.length - 1].last_column
283
+ }, Ze && (M._$.range = [
284
+ e[e.length - (x || 1)].range[0],
285
+ e[e.length - 1].range[1]
286
+ ]), ve = this.performAction.apply(M, [
287
+ t,
288
+ ze,
289
+ oe,
290
+ O.yy,
291
+ S[1],
292
+ C,
293
+ e
294
+ ].concat(Je)), typeof ve < "u")
295
+ return ve;
296
+ x && (p = p.slice(0, -1 * x * 2), C = C.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), C.push(M.$), e.push(M._$), je = q[p[p.length - 2]][p[p.length - 1]], p.push(je);
297
+ break;
298
+ case 3:
299
+ return !0;
300
+ }
301
+ }
302
+ return !0;
303
+ }, "parse")
304
+ }, He = /* @__PURE__ */ function() {
305
+ var I = {
306
+ EOF: 1,
307
+ parseError: /* @__PURE__ */ f(function(h, p) {
308
+ if (this.yy.parser)
309
+ this.yy.parser.parseError(h, p);
310
+ else
311
+ throw new Error(h);
312
+ }, "parseError"),
313
+ // resets the lexer, sets new input
314
+ setInput: /* @__PURE__ */ f(function(c, h) {
315
+ return this.yy = h || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
316
+ first_line: 1,
317
+ first_column: 0,
318
+ last_line: 1,
319
+ last_column: 0
320
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
321
+ }, "setInput"),
322
+ // consumes and returns one char from the input
323
+ input: /* @__PURE__ */ f(function() {
324
+ var c = this._input[0];
325
+ this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
326
+ var h = c.match(/(?:\r\n?|\n).*/g);
327
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
328
+ }, "input"),
329
+ // unshifts one char (or a string) into the input
330
+ unput: /* @__PURE__ */ f(function(c) {
331
+ var h = c.length, p = c.split(/(?:\r\n?|\n)/g);
332
+ this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
333
+ var n = this.match.split(/(?:\r\n?|\n)/g);
334
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
335
+ var C = this.yylloc.range;
336
+ return this.yylloc = {
337
+ first_line: this.yylloc.first_line,
338
+ last_line: this.yylineno + 1,
339
+ first_column: this.yylloc.first_column,
340
+ last_column: p ? (p.length === n.length ? this.yylloc.first_column : 0) + n[n.length - p.length].length - p[0].length : this.yylloc.first_column - h
341
+ }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
342
+ }, "unput"),
343
+ // When called from action, caches matched text and appends it on next action
344
+ more: /* @__PURE__ */ f(function() {
345
+ return this._more = !0, this;
346
+ }, "more"),
347
+ // 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.
348
+ reject: /* @__PURE__ */ f(function() {
349
+ if (this.options.backtrack_lexer)
350
+ this._backtrack = !0;
351
+ else
352
+ 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).
353
+ ` + this.showPosition(), {
354
+ text: "",
355
+ token: null,
356
+ line: this.yylineno
357
+ });
358
+ return this;
359
+ }, "reject"),
360
+ // retain first n characters of the match
361
+ less: /* @__PURE__ */ f(function(c) {
362
+ this.unput(this.match.slice(c));
363
+ }, "less"),
364
+ // displays already matched input, i.e. for error messages
365
+ pastInput: /* @__PURE__ */ f(function() {
366
+ var c = this.matched.substr(0, this.matched.length - this.match.length);
367
+ return (c.length > 20 ? "..." : "") + c.substr(-20).replace(/\n/g, "");
368
+ }, "pastInput"),
369
+ // displays upcoming input, i.e. for error messages
370
+ upcomingInput: /* @__PURE__ */ f(function() {
371
+ var c = this.match;
372
+ return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.length > 20 ? "..." : "")).replace(/\n/g, "");
373
+ }, "upcomingInput"),
374
+ // displays the character position where the lexing error occurred, i.e. for error messages
375
+ showPosition: /* @__PURE__ */ f(function() {
376
+ var c = this.pastInput(), h = new Array(c.length + 1).join("-");
377
+ return c + this.upcomingInput() + `
378
+ ` + h + "^";
379
+ }, "showPosition"),
380
+ // test the lexed token: return FALSE when not a match, otherwise return token
381
+ test_match: /* @__PURE__ */ f(function(c, h) {
382
+ var p, n, C;
383
+ if (this.options.backtrack_lexer && (C = {
384
+ yylineno: this.yylineno,
385
+ yylloc: {
386
+ first_line: this.yylloc.first_line,
387
+ last_line: this.last_line,
388
+ first_column: this.yylloc.first_column,
389
+ last_column: this.yylloc.last_column
390
+ },
391
+ yytext: this.yytext,
392
+ match: this.match,
393
+ matches: this.matches,
394
+ matched: this.matched,
395
+ yyleng: this.yyleng,
396
+ offset: this.offset,
397
+ _more: this._more,
398
+ _input: this._input,
399
+ yy: this.yy,
400
+ conditionStack: this.conditionStack.slice(0),
401
+ done: this.done
402
+ }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), n = c[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
403
+ first_line: this.yylloc.last_line,
404
+ last_line: this.yylineno + 1,
405
+ first_column: this.yylloc.last_column,
406
+ last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
407
+ }, this.yytext += c[0], this.match += c[0], this.matches = c, 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(c[0].length), this.matched += c[0], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
408
+ return p;
409
+ if (this._backtrack) {
410
+ for (var e in C)
411
+ this[e] = C[e];
412
+ return !1;
413
+ }
414
+ return !1;
415
+ }, "test_match"),
416
+ // return next match in input
417
+ next: /* @__PURE__ */ f(function() {
418
+ if (this.done)
419
+ return this.EOF;
420
+ this._input || (this.done = !0);
421
+ var c, h, p, n;
422
+ this._more || (this.yytext = "", this.match = "");
423
+ for (var C = this._currentRules(), e = 0; e < C.length; e++)
424
+ if (p = this._input.match(this.rules[C[e]]), p && (!h || p[0].length > h[0].length)) {
425
+ if (h = p, n = e, this.options.backtrack_lexer) {
426
+ if (c = this.test_match(p, C[e]), c !== !1)
427
+ return c;
428
+ if (this._backtrack) {
429
+ h = !1;
430
+ continue;
431
+ } else
432
+ return !1;
433
+ } else if (!this.options.flex)
434
+ break;
435
+ }
436
+ return h ? (c = this.test_match(h, C[n]), c !== !1 ? c : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
437
+ ` + this.showPosition(), {
438
+ text: "",
439
+ token: null,
440
+ line: this.yylineno
441
+ });
442
+ }, "next"),
443
+ // return next match that has a token
444
+ lex: /* @__PURE__ */ f(function() {
445
+ var h = this.next();
446
+ return h || this.lex();
447
+ }, "lex"),
448
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
449
+ begin: /* @__PURE__ */ f(function(h) {
450
+ this.conditionStack.push(h);
451
+ }, "begin"),
452
+ // pop the previously active lexer condition state off the condition stack
453
+ popState: /* @__PURE__ */ f(function() {
454
+ var h = this.conditionStack.length - 1;
455
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
456
+ }, "popState"),
457
+ // produce the lexer rule set which is active for the currently active lexer condition state
458
+ _currentRules: /* @__PURE__ */ f(function() {
459
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
460
+ }, "_currentRules"),
461
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
462
+ topState: /* @__PURE__ */ f(function(h) {
463
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
464
+ }, "topState"),
465
+ // alias for begin(condition)
466
+ pushState: /* @__PURE__ */ f(function(h) {
467
+ this.begin(h);
468
+ }, "pushState"),
469
+ // return the number of states currently on the stack
470
+ stateStackSize: /* @__PURE__ */ f(function() {
471
+ return this.conditionStack.length;
472
+ }, "stateStackSize"),
473
+ options: {},
474
+ performAction: /* @__PURE__ */ f(function(h, p, n, C) {
475
+ switch (n) {
476
+ case 0:
477
+ return 60;
478
+ case 1:
479
+ return 61;
480
+ case 2:
481
+ return 62;
482
+ case 3:
483
+ return 63;
484
+ case 4:
485
+ break;
486
+ case 5:
487
+ break;
488
+ case 6:
489
+ return this.begin("acc_title"), 33;
490
+ case 7:
491
+ return this.popState(), "acc_title_value";
492
+ case 8:
493
+ return this.begin("acc_descr"), 35;
494
+ case 9:
495
+ return this.popState(), "acc_descr_value";
496
+ case 10:
497
+ this.begin("acc_descr_multiline");
498
+ break;
499
+ case 11:
500
+ this.popState();
501
+ break;
502
+ case 12:
503
+ return "acc_descr_multiline_value";
504
+ case 13:
505
+ return 8;
506
+ case 14:
507
+ break;
508
+ case 15:
509
+ return 7;
510
+ case 16:
511
+ return 7;
512
+ case 17:
513
+ return "EDGE_STATE";
514
+ case 18:
515
+ this.begin("callback_name");
516
+ break;
517
+ case 19:
518
+ this.popState();
519
+ break;
520
+ case 20:
521
+ this.popState(), this.begin("callback_args");
522
+ break;
523
+ case 21:
524
+ return 77;
525
+ case 22:
526
+ this.popState();
527
+ break;
528
+ case 23:
529
+ return 78;
530
+ case 24:
531
+ this.popState();
532
+ break;
533
+ case 25:
534
+ return "STR";
535
+ case 26:
536
+ this.begin("string");
537
+ break;
538
+ case 27:
539
+ return 80;
540
+ case 28:
541
+ return 55;
542
+ case 29:
543
+ return this.begin("namespace"), 42;
544
+ case 30:
545
+ return this.popState(), 8;
546
+ case 31:
547
+ break;
548
+ case 32:
549
+ return this.begin("namespace-body"), 39;
550
+ case 33:
551
+ return this.popState(), 41;
552
+ case 34:
553
+ return "EOF_IN_STRUCT";
554
+ case 35:
555
+ return 8;
556
+ case 36:
557
+ break;
558
+ case 37:
559
+ return "EDGE_STATE";
560
+ case 38:
561
+ return this.begin("class"), 46;
562
+ case 39:
563
+ return this.popState(), 8;
564
+ case 40:
565
+ break;
566
+ case 41:
567
+ return this.popState(), this.popState(), 41;
568
+ case 42:
569
+ return this.begin("class-body"), 39;
570
+ case 43:
571
+ return this.popState(), 41;
572
+ case 44:
573
+ return "EOF_IN_STRUCT";
574
+ case 45:
575
+ return "EDGE_STATE";
576
+ case 46:
577
+ return "OPEN_IN_STRUCT";
578
+ case 47:
579
+ break;
580
+ case 48:
581
+ return "MEMBER";
582
+ case 49:
583
+ return 81;
584
+ case 50:
585
+ return 73;
586
+ case 51:
587
+ return 74;
588
+ case 52:
589
+ return 76;
590
+ case 53:
591
+ return 52;
592
+ case 54:
593
+ return 54;
594
+ case 55:
595
+ return 47;
596
+ case 56:
597
+ return 48;
598
+ case 57:
599
+ return 79;
600
+ case 58:
601
+ this.popState();
602
+ break;
603
+ case 59:
604
+ return "GENERICTYPE";
605
+ case 60:
606
+ this.begin("generic");
607
+ break;
608
+ case 61:
609
+ this.popState();
610
+ break;
611
+ case 62:
612
+ return "BQUOTE_STR";
613
+ case 63:
614
+ this.begin("bqstring");
615
+ break;
616
+ case 64:
617
+ return 75;
618
+ case 65:
619
+ return 75;
620
+ case 66:
621
+ return 75;
622
+ case 67:
623
+ return 75;
624
+ case 68:
625
+ return 67;
626
+ case 69:
627
+ return 67;
628
+ case 70:
629
+ return 69;
630
+ case 71:
631
+ return 69;
632
+ case 72:
633
+ return 68;
634
+ case 73:
635
+ return 66;
636
+ case 74:
637
+ return 70;
638
+ case 75:
639
+ return 71;
640
+ case 76:
641
+ return 72;
642
+ case 77:
643
+ return 22;
644
+ case 78:
645
+ return 44;
646
+ case 79:
647
+ return 99;
648
+ case 80:
649
+ return 17;
650
+ case 81:
651
+ return "PLUS";
652
+ case 82:
653
+ return 85;
654
+ case 83:
655
+ return 59;
656
+ case 84:
657
+ return 88;
658
+ case 85:
659
+ return 88;
660
+ case 86:
661
+ return 89;
662
+ case 87:
663
+ return "EQUALS";
664
+ case 88:
665
+ return "EQUALS";
666
+ case 89:
667
+ return 58;
668
+ case 90:
669
+ return 12;
670
+ case 91:
671
+ return 14;
672
+ case 92:
673
+ return "PUNCTUATION";
674
+ case 93:
675
+ return 84;
676
+ case 94:
677
+ return 101;
678
+ case 95:
679
+ return 87;
680
+ case 96:
681
+ return 87;
682
+ case 97:
683
+ return 9;
684
+ }
685
+ }, "anonymous"),
686
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
687
+ conditions: { "namespace-body": { rules: [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97], inclusive: !0 } }
688
+ };
689
+ return I;
690
+ }();
691
+ Ne.lexer = He;
692
+ function ce() {
693
+ this.yy = {};
694
+ }
695
+ return f(ce, "Parser"), ce.prototype = Ne, Ne.Parser = ce, new ce();
696
+ }();
697
+ Ve.parser = Ve;
698
+ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
699
+ constructor(i, a) {
700
+ this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
701
+ const u = st(i, F());
702
+ this.parseMember(u);
703
+ }
704
+ getDisplayDetails() {
705
+ let i = this.visibility + R(this.id);
706
+ this.memberType === "method" && (i += `(${R(this.parameters.trim())})`, this.returnType && (i += " : " + R(this.returnType))), i = i.trim();
707
+ const a = this.parseClassifier();
708
+ return {
709
+ displayText: i,
710
+ cssStyle: a
711
+ };
712
+ }
713
+ parseMember(i) {
714
+ let a = "";
715
+ if (this.memberType === "method") {
716
+ const r = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
717
+ if (r) {
718
+ const o = r[1] ? r[1].trim() : "";
719
+ if (Qe.includes(o) && (this.visibility = o), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", a = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", a === "") {
720
+ const A = this.returnType.substring(this.returnType.length - 1);
721
+ /[$*]/.exec(A) && (a = A, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
722
+ }
723
+ }
724
+ } else {
725
+ const l = i.length, r = i.substring(0, 1), o = i.substring(l - 1);
726
+ Qe.includes(r) && (this.visibility = r), /[$*]/.exec(o) && (a = o), this.id = i.substring(
727
+ this.visibility === "" ? 0 : 1,
728
+ a === "" ? l : l - 1
729
+ );
730
+ }
731
+ this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
732
+ const u = `${this.visibility ? "\\" + this.visibility : ""}${R(this.id)}${this.memberType === "method" ? `(${R(this.parameters)})${this.returnType ? " : " + R(this.returnType) : ""}` : ""}`;
733
+ this.text = u.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
734
+ }
735
+ parseClassifier() {
736
+ switch (this.classifier) {
737
+ case "*":
738
+ return "font-style:italic;";
739
+ case "$":
740
+ return "text-decoration:underline;";
741
+ default:
742
+ return "";
743
+ }
744
+ }
745
+ }, f(Z, "ClassMember"), Z), pe = "classId-", Xe = 0, V = /* @__PURE__ */ f((s) => v.sanitizeText(s, F()), "sanitizeText"), $, Et = ($ = class {
746
+ constructor() {
747
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
748
+ LINE: 0,
749
+ DOTTED_LINE: 1
750
+ }, this.relationType = {
751
+ AGGREGATION: 0,
752
+ EXTENSION: 1,
753
+ COMPOSITION: 2,
754
+ DEPENDENCY: 3,
755
+ LOLLIPOP: 4
756
+ }, this.setupToolTips = /* @__PURE__ */ f((i) => {
757
+ let a = J(".mermaidTooltip");
758
+ (a._groups || a)[0][0] === null && (a = J("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), J(i).select("svg").selectAll("g.node").on("mouseover", (r) => {
759
+ const o = J(r.currentTarget);
760
+ if (o.attr("title") === null)
761
+ return;
762
+ const g = this.getBoundingClientRect();
763
+ a.transition().duration(200).style("opacity", ".9"), a.text(o.attr("title")).style("left", window.scrollX + g.left + (g.right - g.left) / 2 + "px").style("top", window.scrollY + g.top - 14 + document.body.scrollTop + "px"), a.html(a.html().replace(/&lt;br\/&gt;/g, "<br/>")), o.classed("hover", !0);
764
+ }).on("mouseout", (r) => {
765
+ a.transition().duration(500).style("opacity", 0), J(r.currentTarget).classed("hover", !1);
766
+ });
767
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = it, this.getAccTitle = at, this.setAccDescription = nt, this.getAccDescription = rt, this.setDiagramTitle = ut, this.getDiagramTitle = lt, this.getConfig = /* @__PURE__ */ f(() => F().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
768
+ }
769
+ splitClassNameAndType(i) {
770
+ const a = v.sanitizeText(i, F());
771
+ let u = "", l = a;
772
+ if (a.indexOf("~") > 0) {
773
+ const r = a.split("~");
774
+ l = V(r[0]), u = V(r[1]);
775
+ }
776
+ return { className: l, type: u };
777
+ }
778
+ setClassLabel(i, a) {
779
+ const u = v.sanitizeText(i, F());
780
+ a && (a = V(a));
781
+ const { className: l } = this.splitClassNameAndType(u);
782
+ this.classes.get(l).label = a, this.classes.get(l).text = `${a}${this.classes.get(l).type ? `<${this.classes.get(l).type}>` : ""}`;
783
+ }
784
+ /**
785
+ * Function called by parser when a node definition has been found.
786
+ *
787
+ * @param id - Id of the class to add
788
+ * @public
789
+ */
790
+ addClass(i) {
791
+ const a = v.sanitizeText(i, F()), { className: u, type: l } = this.splitClassNameAndType(a);
792
+ if (this.classes.has(u))
793
+ return;
794
+ const r = v.sanitizeText(u, F());
795
+ this.classes.set(r, {
796
+ id: r,
797
+ type: l,
798
+ label: r,
799
+ text: `${r}${l ? `&lt;${l}&gt;` : ""}`,
800
+ shape: "classBox",
801
+ cssClasses: "default",
802
+ methods: [],
803
+ members: [],
804
+ annotations: [],
805
+ styles: [],
806
+ domId: pe + r + "-" + Xe
807
+ }), Xe++;
808
+ }
809
+ addInterface(i, a) {
810
+ const u = {
811
+ id: `interface${this.interfaces.length}`,
812
+ label: i,
813
+ classId: a
814
+ };
815
+ this.interfaces.push(u);
816
+ }
817
+ /**
818
+ * Function to lookup domId from id in the graph definition.
819
+ *
820
+ * @param id - class ID to lookup
821
+ * @public
822
+ */
823
+ lookUpDomId(i) {
824
+ const a = v.sanitizeText(i, F());
825
+ if (this.classes.has(a))
826
+ return this.classes.get(a).domId;
827
+ throw new Error("Class not found: " + a);
828
+ }
829
+ clear() {
830
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", ct();
831
+ }
832
+ getClass(i) {
833
+ return this.classes.get(i);
834
+ }
835
+ getClasses() {
836
+ return this.classes;
837
+ }
838
+ getRelations() {
839
+ return this.relations;
840
+ }
841
+ getNotes() {
842
+ return this.notes;
843
+ }
844
+ addRelation(i) {
845
+ Oe.debug("Adding relation: " + JSON.stringify(i));
846
+ const a = [
847
+ this.relationType.LOLLIPOP,
848
+ this.relationType.AGGREGATION,
849
+ this.relationType.COMPOSITION,
850
+ this.relationType.DEPENDENCY,
851
+ this.relationType.EXTENSION
852
+ ];
853
+ i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = v.sanitizeText(
854
+ i.relationTitle1.trim(),
855
+ F()
856
+ ), i.relationTitle2 = v.sanitizeText(
857
+ i.relationTitle2.trim(),
858
+ F()
859
+ ), this.relations.push(i);
860
+ }
861
+ /**
862
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
863
+ * (like 'interface' or 'service')
864
+ *
865
+ * @param className - The class name
866
+ * @param annotation - The name of the annotation without any brackets
867
+ * @public
868
+ */
869
+ addAnnotation(i, a) {
870
+ const u = this.splitClassNameAndType(i).className;
871
+ this.classes.get(u).annotations.push(a);
872
+ }
873
+ /**
874
+ * Adds a member to the specified class
875
+ *
876
+ * @param className - The class name
877
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
878
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
879
+ * method Otherwise the member will be treated as a normal property
880
+ * @public
881
+ */
882
+ addMember(i, a) {
883
+ this.addClass(i);
884
+ const u = this.splitClassNameAndType(i).className, l = this.classes.get(u);
885
+ if (typeof a == "string") {
886
+ const r = a.trim();
887
+ r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(V(r.substring(2, r.length - 2))) : r.indexOf(")") > 0 ? l.methods.push(new We(r, "method")) : r && l.members.push(new We(r, "attribute"));
888
+ }
889
+ }
890
+ addMembers(i, a) {
891
+ Array.isArray(a) && (a.reverse(), a.forEach((u) => this.addMember(i, u)));
892
+ }
893
+ addNote(i, a) {
894
+ const u = {
895
+ id: `note${this.notes.length}`,
896
+ class: a,
897
+ text: i
898
+ };
899
+ this.notes.push(u);
900
+ }
901
+ cleanupLabel(i) {
902
+ return i.startsWith(":") && (i = i.substring(1)), V(i.trim());
903
+ }
904
+ /**
905
+ * Called by parser when assigning cssClass to a class
906
+ *
907
+ * @param ids - Comma separated list of ids
908
+ * @param className - Class to add
909
+ */
910
+ setCssClass(i, a) {
911
+ i.split(",").forEach((u) => {
912
+ let l = u;
913
+ /\d/.exec(u[0]) && (l = pe + l);
914
+ const r = this.classes.get(l);
915
+ r && (r.cssClasses += " " + a);
916
+ });
917
+ }
918
+ defineClass(i, a) {
919
+ for (const u of i) {
920
+ let l = this.styleClasses.get(u);
921
+ l === void 0 && (l = { id: u, styles: [], textStyles: [] }, this.styleClasses.set(u, l)), a && a.forEach((r) => {
922
+ if (/color/.exec(r)) {
923
+ const o = r.replace("fill", "bgFill");
924
+ l.textStyles.push(o);
925
+ }
926
+ l.styles.push(r);
927
+ }), this.classes.forEach((r) => {
928
+ r.cssClasses.includes(u) && r.styles.push(...a.flatMap((o) => o.split(",")));
929
+ });
930
+ }
931
+ }
932
+ /**
933
+ * Called by parser when a tooltip is found, e.g. a clickable element.
934
+ *
935
+ * @param ids - Comma separated list of ids
936
+ * @param tooltip - Tooltip to add
937
+ */
938
+ setTooltip(i, a) {
939
+ i.split(",").forEach((u) => {
940
+ a !== void 0 && (this.classes.get(u).tooltip = V(a));
941
+ });
942
+ }
943
+ getTooltip(i, a) {
944
+ return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
945
+ }
946
+ /**
947
+ * Called by parser when a link is found. Adds the URL to the vertex data.
948
+ *
949
+ * @param ids - Comma separated list of ids
950
+ * @param linkStr - URL to create a link for
951
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
952
+ */
953
+ setLink(i, a, u) {
954
+ const l = F();
955
+ i.split(",").forEach((r) => {
956
+ let o = r;
957
+ /\d/.exec(r[0]) && (o = pe + o);
958
+ const A = this.classes.get(o);
959
+ A && (A.link = we.formatUrl(a, l), l.securityLevel === "sandbox" ? A.linkTarget = "_top" : typeof u == "string" ? A.linkTarget = V(u) : A.linkTarget = "_blank");
960
+ }), this.setCssClass(i, "clickable");
961
+ }
962
+ /**
963
+ * Called by parser when a click definition is found. Registers an event handler.
964
+ *
965
+ * @param ids - Comma separated list of ids
966
+ * @param functionName - Function to be called on click
967
+ * @param functionArgs - Function args the function should be called with
968
+ */
969
+ setClickEvent(i, a, u) {
970
+ i.split(",").forEach((l) => {
971
+ this.setClickFunc(l, a, u), this.classes.get(l).haveCallback = !0;
972
+ }), this.setCssClass(i, "clickable");
973
+ }
974
+ setClickFunc(i, a, u) {
975
+ const l = v.sanitizeText(i, F());
976
+ if (F().securityLevel !== "loose" || a === void 0)
977
+ return;
978
+ const o = l;
979
+ if (this.classes.has(o)) {
980
+ const A = this.lookUpDomId(o);
981
+ let g = [];
982
+ if (typeof u == "string") {
983
+ g = u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
984
+ for (let k = 0; k < g.length; k++) {
985
+ let L = g[k].trim();
986
+ L.startsWith('"') && L.endsWith('"') && (L = L.substr(1, L.length - 2)), g[k] = L;
987
+ }
988
+ }
989
+ g.length === 0 && g.push(A), this.functions.push(() => {
990
+ const k = document.querySelector(`[id="${A}"]`);
991
+ k !== null && k.addEventListener(
992
+ "click",
993
+ () => {
994
+ we.runFunc(a, ...g);
995
+ },
996
+ !1
997
+ );
998
+ });
999
+ }
1000
+ }
1001
+ bindFunctions(i) {
1002
+ this.functions.forEach((a) => {
1003
+ a(i);
1004
+ });
1005
+ }
1006
+ getDirection() {
1007
+ return this.direction;
1008
+ }
1009
+ setDirection(i) {
1010
+ this.direction = i;
1011
+ }
1012
+ /**
1013
+ * Function called by parser when a namespace definition has been found.
1014
+ *
1015
+ * @param id - Id of the namespace to add
1016
+ * @public
1017
+ */
1018
+ addNamespace(i) {
1019
+ this.namespaces.has(i) || (this.namespaces.set(i, {
1020
+ id: i,
1021
+ classes: /* @__PURE__ */ new Map(),
1022
+ children: {},
1023
+ domId: pe + i + "-" + this.namespaceCounter
1024
+ }), this.namespaceCounter++);
1025
+ }
1026
+ getNamespace(i) {
1027
+ return this.namespaces.get(i);
1028
+ }
1029
+ getNamespaces() {
1030
+ return this.namespaces;
1031
+ }
1032
+ /**
1033
+ * Function called by parser when a namespace definition has been found.
1034
+ *
1035
+ * @param id - Id of the namespace to add
1036
+ * @param classNames - Ids of the class to add
1037
+ * @public
1038
+ */
1039
+ addClassesToNamespace(i, a) {
1040
+ if (this.namespaces.has(i))
1041
+ for (const u of a) {
1042
+ const { className: l } = this.splitClassNameAndType(u);
1043
+ this.classes.get(l).parent = i, this.namespaces.get(i).classes.set(l, this.classes.get(l));
1044
+ }
1045
+ }
1046
+ setCssStyle(i, a) {
1047
+ const u = this.classes.get(i);
1048
+ if (!(!a || !u))
1049
+ for (const l of a)
1050
+ l.includes(",") ? u.styles.push(...l.split(",")) : u.styles.push(l);
1051
+ }
1052
+ /**
1053
+ * Gets the arrow marker for a type index
1054
+ *
1055
+ * @param type - The type to look for
1056
+ * @returns The arrow marker
1057
+ */
1058
+ getArrowMarker(i) {
1059
+ let a;
1060
+ switch (i) {
1061
+ case 0:
1062
+ a = "aggregation";
1063
+ break;
1064
+ case 1:
1065
+ a = "extension";
1066
+ break;
1067
+ case 2:
1068
+ a = "composition";
1069
+ break;
1070
+ case 3:
1071
+ a = "dependency";
1072
+ break;
1073
+ case 4:
1074
+ a = "lollipop";
1075
+ break;
1076
+ default:
1077
+ a = "none";
1078
+ }
1079
+ return a;
1080
+ }
1081
+ getData() {
1082
+ var r;
1083
+ const i = [], a = [], u = F();
1084
+ for (const o of this.namespaces.keys()) {
1085
+ const A = this.namespaces.get(o);
1086
+ if (A) {
1087
+ const g = {
1088
+ id: A.id,
1089
+ label: A.id,
1090
+ isGroup: !0,
1091
+ padding: u.class.padding ?? 16,
1092
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1093
+ shape: "rect",
1094
+ cssStyles: ["fill: none", "stroke: black"],
1095
+ look: u.look
1096
+ };
1097
+ i.push(g);
1098
+ }
1099
+ }
1100
+ for (const o of this.classes.keys()) {
1101
+ const A = this.classes.get(o);
1102
+ if (A) {
1103
+ const g = A;
1104
+ g.parentId = A.parent, g.look = u.look, i.push(g);
1105
+ }
1106
+ }
1107
+ let l = 0;
1108
+ for (const o of this.notes) {
1109
+ l++;
1110
+ const A = {
1111
+ id: o.id,
1112
+ label: o.text,
1113
+ isGroup: !1,
1114
+ shape: "note",
1115
+ padding: u.class.padding ?? 6,
1116
+ cssStyles: [
1117
+ "text-align: left",
1118
+ "white-space: nowrap",
1119
+ `fill: ${u.themeVariables.noteBkgColor}`,
1120
+ `stroke: ${u.themeVariables.noteBorderColor}`
1121
+ ],
1122
+ look: u.look
1123
+ };
1124
+ i.push(A);
1125
+ const g = ((r = this.classes.get(o.class)) == null ? void 0 : r.id) ?? "";
1126
+ if (g) {
1127
+ const k = {
1128
+ id: `edgeNote${l}`,
1129
+ start: o.id,
1130
+ end: g,
1131
+ type: "normal",
1132
+ thickness: "normal",
1133
+ classes: "relation",
1134
+ arrowTypeStart: "none",
1135
+ arrowTypeEnd: "none",
1136
+ arrowheadStyle: "",
1137
+ labelStyle: [""],
1138
+ style: ["fill: none"],
1139
+ pattern: "dotted",
1140
+ look: u.look
1141
+ };
1142
+ a.push(k);
1143
+ }
1144
+ }
1145
+ for (const o of this.interfaces) {
1146
+ const A = {
1147
+ id: o.id,
1148
+ label: o.label,
1149
+ isGroup: !1,
1150
+ shape: "rect",
1151
+ cssStyles: ["opacity: 0;"],
1152
+ look: u.look
1153
+ };
1154
+ i.push(A);
1155
+ }
1156
+ l = 0;
1157
+ for (const o of this.relations) {
1158
+ l++;
1159
+ const A = {
1160
+ id: ot(o.id1, o.id2, {
1161
+ prefix: "id",
1162
+ counter: l
1163
+ }),
1164
+ start: o.id1,
1165
+ end: o.id2,
1166
+ type: "normal",
1167
+ label: o.title,
1168
+ labelpos: "c",
1169
+ thickness: "normal",
1170
+ classes: "relation",
1171
+ arrowTypeStart: this.getArrowMarker(o.relation.type1),
1172
+ arrowTypeEnd: this.getArrowMarker(o.relation.type2),
1173
+ startLabelRight: o.relationTitle1 === "none" ? "" : o.relationTitle1,
1174
+ endLabelLeft: o.relationTitle2 === "none" ? "" : o.relationTitle2,
1175
+ arrowheadStyle: "",
1176
+ labelStyle: ["display: inline-block"],
1177
+ style: o.style || "",
1178
+ pattern: o.relation.lineType == 1 ? "dashed" : "solid",
1179
+ look: u.look
1180
+ };
1181
+ a.push(A);
1182
+ }
1183
+ return { nodes: i, edges: a, other: {}, config: u, direction: this.getDirection() };
1184
+ }
1185
+ }, f($, "ClassDB"), $), pt = /* @__PURE__ */ f((s) => `g.classGroup text {
1186
+ fill: ${s.nodeBorder || s.classText};
1187
+ stroke: none;
1188
+ font-family: ${s.fontFamily};
1189
+ font-size: 10px;
1190
+
1191
+ .title {
1192
+ font-weight: bolder;
1193
+ }
1194
+
1195
+ }
1196
+
1197
+ .nodeLabel, .edgeLabel {
1198
+ color: ${s.classText};
1199
+ }
1200
+ .edgeLabel .label rect {
1201
+ fill: ${s.mainBkg};
1202
+ }
1203
+ .label text {
1204
+ fill: ${s.classText};
1205
+ }
1206
+
1207
+ .labelBkg {
1208
+ background: ${s.mainBkg};
1209
+ }
1210
+ .edgeLabel .label span {
1211
+ background: ${s.mainBkg};
1212
+ }
1213
+
1214
+ .classTitle {
1215
+ font-weight: bolder;
1216
+ }
1217
+ .node rect,
1218
+ .node circle,
1219
+ .node ellipse,
1220
+ .node polygon,
1221
+ .node path {
1222
+ fill: ${s.mainBkg};
1223
+ stroke: ${s.nodeBorder};
1224
+ stroke-width: 1px;
1225
+ }
1226
+
1227
+
1228
+ .divider {
1229
+ stroke: ${s.nodeBorder};
1230
+ stroke-width: 1;
1231
+ }
1232
+
1233
+ g.clickable {
1234
+ cursor: pointer;
1235
+ }
1236
+
1237
+ g.classGroup rect {
1238
+ fill: ${s.mainBkg};
1239
+ stroke: ${s.nodeBorder};
1240
+ }
1241
+
1242
+ g.classGroup line {
1243
+ stroke: ${s.nodeBorder};
1244
+ stroke-width: 1;
1245
+ }
1246
+
1247
+ .classLabel .box {
1248
+ stroke: none;
1249
+ stroke-width: 0;
1250
+ fill: ${s.mainBkg};
1251
+ opacity: 0.5;
1252
+ }
1253
+
1254
+ .classLabel .label {
1255
+ fill: ${s.nodeBorder};
1256
+ font-size: 10px;
1257
+ }
1258
+
1259
+ .relation {
1260
+ stroke: ${s.lineColor};
1261
+ stroke-width: 1;
1262
+ fill: none;
1263
+ }
1264
+
1265
+ .dashed-line{
1266
+ stroke-dasharray: 3;
1267
+ }
1268
+
1269
+ .dotted-line{
1270
+ stroke-dasharray: 1 2;
1271
+ }
1272
+
1273
+ #compositionStart, .composition {
1274
+ fill: ${s.lineColor} !important;
1275
+ stroke: ${s.lineColor} !important;
1276
+ stroke-width: 1;
1277
+ }
1278
+
1279
+ #compositionEnd, .composition {
1280
+ fill: ${s.lineColor} !important;
1281
+ stroke: ${s.lineColor} !important;
1282
+ stroke-width: 1;
1283
+ }
1284
+
1285
+ #dependencyStart, .dependency {
1286
+ fill: ${s.lineColor} !important;
1287
+ stroke: ${s.lineColor} !important;
1288
+ stroke-width: 1;
1289
+ }
1290
+
1291
+ #dependencyStart, .dependency {
1292
+ fill: ${s.lineColor} !important;
1293
+ stroke: ${s.lineColor} !important;
1294
+ stroke-width: 1;
1295
+ }
1296
+
1297
+ #extensionStart, .extension {
1298
+ fill: transparent !important;
1299
+ stroke: ${s.lineColor} !important;
1300
+ stroke-width: 1;
1301
+ }
1302
+
1303
+ #extensionEnd, .extension {
1304
+ fill: transparent !important;
1305
+ stroke: ${s.lineColor} !important;
1306
+ stroke-width: 1;
1307
+ }
1308
+
1309
+ #aggregationStart, .aggregation {
1310
+ fill: transparent !important;
1311
+ stroke: ${s.lineColor} !important;
1312
+ stroke-width: 1;
1313
+ }
1314
+
1315
+ #aggregationEnd, .aggregation {
1316
+ fill: transparent !important;
1317
+ stroke: ${s.lineColor} !important;
1318
+ stroke-width: 1;
1319
+ }
1320
+
1321
+ #lollipopStart, .lollipop {
1322
+ fill: ${s.mainBkg} !important;
1323
+ stroke: ${s.lineColor} !important;
1324
+ stroke-width: 1;
1325
+ }
1326
+
1327
+ #lollipopEnd, .lollipop {
1328
+ fill: ${s.mainBkg} !important;
1329
+ stroke: ${s.lineColor} !important;
1330
+ stroke-width: 1;
1331
+ }
1332
+
1333
+ .edgeTerminals {
1334
+ font-size: 11px;
1335
+ line-height: initial;
1336
+ }
1337
+
1338
+ .classTitleText {
1339
+ text-anchor: middle;
1340
+ font-size: 18px;
1341
+ fill: ${s.textColor};
1342
+ }
1343
+ `, "getStyles"), yt = pt, At = /* @__PURE__ */ f((s, i = "TB") => {
1344
+ if (!s.doc)
1345
+ return i;
1346
+ let a = i;
1347
+ for (const u of s.doc)
1348
+ u.stmt === "dir" && (a = u.value);
1349
+ return a;
1350
+ }, "getDir"), ft = /* @__PURE__ */ f(function(s, i) {
1351
+ return i.db.getClasses();
1352
+ }, "getClasses"), gt = /* @__PURE__ */ f(async function(s, i, a, u) {
1353
+ Oe.info("REF0:"), Oe.info("Drawing class diagram (v3)", i);
1354
+ const { securityLevel: l, state: r, layout: o } = F(), A = u.db.getData(), g = et(i, l);
1355
+ A.type = u.type, A.layoutAlgorithm = ht(o), A.nodeSpacing = (r == null ? void 0 : r.nodeSpacing) || 50, A.rankSpacing = (r == null ? void 0 : r.rankSpacing) || 50, A.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], A.diagramId = i, await dt(A, g);
1356
+ const k = 8;
1357
+ we.insertTitle(
1358
+ g,
1359
+ "classDiagramTitleText",
1360
+ (r == null ? void 0 : r.titleTopMargin) ?? 25,
1361
+ u.db.getDiagramTitle()
1362
+ ), tt(g, k, "classDiagram", (r == null ? void 0 : r.useMaxWidth) ?? !0);
1363
+ }, "draw"), Tt = {
1364
+ getClasses: ft,
1365
+ draw: gt,
1366
+ getDir: At
1367
+ };
1368
+ export {
1369
+ Et as C,
1370
+ Tt as a,
1371
+ bt as c,
1372
+ yt as s
1373
+ };