@life-exe/wiki-engine 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +180 -0
- package/dist/analytics/index.d.ts +10 -0
- package/dist/chunks/abnfDiagram-VCTEODGH-DyAP6Aua.js +87 -0
- package/dist/chunks/arc-OroUeRL_.js +83 -0
- package/dist/chunks/architectureDiagram-5GKGNRK7-FjmrDCl4.js +4784 -0
- package/dist/chunks/blockDiagram-I7D4REHJ-BF3oIDlI.js +1416 -0
- package/dist/chunks/c4Diagram-7LVT6UL2-Cmdq0LZr.js +1511 -0
- package/dist/chunks/channel-Bdy1QZHo.js +5 -0
- package/dist/chunks/chunk-2Q5K7J3B-BwxRSEKd.js +15 -0
- package/dist/chunks/chunk-5VM5RSS4-BtHwUU4T.js +19 -0
- package/dist/chunks/chunk-F27PBJKO-DF4TGftR.js +68 -0
- package/dist/chunks/chunk-IMKFNOWR-DkBQ-1aV.js +1421 -0
- package/dist/chunks/chunk-JWPE2WC7-BIokdAUW.js +9 -0
- package/dist/chunks/chunk-POPQ4Y6H-CcjOsf9X.js +20 -0
- package/dist/chunks/chunk-SHT3W25Y-lYp5BdEg.js +1695 -0
- package/dist/chunks/chunk-SVP7TREG-DN-ravNt.js +664 -0
- package/dist/chunks/chunk-TICWLB2K-CtTJ0xaY.js +1534 -0
- package/dist/chunks/chunk-XXDRQBXY-BovkWFC0.js +8 -0
- package/dist/chunks/classDiagram-ZZMXUADV-CMYS0pHw.js +16 -0
- package/dist/chunks/classDiagram-v2-VYDZK3BY-CMYS0pHw.js +16 -0
- package/dist/chunks/common-BJ4q25wy.js +12633 -0
- package/dist/chunks/cose-bilkent-JH36ORCC-CaMqpJY7.js +2608 -0
- package/dist/chunks/cynefin-OW5HDTMX-Bzjecpt-.js +23853 -0
- package/dist/chunks/cynefinDiagram-5FMLGOSQ-C0NuKLt0.js +299 -0
- package/dist/chunks/cytoscape.esm-DmPrb1GM.js +18787 -0
- package/dist/chunks/dagre-GXQ25YYZ-Ds09_NdN.js +461 -0
- package/dist/chunks/defaultLocale-BgPVtth8.js +171 -0
- package/dist/chunks/diagram-S7CK7UJ4-IvSazk1O.js +349 -0
- package/dist/chunks/diagram-UQ7AKVKN-58epdx5V.js +223 -0
- package/dist/chunks/diagram-VSXAHHWV-BrzRGMeV.js +466 -0
- package/dist/chunks/diagram-VX7I27RA-DPL0Nw6d.js +530 -0
- package/dist/chunks/diagram-Z3DM3KII-8VWVu0I5.js +143 -0
- package/dist/chunks/ebnfDiagram-PWID7BFC-DeByR_ze.js +109 -0
- package/dist/chunks/erDiagram-RLTQ6QDP-C9uo9iE1.js +1060 -0
- package/dist/chunks/flowDiagram-HODETNUW-BpoY3OMp.js +7 -0
- package/dist/chunks/ganttDiagram-EL5Y4UJY-psdwnC-T.js +2711 -0
- package/dist/chunks/gitGraphDiagram-WWUBYQGX-vsDfkn_Q.js +828 -0
- package/dist/chunks/index-f7Uzykhj.js +38262 -0
- package/dist/chunks/infoDiagram-27XIBGKW-8K-eQZiU.js +24 -0
- package/dist/chunks/init-DjUOC4st.js +16 -0
- package/dist/chunks/ishikawaDiagram-5VMMS53U-CuqR1k5i.js +622 -0
- package/dist/chunks/journeyDiagram-3NMN7TZE-BPW1nmwZ.js +834 -0
- package/dist/chunks/kanban-definition-UXKFOSKX-iY6-d6jO.js +726 -0
- package/dist/chunks/katex-jHfnQmlp.js +11682 -0
- package/dist/chunks/layout-CgV9vOdp.js +1704 -0
- package/dist/chunks/linear-BzcaSMTS.js +259 -0
- package/dist/chunks/mindmap-definition-YA3MSWOX-CaLfHyv0.js +831 -0
- package/dist/chunks/ordinal-DfAQgscy.js +61 -0
- package/dist/chunks/pegDiagram-XKGWAZYB-6Y28VvVh.js +95 -0
- package/dist/chunks/pieDiagram-E7YTZNPT-OrjeRxhs.js +209 -0
- package/dist/chunks/quadrantDiagram-AXDQQJYC-rgw2lV2J.js +1025 -0
- package/dist/chunks/railroadDiagram-O6MQD6OU-D6QNO5r1.js +77 -0
- package/dist/chunks/requirementDiagram-BXWQKSXE-a8tNRSuE.js +884 -0
- package/dist/chunks/sankeyDiagram-P5KCCOFB-CdaC8rLw.js +847 -0
- package/dist/chunks/sequenceDiagram-WJ2MYXX4-CGLi38Hj.js +2898 -0
- package/dist/chunks/sizeCapture-INFHLROL-g5RJXnik.js +47 -0
- package/dist/chunks/stateDiagram-D77RDMKH-Cou0eVl1.js +262 -0
- package/dist/chunks/stateDiagram-v2-MP3YSRHH-BHQspnUg.js +16 -0
- package/dist/chunks/swimlanes-42K2YHIH-BU7S1WgJ.js +5239 -0
- package/dist/chunks/swimlanesDiagram-VR7AAH4N-BsEplbno.js +13 -0
- package/dist/chunks/timeline-definition-24CTP7MA-BB-IyxWL.js +1066 -0
- package/dist/chunks/vennDiagram-4TSXK5OY-BToYolPI.js +1585 -0
- package/dist/chunks/wardleyDiagram-VM6X3IG4-BgoueOw_.js +684 -0
- package/dist/chunks/xychartDiagram-S5SC5T6Z-CF0fWv-W.js +1492 -0
- package/dist/components/CodeBlock.d.ts +5 -0
- package/dist/components/CommunityLinks.d.ts +21 -0
- package/dist/components/CookieConsent.d.ts +2 -0
- package/dist/components/DocLinkCard.d.ts +6 -0
- package/dist/components/LecturePageView.d.ts +3 -0
- package/dist/components/MermaidDiagram.d.ts +3 -0
- package/dist/components/SearchPopup.d.ts +6 -0
- package/dist/components/WikiApp.d.ts +9 -0
- package/dist/components/WikiLayout.d.ts +2 -0
- package/dist/components/WikiPageView.d.ts +6 -0
- package/dist/components/ZoomableImage.d.ts +2 -0
- package/dist/context/LangContext.d.ts +2 -0
- package/dist/context/WikiContext.d.ts +18 -0
- package/dist/data.d.ts +8 -0
- package/dist/hooks/useLanguage.d.ts +4 -0
- package/dist/hooks/useTheme.d.ts +5 -0
- package/dist/hooks/useWiki.d.ts +2 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +45 -0
- package/dist/languages/ue-cpp.d.ts +7 -0
- package/dist/languages/ue-cpp.js +21 -0
- package/dist/types.d.ts +119 -0
- package/dist/wiki-engine.css +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,1511 @@
|
|
|
1
|
+
import { d as Le } from "./chunk-F27PBJKO-DF4TGftR.js";
|
|
2
|
+
import { s as Ie, g as Me, a as Be, b as Ve, _ as d, c as wt, l as he, d as Ye, e as Fe, f as Dt, h as Ue, i as be, j as Jt, w as je, k as $t, m as de } from "./index-f7Uzykhj.js";
|
|
3
|
+
var Ut = (function() {
|
|
4
|
+
var t = /* @__PURE__ */ d(function(yt, g, x, E) {
|
|
5
|
+
for (x = x || {}, E = yt.length; E--; x[yt[E]] = g) ;
|
|
6
|
+
return x;
|
|
7
|
+
}, "o"), e = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], a = [1, 28], n = [1, 63], u = [1, 64], r = [1, 65], h = [1, 66], y = [1, 67], f = [1, 68], b = [1, 69], v = [1, 29], w = [1, 30], N = [1, 31], O = [1, 32], P = [1, 33], I = [1, 34], W = [1, 35], X = [1, 36], q = [1, 37], H = [1, 38], Q = [1, 39], K = [1, 40], G = [1, 41], J = [1, 42], Z = [1, 43], $ = [1, 44], tt = [1, 45], et = [1, 46], nt = [1, 47], st = [1, 48], rt = [1, 50], at = [1, 51], it = [1, 52], ot = [1, 53], lt = [1, 54], ct = [1, 55], ut = [1, 56], ht = [1, 57], dt = [1, 58], pt = [1, 59], ft = [1, 60], kt = [14, 42], Wt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Ot = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], S = [1, 82], k = [1, 83], T = [1, 84], C = [1, 85], R = [12, 14, 42], ie = [12, 14, 33, 42], Mt = [12, 14, 33, 42, 76, 77, 79, 80], mt = [12, 33], Xt = [34, 36, 37, 38, 39, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], qt = {
|
|
8
|
+
trace: /* @__PURE__ */ d(function() {
|
|
9
|
+
}, "trace"),
|
|
10
|
+
yy: {},
|
|
11
|
+
symbols_: { error: 2, start: 3, mermaidDoc: 4, direction: 5, direction_tb: 6, direction_bt: 7, direction_rl: 8, direction_lr: 9, graphConfig: 10, C4_CONTEXT: 11, NEWLINE: 12, statements: 13, EOF: 14, C4_CONTAINER: 15, C4_COMPONENT: 16, C4_DYNAMIC: 17, C4_DEPLOYMENT: 18, otherStatements: 19, diagramStatements: 20, otherStatement: 21, title: 22, accDescription: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, boundaryStatement: 29, boundaryStartStatement: 30, boundaryStopStatement: 31, boundaryStart: 32, LBRACE: 33, ENTERPRISE_BOUNDARY: 34, attributes: 35, SYSTEM_BOUNDARY: 36, BOUNDARY: 37, CONTAINER_BOUNDARY: 38, NODE: 39, NODE_L: 40, NODE_R: 41, RBRACE: 42, diagramStatement: 43, PERSON: 44, PERSON_EXT: 45, SYSTEM: 46, SYSTEM_DB: 47, SYSTEM_QUEUE: 48, SYSTEM_EXT: 49, SYSTEM_EXT_DB: 50, SYSTEM_EXT_QUEUE: 51, CONTAINER: 52, CONTAINER_DB: 53, CONTAINER_QUEUE: 54, CONTAINER_EXT: 55, CONTAINER_EXT_DB: 56, CONTAINER_EXT_QUEUE: 57, COMPONENT: 58, COMPONENT_DB: 59, COMPONENT_QUEUE: 60, COMPONENT_EXT: 61, COMPONENT_EXT_DB: 62, COMPONENT_EXT_QUEUE: 63, REL: 64, BIREL: 65, REL_U: 66, REL_D: 67, REL_L: 68, REL_R: 69, REL_B: 70, REL_INDEX: 71, UPDATE_EL_STYLE: 72, UPDATE_REL_STYLE: 73, UPDATE_LAYOUT_CONFIG: 74, attribute: 75, STR: 76, STR_KEY: 77, STR_VALUE: 78, ATTRIBUTE: 79, ATTRIBUTE_EMPTY: 80, $accept: 0, $end: 1 },
|
|
12
|
+
terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" },
|
|
13
|
+
productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]],
|
|
14
|
+
performAction: /* @__PURE__ */ d(function(g, x, E, _, D, i, Pt) {
|
|
15
|
+
var p = i.length - 1;
|
|
16
|
+
switch (D) {
|
|
17
|
+
case 3:
|
|
18
|
+
_.setDirection("TB");
|
|
19
|
+
break;
|
|
20
|
+
case 4:
|
|
21
|
+
_.setDirection("BT");
|
|
22
|
+
break;
|
|
23
|
+
case 5:
|
|
24
|
+
_.setDirection("RL");
|
|
25
|
+
break;
|
|
26
|
+
case 6:
|
|
27
|
+
_.setDirection("LR");
|
|
28
|
+
break;
|
|
29
|
+
case 8:
|
|
30
|
+
case 9:
|
|
31
|
+
case 10:
|
|
32
|
+
case 11:
|
|
33
|
+
case 12:
|
|
34
|
+
_.setC4Type(i[p - 3]);
|
|
35
|
+
break;
|
|
36
|
+
case 19:
|
|
37
|
+
_.setTitle(i[p].substring(6)), this.$ = i[p].substring(6);
|
|
38
|
+
break;
|
|
39
|
+
case 20:
|
|
40
|
+
_.setAccDescription(i[p].substring(15)), this.$ = i[p].substring(15);
|
|
41
|
+
break;
|
|
42
|
+
case 21:
|
|
43
|
+
this.$ = i[p].trim(), _.setTitle(this.$);
|
|
44
|
+
break;
|
|
45
|
+
case 22:
|
|
46
|
+
case 23:
|
|
47
|
+
this.$ = i[p].trim(), _.setAccDescription(this.$);
|
|
48
|
+
break;
|
|
49
|
+
case 28:
|
|
50
|
+
i[p].splice(2, 0, "ENTERPRISE"), _.addPersonOrSystemBoundary(...i[p]), this.$ = i[p];
|
|
51
|
+
break;
|
|
52
|
+
case 29:
|
|
53
|
+
i[p].splice(2, 0, "SYSTEM"), _.addPersonOrSystemBoundary(...i[p]), this.$ = i[p];
|
|
54
|
+
break;
|
|
55
|
+
case 30:
|
|
56
|
+
_.addPersonOrSystemBoundary(...i[p]), this.$ = i[p];
|
|
57
|
+
break;
|
|
58
|
+
case 31:
|
|
59
|
+
i[p].splice(2, 0, "CONTAINER"), _.addContainerBoundary(...i[p]), this.$ = i[p];
|
|
60
|
+
break;
|
|
61
|
+
case 32:
|
|
62
|
+
_.addDeploymentNode("node", ...i[p]), this.$ = i[p];
|
|
63
|
+
break;
|
|
64
|
+
case 33:
|
|
65
|
+
_.addDeploymentNode("nodeL", ...i[p]), this.$ = i[p];
|
|
66
|
+
break;
|
|
67
|
+
case 34:
|
|
68
|
+
_.addDeploymentNode("nodeR", ...i[p]), this.$ = i[p];
|
|
69
|
+
break;
|
|
70
|
+
case 35:
|
|
71
|
+
_.popBoundaryParseStack();
|
|
72
|
+
break;
|
|
73
|
+
case 39:
|
|
74
|
+
_.addPersonOrSystem("person", ...i[p]), this.$ = i[p];
|
|
75
|
+
break;
|
|
76
|
+
case 40:
|
|
77
|
+
_.addPersonOrSystem("external_person", ...i[p]), this.$ = i[p];
|
|
78
|
+
break;
|
|
79
|
+
case 41:
|
|
80
|
+
_.addPersonOrSystem("system", ...i[p]), this.$ = i[p];
|
|
81
|
+
break;
|
|
82
|
+
case 42:
|
|
83
|
+
_.addPersonOrSystem("system_db", ...i[p]), this.$ = i[p];
|
|
84
|
+
break;
|
|
85
|
+
case 43:
|
|
86
|
+
_.addPersonOrSystem("system_queue", ...i[p]), this.$ = i[p];
|
|
87
|
+
break;
|
|
88
|
+
case 44:
|
|
89
|
+
_.addPersonOrSystem("external_system", ...i[p]), this.$ = i[p];
|
|
90
|
+
break;
|
|
91
|
+
case 45:
|
|
92
|
+
_.addPersonOrSystem("external_system_db", ...i[p]), this.$ = i[p];
|
|
93
|
+
break;
|
|
94
|
+
case 46:
|
|
95
|
+
_.addPersonOrSystem("external_system_queue", ...i[p]), this.$ = i[p];
|
|
96
|
+
break;
|
|
97
|
+
case 47:
|
|
98
|
+
_.addContainer("container", ...i[p]), this.$ = i[p];
|
|
99
|
+
break;
|
|
100
|
+
case 48:
|
|
101
|
+
_.addContainer("container_db", ...i[p]), this.$ = i[p];
|
|
102
|
+
break;
|
|
103
|
+
case 49:
|
|
104
|
+
_.addContainer("container_queue", ...i[p]), this.$ = i[p];
|
|
105
|
+
break;
|
|
106
|
+
case 50:
|
|
107
|
+
_.addContainer("external_container", ...i[p]), this.$ = i[p];
|
|
108
|
+
break;
|
|
109
|
+
case 51:
|
|
110
|
+
_.addContainer("external_container_db", ...i[p]), this.$ = i[p];
|
|
111
|
+
break;
|
|
112
|
+
case 52:
|
|
113
|
+
_.addContainer("external_container_queue", ...i[p]), this.$ = i[p];
|
|
114
|
+
break;
|
|
115
|
+
case 53:
|
|
116
|
+
_.addComponent("component", ...i[p]), this.$ = i[p];
|
|
117
|
+
break;
|
|
118
|
+
case 54:
|
|
119
|
+
_.addComponent("component_db", ...i[p]), this.$ = i[p];
|
|
120
|
+
break;
|
|
121
|
+
case 55:
|
|
122
|
+
_.addComponent("component_queue", ...i[p]), this.$ = i[p];
|
|
123
|
+
break;
|
|
124
|
+
case 56:
|
|
125
|
+
_.addComponent("external_component", ...i[p]), this.$ = i[p];
|
|
126
|
+
break;
|
|
127
|
+
case 57:
|
|
128
|
+
_.addComponent("external_component_db", ...i[p]), this.$ = i[p];
|
|
129
|
+
break;
|
|
130
|
+
case 58:
|
|
131
|
+
_.addComponent("external_component_queue", ...i[p]), this.$ = i[p];
|
|
132
|
+
break;
|
|
133
|
+
case 60:
|
|
134
|
+
_.addRel("rel", ...i[p]), this.$ = i[p];
|
|
135
|
+
break;
|
|
136
|
+
case 61:
|
|
137
|
+
_.addRel("birel", ...i[p]), this.$ = i[p];
|
|
138
|
+
break;
|
|
139
|
+
case 62:
|
|
140
|
+
_.addRel("rel_u", ...i[p]), this.$ = i[p];
|
|
141
|
+
break;
|
|
142
|
+
case 63:
|
|
143
|
+
_.addRel("rel_d", ...i[p]), this.$ = i[p];
|
|
144
|
+
break;
|
|
145
|
+
case 64:
|
|
146
|
+
_.addRel("rel_l", ...i[p]), this.$ = i[p];
|
|
147
|
+
break;
|
|
148
|
+
case 65:
|
|
149
|
+
_.addRel("rel_r", ...i[p]), this.$ = i[p];
|
|
150
|
+
break;
|
|
151
|
+
case 66:
|
|
152
|
+
_.addRel("rel_b", ...i[p]), this.$ = i[p];
|
|
153
|
+
break;
|
|
154
|
+
case 67:
|
|
155
|
+
i[p].splice(0, 1), _.addRel("rel", ...i[p]), this.$ = i[p];
|
|
156
|
+
break;
|
|
157
|
+
case 68:
|
|
158
|
+
_.updateElStyle("update_el_style", ...i[p]), this.$ = i[p];
|
|
159
|
+
break;
|
|
160
|
+
case 69:
|
|
161
|
+
_.updateRelStyle("update_rel_style", ...i[p]), this.$ = i[p];
|
|
162
|
+
break;
|
|
163
|
+
case 70:
|
|
164
|
+
_.updateLayoutConfig("update_layout_config", ...i[p]), this.$ = i[p];
|
|
165
|
+
break;
|
|
166
|
+
case 71:
|
|
167
|
+
this.$ = [i[p]];
|
|
168
|
+
break;
|
|
169
|
+
case 72:
|
|
170
|
+
i[p].unshift(i[p - 1]), this.$ = i[p];
|
|
171
|
+
break;
|
|
172
|
+
case 73:
|
|
173
|
+
case 75:
|
|
174
|
+
this.$ = i[p].trim();
|
|
175
|
+
break;
|
|
176
|
+
case 74:
|
|
177
|
+
let xt = {};
|
|
178
|
+
xt[i[p - 1].trim()] = i[p].trim(), this.$ = xt;
|
|
179
|
+
break;
|
|
180
|
+
case 76:
|
|
181
|
+
this.$ = "";
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}, "anonymous"),
|
|
185
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: e, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 43: 23, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: e, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 43: 23, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: e, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 43: 23, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: e, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 43: 23, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: e, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 43: 23, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }, { 14: [1, 74] }, t(kt, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }), t(kt, [2, 14]), t(Wt, [2, 16], { 12: [1, 76] }), t(kt, [2, 36], { 12: [1, 77] }), t(Ot, [2, 19]), t(Ot, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, t(Ot, [2, 23]), { 35: 80, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 86, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 87, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 88, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 89, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 90, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 91, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 92, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 93, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 94, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 95, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 96, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 97, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 98, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 99, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 100, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 101, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 102, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 103, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 104, 75: 81, 76: S, 77: k, 79: T, 80: C }, t(R, [2, 59]), { 35: 105, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 106, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 107, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 108, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 109, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 110, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 111, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 112, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 113, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 114, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 115, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 43: 23, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 120, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 121, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 122, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 123, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 124, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 35: 125, 75: 81, 76: S, 77: k, 79: T, 80: C }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, t(kt, [2, 15]), t(Wt, [2, 17], { 21: 22, 19: 130, 22: e, 23: s, 24: o, 26: l, 28: a }), t(kt, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: e, 23: s, 24: o, 26: l, 28: a, 34: n, 36: u, 37: r, 38: h, 39: y, 40: f, 41: b, 44: v, 45: w, 46: N, 47: O, 48: P, 49: I, 50: W, 51: X, 52: q, 53: H, 54: Q, 55: K, 56: G, 57: J, 58: Z, 59: $, 60: tt, 61: et, 62: nt, 63: st, 64: rt, 65: at, 66: it, 67: ot, 68: lt, 69: ct, 70: ut, 71: ht, 72: dt, 73: pt, 74: ft }), t(Ot, [2, 21]), t(Ot, [2, 22]), t(R, [2, 39]), t(ie, [2, 71], { 75: 81, 35: 132, 76: S, 77: k, 79: T, 80: C }), t(Mt, [2, 73]), { 78: [1, 133] }, t(Mt, [2, 75]), t(Mt, [2, 76]), t(R, [2, 40]), t(R, [2, 41]), t(R, [2, 42]), t(R, [2, 43]), t(R, [2, 44]), t(R, [2, 45]), t(R, [2, 46]), t(R, [2, 47]), t(R, [2, 48]), t(R, [2, 49]), t(R, [2, 50]), t(R, [2, 51]), t(R, [2, 52]), t(R, [2, 53]), t(R, [2, 54]), t(R, [2, 55]), t(R, [2, 56]), t(R, [2, 57]), t(R, [2, 58]), t(R, [2, 60]), t(R, [2, 61]), t(R, [2, 62]), t(R, [2, 63]), t(R, [2, 64]), t(R, [2, 65]), t(R, [2, 66]), t(R, [2, 67]), t(R, [2, 68]), t(R, [2, 69]), t(R, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, t(mt, [2, 28]), t(mt, [2, 29]), t(mt, [2, 30]), t(mt, [2, 31]), t(mt, [2, 32]), t(mt, [2, 33]), t(mt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, t(Wt, [2, 18]), t(kt, [2, 38]), t(ie, [2, 72]), t(Mt, [2, 74]), t(R, [2, 24]), t(R, [2, 35]), t(Xt, [2, 25]), t(Xt, [2, 26], { 12: [1, 138] }), t(Xt, [2, 27])],
|
|
186
|
+
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] },
|
|
187
|
+
parseError: /* @__PURE__ */ d(function(g, x) {
|
|
188
|
+
if (x.recoverable)
|
|
189
|
+
this.trace(g);
|
|
190
|
+
else {
|
|
191
|
+
var E = new Error(g);
|
|
192
|
+
throw E.hash = x, E;
|
|
193
|
+
}
|
|
194
|
+
}, "parseError"),
|
|
195
|
+
parse: /* @__PURE__ */ d(function(g) {
|
|
196
|
+
var x = this, E = [0], _ = [], D = [null], i = [], Pt = this.table, p = "", xt = 0, oe = 0, Pe = 2, le = 1, De = i.slice.call(arguments, 1), A = Object.create(this.lexer), vt = { yy: {} };
|
|
197
|
+
for (var Ht in this.yy)
|
|
198
|
+
Object.prototype.hasOwnProperty.call(this.yy, Ht) && (vt.yy[Ht] = this.yy[Ht]);
|
|
199
|
+
A.setInput(g, vt.yy), vt.yy.lexer = A, vt.yy.parser = this, typeof A.yylloc > "u" && (A.yylloc = {});
|
|
200
|
+
var Qt = A.yylloc;
|
|
201
|
+
i.push(Qt);
|
|
202
|
+
var Ne = A.options && A.options.ranges;
|
|
203
|
+
typeof vt.yy.parseError == "function" ? this.parseError = vt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
204
|
+
function Ae(B) {
|
|
205
|
+
E.length = E.length - 2 * B, D.length = D.length - B, i.length = i.length - B;
|
|
206
|
+
}
|
|
207
|
+
d(Ae, "popStack");
|
|
208
|
+
function ce() {
|
|
209
|
+
var B;
|
|
210
|
+
return B = _.pop() || A.lex() || le, typeof B != "number" && (B instanceof Array && (_ = B, B = _.pop()), B = x.symbols_[B] || B), B;
|
|
211
|
+
}
|
|
212
|
+
d(ce, "lex");
|
|
213
|
+
for (var M, Et, V, Kt, Tt = {}, Vt, j, ue, Yt; ; ) {
|
|
214
|
+
if (Et = E[E.length - 1], this.defaultActions[Et] ? V = this.defaultActions[Et] : ((M === null || typeof M > "u") && (M = ce()), V = Pt[Et] && Pt[Et][M]), typeof V > "u" || !V.length || !V[0]) {
|
|
215
|
+
var Gt = "";
|
|
216
|
+
Yt = [];
|
|
217
|
+
for (Vt in Pt[Et])
|
|
218
|
+
this.terminals_[Vt] && Vt > Pe && Yt.push("'" + this.terminals_[Vt] + "'");
|
|
219
|
+
A.showPosition ? Gt = "Parse error on line " + (xt + 1) + `:
|
|
220
|
+
` + A.showPosition() + `
|
|
221
|
+
Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt = "Parse error on line " + (xt + 1) + ": Unexpected " + (M == le ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(Gt, {
|
|
222
|
+
text: A.match,
|
|
223
|
+
token: this.terminals_[M] || M,
|
|
224
|
+
line: A.yylineno,
|
|
225
|
+
loc: Qt,
|
|
226
|
+
expected: Yt
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
if (V[0] instanceof Array && V.length > 1)
|
|
230
|
+
throw new Error("Parse Error: multiple actions possible at state: " + Et + ", token: " + M);
|
|
231
|
+
switch (V[0]) {
|
|
232
|
+
case 1:
|
|
233
|
+
E.push(M), D.push(A.yytext), i.push(A.yylloc), E.push(V[1]), M = null, oe = A.yyleng, p = A.yytext, xt = A.yylineno, Qt = A.yylloc;
|
|
234
|
+
break;
|
|
235
|
+
case 2:
|
|
236
|
+
if (j = this.productions_[V[1]][1], Tt.$ = D[D.length - j], Tt._$ = {
|
|
237
|
+
first_line: i[i.length - (j || 1)].first_line,
|
|
238
|
+
last_line: i[i.length - 1].last_line,
|
|
239
|
+
first_column: i[i.length - (j || 1)].first_column,
|
|
240
|
+
last_column: i[i.length - 1].last_column
|
|
241
|
+
}, Ne && (Tt._$.range = [
|
|
242
|
+
i[i.length - (j || 1)].range[0],
|
|
243
|
+
i[i.length - 1].range[1]
|
|
244
|
+
]), Kt = this.performAction.apply(Tt, [
|
|
245
|
+
p,
|
|
246
|
+
oe,
|
|
247
|
+
xt,
|
|
248
|
+
vt.yy,
|
|
249
|
+
V[1],
|
|
250
|
+
D,
|
|
251
|
+
i
|
|
252
|
+
].concat(De)), typeof Kt < "u")
|
|
253
|
+
return Kt;
|
|
254
|
+
j && (E = E.slice(0, -1 * j * 2), D = D.slice(0, -1 * j), i = i.slice(0, -1 * j)), E.push(this.productions_[V[1]][0]), D.push(Tt.$), i.push(Tt._$), ue = Pt[E[E.length - 2]][E[E.length - 1]], E.push(ue);
|
|
255
|
+
break;
|
|
256
|
+
case 3:
|
|
257
|
+
return !0;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return !0;
|
|
261
|
+
}, "parse")
|
|
262
|
+
}, Oe = /* @__PURE__ */ (function() {
|
|
263
|
+
var yt = {
|
|
264
|
+
EOF: 1,
|
|
265
|
+
parseError: /* @__PURE__ */ d(function(x, E) {
|
|
266
|
+
if (this.yy.parser)
|
|
267
|
+
this.yy.parser.parseError(x, E);
|
|
268
|
+
else
|
|
269
|
+
throw new Error(x);
|
|
270
|
+
}, "parseError"),
|
|
271
|
+
// resets the lexer, sets new input
|
|
272
|
+
setInput: /* @__PURE__ */ d(function(g, x) {
|
|
273
|
+
return this.yy = x || this.yy || {}, this._input = g, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
274
|
+
first_line: 1,
|
|
275
|
+
first_column: 0,
|
|
276
|
+
last_line: 1,
|
|
277
|
+
last_column: 0
|
|
278
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
279
|
+
}, "setInput"),
|
|
280
|
+
// consumes and returns one char from the input
|
|
281
|
+
input: /* @__PURE__ */ d(function() {
|
|
282
|
+
var g = this._input[0];
|
|
283
|
+
this.yytext += g, this.yyleng++, this.offset++, this.match += g, this.matched += g;
|
|
284
|
+
var x = g.match(/(?:\r\n?|\n).*/g);
|
|
285
|
+
return x ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), g;
|
|
286
|
+
}, "input"),
|
|
287
|
+
// unshifts one char (or a string) into the input
|
|
288
|
+
unput: /* @__PURE__ */ d(function(g) {
|
|
289
|
+
var x = g.length, E = g.split(/(?:\r\n?|\n)/g);
|
|
290
|
+
this._input = g + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - x), this.offset -= x;
|
|
291
|
+
var _ = this.match.split(/(?:\r\n?|\n)/g);
|
|
292
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), E.length - 1 && (this.yylineno -= E.length - 1);
|
|
293
|
+
var D = this.yylloc.range;
|
|
294
|
+
return this.yylloc = {
|
|
295
|
+
first_line: this.yylloc.first_line,
|
|
296
|
+
last_line: this.yylineno + 1,
|
|
297
|
+
first_column: this.yylloc.first_column,
|
|
298
|
+
last_column: E ? (E.length === _.length ? this.yylloc.first_column : 0) + _[_.length - E.length].length - E[0].length : this.yylloc.first_column - x
|
|
299
|
+
}, this.options.ranges && (this.yylloc.range = [D[0], D[0] + this.yyleng - x]), this.yyleng = this.yytext.length, this;
|
|
300
|
+
}, "unput"),
|
|
301
|
+
// When called from action, caches matched text and appends it on next action
|
|
302
|
+
more: /* @__PURE__ */ d(function() {
|
|
303
|
+
return this._more = !0, this;
|
|
304
|
+
}, "more"),
|
|
305
|
+
// 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.
|
|
306
|
+
reject: /* @__PURE__ */ d(function() {
|
|
307
|
+
if (this.options.backtrack_lexer)
|
|
308
|
+
this._backtrack = !0;
|
|
309
|
+
else
|
|
310
|
+
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).
|
|
311
|
+
` + this.showPosition(), {
|
|
312
|
+
text: "",
|
|
313
|
+
token: null,
|
|
314
|
+
line: this.yylineno
|
|
315
|
+
});
|
|
316
|
+
return this;
|
|
317
|
+
}, "reject"),
|
|
318
|
+
// retain first n characters of the match
|
|
319
|
+
less: /* @__PURE__ */ d(function(g) {
|
|
320
|
+
this.unput(this.match.slice(g));
|
|
321
|
+
}, "less"),
|
|
322
|
+
// displays already matched input, i.e. for error messages
|
|
323
|
+
pastInput: /* @__PURE__ */ d(function() {
|
|
324
|
+
var g = this.matched.substr(0, this.matched.length - this.match.length);
|
|
325
|
+
return (g.length > 20 ? "..." : "") + g.substr(-20).replace(/\n/g, "");
|
|
326
|
+
}, "pastInput"),
|
|
327
|
+
// displays upcoming input, i.e. for error messages
|
|
328
|
+
upcomingInput: /* @__PURE__ */ d(function() {
|
|
329
|
+
var g = this.match;
|
|
330
|
+
return g.length < 20 && (g += this._input.substr(0, 20 - g.length)), (g.substr(0, 20) + (g.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
331
|
+
}, "upcomingInput"),
|
|
332
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
333
|
+
showPosition: /* @__PURE__ */ d(function() {
|
|
334
|
+
var g = this.pastInput(), x = new Array(g.length + 1).join("-");
|
|
335
|
+
return g + this.upcomingInput() + `
|
|
336
|
+
` + x + "^";
|
|
337
|
+
}, "showPosition"),
|
|
338
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
339
|
+
test_match: /* @__PURE__ */ d(function(g, x) {
|
|
340
|
+
var E, _, D;
|
|
341
|
+
if (this.options.backtrack_lexer && (D = {
|
|
342
|
+
yylineno: this.yylineno,
|
|
343
|
+
yylloc: {
|
|
344
|
+
first_line: this.yylloc.first_line,
|
|
345
|
+
last_line: this.last_line,
|
|
346
|
+
first_column: this.yylloc.first_column,
|
|
347
|
+
last_column: this.yylloc.last_column
|
|
348
|
+
},
|
|
349
|
+
yytext: this.yytext,
|
|
350
|
+
match: this.match,
|
|
351
|
+
matches: this.matches,
|
|
352
|
+
matched: this.matched,
|
|
353
|
+
yyleng: this.yyleng,
|
|
354
|
+
offset: this.offset,
|
|
355
|
+
_more: this._more,
|
|
356
|
+
_input: this._input,
|
|
357
|
+
yy: this.yy,
|
|
358
|
+
conditionStack: this.conditionStack.slice(0),
|
|
359
|
+
done: this.done
|
|
360
|
+
}, this.options.ranges && (D.yylloc.range = this.yylloc.range.slice(0))), _ = g[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
|
|
361
|
+
first_line: this.yylloc.last_line,
|
|
362
|
+
last_line: this.yylineno + 1,
|
|
363
|
+
first_column: this.yylloc.last_column,
|
|
364
|
+
last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + g[0].length
|
|
365
|
+
}, this.yytext += g[0], this.match += g[0], this.matches = g, 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(g[0].length), this.matched += g[0], E = this.performAction.call(this, this.yy, this, x, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), E)
|
|
366
|
+
return E;
|
|
367
|
+
if (this._backtrack) {
|
|
368
|
+
for (var i in D)
|
|
369
|
+
this[i] = D[i];
|
|
370
|
+
return !1;
|
|
371
|
+
}
|
|
372
|
+
return !1;
|
|
373
|
+
}, "test_match"),
|
|
374
|
+
// return next match in input
|
|
375
|
+
next: /* @__PURE__ */ d(function() {
|
|
376
|
+
if (this.done)
|
|
377
|
+
return this.EOF;
|
|
378
|
+
this._input || (this.done = !0);
|
|
379
|
+
var g, x, E, _;
|
|
380
|
+
this._more || (this.yytext = "", this.match = "");
|
|
381
|
+
for (var D = this._currentRules(), i = 0; i < D.length; i++)
|
|
382
|
+
if (E = this._input.match(this.rules[D[i]]), E && (!x || E[0].length > x[0].length)) {
|
|
383
|
+
if (x = E, _ = i, this.options.backtrack_lexer) {
|
|
384
|
+
if (g = this.test_match(E, D[i]), g !== !1)
|
|
385
|
+
return g;
|
|
386
|
+
if (this._backtrack) {
|
|
387
|
+
x = !1;
|
|
388
|
+
continue;
|
|
389
|
+
} else
|
|
390
|
+
return !1;
|
|
391
|
+
} else if (!this.options.flex)
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
return x ? (g = this.test_match(x, D[_]), g !== !1 ? g : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
395
|
+
` + this.showPosition(), {
|
|
396
|
+
text: "",
|
|
397
|
+
token: null,
|
|
398
|
+
line: this.yylineno
|
|
399
|
+
});
|
|
400
|
+
}, "next"),
|
|
401
|
+
// return next match that has a token
|
|
402
|
+
lex: /* @__PURE__ */ d(function() {
|
|
403
|
+
var x = this.next();
|
|
404
|
+
return x || this.lex();
|
|
405
|
+
}, "lex"),
|
|
406
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
407
|
+
begin: /* @__PURE__ */ d(function(x) {
|
|
408
|
+
this.conditionStack.push(x);
|
|
409
|
+
}, "begin"),
|
|
410
|
+
// pop the previously active lexer condition state off the condition stack
|
|
411
|
+
popState: /* @__PURE__ */ d(function() {
|
|
412
|
+
var x = this.conditionStack.length - 1;
|
|
413
|
+
return x > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
414
|
+
}, "popState"),
|
|
415
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
416
|
+
_currentRules: /* @__PURE__ */ d(function() {
|
|
417
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
418
|
+
}, "_currentRules"),
|
|
419
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
420
|
+
topState: /* @__PURE__ */ d(function(x) {
|
|
421
|
+
return x = this.conditionStack.length - 1 - Math.abs(x || 0), x >= 0 ? this.conditionStack[x] : "INITIAL";
|
|
422
|
+
}, "topState"),
|
|
423
|
+
// alias for begin(condition)
|
|
424
|
+
pushState: /* @__PURE__ */ d(function(x) {
|
|
425
|
+
this.begin(x);
|
|
426
|
+
}, "pushState"),
|
|
427
|
+
// return the number of states currently on the stack
|
|
428
|
+
stateStackSize: /* @__PURE__ */ d(function() {
|
|
429
|
+
return this.conditionStack.length;
|
|
430
|
+
}, "stateStackSize"),
|
|
431
|
+
options: {},
|
|
432
|
+
performAction: /* @__PURE__ */ d(function(x, E, _, D) {
|
|
433
|
+
switch (_) {
|
|
434
|
+
case 0:
|
|
435
|
+
return 6;
|
|
436
|
+
case 1:
|
|
437
|
+
return 7;
|
|
438
|
+
case 2:
|
|
439
|
+
return 8;
|
|
440
|
+
case 3:
|
|
441
|
+
return 9;
|
|
442
|
+
case 4:
|
|
443
|
+
return 22;
|
|
444
|
+
case 5:
|
|
445
|
+
return 23;
|
|
446
|
+
case 6:
|
|
447
|
+
return this.begin("acc_title"), 24;
|
|
448
|
+
case 7:
|
|
449
|
+
return this.popState(), "acc_title_value";
|
|
450
|
+
case 8:
|
|
451
|
+
return this.begin("acc_descr"), 26;
|
|
452
|
+
case 9:
|
|
453
|
+
return this.popState(), "acc_descr_value";
|
|
454
|
+
case 10:
|
|
455
|
+
this.begin("acc_descr_multiline");
|
|
456
|
+
break;
|
|
457
|
+
case 11:
|
|
458
|
+
this.popState();
|
|
459
|
+
break;
|
|
460
|
+
case 12:
|
|
461
|
+
return "acc_descr_multiline_value";
|
|
462
|
+
case 13:
|
|
463
|
+
break;
|
|
464
|
+
case 14:
|
|
465
|
+
c;
|
|
466
|
+
break;
|
|
467
|
+
case 15:
|
|
468
|
+
return 12;
|
|
469
|
+
case 16:
|
|
470
|
+
break;
|
|
471
|
+
case 17:
|
|
472
|
+
return 11;
|
|
473
|
+
case 18:
|
|
474
|
+
return 15;
|
|
475
|
+
case 19:
|
|
476
|
+
return 16;
|
|
477
|
+
case 20:
|
|
478
|
+
return 17;
|
|
479
|
+
case 21:
|
|
480
|
+
return 18;
|
|
481
|
+
case 22:
|
|
482
|
+
return this.begin("person_ext"), 45;
|
|
483
|
+
case 23:
|
|
484
|
+
return this.begin("person"), 44;
|
|
485
|
+
case 24:
|
|
486
|
+
return this.begin("system_ext_queue"), 51;
|
|
487
|
+
case 25:
|
|
488
|
+
return this.begin("system_ext_db"), 50;
|
|
489
|
+
case 26:
|
|
490
|
+
return this.begin("system_ext"), 49;
|
|
491
|
+
case 27:
|
|
492
|
+
return this.begin("system_queue"), 48;
|
|
493
|
+
case 28:
|
|
494
|
+
return this.begin("system_db"), 47;
|
|
495
|
+
case 29:
|
|
496
|
+
return this.begin("system"), 46;
|
|
497
|
+
case 30:
|
|
498
|
+
return this.begin("boundary"), 37;
|
|
499
|
+
case 31:
|
|
500
|
+
return this.begin("enterprise_boundary"), 34;
|
|
501
|
+
case 32:
|
|
502
|
+
return this.begin("system_boundary"), 36;
|
|
503
|
+
case 33:
|
|
504
|
+
return this.begin("container_ext_queue"), 57;
|
|
505
|
+
case 34:
|
|
506
|
+
return this.begin("container_ext_db"), 56;
|
|
507
|
+
case 35:
|
|
508
|
+
return this.begin("container_ext"), 55;
|
|
509
|
+
case 36:
|
|
510
|
+
return this.begin("container_queue"), 54;
|
|
511
|
+
case 37:
|
|
512
|
+
return this.begin("container_db"), 53;
|
|
513
|
+
case 38:
|
|
514
|
+
return this.begin("container"), 52;
|
|
515
|
+
case 39:
|
|
516
|
+
return this.begin("container_boundary"), 38;
|
|
517
|
+
case 40:
|
|
518
|
+
return this.begin("component_ext_queue"), 63;
|
|
519
|
+
case 41:
|
|
520
|
+
return this.begin("component_ext_db"), 62;
|
|
521
|
+
case 42:
|
|
522
|
+
return this.begin("component_ext"), 61;
|
|
523
|
+
case 43:
|
|
524
|
+
return this.begin("component_queue"), 60;
|
|
525
|
+
case 44:
|
|
526
|
+
return this.begin("component_db"), 59;
|
|
527
|
+
case 45:
|
|
528
|
+
return this.begin("component"), 58;
|
|
529
|
+
case 46:
|
|
530
|
+
return this.begin("node"), 39;
|
|
531
|
+
case 47:
|
|
532
|
+
return this.begin("node"), 39;
|
|
533
|
+
case 48:
|
|
534
|
+
return this.begin("node_l"), 40;
|
|
535
|
+
case 49:
|
|
536
|
+
return this.begin("node_r"), 41;
|
|
537
|
+
case 50:
|
|
538
|
+
return this.begin("rel"), 64;
|
|
539
|
+
case 51:
|
|
540
|
+
return this.begin("birel"), 65;
|
|
541
|
+
case 52:
|
|
542
|
+
return this.begin("rel_u"), 66;
|
|
543
|
+
case 53:
|
|
544
|
+
return this.begin("rel_u"), 66;
|
|
545
|
+
case 54:
|
|
546
|
+
return this.begin("rel_d"), 67;
|
|
547
|
+
case 55:
|
|
548
|
+
return this.begin("rel_d"), 67;
|
|
549
|
+
case 56:
|
|
550
|
+
return this.begin("rel_l"), 68;
|
|
551
|
+
case 57:
|
|
552
|
+
return this.begin("rel_l"), 68;
|
|
553
|
+
case 58:
|
|
554
|
+
return this.begin("rel_r"), 69;
|
|
555
|
+
case 59:
|
|
556
|
+
return this.begin("rel_r"), 69;
|
|
557
|
+
case 60:
|
|
558
|
+
return this.begin("rel_b"), 70;
|
|
559
|
+
case 61:
|
|
560
|
+
return this.begin("rel_index"), 71;
|
|
561
|
+
case 62:
|
|
562
|
+
return this.begin("update_el_style"), 72;
|
|
563
|
+
case 63:
|
|
564
|
+
return this.begin("update_rel_style"), 73;
|
|
565
|
+
case 64:
|
|
566
|
+
return this.begin("update_layout_config"), 74;
|
|
567
|
+
case 65:
|
|
568
|
+
return "EOF_IN_STRUCT";
|
|
569
|
+
case 66:
|
|
570
|
+
return this.begin("attribute"), "ATTRIBUTE_EMPTY";
|
|
571
|
+
case 67:
|
|
572
|
+
this.begin("attribute");
|
|
573
|
+
break;
|
|
574
|
+
case 68:
|
|
575
|
+
this.popState(), this.popState();
|
|
576
|
+
break;
|
|
577
|
+
case 69:
|
|
578
|
+
return 80;
|
|
579
|
+
case 70:
|
|
580
|
+
break;
|
|
581
|
+
case 71:
|
|
582
|
+
return 80;
|
|
583
|
+
case 72:
|
|
584
|
+
this.begin("string");
|
|
585
|
+
break;
|
|
586
|
+
case 73:
|
|
587
|
+
this.popState();
|
|
588
|
+
break;
|
|
589
|
+
case 74:
|
|
590
|
+
return "STR";
|
|
591
|
+
case 75:
|
|
592
|
+
this.begin("string_kv");
|
|
593
|
+
break;
|
|
594
|
+
case 76:
|
|
595
|
+
return this.begin("string_kv_key"), "STR_KEY";
|
|
596
|
+
case 77:
|
|
597
|
+
this.popState(), this.begin("string_kv_value");
|
|
598
|
+
break;
|
|
599
|
+
case 78:
|
|
600
|
+
return "STR_VALUE";
|
|
601
|
+
case 79:
|
|
602
|
+
this.popState(), this.popState();
|
|
603
|
+
break;
|
|
604
|
+
case 80:
|
|
605
|
+
return "STR";
|
|
606
|
+
case 81:
|
|
607
|
+
return "LBRACE";
|
|
608
|
+
case 82:
|
|
609
|
+
return "RBRACE";
|
|
610
|
+
case 83:
|
|
611
|
+
return "SPACE";
|
|
612
|
+
case 84:
|
|
613
|
+
return "EOL";
|
|
614
|
+
case 85:
|
|
615
|
+
return 14;
|
|
616
|
+
}
|
|
617
|
+
}, "anonymous"),
|
|
618
|
+
rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
|
|
619
|
+
conditions: { acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, string_kv_value: { rules: [78, 79], inclusive: !1 }, string_kv_key: { rules: [77], inclusive: !1 }, string_kv: { rules: [76], inclusive: !1 }, string: { rules: [73, 74], inclusive: !1 }, attribute: { rules: [68, 69, 70, 71, 72, 75, 80], inclusive: !1 }, update_layout_config: { rules: [65, 66, 67, 68], inclusive: !1 }, update_rel_style: { rules: [65, 66, 67, 68], inclusive: !1 }, update_el_style: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_b: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_r: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_l: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_d: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_u: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_bi: { rules: [], inclusive: !1 }, rel: { rules: [65, 66, 67, 68], inclusive: !1 }, node_r: { rules: [65, 66, 67, 68], inclusive: !1 }, node_l: { rules: [65, 66, 67, 68], inclusive: !1 }, node: { rules: [65, 66, 67, 68], inclusive: !1 }, index: { rules: [], inclusive: !1 }, rel_index: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, component_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, component_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component: { rules: [65, 66, 67, 68], inclusive: !1 }, container_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, container_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container: { rules: [65, 66, 67, 68], inclusive: !1 }, birel: { rules: [65, 66, 67, 68], inclusive: !1 }, system_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, enterprise_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, system_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system: { rules: [65, 66, 67, 68], inclusive: !1 }, person_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, person: { rules: [65, 66, 67, 68], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 81, 82, 83, 84, 85], inclusive: !0 } }
|
|
620
|
+
};
|
|
621
|
+
return yt;
|
|
622
|
+
})();
|
|
623
|
+
qt.lexer = Oe;
|
|
624
|
+
function Bt() {
|
|
625
|
+
this.yy = {};
|
|
626
|
+
}
|
|
627
|
+
return d(Bt, "Parser"), Bt.prototype = qt, qt.Parser = Bt, new Bt();
|
|
628
|
+
})();
|
|
629
|
+
Ut.parser = Ut;
|
|
630
|
+
var ze = Ut, ge = /* @__PURE__ */ d((t) => wt()[t], "getRequiredConfig"), St = /* @__PURE__ */ d((t, e) => {
|
|
631
|
+
for (const [s, o] of Object.entries(e))
|
|
632
|
+
if (o !== void 0)
|
|
633
|
+
if (typeof o == "object") {
|
|
634
|
+
const [l, a] = Object.entries(o)[0];
|
|
635
|
+
t[l] = a;
|
|
636
|
+
} else
|
|
637
|
+
t[s] = o;
|
|
638
|
+
}, "assignAttributes"), me = /* @__PURE__ */ d(() => ({
|
|
639
|
+
alias: "global",
|
|
640
|
+
label: { text: "global" },
|
|
641
|
+
type: { text: "global" },
|
|
642
|
+
tags: null,
|
|
643
|
+
link: null,
|
|
644
|
+
parentBoundary: ""
|
|
645
|
+
// The layout fields are populated later by the renderer.
|
|
646
|
+
}), "createGlobalBoundary"), F = [], _t = [""], L = "global", Y = "", U = [me()], It = [], se = "", re = !1, jt = 4, zt = 2, xe, We = /* @__PURE__ */ d(function() {
|
|
647
|
+
return xe;
|
|
648
|
+
}, "getC4Type"), Xe = /* @__PURE__ */ d(function(t) {
|
|
649
|
+
xe = be(t, wt());
|
|
650
|
+
}, "setC4Type"), qe = /* @__PURE__ */ d(function(t, e, s, o, l, a, n, u, r) {
|
|
651
|
+
if (t == null || e === void 0 || e === null || s === void 0 || s === null || o === void 0 || o === null)
|
|
652
|
+
return;
|
|
653
|
+
let h = {};
|
|
654
|
+
const y = It.find((f) => f.from === e && f.to === s);
|
|
655
|
+
if (y ? h = y : It.push(h), h.type = t, h.from = e, h.to = s, h.label = { text: o }, l == null)
|
|
656
|
+
h.techn = { text: "" };
|
|
657
|
+
else if (typeof l == "object") {
|
|
658
|
+
const [f, b] = Object.entries(l)[0];
|
|
659
|
+
h[f] = { text: b };
|
|
660
|
+
} else
|
|
661
|
+
h.techn = { text: l };
|
|
662
|
+
if (a == null)
|
|
663
|
+
h.descr = { text: "" };
|
|
664
|
+
else if (typeof a == "object") {
|
|
665
|
+
const [f, b] = Object.entries(a)[0];
|
|
666
|
+
h[f] = { text: b };
|
|
667
|
+
} else
|
|
668
|
+
h.descr = { text: a };
|
|
669
|
+
St(h, { sprite: n, tags: u, link: r }), h.wrap = gt();
|
|
670
|
+
}, "addRel"), He = /* @__PURE__ */ d(function(t, e, s, o, l, a, n) {
|
|
671
|
+
if (e === null || s === null)
|
|
672
|
+
return;
|
|
673
|
+
let u = {};
|
|
674
|
+
const r = F.find((h) => h.alias === e);
|
|
675
|
+
if (r && e === r.alias ? u = r : (u.alias = e, F.push(u)), s == null ? u.label = { text: "" } : u.label = { text: s }, o == null)
|
|
676
|
+
u.descr = { text: "" };
|
|
677
|
+
else if (typeof o == "object") {
|
|
678
|
+
const [h, y] = Object.entries(o)[0];
|
|
679
|
+
u[h] = { text: y };
|
|
680
|
+
} else
|
|
681
|
+
u.descr = { text: o };
|
|
682
|
+
St(u, { sprite: l, tags: a, link: n }), u.typeC4Shape = { text: t }, u.parentBoundary = L, u.wrap = gt();
|
|
683
|
+
}, "addPersonOrSystem"), Qe = /* @__PURE__ */ d(function(t, e, s, o, l, a, n, u) {
|
|
684
|
+
if (e === null || s === null)
|
|
685
|
+
return;
|
|
686
|
+
let r = {};
|
|
687
|
+
const h = F.find((y) => y.alias === e);
|
|
688
|
+
if (h && e === h.alias ? r = h : (r.alias = e, F.push(r)), s == null ? r.label = { text: "" } : r.label = { text: s }, o == null)
|
|
689
|
+
r.techn = { text: "" };
|
|
690
|
+
else if (typeof o == "object") {
|
|
691
|
+
const [y, f] = Object.entries(o)[0];
|
|
692
|
+
r[y] = { text: f };
|
|
693
|
+
} else
|
|
694
|
+
r.techn = { text: o };
|
|
695
|
+
if (l == null)
|
|
696
|
+
r.descr = { text: "" };
|
|
697
|
+
else if (typeof l == "object") {
|
|
698
|
+
const [y, f] = Object.entries(l)[0];
|
|
699
|
+
r[y] = { text: f };
|
|
700
|
+
} else
|
|
701
|
+
r.descr = { text: l };
|
|
702
|
+
St(r, { sprite: a, tags: n, link: u }), r.wrap = gt(), r.typeC4Shape = { text: t }, r.parentBoundary = L;
|
|
703
|
+
}, "addContainer"), Ke = /* @__PURE__ */ d(function(t, e, s, o, l, a, n, u) {
|
|
704
|
+
if (e === null || s === null)
|
|
705
|
+
return;
|
|
706
|
+
let r = {};
|
|
707
|
+
const h = F.find((y) => y.alias === e);
|
|
708
|
+
if (h && e === h.alias ? r = h : (r.alias = e, F.push(r)), s == null ? r.label = { text: "" } : r.label = { text: s }, o == null)
|
|
709
|
+
r.techn = { text: "" };
|
|
710
|
+
else if (typeof o == "object") {
|
|
711
|
+
const [y, f] = Object.entries(o)[0];
|
|
712
|
+
r[y] = { text: f };
|
|
713
|
+
} else
|
|
714
|
+
r.techn = { text: o };
|
|
715
|
+
if (l == null)
|
|
716
|
+
r.descr = { text: "" };
|
|
717
|
+
else if (typeof l == "object") {
|
|
718
|
+
const [y, f] = Object.entries(l)[0];
|
|
719
|
+
r[y] = { text: f };
|
|
720
|
+
} else
|
|
721
|
+
r.descr = { text: l };
|
|
722
|
+
St(r, { sprite: a, tags: n, link: u }), r.wrap = gt(), r.typeC4Shape = { text: t }, r.parentBoundary = L;
|
|
723
|
+
}, "addComponent"), Ge = /* @__PURE__ */ d(function(t, e, s, o, l) {
|
|
724
|
+
if (t === null || e === null)
|
|
725
|
+
return;
|
|
726
|
+
let a = {};
|
|
727
|
+
const n = U.find((u) => u.alias === t);
|
|
728
|
+
if (n && t === n.alias ? a = n : (a.alias = t, U.push(a)), e == null ? a.label = { text: "" } : a.label = { text: e }, s == null)
|
|
729
|
+
a.type = { text: "system" };
|
|
730
|
+
else if (typeof s == "object") {
|
|
731
|
+
const [u, r] = Object.entries(s)[0];
|
|
732
|
+
a[u] = { text: r };
|
|
733
|
+
} else
|
|
734
|
+
a.type = { text: s };
|
|
735
|
+
St(a, { tags: o, link: l }), a.parentBoundary = L, a.wrap = gt(), Y = L, L = t, _t.push(Y);
|
|
736
|
+
}, "addPersonOrSystemBoundary"), Je = /* @__PURE__ */ d(function(t, e, s, o, l) {
|
|
737
|
+
if (t === null || e === null)
|
|
738
|
+
return;
|
|
739
|
+
let a = {};
|
|
740
|
+
const n = U.find((u) => u.alias === t);
|
|
741
|
+
if (n && t === n.alias ? a = n : (a.alias = t, U.push(a)), e == null ? a.label = { text: "" } : a.label = { text: e }, s == null)
|
|
742
|
+
a.type = { text: "container" };
|
|
743
|
+
else if (typeof s == "object") {
|
|
744
|
+
const [u, r] = Object.entries(s)[0];
|
|
745
|
+
a[u] = { text: r };
|
|
746
|
+
} else
|
|
747
|
+
a.type = { text: s };
|
|
748
|
+
St(a, { tags: o, link: l }), a.parentBoundary = L, a.wrap = gt(), Y = L, L = t, _t.push(Y);
|
|
749
|
+
}, "addContainerBoundary"), Ze = /* @__PURE__ */ d(function(t, e, s, o, l, a, n, u) {
|
|
750
|
+
if (e === null || s === null)
|
|
751
|
+
return;
|
|
752
|
+
let r = {};
|
|
753
|
+
const h = U.find((y) => y.alias === e);
|
|
754
|
+
if (h && e === h.alias ? r = h : (r.alias = e, U.push(r)), s == null ? r.label = { text: "" } : r.label = { text: s }, o == null)
|
|
755
|
+
r.type = { text: "node" };
|
|
756
|
+
else if (typeof o == "object") {
|
|
757
|
+
const [y, f] = Object.entries(o)[0];
|
|
758
|
+
r[y] = { text: f };
|
|
759
|
+
} else
|
|
760
|
+
r.type = { text: o };
|
|
761
|
+
if (l == null)
|
|
762
|
+
r.descr = { text: "" };
|
|
763
|
+
else if (typeof l == "object") {
|
|
764
|
+
const [y, f] = Object.entries(l)[0];
|
|
765
|
+
r[y] = { text: f };
|
|
766
|
+
} else
|
|
767
|
+
r.descr = { text: l };
|
|
768
|
+
St(r, { tags: n, link: u }), r.nodeType = t, r.parentBoundary = L, r.wrap = gt(), Y = L, L = e, _t.push(Y);
|
|
769
|
+
}, "addDeploymentNode"), $e = /* @__PURE__ */ d(function() {
|
|
770
|
+
L = Y, _t.pop(), Y = _t.pop(), _t.push(Y);
|
|
771
|
+
}, "popBoundaryParseStack"), t0 = /* @__PURE__ */ d(function(t, e, s, o, l, a, n, u, r, h, y) {
|
|
772
|
+
let f = F.find(
|
|
773
|
+
(b) => b.alias === e
|
|
774
|
+
);
|
|
775
|
+
if (!(f === void 0 && (f = U.find((b) => b.alias === e), f === void 0))) {
|
|
776
|
+
if (s != null)
|
|
777
|
+
if (typeof s == "object") {
|
|
778
|
+
const [b, v] = Object.entries(s)[0];
|
|
779
|
+
f[b] = v;
|
|
780
|
+
} else
|
|
781
|
+
f.bgColor = s;
|
|
782
|
+
if (o != null)
|
|
783
|
+
if (typeof o == "object") {
|
|
784
|
+
const [b, v] = Object.entries(o)[0];
|
|
785
|
+
f[b] = v;
|
|
786
|
+
} else
|
|
787
|
+
f.fontColor = o;
|
|
788
|
+
if (l != null)
|
|
789
|
+
if (typeof l == "object") {
|
|
790
|
+
const [b, v] = Object.entries(l)[0];
|
|
791
|
+
f[b] = v;
|
|
792
|
+
} else
|
|
793
|
+
f.borderColor = l;
|
|
794
|
+
if (a != null)
|
|
795
|
+
if (typeof a == "object") {
|
|
796
|
+
const [b, v] = Object.entries(a)[0];
|
|
797
|
+
f[b] = v;
|
|
798
|
+
} else
|
|
799
|
+
f.shadowing = a;
|
|
800
|
+
if (n != null)
|
|
801
|
+
if (typeof n == "object") {
|
|
802
|
+
const [b, v] = Object.entries(n)[0];
|
|
803
|
+
f[b] = v;
|
|
804
|
+
} else
|
|
805
|
+
f.shape = n;
|
|
806
|
+
if (u != null)
|
|
807
|
+
if (typeof u == "object") {
|
|
808
|
+
const [b, v] = Object.entries(u)[0];
|
|
809
|
+
f[b] = v;
|
|
810
|
+
} else
|
|
811
|
+
f.sprite = u;
|
|
812
|
+
if (r != null)
|
|
813
|
+
if (typeof r == "object") {
|
|
814
|
+
const [b, v] = Object.entries(r)[0];
|
|
815
|
+
f[b] = v;
|
|
816
|
+
} else
|
|
817
|
+
f.techn = r;
|
|
818
|
+
if (h != null)
|
|
819
|
+
if (typeof h == "object") {
|
|
820
|
+
const [b, v] = Object.entries(h)[0];
|
|
821
|
+
f[b] = v;
|
|
822
|
+
} else
|
|
823
|
+
f.legendText = h;
|
|
824
|
+
if (y != null)
|
|
825
|
+
if (typeof y == "object") {
|
|
826
|
+
const [b, v] = Object.entries(y)[0];
|
|
827
|
+
f[b] = v;
|
|
828
|
+
} else
|
|
829
|
+
f.legendSprite = y;
|
|
830
|
+
}
|
|
831
|
+
}, "updateElStyle"), e0 = /* @__PURE__ */ d(function(t, e, s, o, l, a, n) {
|
|
832
|
+
const u = It.find((r) => r.from === e && r.to === s);
|
|
833
|
+
if (u !== void 0) {
|
|
834
|
+
if (o != null)
|
|
835
|
+
if (typeof o == "object") {
|
|
836
|
+
const [r, h] = Object.entries(o)[0];
|
|
837
|
+
u[r] = h;
|
|
838
|
+
} else
|
|
839
|
+
u.textColor = o;
|
|
840
|
+
if (l != null)
|
|
841
|
+
if (typeof l == "object") {
|
|
842
|
+
const [r, h] = Object.entries(l)[0];
|
|
843
|
+
u[r] = h;
|
|
844
|
+
} else
|
|
845
|
+
u.lineColor = l;
|
|
846
|
+
if (a != null)
|
|
847
|
+
if (typeof a == "object") {
|
|
848
|
+
const [r, h] = Object.entries(a)[0];
|
|
849
|
+
u[r] = parseInt(h);
|
|
850
|
+
} else
|
|
851
|
+
u.offsetX = parseInt(a);
|
|
852
|
+
if (n != null)
|
|
853
|
+
if (typeof n == "object") {
|
|
854
|
+
const [r, h] = Object.entries(n)[0];
|
|
855
|
+
u[r] = parseInt(h);
|
|
856
|
+
} else
|
|
857
|
+
u.offsetY = parseInt(n);
|
|
858
|
+
}
|
|
859
|
+
}, "updateRelStyle"), n0 = /* @__PURE__ */ d(function(t, e, s) {
|
|
860
|
+
let o = jt, l = zt;
|
|
861
|
+
if (typeof e == "object") {
|
|
862
|
+
const a = Object.values(e)[0];
|
|
863
|
+
o = parseInt(a);
|
|
864
|
+
} else
|
|
865
|
+
o = parseInt(e);
|
|
866
|
+
if (typeof s == "object") {
|
|
867
|
+
const a = Object.values(s)[0];
|
|
868
|
+
l = parseInt(a);
|
|
869
|
+
} else
|
|
870
|
+
l = parseInt(s);
|
|
871
|
+
o >= 1 && (jt = o), l >= 1 && (zt = l);
|
|
872
|
+
}, "updateLayoutConfig"), s0 = /* @__PURE__ */ d(function() {
|
|
873
|
+
return jt;
|
|
874
|
+
}, "getC4ShapeInRow"), r0 = /* @__PURE__ */ d(function() {
|
|
875
|
+
return zt;
|
|
876
|
+
}, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ d(function() {
|
|
877
|
+
return L;
|
|
878
|
+
}, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ d(function() {
|
|
879
|
+
return Y;
|
|
880
|
+
}, "getParentBoundaryParse"), ve = /* @__PURE__ */ d(function(t) {
|
|
881
|
+
return t == null ? F : F.filter((e) => e.parentBoundary === t);
|
|
882
|
+
}, "getC4ShapeArray"), o0 = /* @__PURE__ */ d(function(t) {
|
|
883
|
+
return F.find((e) => e.alias === t);
|
|
884
|
+
}, "getC4Shape"), l0 = /* @__PURE__ */ d(function(t) {
|
|
885
|
+
return Object.keys(ve(t));
|
|
886
|
+
}, "getC4ShapeKeys"), Ee = /* @__PURE__ */ d(function(t) {
|
|
887
|
+
return t == null ? U : U.filter((e) => e.parentBoundary === t);
|
|
888
|
+
}, "getBoundaries"), c0 = Ee, u0 = /* @__PURE__ */ d(function() {
|
|
889
|
+
return It;
|
|
890
|
+
}, "getRels"), h0 = /* @__PURE__ */ d(function() {
|
|
891
|
+
return se;
|
|
892
|
+
}, "getTitle"), d0 = /* @__PURE__ */ d(function(t) {
|
|
893
|
+
re = t;
|
|
894
|
+
}, "setWrap"), gt = /* @__PURE__ */ d(function() {
|
|
895
|
+
return re;
|
|
896
|
+
}, "autoWrap"), p0 = /* @__PURE__ */ d(function() {
|
|
897
|
+
F = [], U = [me()], Y = "", L = "global", _t = [""], It = [], _t = [""], se = "", re = !1, jt = 4, zt = 2;
|
|
898
|
+
}, "clear"), f0 = {
|
|
899
|
+
SOLID: 0,
|
|
900
|
+
DOTTED: 1,
|
|
901
|
+
NOTE: 2,
|
|
902
|
+
SOLID_CROSS: 3,
|
|
903
|
+
DOTTED_CROSS: 4,
|
|
904
|
+
SOLID_OPEN: 5,
|
|
905
|
+
DOTTED_OPEN: 6,
|
|
906
|
+
LOOP_START: 10,
|
|
907
|
+
LOOP_END: 11,
|
|
908
|
+
ALT_START: 12,
|
|
909
|
+
ALT_ELSE: 13,
|
|
910
|
+
ALT_END: 14,
|
|
911
|
+
OPT_START: 15,
|
|
912
|
+
OPT_END: 16,
|
|
913
|
+
ACTIVE_START: 17,
|
|
914
|
+
ACTIVE_END: 18,
|
|
915
|
+
PAR_START: 19,
|
|
916
|
+
PAR_AND: 20,
|
|
917
|
+
PAR_END: 21,
|
|
918
|
+
RECT_START: 22,
|
|
919
|
+
RECT_END: 23,
|
|
920
|
+
SOLID_POINT: 24,
|
|
921
|
+
DOTTED_POINT: 25
|
|
922
|
+
}, y0 = {
|
|
923
|
+
FILLED: 0,
|
|
924
|
+
OPEN: 1
|
|
925
|
+
}, _0 = {
|
|
926
|
+
LEFTOF: 0,
|
|
927
|
+
RIGHTOF: 1,
|
|
928
|
+
OVER: 2
|
|
929
|
+
}, b0 = /* @__PURE__ */ d(function(t) {
|
|
930
|
+
se = be(t, wt());
|
|
931
|
+
}, "setTitle"), te = {
|
|
932
|
+
addPersonOrSystem: He,
|
|
933
|
+
addPersonOrSystemBoundary: Ge,
|
|
934
|
+
addContainer: Qe,
|
|
935
|
+
addContainerBoundary: Je,
|
|
936
|
+
addComponent: Ke,
|
|
937
|
+
addDeploymentNode: Ze,
|
|
938
|
+
popBoundaryParseStack: $e,
|
|
939
|
+
addRel: qe,
|
|
940
|
+
updateElStyle: t0,
|
|
941
|
+
updateRelStyle: e0,
|
|
942
|
+
updateLayoutConfig: n0,
|
|
943
|
+
autoWrap: gt,
|
|
944
|
+
setWrap: d0,
|
|
945
|
+
getC4ShapeArray: ve,
|
|
946
|
+
getC4Shape: o0,
|
|
947
|
+
getC4ShapeKeys: l0,
|
|
948
|
+
getBoundaries: Ee,
|
|
949
|
+
getBoundarys: c0,
|
|
950
|
+
getCurrentBoundaryParse: a0,
|
|
951
|
+
getParentBoundaryParse: i0,
|
|
952
|
+
getRels: u0,
|
|
953
|
+
getTitle: h0,
|
|
954
|
+
getC4Type: We,
|
|
955
|
+
getC4ShapeInRow: s0,
|
|
956
|
+
getC4BoundaryInRow: r0,
|
|
957
|
+
setAccTitle: Ve,
|
|
958
|
+
getAccTitle: Be,
|
|
959
|
+
getAccDescription: Me,
|
|
960
|
+
setAccDescription: Ie,
|
|
961
|
+
getConfig: /* @__PURE__ */ d(() => ge("c4"), "getConfig"),
|
|
962
|
+
clear: p0,
|
|
963
|
+
LINETYPE: f0,
|
|
964
|
+
ARROWTYPE: y0,
|
|
965
|
+
PLACEMENT: _0,
|
|
966
|
+
setTitle: b0,
|
|
967
|
+
setC4Type: Xe
|
|
968
|
+
// apply,
|
|
969
|
+
}, Se = /* @__PURE__ */ d(function(t, e) {
|
|
970
|
+
return Le(t, e);
|
|
971
|
+
}, "drawRect"), g0 = /* @__PURE__ */ d((t, e, s, o) => {
|
|
972
|
+
const l = t.append("g");
|
|
973
|
+
let a = 0;
|
|
974
|
+
for (const n of e) {
|
|
975
|
+
const u = n.textColor ? n.textColor : "#444444", r = n.lineColor ? n.lineColor : "#444444", h = n.offsetX ? parseInt(String(n.offsetX)) : 0, y = n.offsetY ? parseInt(String(n.offsetY)) : 0, f = "";
|
|
976
|
+
if (a === 0) {
|
|
977
|
+
const w = l.append("line");
|
|
978
|
+
w.attr("x1", n.startPoint.x), w.attr("y1", n.startPoint.y), w.attr("x2", n.endPoint.x), w.attr("y2", n.endPoint.y), w.attr("stroke-width", "1"), w.attr("stroke", r), w.style("fill", "none"), n.type !== "rel_b" && w.attr("marker-end", "url(" + f + "#" + o + "-arrowhead)"), (n.type === "birel" || n.type === "rel_b") && w.attr("marker-start", "url(" + f + "#" + o + "-arrowend)"), a = -1;
|
|
979
|
+
} else {
|
|
980
|
+
const w = l.append("path");
|
|
981
|
+
w.attr("fill", "none").attr("stroke-width", "1").attr("stroke", r).attr(
|
|
982
|
+
"d",
|
|
983
|
+
"Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", n.startPoint.x).replaceAll("starty", n.startPoint.y).replaceAll(
|
|
984
|
+
"controlx",
|
|
985
|
+
n.startPoint.x + (n.endPoint.x - n.startPoint.x) / 2 - (n.endPoint.x - n.startPoint.x) / 4
|
|
986
|
+
).replaceAll(
|
|
987
|
+
"controly",
|
|
988
|
+
n.startPoint.y + (n.endPoint.y - n.startPoint.y) / 2
|
|
989
|
+
).replaceAll("stopx", n.endPoint.x).replaceAll("stopy", n.endPoint.y)
|
|
990
|
+
), n.type !== "rel_b" && w.attr("marker-end", "url(" + f + "#" + o + "-arrowhead)"), (n.type === "birel" || n.type === "rel_b") && w.attr("marker-start", "url(" + f + "#" + o + "-arrowend)");
|
|
991
|
+
}
|
|
992
|
+
const b = n.label.width;
|
|
993
|
+
let v = s.messageFont();
|
|
994
|
+
Nt(s)(
|
|
995
|
+
n.label.text,
|
|
996
|
+
l,
|
|
997
|
+
Math.min(n.startPoint.x, n.endPoint.x) + Math.abs(n.endPoint.x - n.startPoint.x) / 2 + h,
|
|
998
|
+
Math.min(n.startPoint.y, n.endPoint.y) + Math.abs(n.endPoint.y - n.startPoint.y) / 2 + y,
|
|
999
|
+
b,
|
|
1000
|
+
n.label.height,
|
|
1001
|
+
{ fill: u },
|
|
1002
|
+
v
|
|
1003
|
+
), n.techn && n.techn.text !== "" && (v = s.messageFont(), Nt(s)(
|
|
1004
|
+
"[" + n.techn.text + "]",
|
|
1005
|
+
l,
|
|
1006
|
+
Math.min(n.startPoint.x, n.endPoint.x) + Math.abs(n.endPoint.x - n.startPoint.x) / 2 + h,
|
|
1007
|
+
Math.min(n.startPoint.y, n.endPoint.y) + Math.abs(n.endPoint.y - n.startPoint.y) / 2 + s.messageFontSize + 5 + y,
|
|
1008
|
+
Math.max(b, n.techn.width),
|
|
1009
|
+
n.techn.height,
|
|
1010
|
+
{ fill: u, "font-style": "italic" },
|
|
1011
|
+
v
|
|
1012
|
+
));
|
|
1013
|
+
}
|
|
1014
|
+
}, "drawRels"), m0 = /* @__PURE__ */ d(function(t, e, s) {
|
|
1015
|
+
const o = t.append("g"), l = e.bgColor ? e.bgColor : "none", a = e.borderColor ? e.borderColor : "#444444", n = e.fontColor ? e.fontColor : "black";
|
|
1016
|
+
let u = {
|
|
1017
|
+
"stroke-width": 1,
|
|
1018
|
+
"stroke-dasharray": "7.0,7.0"
|
|
1019
|
+
};
|
|
1020
|
+
e.nodeType && (u = { "stroke-width": 1 });
|
|
1021
|
+
const r = {
|
|
1022
|
+
x: e.x,
|
|
1023
|
+
y: e.y,
|
|
1024
|
+
fill: l,
|
|
1025
|
+
stroke: a,
|
|
1026
|
+
width: e.width,
|
|
1027
|
+
height: e.height,
|
|
1028
|
+
rx: 2.5,
|
|
1029
|
+
ry: 2.5,
|
|
1030
|
+
attrs: u
|
|
1031
|
+
};
|
|
1032
|
+
Se(o, r);
|
|
1033
|
+
let h = s.boundaryFont();
|
|
1034
|
+
h.fontWeight = "bold", h.fontSize = h.fontSize + 2, h.fontColor = n, Nt(s)(
|
|
1035
|
+
e.label.text,
|
|
1036
|
+
o,
|
|
1037
|
+
e.x,
|
|
1038
|
+
e.y + e.label.Y,
|
|
1039
|
+
e.width,
|
|
1040
|
+
e.height,
|
|
1041
|
+
{ fill: "#444444" },
|
|
1042
|
+
h
|
|
1043
|
+
), e.type && e.type.text !== "" && (h = s.boundaryFont(), h.fontColor = n, Nt(s)(
|
|
1044
|
+
e.type.text,
|
|
1045
|
+
o,
|
|
1046
|
+
e.x,
|
|
1047
|
+
e.y + e.type.Y,
|
|
1048
|
+
e.width,
|
|
1049
|
+
e.height,
|
|
1050
|
+
{ fill: "#444444" },
|
|
1051
|
+
h
|
|
1052
|
+
)), e.descr && e.descr.text !== "" && (h = s.boundaryFont(), h.fontSize = h.fontSize - 2, h.fontColor = n, Nt(s)(
|
|
1053
|
+
e.descr.text,
|
|
1054
|
+
o,
|
|
1055
|
+
e.x,
|
|
1056
|
+
e.y + e.descr.Y,
|
|
1057
|
+
e.width,
|
|
1058
|
+
e.height,
|
|
1059
|
+
{ fill: "#444444" },
|
|
1060
|
+
h
|
|
1061
|
+
));
|
|
1062
|
+
}, "drawBoundary"), x0 = /* @__PURE__ */ d(function(t, e) {
|
|
1063
|
+
t.append("defs").append("symbol").attr("id", e + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
1064
|
+
"d",
|
|
1065
|
+
"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
|
|
1066
|
+
);
|
|
1067
|
+
}, "insertDatabaseIcon"), v0 = /* @__PURE__ */ d(function(t, e) {
|
|
1068
|
+
t.append("defs").append("symbol").attr("id", e + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1069
|
+
"d",
|
|
1070
|
+
"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
|
|
1071
|
+
);
|
|
1072
|
+
}, "insertComputerIcon"), E0 = /* @__PURE__ */ d(function(t, e) {
|
|
1073
|
+
t.append("defs").append("symbol").attr("id", e + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1074
|
+
"d",
|
|
1075
|
+
"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
|
|
1076
|
+
);
|
|
1077
|
+
}, "insertClockIcon"), S0 = /* @__PURE__ */ d(function(t, e) {
|
|
1078
|
+
t.append("defs").append("marker").attr("id", e + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
|
|
1079
|
+
}, "insertArrowHead"), k0 = /* @__PURE__ */ d(function(t, e) {
|
|
1080
|
+
t.append("defs").append("marker").attr("id", e + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
|
|
1081
|
+
}, "insertArrowEnd"), T0 = /* @__PURE__ */ d(function(t, e) {
|
|
1082
|
+
t.append("defs").append("marker").attr("id", e + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
1083
|
+
}, "insertArrowFilledHead"), C0 = /* @__PURE__ */ d(function(t, e) {
|
|
1084
|
+
const o = t.append("defs").append("marker").attr("id", e + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
|
|
1085
|
+
o.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), o.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
|
|
1086
|
+
}, "insertArrowCrossHead"), Nt = /* @__PURE__ */ (function() {
|
|
1087
|
+
function t(l, a, n, u, r, h, y) {
|
|
1088
|
+
const f = a.append("text").attr("x", n + r / 2).attr("y", u + h / 2 + 5).style("text-anchor", "middle").text(l);
|
|
1089
|
+
o(f, y);
|
|
1090
|
+
}
|
|
1091
|
+
d(t, "byText");
|
|
1092
|
+
function e(l, a, n, u, r, h, y, f) {
|
|
1093
|
+
const { fontSize: b, fontFamily: v, fontWeight: w } = f, N = l.split($t.lineBreakRegex);
|
|
1094
|
+
for (let O = 0; O < N.length; O++) {
|
|
1095
|
+
const P = O * b - b * (N.length - 1) / 2, I = a.append("text").attr("x", n + r / 2).attr("y", u).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", b).style("font-weight", w).style("font-family", v);
|
|
1096
|
+
I.append("tspan").attr("dy", P).text(N[O]).attr("alignment-baseline", "mathematical"), o(I, y);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
d(e, "byTspan");
|
|
1100
|
+
function s(l, a, n, u, r, h, y, f) {
|
|
1101
|
+
const b = a.append("switch"), w = b.append("foreignObject").attr("x", n).attr("y", u).attr("width", r).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1102
|
+
w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), e(l, b, n, u, r, h, y, f), o(w, y);
|
|
1103
|
+
}
|
|
1104
|
+
d(s, "byFo");
|
|
1105
|
+
function o(l, a) {
|
|
1106
|
+
for (const n in a)
|
|
1107
|
+
a.hasOwnProperty(n) && l.attr(n, a[n]);
|
|
1108
|
+
}
|
|
1109
|
+
return d(o, "_setTextAttrs"), function(l) {
|
|
1110
|
+
return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? t : e;
|
|
1111
|
+
};
|
|
1112
|
+
})(), z = {
|
|
1113
|
+
drawRect: Se,
|
|
1114
|
+
drawBoundary: m0,
|
|
1115
|
+
drawRels: g0,
|
|
1116
|
+
insertArrowHead: S0,
|
|
1117
|
+
insertArrowEnd: k0,
|
|
1118
|
+
insertArrowFilledHead: T0,
|
|
1119
|
+
insertArrowCrossHead: C0,
|
|
1120
|
+
insertDatabaseIcon: x0,
|
|
1121
|
+
insertComputerIcon: v0,
|
|
1122
|
+
insertClockIcon: E0
|
|
1123
|
+
}, R0 = /* @__PURE__ */ d((t, e) => {
|
|
1124
|
+
var s;
|
|
1125
|
+
if (e === "sandbox") {
|
|
1126
|
+
const l = (s = Jt("#i" + t).node()) == null ? void 0 : s.contentDocument;
|
|
1127
|
+
if (!l)
|
|
1128
|
+
throw new Error(`Sandbox iframe #i${t} is missing its content document`);
|
|
1129
|
+
return { root: Jt(l.body), doc: l };
|
|
1130
|
+
}
|
|
1131
|
+
return { root: Jt("body"), doc: document };
|
|
1132
|
+
}, "getDiagramRoot"), w0 = /* @__PURE__ */ new Set([
|
|
1133
|
+
"system_queue",
|
|
1134
|
+
"external_system_queue",
|
|
1135
|
+
"container_queue",
|
|
1136
|
+
"external_container_queue",
|
|
1137
|
+
"component_queue",
|
|
1138
|
+
"external_component_queue"
|
|
1139
|
+
]), O0 = /* @__PURE__ */ new Set([
|
|
1140
|
+
"system_db",
|
|
1141
|
+
"external_system_db",
|
|
1142
|
+
"container_db",
|
|
1143
|
+
"external_container_db",
|
|
1144
|
+
"component_db",
|
|
1145
|
+
"external_component_db"
|
|
1146
|
+
]), P0 = {
|
|
1147
|
+
person: "person",
|
|
1148
|
+
box: "rounded",
|
|
1149
|
+
rounded: "rounded",
|
|
1150
|
+
cylinder: "cylinder",
|
|
1151
|
+
database: "cylinder",
|
|
1152
|
+
db: "cylinder",
|
|
1153
|
+
queue: "h-cyl",
|
|
1154
|
+
pipe: "h-cyl",
|
|
1155
|
+
component: "fr-rect"
|
|
1156
|
+
}, Zt = /* @__PURE__ */ d((t) => t ? P0[t.toLowerCase()] : void 0, "keywordShape"), D0 = /* @__PURE__ */ d((t) => {
|
|
1157
|
+
const e = Zt(t.shape) ?? Zt(t.sprite);
|
|
1158
|
+
if (e)
|
|
1159
|
+
return e;
|
|
1160
|
+
if (t.tags)
|
|
1161
|
+
for (const o of t.tags.split(",")) {
|
|
1162
|
+
const l = Zt(o.trim());
|
|
1163
|
+
if (l)
|
|
1164
|
+
return l;
|
|
1165
|
+
}
|
|
1166
|
+
const s = t.typeC4Shape.text;
|
|
1167
|
+
return s === "person" || s === "external_person" ? "person" : O0.has(s) ? "cylinder" : w0.has(s) ? "h-cyl" : "rounded";
|
|
1168
|
+
}, "resolveNodeShape"), N0 = {
|
|
1169
|
+
person: "Person",
|
|
1170
|
+
system: "Software System",
|
|
1171
|
+
container: "Container",
|
|
1172
|
+
component: "Component"
|
|
1173
|
+
}, A0 = /* @__PURE__ */ d((t) => {
|
|
1174
|
+
const e = t.replace(/^external_/, "").replace(/_(db|queue)$/, "");
|
|
1175
|
+
return N0[e] ?? e.replace(/_/g, " ");
|
|
1176
|
+
}, "stereotypeLabel"), L0 = /* @__PURE__ */ d((t) => t.startsWith("external_"), "isExternal"), I0 = /* @__PURE__ */ d((t) => {
|
|
1177
|
+
var s;
|
|
1178
|
+
const e = A0(t.typeC4Shape.text);
|
|
1179
|
+
return (s = t.techn) != null && s.text ? `[${e}: ${t.techn.text}]` : `[${e}]`;
|
|
1180
|
+
}, "stereotypeText"), ke = [
|
|
1181
|
+
"person",
|
|
1182
|
+
"system",
|
|
1183
|
+
"system_db",
|
|
1184
|
+
"system_queue",
|
|
1185
|
+
"container",
|
|
1186
|
+
"container_db",
|
|
1187
|
+
"container_queue",
|
|
1188
|
+
"component",
|
|
1189
|
+
"component_db",
|
|
1190
|
+
"component_queue"
|
|
1191
|
+
].flatMap((t) => [t, `external_${t}`]), M0 = new Set(ke), pe = /* @__PURE__ */ d((t) => M0.has(t), "isC4ElementType"), B0 = /* @__PURE__ */ d((t, e) => {
|
|
1192
|
+
const s = t.typeC4Shape.text, o = t.bgColor ?? (pe(s) && e[`${s}_bg_color`]), l = t.borderColor ?? (pe(s) && e[`${s}_border_color`]), a = [];
|
|
1193
|
+
return o && a.push(`fill:${o}`), l && a.push(`stroke:${l}`), a.push(`color:${t.fontColor ?? "#FFFFFF"}`), a;
|
|
1194
|
+
}, "elementCssStyles"), fe = /* @__PURE__ */ d((t, e, s, o, l) => {
|
|
1195
|
+
var h;
|
|
1196
|
+
const a = t.typeC4Shape.text, n = ["c4-shape", `c4-${a}`];
|
|
1197
|
+
L0(a) && n.push("c4-external");
|
|
1198
|
+
const u = D0(t), r = B0(t, e);
|
|
1199
|
+
return (u === "rounded" || u === "fr-rect") && r.push("rx:12px", "ry:12px"), {
|
|
1200
|
+
id: t.alias,
|
|
1201
|
+
label: t.label.text,
|
|
1202
|
+
stereotype: I0(t),
|
|
1203
|
+
description: (h = t.descr) != null && h.text ? [t.descr.text] : void 0,
|
|
1204
|
+
labelType: "string",
|
|
1205
|
+
isGroup: !1,
|
|
1206
|
+
shape: u,
|
|
1207
|
+
cssClasses: n.join(" "),
|
|
1208
|
+
cssStyles: r,
|
|
1209
|
+
padding: s,
|
|
1210
|
+
look: o,
|
|
1211
|
+
useHtmlLabels: !1,
|
|
1212
|
+
width: l
|
|
1213
|
+
};
|
|
1214
|
+
}, "buildC4Node"), At = 0, Lt = 0, Te = 4, ee = 2;
|
|
1215
|
+
Ut.yy = te;
|
|
1216
|
+
var m = {}, Ct, Ce = (Ct = class {
|
|
1217
|
+
constructor(e) {
|
|
1218
|
+
this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ne(e.db.getConfig());
|
|
1219
|
+
}
|
|
1220
|
+
setData(e, s, o, l) {
|
|
1221
|
+
this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = s, this.nextData.starty = this.data.starty = o, this.nextData.stopy = this.data.stopy = l;
|
|
1222
|
+
}
|
|
1223
|
+
updateVal(e, s, o, l) {
|
|
1224
|
+
e[s] === void 0 ? e[s] = o : e[s] = l(o, e[s]);
|
|
1225
|
+
}
|
|
1226
|
+
insert(e) {
|
|
1227
|
+
this.nextData.cnt = this.nextData.cnt + 1;
|
|
1228
|
+
const s = this.nextData.stopx, o = this.data.widthLimit;
|
|
1229
|
+
let l = this.nextData.startx === this.nextData.stopx ? s + e.margin : s + e.margin * 2, a = l + e.width, n = this.nextData.starty + e.margin * 2, u = n + e.height;
|
|
1230
|
+
(l >= o || a >= o || this.nextData.cnt > Te) && (l = this.nextData.startx + e.margin + m.nextLinePaddingX, n = this.nextData.stopy + e.margin * 2, this.nextData.stopx = a = l + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = u = n + e.height, this.nextData.cnt = 1), e.x = l, e.y = n, this.updateVal(this.data, "startx", l, Math.min), this.updateVal(this.data, "starty", n, Math.min), this.updateVal(this.data, "stopx", a, Math.max), this.updateVal(this.data, "stopy", u, Math.max), this.updateVal(this.nextData, "startx", l, Math.min), this.updateVal(this.nextData, "starty", n, Math.min), this.updateVal(this.nextData, "stopx", a, Math.max), this.updateVal(this.nextData, "stopy", u, Math.max);
|
|
1231
|
+
}
|
|
1232
|
+
init(e) {
|
|
1233
|
+
this.name = "", this.data = {
|
|
1234
|
+
startx: void 0,
|
|
1235
|
+
stopx: void 0,
|
|
1236
|
+
starty: void 0,
|
|
1237
|
+
stopy: void 0,
|
|
1238
|
+
widthLimit: void 0
|
|
1239
|
+
}, this.nextData = {
|
|
1240
|
+
startx: void 0,
|
|
1241
|
+
stopx: void 0,
|
|
1242
|
+
starty: void 0,
|
|
1243
|
+
stopy: void 0,
|
|
1244
|
+
cnt: 0
|
|
1245
|
+
}, ne(e.db.getConfig());
|
|
1246
|
+
}
|
|
1247
|
+
bumpLastMargin(e) {
|
|
1248
|
+
this.data.stopx += e, this.data.stopy += e;
|
|
1249
|
+
}
|
|
1250
|
+
}, d(Ct, "Bounds"), Ct), ne = /* @__PURE__ */ d(function(t) {
|
|
1251
|
+
Fe(m, t), t != null && t.fontFamily && (m.personFontFamily = m.systemFontFamily = m.messageFontFamily = t.fontFamily), t != null && t.fontSize && (m.personFontSize = m.systemFontSize = m.messageFontSize = t.fontSize), t != null && t.fontWeight && (m.personFontWeight = m.systemFontWeight = m.messageFontWeight = t.fontWeight);
|
|
1252
|
+
}, "setConf"), Ft = /* @__PURE__ */ d((t) => ({
|
|
1253
|
+
fontFamily: t.boundaryFontFamily,
|
|
1254
|
+
fontSize: t.boundaryFontSize,
|
|
1255
|
+
fontWeight: t.boundaryFontWeight
|
|
1256
|
+
}), "boundaryFont"), V0 = /* @__PURE__ */ d((t) => ({
|
|
1257
|
+
fontFamily: t.messageFontFamily,
|
|
1258
|
+
fontSize: t.messageFontSize,
|
|
1259
|
+
fontWeight: t.messageFontWeight
|
|
1260
|
+
}), "messageFont");
|
|
1261
|
+
function bt(t, e, s, o, l) {
|
|
1262
|
+
const a = e[t];
|
|
1263
|
+
if (!a.width)
|
|
1264
|
+
if (s)
|
|
1265
|
+
a.text = je(
|
|
1266
|
+
a.text,
|
|
1267
|
+
l,
|
|
1268
|
+
o
|
|
1269
|
+
), a.textLines = a.text.split($t.lineBreakRegex).length, a.width = l, a.height = de(a.text, o);
|
|
1270
|
+
else {
|
|
1271
|
+
const n = a.text.split($t.lineBreakRegex);
|
|
1272
|
+
a.textLines = n.length;
|
|
1273
|
+
let u = 0;
|
|
1274
|
+
a.height = 0, a.width = 0;
|
|
1275
|
+
for (const r of n)
|
|
1276
|
+
a.width = Math.max(
|
|
1277
|
+
Dt(r, o),
|
|
1278
|
+
a.width
|
|
1279
|
+
), u = de(r, o), a.height = a.height + u;
|
|
1280
|
+
}
|
|
1281
|
+
return a;
|
|
1282
|
+
}
|
|
1283
|
+
d(bt, "calcC4ShapeTextWH");
|
|
1284
|
+
var Re = /* @__PURE__ */ d(function(t, e, s) {
|
|
1285
|
+
const o = s.data.startx, l = s.data.starty;
|
|
1286
|
+
e.x = o, e.y = l, e.width = s.data.stopx - o, e.height = s.data.stopy - l, e.label.y = m.c4ShapeMargin - 35;
|
|
1287
|
+
const a = e.wrap && m.wrap, n = Ft(m);
|
|
1288
|
+
n.fontSize = n.fontSize + 2, n.fontWeight = "bold";
|
|
1289
|
+
const u = Dt(
|
|
1290
|
+
e.label.text,
|
|
1291
|
+
n
|
|
1292
|
+
);
|
|
1293
|
+
bt("label", e, a, n, u), z.drawBoundary(t, e, m);
|
|
1294
|
+
}, "drawBoundary"), we = /* @__PURE__ */ d(async function(t, e, s, o) {
|
|
1295
|
+
const l = wt(), a = l.look ?? "classic", n = { config: l }, u = e.attr("id") ?? "", r = o.map((y) => s[Number(y)]), h = /* @__PURE__ */ d((y) => {
|
|
1296
|
+
const f = y.shape ? Ue[y.shape] : void 0;
|
|
1297
|
+
if (!f)
|
|
1298
|
+
throw new Error(`C4: no shape handler for "${y.shape}"`);
|
|
1299
|
+
return f;
|
|
1300
|
+
}, "shapeHandlerFor");
|
|
1301
|
+
await Promise.all(
|
|
1302
|
+
r.map(async (y) => {
|
|
1303
|
+
const f = fe(y, m, m.c4ShapePadding, a, m.width);
|
|
1304
|
+
f.domId = `${u}-${f.id}`;
|
|
1305
|
+
const b = await h(f)(e, f, n);
|
|
1306
|
+
y.width = f.width ?? m.width, y.height = f.height ?? m.height, y.margin = m.c4ShapeMargin, b.remove();
|
|
1307
|
+
})
|
|
1308
|
+
);
|
|
1309
|
+
for (const y of r)
|
|
1310
|
+
t.insert(y);
|
|
1311
|
+
await Promise.all(
|
|
1312
|
+
r.map(async (y) => {
|
|
1313
|
+
const f = fe(y, m, m.c4ShapePadding, a, m.width);
|
|
1314
|
+
f.domId = `${u}-${f.id}`, f.x = y.x + y.width / 2, f.y = y.y + y.height / 2;
|
|
1315
|
+
const b = e.append("g").attr(
|
|
1316
|
+
"transform",
|
|
1317
|
+
`translate(${y.x + y.width / 2}, ${y.y + y.height / 2})`
|
|
1318
|
+
);
|
|
1319
|
+
await h(f)(b, f, n), y.intersect = f.intersect;
|
|
1320
|
+
})
|
|
1321
|
+
), t.bumpLastMargin(m.c4ShapeMargin);
|
|
1322
|
+
}, "drawC4ShapeArray"), Rt, Y0 = (Rt = class {
|
|
1323
|
+
constructor(e, s) {
|
|
1324
|
+
this.x = e, this.y = s;
|
|
1325
|
+
}
|
|
1326
|
+
}, d(Rt, "Point"), Rt), ye = /* @__PURE__ */ d(function(t, e) {
|
|
1327
|
+
if (!t.intersect)
|
|
1328
|
+
throw new Error(
|
|
1329
|
+
`C4 shape "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`
|
|
1330
|
+
);
|
|
1331
|
+
const { x: s, y: o } = t.intersect(e);
|
|
1332
|
+
return new Y0(s, o);
|
|
1333
|
+
}, "getIntersectPoint"), F0 = /* @__PURE__ */ d(function(t, e) {
|
|
1334
|
+
const s = { x: 0, y: 0 };
|
|
1335
|
+
s.x = e.x + e.width / 2, s.y = e.y + e.height / 2;
|
|
1336
|
+
const o = ye(t, s);
|
|
1337
|
+
s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
|
|
1338
|
+
const l = ye(e, s);
|
|
1339
|
+
return { startPoint: o, endPoint: l };
|
|
1340
|
+
}, "getIntersectPoints"), U0 = /* @__PURE__ */ d(function(t, e, s, o, l) {
|
|
1341
|
+
const a = o.db.getC4Type();
|
|
1342
|
+
let n = 0;
|
|
1343
|
+
for (const u of e) {
|
|
1344
|
+
n = n + 1;
|
|
1345
|
+
const r = u.wrap && m.wrap, h = V0(m);
|
|
1346
|
+
a === "C4Dynamic" && (u.label.text = n + ": " + u.label.text);
|
|
1347
|
+
let y = Dt(u.label.text, h);
|
|
1348
|
+
bt("label", u, r, h, y), u.techn && u.techn.text !== "" && (y = Dt(u.techn.text, h), bt("techn", u, r, h, y)), u.descr && u.descr.text !== "" && (y = Dt(u.descr.text, h), bt("descr", u, r, h, y));
|
|
1349
|
+
const f = s(u.from), b = s(u.to);
|
|
1350
|
+
if (!f || !b)
|
|
1351
|
+
throw new Error(`C4 rel "${u.from}" -> "${u.to}" references an unknown shape`);
|
|
1352
|
+
const v = F0(f, b);
|
|
1353
|
+
if (!v.startPoint || !v.endPoint)
|
|
1354
|
+
throw new Error(
|
|
1355
|
+
`Could not calculate intersection points for rel "${u.from}" -> "${u.to}"`
|
|
1356
|
+
);
|
|
1357
|
+
u.startPoint = v.startPoint, u.endPoint = v.endPoint;
|
|
1358
|
+
}
|
|
1359
|
+
z.drawRels(t, e, m, l);
|
|
1360
|
+
}, "drawRels");
|
|
1361
|
+
async function ae(t, e, s, o, l) {
|
|
1362
|
+
const a = l.db, n = new Ce(l);
|
|
1363
|
+
n.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
|
|
1364
|
+
for (const [u, r] of o.entries()) {
|
|
1365
|
+
let h = 0;
|
|
1366
|
+
r.image = { width: 0, height: 0, Y: 0 }, r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = h, h = r.image.Y + r.image.height);
|
|
1367
|
+
const y = r.wrap && m.wrap, f = Ft(m);
|
|
1368
|
+
f.fontSize = f.fontSize + 2, f.fontWeight = "bold";
|
|
1369
|
+
const b = bt(
|
|
1370
|
+
"label",
|
|
1371
|
+
r,
|
|
1372
|
+
y,
|
|
1373
|
+
f,
|
|
1374
|
+
n.data.widthLimit
|
|
1375
|
+
);
|
|
1376
|
+
if (b.Y = h + 8, h = b.Y + b.height, r.type && r.type.text !== "") {
|
|
1377
|
+
r.type.text = "[" + r.type.text + "]";
|
|
1378
|
+
const O = Ft(m), P = bt(
|
|
1379
|
+
"type",
|
|
1380
|
+
r,
|
|
1381
|
+
y,
|
|
1382
|
+
O,
|
|
1383
|
+
n.data.widthLimit
|
|
1384
|
+
);
|
|
1385
|
+
P.Y = h + 5, h = P.Y + P.height;
|
|
1386
|
+
}
|
|
1387
|
+
if (r.descr && r.descr.text !== "") {
|
|
1388
|
+
const O = Ft(m);
|
|
1389
|
+
O.fontSize = O.fontSize - 2;
|
|
1390
|
+
const P = bt(
|
|
1391
|
+
"descr",
|
|
1392
|
+
r,
|
|
1393
|
+
y,
|
|
1394
|
+
O,
|
|
1395
|
+
n.data.widthLimit
|
|
1396
|
+
);
|
|
1397
|
+
P.Y = h + 20, h = P.Y + P.height;
|
|
1398
|
+
}
|
|
1399
|
+
if (u == 0 || u % ee === 0) {
|
|
1400
|
+
const O = s.data.startx + m.diagramMarginX, P = s.data.stopy + m.diagramMarginY + h;
|
|
1401
|
+
n.setData(O, O, P, P);
|
|
1402
|
+
} else {
|
|
1403
|
+
const O = n.data.stopx !== n.data.startx ? n.data.stopx + m.diagramMarginX : n.data.startx, P = n.data.starty;
|
|
1404
|
+
n.setData(O, O, P, P);
|
|
1405
|
+
}
|
|
1406
|
+
n.name = r.alias;
|
|
1407
|
+
const v = a.getC4ShapeArray(r.alias), w = a.getC4ShapeKeys(r.alias);
|
|
1408
|
+
w.length > 0 && await we(
|
|
1409
|
+
n,
|
|
1410
|
+
t,
|
|
1411
|
+
v,
|
|
1412
|
+
w
|
|
1413
|
+
), e = r.alias;
|
|
1414
|
+
const N = a.getBoundaries(e);
|
|
1415
|
+
N.length > 0 && await ae(
|
|
1416
|
+
t,
|
|
1417
|
+
e,
|
|
1418
|
+
n,
|
|
1419
|
+
N,
|
|
1420
|
+
l
|
|
1421
|
+
), r.alias !== "global" && Re(t, r, n), s.data.stopy = Math.max(
|
|
1422
|
+
n.data.stopy + m.c4ShapeMargin,
|
|
1423
|
+
s.data.stopy
|
|
1424
|
+
), s.data.stopx = Math.max(
|
|
1425
|
+
n.data.stopx + m.c4ShapeMargin,
|
|
1426
|
+
s.data.stopx
|
|
1427
|
+
), At = Math.max(At, s.data.stopx), Lt = Math.max(Lt, s.data.stopy);
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
d(ae, "drawInsideBoundary");
|
|
1431
|
+
var j0 = /* @__PURE__ */ d(async function(t, e, s, o) {
|
|
1432
|
+
m = ge("c4");
|
|
1433
|
+
const l = wt().securityLevel, { root: a } = R0(e, l), n = o.db;
|
|
1434
|
+
n.setWrap(m.wrap), Te = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), he.debug(`C:${JSON.stringify(m, null, 2)}`);
|
|
1435
|
+
const u = a.select(`[id="${e}"]`);
|
|
1436
|
+
z.insertComputerIcon(u, e), z.insertDatabaseIcon(u, e), z.insertClockIcon(u, e);
|
|
1437
|
+
const r = new Ce(o);
|
|
1438
|
+
r.setData(
|
|
1439
|
+
m.diagramMarginX,
|
|
1440
|
+
m.diagramMarginX,
|
|
1441
|
+
m.diagramMarginY,
|
|
1442
|
+
m.diagramMarginY
|
|
1443
|
+
), r.data.widthLimit = screen.availWidth, At = m.diagramMarginX, Lt = m.diagramMarginY;
|
|
1444
|
+
const h = n.getTitle(), y = n.getBoundaries("");
|
|
1445
|
+
await ae(u, "", r, y, o), z.insertArrowHead(u, e), z.insertArrowEnd(u, e), z.insertArrowCrossHead(u, e), z.insertArrowFilledHead(u, e), U0(u, n.getRels(), n.getC4Shape, o, e), r.data.stopx = At, r.data.stopy = Lt;
|
|
1446
|
+
const f = r.data, b = f.startx, v = f.starty, N = Lt - v + 2 * m.diagramMarginY, O = At - b, P = O + 2 * m.diagramMarginX;
|
|
1447
|
+
h && u.append("text").text(h).attr("x", O / 2 - 4 * m.diagramMarginX).attr("y", v + m.diagramMarginY), Ye(u, N, P, m.useMaxWidth);
|
|
1448
|
+
const I = h ? 60 : 0;
|
|
1449
|
+
u.attr(
|
|
1450
|
+
"viewBox",
|
|
1451
|
+
b - m.diagramMarginX + " -" + (m.diagramMarginY + I) + " " + P + " " + (N + I)
|
|
1452
|
+
), he.debug("models:", f);
|
|
1453
|
+
}, "draw"), _e = {
|
|
1454
|
+
drawPersonOrSystemArray: we,
|
|
1455
|
+
drawBoundary: Re,
|
|
1456
|
+
setConf: ne,
|
|
1457
|
+
draw: j0
|
|
1458
|
+
}, z0 = /* @__PURE__ */ d(() => {
|
|
1459
|
+
const t = wt().c4 ?? {}, e = new CSSStyleSheet();
|
|
1460
|
+
for (const s of ke) {
|
|
1461
|
+
const o = e.cssRules[e.insertRule(`.c4-shape.c4-${s} .label {}`, e.cssRules.length)], l = t[`${s}FontFamily`], a = t[`${s}FontSize`], n = t[`${s}FontWeight`];
|
|
1462
|
+
l && o.style.setProperty("font-family", l), a && o.style.setProperty(
|
|
1463
|
+
"font-size",
|
|
1464
|
+
typeof a == "number" ? `${a}px` : a
|
|
1465
|
+
), n && o.style.setProperty("font-weight", String(n));
|
|
1466
|
+
}
|
|
1467
|
+
return [...e.cssRules].filter((s) => s.style.length > 0).map((s) => ` ${s.cssText}`).join(`
|
|
1468
|
+
`);
|
|
1469
|
+
}, "elementFontStyles"), W0 = /* @__PURE__ */ d((t) => `.person {
|
|
1470
|
+
stroke: ${t.personBorder};
|
|
1471
|
+
fill: ${t.personBkg};
|
|
1472
|
+
}
|
|
1473
|
+
${z0()}
|
|
1474
|
+
|
|
1475
|
+
/* The element font colour is set inline per element (default white); the
|
|
1476
|
+
label text takes it via currentColor. */
|
|
1477
|
+
.c4-shape .label,
|
|
1478
|
+
.c4-shape .label text {
|
|
1479
|
+
color: inherit;
|
|
1480
|
+
fill: currentColor;
|
|
1481
|
+
}
|
|
1482
|
+
/* Structurizr typography: bold name, smaller stereotype/type and description lines. */
|
|
1483
|
+
.c4-shape .label .c4-name {
|
|
1484
|
+
font-weight: bold;
|
|
1485
|
+
}
|
|
1486
|
+
.c4-shape .label .c4-type {
|
|
1487
|
+
font-size: 0.75em;
|
|
1488
|
+
}
|
|
1489
|
+
.c4-shape .label .c4-descr {
|
|
1490
|
+
font-size: 0.82em;
|
|
1491
|
+
}
|
|
1492
|
+
.c4-shape .basic,
|
|
1493
|
+
.c4-shape rect,
|
|
1494
|
+
.c4-shape path,
|
|
1495
|
+
.c4-shape circle,
|
|
1496
|
+
.c4-shape ellipse,
|
|
1497
|
+
.c4-shape line {
|
|
1498
|
+
stroke-width: 2px;
|
|
1499
|
+
}
|
|
1500
|
+
`, "getStyles"), X0 = W0, Q0 = {
|
|
1501
|
+
parser: ze,
|
|
1502
|
+
db: te,
|
|
1503
|
+
renderer: _e,
|
|
1504
|
+
styles: X0,
|
|
1505
|
+
init: /* @__PURE__ */ d(({ c4: t, wrap: e }) => {
|
|
1506
|
+
_e.setConf(t), te.setWrap(e);
|
|
1507
|
+
}, "init")
|
|
1508
|
+
};
|
|
1509
|
+
export {
|
|
1510
|
+
Q0 as diagram
|
|
1511
|
+
};
|