1063 lines
49 KiB
JavaScript
1063 lines
49 KiB
JavaScript
|
import { d as Xe, c as F, G as ye, s as We, g as qe, a as He, b as Je, B as Ze, D as $e, f as v, E as et, l as tt, z as Pe, j as U } from "./mermaid-e4a58915.js";
|
||
|
var De = function() {
|
||
|
var e = function(L, u, a, o) {
|
||
|
for (a = a || {}, o = L.length; o--; a[L[o]] = u)
|
||
|
;
|
||
|
return a;
|
||
|
}, n = [1, 16], r = [1, 17], h = [1, 18], l = [1, 37], A = [1, 38], g = [1, 24], D = [1, 22], B = [1, 23], _ = [1, 29], ne = [1, 30], ue = [1, 31], re = [1, 32], ae = [1, 33], le = [1, 34], ce = [1, 25], oe = [1, 26], he = [1, 27], Ae = [1, 28], d = [1, 42], E = [1, 39], C = [1, 40], m = [1, 41], k = [1, 43], pe = [1, 9], c = [1, 8, 9], Y = [1, 54], K = [1, 55], j = [1, 56], Q = [1, 57], X = [1, 58], fe = [1, 59], de = [1, 60], W = [1, 8, 9, 38], Ne = [1, 71], V = [1, 8, 9, 12, 13, 21, 36, 38, 41, 58, 59, 60, 61, 62, 63, 64, 69, 71], q = [1, 8, 9, 12, 13, 19, 21, 36, 38, 41, 45, 58, 59, 60, 61, 62, 63, 64, 69, 71, 84, 86, 87, 88, 89], H = [13, 84, 86, 87, 88, 89], G = [13, 63, 64, 84, 86, 87, 88, 89], ve = [13, 58, 59, 60, 61, 62, 84, 86, 87, 88, 89], Ee = [1, 90], Ce = [1, 8, 9, 36, 38, 41], J = [1, 8, 9, 21], me = {
|
||
|
trace: function() {
|
||
|
},
|
||
|
yy: {},
|
||
|
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, className: 17, classLiteralName: 18, GENERICTYPE: 19, relationStatement: 20, LABEL: 21, namespaceStatement: 22, classStatement: 23, memberStatement: 24, annotationStatement: 25, clickStatement: 26, cssClassStatement: 27, noteStatement: 28, direction: 29, acc_title: 30, acc_title_value: 31, acc_descr: 32, acc_descr_value: 33, acc_descr_multiline_value: 34, namespaceIdentifier: 35, STRUCT_START: 36, classStatements: 37, STRUCT_STOP: 38, NAMESPACE: 39, classIdentifier: 40, STYLE_SEPARATOR: 41, members: 42, CLASS: 43, ANNOTATION_START: 44, ANNOTATION_END: 45, MEMBER: 46, SEPARATOR: 47, relation: 48, NOTE_FOR: 49, noteText: 50, NOTE: 51, direction_tb: 52, direction_bt: 53, direction_rl: 54, direction_lr: 55, relationType: 56, lineType: 57, AGGREGATION: 58, EXTENSION: 59, COMPOSITION: 60, DEPENDENCY: 61, LOLLIPOP: 62, LINE: 63, DOTTED_LINE: 64, CALLBACK: 65, LINK: 66, LINK_TARGET: 67, CLICK: 68, CALLBACK_NAME: 69, CALLBACK_ARGS: 70, HREF: 71, CSSCLASS: 72, commentToken: 73, textToken: 74, graphCodeTokens: 75, textNoTagsToken: 76, TAGSTART: 77, TAGEND: 78, "==": 79, "--": 80, PCT: 81, DEFAULT: 82, SPACE: 83, MINUS: 84, keywords: 85, UNICODE_TEXT: 86, NUM: 87, ALPHA: 88, BQUOTE_STR: 89, $accept: 0, $end: 1 },
|
||
|
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 19: "GENERICTYPE", 21: "LABEL", 30: "acc_title", 31: "acc_title_value", 32: "acc_descr", 33: "acc_descr_value", 34: "acc_descr_multiline_value", 36: "STRUCT_START", 38: "STRUCT_STOP", 39: "NAMESPACE", 41: "STYLE_SEPARATOR", 43: "CLASS", 44: "ANNOTATION_START", 45: "ANNOTATION_END", 46: "MEMBER", 47: "SEPARATOR", 49: "NOTE_FOR", 51: "NOTE", 52: "direction_tb", 53: "direction_bt", 54: "direction_rl", 55: "direction_lr", 58: "AGGREGATION", 59: "EXTENSION", 60: "COMPOSITION", 61: "DEPENDENCY", 62: "LOLLIPOP", 63: "LINE", 64: "DOTTED_LINE", 65: "CALLBACK", 66: "LINK", 67: "LINK_TARGET", 68: "CLICK", 69: "CALLBACK_NAME", 70: "CALLBACK_ARGS", 71: "HREF", 72: "CSSCLASS", 75: "graphCodeTokens", 77: "TAGSTART", 78: "TAGEND", 79: "==", 80: "--", 81: "PCT", 82: "DEFAULT", 83: "SPACE", 84: "MINUS", 85: "keywords", 86: "UNICODE_TEXT", 87: "NUM", 88: "ALPHA", 89: "BQUOTE_STR" },
|
||
|
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 2], [17, 1], [17, 1], [17, 2], [17, 2], [17, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [22, 4], [22, 5], [35, 2], [37, 1], [37, 2], [37, 3], [23, 1], [23, 3], [23, 4], [23, 6], [40, 2], [40, 3], [25, 4], [42, 1], [42, 2], [24, 1], [24, 2], [24, 1], [24, 1], [20, 3], [20, 4], [20, 4], [20, 5], [28, 3], [28, 2], [29, 1], [29, 1], [29, 1], [29, 1], [48, 3], [48, 2], [48, 2], [48, 1], [56, 1], [56, 1], [56, 1], [56, 1], [56, 1], [57, 1], [57, 1], [26, 3], [26, 4], [26, 3], [26, 4], [26, 4], [26, 5], [26, 3], [26, 4], [26, 4], [26, 5], [26, 4], [26, 5], [26, 5], [26, 6], [27, 3], [73, 1], [73, 1], [74, 1], [74, 1], [74, 1], [74, 1], [74, 1], [74, 1], [74, 1], [76, 1], [76, 1], [76, 1], [76, 1], [16, 1], [16, 1], [16, 1], [16, 1], [18, 1], [50, 1]],
|
||
|
performAction: function(u, a, o, i, p, t, M) {
|
||
|
var s = t.length - 1;
|
||
|
switch (p) {
|
||
|
case 8:
|
||
|
this.$ = t[s - 1];
|
||
|
break;
|
||
|
case 9:
|
||
|
case 11:
|
||
|
case 12:
|
||
|
this.$ = t[s];
|
||
|
break;
|
||
|
case 10:
|
||
|
case 13:
|
||
|
this.$ = t[s - 1] + t[s];
|
||
|
break;
|
||
|
case 14:
|
||
|
case 15:
|
||
|
this.$ = t[s - 1] + "~" + t[s] + "~";
|
||
|
break;
|
||
|
case 16:
|
||
|
i.addRelation(t[s]);
|
||
|
break;
|
||
|
case 17:
|
||
|
t[s - 1].title = i.cleanupLabel(t[s]), i.addRelation(t[s - 1]);
|
||
|
break;
|
||
|
case 26:
|
||
|
this.$ = t[s].trim(), i.setAccTitle(this.$);
|
||
|
break;
|
||
|
case 27:
|
||
|
case 28:
|
||
|
this.$ = t[s].trim(), i.setAccDescription(this.$);
|
||
|
break;
|
||
|
case 29:
|
||
|
i.addClassesToNamespace(t[s - 3], t[s - 1]);
|
||
|
break;
|
||
|
case 30:
|
||
|
i.addClassesToNamespace(t[s - 4], t[s - 1]);
|
||
|
break;
|
||
|
case 31:
|
||
|
this.$ = t[s], i.addNamespace(t[s]);
|
||
|
break;
|
||
|
case 32:
|
||
|
this.$ = [t[s]];
|
||
|
break;
|
||
|
case 33:
|
||
|
this.$ = [t[s - 1]];
|
||
|
break;
|
||
|
case 34:
|
||
|
t[s].unshift(t[s - 2]), this.$ = t[s];
|
||
|
break;
|
||
|
case 36:
|
||
|
i.setCssClass(t[s - 2], t[s]);
|
||
|
break;
|
||
|
case 37:
|
||
|
i.addMembers(t[s - 3], t[s - 1]);
|
||
|
break;
|
||
|
case 38:
|
||
|
i.setCssClass(t[s - 5], t[s - 3]), i.addMembers(t[s - 5], t[s - 1]);
|
||
|
break;
|
||
|
case 39:
|
||
|
this.$ = t[s], i.addClass(t[s]);
|
||
|
break;
|
||
|
case 40:
|
||
|
this.$ = t[s - 1], i.addClass(t[s - 1]), i.setClassLabel(t[s - 1], t[s]);
|
||
|
break;
|
||
|
case 41:
|
||
|
i.addAnnotation(t[s], t[s - 2]);
|
||
|
break;
|
||
|
case 42:
|
||
|
this.$ = [t[s]];
|
||
|
break;
|
||
|
case 43:
|
||
|
t[s].push(t[s - 1]), this.$ = t[s];
|
||
|
break;
|
||
|
case 44:
|
||
|
break;
|
||
|
case 45:
|
||
|
i.addMember(t[s - 1], i.cleanupLabel(t[s]));
|
||
|
break;
|
||
|
case 46:
|
||
|
break;
|
||
|
case 47:
|
||
|
break;
|
||
|
case 48:
|
||
|
this.$ = { id1: t[s - 2], id2: t[s], relation: t[s - 1], relationTitle1: "none", relationTitle2: "none" };
|
||
|
break;
|
||
|
case 49:
|
||
|
this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 1], relationTitle1: t[s - 2], relationTitle2: "none" };
|
||
|
break;
|
||
|
case 50:
|
||
|
this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 2], relationTitle1: "none", relationTitle2: t[s - 1] };
|
||
|
break;
|
||
|
case 51:
|
||
|
this.$ = { id1: t[s - 4], id2: t[s], relation: t[s - 2], relationTitle1: t[s - 3], relationTitle2: t[s - 1] };
|
||
|
break;
|
||
|
case 52:
|
||
|
i.addNote(t[s], t[s - 1]);
|
||
|
break;
|
||
|
case 53:
|
||
|
i.addNote(t[s]);
|
||
|
break;
|
||
|
case 54:
|
||
|
i.setDirection("TB");
|
||
|
break;
|
||
|
case 55:
|
||
|
i.setDirection("BT");
|
||
|
break;
|
||
|
case 56:
|
||
|
i.setDirection("RL");
|
||
|
break;
|
||
|
case 57:
|
||
|
i.setDirection("LR");
|
||
|
break;
|
||
|
case 58:
|
||
|
this.$ = { type1: t[s - 2], type2: t[s], lineType: t[s - 1] };
|
||
|
break;
|
||
|
case 59:
|
||
|
this.$ = { type1: "none", type2: t[s], lineType: t[s - 1] };
|
||
|
break;
|
||
|
case 60:
|
||
|
this.$ = { type1: t[s - 1], type2: "none", lineType: t[s] };
|
||
|
break;
|
||
|
case 61:
|
||
|
this.$ = { type1: "none", type2: "none", lineType: t[s] };
|
||
|
break;
|
||
|
case 62:
|
||
|
this.$ = i.relationType.AGGREGATION;
|
||
|
break;
|
||
|
case 63:
|
||
|
this.$ = i.relationType.EXTENSION;
|
||
|
break;
|
||
|
case 64:
|
||
|
this.$ = i.relationType.COMPOSITION;
|
||
|
break;
|
||
|
case 65:
|
||
|
this.$ = i.relationType.DEPENDENCY;
|
||
|
break;
|
||
|
case 66:
|
||
|
this.$ = i.relationType.LOLLIPOP;
|
||
|
break;
|
||
|
case 67:
|
||
|
this.$ = i.lineType.LINE;
|
||
|
break;
|
||
|
case 68:
|
||
|
this.$ = i.lineType.DOTTED_LINE;
|
||
|
break;
|
||
|
case 69:
|
||
|
case 75:
|
||
|
this.$ = t[s - 2], i.setClickEvent(t[s - 1], t[s]);
|
||
|
break;
|
||
|
case 70:
|
||
|
case 76:
|
||
|
this.$ = t[s - 3], i.setClickEvent(t[s - 2], t[s - 1]), i.setTooltip(t[s - 2], t[s]);
|
||
|
break;
|
||
|
case 71:
|
||
|
this.$ = t[s - 2], i.setLink(t[s - 1], t[s]);
|
||
|
break;
|
||
|
case 72:
|
||
|
this.$ = t[s - 3], i.setLink(t[s - 2], t[s - 1], t[s]);
|
||
|
break;
|
||
|
case 73:
|
||
|
this.$ = t[s - 3], i.setLink(t[s - 2], t[s - 1]), i.setTooltip(t[s - 2], t[s]);
|
||
|
break;
|
||
|
case 74:
|
||
|
this.$ = t[s - 4], i.setLink(t[s - 3], t[s - 2], t[s]), i.setTooltip(t[s - 3], t[s - 1]);
|
||
|
break;
|
||
|
case 77:
|
||
|
this.$ = t[s - 3], i.setClickEvent(t[s - 2], t[s - 1], t[s]);
|
||
|
break;
|
||
|
case 78:
|
||
|
this.$ = t[s - 4], i.setClickEvent(t[s - 3], t[s - 2], t[s - 1]), i.setTooltip(t[s - 3], t[s]);
|
||
|
break;
|
||
|
case 79:
|
||
|
this.$ = t[s - 3], i.setLink(t[s - 2], t[s]);
|
||
|
break;
|
||
|
case 80:
|
||
|
this.$ = t[s - 4], i.setLink(t[s - 3], t[s - 1], t[s]);
|
||
|
break;
|
||
|
case 81:
|
||
|
this.$ = t[s - 4], i.setLink(t[s - 3], t[s - 1]), i.setTooltip(t[s - 3], t[s]);
|
||
|
break;
|
||
|
case 82:
|
||
|
this.$ = t[s - 5], i.setLink(t[s - 4], t[s - 2], t[s]), i.setTooltip(t[s - 4], t[s - 1]);
|
||
|
break;
|
||
|
case 83:
|
||
|
i.setCssClass(t[s - 1], t[s]);
|
||
|
break;
|
||
|
}
|
||
|
},
|
||
|
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 35, 17: 19, 18: 36, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: n, 32: r, 34: h, 35: 20, 39: l, 40: 21, 43: A, 44: g, 46: D, 47: B, 49: _, 51: ne, 52: ue, 53: re, 54: ae, 55: le, 65: ce, 66: oe, 68: he, 72: Ae, 84: d, 86: E, 87: C, 88: m, 89: k }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, e(pe, [2, 5], { 8: [1, 44] }), { 8: [1, 45] }, e(c, [2, 16], { 21: [1, 46] }), e(c, [2, 18]), e(c, [2, 19]), e(c, [2, 20]), e(c, [2, 21]), e(c, [2, 22]), e(c, [2, 23]), e(c, [2, 24]), e(c, [2, 25]), { 31: [1, 47] }, { 33: [1, 48] }, e(c, [2, 28]), e(c, [2, 44], { 48: 49, 56: 52, 57: 53, 13: [1, 50], 21: [1, 51], 58: Y, 59: K, 60: j, 61: Q, 62: X, 63: fe, 64: de }), { 36: [1, 61] }, e(W, [2, 35], { 36: [1, 63], 41: [1, 62] }), e(c, [2, 46]), e(c, [2, 47]), { 16: 64, 84: d, 86: E, 87: C, 88: m }, { 16: 35, 17: 65, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, { 16: 35, 17: 66, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, { 16: 35, 17: 67, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, { 13: [1, 68] }, { 16: 35, 17: 69, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, { 13: Ne, 50: 70 }, e(c, [2, 54]), e(c, [2, 55]), e(c, [2, 56]), e(c, [2, 57]), e(V, [2, 11], { 16: 35, 18: 36, 17: 72, 19: [1, 73], 84: d, 86: E, 87: C, 88: m, 89: k }), e(V, [2, 12], { 19: [1, 74] }), { 15: 75, 16: 76, 84: d, 86: E, 87: C, 88: m }, { 16: 35, 17: 77, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, e(q, [2, 97]), e(q, [2, 98]), e(q, [2, 99]), e(q, [2, 100]), e([1, 8, 9, 12, 13, 19, 21, 36, 38, 41, 58, 59, 60, 61, 62, 63, 64, 69, 71], [2, 101]), e(pe, [2, 6], { 10: 5, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 17: 19, 35: 20, 40: 21, 16: 35, 18: 36, 5: 78, 30: n, 32: r, 34: h, 39: l, 43: A, 44: g, 46: D, 47: B, 49: _, 51: ne, 52: ue, 53: re, 54: ae, 55: le, 65: ce, 66: oe, 68: he, 72: Ae, 84: d, 86: E, 87: C, 88: m, 89: k }), { 5: 79, 10: 5, 16: 35, 17: 19, 18: 36, 20: 7, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 27: 13, 28: 14, 29: 15, 30: n, 32: r, 34: h, 35: 20, 39: l, 40: 21, 43: A, 44: g, 46: D, 47: B, 49: _, 51: ne, 52: ue, 53: re, 54: ae, 55: le, 65: ce, 66: oe, 68: he, 72: Ae, 84: d, 86: E, 87: C, 88: m, 89: k }, e(c, [2, 17]), e(c, [2, 26]), e(c, [2, 27]), { 13: [1, 81], 16: 35, 17: 80, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, { 48: 82, 56: 52, 57: 53, 58: Y, 59: K, 60: j, 61: Q, 62: X, 63: fe, 64: de }, e(c, [2, 45]), { 57: 83, 63: fe, 64: de }, e(H, [2, 61], { 56: 84, 58: Y, 59: K, 60: j, 61: Q, 62: X }), e(G, [2, 62]), e(G, [2, 63]), e(G, [2, 64]), e(G, [2, 65]), e(G, [2, 66]), e(ve, [2, 67]), e(ve, [2, 68]), { 8: [1, 86], 23: 87, 37: 85, 40: 21, 43: A }, { 16: 88, 84: d, 86: E, 87: C, 88: m }, { 42: 89, 46: Ee }, { 45: [1, 91] }, { 13: [1, 92] }, { 13: [1, 93] }, { 69: [1, 94], 71: [1, 95] }, { 16: 96, 84: d, 86: E, 87: C, 88: m }, { 13: Ne, 50: 97 }, e(c, [2, 53]), e(c, [2, 102]), e(V, [2, 13]), e(V, [2, 14]), e(V, [2, 15]), { 36: [2, 31] }, { 15: 98, 16: 76, 36: [2, 9], 84: d, 86: E, 87: C, 88: m }, e(Ce, [2, 39], { 11: 99, 12: [1, 100] }), e(pe, [2, 7]), { 9: [1, 101] }, e(J, [2, 48]), { 16: 35, 17: 102, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, { 13: [1, 104], 16: 35, 17: 103, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, e(H, [2, 60], { 56: 105, 58: Y, 59: K, 60: j, 61: Q, 62: X }), e(H, [2, 59]), { 38: [1, 106] }, { 23: 87, 37: 107, 40: 21, 43: A }, { 8: [1, 108], 38: [2, 32] }, e(W, [2, 36], { 36: [1, 109] }), { 38: [1, 110] }, { 38: [2, 42], 42: 111, 46: Ee }, { 16: 35, 17: 112, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, e(c, [2, 69], { 13: [1, 113] }), e(c, [2, 71], { 13: [1, 115], 67: [1, 114] }), e(c, [2, 75], { 13: [1, 116], 70: [1, 117] }), { 13: [1, 118] }, e(c, [2, 83]), e(c, [2, 52]), { 36: [2, 10] }, e(Ce, [2, 40]), { 13: [1, 119] }, { 1: [2, 4] }, e(J, [2, 50]), e(J, [2, 49]), { 16: 35, 17: 120, 18: 36, 84: d, 86: E, 87: C, 88: m, 89: k }, e(H, [2, 58]), e(c, [2, 29]), { 38: [1, 121] }, { 23: 87, 37: 122, 38: [2, 33], 40: 21, 43: A }, { 42: 123, 46: Ee }, e(W, [2, 37]), { 38: [2, 43] }, e(c, [2, 41]), e(c,
|
||
|
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 75: [2, 31], 98: [2, 10], 101: [2, 4], 111: [2, 43], 122: [2, 34] },
|
||
|
parseError: function(u, a) {
|
||
|
if (a.recoverable)
|
||
|
this.trace(u);
|
||
|
else {
|
||
|
var o = new Error(u);
|
||
|
throw o.hash = a, o;
|
||
|
}
|
||
|
},
|
||
|
parse: function(u) {
|
||
|
var a = this, o = [0], i = [], p = [null], t = [], M = this.table, s = "", Z = 0, Le = 0, Ye = 2, xe = 1, Ke = t.slice.call(arguments, 1), b = Object.create(this.lexer), I = { yy: {} };
|
||
|
for (var ge in this.yy)
|
||
|
Object.prototype.hasOwnProperty.call(this.yy, ge) && (I.yy[ge] = this.yy[ge]);
|
||
|
b.setInput(u, I.yy), I.yy.lexer = b, I.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
||
|
var ke = b.yylloc;
|
||
|
t.push(ke);
|
||
|
var je = b.options && b.options.ranges;
|
||
|
typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
||
|
function Qe() {
|
||
|
var N;
|
||
|
return N = i.pop() || b.lex() || xe, typeof N != "number" && (N instanceof Array && (i = N, N = i.pop()), N = a.symbols_[N] || N), N;
|
||
|
}
|
||
|
for (var T, O, y, Te, w = {}, $, S, Ie, ee; ; ) {
|
||
|
if (O = o[o.length - 1], this.defaultActions[O] ? y = this.defaultActions[O] : ((T === null || typeof T > "u") && (T = Qe()), y = M[O] && M[O][T]), typeof y > "u" || !y.length || !y[0]) {
|
||
|
var Fe = "";
|
||
|
ee = [];
|
||
|
for ($ in M[O])
|
||
|
this.terminals_[$] && $ > Ye && ee.push("'" + this.terminals_[$] + "'");
|
||
|
b.showPosition ? Fe = "Parse error on line " + (Z + 1) + `:
|
||
|
` + b.showPosition() + `
|
||
|
Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : Fe = "Parse error on line " + (Z + 1) + ": Unexpected " + (T == xe ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(Fe, {
|
||
|
text: b.match,
|
||
|
token: this.terminals_[T] || T,
|
||
|
line: b.yylineno,
|
||
|
loc: ke,
|
||
|
expected: ee
|
||
|
});
|
||
|
}
|
||
|
if (y[0] instanceof Array && y.length > 1)
|
||
|
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + T);
|
||
|
switch (y[0]) {
|
||
|
case 1:
|
||
|
o.push(T), p.push(b.yytext), t.push(b.yylloc), o.push(y[1]), T = null, Le = b.yyleng, s = b.yytext, Z = b.yylineno, ke = b.yylloc;
|
||
|
break;
|
||
|
case 2:
|
||
|
if (S = this.productions_[y[1]][1], w.$ = p[p.length - S], w._$ = {
|
||
|
first_line: t[t.length - (S || 1)].first_line,
|
||
|
last_line: t[t.length - 1].last_line,
|
||
|
first_column: t[t.length - (S || 1)].first_column,
|
||
|
last_column: t[t.length - 1].last_column
|
||
|
}, je && (w._$.range = [
|
||
|
t[t.length - (S || 1)].range[0],
|
||
|
t[t.length - 1].range[1]
|
||
|
]), Te = this.performAction.apply(w, [
|
||
|
s,
|
||
|
Le,
|
||
|
Z,
|
||
|
I.yy,
|
||
|
y[1],
|
||
|
p,
|
||
|
t
|
||
|
].concat(Ke)), typeof Te < "u")
|
||
|
return Te;
|
||
|
S && (o = o.slice(0, -1 * S * 2), p = p.slice(0, -1 * S), t = t.slice(0, -1 * S)), o.push(this.productions_[y[1]][0]), p.push(w.$), t.push(w._$), Ie = M[o[o.length - 2]][o[o.length - 1]], o.push(Ie);
|
||
|
break;
|
||
|
case 3:
|
||
|
return !0;
|
||
|
}
|
||
|
}
|
||
|
return !0;
|
||
|
}
|
||
|
}, ze = function() {
|
||
|
var L = {
|
||
|
EOF: 1,
|
||
|
parseError: function(a, o) {
|
||
|
if (this.yy.parser)
|
||
|
this.yy.parser.parseError(a, o);
|
||
|
else
|
||
|
throw new Error(a);
|
||
|
},
|
||
|
// resets the lexer, sets new input
|
||
|
setInput: function(u, a) {
|
||
|
return this.yy = a || this.yy || {}, this._input = u, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
||
|
first_line: 1,
|
||
|
first_column: 0,
|
||
|
last_line: 1,
|
||
|
last_column: 0
|
||
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
||
|
},
|
||
|
// consumes and returns one char from the input
|
||
|
input: function() {
|
||
|
var u = this._input[0];
|
||
|
this.yytext += u, this.yyleng++, this.offset++, this.match += u, this.matched += u;
|
||
|
var a = u.match(/(?:\r\n?|\n).*/g);
|
||
|
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), u;
|
||
|
},
|
||
|
// unshifts one char (or a string) into the input
|
||
|
unput: function(u) {
|
||
|
var a = u.length, o = u.split(/(?:\r\n?|\n)/g);
|
||
|
this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
||
|
var i = this.match.split(/(?:\r\n?|\n)/g);
|
||
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
||
|
var p = this.yylloc.range;
|
||
|
return this.yylloc = {
|
||
|
first_line: this.yylloc.first_line,
|
||
|
last_line: this.yylineno + 1,
|
||
|
first_column: this.yylloc.first_column,
|
||
|
last_column: o ? (o.length === i.length ? this.yylloc.first_column : 0) + i[i.length - o.length].length - o[0].length : this.yylloc.first_column - a
|
||
|
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
||
|
},
|
||
|
// When called from action, caches matched text and appends it on next action
|
||
|
more: function() {
|
||
|
return this._more = !0, this;
|
||
|
},
|
||
|
// 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.
|
||
|
reject: function() {
|
||
|
if (this.options.backtrack_lexer)
|
||
|
this._backtrack = !0;
|
||
|
else
|
||
|
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).
|
||
|
` + this.showPosition(), {
|
||
|
text: "",
|
||
|
token: null,
|
||
|
line: this.yylineno
|
||
|
});
|
||
|
return this;
|
||
|
},
|
||
|
// retain first n characters of the match
|
||
|
less: function(u) {
|
||
|
this.unput(this.match.slice(u));
|
||
|
},
|
||
|
// displays already matched input, i.e. for error messages
|
||
|
pastInput: function() {
|
||
|
var u = this.matched.substr(0, this.matched.length - this.match.length);
|
||
|
return (u.length > 20 ? "..." : "") + u.substr(-20).replace(/\n/g, "");
|
||
|
},
|
||
|
// displays upcoming input, i.e. for error messages
|
||
|
upcomingInput: function() {
|
||
|
var u = this.match;
|
||
|
return u.length < 20 && (u += this._input.substr(0, 20 - u.length)), (u.substr(0, 20) + (u.length > 20 ? "..." : "")).replace(/\n/g, "");
|
||
|
},
|
||
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
||
|
showPosition: function() {
|
||
|
var u = this.pastInput(), a = new Array(u.length + 1).join("-");
|
||
|
return u + this.upcomingInput() + `
|
||
|
` + a + "^";
|
||
|
},
|
||
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
||
|
test_match: function(u, a) {
|
||
|
var o, i, p;
|
||
|
if (this.options.backtrack_lexer && (p = {
|
||
|
yylineno: this.yylineno,
|
||
|
yylloc: {
|
||
|
first_line: this.yylloc.first_line,
|
||
|
last_line: this.last_line,
|
||
|
first_column: this.yylloc.first_column,
|
||
|
last_column: this.yylloc.last_column
|
||
|
},
|
||
|
yytext: this.yytext,
|
||
|
match: this.match,
|
||
|
matches: this.matches,
|
||
|
matched: this.matched,
|
||
|
yyleng: this.yyleng,
|
||
|
offset: this.offset,
|
||
|
_more: this._more,
|
||
|
_input: this._input,
|
||
|
yy: this.yy,
|
||
|
conditionStack: this.conditionStack.slice(0),
|
||
|
done: this.done
|
||
|
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), i = u[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
|
||
|
first_line: this.yylloc.last_line,
|
||
|
last_line: this.yylineno + 1,
|
||
|
first_column: this.yylloc.last_column,
|
||
|
last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + u[0].length
|
||
|
}, this.yytext += u[0], this.match += u[0], this.matches = u, 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(u[0].length), this.matched += u[0], o = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
||
|
return o;
|
||
|
if (this._backtrack) {
|
||
|
for (var t in p)
|
||
|
this[t] = p[t];
|
||
|
return !1;
|
||
|
}
|
||
|
return !1;
|
||
|
},
|
||
|
// return next match in input
|
||
|
next: function() {
|
||
|
if (this.done)
|
||
|
return this.EOF;
|
||
|
this._input || (this.done = !0);
|
||
|
var u, a, o, i;
|
||
|
this._more || (this.yytext = "", this.match = "");
|
||
|
for (var p = this._currentRules(), t = 0; t < p.length; t++)
|
||
|
if (o = this._input.match(this.rules[p[t]]), o && (!a || o[0].length > a[0].length)) {
|
||
|
if (a = o, i = t, this.options.backtrack_lexer) {
|
||
|
if (u = this.test_match(o, p[t]), u !== !1)
|
||
|
return u;
|
||
|
if (this._backtrack) {
|
||
|
a = !1;
|
||
|
continue;
|
||
|
} else
|
||
|
return !1;
|
||
|
} else if (!this.options.flex)
|
||
|
break;
|
||
|
}
|
||
|
return a ? (u = this.test_match(a, p[i]), u !== !1 ? u : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
||
|
` + this.showPosition(), {
|
||
|
text: "",
|
||
|
token: null,
|
||
|
line: this.yylineno
|
||
|
});
|
||
|
},
|
||
|
// return next match that has a token
|
||
|
lex: function() {
|
||
|
var a = this.next();
|
||
|
return a || this.lex();
|
||
|
},
|
||
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
||
|
begin: function(a) {
|
||
|
this.conditionStack.push(a);
|
||
|
},
|
||
|
// pop the previously active lexer condition state off the condition stack
|
||
|
popState: function() {
|
||
|
var a = this.conditionStack.length - 1;
|
||
|
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
||
|
},
|
||
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
||
|
_currentRules: function() {
|
||
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
||
|
},
|
||
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
||
|
topState: function(a) {
|
||
|
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
||
|
},
|
||
|
// alias for begin(condition)
|
||
|
pushState: function(a) {
|
||
|
this.begin(a);
|
||
|
},
|
||
|
// return the number of states currently on the stack
|
||
|
stateStackSize: function() {
|
||
|
return this.conditionStack.length;
|
||
|
},
|
||
|
options: {},
|
||
|
performAction: function(a, o, i, p) {
|
||
|
switch (i) {
|
||
|
case 0:
|
||
|
return 52;
|
||
|
case 1:
|
||
|
return 53;
|
||
|
case 2:
|
||
|
return 54;
|
||
|
case 3:
|
||
|
return 55;
|
||
|
case 4:
|
||
|
break;
|
||
|
case 5:
|
||
|
break;
|
||
|
case 6:
|
||
|
return this.begin("acc_title"), 30;
|
||
|
case 7:
|
||
|
return this.popState(), "acc_title_value";
|
||
|
case 8:
|
||
|
return this.begin("acc_descr"), 32;
|
||
|
case 9:
|
||
|
return this.popState(), "acc_descr_value";
|
||
|
case 10:
|
||
|
this.begin("acc_descr_multiline");
|
||
|
break;
|
||
|
case 11:
|
||
|
this.popState();
|
||
|
break;
|
||
|
case 12:
|
||
|
return "acc_descr_multiline_value";
|
||
|
case 13:
|
||
|
return 8;
|
||
|
case 14:
|
||
|
break;
|
||
|
case 15:
|
||
|
return 7;
|
||
|
case 16:
|
||
|
return 7;
|
||
|
case 17:
|
||
|
return "EDGE_STATE";
|
||
|
case 18:
|
||
|
this.begin("callback_name");
|
||
|
break;
|
||
|
case 19:
|
||
|
this.popState();
|
||
|
break;
|
||
|
case 20:
|
||
|
this.popState(), this.begin("callback_args");
|
||
|
break;
|
||
|
case 21:
|
||
|
return 69;
|
||
|
case 22:
|
||
|
this.popState();
|
||
|
break;
|
||
|
case 23:
|
||
|
return 70;
|
||
|
case 24:
|
||
|
this.popState();
|
||
|
break;
|
||
|
case 25:
|
||
|
return "STR";
|
||
|
case 26:
|
||
|
this.begin("string");
|
||
|
break;
|
||
|
case 27:
|
||
|
return this.begin("namespace"), 39;
|
||
|
case 28:
|
||
|
return this.popState(), 8;
|
||
|
case 29:
|
||
|
break;
|
||
|
case 30:
|
||
|
return this.begin("namespace-body"), 36;
|
||
|
case 31:
|
||
|
return this.popState(), 38;
|
||
|
case 32:
|
||
|
return "EOF_IN_STRUCT";
|
||
|
case 33:
|
||
|
return 8;
|
||
|
case 34:
|
||
|
break;
|
||
|
case 35:
|
||
|
return "EDGE_STATE";
|
||
|
case 36:
|
||
|
return this.begin("class"), 43;
|
||
|
case 37:
|
||
|
return this.popState(), 8;
|
||
|
case 38:
|
||
|
break;
|
||
|
case 39:
|
||
|
return this.popState(), this.popState(), 38;
|
||
|
case 40:
|
||
|
return this.begin("class-body"), 36;
|
||
|
case 41:
|
||
|
return this.popState(), 38;
|
||
|
case 42:
|
||
|
return "EOF_IN_STRUCT";
|
||
|
case 43:
|
||
|
return "EDGE_STATE";
|
||
|
case 44:
|
||
|
return "OPEN_IN_STRUCT";
|
||
|
case 45:
|
||
|
break;
|
||
|
case 46:
|
||
|
return "MEMBER";
|
||
|
case 47:
|
||
|
return 72;
|
||
|
case 48:
|
||
|
return 65;
|
||
|
case 49:
|
||
|
return 66;
|
||
|
case 50:
|
||
|
return 68;
|
||
|
case 51:
|
||
|
return 49;
|
||
|
case 52:
|
||
|
return 51;
|
||
|
case 53:
|
||
|
return 44;
|
||
|
case 54:
|
||
|
return 45;
|
||
|
case 55:
|
||
|
return 71;
|
||
|
case 56:
|
||
|
this.popState();
|
||
|
break;
|
||
|
case 57:
|
||
|
return "GENERICTYPE";
|
||
|
case 58:
|
||
|
this.begin("generic");
|
||
|
break;
|
||
|
case 59:
|
||
|
this.popState();
|
||
|
break;
|
||
|
case 60:
|
||
|
return "BQUOTE_STR";
|
||
|
case 61:
|
||
|
this.begin("bqstring");
|
||
|
break;
|
||
|
case 62:
|
||
|
return 67;
|
||
|
case 63:
|
||
|
return 67;
|
||
|
case 64:
|
||
|
return 67;
|
||
|
case 65:
|
||
|
return 67;
|
||
|
case 66:
|
||
|
return 59;
|
||
|
case 67:
|
||
|
return 59;
|
||
|
case 68:
|
||
|
return 61;
|
||
|
case 69:
|
||
|
return 61;
|
||
|
case 70:
|
||
|
return 60;
|
||
|
case 71:
|
||
|
return 58;
|
||
|
case 72:
|
||
|
return 62;
|
||
|
case 73:
|
||
|
return 63;
|
||
|
case 74:
|
||
|
return 64;
|
||
|
case 75:
|
||
|
return 21;
|
||
|
case 76:
|
||
|
return 41;
|
||
|
case 77:
|
||
|
return 84;
|
||
|
case 78:
|
||
|
return "DOT";
|
||
|
case 79:
|
||
|
return "PLUS";
|
||
|
case 80:
|
||
|
return 81;
|
||
|
case 81:
|
||
|
return "EQUALS";
|
||
|
case 82:
|
||
|
return "EQUALS";
|
||
|
case 83:
|
||
|
return 88;
|
||
|
case 84:
|
||
|
return 12;
|
||
|
case 85:
|
||
|
return 14;
|
||
|
case 86:
|
||
|
return "PUNCTUATION";
|
||
|
case 87:
|
||
|
return 87;
|
||
|
case 88:
|
||
|
return 86;
|
||
|
case 89:
|
||
|
return 83;
|
||
|
case 90:
|
||
|
return 9;
|
||
|
}
|
||
|
},
|
||
|
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]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?: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-\
|
||
|
conditions: { "namespace-body": { rules: [26, 31, 32, 33, 34, 35, 36, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, namespace: { rules: [26, 27, 28, 29, 30, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, "class-body": { rules: [26, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, class: { rules: [26, 37, 38, 39, 40, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, acc_descr: { rules: [9, 26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, acc_title: { rules: [7, 26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, href: { rules: [26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, struct: { rules: [26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, generic: { rules: [26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 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], inclusive: !1 }, bqstring: { rules: [26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 59, 60, 61, 62, 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], inclusive: !1 }, string: { rules: [24, 25, 26, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 36, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 61, 62, 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], inclusive: !0 } }
|
||
|
};
|
||
|
return L;
|
||
|
}();
|
||
|
me.lexer = ze;
|
||
|
function be() {
|
||
|
this.yy = {};
|
||
|
}
|
||
|
return be.prototype = me, me.Parser = be, new be();
|
||
|
}();
|
||
|
De.parser = De;
|
||
|
const Nt = De, Oe = ["#", "+", "~", "-", ""];
|
||
|
class Re {
|
||
|
constructor(n, r) {
|
||
|
this.memberType = r, this.visibility = "", this.classifier = "";
|
||
|
const h = Xe(n, F());
|
||
|
this.parseMember(h);
|
||
|
}
|
||
|
getDisplayDetails() {
|
||
|
let n = this.visibility + ye(this.id);
|
||
|
this.memberType === "method" && (n += `(${ye(this.parameters.trim())})`, this.returnType && (n += " : " + ye(this.returnType))), n = n.trim();
|
||
|
const r = this.parseClassifier();
|
||
|
return {
|
||
|
displayText: n,
|
||
|
cssStyle: r
|
||
|
};
|
||
|
}
|
||
|
parseMember(n) {
|
||
|
let r = "";
|
||
|
if (this.memberType === "method") {
|
||
|
const h = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/, l = n.match(h);
|
||
|
if (l) {
|
||
|
const A = l[1] ? l[1].trim() : "";
|
||
|
if (Oe.includes(A) && (this.visibility = A), this.id = l[2].trim(), this.parameters = l[3] ? l[3].trim() : "", r = l[4] ? l[4].trim() : "", this.returnType = l[5] ? l[5].trim() : "", r === "") {
|
||
|
const g = this.returnType.substring(this.returnType.length - 1);
|
||
|
g.match(/[$*]/) && (r = g, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
const h = n.length, l = n.substring(0, 1), A = n.substring(h - 1);
|
||
|
Oe.includes(l) && (this.visibility = l), A.match(/[*?]/) && (r = A), this.id = n.substring(
|
||
|
this.visibility === "" ? 0 : 1,
|
||
|
r === "" ? h : h - 1
|
||
|
);
|
||
|
}
|
||
|
this.classifier = r;
|
||
|
}
|
||
|
parseClassifier() {
|
||
|
switch (this.classifier) {
|
||
|
case "*":
|
||
|
return "font-style:italic;";
|
||
|
case "$":
|
||
|
return "text-decoration:underline;";
|
||
|
default:
|
||
|
return "";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
const ie = "classId-";
|
||
|
let _e = [], f = {}, te = [], we = 0, x = {}, Be = 0, z = [];
|
||
|
const R = (e) => v.sanitizeText(e, F()), P = function(e) {
|
||
|
const n = v.sanitizeText(e, F());
|
||
|
let r = "", h = n;
|
||
|
if (n.indexOf("~") > 0) {
|
||
|
const l = n.split("~");
|
||
|
h = R(l[0]), r = R(l[1]);
|
||
|
}
|
||
|
return { className: h, type: r };
|
||
|
}, st = function(e, n) {
|
||
|
const r = v.sanitizeText(e, F());
|
||
|
n && (n = R(n));
|
||
|
const { className: h } = P(r);
|
||
|
f[h].label = n;
|
||
|
}, se = function(e) {
|
||
|
const n = v.sanitizeText(e, F()), { className: r, type: h } = P(n);
|
||
|
if (Object.hasOwn(f, r))
|
||
|
return;
|
||
|
const l = v.sanitizeText(r, F());
|
||
|
f[l] = {
|
||
|
id: l,
|
||
|
type: h,
|
||
|
label: l,
|
||
|
cssClasses: [],
|
||
|
methods: [],
|
||
|
members: [],
|
||
|
annotations: [],
|
||
|
domId: ie + l + "-" + we
|
||
|
}, we++;
|
||
|
}, Ve = function(e) {
|
||
|
const n = v.sanitizeText(e, F());
|
||
|
if (n in f)
|
||
|
return f[n].domId;
|
||
|
throw new Error("Class not found: " + n);
|
||
|
}, it = function() {
|
||
|
_e = [], f = {}, te = [], z = [], z.push(Me), x = {}, Be = 0, et();
|
||
|
}, nt = function(e) {
|
||
|
return f[e];
|
||
|
}, ut = function() {
|
||
|
return f;
|
||
|
}, rt = function() {
|
||
|
return _e;
|
||
|
}, at = function() {
|
||
|
return te;
|
||
|
}, lt = function(e) {
|
||
|
tt.debug("Adding relation: " + JSON.stringify(e)), se(e.id1), se(e.id2), e.id1 = P(e.id1).className, e.id2 = P(e.id2).className, e.relationTitle1 = v.sanitizeText(
|
||
|
e.relationTitle1.trim(),
|
||
|
F()
|
||
|
), e.relationTitle2 = v.sanitizeText(
|
||
|
e.relationTitle2.trim(),
|
||
|
F()
|
||
|
), _e.push(e);
|
||
|
}, ct = function(e, n) {
|
||
|
const r = P(e).className;
|
||
|
f[r].annotations.push(n);
|
||
|
}, Ge = function(e, n) {
|
||
|
se(e);
|
||
|
const r = P(e).className, h = f[r];
|
||
|
if (typeof n == "string") {
|
||
|
const l = n.trim();
|
||
|
l.startsWith("<<") && l.endsWith(">>") ? h.annotations.push(R(l.substring(2, l.length - 2))) : l.indexOf(")") > 0 ? h.methods.push(new Re(l, "method")) : l && h.members.push(new Re(l, "attribute"));
|
||
|
}
|
||
|
}, ot = function(e, n) {
|
||
|
Array.isArray(n) && (n.reverse(), n.forEach((r) => Ge(e, r)));
|
||
|
}, ht = function(e, n) {
|
||
|
const r = {
|
||
|
id: `note${te.length}`,
|
||
|
class: n,
|
||
|
text: e
|
||
|
};
|
||
|
te.push(r);
|
||
|
}, At = function(e) {
|
||
|
return e.startsWith(":") && (e = e.substring(1)), R(e.trim());
|
||
|
}, Se = function(e, n) {
|
||
|
e.split(",").forEach(function(r) {
|
||
|
let h = r;
|
||
|
r[0].match(/\d/) && (h = ie + h), f[h] !== void 0 && f[h].cssClasses.push(n);
|
||
|
});
|
||
|
}, pt = function(e, n) {
|
||
|
e.split(",").forEach(function(r) {
|
||
|
n !== void 0 && (f[r].tooltip = R(n));
|
||
|
});
|
||
|
}, ft = function(e, n) {
|
||
|
return n ? x[n].classes[e].tooltip : f[e].tooltip;
|
||
|
}, dt = function(e, n, r) {
|
||
|
const h = F();
|
||
|
e.split(",").forEach(function(l) {
|
||
|
let A = l;
|
||
|
l[0].match(/\d/) && (A = ie + A), f[A] !== void 0 && (f[A].link = Pe.formatUrl(n, h), h.securityLevel === "sandbox" ? f[A].linkTarget = "_top" : typeof r == "string" ? f[A].linkTarget = R(r) : f[A].linkTarget = "_blank");
|
||
|
}), Se(e, "clickable");
|
||
|
}, Et = function(e, n, r) {
|
||
|
e.split(",").forEach(function(h) {
|
||
|
Ct(h, n, r), f[h].haveCallback = !0;
|
||
|
}), Se(e, "clickable");
|
||
|
}, Ct = function(e, n, r) {
|
||
|
const h = v.sanitizeText(e, F());
|
||
|
if (F().securityLevel !== "loose" || n === void 0)
|
||
|
return;
|
||
|
const A = h;
|
||
|
if (f[A] !== void 0) {
|
||
|
const g = Ve(A);
|
||
|
let D = [];
|
||
|
if (typeof r == "string") {
|
||
|
D = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
||
|
for (let B = 0; B < D.length; B++) {
|
||
|
let _ = D[B].trim();
|
||
|
_.charAt(0) === '"' && _.charAt(_.length - 1) === '"' && (_ = _.substr(1, _.length - 2)), D[B] = _;
|
||
|
}
|
||
|
}
|
||
|
D.length === 0 && D.push(g), z.push(function() {
|
||
|
const B = document.querySelector(`[id="${g}"]`);
|
||
|
B !== null && B.addEventListener(
|
||
|
"click",
|
||
|
function() {
|
||
|
Pe.runFunc(n, ...D);
|
||
|
},
|
||
|
!1
|
||
|
);
|
||
|
});
|
||
|
}
|
||
|
}, mt = function(e) {
|
||
|
z.forEach(function(n) {
|
||
|
n(e);
|
||
|
});
|
||
|
}, bt = {
|
||
|
LINE: 0,
|
||
|
DOTTED_LINE: 1
|
||
|
}, gt = {
|
||
|
AGGREGATION: 0,
|
||
|
EXTENSION: 1,
|
||
|
COMPOSITION: 2,
|
||
|
DEPENDENCY: 3,
|
||
|
LOLLIPOP: 4
|
||
|
}, Me = function(e) {
|
||
|
let n = U(".mermaidTooltip");
|
||
|
(n._groups || n)[0][0] === null && (n = U("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), U(e).select("svg").selectAll("g.node").on("mouseover", function() {
|
||
|
const l = U(this);
|
||
|
if (l.attr("title") === null)
|
||
|
return;
|
||
|
const g = this.getBoundingClientRect();
|
||
|
n.transition().duration(200).style("opacity", ".9"), n.text(l.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"), n.html(n.html().replace(/<br\/>/g, "<br/>")), l.classed("hover", !0);
|
||
|
}).on("mouseout", function() {
|
||
|
n.transition().duration(500).style("opacity", 0), U(this).classed("hover", !1);
|
||
|
});
|
||
|
};
|
||
|
z.push(Me);
|
||
|
let Ue = "TB";
|
||
|
const kt = () => Ue, Tt = (e) => {
|
||
|
Ue = e;
|
||
|
}, Ft = function(e) {
|
||
|
x[e] === void 0 && (x[e] = {
|
||
|
id: e,
|
||
|
classes: {},
|
||
|
children: {},
|
||
|
domId: ie + e + "-" + Be
|
||
|
}, Be++);
|
||
|
}, yt = function(e) {
|
||
|
return x[e];
|
||
|
}, Dt = function() {
|
||
|
return x;
|
||
|
}, Bt = function(e, n) {
|
||
|
x[e] !== void 0 && n.map((r) => {
|
||
|
f[r].parent = e, x[e].classes[r] = f[r];
|
||
|
});
|
||
|
}, vt = {
|
||
|
setAccTitle: We,
|
||
|
getAccTitle: qe,
|
||
|
getAccDescription: He,
|
||
|
setAccDescription: Je,
|
||
|
getConfig: () => F().class,
|
||
|
addClass: se,
|
||
|
bindFunctions: mt,
|
||
|
clear: it,
|
||
|
getClass: nt,
|
||
|
getClasses: ut,
|
||
|
getNotes: at,
|
||
|
addAnnotation: ct,
|
||
|
addNote: ht,
|
||
|
getRelations: rt,
|
||
|
addRelation: lt,
|
||
|
getDirection: kt,
|
||
|
setDirection: Tt,
|
||
|
addMember: Ge,
|
||
|
addMembers: ot,
|
||
|
cleanupLabel: At,
|
||
|
lineType: bt,
|
||
|
relationType: gt,
|
||
|
setClickEvent: Et,
|
||
|
setCssClass: Se,
|
||
|
setLink: dt,
|
||
|
getTooltip: ft,
|
||
|
setTooltip: pt,
|
||
|
lookUpDomId: Ve,
|
||
|
setDiagramTitle: Ze,
|
||
|
getDiagramTitle: $e,
|
||
|
setClassLabel: st,
|
||
|
addNamespace: Ft,
|
||
|
addClassesToNamespace: Bt,
|
||
|
getNamespace: yt,
|
||
|
getNamespaces: Dt
|
||
|
}, _t = (e) => `g.classGroup text {
|
||
|
fill: ${e.nodeBorder};
|
||
|
fill: ${e.classText};
|
||
|
stroke: none;
|
||
|
font-family: ${e.fontFamily};
|
||
|
font-size: 10px;
|
||
|
|
||
|
.title {
|
||
|
font-weight: bolder;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
.nodeLabel, .edgeLabel {
|
||
|
color: ${e.classText};
|
||
|
}
|
||
|
.edgeLabel .label rect {
|
||
|
fill: ${e.mainBkg};
|
||
|
}
|
||
|
.label text {
|
||
|
fill: ${e.classText};
|
||
|
}
|
||
|
.edgeLabel .label span {
|
||
|
background: ${e.mainBkg};
|
||
|
}
|
||
|
|
||
|
.classTitle {
|
||
|
font-weight: bolder;
|
||
|
}
|
||
|
.node rect,
|
||
|
.node circle,
|
||
|
.node ellipse,
|
||
|
.node polygon,
|
||
|
.node path {
|
||
|
fill: ${e.mainBkg};
|
||
|
stroke: ${e.nodeBorder};
|
||
|
stroke-width: 1px;
|
||
|
}
|
||
|
|
||
|
|
||
|
.divider {
|
||
|
stroke: ${e.nodeBorder};
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
g.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
g.classGroup rect {
|
||
|
fill: ${e.mainBkg};
|
||
|
stroke: ${e.nodeBorder};
|
||
|
}
|
||
|
|
||
|
g.classGroup line {
|
||
|
stroke: ${e.nodeBorder};
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
.classLabel .box {
|
||
|
stroke: none;
|
||
|
stroke-width: 0;
|
||
|
fill: ${e.mainBkg};
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
|
||
|
.classLabel .label {
|
||
|
fill: ${e.nodeBorder};
|
||
|
font-size: 10px;
|
||
|
}
|
||
|
|
||
|
.relation {
|
||
|
stroke: ${e.lineColor};
|
||
|
stroke-width: 1;
|
||
|
fill: none;
|
||
|
}
|
||
|
|
||
|
.dashed-line{
|
||
|
stroke-dasharray: 3;
|
||
|
}
|
||
|
|
||
|
.dotted-line{
|
||
|
stroke-dasharray: 1 2;
|
||
|
}
|
||
|
|
||
|
#compositionStart, .composition {
|
||
|
fill: ${e.lineColor} !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#compositionEnd, .composition {
|
||
|
fill: ${e.lineColor} !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#dependencyStart, .dependency {
|
||
|
fill: ${e.lineColor} !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#dependencyStart, .dependency {
|
||
|
fill: ${e.lineColor} !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#extensionStart, .extension {
|
||
|
fill: transparent !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#extensionEnd, .extension {
|
||
|
fill: transparent !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#aggregationStart, .aggregation {
|
||
|
fill: transparent !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#aggregationEnd, .aggregation {
|
||
|
fill: transparent !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#lollipopStart, .lollipop {
|
||
|
fill: ${e.mainBkg} !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
#lollipopEnd, .lollipop {
|
||
|
fill: ${e.mainBkg} !important;
|
||
|
stroke: ${e.lineColor} !important;
|
||
|
stroke-width: 1;
|
||
|
}
|
||
|
|
||
|
.edgeTerminals {
|
||
|
font-size: 11px;
|
||
|
}
|
||
|
|
||
|
.classTitleText {
|
||
|
text-anchor: middle;
|
||
|
font-size: 18px;
|
||
|
fill: ${e.textColor};
|
||
|
}
|
||
|
`, Lt = _t;
|
||
|
export {
|
||
|
vt as d,
|
||
|
Nt as p,
|
||
|
Lt as s
|
||
|
};
|