gradio-leaderboard 0.0.13__py3-none-any.whl → 0.0.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. gradio_leaderboard/leaderboard.pyi +26 -9
  2. gradio_leaderboard/templates/component/Index-CzS_eGV6.js +34210 -0
  3. gradio_leaderboard/templates/component/_basePickBy-CPQEc5fh.js +151 -0
  4. gradio_leaderboard/templates/component/_baseUniq-DlEwemC3.js +615 -0
  5. gradio_leaderboard/templates/component/arc-4UNMf6Jv.js +83 -0
  6. gradio_leaderboard/templates/component/architectureDiagram-NQ2NVSRB-ClVp_eQQ.js +4629 -0
  7. gradio_leaderboard/templates/component/blockDiagram-PHRCVELO-CBZHEIQE.js +2255 -0
  8. gradio_leaderboard/templates/component/c4Diagram-6F6E4RAY-BcEP_NdH.js +1586 -0
  9. gradio_leaderboard/templates/component/channel-BK2Jce3b.js +5 -0
  10. gradio_leaderboard/templates/component/chunk-353BL4L5-D4dVjjbU.js +8 -0
  11. gradio_leaderboard/templates/component/chunk-67H74DCK-Dd9cOxfN.js +64 -0
  12. gradio_leaderboard/templates/component/chunk-6OLS64BW-CfumlcA2.js +1376 -0
  13. gradio_leaderboard/templates/component/chunk-AACKK3MU-4CpiDhxa.js +18 -0
  14. gradio_leaderboard/templates/component/chunk-BFAMUDN2-C6YyJRb4.js +8 -0
  15. gradio_leaderboard/templates/component/chunk-E2GYISFI-CbYUJnri.js +19 -0
  16. gradio_leaderboard/templates/component/chunk-QEP2MXWD-BYLoFCys.js +1380 -0
  17. gradio_leaderboard/templates/component/chunk-SKB7J2MH-DNiBnZKZ.js +19 -0
  18. gradio_leaderboard/templates/component/classDiagram-BGRH5UQR-BrG1RRX8.js +16 -0
  19. gradio_leaderboard/templates/component/classDiagram-v2-O24JOBDK-BrG1RRX8.js +16 -0
  20. gradio_leaderboard/templates/component/clone-BA6MvtJ3.js +8 -0
  21. gradio_leaderboard/templates/component/cytoscape.esm-Bdz5CrXX.js +18629 -0
  22. gradio_leaderboard/templates/component/dagre-FFZHY6LT-6RahWHGr.js +444 -0
  23. gradio_leaderboard/templates/component/defaultLocale-D7EN2tov.js +171 -0
  24. gradio_leaderboard/templates/component/diagram-3EMPZRKU-DtoOVTDy.js +526 -0
  25. gradio_leaderboard/templates/component/diagram-5UYTHUR4-MEp0H-U7.js +137 -0
  26. gradio_leaderboard/templates/component/diagram-ZTM2IBQH-22c5YuUh.js +217 -0
  27. gradio_leaderboard/templates/component/erDiagram-R3QVA2FD-DZp2MeDc.js +844 -0
  28. gradio_leaderboard/templates/component/flowDiagram-PKI6S5ZS-CfK9UZi3.js +1623 -0
  29. gradio_leaderboard/templates/component/ganttDiagram-EK5VF46D-waaD2Kup.js +2502 -0
  30. gradio_leaderboard/templates/component/gitGraphDiagram-GW3U2K7C-DJCAxNvz.js +699 -0
  31. gradio_leaderboard/templates/component/graph-CXm5uxKj.js +247 -0
  32. gradio_leaderboard/templates/component/index.js +2 -33755
  33. gradio_leaderboard/templates/component/infoDiagram-RLU2ROGC-_Rx9wF6U.js +24 -0
  34. gradio_leaderboard/templates/component/init-DjUOC4st.js +16 -0
  35. gradio_leaderboard/templates/component/journeyDiagram-EWQZEKCU-G-tt0noJ.js +836 -0
  36. gradio_leaderboard/templates/component/kanban-definition-ILFWEQ3N-2aHifLFR.js +718 -0
  37. gradio_leaderboard/templates/component/layout-DiZ88ySr.js +1324 -0
  38. gradio_leaderboard/templates/component/linear-D4M9Dm-w.js +259 -0
  39. gradio_leaderboard/templates/component/mermaid.core-D36e06XD.js +14941 -0
  40. gradio_leaderboard/templates/component/mindmap-definition-CZNETY7S-1Jow2c7r.js +3215 -0
  41. gradio_leaderboard/templates/component/ordinal-DfAQgscy.js +61 -0
  42. gradio_leaderboard/templates/component/pieDiagram-NIOCPIFQ-DU7jHSoi.js +162 -0
  43. gradio_leaderboard/templates/component/quadrantDiagram-2OG54O6I-GcojS_If.js +1028 -0
  44. gradio_leaderboard/templates/component/requirementDiagram-SO3GGRV7-CBRyajan.js +853 -0
  45. gradio_leaderboard/templates/component/sankeyDiagram-4UZDY2LN-CeZji6oR.js +820 -0
  46. gradio_leaderboard/templates/component/sequenceDiagram-ZIKVLSP4-DMygkr3Y.js +2284 -0
  47. gradio_leaderboard/templates/component/stateDiagram-XX37X6EN-DK2vsx2r.js +263 -0
  48. gradio_leaderboard/templates/component/stateDiagram-v2-GD6S3NHB-BoIkPrjk.js +16 -0
  49. gradio_leaderboard/templates/component/style.css +1 -1
  50. gradio_leaderboard/templates/component/timeline-definition-RI47OAVP-BQ_Jr8hZ.js +797 -0
  51. gradio_leaderboard/templates/component/treemap-FKARHQ26-2Ty0RcZX.js +12981 -0
  52. gradio_leaderboard/templates/component/xychartDiagram-H2YORKM3--C9dwTwV.js +1368 -0
  53. {gradio_leaderboard-0.0.13.dist-info → gradio_leaderboard-0.0.14.dist-info}/METADATA +2 -2
  54. gradio_leaderboard-0.0.14.dist-info/RECORD +59 -0
  55. {gradio_leaderboard-0.0.13.dist-info → gradio_leaderboard-0.0.14.dist-info}/WHEEL +1 -1
  56. gradio_leaderboard-0.0.13.dist-info/RECORD +0 -10
@@ -0,0 +1,1586 @@
1
+ import { d as Oe, g as Re } from "./chunk-67H74DCK-Dd9cOxfN.js";
2
+ import { _ as g, a as Se, s as De, g as Pe, b as Be, c as Ie, d as Dt, w as Me, e as Jt, f as he, h as Tt, i as pe, j as Nt, l as ue, k as Le, m as Ne } from "./mermaid.core-D36e06XD.js";
3
+ var jt = function() {
4
+ var e = /* @__PURE__ */ g(function(_t, x, m, v) {
5
+ for (m = m || {}, v = _t.length; v--; m[_t[v]] = x) ;
6
+ return m;
7
+ }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], a = [1, 28], r = [1, 63], n = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], y = [1, 68], p = [1, 69], E = [1, 29], O = [1, 30], S = [1, 31], P = [1, 32], M = [1, 33], U = [1, 34], H = [1, 35], q = [1, 36], G = [1, 37], K = [1, 38], J = [1, 39], Z = [1, 40], $ = [1, 41], tt = [1, 42], et = [1, 43], at = [1, 44], it = [1, 45], nt = [1, 46], rt = [1, 47], st = [1, 48], lt = [1, 50], ot = [1, 51], ct = [1, 52], ht = [1, 53], ut = [1, 54], dt = [1, 55], ft = [1, 56], pt = [1, 57], yt = [1, 58], gt = [1, 59], bt = [1, 60], Ct = [14, 42], Xt = [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], k = [1, 82], A = [1, 83], C = [1, 84], w = [1, 85], T = [12, 14, 42], re = [12, 14, 33, 42], Bt = [12, 14, 33, 42, 76, 77, 79, 80], vt = [12, 33], Wt = [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__ */ g(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__ */ g(function(x, m, v, b, R, h, Rt) {
15
+ var f = h.length - 1;
16
+ switch (R) {
17
+ case 3:
18
+ b.setDirection("TB");
19
+ break;
20
+ case 4:
21
+ b.setDirection("BT");
22
+ break;
23
+ case 5:
24
+ b.setDirection("RL");
25
+ break;
26
+ case 6:
27
+ b.setDirection("LR");
28
+ break;
29
+ case 8:
30
+ case 9:
31
+ case 10:
32
+ case 11:
33
+ case 12:
34
+ b.setC4Type(h[f - 3]);
35
+ break;
36
+ case 19:
37
+ b.setTitle(h[f].substring(6)), this.$ = h[f].substring(6);
38
+ break;
39
+ case 20:
40
+ b.setAccDescription(h[f].substring(15)), this.$ = h[f].substring(15);
41
+ break;
42
+ case 21:
43
+ this.$ = h[f].trim(), b.setTitle(this.$);
44
+ break;
45
+ case 22:
46
+ case 23:
47
+ this.$ = h[f].trim(), b.setAccDescription(this.$);
48
+ break;
49
+ case 28:
50
+ h[f].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
51
+ break;
52
+ case 29:
53
+ h[f].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
54
+ break;
55
+ case 30:
56
+ b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
57
+ break;
58
+ case 31:
59
+ h[f].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[f]), this.$ = h[f];
60
+ break;
61
+ case 32:
62
+ b.addDeploymentNode("node", ...h[f]), this.$ = h[f];
63
+ break;
64
+ case 33:
65
+ b.addDeploymentNode("nodeL", ...h[f]), this.$ = h[f];
66
+ break;
67
+ case 34:
68
+ b.addDeploymentNode("nodeR", ...h[f]), this.$ = h[f];
69
+ break;
70
+ case 35:
71
+ b.popBoundaryParseStack();
72
+ break;
73
+ case 39:
74
+ b.addPersonOrSystem("person", ...h[f]), this.$ = h[f];
75
+ break;
76
+ case 40:
77
+ b.addPersonOrSystem("external_person", ...h[f]), this.$ = h[f];
78
+ break;
79
+ case 41:
80
+ b.addPersonOrSystem("system", ...h[f]), this.$ = h[f];
81
+ break;
82
+ case 42:
83
+ b.addPersonOrSystem("system_db", ...h[f]), this.$ = h[f];
84
+ break;
85
+ case 43:
86
+ b.addPersonOrSystem("system_queue", ...h[f]), this.$ = h[f];
87
+ break;
88
+ case 44:
89
+ b.addPersonOrSystem("external_system", ...h[f]), this.$ = h[f];
90
+ break;
91
+ case 45:
92
+ b.addPersonOrSystem("external_system_db", ...h[f]), this.$ = h[f];
93
+ break;
94
+ case 46:
95
+ b.addPersonOrSystem("external_system_queue", ...h[f]), this.$ = h[f];
96
+ break;
97
+ case 47:
98
+ b.addContainer("container", ...h[f]), this.$ = h[f];
99
+ break;
100
+ case 48:
101
+ b.addContainer("container_db", ...h[f]), this.$ = h[f];
102
+ break;
103
+ case 49:
104
+ b.addContainer("container_queue", ...h[f]), this.$ = h[f];
105
+ break;
106
+ case 50:
107
+ b.addContainer("external_container", ...h[f]), this.$ = h[f];
108
+ break;
109
+ case 51:
110
+ b.addContainer("external_container_db", ...h[f]), this.$ = h[f];
111
+ break;
112
+ case 52:
113
+ b.addContainer("external_container_queue", ...h[f]), this.$ = h[f];
114
+ break;
115
+ case 53:
116
+ b.addComponent("component", ...h[f]), this.$ = h[f];
117
+ break;
118
+ case 54:
119
+ b.addComponent("component_db", ...h[f]), this.$ = h[f];
120
+ break;
121
+ case 55:
122
+ b.addComponent("component_queue", ...h[f]), this.$ = h[f];
123
+ break;
124
+ case 56:
125
+ b.addComponent("external_component", ...h[f]), this.$ = h[f];
126
+ break;
127
+ case 57:
128
+ b.addComponent("external_component_db", ...h[f]), this.$ = h[f];
129
+ break;
130
+ case 58:
131
+ b.addComponent("external_component_queue", ...h[f]), this.$ = h[f];
132
+ break;
133
+ case 60:
134
+ b.addRel("rel", ...h[f]), this.$ = h[f];
135
+ break;
136
+ case 61:
137
+ b.addRel("birel", ...h[f]), this.$ = h[f];
138
+ break;
139
+ case 62:
140
+ b.addRel("rel_u", ...h[f]), this.$ = h[f];
141
+ break;
142
+ case 63:
143
+ b.addRel("rel_d", ...h[f]), this.$ = h[f];
144
+ break;
145
+ case 64:
146
+ b.addRel("rel_l", ...h[f]), this.$ = h[f];
147
+ break;
148
+ case 65:
149
+ b.addRel("rel_r", ...h[f]), this.$ = h[f];
150
+ break;
151
+ case 66:
152
+ b.addRel("rel_b", ...h[f]), this.$ = h[f];
153
+ break;
154
+ case 67:
155
+ h[f].splice(0, 1), b.addRel("rel", ...h[f]), this.$ = h[f];
156
+ break;
157
+ case 68:
158
+ b.updateElStyle("update_el_style", ...h[f]), this.$ = h[f];
159
+ break;
160
+ case 69:
161
+ b.updateRelStyle("update_rel_style", ...h[f]), this.$ = h[f];
162
+ break;
163
+ case 70:
164
+ b.updateLayoutConfig("update_layout_config", ...h[f]), this.$ = h[f];
165
+ break;
166
+ case 71:
167
+ this.$ = [h[f]];
168
+ break;
169
+ case 72:
170
+ h[f].unshift(h[f - 1]), this.$ = h[f];
171
+ break;
172
+ case 73:
173
+ case 75:
174
+ this.$ = h[f].trim();
175
+ break;
176
+ case 74:
177
+ let Et = {};
178
+ Et[h[f - 1].trim()] = h[f].trim(), this.$ = Et;
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: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 14: [1, 74] }, e(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ct, [2, 14]), e(Xt, [2, 16], { 12: [1, 76] }), e(Ct, [2, 36], { 12: [1, 77] }), e(Ot, [2, 19]), e(Ot, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, e(Ot, [2, 23]), { 35: 80, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 86, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 87, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 88, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 89, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 90, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 91, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 92, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 93, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 94, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 95, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 96, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 97, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 98, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 99, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 100, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 101, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 102, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 103, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 104, 75: 81, 76: k, 77: A, 79: C, 80: w }, e(T, [2, 59]), { 35: 105, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 106, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 107, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 108, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 109, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 110, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 111, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 112, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 113, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 114, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 115, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 120, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 121, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 122, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 123, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 124, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 125, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, e(Ct, [2, 15]), e(Xt, [2, 17], { 21: 22, 19: 130, 22: t, 23: s, 24: o, 26: l, 28: a }), e(Ct, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: s, 24: o, 26: l, 28: a, 34: r, 36: n, 37: i, 38: u, 39: d, 40: y, 41: p, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ot, [2, 21]), e(Ot, [2, 22]), e(T, [2, 39]), e(re, [2, 71], { 75: 81, 35: 132, 76: k, 77: A, 79: C, 80: w }), e(Bt, [2, 73]), { 78: [1, 133] }, e(Bt, [2, 75]), e(Bt, [2, 76]), e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(T, [2, 43]), e(T, [2, 44]), e(T, [2, 45]), e(T, [2, 46]), e(T, [2, 47]), e(T, [2, 48]), e(T, [2, 49]), e(T, [2, 50]), e(T, [2, 51]), e(T, [2, 52]), e(T, [2, 53]), e(T, [2, 54]), e(T, [2, 55]), e(T, [2, 56]), e(T, [2, 57]), e(T, [2, 58]), e(T, [2, 60]), e(T, [2, 61]), e(T, [2, 62]), e(T, [2, 63]), e(T, [2, 64]), e(T, [2, 65]), e(T, [2, 66]), e(T, [2, 67]), e(T, [2, 68]), e(T, [2, 69]), e(T, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, e(vt, [2, 28]), e(vt, [2, 29]), e(vt, [2, 30]), e(vt, [2, 31]), e(vt, [2, 32]), e(vt, [2, 33]), e(vt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, e(Xt, [2, 18]), e(Ct, [2, 38]), e(re, [2, 72]), e(Bt, [2, 74]), e(T, [2, 24]), e(T, [2, 35]), e(Wt, [2, 25]), e(Wt, [2, 26], { 12: [1, 138] }), e(Wt, [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__ */ g(function(x, m) {
188
+ if (m.recoverable)
189
+ this.trace(x);
190
+ else {
191
+ var v = new Error(x);
192
+ throw v.hash = m, v;
193
+ }
194
+ }, "parseError"),
195
+ parse: /* @__PURE__ */ g(function(x) {
196
+ var m = this, v = [0], b = [], R = [null], h = [], Rt = this.table, f = "", Et = 0, se = 0, Ae = 2, le = 1, Ce = h.slice.call(arguments, 1), D = Object.create(this.lexer), kt = { yy: {} };
197
+ for (var Ht in this.yy)
198
+ Object.prototype.hasOwnProperty.call(this.yy, Ht) && (kt.yy[Ht] = this.yy[Ht]);
199
+ D.setInput(x, kt.yy), kt.yy.lexer = D, kt.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
200
+ var qt = D.yylloc;
201
+ h.push(qt);
202
+ var we = D.options && D.options.ranges;
203
+ typeof kt.yy.parseError == "function" ? this.parseError = kt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
204
+ function Te(L) {
205
+ v.length = v.length - 2 * L, R.length = R.length - L, h.length = h.length - L;
206
+ }
207
+ g(Te, "popStack");
208
+ function oe() {
209
+ var L;
210
+ return L = b.pop() || D.lex() || le, typeof L != "number" && (L instanceof Array && (b = L, L = b.pop()), L = m.symbols_[L] || L), L;
211
+ }
212
+ g(oe, "lex");
213
+ for (var I, At, N, Gt, wt = {}, Mt, W, ce, Lt; ; ) {
214
+ if (At = v[v.length - 1], this.defaultActions[At] ? N = this.defaultActions[At] : ((I === null || typeof I > "u") && (I = oe()), N = Rt[At] && Rt[At][I]), typeof N > "u" || !N.length || !N[0]) {
215
+ var Kt = "";
216
+ Lt = [];
217
+ for (Mt in Rt[At])
218
+ this.terminals_[Mt] && Mt > Ae && Lt.push("'" + this.terminals_[Mt] + "'");
219
+ D.showPosition ? Kt = "Parse error on line " + (Et + 1) + `:
220
+ ` + D.showPosition() + `
221
+ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Kt = "Parse error on line " + (Et + 1) + ": Unexpected " + (I == le ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Kt, {
222
+ text: D.match,
223
+ token: this.terminals_[I] || I,
224
+ line: D.yylineno,
225
+ loc: qt,
226
+ expected: Lt
227
+ });
228
+ }
229
+ if (N[0] instanceof Array && N.length > 1)
230
+ throw new Error("Parse Error: multiple actions possible at state: " + At + ", token: " + I);
231
+ switch (N[0]) {
232
+ case 1:
233
+ v.push(I), R.push(D.yytext), h.push(D.yylloc), v.push(N[1]), I = null, se = D.yyleng, f = D.yytext, Et = D.yylineno, qt = D.yylloc;
234
+ break;
235
+ case 2:
236
+ if (W = this.productions_[N[1]][1], wt.$ = R[R.length - W], wt._$ = {
237
+ first_line: h[h.length - (W || 1)].first_line,
238
+ last_line: h[h.length - 1].last_line,
239
+ first_column: h[h.length - (W || 1)].first_column,
240
+ last_column: h[h.length - 1].last_column
241
+ }, we && (wt._$.range = [
242
+ h[h.length - (W || 1)].range[0],
243
+ h[h.length - 1].range[1]
244
+ ]), Gt = this.performAction.apply(wt, [
245
+ f,
246
+ se,
247
+ Et,
248
+ kt.yy,
249
+ N[1],
250
+ R,
251
+ h
252
+ ].concat(Ce)), typeof Gt < "u")
253
+ return Gt;
254
+ W && (v = v.slice(0, -1 * W * 2), R = R.slice(0, -1 * W), h = h.slice(0, -1 * W)), v.push(this.productions_[N[1]][0]), R.push(wt.$), h.push(wt._$), ce = Rt[v[v.length - 2]][v[v.length - 1]], v.push(ce);
255
+ break;
256
+ case 3:
257
+ return !0;
258
+ }
259
+ }
260
+ return !0;
261
+ }, "parse")
262
+ }, ke = /* @__PURE__ */ function() {
263
+ var _t = {
264
+ EOF: 1,
265
+ parseError: /* @__PURE__ */ g(function(m, v) {
266
+ if (this.yy.parser)
267
+ this.yy.parser.parseError(m, v);
268
+ else
269
+ throw new Error(m);
270
+ }, "parseError"),
271
+ // resets the lexer, sets new input
272
+ setInput: /* @__PURE__ */ g(function(x, m) {
273
+ return this.yy = m || this.yy || {}, this._input = x, 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__ */ g(function() {
282
+ var x = this._input[0];
283
+ this.yytext += x, this.yyleng++, this.offset++, this.match += x, this.matched += x;
284
+ var m = x.match(/(?:\r\n?|\n).*/g);
285
+ return m ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), x;
286
+ }, "input"),
287
+ // unshifts one char (or a string) into the input
288
+ unput: /* @__PURE__ */ g(function(x) {
289
+ var m = x.length, v = x.split(/(?:\r\n?|\n)/g);
290
+ this._input = x + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - m), this.offset -= m;
291
+ var b = 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), v.length - 1 && (this.yylineno -= v.length - 1);
293
+ var R = 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: v ? (v.length === b.length ? this.yylloc.first_column : 0) + b[b.length - v.length].length - v[0].length : this.yylloc.first_column - m
299
+ }, this.options.ranges && (this.yylloc.range = [R[0], R[0] + this.yyleng - m]), 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__ */ g(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__ */ g(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__ */ g(function(x) {
320
+ this.unput(this.match.slice(x));
321
+ }, "less"),
322
+ // displays already matched input, i.e. for error messages
323
+ pastInput: /* @__PURE__ */ g(function() {
324
+ var x = this.matched.substr(0, this.matched.length - this.match.length);
325
+ return (x.length > 20 ? "..." : "") + x.substr(-20).replace(/\n/g, "");
326
+ }, "pastInput"),
327
+ // displays upcoming input, i.e. for error messages
328
+ upcomingInput: /* @__PURE__ */ g(function() {
329
+ var x = this.match;
330
+ return x.length < 20 && (x += this._input.substr(0, 20 - x.length)), (x.substr(0, 20) + (x.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__ */ g(function() {
334
+ var x = this.pastInput(), m = new Array(x.length + 1).join("-");
335
+ return x + this.upcomingInput() + `
336
+ ` + m + "^";
337
+ }, "showPosition"),
338
+ // test the lexed token: return FALSE when not a match, otherwise return token
339
+ test_match: /* @__PURE__ */ g(function(x, m) {
340
+ var v, b, R;
341
+ if (this.options.backtrack_lexer && (R = {
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 && (R.yylloc.range = this.yylloc.range.slice(0))), b = x[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.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: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + x[0].length
365
+ }, this.yytext += x[0], this.match += x[0], this.matches = x, 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(x[0].length), this.matched += x[0], v = this.performAction.call(this, this.yy, this, m, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), v)
366
+ return v;
367
+ if (this._backtrack) {
368
+ for (var h in R)
369
+ this[h] = R[h];
370
+ return !1;
371
+ }
372
+ return !1;
373
+ }, "test_match"),
374
+ // return next match in input
375
+ next: /* @__PURE__ */ g(function() {
376
+ if (this.done)
377
+ return this.EOF;
378
+ this._input || (this.done = !0);
379
+ var x, m, v, b;
380
+ this._more || (this.yytext = "", this.match = "");
381
+ for (var R = this._currentRules(), h = 0; h < R.length; h++)
382
+ if (v = this._input.match(this.rules[R[h]]), v && (!m || v[0].length > m[0].length)) {
383
+ if (m = v, b = h, this.options.backtrack_lexer) {
384
+ if (x = this.test_match(v, R[h]), x !== !1)
385
+ return x;
386
+ if (this._backtrack) {
387
+ m = !1;
388
+ continue;
389
+ } else
390
+ return !1;
391
+ } else if (!this.options.flex)
392
+ break;
393
+ }
394
+ return m ? (x = this.test_match(m, R[b]), x !== !1 ? x : !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__ */ g(function() {
403
+ var m = this.next();
404
+ return m || this.lex();
405
+ }, "lex"),
406
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
407
+ begin: /* @__PURE__ */ g(function(m) {
408
+ this.conditionStack.push(m);
409
+ }, "begin"),
410
+ // pop the previously active lexer condition state off the condition stack
411
+ popState: /* @__PURE__ */ g(function() {
412
+ var m = this.conditionStack.length - 1;
413
+ return m > 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__ */ g(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__ */ g(function(m) {
421
+ return m = this.conditionStack.length - 1 - Math.abs(m || 0), m >= 0 ? this.conditionStack[m] : "INITIAL";
422
+ }, "topState"),
423
+ // alias for begin(condition)
424
+ pushState: /* @__PURE__ */ g(function(m) {
425
+ this.begin(m);
426
+ }, "pushState"),
427
+ // return the number of states currently on the stack
428
+ stateStackSize: /* @__PURE__ */ g(function() {
429
+ return this.conditionStack.length;
430
+ }, "stateStackSize"),
431
+ options: {},
432
+ performAction: /* @__PURE__ */ g(function(m, v, b, R) {
433
+ switch (b) {
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: [], 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 _t;
622
+ }();
623
+ Qt.lexer = ke;
624
+ function It() {
625
+ this.yy = {};
626
+ }
627
+ return g(It, "Parser"), It.prototype = Qt, Qt.Parser = It, new It();
628
+ }();
629
+ jt.parser = jt;
630
+ var Ye = jt, V = [], xt = [""], B = "global", F = "", X = [
631
+ {
632
+ alias: "global",
633
+ label: { text: "global" },
634
+ type: { text: "global" },
635
+ tags: null,
636
+ link: null,
637
+ parentBoundary: ""
638
+ }
639
+ ], Pt = [], ee = "", ae = !1, Ut = 4, Ft = 2, ye, je = /* @__PURE__ */ g(function() {
640
+ return ye;
641
+ }, "getC4Type"), Ue = /* @__PURE__ */ g(function(e) {
642
+ ye = pe(e, Dt());
643
+ }, "setC4Type"), Fe = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n, i) {
644
+ if (e == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null)
645
+ return;
646
+ let u = {};
647
+ const d = Pt.find((y) => y.from === t && y.to === s);
648
+ if (d ? u = d : Pt.push(u), u.type = e, u.from = t, u.to = s, u.label = { text: o }, l == null)
649
+ u.techn = { text: "" };
650
+ else if (typeof l == "object") {
651
+ let [y, p] = Object.entries(l)[0];
652
+ u[y] = { text: p };
653
+ } else
654
+ u.techn = { text: l };
655
+ if (a == null)
656
+ u.descr = { text: "" };
657
+ else if (typeof a == "object") {
658
+ let [y, p] = Object.entries(a)[0];
659
+ u[y] = { text: p };
660
+ } else
661
+ u.descr = { text: a };
662
+ if (typeof r == "object") {
663
+ let [y, p] = Object.entries(r)[0];
664
+ u[y] = p;
665
+ } else
666
+ u.sprite = r;
667
+ if (typeof n == "object") {
668
+ let [y, p] = Object.entries(n)[0];
669
+ u[y] = p;
670
+ } else
671
+ u.tags = n;
672
+ if (typeof i == "object") {
673
+ let [y, p] = Object.entries(i)[0];
674
+ u[y] = p;
675
+ } else
676
+ u.link = i;
677
+ u.wrap = mt();
678
+ }, "addRel"), Ve = /* @__PURE__ */ g(function(e, t, s, o, l, a, r) {
679
+ if (t === null || s === null)
680
+ return;
681
+ let n = {};
682
+ const i = V.find((u) => u.alias === t);
683
+ if (i && t === i.alias ? n = i : (n.alias = t, V.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null)
684
+ n.descr = { text: "" };
685
+ else if (typeof o == "object") {
686
+ let [u, d] = Object.entries(o)[0];
687
+ n[u] = { text: d };
688
+ } else
689
+ n.descr = { text: o };
690
+ if (typeof l == "object") {
691
+ let [u, d] = Object.entries(l)[0];
692
+ n[u] = d;
693
+ } else
694
+ n.sprite = l;
695
+ if (typeof a == "object") {
696
+ let [u, d] = Object.entries(a)[0];
697
+ n[u] = d;
698
+ } else
699
+ n.tags = a;
700
+ if (typeof r == "object") {
701
+ let [u, d] = Object.entries(r)[0];
702
+ n[u] = d;
703
+ } else
704
+ n.link = r;
705
+ n.typeC4Shape = { text: e }, n.parentBoundary = B, n.wrap = mt();
706
+ }, "addPersonOrSystem"), ze = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
707
+ if (t === null || s === null)
708
+ return;
709
+ let i = {};
710
+ const u = V.find((d) => d.alias === t);
711
+ if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
712
+ i.techn = { text: "" };
713
+ else if (typeof o == "object") {
714
+ let [d, y] = Object.entries(o)[0];
715
+ i[d] = { text: y };
716
+ } else
717
+ i.techn = { text: o };
718
+ if (l == null)
719
+ i.descr = { text: "" };
720
+ else if (typeof l == "object") {
721
+ let [d, y] = Object.entries(l)[0];
722
+ i[d] = { text: y };
723
+ } else
724
+ i.descr = { text: l };
725
+ if (typeof a == "object") {
726
+ let [d, y] = Object.entries(a)[0];
727
+ i[d] = y;
728
+ } else
729
+ i.sprite = a;
730
+ if (typeof r == "object") {
731
+ let [d, y] = Object.entries(r)[0];
732
+ i[d] = y;
733
+ } else
734
+ i.tags = r;
735
+ if (typeof n == "object") {
736
+ let [d, y] = Object.entries(n)[0];
737
+ i[d] = y;
738
+ } else
739
+ i.link = n;
740
+ i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
741
+ }, "addContainer"), Xe = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
742
+ if (t === null || s === null)
743
+ return;
744
+ let i = {};
745
+ const u = V.find((d) => d.alias === t);
746
+ if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
747
+ i.techn = { text: "" };
748
+ else if (typeof o == "object") {
749
+ let [d, y] = Object.entries(o)[0];
750
+ i[d] = { text: y };
751
+ } else
752
+ i.techn = { text: o };
753
+ if (l == null)
754
+ i.descr = { text: "" };
755
+ else if (typeof l == "object") {
756
+ let [d, y] = Object.entries(l)[0];
757
+ i[d] = { text: y };
758
+ } else
759
+ i.descr = { text: l };
760
+ if (typeof a == "object") {
761
+ let [d, y] = Object.entries(a)[0];
762
+ i[d] = y;
763
+ } else
764
+ i.sprite = a;
765
+ if (typeof r == "object") {
766
+ let [d, y] = Object.entries(r)[0];
767
+ i[d] = y;
768
+ } else
769
+ i.tags = r;
770
+ if (typeof n == "object") {
771
+ let [d, y] = Object.entries(n)[0];
772
+ i[d] = y;
773
+ } else
774
+ i.link = n;
775
+ i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
776
+ }, "addComponent"), We = /* @__PURE__ */ g(function(e, t, s, o, l) {
777
+ if (e === null || t === null)
778
+ return;
779
+ let a = {};
780
+ const r = X.find((n) => n.alias === e);
781
+ if (r && e === r.alias ? a = r : (a.alias = e, X.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, s == null)
782
+ a.type = { text: "system" };
783
+ else if (typeof s == "object") {
784
+ let [n, i] = Object.entries(s)[0];
785
+ a[n] = { text: i };
786
+ } else
787
+ a.type = { text: s };
788
+ if (typeof o == "object") {
789
+ let [n, i] = Object.entries(o)[0];
790
+ a[n] = i;
791
+ } else
792
+ a.tags = o;
793
+ if (typeof l == "object") {
794
+ let [n, i] = Object.entries(l)[0];
795
+ a[n] = i;
796
+ } else
797
+ a.link = l;
798
+ a.parentBoundary = B, a.wrap = mt(), F = B, B = e, xt.push(F);
799
+ }, "addPersonOrSystemBoundary"), Qe = /* @__PURE__ */ g(function(e, t, s, o, l) {
800
+ if (e === null || t === null)
801
+ return;
802
+ let a = {};
803
+ const r = X.find((n) => n.alias === e);
804
+ if (r && e === r.alias ? a = r : (a.alias = e, X.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, s == null)
805
+ a.type = { text: "container" };
806
+ else if (typeof s == "object") {
807
+ let [n, i] = Object.entries(s)[0];
808
+ a[n] = { text: i };
809
+ } else
810
+ a.type = { text: s };
811
+ if (typeof o == "object") {
812
+ let [n, i] = Object.entries(o)[0];
813
+ a[n] = i;
814
+ } else
815
+ a.tags = o;
816
+ if (typeof l == "object") {
817
+ let [n, i] = Object.entries(l)[0];
818
+ a[n] = i;
819
+ } else
820
+ a.link = l;
821
+ a.parentBoundary = B, a.wrap = mt(), F = B, B = e, xt.push(F);
822
+ }, "addContainerBoundary"), He = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
823
+ if (t === null || s === null)
824
+ return;
825
+ let i = {};
826
+ const u = X.find((d) => d.alias === t);
827
+ if (u && t === u.alias ? i = u : (i.alias = t, X.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
828
+ i.type = { text: "node" };
829
+ else if (typeof o == "object") {
830
+ let [d, y] = Object.entries(o)[0];
831
+ i[d] = { text: y };
832
+ } else
833
+ i.type = { text: o };
834
+ if (l == null)
835
+ i.descr = { text: "" };
836
+ else if (typeof l == "object") {
837
+ let [d, y] = Object.entries(l)[0];
838
+ i[d] = { text: y };
839
+ } else
840
+ i.descr = { text: l };
841
+ if (typeof r == "object") {
842
+ let [d, y] = Object.entries(r)[0];
843
+ i[d] = y;
844
+ } else
845
+ i.tags = r;
846
+ if (typeof n == "object") {
847
+ let [d, y] = Object.entries(n)[0];
848
+ i[d] = y;
849
+ } else
850
+ i.link = n;
851
+ i.nodeType = e, i.parentBoundary = B, i.wrap = mt(), F = B, B = t, xt.push(F);
852
+ }, "addDeploymentNode"), qe = /* @__PURE__ */ g(function() {
853
+ B = F, xt.pop(), F = xt.pop(), xt.push(F);
854
+ }, "popBoundaryParseStack"), Ge = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n, i, u, d) {
855
+ let y = V.find((p) => p.alias === t);
856
+ if (!(y === void 0 && (y = X.find((p) => p.alias === t), y === void 0))) {
857
+ if (s != null)
858
+ if (typeof s == "object") {
859
+ let [p, E] = Object.entries(s)[0];
860
+ y[p] = E;
861
+ } else
862
+ y.bgColor = s;
863
+ if (o != null)
864
+ if (typeof o == "object") {
865
+ let [p, E] = Object.entries(o)[0];
866
+ y[p] = E;
867
+ } else
868
+ y.fontColor = o;
869
+ if (l != null)
870
+ if (typeof l == "object") {
871
+ let [p, E] = Object.entries(l)[0];
872
+ y[p] = E;
873
+ } else
874
+ y.borderColor = l;
875
+ if (a != null)
876
+ if (typeof a == "object") {
877
+ let [p, E] = Object.entries(a)[0];
878
+ y[p] = E;
879
+ } else
880
+ y.shadowing = a;
881
+ if (r != null)
882
+ if (typeof r == "object") {
883
+ let [p, E] = Object.entries(r)[0];
884
+ y[p] = E;
885
+ } else
886
+ y.shape = r;
887
+ if (n != null)
888
+ if (typeof n == "object") {
889
+ let [p, E] = Object.entries(n)[0];
890
+ y[p] = E;
891
+ } else
892
+ y.sprite = n;
893
+ if (i != null)
894
+ if (typeof i == "object") {
895
+ let [p, E] = Object.entries(i)[0];
896
+ y[p] = E;
897
+ } else
898
+ y.techn = i;
899
+ if (u != null)
900
+ if (typeof u == "object") {
901
+ let [p, E] = Object.entries(u)[0];
902
+ y[p] = E;
903
+ } else
904
+ y.legendText = u;
905
+ if (d != null)
906
+ if (typeof d == "object") {
907
+ let [p, E] = Object.entries(d)[0];
908
+ y[p] = E;
909
+ } else
910
+ y.legendSprite = d;
911
+ }
912
+ }, "updateElStyle"), Ke = /* @__PURE__ */ g(function(e, t, s, o, l, a, r) {
913
+ const n = Pt.find((i) => i.from === t && i.to === s);
914
+ if (n !== void 0) {
915
+ if (o != null)
916
+ if (typeof o == "object") {
917
+ let [i, u] = Object.entries(o)[0];
918
+ n[i] = u;
919
+ } else
920
+ n.textColor = o;
921
+ if (l != null)
922
+ if (typeof l == "object") {
923
+ let [i, u] = Object.entries(l)[0];
924
+ n[i] = u;
925
+ } else
926
+ n.lineColor = l;
927
+ if (a != null)
928
+ if (typeof a == "object") {
929
+ let [i, u] = Object.entries(a)[0];
930
+ n[i] = parseInt(u);
931
+ } else
932
+ n.offsetX = parseInt(a);
933
+ if (r != null)
934
+ if (typeof r == "object") {
935
+ let [i, u] = Object.entries(r)[0];
936
+ n[i] = parseInt(u);
937
+ } else
938
+ n.offsetY = parseInt(r);
939
+ }
940
+ }, "updateRelStyle"), Je = /* @__PURE__ */ g(function(e, t, s) {
941
+ let o = Ut, l = Ft;
942
+ if (typeof t == "object") {
943
+ const a = Object.values(t)[0];
944
+ o = parseInt(a);
945
+ } else
946
+ o = parseInt(t);
947
+ if (typeof s == "object") {
948
+ const a = Object.values(s)[0];
949
+ l = parseInt(a);
950
+ } else
951
+ l = parseInt(s);
952
+ o >= 1 && (Ut = o), l >= 1 && (Ft = l);
953
+ }, "updateLayoutConfig"), Ze = /* @__PURE__ */ g(function() {
954
+ return Ut;
955
+ }, "getC4ShapeInRow"), $e = /* @__PURE__ */ g(function() {
956
+ return Ft;
957
+ }, "getC4BoundaryInRow"), t0 = /* @__PURE__ */ g(function() {
958
+ return B;
959
+ }, "getCurrentBoundaryParse"), e0 = /* @__PURE__ */ g(function() {
960
+ return F;
961
+ }, "getParentBoundaryParse"), ge = /* @__PURE__ */ g(function(e) {
962
+ return e == null ? V : V.filter((t) => t.parentBoundary === e);
963
+ }, "getC4ShapeArray"), a0 = /* @__PURE__ */ g(function(e) {
964
+ return V.find((t) => t.alias === e);
965
+ }, "getC4Shape"), i0 = /* @__PURE__ */ g(function(e) {
966
+ return Object.keys(ge(e));
967
+ }, "getC4ShapeKeys"), be = /* @__PURE__ */ g(function(e) {
968
+ return e == null ? X : X.filter((t) => t.parentBoundary === e);
969
+ }, "getBoundaries"), n0 = be, r0 = /* @__PURE__ */ g(function() {
970
+ return Pt;
971
+ }, "getRels"), s0 = /* @__PURE__ */ g(function() {
972
+ return ee;
973
+ }, "getTitle"), l0 = /* @__PURE__ */ g(function(e) {
974
+ ae = e;
975
+ }, "setWrap"), mt = /* @__PURE__ */ g(function() {
976
+ return ae;
977
+ }, "autoWrap"), o0 = /* @__PURE__ */ g(function() {
978
+ V = [], X = [
979
+ {
980
+ alias: "global",
981
+ label: { text: "global" },
982
+ type: { text: "global" },
983
+ tags: null,
984
+ link: null,
985
+ parentBoundary: ""
986
+ }
987
+ ], F = "", B = "global", xt = [""], Pt = [], xt = [""], ee = "", ae = !1, Ut = 4, Ft = 2;
988
+ }, "clear"), c0 = {
989
+ SOLID: 0,
990
+ DOTTED: 1,
991
+ NOTE: 2,
992
+ SOLID_CROSS: 3,
993
+ DOTTED_CROSS: 4,
994
+ SOLID_OPEN: 5,
995
+ DOTTED_OPEN: 6,
996
+ LOOP_START: 10,
997
+ LOOP_END: 11,
998
+ ALT_START: 12,
999
+ ALT_ELSE: 13,
1000
+ ALT_END: 14,
1001
+ OPT_START: 15,
1002
+ OPT_END: 16,
1003
+ ACTIVE_START: 17,
1004
+ ACTIVE_END: 18,
1005
+ PAR_START: 19,
1006
+ PAR_AND: 20,
1007
+ PAR_END: 21,
1008
+ RECT_START: 22,
1009
+ RECT_END: 23,
1010
+ SOLID_POINT: 24,
1011
+ DOTTED_POINT: 25
1012
+ }, h0 = {
1013
+ FILLED: 0,
1014
+ OPEN: 1
1015
+ }, u0 = {
1016
+ LEFTOF: 0,
1017
+ RIGHTOF: 1,
1018
+ OVER: 2
1019
+ }, d0 = /* @__PURE__ */ g(function(e) {
1020
+ ee = pe(e, Dt());
1021
+ }, "setTitle"), Zt = {
1022
+ addPersonOrSystem: Ve,
1023
+ addPersonOrSystemBoundary: We,
1024
+ addContainer: ze,
1025
+ addContainerBoundary: Qe,
1026
+ addComponent: Xe,
1027
+ addDeploymentNode: He,
1028
+ popBoundaryParseStack: qe,
1029
+ addRel: Fe,
1030
+ updateElStyle: Ge,
1031
+ updateRelStyle: Ke,
1032
+ updateLayoutConfig: Je,
1033
+ autoWrap: mt,
1034
+ setWrap: l0,
1035
+ getC4ShapeArray: ge,
1036
+ getC4Shape: a0,
1037
+ getC4ShapeKeys: i0,
1038
+ getBoundaries: be,
1039
+ getBoundarys: n0,
1040
+ getCurrentBoundaryParse: t0,
1041
+ getParentBoundaryParse: e0,
1042
+ getRels: r0,
1043
+ getTitle: s0,
1044
+ getC4Type: je,
1045
+ getC4ShapeInRow: Ze,
1046
+ getC4BoundaryInRow: $e,
1047
+ setAccTitle: De,
1048
+ getAccTitle: Pe,
1049
+ getAccDescription: Be,
1050
+ setAccDescription: Ie,
1051
+ getConfig: /* @__PURE__ */ g(() => Dt().c4, "getConfig"),
1052
+ clear: o0,
1053
+ LINETYPE: c0,
1054
+ ARROWTYPE: h0,
1055
+ PLACEMENT: u0,
1056
+ setTitle: d0,
1057
+ setC4Type: Ue
1058
+ // apply,
1059
+ }, ie = /* @__PURE__ */ g(function(e, t) {
1060
+ return Oe(e, t);
1061
+ }, "drawRect"), _e = /* @__PURE__ */ g(function(e, t, s, o, l, a) {
1062
+ const r = e.append("image");
1063
+ r.attr("width", t), r.attr("height", s), r.attr("x", o), r.attr("y", l);
1064
+ let n = a.startsWith("data:image/png;base64") ? a : Ne(a);
1065
+ r.attr("xlink:href", n);
1066
+ }, "drawImage"), f0 = /* @__PURE__ */ g((e, t, s) => {
1067
+ const o = e.append("g");
1068
+ let l = 0;
1069
+ for (let a of t) {
1070
+ let r = a.textColor ? a.textColor : "#444444", n = a.lineColor ? a.lineColor : "#444444", i = a.offsetX ? parseInt(a.offsetX) : 0, u = a.offsetY ? parseInt(a.offsetY) : 0, d = "";
1071
+ if (l === 0) {
1072
+ let p = o.append("line");
1073
+ p.attr("x1", a.startPoint.x), p.attr("y1", a.startPoint.y), p.attr("x2", a.endPoint.x), p.attr("y2", a.endPoint.y), p.attr("stroke-width", "1"), p.attr("stroke", n), p.style("fill", "none"), a.type !== "rel_b" && p.attr("marker-end", "url(" + d + "#arrowhead)"), (a.type === "birel" || a.type === "rel_b") && p.attr("marker-start", "url(" + d + "#arrowend)"), l = -1;
1074
+ } else {
1075
+ let p = o.append("path");
1076
+ p.attr("fill", "none").attr("stroke-width", "1").attr("stroke", n).attr(
1077
+ "d",
1078
+ "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", a.startPoint.x).replaceAll("starty", a.startPoint.y).replaceAll(
1079
+ "controlx",
1080
+ a.startPoint.x + (a.endPoint.x - a.startPoint.x) / 2 - (a.endPoint.x - a.startPoint.x) / 4
1081
+ ).replaceAll("controly", a.startPoint.y + (a.endPoint.y - a.startPoint.y) / 2).replaceAll("stopx", a.endPoint.x).replaceAll("stopy", a.endPoint.y)
1082
+ ), a.type !== "rel_b" && p.attr("marker-end", "url(" + d + "#arrowhead)"), (a.type === "birel" || a.type === "rel_b") && p.attr("marker-start", "url(" + d + "#arrowend)");
1083
+ }
1084
+ let y = s.messageFont();
1085
+ Q(s)(
1086
+ a.label.text,
1087
+ o,
1088
+ Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + i,
1089
+ Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + u,
1090
+ a.label.width,
1091
+ a.label.height,
1092
+ { fill: r },
1093
+ y
1094
+ ), a.techn && a.techn.text !== "" && (y = s.messageFont(), Q(s)(
1095
+ "[" + a.techn.text + "]",
1096
+ o,
1097
+ Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + i,
1098
+ Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + s.messageFontSize + 5 + u,
1099
+ Math.max(a.label.width, a.techn.width),
1100
+ a.techn.height,
1101
+ { fill: r, "font-style": "italic" },
1102
+ y
1103
+ ));
1104
+ }
1105
+ }, "drawRels"), p0 = /* @__PURE__ */ g(function(e, t, s) {
1106
+ const o = e.append("g");
1107
+ let l = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", r = t.fontColor ? t.fontColor : "black", n = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1108
+ t.nodeType && (n = { "stroke-width": 1 });
1109
+ let i = {
1110
+ x: t.x,
1111
+ y: t.y,
1112
+ fill: l,
1113
+ stroke: a,
1114
+ width: t.width,
1115
+ height: t.height,
1116
+ rx: 2.5,
1117
+ ry: 2.5,
1118
+ attrs: n
1119
+ };
1120
+ ie(o, i);
1121
+ let u = s.boundaryFont();
1122
+ u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = r, Q(s)(
1123
+ t.label.text,
1124
+ o,
1125
+ t.x,
1126
+ t.y + t.label.Y,
1127
+ t.width,
1128
+ t.height,
1129
+ { fill: "#444444" },
1130
+ u
1131
+ ), t.type && t.type.text !== "" && (u = s.boundaryFont(), u.fontColor = r, Q(s)(
1132
+ t.type.text,
1133
+ o,
1134
+ t.x,
1135
+ t.y + t.type.Y,
1136
+ t.width,
1137
+ t.height,
1138
+ { fill: "#444444" },
1139
+ u
1140
+ )), t.descr && t.descr.text !== "" && (u = s.boundaryFont(), u.fontSize = u.fontSize - 2, u.fontColor = r, Q(s)(
1141
+ t.descr.text,
1142
+ o,
1143
+ t.x,
1144
+ t.y + t.descr.Y,
1145
+ t.width,
1146
+ t.height,
1147
+ { fill: "#444444" },
1148
+ u
1149
+ ));
1150
+ }, "drawBoundary"), y0 = /* @__PURE__ */ g(function(e, t, s) {
1151
+ let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], l = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], a = t.fontColor ? t.fontColor : "#FFFFFF", r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1152
+ switch (t.typeC4Shape.text) {
1153
+ case "person":
1154
+ r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1155
+ break;
1156
+ case "external_person":
1157
+ r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1158
+ break;
1159
+ }
1160
+ const n = e.append("g");
1161
+ n.attr("class", "person-man");
1162
+ const i = Re();
1163
+ switch (t.typeC4Shape.text) {
1164
+ case "person":
1165
+ case "external_person":
1166
+ case "system":
1167
+ case "external_system":
1168
+ case "container":
1169
+ case "external_container":
1170
+ case "component":
1171
+ case "external_component":
1172
+ i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = l, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, ie(n, i);
1173
+ break;
1174
+ case "system_db":
1175
+ case "external_system_db":
1176
+ case "container_db":
1177
+ case "external_container_db":
1178
+ case "component_db":
1179
+ case "external_component_db":
1180
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1181
+ "d",
1182
+ "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)
1183
+ ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1184
+ "d",
1185
+ "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2)
1186
+ );
1187
+ break;
1188
+ case "system_queue":
1189
+ case "external_system_queue":
1190
+ case "container_queue":
1191
+ case "external_container_queue":
1192
+ case "component_queue":
1193
+ case "external_component_queue":
1194
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1195
+ "d",
1196
+ "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)
1197
+ ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1198
+ "d",
1199
+ "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2)
1200
+ );
1201
+ break;
1202
+ }
1203
+ let u = A0(s, t.typeC4Shape.text);
1204
+ switch (n.append("text").attr("fill", a).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
1205
+ case "person":
1206
+ case "external_person":
1207
+ _e(
1208
+ n,
1209
+ 48,
1210
+ 48,
1211
+ t.x + t.width / 2 - 24,
1212
+ t.y + t.image.Y,
1213
+ r
1214
+ );
1215
+ break;
1216
+ }
1217
+ let d = s[t.typeC4Shape.text + "Font"]();
1218
+ return d.fontWeight = "bold", d.fontSize = d.fontSize + 2, d.fontColor = a, Q(s)(
1219
+ t.label.text,
1220
+ n,
1221
+ t.x,
1222
+ t.y + t.label.Y,
1223
+ t.width,
1224
+ t.height,
1225
+ { fill: a },
1226
+ d
1227
+ ), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = a, t.techn && t.techn?.text !== "" ? Q(s)(
1228
+ t.techn.text,
1229
+ n,
1230
+ t.x,
1231
+ t.y + t.techn.Y,
1232
+ t.width,
1233
+ t.height,
1234
+ { fill: a, "font-style": "italic" },
1235
+ d
1236
+ ) : t.type && t.type.text !== "" && Q(s)(
1237
+ t.type.text,
1238
+ n,
1239
+ t.x,
1240
+ t.y + t.type.Y,
1241
+ t.width,
1242
+ t.height,
1243
+ { fill: a, "font-style": "italic" },
1244
+ d
1245
+ ), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = a, Q(s)(
1246
+ t.descr.text,
1247
+ n,
1248
+ t.x,
1249
+ t.y + t.descr.Y,
1250
+ t.width,
1251
+ t.height,
1252
+ { fill: a },
1253
+ d
1254
+ )), t.height;
1255
+ }, "drawC4Shape"), g0 = /* @__PURE__ */ g(function(e) {
1256
+ e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1257
+ "d",
1258
+ "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"
1259
+ );
1260
+ }, "insertDatabaseIcon"), b0 = /* @__PURE__ */ g(function(e) {
1261
+ e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1262
+ "d",
1263
+ "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"
1264
+ );
1265
+ }, "insertComputerIcon"), _0 = /* @__PURE__ */ g(function(e) {
1266
+ e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1267
+ "d",
1268
+ "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"
1269
+ );
1270
+ }, "insertClockIcon"), x0 = /* @__PURE__ */ g(function(e) {
1271
+ e.append("defs").append("marker").attr("id", "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");
1272
+ }, "insertArrowHead"), m0 = /* @__PURE__ */ g(function(e) {
1273
+ e.append("defs").append("marker").attr("id", "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");
1274
+ }, "insertArrowEnd"), v0 = /* @__PURE__ */ g(function(e) {
1275
+ e.append("defs").append("marker").attr("id", "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");
1276
+ }, "insertArrowFilledHead"), E0 = /* @__PURE__ */ g(function(e) {
1277
+ e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
1278
+ }, "insertDynamicNumber"), k0 = /* @__PURE__ */ g(function(e) {
1279
+ const s = e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1280
+ s.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"), s.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");
1281
+ }, "insertArrowCrossHead"), A0 = /* @__PURE__ */ g((e, t) => ({
1282
+ fontFamily: e[t + "FontFamily"],
1283
+ fontSize: e[t + "FontSize"],
1284
+ fontWeight: e[t + "FontWeight"]
1285
+ }), "getC4ShapeFont"), Q = /* @__PURE__ */ function() {
1286
+ function e(l, a, r, n, i, u, d) {
1287
+ const y = a.append("text").attr("x", r + i / 2).attr("y", n + u / 2 + 5).style("text-anchor", "middle").text(l);
1288
+ o(y, d);
1289
+ }
1290
+ g(e, "byText");
1291
+ function t(l, a, r, n, i, u, d, y) {
1292
+ const { fontSize: p, fontFamily: E, fontWeight: O } = y, S = l.split(Jt.lineBreakRegex);
1293
+ for (let P = 0; P < S.length; P++) {
1294
+ const M = P * p - p * (S.length - 1) / 2, U = a.append("text").attr("x", r + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", p).style("font-weight", O).style("font-family", E);
1295
+ U.append("tspan").attr("dy", M).text(S[P]).attr("alignment-baseline", "mathematical"), o(U, d);
1296
+ }
1297
+ }
1298
+ g(t, "byTspan");
1299
+ function s(l, a, r, n, i, u, d, y) {
1300
+ const p = a.append("switch"), O = p.append("foreignObject").attr("x", r).attr("y", n).attr("width", i).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1301
+ O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, p, r, n, i, u, d, y), o(O, d);
1302
+ }
1303
+ g(s, "byFo");
1304
+ function o(l, a) {
1305
+ for (const r in a)
1306
+ a.hasOwnProperty(r) && l.attr(r, a[r]);
1307
+ }
1308
+ return g(o, "_setTextAttrs"), function(l) {
1309
+ return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? e : t;
1310
+ };
1311
+ }(), z = {
1312
+ drawRect: ie,
1313
+ drawBoundary: p0,
1314
+ drawC4Shape: y0,
1315
+ drawRels: f0,
1316
+ drawImage: _e,
1317
+ insertArrowHead: x0,
1318
+ insertArrowEnd: m0,
1319
+ insertArrowFilledHead: v0,
1320
+ insertDynamicNumber: E0,
1321
+ insertArrowCrossHead: k0,
1322
+ insertDatabaseIcon: g0,
1323
+ insertComputerIcon: b0,
1324
+ insertClockIcon: _0
1325
+ }, Vt = 0, zt = 0, xe = 4, $t = 2;
1326
+ jt.yy = Zt;
1327
+ var _ = {}, me = class {
1328
+ static {
1329
+ g(this, "Bounds");
1330
+ }
1331
+ constructor(e) {
1332
+ 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, te(e.db.getConfig());
1333
+ }
1334
+ setData(e, t, s, o) {
1335
+ this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = s, this.nextData.stopy = this.data.stopy = o;
1336
+ }
1337
+ updateVal(e, t, s, o) {
1338
+ e[t] === void 0 ? e[t] = s : e[t] = o(s, e[t]);
1339
+ }
1340
+ insert(e) {
1341
+ this.nextData.cnt = this.nextData.cnt + 1;
1342
+ let t = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, s = t + e.width, o = this.nextData.starty + e.margin * 2, l = o + e.height;
1343
+ (t >= this.data.widthLimit || s >= this.data.widthLimit || this.nextData.cnt > xe) && (t = this.nextData.startx + e.margin + _.nextLinePaddingX, o = this.nextData.stopy + e.margin * 2, this.nextData.stopx = s = t + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = l = o + e.height, this.nextData.cnt = 1), e.x = t, e.y = o, this.updateVal(this.data, "startx", t, Math.min), this.updateVal(this.data, "starty", o, Math.min), this.updateVal(this.data, "stopx", s, Math.max), this.updateVal(this.data, "stopy", l, Math.max), this.updateVal(this.nextData, "startx", t, Math.min), this.updateVal(this.nextData, "starty", o, Math.min), this.updateVal(this.nextData, "stopx", s, Math.max), this.updateVal(this.nextData, "stopy", l, Math.max);
1344
+ }
1345
+ init(e) {
1346
+ this.name = "", this.data = {
1347
+ startx: void 0,
1348
+ stopx: void 0,
1349
+ starty: void 0,
1350
+ stopy: void 0,
1351
+ widthLimit: void 0
1352
+ }, this.nextData = {
1353
+ startx: void 0,
1354
+ stopx: void 0,
1355
+ starty: void 0,
1356
+ stopy: void 0,
1357
+ cnt: 0
1358
+ }, te(e.db.getConfig());
1359
+ }
1360
+ bumpLastMargin(e) {
1361
+ this.data.stopx += e, this.data.stopy += e;
1362
+ }
1363
+ }, te = /* @__PURE__ */ g(function(e) {
1364
+ Se(_, e), e.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = e.fontFamily), e.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = e.fontSize), e.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = e.fontWeight);
1365
+ }, "setConf"), St = /* @__PURE__ */ g((e, t) => ({
1366
+ fontFamily: e[t + "FontFamily"],
1367
+ fontSize: e[t + "FontSize"],
1368
+ fontWeight: e[t + "FontWeight"]
1369
+ }), "c4ShapeFont"), Yt = /* @__PURE__ */ g((e) => ({
1370
+ fontFamily: e.boundaryFontFamily,
1371
+ fontSize: e.boundaryFontSize,
1372
+ fontWeight: e.boundaryFontWeight
1373
+ }), "boundaryFont"), C0 = /* @__PURE__ */ g((e) => ({
1374
+ fontFamily: e.messageFontFamily,
1375
+ fontSize: e.messageFontSize,
1376
+ fontWeight: e.messageFontWeight
1377
+ }), "messageFont");
1378
+ function j(e, t, s, o, l) {
1379
+ if (!t[e].width)
1380
+ if (s)
1381
+ t[e].text = Me(t[e].text, l, o), t[e].textLines = t[e].text.split(Jt.lineBreakRegex).length, t[e].width = l, t[e].height = he(t[e].text, o);
1382
+ else {
1383
+ let a = t[e].text.split(Jt.lineBreakRegex);
1384
+ t[e].textLines = a.length;
1385
+ let r = 0;
1386
+ t[e].height = 0, t[e].width = 0;
1387
+ for (const n of a)
1388
+ t[e].width = Math.max(
1389
+ Tt(n, o),
1390
+ t[e].width
1391
+ ), r = he(n, o), t[e].height = t[e].height + r;
1392
+ }
1393
+ }
1394
+ g(j, "calcC4ShapeTextWH");
1395
+ var ve = /* @__PURE__ */ g(function(e, t, s) {
1396
+ t.x = s.data.startx, t.y = s.data.starty, t.width = s.data.stopx - s.data.startx, t.height = s.data.stopy - s.data.starty, t.label.y = _.c4ShapeMargin - 35;
1397
+ let o = t.wrap && _.wrap, l = Yt(_);
1398
+ l.fontSize = l.fontSize + 2, l.fontWeight = "bold";
1399
+ let a = Tt(t.label.text, l);
1400
+ j("label", t, o, l, a), z.drawBoundary(e, t, _);
1401
+ }, "drawBoundary"), Ee = /* @__PURE__ */ g(function(e, t, s, o) {
1402
+ let l = 0;
1403
+ for (const a of o) {
1404
+ l = 0;
1405
+ const r = s[a];
1406
+ let n = St(_, r.typeC4Shape.text);
1407
+ switch (n.fontSize = n.fontSize - 2, r.typeC4Shape.width = Tt(
1408
+ "«" + r.typeC4Shape.text + "»",
1409
+ n
1410
+ ), r.typeC4Shape.height = n.fontSize + 2, r.typeC4Shape.Y = _.c4ShapePadding, l = r.typeC4Shape.Y + r.typeC4Shape.height - 4, r.image = { width: 0, height: 0, Y: 0 }, r.typeC4Shape.text) {
1411
+ case "person":
1412
+ case "external_person":
1413
+ r.image.width = 48, r.image.height = 48, r.image.Y = l, l = r.image.Y + r.image.height;
1414
+ break;
1415
+ }
1416
+ r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = l, l = r.image.Y + r.image.height);
1417
+ let i = r.wrap && _.wrap, u = _.width - _.c4ShapePadding * 2, d = St(_, r.typeC4Shape.text);
1418
+ if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j("label", r, i, d, u), r.label.Y = l + 8, l = r.label.Y + r.label.height, r.type && r.type.text !== "") {
1419
+ r.type.text = "[" + r.type.text + "]";
1420
+ let E = St(_, r.typeC4Shape.text);
1421
+ j("type", r, i, E, u), r.type.Y = l + 5, l = r.type.Y + r.type.height;
1422
+ } else if (r.techn && r.techn.text !== "") {
1423
+ r.techn.text = "[" + r.techn.text + "]";
1424
+ let E = St(_, r.techn.text);
1425
+ j("techn", r, i, E, u), r.techn.Y = l + 5, l = r.techn.Y + r.techn.height;
1426
+ }
1427
+ let y = l, p = r.label.width;
1428
+ if (r.descr && r.descr.text !== "") {
1429
+ let E = St(_, r.typeC4Shape.text);
1430
+ j("descr", r, i, E, u), r.descr.Y = l + 20, l = r.descr.Y + r.descr.height, p = Math.max(r.label.width, r.descr.width), y = l - r.descr.textLines * 5;
1431
+ }
1432
+ p = p + _.c4ShapePadding, r.width = Math.max(r.width || _.width, p, _.width), r.height = Math.max(r.height || _.height, y, _.height), r.margin = r.margin || _.c4ShapeMargin, e.insert(r), z.drawC4Shape(t, r, _);
1433
+ }
1434
+ e.bumpLastMargin(_.c4ShapeMargin);
1435
+ }, "drawC4ShapeArray"), Y = class {
1436
+ static {
1437
+ g(this, "Point");
1438
+ }
1439
+ constructor(e, t) {
1440
+ this.x = e, this.y = t;
1441
+ }
1442
+ }, de = /* @__PURE__ */ g(function(e, t) {
1443
+ let s = e.x, o = e.y, l = t.x, a = t.y, r = s + e.width / 2, n = o + e.height / 2, i = Math.abs(s - l), u = Math.abs(o - a), d = u / i, y = e.height / e.width, p = null;
1444
+ return o == a && s < l ? p = new Y(s + e.width, n) : o == a && s > l ? p = new Y(s, n) : s == l && o < a ? p = new Y(r, o + e.height) : s == l && o > a && (p = new Y(r, o)), s > l && o < a ? y >= d ? p = new Y(s, n + d * e.width / 2) : p = new Y(
1445
+ r - i / u * e.height / 2,
1446
+ o + e.height
1447
+ ) : s < l && o < a ? y >= d ? p = new Y(s + e.width, n + d * e.width / 2) : p = new Y(
1448
+ r + i / u * e.height / 2,
1449
+ o + e.height
1450
+ ) : s < l && o > a ? y >= d ? p = new Y(s + e.width, n - d * e.width / 2) : p = new Y(r + e.height / 2 * i / u, o) : s > l && o > a && (y >= d ? p = new Y(s, n - e.width / 2 * d) : p = new Y(r - e.height / 2 * i / u, o)), p;
1451
+ }, "getIntersectPoint"), w0 = /* @__PURE__ */ g(function(e, t) {
1452
+ let s = { x: 0, y: 0 };
1453
+ s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
1454
+ let o = de(e, s);
1455
+ s.x = e.x + e.width / 2, s.y = e.y + e.height / 2;
1456
+ let l = de(t, s);
1457
+ return { startPoint: o, endPoint: l };
1458
+ }, "getIntersectPoints"), T0 = /* @__PURE__ */ g(function(e, t, s, o) {
1459
+ let l = 0;
1460
+ for (let a of t) {
1461
+ l = l + 1;
1462
+ let r = a.wrap && _.wrap, n = C0(_);
1463
+ o.db.getC4Type() === "C4Dynamic" && (a.label.text = l + ": " + a.label.text);
1464
+ let u = Tt(a.label.text, n);
1465
+ j("label", a, r, n, u), a.techn && a.techn.text !== "" && (u = Tt(a.techn.text, n), j("techn", a, r, n, u)), a.descr && a.descr.text !== "" && (u = Tt(a.descr.text, n), j("descr", a, r, n, u));
1466
+ let d = s(a.from), y = s(a.to), p = w0(d, y);
1467
+ a.startPoint = p.startPoint, a.endPoint = p.endPoint;
1468
+ }
1469
+ z.drawRels(e, t, _);
1470
+ }, "drawRels");
1471
+ function ne(e, t, s, o, l) {
1472
+ let a = new me(l);
1473
+ a.data.widthLimit = s.data.widthLimit / Math.min($t, o.length);
1474
+ for (let [r, n] of o.entries()) {
1475
+ let i = 0;
1476
+ n.image = { width: 0, height: 0, Y: 0 }, n.sprite && (n.image.width = 48, n.image.height = 48, n.image.Y = i, i = n.image.Y + n.image.height);
1477
+ let u = n.wrap && _.wrap, d = Yt(_);
1478
+ if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j(
1479
+ "label",
1480
+ n,
1481
+ u,
1482
+ d,
1483
+ a.data.widthLimit
1484
+ ), n.label.Y = i + 8, i = n.label.Y + n.label.height, n.type && n.type.text !== "") {
1485
+ n.type.text = "[" + n.type.text + "]";
1486
+ let O = Yt(_);
1487
+ j(
1488
+ "type",
1489
+ n,
1490
+ u,
1491
+ O,
1492
+ a.data.widthLimit
1493
+ ), n.type.Y = i + 5, i = n.type.Y + n.type.height;
1494
+ }
1495
+ if (n.descr && n.descr.text !== "") {
1496
+ let O = Yt(_);
1497
+ O.fontSize = O.fontSize - 2, j(
1498
+ "descr",
1499
+ n,
1500
+ u,
1501
+ O,
1502
+ a.data.widthLimit
1503
+ ), n.descr.Y = i + 20, i = n.descr.Y + n.descr.height;
1504
+ }
1505
+ if (r == 0 || r % $t === 0) {
1506
+ let O = s.data.startx + _.diagramMarginX, S = s.data.stopy + _.diagramMarginY + i;
1507
+ a.setData(O, O, S, S);
1508
+ } else {
1509
+ let O = a.data.stopx !== a.data.startx ? a.data.stopx + _.diagramMarginX : a.data.startx, S = a.data.starty;
1510
+ a.setData(O, O, S, S);
1511
+ }
1512
+ a.name = n.alias;
1513
+ let y = l.db.getC4ShapeArray(n.alias), p = l.db.getC4ShapeKeys(n.alias);
1514
+ p.length > 0 && Ee(
1515
+ a,
1516
+ e,
1517
+ y,
1518
+ p
1519
+ ), t = n.alias;
1520
+ let E = l.db.getBoundaries(t);
1521
+ E.length > 0 && ne(
1522
+ e,
1523
+ t,
1524
+ a,
1525
+ E,
1526
+ l
1527
+ ), n.alias !== "global" && ve(e, n, a), s.data.stopy = Math.max(
1528
+ a.data.stopy + _.c4ShapeMargin,
1529
+ s.data.stopy
1530
+ ), s.data.stopx = Math.max(
1531
+ a.data.stopx + _.c4ShapeMargin,
1532
+ s.data.stopx
1533
+ ), Vt = Math.max(Vt, s.data.stopx), zt = Math.max(zt, s.data.stopy);
1534
+ }
1535
+ }
1536
+ g(ne, "drawInsideBoundary");
1537
+ var O0 = /* @__PURE__ */ g(function(e, t, s, o) {
1538
+ _ = Dt().c4;
1539
+ const l = Dt().securityLevel;
1540
+ let a;
1541
+ l === "sandbox" && (a = Nt("#i" + t));
1542
+ const r = l === "sandbox" ? Nt(a.nodes()[0].contentDocument.body) : Nt("body");
1543
+ let n = o.db;
1544
+ o.db.setWrap(_.wrap), xe = n.getC4ShapeInRow(), $t = n.getC4BoundaryInRow(), ue.debug(`C:${JSON.stringify(_, null, 2)}`);
1545
+ const i = l === "sandbox" ? r.select(`[id="${t}"]`) : Nt(`[id="${t}"]`);
1546
+ z.insertComputerIcon(i), z.insertDatabaseIcon(i), z.insertClockIcon(i);
1547
+ let u = new me(o);
1548
+ u.setData(
1549
+ _.diagramMarginX,
1550
+ _.diagramMarginX,
1551
+ _.diagramMarginY,
1552
+ _.diagramMarginY
1553
+ ), u.data.widthLimit = screen.availWidth, Vt = _.diagramMarginX, zt = _.diagramMarginY;
1554
+ const d = o.db.getTitle();
1555
+ let y = o.db.getBoundaries("");
1556
+ ne(i, "", u, y, o), z.insertArrowHead(i), z.insertArrowEnd(i), z.insertArrowCrossHead(i), z.insertArrowFilledHead(i), T0(i, o.db.getRels(), o.db.getC4Shape, o), u.data.stopx = Vt, u.data.stopy = zt;
1557
+ const p = u.data;
1558
+ let O = p.stopy - p.starty + 2 * _.diagramMarginY;
1559
+ const P = p.stopx - p.startx + 2 * _.diagramMarginX;
1560
+ d && i.append("text").text(d).attr("x", (p.stopx - p.startx) / 2 - 4 * _.diagramMarginX).attr("y", p.starty + _.diagramMarginY), Le(i, O, P, _.useMaxWidth);
1561
+ const M = d ? 60 : 0;
1562
+ i.attr(
1563
+ "viewBox",
1564
+ p.startx - _.diagramMarginX + " -" + (_.diagramMarginY + M) + " " + P + " " + (O + M)
1565
+ ), ue.debug("models:", p);
1566
+ }, "draw"), fe = {
1567
+ drawPersonOrSystemArray: Ee,
1568
+ drawBoundary: ve,
1569
+ setConf: te,
1570
+ draw: O0
1571
+ }, R0 = /* @__PURE__ */ g((e) => `.person {
1572
+ stroke: ${e.personBorder};
1573
+ fill: ${e.personBkg};
1574
+ }
1575
+ `, "getStyles"), S0 = R0, B0 = {
1576
+ parser: Ye,
1577
+ db: Zt,
1578
+ renderer: fe,
1579
+ styles: S0,
1580
+ init: /* @__PURE__ */ g(({ c4: e, wrap: t }) => {
1581
+ fe.setConf(e), Zt.setWrap(t);
1582
+ }, "init")
1583
+ };
1584
+ export {
1585
+ B0 as diagram
1586
+ };