@oxide/design-system 1.7.7--canary.fc65d31.0 → 1.7.7--canary.5c25e1b.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/components/dist/index.d.ts +2 -5
  2. package/components/dist/index.js +126 -1729
  3. package/components/dist/index.js.map +1 -1
  4. package/package.json +1 -2
  5. package/components/dist/architecture-I3QFYML2-YZWO3N3B.js +0 -14
  6. package/components/dist/architecture-I3QFYML2-YZWO3N3B.js.map +0 -1
  7. package/components/dist/architectureDiagram-UYN6MBPD-HXPGIDN7.js +0 -8846
  8. package/components/dist/architectureDiagram-UYN6MBPD-HXPGIDN7.js.map +0 -1
  9. package/components/dist/blockDiagram-ZHA2E4KO-OAYYKCLF.js +0 -3721
  10. package/components/dist/blockDiagram-ZHA2E4KO-OAYYKCLF.js.map +0 -1
  11. package/components/dist/c4Diagram-6F5ED5ID-TBHFK2XY.js +0 -2599
  12. package/components/dist/c4Diagram-6F5ED5ID-TBHFK2XY.js.map +0 -1
  13. package/components/dist/chunk-2DDKDUUO.js +0 -439
  14. package/components/dist/chunk-2DDKDUUO.js.map +0 -1
  15. package/components/dist/chunk-2NHDMTP7.js +0 -26905
  16. package/components/dist/chunk-2NHDMTP7.js.map +0 -1
  17. package/components/dist/chunk-4IJS44L3.js +0 -22
  18. package/components/dist/chunk-4IJS44L3.js.map +0 -1
  19. package/components/dist/chunk-562WOS3Z.js +0 -1109
  20. package/components/dist/chunk-562WOS3Z.js.map +0 -1
  21. package/components/dist/chunk-6UD2HOKB.js +0 -17082
  22. package/components/dist/chunk-6UD2HOKB.js.map +0 -1
  23. package/components/dist/chunk-76BOQ7BT.js +0 -63
  24. package/components/dist/chunk-76BOQ7BT.js.map +0 -1
  25. package/components/dist/chunk-7I5DT373.js +0 -97
  26. package/components/dist/chunk-7I5DT373.js.map +0 -1
  27. package/components/dist/chunk-BPREMNVP.js +0 -1875
  28. package/components/dist/chunk-BPREMNVP.js.map +0 -1
  29. package/components/dist/chunk-BVYAEHG3.js +0 -122
  30. package/components/dist/chunk-BVYAEHG3.js.map +0 -1
  31. package/components/dist/chunk-BW7DFBOS.js +0 -152
  32. package/components/dist/chunk-BW7DFBOS.js.map +0 -1
  33. package/components/dist/chunk-EZG2MNHW.js +0 -59
  34. package/components/dist/chunk-EZG2MNHW.js.map +0 -1
  35. package/components/dist/chunk-G6QWNAHJ.js +0 -43
  36. package/components/dist/chunk-G6QWNAHJ.js.map +0 -1
  37. package/components/dist/chunk-H72D3HRR.js +0 -1244
  38. package/components/dist/chunk-H72D3HRR.js.map +0 -1
  39. package/components/dist/chunk-K532NZMW.js +0 -46
  40. package/components/dist/chunk-K532NZMW.js.map +0 -1
  41. package/components/dist/chunk-LC3BX2KL.js +0 -25
  42. package/components/dist/chunk-LC3BX2KL.js.map +0 -1
  43. package/components/dist/chunk-LQ2ABR7F.js +0 -5665
  44. package/components/dist/chunk-LQ2ABR7F.js.map +0 -1
  45. package/components/dist/chunk-M6L3MM6K.js +0 -22
  46. package/components/dist/chunk-M6L3MM6K.js.map +0 -1
  47. package/components/dist/chunk-MWA4PRRW.js +0 -122
  48. package/components/dist/chunk-MWA4PRRW.js.map +0 -1
  49. package/components/dist/chunk-ND3FLKHU.js +0 -570
  50. package/components/dist/chunk-ND3FLKHU.js.map +0 -1
  51. package/components/dist/chunk-NIVHLOPB.js +0 -2621
  52. package/components/dist/chunk-NIVHLOPB.js.map +0 -1
  53. package/components/dist/chunk-R6F6FFK7.js +0 -65
  54. package/components/dist/chunk-R6F6FFK7.js.map +0 -1
  55. package/components/dist/chunk-RN5R3L7O.js +0 -2041
  56. package/components/dist/chunk-RN5R3L7O.js.map +0 -1
  57. package/components/dist/chunk-RWDBBMDN.js +0 -10910
  58. package/components/dist/chunk-RWDBBMDN.js.map +0 -1
  59. package/components/dist/chunk-T7HPDS4Z.js +0 -573
  60. package/components/dist/chunk-T7HPDS4Z.js.map +0 -1
  61. package/components/dist/chunk-TG4YEU4Q.js +0 -23
  62. package/components/dist/chunk-TG4YEU4Q.js.map +0 -1
  63. package/components/dist/chunk-U5WCXBW2.js +0 -48
  64. package/components/dist/chunk-U5WCXBW2.js.map +0 -1
  65. package/components/dist/chunk-V6PWN6OH.js +0 -1875
  66. package/components/dist/chunk-V6PWN6OH.js.map +0 -1
  67. package/components/dist/chunk-VLTHNCSD.js +0 -48
  68. package/components/dist/chunk-VLTHNCSD.js.map +0 -1
  69. package/components/dist/chunk-WDK4G4UR.js +0 -2791
  70. package/components/dist/chunk-WDK4G4UR.js.map +0 -1
  71. package/components/dist/chunk-WLVQWTC6.js +0 -77
  72. package/components/dist/chunk-WLVQWTC6.js.map +0 -1
  73. package/components/dist/chunk-YDLS5R4M.js +0 -48
  74. package/components/dist/chunk-YDLS5R4M.js.map +0 -1
  75. package/components/dist/chunk-YGFBWU2Q.js +0 -7
  76. package/components/dist/chunk-YGFBWU2Q.js.map +0 -1
  77. package/components/dist/chunk-ZBL4CWCH.js +0 -2120
  78. package/components/dist/chunk-ZBL4CWCH.js.map +0 -1
  79. package/components/dist/classDiagram-LNE6IOMH-VRQHEQWM.js +0 -40
  80. package/components/dist/classDiagram-LNE6IOMH-VRQHEQWM.js.map +0 -1
  81. package/components/dist/classDiagram-v2-MQ7JQ4JX-5GB4NXXM.js +0 -40
  82. package/components/dist/classDiagram-v2-MQ7JQ4JX-5GB4NXXM.js.map +0 -1
  83. package/components/dist/dagre-4EVJKHTY-XW45LMKR.js +0 -734
  84. package/components/dist/dagre-4EVJKHTY-XW45LMKR.js.map +0 -1
  85. package/components/dist/diagram-QW4FP2JN-J2YMUPB5.js +0 -226
  86. package/components/dist/diagram-QW4FP2JN-J2YMUPB5.js.map +0 -1
  87. package/components/dist/erDiagram-6RL3IURR-HQULDVJI.js +0 -1381
  88. package/components/dist/erDiagram-6RL3IURR-HQULDVJI.js.map +0 -1
  89. package/components/dist/flowDiagram-7ASYPVHJ-2542732I.js +0 -2349
  90. package/components/dist/flowDiagram-7ASYPVHJ-2542732I.js.map +0 -1
  91. package/components/dist/ganttDiagram-NTVNEXSI-V66YQQB3.js +0 -2413
  92. package/components/dist/ganttDiagram-NTVNEXSI-V66YQQB3.js.map +0 -1
  93. package/components/dist/gitGraph-YCYPL57B-AAXPWQN7.js +0 -14
  94. package/components/dist/gitGraph-YCYPL57B-AAXPWQN7.js.map +0 -1
  95. package/components/dist/gitGraphDiagram-NRZ2UAAF-5DU6QMYZ.js +0 -1763
  96. package/components/dist/gitGraphDiagram-NRZ2UAAF-5DU6QMYZ.js.map +0 -1
  97. package/components/dist/info-46DW6VJ7-43TTIEYF.js +0 -14
  98. package/components/dist/info-46DW6VJ7-43TTIEYF.js.map +0 -1
  99. package/components/dist/infoDiagram-A4XQUW5V-UZERSQDI.js +0 -54
  100. package/components/dist/infoDiagram-A4XQUW5V-UZERSQDI.js.map +0 -1
  101. package/components/dist/journeyDiagram-G5WM74LC-RVKMRGRW.js +0 -1244
  102. package/components/dist/journeyDiagram-G5WM74LC-RVKMRGRW.js.map +0 -1
  103. package/components/dist/kanban-definition-QRCXZQQD-NWU5I3TK.js +0 -1119
  104. package/components/dist/kanban-definition-QRCXZQQD-NWU5I3TK.js.map +0 -1
  105. package/components/dist/katex-WNZY3CE5.js +0 -14484
  106. package/components/dist/katex-WNZY3CE5.js.map +0 -1
  107. package/components/dist/mindmap-definition-GWI6TPTV-MISEH6LG.js +0 -6013
  108. package/components/dist/mindmap-definition-GWI6TPTV-MISEH6LG.js.map +0 -1
  109. package/components/dist/packet-W2GHVCYJ-FBZCFIPR.js +0 -14
  110. package/components/dist/packet-W2GHVCYJ-FBZCFIPR.js.map +0 -1
  111. package/components/dist/pie-BEWT4RHE-UFFBBCXM.js +0 -14
  112. package/components/dist/pie-BEWT4RHE-UFFBBCXM.js.map +0 -1
  113. package/components/dist/pieDiagram-YF2LJOPJ-IXEVHPCM.js +0 -223
  114. package/components/dist/pieDiagram-YF2LJOPJ-IXEVHPCM.js.map +0 -1
  115. package/components/dist/quadrantDiagram-OS5C2QUG-MW26UCZV.js +0 -1408
  116. package/components/dist/quadrantDiagram-OS5C2QUG-MW26UCZV.js.map +0 -1
  117. package/components/dist/requirementDiagram-MIRIMTAZ-BX24AAHL.js +0 -1175
  118. package/components/dist/requirementDiagram-MIRIMTAZ-BX24AAHL.js.map +0 -1
  119. package/components/dist/sankeyDiagram-Y46BX6SQ-5RKUGG63.js +0 -1278
  120. package/components/dist/sankeyDiagram-Y46BX6SQ-5RKUGG63.js.map +0 -1
  121. package/components/dist/sequenceDiagram-G6AWOVSC-2T3JBUZ2.js +0 -3529
  122. package/components/dist/sequenceDiagram-G6AWOVSC-2T3JBUZ2.js.map +0 -1
  123. package/components/dist/stateDiagram-MAYHULR4-HZ5EGLPA.js +0 -505
  124. package/components/dist/stateDiagram-MAYHULR4-HZ5EGLPA.js.map +0 -1
  125. package/components/dist/stateDiagram-v2-4JROLMXI-DN2FEZV3.js +0 -40
  126. package/components/dist/stateDiagram-v2-4JROLMXI-DN2FEZV3.js.map +0 -1
  127. package/components/dist/timeline-definition-U7ZMHBDA-GB6AKKW4.js +0 -1260
  128. package/components/dist/timeline-definition-U7ZMHBDA-GB6AKKW4.js.map +0 -1
  129. package/components/dist/xychartDiagram-6QU3TZC5-BFFLEHUP.js +0 -1877
  130. package/components/dist/xychartDiagram-6QU3TZC5-BFFLEHUP.js.map +0 -1
@@ -1,2599 +0,0 @@
1
- import {
2
- drawRect,
3
- getNoteRect
4
- } from "./chunk-MWA4PRRW.js";
5
- import {
6
- calculateTextHeight,
7
- calculateTextWidth,
8
- wrapLabel
9
- } from "./chunk-T7HPDS4Z.js";
10
- import {
11
- require_dist
12
- } from "./chunk-7I5DT373.js";
13
- import {
14
- __name,
15
- assignWithDepth_default,
16
- common_default,
17
- configureSvgSize,
18
- getAccDescription,
19
- getAccTitle,
20
- getConfig2,
21
- log,
22
- sanitizeText,
23
- select_default,
24
- setAccDescription,
25
- setAccTitle
26
- } from "./chunk-RWDBBMDN.js";
27
- import "./chunk-562WOS3Z.js";
28
- import {
29
- __toESM
30
- } from "./chunk-K532NZMW.js";
31
-
32
- // node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-6F5ED5ID.mjs
33
- var import_sanitize_url = __toESM(require_dist(), 1);
34
- var parser = function() {
35
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
36
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
37
- ;
38
- return o2;
39
- }, "o"), $V0 = [1, 24], $V1 = [1, 25], $V2 = [1, 26], $V3 = [1, 27], $V4 = [1, 28], $V5 = [1, 63], $V6 = [1, 64], $V7 = [1, 65], $V8 = [1, 66], $V9 = [1, 67], $Va = [1, 68], $Vb = [1, 69], $Vc = [1, 29], $Vd = [1, 30], $Ve = [1, 31], $Vf = [1, 32], $Vg = [1, 33], $Vh = [1, 34], $Vi = [1, 35], $Vj = [1, 36], $Vk = [1, 37], $Vl = [1, 38], $Vm = [1, 39], $Vn = [1, 40], $Vo = [1, 41], $Vp = [1, 42], $Vq = [1, 43], $Vr = [1, 44], $Vs = [1, 45], $Vt = [1, 46], $Vu = [1, 47], $Vv = [1, 48], $Vw = [1, 50], $Vx = [1, 51], $Vy = [1, 52], $Vz = [1, 53], $VA = [1, 54], $VB = [1, 55], $VC = [1, 56], $VD = [1, 57], $VE = [1, 58], $VF = [1, 59], $VG = [1, 60], $VH = [14, 42], $VI = [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], $VJ = [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], $VK = [1, 82], $VL = [1, 83], $VM = [1, 84], $VN = [1, 85], $VO = [12, 14, 42], $VP = [12, 14, 33, 42], $VQ = [12, 14, 33, 42, 76, 77, 79, 80], $VR = [12, 33], $VS = [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];
40
- var parser2 = {
41
- trace: /* @__PURE__ */ __name(function trace() {
42
- }, "trace"),
43
- yy: {},
44
- 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 },
45
- 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" },
46
- 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]],
47
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
48
- var $0 = $$.length - 1;
49
- switch (yystate) {
50
- case 3:
51
- yy.setDirection("TB");
52
- break;
53
- case 4:
54
- yy.setDirection("BT");
55
- break;
56
- case 5:
57
- yy.setDirection("RL");
58
- break;
59
- case 6:
60
- yy.setDirection("LR");
61
- break;
62
- case 8:
63
- case 9:
64
- case 10:
65
- case 11:
66
- case 12:
67
- yy.setC4Type($$[$0 - 3]);
68
- break;
69
- case 19:
70
- yy.setTitle($$[$0].substring(6));
71
- this.$ = $$[$0].substring(6);
72
- break;
73
- case 20:
74
- yy.setAccDescription($$[$0].substring(15));
75
- this.$ = $$[$0].substring(15);
76
- break;
77
- case 21:
78
- this.$ = $$[$0].trim();
79
- yy.setTitle(this.$);
80
- break;
81
- case 22:
82
- case 23:
83
- this.$ = $$[$0].trim();
84
- yy.setAccDescription(this.$);
85
- break;
86
- case 28:
87
- $$[$0].splice(2, 0, "ENTERPRISE");
88
- yy.addPersonOrSystemBoundary(...$$[$0]);
89
- this.$ = $$[$0];
90
- break;
91
- case 29:
92
- $$[$0].splice(2, 0, "SYSTEM");
93
- yy.addPersonOrSystemBoundary(...$$[$0]);
94
- this.$ = $$[$0];
95
- break;
96
- case 30:
97
- yy.addPersonOrSystemBoundary(...$$[$0]);
98
- this.$ = $$[$0];
99
- break;
100
- case 31:
101
- $$[$0].splice(2, 0, "CONTAINER");
102
- yy.addContainerBoundary(...$$[$0]);
103
- this.$ = $$[$0];
104
- break;
105
- case 32:
106
- yy.addDeploymentNode("node", ...$$[$0]);
107
- this.$ = $$[$0];
108
- break;
109
- case 33:
110
- yy.addDeploymentNode("nodeL", ...$$[$0]);
111
- this.$ = $$[$0];
112
- break;
113
- case 34:
114
- yy.addDeploymentNode("nodeR", ...$$[$0]);
115
- this.$ = $$[$0];
116
- break;
117
- case 35:
118
- yy.popBoundaryParseStack();
119
- break;
120
- case 39:
121
- yy.addPersonOrSystem("person", ...$$[$0]);
122
- this.$ = $$[$0];
123
- break;
124
- case 40:
125
- yy.addPersonOrSystem("external_person", ...$$[$0]);
126
- this.$ = $$[$0];
127
- break;
128
- case 41:
129
- yy.addPersonOrSystem("system", ...$$[$0]);
130
- this.$ = $$[$0];
131
- break;
132
- case 42:
133
- yy.addPersonOrSystem("system_db", ...$$[$0]);
134
- this.$ = $$[$0];
135
- break;
136
- case 43:
137
- yy.addPersonOrSystem("system_queue", ...$$[$0]);
138
- this.$ = $$[$0];
139
- break;
140
- case 44:
141
- yy.addPersonOrSystem("external_system", ...$$[$0]);
142
- this.$ = $$[$0];
143
- break;
144
- case 45:
145
- yy.addPersonOrSystem("external_system_db", ...$$[$0]);
146
- this.$ = $$[$0];
147
- break;
148
- case 46:
149
- yy.addPersonOrSystem("external_system_queue", ...$$[$0]);
150
- this.$ = $$[$0];
151
- break;
152
- case 47:
153
- yy.addContainer("container", ...$$[$0]);
154
- this.$ = $$[$0];
155
- break;
156
- case 48:
157
- yy.addContainer("container_db", ...$$[$0]);
158
- this.$ = $$[$0];
159
- break;
160
- case 49:
161
- yy.addContainer("container_queue", ...$$[$0]);
162
- this.$ = $$[$0];
163
- break;
164
- case 50:
165
- yy.addContainer("external_container", ...$$[$0]);
166
- this.$ = $$[$0];
167
- break;
168
- case 51:
169
- yy.addContainer("external_container_db", ...$$[$0]);
170
- this.$ = $$[$0];
171
- break;
172
- case 52:
173
- yy.addContainer("external_container_queue", ...$$[$0]);
174
- this.$ = $$[$0];
175
- break;
176
- case 53:
177
- yy.addComponent("component", ...$$[$0]);
178
- this.$ = $$[$0];
179
- break;
180
- case 54:
181
- yy.addComponent("component_db", ...$$[$0]);
182
- this.$ = $$[$0];
183
- break;
184
- case 55:
185
- yy.addComponent("component_queue", ...$$[$0]);
186
- this.$ = $$[$0];
187
- break;
188
- case 56:
189
- yy.addComponent("external_component", ...$$[$0]);
190
- this.$ = $$[$0];
191
- break;
192
- case 57:
193
- yy.addComponent("external_component_db", ...$$[$0]);
194
- this.$ = $$[$0];
195
- break;
196
- case 58:
197
- yy.addComponent("external_component_queue", ...$$[$0]);
198
- this.$ = $$[$0];
199
- break;
200
- case 60:
201
- yy.addRel("rel", ...$$[$0]);
202
- this.$ = $$[$0];
203
- break;
204
- case 61:
205
- yy.addRel("birel", ...$$[$0]);
206
- this.$ = $$[$0];
207
- break;
208
- case 62:
209
- yy.addRel("rel_u", ...$$[$0]);
210
- this.$ = $$[$0];
211
- break;
212
- case 63:
213
- yy.addRel("rel_d", ...$$[$0]);
214
- this.$ = $$[$0];
215
- break;
216
- case 64:
217
- yy.addRel("rel_l", ...$$[$0]);
218
- this.$ = $$[$0];
219
- break;
220
- case 65:
221
- yy.addRel("rel_r", ...$$[$0]);
222
- this.$ = $$[$0];
223
- break;
224
- case 66:
225
- yy.addRel("rel_b", ...$$[$0]);
226
- this.$ = $$[$0];
227
- break;
228
- case 67:
229
- $$[$0].splice(0, 1);
230
- yy.addRel("rel", ...$$[$0]);
231
- this.$ = $$[$0];
232
- break;
233
- case 68:
234
- yy.updateElStyle("update_el_style", ...$$[$0]);
235
- this.$ = $$[$0];
236
- break;
237
- case 69:
238
- yy.updateRelStyle("update_rel_style", ...$$[$0]);
239
- this.$ = $$[$0];
240
- break;
241
- case 70:
242
- yy.updateLayoutConfig("update_layout_config", ...$$[$0]);
243
- this.$ = $$[$0];
244
- break;
245
- case 71:
246
- this.$ = [$$[$0]];
247
- break;
248
- case 72:
249
- $$[$0].unshift($$[$0 - 1]);
250
- this.$ = $$[$0];
251
- break;
252
- case 73:
253
- case 75:
254
- this.$ = $$[$0].trim();
255
- break;
256
- case 74:
257
- let kv = {};
258
- kv[$$[$0 - 1].trim()] = $$[$0].trim();
259
- this.$ = kv;
260
- break;
261
- case 76:
262
- this.$ = "";
263
- break;
264
- }
265
- }, "anonymous"),
266
- 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: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 14: [1, 74] }, o($VH, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }), o($VH, [2, 14]), o($VI, [2, 16], { 12: [1, 76] }), o($VH, [2, 36], { 12: [1, 77] }), o($VJ, [2, 19]), o($VJ, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, o($VJ, [2, 23]), { 35: 80, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 86, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 87, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 88, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 89, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 90, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 91, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 92, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 93, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 94, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 95, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 96, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 97, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 98, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 99, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 100, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 101, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 102, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 103, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 104, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, o($VO, [2, 59]), { 35: 105, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 106, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 107, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 108, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 109, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 110, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 111, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 112, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 113, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 114, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 115, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 120, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 121, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 122, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 123, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 124, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 125, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, o($VH, [2, 15]), o($VI, [2, 17], { 21: 22, 19: 130, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4 }), o($VH, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }), o($VJ, [2, 21]), o($VJ, [2, 22]), o($VO, [2, 39]), o($VP, [2, 71], { 75: 81, 35: 132, 76: $VK, 77: $VL, 79: $VM, 80: $VN }), o($VQ, [2, 73]), { 78: [1, 133] }, o($VQ, [2, 75]), o($VQ, [2, 76]), o($VO, [2, 40]), o($VO, [2, 41]), o($VO, [2, 42]), o($VO, [2, 43]), o($VO, [2, 44]), o($VO, [2, 45]), o($VO, [2, 46]), o($VO, [2, 47]), o($VO, [2, 48]), o($VO, [2, 49]), o($VO, [2, 50]), o($VO, [2, 51]), o($VO, [2, 52]), o($VO, [2, 53]), o($VO, [2, 54]), o($VO, [2, 55]), o($VO, [2, 56]), o($VO, [2, 57]), o($VO, [2, 58]), o($VO, [2, 60]), o($VO, [2, 61]), o($VO, [2, 62]), o($VO, [2, 63]), o($VO, [2, 64]), o($VO, [2, 65]), o($VO, [2, 66]), o($VO, [2, 67]), o($VO, [2, 68]), o($VO, [2, 69]), o($VO, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, o($VR, [2, 28]), o($VR, [2, 29]), o($VR, [2, 30]), o($VR, [2, 31]), o($VR, [2, 32]), o($VR, [2, 33]), o($VR, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, o($VI, [2, 18]), o($VH, [2, 38]), o($VP, [2, 72]), o($VQ, [2, 74]), o($VO, [2, 24]), o($VO, [2, 35]), o($VS, [2, 25]), o($VS, [2, 26], { 12: [1, 138] }), o($VS, [2, 27])],
267
- 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] },
268
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
269
- if (hash.recoverable) {
270
- this.trace(str);
271
- } else {
272
- var error = new Error(str);
273
- error.hash = hash;
274
- throw error;
275
- }
276
- }, "parseError"),
277
- parse: /* @__PURE__ */ __name(function parse(input) {
278
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
279
- var args = lstack.slice.call(arguments, 1);
280
- var lexer2 = Object.create(this.lexer);
281
- var sharedState = { yy: {} };
282
- for (var k in this.yy) {
283
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
284
- sharedState.yy[k] = this.yy[k];
285
- }
286
- }
287
- lexer2.setInput(input, sharedState.yy);
288
- sharedState.yy.lexer = lexer2;
289
- sharedState.yy.parser = this;
290
- if (typeof lexer2.yylloc == "undefined") {
291
- lexer2.yylloc = {};
292
- }
293
- var yyloc = lexer2.yylloc;
294
- lstack.push(yyloc);
295
- var ranges = lexer2.options && lexer2.options.ranges;
296
- if (typeof sharedState.yy.parseError === "function") {
297
- this.parseError = sharedState.yy.parseError;
298
- } else {
299
- this.parseError = Object.getPrototypeOf(this).parseError;
300
- }
301
- function popStack(n) {
302
- stack.length = stack.length - 2 * n;
303
- vstack.length = vstack.length - n;
304
- lstack.length = lstack.length - n;
305
- }
306
- __name(popStack, "popStack");
307
- function lex() {
308
- var token;
309
- token = tstack.pop() || lexer2.lex() || EOF;
310
- if (typeof token !== "number") {
311
- if (token instanceof Array) {
312
- tstack = token;
313
- token = tstack.pop();
314
- }
315
- token = self.symbols_[token] || token;
316
- }
317
- return token;
318
- }
319
- __name(lex, "lex");
320
- var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
321
- while (true) {
322
- state = stack[stack.length - 1];
323
- if (this.defaultActions[state]) {
324
- action = this.defaultActions[state];
325
- } else {
326
- if (symbol === null || typeof symbol == "undefined") {
327
- symbol = lex();
328
- }
329
- action = table[state] && table[state][symbol];
330
- }
331
- if (typeof action === "undefined" || !action.length || !action[0]) {
332
- var errStr = "";
333
- expected = [];
334
- for (p in table[state]) {
335
- if (this.terminals_[p] && p > TERROR) {
336
- expected.push("'" + this.terminals_[p] + "'");
337
- }
338
- }
339
- if (lexer2.showPosition) {
340
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
341
- } else {
342
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
343
- }
344
- this.parseError(errStr, {
345
- text: lexer2.match,
346
- token: this.terminals_[symbol] || symbol,
347
- line: lexer2.yylineno,
348
- loc: yyloc,
349
- expected
350
- });
351
- }
352
- if (action[0] instanceof Array && action.length > 1) {
353
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
354
- }
355
- switch (action[0]) {
356
- case 1:
357
- stack.push(symbol);
358
- vstack.push(lexer2.yytext);
359
- lstack.push(lexer2.yylloc);
360
- stack.push(action[1]);
361
- symbol = null;
362
- if (!preErrorSymbol) {
363
- yyleng = lexer2.yyleng;
364
- yytext = lexer2.yytext;
365
- yylineno = lexer2.yylineno;
366
- yyloc = lexer2.yylloc;
367
- if (recovering > 0) {
368
- recovering--;
369
- }
370
- } else {
371
- symbol = preErrorSymbol;
372
- preErrorSymbol = null;
373
- }
374
- break;
375
- case 2:
376
- len = this.productions_[action[1]][1];
377
- yyval.$ = vstack[vstack.length - len];
378
- yyval._$ = {
379
- first_line: lstack[lstack.length - (len || 1)].first_line,
380
- last_line: lstack[lstack.length - 1].last_line,
381
- first_column: lstack[lstack.length - (len || 1)].first_column,
382
- last_column: lstack[lstack.length - 1].last_column
383
- };
384
- if (ranges) {
385
- yyval._$.range = [
386
- lstack[lstack.length - (len || 1)].range[0],
387
- lstack[lstack.length - 1].range[1]
388
- ];
389
- }
390
- r = this.performAction.apply(yyval, [
391
- yytext,
392
- yyleng,
393
- yylineno,
394
- sharedState.yy,
395
- action[1],
396
- vstack,
397
- lstack
398
- ].concat(args));
399
- if (typeof r !== "undefined") {
400
- return r;
401
- }
402
- if (len) {
403
- stack = stack.slice(0, -1 * len * 2);
404
- vstack = vstack.slice(0, -1 * len);
405
- lstack = lstack.slice(0, -1 * len);
406
- }
407
- stack.push(this.productions_[action[1]][0]);
408
- vstack.push(yyval.$);
409
- lstack.push(yyval._$);
410
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
411
- stack.push(newState);
412
- break;
413
- case 3:
414
- return true;
415
- }
416
- }
417
- return true;
418
- }, "parse")
419
- };
420
- var lexer = /* @__PURE__ */ function() {
421
- var lexer2 = {
422
- EOF: 1,
423
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
424
- if (this.yy.parser) {
425
- this.yy.parser.parseError(str, hash);
426
- } else {
427
- throw new Error(str);
428
- }
429
- }, "parseError"),
430
- // resets the lexer, sets new input
431
- setInput: /* @__PURE__ */ __name(function(input, yy) {
432
- this.yy = yy || this.yy || {};
433
- this._input = input;
434
- this._more = this._backtrack = this.done = false;
435
- this.yylineno = this.yyleng = 0;
436
- this.yytext = this.matched = this.match = "";
437
- this.conditionStack = ["INITIAL"];
438
- this.yylloc = {
439
- first_line: 1,
440
- first_column: 0,
441
- last_line: 1,
442
- last_column: 0
443
- };
444
- if (this.options.ranges) {
445
- this.yylloc.range = [0, 0];
446
- }
447
- this.offset = 0;
448
- return this;
449
- }, "setInput"),
450
- // consumes and returns one char from the input
451
- input: /* @__PURE__ */ __name(function() {
452
- var ch = this._input[0];
453
- this.yytext += ch;
454
- this.yyleng++;
455
- this.offset++;
456
- this.match += ch;
457
- this.matched += ch;
458
- var lines = ch.match(/(?:\r\n?|\n).*/g);
459
- if (lines) {
460
- this.yylineno++;
461
- this.yylloc.last_line++;
462
- } else {
463
- this.yylloc.last_column++;
464
- }
465
- if (this.options.ranges) {
466
- this.yylloc.range[1]++;
467
- }
468
- this._input = this._input.slice(1);
469
- return ch;
470
- }, "input"),
471
- // unshifts one char (or a string) into the input
472
- unput: /* @__PURE__ */ __name(function(ch) {
473
- var len = ch.length;
474
- var lines = ch.split(/(?:\r\n?|\n)/g);
475
- this._input = ch + this._input;
476
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
477
- this.offset -= len;
478
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
479
- this.match = this.match.substr(0, this.match.length - 1);
480
- this.matched = this.matched.substr(0, this.matched.length - 1);
481
- if (lines.length - 1) {
482
- this.yylineno -= lines.length - 1;
483
- }
484
- var r = this.yylloc.range;
485
- this.yylloc = {
486
- first_line: this.yylloc.first_line,
487
- last_line: this.yylineno + 1,
488
- first_column: this.yylloc.first_column,
489
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
490
- };
491
- if (this.options.ranges) {
492
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
493
- }
494
- this.yyleng = this.yytext.length;
495
- return this;
496
- }, "unput"),
497
- // When called from action, caches matched text and appends it on next action
498
- more: /* @__PURE__ */ __name(function() {
499
- this._more = true;
500
- return this;
501
- }, "more"),
502
- // 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.
503
- reject: /* @__PURE__ */ __name(function() {
504
- if (this.options.backtrack_lexer) {
505
- this._backtrack = true;
506
- } else {
507
- 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).\n" + this.showPosition(), {
508
- text: "",
509
- token: null,
510
- line: this.yylineno
511
- });
512
- }
513
- return this;
514
- }, "reject"),
515
- // retain first n characters of the match
516
- less: /* @__PURE__ */ __name(function(n) {
517
- this.unput(this.match.slice(n));
518
- }, "less"),
519
- // displays already matched input, i.e. for error messages
520
- pastInput: /* @__PURE__ */ __name(function() {
521
- var past = this.matched.substr(0, this.matched.length - this.match.length);
522
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
523
- }, "pastInput"),
524
- // displays upcoming input, i.e. for error messages
525
- upcomingInput: /* @__PURE__ */ __name(function() {
526
- var next = this.match;
527
- if (next.length < 20) {
528
- next += this._input.substr(0, 20 - next.length);
529
- }
530
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
531
- }, "upcomingInput"),
532
- // displays the character position where the lexing error occurred, i.e. for error messages
533
- showPosition: /* @__PURE__ */ __name(function() {
534
- var pre = this.pastInput();
535
- var c2 = new Array(pre.length + 1).join("-");
536
- return pre + this.upcomingInput() + "\n" + c2 + "^";
537
- }, "showPosition"),
538
- // test the lexed token: return FALSE when not a match, otherwise return token
539
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
540
- var token, lines, backup;
541
- if (this.options.backtrack_lexer) {
542
- backup = {
543
- yylineno: this.yylineno,
544
- yylloc: {
545
- first_line: this.yylloc.first_line,
546
- last_line: this.last_line,
547
- first_column: this.yylloc.first_column,
548
- last_column: this.yylloc.last_column
549
- },
550
- yytext: this.yytext,
551
- match: this.match,
552
- matches: this.matches,
553
- matched: this.matched,
554
- yyleng: this.yyleng,
555
- offset: this.offset,
556
- _more: this._more,
557
- _input: this._input,
558
- yy: this.yy,
559
- conditionStack: this.conditionStack.slice(0),
560
- done: this.done
561
- };
562
- if (this.options.ranges) {
563
- backup.yylloc.range = this.yylloc.range.slice(0);
564
- }
565
- }
566
- lines = match[0].match(/(?:\r\n?|\n).*/g);
567
- if (lines) {
568
- this.yylineno += lines.length;
569
- }
570
- this.yylloc = {
571
- first_line: this.yylloc.last_line,
572
- last_line: this.yylineno + 1,
573
- first_column: this.yylloc.last_column,
574
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
575
- };
576
- this.yytext += match[0];
577
- this.match += match[0];
578
- this.matches = match;
579
- this.yyleng = this.yytext.length;
580
- if (this.options.ranges) {
581
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
582
- }
583
- this._more = false;
584
- this._backtrack = false;
585
- this._input = this._input.slice(match[0].length);
586
- this.matched += match[0];
587
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
588
- if (this.done && this._input) {
589
- this.done = false;
590
- }
591
- if (token) {
592
- return token;
593
- } else if (this._backtrack) {
594
- for (var k in backup) {
595
- this[k] = backup[k];
596
- }
597
- return false;
598
- }
599
- return false;
600
- }, "test_match"),
601
- // return next match in input
602
- next: /* @__PURE__ */ __name(function() {
603
- if (this.done) {
604
- return this.EOF;
605
- }
606
- if (!this._input) {
607
- this.done = true;
608
- }
609
- var token, match, tempMatch, index;
610
- if (!this._more) {
611
- this.yytext = "";
612
- this.match = "";
613
- }
614
- var rules = this._currentRules();
615
- for (var i = 0; i < rules.length; i++) {
616
- tempMatch = this._input.match(this.rules[rules[i]]);
617
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
618
- match = tempMatch;
619
- index = i;
620
- if (this.options.backtrack_lexer) {
621
- token = this.test_match(tempMatch, rules[i]);
622
- if (token !== false) {
623
- return token;
624
- } else if (this._backtrack) {
625
- match = false;
626
- continue;
627
- } else {
628
- return false;
629
- }
630
- } else if (!this.options.flex) {
631
- break;
632
- }
633
- }
634
- }
635
- if (match) {
636
- token = this.test_match(match, rules[index]);
637
- if (token !== false) {
638
- return token;
639
- }
640
- return false;
641
- }
642
- if (this._input === "") {
643
- return this.EOF;
644
- } else {
645
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
646
- text: "",
647
- token: null,
648
- line: this.yylineno
649
- });
650
- }
651
- }, "next"),
652
- // return next match that has a token
653
- lex: /* @__PURE__ */ __name(function lex() {
654
- var r = this.next();
655
- if (r) {
656
- return r;
657
- } else {
658
- return this.lex();
659
- }
660
- }, "lex"),
661
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
662
- begin: /* @__PURE__ */ __name(function begin(condition) {
663
- this.conditionStack.push(condition);
664
- }, "begin"),
665
- // pop the previously active lexer condition state off the condition stack
666
- popState: /* @__PURE__ */ __name(function popState() {
667
- var n = this.conditionStack.length - 1;
668
- if (n > 0) {
669
- return this.conditionStack.pop();
670
- } else {
671
- return this.conditionStack[0];
672
- }
673
- }, "popState"),
674
- // produce the lexer rule set which is active for the currently active lexer condition state
675
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
676
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
677
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
678
- } else {
679
- return this.conditions["INITIAL"].rules;
680
- }
681
- }, "_currentRules"),
682
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
683
- topState: /* @__PURE__ */ __name(function topState(n) {
684
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
685
- if (n >= 0) {
686
- return this.conditionStack[n];
687
- } else {
688
- return "INITIAL";
689
- }
690
- }, "topState"),
691
- // alias for begin(condition)
692
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
693
- this.begin(condition);
694
- }, "pushState"),
695
- // return the number of states currently on the stack
696
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
697
- return this.conditionStack.length;
698
- }, "stateStackSize"),
699
- options: {},
700
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
701
- var YYSTATE = YY_START;
702
- switch ($avoiding_name_collisions) {
703
- case 0:
704
- return 6;
705
- break;
706
- case 1:
707
- return 7;
708
- break;
709
- case 2:
710
- return 8;
711
- break;
712
- case 3:
713
- return 9;
714
- break;
715
- case 4:
716
- return 22;
717
- break;
718
- case 5:
719
- return 23;
720
- break;
721
- case 6:
722
- this.begin("acc_title");
723
- return 24;
724
- break;
725
- case 7:
726
- this.popState();
727
- return "acc_title_value";
728
- break;
729
- case 8:
730
- this.begin("acc_descr");
731
- return 26;
732
- break;
733
- case 9:
734
- this.popState();
735
- return "acc_descr_value";
736
- break;
737
- case 10:
738
- this.begin("acc_descr_multiline");
739
- break;
740
- case 11:
741
- this.popState();
742
- break;
743
- case 12:
744
- return "acc_descr_multiline_value";
745
- break;
746
- case 13:
747
- break;
748
- case 14:
749
- c;
750
- break;
751
- case 15:
752
- return 12;
753
- break;
754
- case 16:
755
- break;
756
- case 17:
757
- return 11;
758
- break;
759
- case 18:
760
- return 15;
761
- break;
762
- case 19:
763
- return 16;
764
- break;
765
- case 20:
766
- return 17;
767
- break;
768
- case 21:
769
- return 18;
770
- break;
771
- case 22:
772
- this.begin("person_ext");
773
- return 45;
774
- break;
775
- case 23:
776
- this.begin("person");
777
- return 44;
778
- break;
779
- case 24:
780
- this.begin("system_ext_queue");
781
- return 51;
782
- break;
783
- case 25:
784
- this.begin("system_ext_db");
785
- return 50;
786
- break;
787
- case 26:
788
- this.begin("system_ext");
789
- return 49;
790
- break;
791
- case 27:
792
- this.begin("system_queue");
793
- return 48;
794
- break;
795
- case 28:
796
- this.begin("system_db");
797
- return 47;
798
- break;
799
- case 29:
800
- this.begin("system");
801
- return 46;
802
- break;
803
- case 30:
804
- this.begin("boundary");
805
- return 37;
806
- break;
807
- case 31:
808
- this.begin("enterprise_boundary");
809
- return 34;
810
- break;
811
- case 32:
812
- this.begin("system_boundary");
813
- return 36;
814
- break;
815
- case 33:
816
- this.begin("container_ext_queue");
817
- return 57;
818
- break;
819
- case 34:
820
- this.begin("container_ext_db");
821
- return 56;
822
- break;
823
- case 35:
824
- this.begin("container_ext");
825
- return 55;
826
- break;
827
- case 36:
828
- this.begin("container_queue");
829
- return 54;
830
- break;
831
- case 37:
832
- this.begin("container_db");
833
- return 53;
834
- break;
835
- case 38:
836
- this.begin("container");
837
- return 52;
838
- break;
839
- case 39:
840
- this.begin("container_boundary");
841
- return 38;
842
- break;
843
- case 40:
844
- this.begin("component_ext_queue");
845
- return 63;
846
- break;
847
- case 41:
848
- this.begin("component_ext_db");
849
- return 62;
850
- break;
851
- case 42:
852
- this.begin("component_ext");
853
- return 61;
854
- break;
855
- case 43:
856
- this.begin("component_queue");
857
- return 60;
858
- break;
859
- case 44:
860
- this.begin("component_db");
861
- return 59;
862
- break;
863
- case 45:
864
- this.begin("component");
865
- return 58;
866
- break;
867
- case 46:
868
- this.begin("node");
869
- return 39;
870
- break;
871
- case 47:
872
- this.begin("node");
873
- return 39;
874
- break;
875
- case 48:
876
- this.begin("node_l");
877
- return 40;
878
- break;
879
- case 49:
880
- this.begin("node_r");
881
- return 41;
882
- break;
883
- case 50:
884
- this.begin("rel");
885
- return 64;
886
- break;
887
- case 51:
888
- this.begin("birel");
889
- return 65;
890
- break;
891
- case 52:
892
- this.begin("rel_u");
893
- return 66;
894
- break;
895
- case 53:
896
- this.begin("rel_u");
897
- return 66;
898
- break;
899
- case 54:
900
- this.begin("rel_d");
901
- return 67;
902
- break;
903
- case 55:
904
- this.begin("rel_d");
905
- return 67;
906
- break;
907
- case 56:
908
- this.begin("rel_l");
909
- return 68;
910
- break;
911
- case 57:
912
- this.begin("rel_l");
913
- return 68;
914
- break;
915
- case 58:
916
- this.begin("rel_r");
917
- return 69;
918
- break;
919
- case 59:
920
- this.begin("rel_r");
921
- return 69;
922
- break;
923
- case 60:
924
- this.begin("rel_b");
925
- return 70;
926
- break;
927
- case 61:
928
- this.begin("rel_index");
929
- return 71;
930
- break;
931
- case 62:
932
- this.begin("update_el_style");
933
- return 72;
934
- break;
935
- case 63:
936
- this.begin("update_rel_style");
937
- return 73;
938
- break;
939
- case 64:
940
- this.begin("update_layout_config");
941
- return 74;
942
- break;
943
- case 65:
944
- return "EOF_IN_STRUCT";
945
- break;
946
- case 66:
947
- this.begin("attribute");
948
- return "ATTRIBUTE_EMPTY";
949
- break;
950
- case 67:
951
- this.begin("attribute");
952
- break;
953
- case 68:
954
- this.popState();
955
- this.popState();
956
- break;
957
- case 69:
958
- return 80;
959
- break;
960
- case 70:
961
- break;
962
- case 71:
963
- return 80;
964
- break;
965
- case 72:
966
- this.begin("string");
967
- break;
968
- case 73:
969
- this.popState();
970
- break;
971
- case 74:
972
- return "STR";
973
- break;
974
- case 75:
975
- this.begin("string_kv");
976
- break;
977
- case 76:
978
- this.begin("string_kv_key");
979
- return "STR_KEY";
980
- break;
981
- case 77:
982
- this.popState();
983
- this.begin("string_kv_value");
984
- break;
985
- case 78:
986
- return "STR_VALUE";
987
- break;
988
- case 79:
989
- this.popState();
990
- this.popState();
991
- break;
992
- case 80:
993
- return "STR";
994
- break;
995
- case 81:
996
- return "LBRACE";
997
- break;
998
- case 82:
999
- return "RBRACE";
1000
- break;
1001
- case 83:
1002
- return "SPACE";
1003
- break;
1004
- case 84:
1005
- return "EOL";
1006
- break;
1007
- case 85:
1008
- return 14;
1009
- break;
1010
- }
1011
- }, "anonymous"),
1012
- 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]+)/, /^(?:$)/],
1013
- conditions: { "acc_descr_multiline": { "rules": [11, 12], "inclusive": false }, "acc_descr": { "rules": [9], "inclusive": false }, "acc_title": { "rules": [7], "inclusive": false }, "string_kv_value": { "rules": [78, 79], "inclusive": false }, "string_kv_key": { "rules": [77], "inclusive": false }, "string_kv": { "rules": [76], "inclusive": false }, "string": { "rules": [73, 74], "inclusive": false }, "attribute": { "rules": [68, 69, 70, 71, 72, 75, 80], "inclusive": false }, "update_layout_config": { "rules": [65, 66, 67, 68], "inclusive": false }, "update_rel_style": { "rules": [65, 66, 67, 68], "inclusive": false }, "update_el_style": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_b": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_r": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_l": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_d": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_u": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [65, 66, 67, 68], "inclusive": false }, "node_r": { "rules": [65, 66, 67, 68], "inclusive": false }, "node_l": { "rules": [65, 66, 67, 68], "inclusive": false }, "node": { "rules": [65, 66, 67, 68], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "component": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "container": { "rules": [65, 66, 67, 68], "inclusive": false }, "birel": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "enterprise_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "system": { "rules": [65, 66, 67, 68], "inclusive": false }, "person_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "person": { "rules": [65, 66, 67, 68], "inclusive": false }, "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": true } }
1014
- };
1015
- return lexer2;
1016
- }();
1017
- parser2.lexer = lexer;
1018
- function Parser() {
1019
- this.yy = {};
1020
- }
1021
- __name(Parser, "Parser");
1022
- Parser.prototype = parser2;
1023
- parser2.Parser = Parser;
1024
- return new Parser();
1025
- }();
1026
- parser.parser = parser;
1027
- var c4Diagram_default = parser;
1028
- var c4ShapeArray = [];
1029
- var boundaryParseStack = [""];
1030
- var currentBoundaryParse = "global";
1031
- var parentBoundaryParse = "";
1032
- var boundaries = [
1033
- {
1034
- alias: "global",
1035
- label: { text: "global" },
1036
- type: { text: "global" },
1037
- tags: null,
1038
- link: null,
1039
- parentBoundary: ""
1040
- }
1041
- ];
1042
- var rels = [];
1043
- var title = "";
1044
- var wrapEnabled = false;
1045
- var c4ShapeInRow = 4;
1046
- var c4BoundaryInRow = 2;
1047
- var c4Type;
1048
- var getC4Type = /* @__PURE__ */ __name(function() {
1049
- return c4Type;
1050
- }, "getC4Type");
1051
- var setC4Type = /* @__PURE__ */ __name(function(c4TypeParam) {
1052
- let sanitizedText = sanitizeText(c4TypeParam, getConfig2());
1053
- c4Type = sanitizedText;
1054
- }, "setC4Type");
1055
- var addRel = /* @__PURE__ */ __name(function(type, from, to, label, techn, descr, sprite, tags, link) {
1056
- if (type === void 0 || type === null || from === void 0 || from === null || to === void 0 || to === null || label === void 0 || label === null) {
1057
- return;
1058
- }
1059
- let rel = {};
1060
- const old = rels.find((rel2) => rel2.from === from && rel2.to === to);
1061
- if (old) {
1062
- rel = old;
1063
- } else {
1064
- rels.push(rel);
1065
- }
1066
- rel.type = type;
1067
- rel.from = from;
1068
- rel.to = to;
1069
- rel.label = { text: label };
1070
- if (techn === void 0 || techn === null) {
1071
- rel.techn = { text: "" };
1072
- } else {
1073
- if (typeof techn === "object") {
1074
- let [key, value] = Object.entries(techn)[0];
1075
- rel[key] = { text: value };
1076
- } else {
1077
- rel.techn = { text: techn };
1078
- }
1079
- }
1080
- if (descr === void 0 || descr === null) {
1081
- rel.descr = { text: "" };
1082
- } else {
1083
- if (typeof descr === "object") {
1084
- let [key, value] = Object.entries(descr)[0];
1085
- rel[key] = { text: value };
1086
- } else {
1087
- rel.descr = { text: descr };
1088
- }
1089
- }
1090
- if (typeof sprite === "object") {
1091
- let [key, value] = Object.entries(sprite)[0];
1092
- rel[key] = value;
1093
- } else {
1094
- rel.sprite = sprite;
1095
- }
1096
- if (typeof tags === "object") {
1097
- let [key, value] = Object.entries(tags)[0];
1098
- rel[key] = value;
1099
- } else {
1100
- rel.tags = tags;
1101
- }
1102
- if (typeof link === "object") {
1103
- let [key, value] = Object.entries(link)[0];
1104
- rel[key] = value;
1105
- } else {
1106
- rel.link = link;
1107
- }
1108
- rel.wrap = autoWrap();
1109
- }, "addRel");
1110
- var addPersonOrSystem = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, descr, sprite, tags, link) {
1111
- if (alias === null || label === null) {
1112
- return;
1113
- }
1114
- let personOrSystem = {};
1115
- const old = c4ShapeArray.find((personOrSystem2) => personOrSystem2.alias === alias);
1116
- if (old && alias === old.alias) {
1117
- personOrSystem = old;
1118
- } else {
1119
- personOrSystem.alias = alias;
1120
- c4ShapeArray.push(personOrSystem);
1121
- }
1122
- if (label === void 0 || label === null) {
1123
- personOrSystem.label = { text: "" };
1124
- } else {
1125
- personOrSystem.label = { text: label };
1126
- }
1127
- if (descr === void 0 || descr === null) {
1128
- personOrSystem.descr = { text: "" };
1129
- } else {
1130
- if (typeof descr === "object") {
1131
- let [key, value] = Object.entries(descr)[0];
1132
- personOrSystem[key] = { text: value };
1133
- } else {
1134
- personOrSystem.descr = { text: descr };
1135
- }
1136
- }
1137
- if (typeof sprite === "object") {
1138
- let [key, value] = Object.entries(sprite)[0];
1139
- personOrSystem[key] = value;
1140
- } else {
1141
- personOrSystem.sprite = sprite;
1142
- }
1143
- if (typeof tags === "object") {
1144
- let [key, value] = Object.entries(tags)[0];
1145
- personOrSystem[key] = value;
1146
- } else {
1147
- personOrSystem.tags = tags;
1148
- }
1149
- if (typeof link === "object") {
1150
- let [key, value] = Object.entries(link)[0];
1151
- personOrSystem[key] = value;
1152
- } else {
1153
- personOrSystem.link = link;
1154
- }
1155
- personOrSystem.typeC4Shape = { text: typeC4Shape };
1156
- personOrSystem.parentBoundary = currentBoundaryParse;
1157
- personOrSystem.wrap = autoWrap();
1158
- }, "addPersonOrSystem");
1159
- var addContainer = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
1160
- if (alias === null || label === null) {
1161
- return;
1162
- }
1163
- let container = {};
1164
- const old = c4ShapeArray.find((container2) => container2.alias === alias);
1165
- if (old && alias === old.alias) {
1166
- container = old;
1167
- } else {
1168
- container.alias = alias;
1169
- c4ShapeArray.push(container);
1170
- }
1171
- if (label === void 0 || label === null) {
1172
- container.label = { text: "" };
1173
- } else {
1174
- container.label = { text: label };
1175
- }
1176
- if (techn === void 0 || techn === null) {
1177
- container.techn = { text: "" };
1178
- } else {
1179
- if (typeof techn === "object") {
1180
- let [key, value] = Object.entries(techn)[0];
1181
- container[key] = { text: value };
1182
- } else {
1183
- container.techn = { text: techn };
1184
- }
1185
- }
1186
- if (descr === void 0 || descr === null) {
1187
- container.descr = { text: "" };
1188
- } else {
1189
- if (typeof descr === "object") {
1190
- let [key, value] = Object.entries(descr)[0];
1191
- container[key] = { text: value };
1192
- } else {
1193
- container.descr = { text: descr };
1194
- }
1195
- }
1196
- if (typeof sprite === "object") {
1197
- let [key, value] = Object.entries(sprite)[0];
1198
- container[key] = value;
1199
- } else {
1200
- container.sprite = sprite;
1201
- }
1202
- if (typeof tags === "object") {
1203
- let [key, value] = Object.entries(tags)[0];
1204
- container[key] = value;
1205
- } else {
1206
- container.tags = tags;
1207
- }
1208
- if (typeof link === "object") {
1209
- let [key, value] = Object.entries(link)[0];
1210
- container[key] = value;
1211
- } else {
1212
- container.link = link;
1213
- }
1214
- container.wrap = autoWrap();
1215
- container.typeC4Shape = { text: typeC4Shape };
1216
- container.parentBoundary = currentBoundaryParse;
1217
- }, "addContainer");
1218
- var addComponent = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
1219
- if (alias === null || label === null) {
1220
- return;
1221
- }
1222
- let component = {};
1223
- const old = c4ShapeArray.find((component2) => component2.alias === alias);
1224
- if (old && alias === old.alias) {
1225
- component = old;
1226
- } else {
1227
- component.alias = alias;
1228
- c4ShapeArray.push(component);
1229
- }
1230
- if (label === void 0 || label === null) {
1231
- component.label = { text: "" };
1232
- } else {
1233
- component.label = { text: label };
1234
- }
1235
- if (techn === void 0 || techn === null) {
1236
- component.techn = { text: "" };
1237
- } else {
1238
- if (typeof techn === "object") {
1239
- let [key, value] = Object.entries(techn)[0];
1240
- component[key] = { text: value };
1241
- } else {
1242
- component.techn = { text: techn };
1243
- }
1244
- }
1245
- if (descr === void 0 || descr === null) {
1246
- component.descr = { text: "" };
1247
- } else {
1248
- if (typeof descr === "object") {
1249
- let [key, value] = Object.entries(descr)[0];
1250
- component[key] = { text: value };
1251
- } else {
1252
- component.descr = { text: descr };
1253
- }
1254
- }
1255
- if (typeof sprite === "object") {
1256
- let [key, value] = Object.entries(sprite)[0];
1257
- component[key] = value;
1258
- } else {
1259
- component.sprite = sprite;
1260
- }
1261
- if (typeof tags === "object") {
1262
- let [key, value] = Object.entries(tags)[0];
1263
- component[key] = value;
1264
- } else {
1265
- component.tags = tags;
1266
- }
1267
- if (typeof link === "object") {
1268
- let [key, value] = Object.entries(link)[0];
1269
- component[key] = value;
1270
- } else {
1271
- component.link = link;
1272
- }
1273
- component.wrap = autoWrap();
1274
- component.typeC4Shape = { text: typeC4Shape };
1275
- component.parentBoundary = currentBoundaryParse;
1276
- }, "addComponent");
1277
- var addPersonOrSystemBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
1278
- if (alias === null || label === null) {
1279
- return;
1280
- }
1281
- let boundary = {};
1282
- const old = boundaries.find((boundary2) => boundary2.alias === alias);
1283
- if (old && alias === old.alias) {
1284
- boundary = old;
1285
- } else {
1286
- boundary.alias = alias;
1287
- boundaries.push(boundary);
1288
- }
1289
- if (label === void 0 || label === null) {
1290
- boundary.label = { text: "" };
1291
- } else {
1292
- boundary.label = { text: label };
1293
- }
1294
- if (type === void 0 || type === null) {
1295
- boundary.type = { text: "system" };
1296
- } else {
1297
- if (typeof type === "object") {
1298
- let [key, value] = Object.entries(type)[0];
1299
- boundary[key] = { text: value };
1300
- } else {
1301
- boundary.type = { text: type };
1302
- }
1303
- }
1304
- if (typeof tags === "object") {
1305
- let [key, value] = Object.entries(tags)[0];
1306
- boundary[key] = value;
1307
- } else {
1308
- boundary.tags = tags;
1309
- }
1310
- if (typeof link === "object") {
1311
- let [key, value] = Object.entries(link)[0];
1312
- boundary[key] = value;
1313
- } else {
1314
- boundary.link = link;
1315
- }
1316
- boundary.parentBoundary = currentBoundaryParse;
1317
- boundary.wrap = autoWrap();
1318
- parentBoundaryParse = currentBoundaryParse;
1319
- currentBoundaryParse = alias;
1320
- boundaryParseStack.push(parentBoundaryParse);
1321
- }, "addPersonOrSystemBoundary");
1322
- var addContainerBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
1323
- if (alias === null || label === null) {
1324
- return;
1325
- }
1326
- let boundary = {};
1327
- const old = boundaries.find((boundary2) => boundary2.alias === alias);
1328
- if (old && alias === old.alias) {
1329
- boundary = old;
1330
- } else {
1331
- boundary.alias = alias;
1332
- boundaries.push(boundary);
1333
- }
1334
- if (label === void 0 || label === null) {
1335
- boundary.label = { text: "" };
1336
- } else {
1337
- boundary.label = { text: label };
1338
- }
1339
- if (type === void 0 || type === null) {
1340
- boundary.type = { text: "container" };
1341
- } else {
1342
- if (typeof type === "object") {
1343
- let [key, value] = Object.entries(type)[0];
1344
- boundary[key] = { text: value };
1345
- } else {
1346
- boundary.type = { text: type };
1347
- }
1348
- }
1349
- if (typeof tags === "object") {
1350
- let [key, value] = Object.entries(tags)[0];
1351
- boundary[key] = value;
1352
- } else {
1353
- boundary.tags = tags;
1354
- }
1355
- if (typeof link === "object") {
1356
- let [key, value] = Object.entries(link)[0];
1357
- boundary[key] = value;
1358
- } else {
1359
- boundary.link = link;
1360
- }
1361
- boundary.parentBoundary = currentBoundaryParse;
1362
- boundary.wrap = autoWrap();
1363
- parentBoundaryParse = currentBoundaryParse;
1364
- currentBoundaryParse = alias;
1365
- boundaryParseStack.push(parentBoundaryParse);
1366
- }, "addContainerBoundary");
1367
- var addDeploymentNode = /* @__PURE__ */ __name(function(nodeType, alias, label, type, descr, sprite, tags, link) {
1368
- if (alias === null || label === null) {
1369
- return;
1370
- }
1371
- let boundary = {};
1372
- const old = boundaries.find((boundary2) => boundary2.alias === alias);
1373
- if (old && alias === old.alias) {
1374
- boundary = old;
1375
- } else {
1376
- boundary.alias = alias;
1377
- boundaries.push(boundary);
1378
- }
1379
- if (label === void 0 || label === null) {
1380
- boundary.label = { text: "" };
1381
- } else {
1382
- boundary.label = { text: label };
1383
- }
1384
- if (type === void 0 || type === null) {
1385
- boundary.type = { text: "node" };
1386
- } else {
1387
- if (typeof type === "object") {
1388
- let [key, value] = Object.entries(type)[0];
1389
- boundary[key] = { text: value };
1390
- } else {
1391
- boundary.type = { text: type };
1392
- }
1393
- }
1394
- if (descr === void 0 || descr === null) {
1395
- boundary.descr = { text: "" };
1396
- } else {
1397
- if (typeof descr === "object") {
1398
- let [key, value] = Object.entries(descr)[0];
1399
- boundary[key] = { text: value };
1400
- } else {
1401
- boundary.descr = { text: descr };
1402
- }
1403
- }
1404
- if (typeof tags === "object") {
1405
- let [key, value] = Object.entries(tags)[0];
1406
- boundary[key] = value;
1407
- } else {
1408
- boundary.tags = tags;
1409
- }
1410
- if (typeof link === "object") {
1411
- let [key, value] = Object.entries(link)[0];
1412
- boundary[key] = value;
1413
- } else {
1414
- boundary.link = link;
1415
- }
1416
- boundary.nodeType = nodeType;
1417
- boundary.parentBoundary = currentBoundaryParse;
1418
- boundary.wrap = autoWrap();
1419
- parentBoundaryParse = currentBoundaryParse;
1420
- currentBoundaryParse = alias;
1421
- boundaryParseStack.push(parentBoundaryParse);
1422
- }, "addDeploymentNode");
1423
- var popBoundaryParseStack = /* @__PURE__ */ __name(function() {
1424
- currentBoundaryParse = parentBoundaryParse;
1425
- boundaryParseStack.pop();
1426
- parentBoundaryParse = boundaryParseStack.pop();
1427
- boundaryParseStack.push(parentBoundaryParse);
1428
- }, "popBoundaryParseStack");
1429
- var updateElStyle = /* @__PURE__ */ __name(function(typeC4Shape, elementName, bgColor, fontColor, borderColor, shadowing, shape, sprite, techn, legendText, legendSprite) {
1430
- let old = c4ShapeArray.find((element) => element.alias === elementName);
1431
- if (old === void 0) {
1432
- old = boundaries.find((element) => element.alias === elementName);
1433
- if (old === void 0) {
1434
- return;
1435
- }
1436
- }
1437
- if (bgColor !== void 0 && bgColor !== null) {
1438
- if (typeof bgColor === "object") {
1439
- let [key, value] = Object.entries(bgColor)[0];
1440
- old[key] = value;
1441
- } else {
1442
- old.bgColor = bgColor;
1443
- }
1444
- }
1445
- if (fontColor !== void 0 && fontColor !== null) {
1446
- if (typeof fontColor === "object") {
1447
- let [key, value] = Object.entries(fontColor)[0];
1448
- old[key] = value;
1449
- } else {
1450
- old.fontColor = fontColor;
1451
- }
1452
- }
1453
- if (borderColor !== void 0 && borderColor !== null) {
1454
- if (typeof borderColor === "object") {
1455
- let [key, value] = Object.entries(borderColor)[0];
1456
- old[key] = value;
1457
- } else {
1458
- old.borderColor = borderColor;
1459
- }
1460
- }
1461
- if (shadowing !== void 0 && shadowing !== null) {
1462
- if (typeof shadowing === "object") {
1463
- let [key, value] = Object.entries(shadowing)[0];
1464
- old[key] = value;
1465
- } else {
1466
- old.shadowing = shadowing;
1467
- }
1468
- }
1469
- if (shape !== void 0 && shape !== null) {
1470
- if (typeof shape === "object") {
1471
- let [key, value] = Object.entries(shape)[0];
1472
- old[key] = value;
1473
- } else {
1474
- old.shape = shape;
1475
- }
1476
- }
1477
- if (sprite !== void 0 && sprite !== null) {
1478
- if (typeof sprite === "object") {
1479
- let [key, value] = Object.entries(sprite)[0];
1480
- old[key] = value;
1481
- } else {
1482
- old.sprite = sprite;
1483
- }
1484
- }
1485
- if (techn !== void 0 && techn !== null) {
1486
- if (typeof techn === "object") {
1487
- let [key, value] = Object.entries(techn)[0];
1488
- old[key] = value;
1489
- } else {
1490
- old.techn = techn;
1491
- }
1492
- }
1493
- if (legendText !== void 0 && legendText !== null) {
1494
- if (typeof legendText === "object") {
1495
- let [key, value] = Object.entries(legendText)[0];
1496
- old[key] = value;
1497
- } else {
1498
- old.legendText = legendText;
1499
- }
1500
- }
1501
- if (legendSprite !== void 0 && legendSprite !== null) {
1502
- if (typeof legendSprite === "object") {
1503
- let [key, value] = Object.entries(legendSprite)[0];
1504
- old[key] = value;
1505
- } else {
1506
- old.legendSprite = legendSprite;
1507
- }
1508
- }
1509
- }, "updateElStyle");
1510
- var updateRelStyle = /* @__PURE__ */ __name(function(typeC4Shape, from, to, textColor, lineColor, offsetX, offsetY) {
1511
- const old = rels.find((rel) => rel.from === from && rel.to === to);
1512
- if (old === void 0) {
1513
- return;
1514
- }
1515
- if (textColor !== void 0 && textColor !== null) {
1516
- if (typeof textColor === "object") {
1517
- let [key, value] = Object.entries(textColor)[0];
1518
- old[key] = value;
1519
- } else {
1520
- old.textColor = textColor;
1521
- }
1522
- }
1523
- if (lineColor !== void 0 && lineColor !== null) {
1524
- if (typeof lineColor === "object") {
1525
- let [key, value] = Object.entries(lineColor)[0];
1526
- old[key] = value;
1527
- } else {
1528
- old.lineColor = lineColor;
1529
- }
1530
- }
1531
- if (offsetX !== void 0 && offsetX !== null) {
1532
- if (typeof offsetX === "object") {
1533
- let [key, value] = Object.entries(offsetX)[0];
1534
- old[key] = parseInt(value);
1535
- } else {
1536
- old.offsetX = parseInt(offsetX);
1537
- }
1538
- }
1539
- if (offsetY !== void 0 && offsetY !== null) {
1540
- if (typeof offsetY === "object") {
1541
- let [key, value] = Object.entries(offsetY)[0];
1542
- old[key] = parseInt(value);
1543
- } else {
1544
- old.offsetY = parseInt(offsetY);
1545
- }
1546
- }
1547
- }, "updateRelStyle");
1548
- var updateLayoutConfig = /* @__PURE__ */ __name(function(typeC4Shape, c4ShapeInRowParam, c4BoundaryInRowParam) {
1549
- let c4ShapeInRowValue = c4ShapeInRow;
1550
- let c4BoundaryInRowValue = c4BoundaryInRow;
1551
- if (typeof c4ShapeInRowParam === "object") {
1552
- const value = Object.values(c4ShapeInRowParam)[0];
1553
- c4ShapeInRowValue = parseInt(value);
1554
- } else {
1555
- c4ShapeInRowValue = parseInt(c4ShapeInRowParam);
1556
- }
1557
- if (typeof c4BoundaryInRowParam === "object") {
1558
- const value = Object.values(c4BoundaryInRowParam)[0];
1559
- c4BoundaryInRowValue = parseInt(value);
1560
- } else {
1561
- c4BoundaryInRowValue = parseInt(c4BoundaryInRowParam);
1562
- }
1563
- if (c4ShapeInRowValue >= 1) {
1564
- c4ShapeInRow = c4ShapeInRowValue;
1565
- }
1566
- if (c4BoundaryInRowValue >= 1) {
1567
- c4BoundaryInRow = c4BoundaryInRowValue;
1568
- }
1569
- }, "updateLayoutConfig");
1570
- var getC4ShapeInRow = /* @__PURE__ */ __name(function() {
1571
- return c4ShapeInRow;
1572
- }, "getC4ShapeInRow");
1573
- var getC4BoundaryInRow = /* @__PURE__ */ __name(function() {
1574
- return c4BoundaryInRow;
1575
- }, "getC4BoundaryInRow");
1576
- var getCurrentBoundaryParse = /* @__PURE__ */ __name(function() {
1577
- return currentBoundaryParse;
1578
- }, "getCurrentBoundaryParse");
1579
- var getParentBoundaryParse = /* @__PURE__ */ __name(function() {
1580
- return parentBoundaryParse;
1581
- }, "getParentBoundaryParse");
1582
- var getC4ShapeArray = /* @__PURE__ */ __name(function(parentBoundary) {
1583
- if (parentBoundary === void 0 || parentBoundary === null) {
1584
- return c4ShapeArray;
1585
- } else {
1586
- return c4ShapeArray.filter((personOrSystem) => {
1587
- return personOrSystem.parentBoundary === parentBoundary;
1588
- });
1589
- }
1590
- }, "getC4ShapeArray");
1591
- var getC4Shape = /* @__PURE__ */ __name(function(alias) {
1592
- return c4ShapeArray.find((personOrSystem) => personOrSystem.alias === alias);
1593
- }, "getC4Shape");
1594
- var getC4ShapeKeys = /* @__PURE__ */ __name(function(parentBoundary) {
1595
- return Object.keys(getC4ShapeArray(parentBoundary));
1596
- }, "getC4ShapeKeys");
1597
- var getBoundaries = /* @__PURE__ */ __name(function(parentBoundary) {
1598
- if (parentBoundary === void 0 || parentBoundary === null) {
1599
- return boundaries;
1600
- } else {
1601
- return boundaries.filter((boundary) => boundary.parentBoundary === parentBoundary);
1602
- }
1603
- }, "getBoundaries");
1604
- var getBoundarys = getBoundaries;
1605
- var getRels = /* @__PURE__ */ __name(function() {
1606
- return rels;
1607
- }, "getRels");
1608
- var getTitle = /* @__PURE__ */ __name(function() {
1609
- return title;
1610
- }, "getTitle");
1611
- var setWrap = /* @__PURE__ */ __name(function(wrapSetting) {
1612
- wrapEnabled = wrapSetting;
1613
- }, "setWrap");
1614
- var autoWrap = /* @__PURE__ */ __name(function() {
1615
- return wrapEnabled;
1616
- }, "autoWrap");
1617
- var clear = /* @__PURE__ */ __name(function() {
1618
- c4ShapeArray = [];
1619
- boundaries = [
1620
- {
1621
- alias: "global",
1622
- label: { text: "global" },
1623
- type: { text: "global" },
1624
- tags: null,
1625
- link: null,
1626
- parentBoundary: ""
1627
- }
1628
- ];
1629
- parentBoundaryParse = "";
1630
- currentBoundaryParse = "global";
1631
- boundaryParseStack = [""];
1632
- rels = [];
1633
- boundaryParseStack = [""];
1634
- title = "";
1635
- wrapEnabled = false;
1636
- c4ShapeInRow = 4;
1637
- c4BoundaryInRow = 2;
1638
- }, "clear");
1639
- var LINETYPE = {
1640
- SOLID: 0,
1641
- DOTTED: 1,
1642
- NOTE: 2,
1643
- SOLID_CROSS: 3,
1644
- DOTTED_CROSS: 4,
1645
- SOLID_OPEN: 5,
1646
- DOTTED_OPEN: 6,
1647
- LOOP_START: 10,
1648
- LOOP_END: 11,
1649
- ALT_START: 12,
1650
- ALT_ELSE: 13,
1651
- ALT_END: 14,
1652
- OPT_START: 15,
1653
- OPT_END: 16,
1654
- ACTIVE_START: 17,
1655
- ACTIVE_END: 18,
1656
- PAR_START: 19,
1657
- PAR_AND: 20,
1658
- PAR_END: 21,
1659
- RECT_START: 22,
1660
- RECT_END: 23,
1661
- SOLID_POINT: 24,
1662
- DOTTED_POINT: 25
1663
- };
1664
- var ARROWTYPE = {
1665
- FILLED: 0,
1666
- OPEN: 1
1667
- };
1668
- var PLACEMENT = {
1669
- LEFTOF: 0,
1670
- RIGHTOF: 1,
1671
- OVER: 2
1672
- };
1673
- var setTitle = /* @__PURE__ */ __name(function(txt) {
1674
- let sanitizedText = sanitizeText(txt, getConfig2());
1675
- title = sanitizedText;
1676
- }, "setTitle");
1677
- var c4Db_default = {
1678
- addPersonOrSystem,
1679
- addPersonOrSystemBoundary,
1680
- addContainer,
1681
- addContainerBoundary,
1682
- addComponent,
1683
- addDeploymentNode,
1684
- popBoundaryParseStack,
1685
- addRel,
1686
- updateElStyle,
1687
- updateRelStyle,
1688
- updateLayoutConfig,
1689
- autoWrap,
1690
- setWrap,
1691
- getC4ShapeArray,
1692
- getC4Shape,
1693
- getC4ShapeKeys,
1694
- getBoundaries,
1695
- getBoundarys,
1696
- getCurrentBoundaryParse,
1697
- getParentBoundaryParse,
1698
- getRels,
1699
- getTitle,
1700
- getC4Type,
1701
- getC4ShapeInRow,
1702
- getC4BoundaryInRow,
1703
- setAccTitle,
1704
- getAccTitle,
1705
- getAccDescription,
1706
- setAccDescription,
1707
- getConfig: /* @__PURE__ */ __name(() => getConfig2().c4, "getConfig"),
1708
- clear,
1709
- LINETYPE,
1710
- ARROWTYPE,
1711
- PLACEMENT,
1712
- setTitle,
1713
- setC4Type
1714
- // apply,
1715
- };
1716
- var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1717
- return drawRect(elem, rectData);
1718
- }, "drawRect");
1719
- var drawImage = /* @__PURE__ */ __name(function(elem, width, height, x, y, link) {
1720
- const imageElem = elem.append("image");
1721
- imageElem.attr("width", width);
1722
- imageElem.attr("height", height);
1723
- imageElem.attr("x", x);
1724
- imageElem.attr("y", y);
1725
- let sanitizedLink = link.startsWith("data:image/png;base64") ? link : (0, import_sanitize_url.sanitizeUrl)(link);
1726
- imageElem.attr("xlink:href", sanitizedLink);
1727
- }, "drawImage");
1728
- var drawRels = /* @__PURE__ */ __name((elem, rels2, conf2) => {
1729
- const relsElem = elem.append("g");
1730
- let i = 0;
1731
- for (let rel of rels2) {
1732
- let textColor = rel.textColor ? rel.textColor : "#444444";
1733
- let strokeColor = rel.lineColor ? rel.lineColor : "#444444";
1734
- let offsetX = rel.offsetX ? parseInt(rel.offsetX) : 0;
1735
- let offsetY = rel.offsetY ? parseInt(rel.offsetY) : 0;
1736
- let url = "";
1737
- if (i === 0) {
1738
- let line = relsElem.append("line");
1739
- line.attr("x1", rel.startPoint.x);
1740
- line.attr("y1", rel.startPoint.y);
1741
- line.attr("x2", rel.endPoint.x);
1742
- line.attr("y2", rel.endPoint.y);
1743
- line.attr("stroke-width", "1");
1744
- line.attr("stroke", strokeColor);
1745
- line.style("fill", "none");
1746
- if (rel.type !== "rel_b") {
1747
- line.attr("marker-end", "url(" + url + "#arrowhead)");
1748
- }
1749
- if (rel.type === "birel" || rel.type === "rel_b") {
1750
- line.attr("marker-start", "url(" + url + "#arrowend)");
1751
- }
1752
- i = -1;
1753
- } else {
1754
- let line = relsElem.append("path");
1755
- line.attr("fill", "none").attr("stroke-width", "1").attr("stroke", strokeColor).attr(
1756
- "d",
1757
- "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", rel.startPoint.x).replaceAll("starty", rel.startPoint.y).replaceAll(
1758
- "controlx",
1759
- rel.startPoint.x + (rel.endPoint.x - rel.startPoint.x) / 2 - (rel.endPoint.x - rel.startPoint.x) / 4
1760
- ).replaceAll("controly", rel.startPoint.y + (rel.endPoint.y - rel.startPoint.y) / 2).replaceAll("stopx", rel.endPoint.x).replaceAll("stopy", rel.endPoint.y)
1761
- );
1762
- if (rel.type !== "rel_b") {
1763
- line.attr("marker-end", "url(" + url + "#arrowhead)");
1764
- }
1765
- if (rel.type === "birel" || rel.type === "rel_b") {
1766
- line.attr("marker-start", "url(" + url + "#arrowend)");
1767
- }
1768
- }
1769
- let messageConf = conf2.messageFont();
1770
- _drawTextCandidateFunc(conf2)(
1771
- rel.label.text,
1772
- relsElem,
1773
- Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX,
1774
- Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + offsetY,
1775
- rel.label.width,
1776
- rel.label.height,
1777
- { fill: textColor },
1778
- messageConf
1779
- );
1780
- if (rel.techn && rel.techn.text !== "") {
1781
- messageConf = conf2.messageFont();
1782
- _drawTextCandidateFunc(conf2)(
1783
- "[" + rel.techn.text + "]",
1784
- relsElem,
1785
- Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX,
1786
- Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + conf2.messageFontSize + 5 + offsetY,
1787
- Math.max(rel.label.width, rel.techn.width),
1788
- rel.techn.height,
1789
- { fill: textColor, "font-style": "italic" },
1790
- messageConf
1791
- );
1792
- }
1793
- }
1794
- }, "drawRels");
1795
- var drawBoundary = /* @__PURE__ */ __name(function(elem, boundary, conf2) {
1796
- const boundaryElem = elem.append("g");
1797
- let fillColor = boundary.bgColor ? boundary.bgColor : "none";
1798
- let strokeColor = boundary.borderColor ? boundary.borderColor : "#444444";
1799
- let fontColor = boundary.fontColor ? boundary.fontColor : "black";
1800
- let attrsValue = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1801
- if (boundary.nodeType) {
1802
- attrsValue = { "stroke-width": 1 };
1803
- }
1804
- let rectData = {
1805
- x: boundary.x,
1806
- y: boundary.y,
1807
- fill: fillColor,
1808
- stroke: strokeColor,
1809
- width: boundary.width,
1810
- height: boundary.height,
1811
- rx: 2.5,
1812
- ry: 2.5,
1813
- attrs: attrsValue
1814
- };
1815
- drawRect2(boundaryElem, rectData);
1816
- let boundaryConf = conf2.boundaryFont();
1817
- boundaryConf.fontWeight = "bold";
1818
- boundaryConf.fontSize = boundaryConf.fontSize + 2;
1819
- boundaryConf.fontColor = fontColor;
1820
- _drawTextCandidateFunc(conf2)(
1821
- boundary.label.text,
1822
- boundaryElem,
1823
- boundary.x,
1824
- boundary.y + boundary.label.Y,
1825
- boundary.width,
1826
- boundary.height,
1827
- { fill: "#444444" },
1828
- boundaryConf
1829
- );
1830
- if (boundary.type && boundary.type.text !== "") {
1831
- boundaryConf = conf2.boundaryFont();
1832
- boundaryConf.fontColor = fontColor;
1833
- _drawTextCandidateFunc(conf2)(
1834
- boundary.type.text,
1835
- boundaryElem,
1836
- boundary.x,
1837
- boundary.y + boundary.type.Y,
1838
- boundary.width,
1839
- boundary.height,
1840
- { fill: "#444444" },
1841
- boundaryConf
1842
- );
1843
- }
1844
- if (boundary.descr && boundary.descr.text !== "") {
1845
- boundaryConf = conf2.boundaryFont();
1846
- boundaryConf.fontSize = boundaryConf.fontSize - 2;
1847
- boundaryConf.fontColor = fontColor;
1848
- _drawTextCandidateFunc(conf2)(
1849
- boundary.descr.text,
1850
- boundaryElem,
1851
- boundary.x,
1852
- boundary.y + boundary.descr.Y,
1853
- boundary.width,
1854
- boundary.height,
1855
- { fill: "#444444" },
1856
- boundaryConf
1857
- );
1858
- }
1859
- }, "drawBoundary");
1860
- var drawC4Shape = /* @__PURE__ */ __name(function(elem, c4Shape, conf2) {
1861
- let fillColor = c4Shape.bgColor ? c4Shape.bgColor : conf2[c4Shape.typeC4Shape.text + "_bg_color"];
1862
- let strokeColor = c4Shape.borderColor ? c4Shape.borderColor : conf2[c4Shape.typeC4Shape.text + "_border_color"];
1863
- let fontColor = c4Shape.fontColor ? c4Shape.fontColor : "#FFFFFF";
1864
- let personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1865
- switch (c4Shape.typeC4Shape.text) {
1866
- case "person":
1867
- personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1868
- break;
1869
- case "external_person":
1870
- personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1871
- break;
1872
- }
1873
- const c4ShapeElem = elem.append("g");
1874
- c4ShapeElem.attr("class", "person-man");
1875
- const rect = getNoteRect();
1876
- switch (c4Shape.typeC4Shape.text) {
1877
- case "person":
1878
- case "external_person":
1879
- case "system":
1880
- case "external_system":
1881
- case "container":
1882
- case "external_container":
1883
- case "component":
1884
- case "external_component":
1885
- rect.x = c4Shape.x;
1886
- rect.y = c4Shape.y;
1887
- rect.fill = fillColor;
1888
- rect.width = c4Shape.width;
1889
- rect.height = c4Shape.height;
1890
- rect.stroke = strokeColor;
1891
- rect.rx = 2.5;
1892
- rect.ry = 2.5;
1893
- rect.attrs = { "stroke-width": 0.5 };
1894
- drawRect2(c4ShapeElem, rect);
1895
- break;
1896
- case "system_db":
1897
- case "external_system_db":
1898
- case "container_db":
1899
- case "external_container_db":
1900
- case "component_db":
1901
- case "external_component_db":
1902
- c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1903
- "d",
1904
- "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", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2).replaceAll("height", c4Shape.height)
1905
- );
1906
- c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1907
- "d",
1908
- "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2)
1909
- );
1910
- break;
1911
- case "system_queue":
1912
- case "external_system_queue":
1913
- case "container_queue":
1914
- case "external_container_queue":
1915
- case "component_queue":
1916
- case "external_component_queue":
1917
- c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1918
- "d",
1919
- "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", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("width", c4Shape.width).replaceAll("half", c4Shape.height / 2)
1920
- );
1921
- c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1922
- "d",
1923
- "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", c4Shape.x + c4Shape.width).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.height / 2)
1924
- );
1925
- break;
1926
- }
1927
- let c4ShapeFontConf = getC4ShapeFont(conf2, c4Shape.typeC4Shape.text);
1928
- c4ShapeElem.append("text").attr("fill", fontColor).attr("font-family", c4ShapeFontConf.fontFamily).attr("font-size", c4ShapeFontConf.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", c4Shape.typeC4Shape.width).attr("x", c4Shape.x + c4Shape.width / 2 - c4Shape.typeC4Shape.width / 2).attr("y", c4Shape.y + c4Shape.typeC4Shape.Y).text("<<" + c4Shape.typeC4Shape.text + ">>");
1929
- switch (c4Shape.typeC4Shape.text) {
1930
- case "person":
1931
- case "external_person":
1932
- drawImage(
1933
- c4ShapeElem,
1934
- 48,
1935
- 48,
1936
- c4Shape.x + c4Shape.width / 2 - 24,
1937
- c4Shape.y + c4Shape.image.Y,
1938
- personImg
1939
- );
1940
- break;
1941
- }
1942
- let textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
1943
- textFontConf.fontWeight = "bold";
1944
- textFontConf.fontSize = textFontConf.fontSize + 2;
1945
- textFontConf.fontColor = fontColor;
1946
- _drawTextCandidateFunc(conf2)(
1947
- c4Shape.label.text,
1948
- c4ShapeElem,
1949
- c4Shape.x,
1950
- c4Shape.y + c4Shape.label.Y,
1951
- c4Shape.width,
1952
- c4Shape.height,
1953
- { fill: fontColor },
1954
- textFontConf
1955
- );
1956
- textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
1957
- textFontConf.fontColor = fontColor;
1958
- if (c4Shape.techn && c4Shape.techn?.text !== "") {
1959
- _drawTextCandidateFunc(conf2)(
1960
- c4Shape.techn.text,
1961
- c4ShapeElem,
1962
- c4Shape.x,
1963
- c4Shape.y + c4Shape.techn.Y,
1964
- c4Shape.width,
1965
- c4Shape.height,
1966
- { fill: fontColor, "font-style": "italic" },
1967
- textFontConf
1968
- );
1969
- } else if (c4Shape.type && c4Shape.type.text !== "") {
1970
- _drawTextCandidateFunc(conf2)(
1971
- c4Shape.type.text,
1972
- c4ShapeElem,
1973
- c4Shape.x,
1974
- c4Shape.y + c4Shape.type.Y,
1975
- c4Shape.width,
1976
- c4Shape.height,
1977
- { fill: fontColor, "font-style": "italic" },
1978
- textFontConf
1979
- );
1980
- }
1981
- if (c4Shape.descr && c4Shape.descr.text !== "") {
1982
- textFontConf = conf2.personFont();
1983
- textFontConf.fontColor = fontColor;
1984
- _drawTextCandidateFunc(conf2)(
1985
- c4Shape.descr.text,
1986
- c4ShapeElem,
1987
- c4Shape.x,
1988
- c4Shape.y + c4Shape.descr.Y,
1989
- c4Shape.width,
1990
- c4Shape.height,
1991
- { fill: fontColor },
1992
- textFontConf
1993
- );
1994
- }
1995
- return c4Shape.height;
1996
- }, "drawC4Shape");
1997
- var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem) {
1998
- elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1999
- "d",
2000
- "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"
2001
- );
2002
- }, "insertDatabaseIcon");
2003
- var insertComputerIcon = /* @__PURE__ */ __name(function(elem) {
2004
- elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2005
- "d",
2006
- "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"
2007
- );
2008
- }, "insertComputerIcon");
2009
- var insertClockIcon = /* @__PURE__ */ __name(function(elem) {
2010
- elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2011
- "d",
2012
- "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"
2013
- );
2014
- }, "insertClockIcon");
2015
- var insertArrowHead = /* @__PURE__ */ __name(function(elem) {
2016
- elem.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");
2017
- }, "insertArrowHead");
2018
- var insertArrowEnd = /* @__PURE__ */ __name(function(elem) {
2019
- elem.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");
2020
- }, "insertArrowEnd");
2021
- var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem) {
2022
- elem.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");
2023
- }, "insertArrowFilledHead");
2024
- var insertDynamicNumber = /* @__PURE__ */ __name(function(elem) {
2025
- elem.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);
2026
- }, "insertDynamicNumber");
2027
- var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem) {
2028
- const defs = elem.append("defs");
2029
- const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2030
- marker.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");
2031
- marker.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");
2032
- }, "insertArrowCrossHead");
2033
- var getC4ShapeFont = /* @__PURE__ */ __name((cnf, typeC4Shape) => {
2034
- return {
2035
- fontFamily: cnf[typeC4Shape + "FontFamily"],
2036
- fontSize: cnf[typeC4Shape + "FontSize"],
2037
- fontWeight: cnf[typeC4Shape + "FontWeight"]
2038
- };
2039
- }, "getC4ShapeFont");
2040
- var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2041
- function byText(content, g, x, y, width, height, textAttrs) {
2042
- const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2043
- _setTextAttrs(text, textAttrs);
2044
- }
2045
- __name(byText, "byText");
2046
- function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2047
- const { fontSize, fontFamily, fontWeight } = conf2;
2048
- const lines = content.split(common_default.lineBreakRegex);
2049
- for (let i = 0; i < lines.length; i++) {
2050
- const dy = i * fontSize - fontSize * (lines.length - 1) / 2;
2051
- const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", fontSize).style("font-weight", fontWeight).style("font-family", fontFamily);
2052
- text.append("tspan").attr("dy", dy).text(lines[i]).attr("alignment-baseline", "mathematical");
2053
- _setTextAttrs(text, textAttrs);
2054
- }
2055
- }
2056
- __name(byTspan, "byTspan");
2057
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2058
- const s = g.append("switch");
2059
- const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2060
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2061
- text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2062
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2063
- _setTextAttrs(text, textAttrs);
2064
- }
2065
- __name(byFo, "byFo");
2066
- function _setTextAttrs(toText, fromTextAttrsDict) {
2067
- for (const key in fromTextAttrsDict) {
2068
- if (fromTextAttrsDict.hasOwnProperty(key)) {
2069
- toText.attr(key, fromTextAttrsDict[key]);
2070
- }
2071
- }
2072
- }
2073
- __name(_setTextAttrs, "_setTextAttrs");
2074
- return function(conf2) {
2075
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2076
- };
2077
- }();
2078
- var svgDraw_default = {
2079
- drawRect: drawRect2,
2080
- drawBoundary,
2081
- drawC4Shape,
2082
- drawRels,
2083
- drawImage,
2084
- insertArrowHead,
2085
- insertArrowEnd,
2086
- insertArrowFilledHead,
2087
- insertDynamicNumber,
2088
- insertArrowCrossHead,
2089
- insertDatabaseIcon,
2090
- insertComputerIcon,
2091
- insertClockIcon
2092
- };
2093
- var globalBoundaryMaxX = 0;
2094
- var globalBoundaryMaxY = 0;
2095
- var c4ShapeInRow2 = 4;
2096
- var c4BoundaryInRow2 = 2;
2097
- parser.yy = c4Db_default;
2098
- var conf = {};
2099
- var Bounds = class {
2100
- static {
2101
- __name(this, "Bounds");
2102
- }
2103
- constructor(diagObj) {
2104
- this.name = "";
2105
- this.data = {};
2106
- this.data.startx = void 0;
2107
- this.data.stopx = void 0;
2108
- this.data.starty = void 0;
2109
- this.data.stopy = void 0;
2110
- this.data.widthLimit = void 0;
2111
- this.nextData = {};
2112
- this.nextData.startx = void 0;
2113
- this.nextData.stopx = void 0;
2114
- this.nextData.starty = void 0;
2115
- this.nextData.stopy = void 0;
2116
- this.nextData.cnt = 0;
2117
- setConf(diagObj.db.getConfig());
2118
- }
2119
- setData(startx, stopx, starty, stopy) {
2120
- this.nextData.startx = this.data.startx = startx;
2121
- this.nextData.stopx = this.data.stopx = stopx;
2122
- this.nextData.starty = this.data.starty = starty;
2123
- this.nextData.stopy = this.data.stopy = stopy;
2124
- }
2125
- updateVal(obj, key, val, fun) {
2126
- if (obj[key] === void 0) {
2127
- obj[key] = val;
2128
- } else {
2129
- obj[key] = fun(val, obj[key]);
2130
- }
2131
- }
2132
- insert(c4Shape) {
2133
- this.nextData.cnt = this.nextData.cnt + 1;
2134
- let _startx = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + c4Shape.margin : this.nextData.stopx + c4Shape.margin * 2;
2135
- let _stopx = _startx + c4Shape.width;
2136
- let _starty = this.nextData.starty + c4Shape.margin * 2;
2137
- let _stopy = _starty + c4Shape.height;
2138
- if (_startx >= this.data.widthLimit || _stopx >= this.data.widthLimit || this.nextData.cnt > c4ShapeInRow2) {
2139
- _startx = this.nextData.startx + c4Shape.margin + conf.nextLinePaddingX;
2140
- _starty = this.nextData.stopy + c4Shape.margin * 2;
2141
- this.nextData.stopx = _stopx = _startx + c4Shape.width;
2142
- this.nextData.starty = this.nextData.stopy;
2143
- this.nextData.stopy = _stopy = _starty + c4Shape.height;
2144
- this.nextData.cnt = 1;
2145
- }
2146
- c4Shape.x = _startx;
2147
- c4Shape.y = _starty;
2148
- this.updateVal(this.data, "startx", _startx, Math.min);
2149
- this.updateVal(this.data, "starty", _starty, Math.min);
2150
- this.updateVal(this.data, "stopx", _stopx, Math.max);
2151
- this.updateVal(this.data, "stopy", _stopy, Math.max);
2152
- this.updateVal(this.nextData, "startx", _startx, Math.min);
2153
- this.updateVal(this.nextData, "starty", _starty, Math.min);
2154
- this.updateVal(this.nextData, "stopx", _stopx, Math.max);
2155
- this.updateVal(this.nextData, "stopy", _stopy, Math.max);
2156
- }
2157
- init(diagObj) {
2158
- this.name = "";
2159
- this.data = {
2160
- startx: void 0,
2161
- stopx: void 0,
2162
- starty: void 0,
2163
- stopy: void 0,
2164
- widthLimit: void 0
2165
- };
2166
- this.nextData = {
2167
- startx: void 0,
2168
- stopx: void 0,
2169
- starty: void 0,
2170
- stopy: void 0,
2171
- cnt: 0
2172
- };
2173
- setConf(diagObj.db.getConfig());
2174
- }
2175
- bumpLastMargin(margin) {
2176
- this.data.stopx += margin;
2177
- this.data.stopy += margin;
2178
- }
2179
- };
2180
- var setConf = /* @__PURE__ */ __name(function(cnf) {
2181
- assignWithDepth_default(conf, cnf);
2182
- if (cnf.fontFamily) {
2183
- conf.personFontFamily = conf.systemFontFamily = conf.messageFontFamily = cnf.fontFamily;
2184
- }
2185
- if (cnf.fontSize) {
2186
- conf.personFontSize = conf.systemFontSize = conf.messageFontSize = cnf.fontSize;
2187
- }
2188
- if (cnf.fontWeight) {
2189
- conf.personFontWeight = conf.systemFontWeight = conf.messageFontWeight = cnf.fontWeight;
2190
- }
2191
- }, "setConf");
2192
- var c4ShapeFont = /* @__PURE__ */ __name((cnf, typeC4Shape) => {
2193
- return {
2194
- fontFamily: cnf[typeC4Shape + "FontFamily"],
2195
- fontSize: cnf[typeC4Shape + "FontSize"],
2196
- fontWeight: cnf[typeC4Shape + "FontWeight"]
2197
- };
2198
- }, "c4ShapeFont");
2199
- var boundaryFont = /* @__PURE__ */ __name((cnf) => {
2200
- return {
2201
- fontFamily: cnf.boundaryFontFamily,
2202
- fontSize: cnf.boundaryFontSize,
2203
- fontWeight: cnf.boundaryFontWeight
2204
- };
2205
- }, "boundaryFont");
2206
- var messageFont = /* @__PURE__ */ __name((cnf) => {
2207
- return {
2208
- fontFamily: cnf.messageFontFamily,
2209
- fontSize: cnf.messageFontSize,
2210
- fontWeight: cnf.messageFontWeight
2211
- };
2212
- }, "messageFont");
2213
- function calcC4ShapeTextWH(textType, c4Shape, c4ShapeTextWrap, textConf, textLimitWidth) {
2214
- if (!c4Shape[textType].width) {
2215
- if (c4ShapeTextWrap) {
2216
- c4Shape[textType].text = wrapLabel(c4Shape[textType].text, textLimitWidth, textConf);
2217
- c4Shape[textType].textLines = c4Shape[textType].text.split(common_default.lineBreakRegex).length;
2218
- c4Shape[textType].width = textLimitWidth;
2219
- c4Shape[textType].height = calculateTextHeight(c4Shape[textType].text, textConf);
2220
- } else {
2221
- let lines = c4Shape[textType].text.split(common_default.lineBreakRegex);
2222
- c4Shape[textType].textLines = lines.length;
2223
- let lineHeight = 0;
2224
- c4Shape[textType].height = 0;
2225
- c4Shape[textType].width = 0;
2226
- for (const line of lines) {
2227
- c4Shape[textType].width = Math.max(
2228
- calculateTextWidth(line, textConf),
2229
- c4Shape[textType].width
2230
- );
2231
- lineHeight = calculateTextHeight(line, textConf);
2232
- c4Shape[textType].height = c4Shape[textType].height + lineHeight;
2233
- }
2234
- }
2235
- }
2236
- }
2237
- __name(calcC4ShapeTextWH, "calcC4ShapeTextWH");
2238
- var drawBoundary2 = /* @__PURE__ */ __name(function(diagram2, boundary, bounds) {
2239
- boundary.x = bounds.data.startx;
2240
- boundary.y = bounds.data.starty;
2241
- boundary.width = bounds.data.stopx - bounds.data.startx;
2242
- boundary.height = bounds.data.stopy - bounds.data.starty;
2243
- boundary.label.y = conf.c4ShapeMargin - 35;
2244
- let boundaryTextWrap = boundary.wrap && conf.wrap;
2245
- let boundaryLabelConf = boundaryFont(conf);
2246
- boundaryLabelConf.fontSize = boundaryLabelConf.fontSize + 2;
2247
- boundaryLabelConf.fontWeight = "bold";
2248
- let textLimitWidth = calculateTextWidth(boundary.label.text, boundaryLabelConf);
2249
- calcC4ShapeTextWH("label", boundary, boundaryTextWrap, boundaryLabelConf, textLimitWidth);
2250
- svgDraw_default.drawBoundary(diagram2, boundary, conf);
2251
- }, "drawBoundary");
2252
- var drawC4ShapeArray = /* @__PURE__ */ __name(function(currentBounds, diagram2, c4ShapeArray2, c4ShapeKeys) {
2253
- let Y = 0;
2254
- for (const c4ShapeKey of c4ShapeKeys) {
2255
- Y = 0;
2256
- const c4Shape = c4ShapeArray2[c4ShapeKey];
2257
- let c4ShapeTypeConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2258
- c4ShapeTypeConf.fontSize = c4ShapeTypeConf.fontSize - 2;
2259
- c4Shape.typeC4Shape.width = calculateTextWidth(
2260
- "\xAB" + c4Shape.typeC4Shape.text + "\xBB",
2261
- c4ShapeTypeConf
2262
- );
2263
- c4Shape.typeC4Shape.height = c4ShapeTypeConf.fontSize + 2;
2264
- c4Shape.typeC4Shape.Y = conf.c4ShapePadding;
2265
- Y = c4Shape.typeC4Shape.Y + c4Shape.typeC4Shape.height - 4;
2266
- c4Shape.image = { width: 0, height: 0, Y: 0 };
2267
- switch (c4Shape.typeC4Shape.text) {
2268
- case "person":
2269
- case "external_person":
2270
- c4Shape.image.width = 48;
2271
- c4Shape.image.height = 48;
2272
- c4Shape.image.Y = Y;
2273
- Y = c4Shape.image.Y + c4Shape.image.height;
2274
- break;
2275
- }
2276
- if (c4Shape.sprite) {
2277
- c4Shape.image.width = 48;
2278
- c4Shape.image.height = 48;
2279
- c4Shape.image.Y = Y;
2280
- Y = c4Shape.image.Y + c4Shape.image.height;
2281
- }
2282
- let c4ShapeTextWrap = c4Shape.wrap && conf.wrap;
2283
- let textLimitWidth = conf.width - conf.c4ShapePadding * 2;
2284
- let c4ShapeLabelConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2285
- c4ShapeLabelConf.fontSize = c4ShapeLabelConf.fontSize + 2;
2286
- c4ShapeLabelConf.fontWeight = "bold";
2287
- calcC4ShapeTextWH("label", c4Shape, c4ShapeTextWrap, c4ShapeLabelConf, textLimitWidth);
2288
- c4Shape.label.Y = Y + 8;
2289
- Y = c4Shape.label.Y + c4Shape.label.height;
2290
- if (c4Shape.type && c4Shape.type.text !== "") {
2291
- c4Shape.type.text = "[" + c4Shape.type.text + "]";
2292
- let c4ShapeTypeConf2 = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2293
- calcC4ShapeTextWH("type", c4Shape, c4ShapeTextWrap, c4ShapeTypeConf2, textLimitWidth);
2294
- c4Shape.type.Y = Y + 5;
2295
- Y = c4Shape.type.Y + c4Shape.type.height;
2296
- } else if (c4Shape.techn && c4Shape.techn.text !== "") {
2297
- c4Shape.techn.text = "[" + c4Shape.techn.text + "]";
2298
- let c4ShapeTechnConf = c4ShapeFont(conf, c4Shape.techn.text);
2299
- calcC4ShapeTextWH("techn", c4Shape, c4ShapeTextWrap, c4ShapeTechnConf, textLimitWidth);
2300
- c4Shape.techn.Y = Y + 5;
2301
- Y = c4Shape.techn.Y + c4Shape.techn.height;
2302
- }
2303
- let rectHeight = Y;
2304
- let rectWidth = c4Shape.label.width;
2305
- if (c4Shape.descr && c4Shape.descr.text !== "") {
2306
- let c4ShapeDescrConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2307
- calcC4ShapeTextWH("descr", c4Shape, c4ShapeTextWrap, c4ShapeDescrConf, textLimitWidth);
2308
- c4Shape.descr.Y = Y + 20;
2309
- Y = c4Shape.descr.Y + c4Shape.descr.height;
2310
- rectWidth = Math.max(c4Shape.label.width, c4Shape.descr.width);
2311
- rectHeight = Y - c4Shape.descr.textLines * 5;
2312
- }
2313
- rectWidth = rectWidth + conf.c4ShapePadding;
2314
- c4Shape.width = Math.max(c4Shape.width || conf.width, rectWidth, conf.width);
2315
- c4Shape.height = Math.max(c4Shape.height || conf.height, rectHeight, conf.height);
2316
- c4Shape.margin = c4Shape.margin || conf.c4ShapeMargin;
2317
- currentBounds.insert(c4Shape);
2318
- svgDraw_default.drawC4Shape(diagram2, c4Shape, conf);
2319
- }
2320
- currentBounds.bumpLastMargin(conf.c4ShapeMargin);
2321
- }, "drawC4ShapeArray");
2322
- var Point = class {
2323
- static {
2324
- __name(this, "Point");
2325
- }
2326
- constructor(x, y) {
2327
- this.x = x;
2328
- this.y = y;
2329
- }
2330
- };
2331
- var getIntersectPoint = /* @__PURE__ */ __name(function(fromNode, endPoint) {
2332
- let x1 = fromNode.x;
2333
- let y1 = fromNode.y;
2334
- let x2 = endPoint.x;
2335
- let y2 = endPoint.y;
2336
- let fromCenterX = x1 + fromNode.width / 2;
2337
- let fromCenterY = y1 + fromNode.height / 2;
2338
- let dx = Math.abs(x1 - x2);
2339
- let dy = Math.abs(y1 - y2);
2340
- let tanDYX = dy / dx;
2341
- let fromDYX = fromNode.height / fromNode.width;
2342
- let returnPoint = null;
2343
- if (y1 == y2 && x1 < x2) {
2344
- returnPoint = new Point(x1 + fromNode.width, fromCenterY);
2345
- } else if (y1 == y2 && x1 > x2) {
2346
- returnPoint = new Point(x1, fromCenterY);
2347
- } else if (x1 == x2 && y1 < y2) {
2348
- returnPoint = new Point(fromCenterX, y1 + fromNode.height);
2349
- } else if (x1 == x2 && y1 > y2) {
2350
- returnPoint = new Point(fromCenterX, y1);
2351
- }
2352
- if (x1 > x2 && y1 < y2) {
2353
- if (fromDYX >= tanDYX) {
2354
- returnPoint = new Point(x1, fromCenterY + tanDYX * fromNode.width / 2);
2355
- } else {
2356
- returnPoint = new Point(
2357
- fromCenterX - dx / dy * fromNode.height / 2,
2358
- y1 + fromNode.height
2359
- );
2360
- }
2361
- } else if (x1 < x2 && y1 < y2) {
2362
- if (fromDYX >= tanDYX) {
2363
- returnPoint = new Point(x1 + fromNode.width, fromCenterY + tanDYX * fromNode.width / 2);
2364
- } else {
2365
- returnPoint = new Point(
2366
- fromCenterX + dx / dy * fromNode.height / 2,
2367
- y1 + fromNode.height
2368
- );
2369
- }
2370
- } else if (x1 < x2 && y1 > y2) {
2371
- if (fromDYX >= tanDYX) {
2372
- returnPoint = new Point(x1 + fromNode.width, fromCenterY - tanDYX * fromNode.width / 2);
2373
- } else {
2374
- returnPoint = new Point(fromCenterX + fromNode.height / 2 * dx / dy, y1);
2375
- }
2376
- } else if (x1 > x2 && y1 > y2) {
2377
- if (fromDYX >= tanDYX) {
2378
- returnPoint = new Point(x1, fromCenterY - fromNode.width / 2 * tanDYX);
2379
- } else {
2380
- returnPoint = new Point(fromCenterX - fromNode.height / 2 * dx / dy, y1);
2381
- }
2382
- }
2383
- return returnPoint;
2384
- }, "getIntersectPoint");
2385
- var getIntersectPoints = /* @__PURE__ */ __name(function(fromNode, endNode) {
2386
- let endIntersectPoint = { x: 0, y: 0 };
2387
- endIntersectPoint.x = endNode.x + endNode.width / 2;
2388
- endIntersectPoint.y = endNode.y + endNode.height / 2;
2389
- let startPoint = getIntersectPoint(fromNode, endIntersectPoint);
2390
- endIntersectPoint.x = fromNode.x + fromNode.width / 2;
2391
- endIntersectPoint.y = fromNode.y + fromNode.height / 2;
2392
- let endPoint = getIntersectPoint(endNode, endIntersectPoint);
2393
- return { startPoint, endPoint };
2394
- }, "getIntersectPoints");
2395
- var drawRels2 = /* @__PURE__ */ __name(function(diagram2, rels2, getC4ShapeObj, diagObj) {
2396
- let i = 0;
2397
- for (let rel of rels2) {
2398
- i = i + 1;
2399
- let relTextWrap = rel.wrap && conf.wrap;
2400
- let relConf = messageFont(conf);
2401
- let diagramType = diagObj.db.getC4Type();
2402
- if (diagramType === "C4Dynamic") {
2403
- rel.label.text = i + ": " + rel.label.text;
2404
- }
2405
- let textLimitWidth = calculateTextWidth(rel.label.text, relConf);
2406
- calcC4ShapeTextWH("label", rel, relTextWrap, relConf, textLimitWidth);
2407
- if (rel.techn && rel.techn.text !== "") {
2408
- textLimitWidth = calculateTextWidth(rel.techn.text, relConf);
2409
- calcC4ShapeTextWH("techn", rel, relTextWrap, relConf, textLimitWidth);
2410
- }
2411
- if (rel.descr && rel.descr.text !== "") {
2412
- textLimitWidth = calculateTextWidth(rel.descr.text, relConf);
2413
- calcC4ShapeTextWH("descr", rel, relTextWrap, relConf, textLimitWidth);
2414
- }
2415
- let fromNode = getC4ShapeObj(rel.from);
2416
- let endNode = getC4ShapeObj(rel.to);
2417
- let points = getIntersectPoints(fromNode, endNode);
2418
- rel.startPoint = points.startPoint;
2419
- rel.endPoint = points.endPoint;
2420
- }
2421
- svgDraw_default.drawRels(diagram2, rels2, conf);
2422
- }, "drawRels");
2423
- function drawInsideBoundary(diagram2, parentBoundaryAlias, parentBounds, currentBoundaries, diagObj) {
2424
- let currentBounds = new Bounds(diagObj);
2425
- currentBounds.data.widthLimit = parentBounds.data.widthLimit / Math.min(c4BoundaryInRow2, currentBoundaries.length);
2426
- for (let [i, currentBoundary] of currentBoundaries.entries()) {
2427
- let Y = 0;
2428
- currentBoundary.image = { width: 0, height: 0, Y: 0 };
2429
- if (currentBoundary.sprite) {
2430
- currentBoundary.image.width = 48;
2431
- currentBoundary.image.height = 48;
2432
- currentBoundary.image.Y = Y;
2433
- Y = currentBoundary.image.Y + currentBoundary.image.height;
2434
- }
2435
- let currentBoundaryTextWrap = currentBoundary.wrap && conf.wrap;
2436
- let currentBoundaryLabelConf = boundaryFont(conf);
2437
- currentBoundaryLabelConf.fontSize = currentBoundaryLabelConf.fontSize + 2;
2438
- currentBoundaryLabelConf.fontWeight = "bold";
2439
- calcC4ShapeTextWH(
2440
- "label",
2441
- currentBoundary,
2442
- currentBoundaryTextWrap,
2443
- currentBoundaryLabelConf,
2444
- currentBounds.data.widthLimit
2445
- );
2446
- currentBoundary.label.Y = Y + 8;
2447
- Y = currentBoundary.label.Y + currentBoundary.label.height;
2448
- if (currentBoundary.type && currentBoundary.type.text !== "") {
2449
- currentBoundary.type.text = "[" + currentBoundary.type.text + "]";
2450
- let currentBoundaryTypeConf = boundaryFont(conf);
2451
- calcC4ShapeTextWH(
2452
- "type",
2453
- currentBoundary,
2454
- currentBoundaryTextWrap,
2455
- currentBoundaryTypeConf,
2456
- currentBounds.data.widthLimit
2457
- );
2458
- currentBoundary.type.Y = Y + 5;
2459
- Y = currentBoundary.type.Y + currentBoundary.type.height;
2460
- }
2461
- if (currentBoundary.descr && currentBoundary.descr.text !== "") {
2462
- let currentBoundaryDescrConf = boundaryFont(conf);
2463
- currentBoundaryDescrConf.fontSize = currentBoundaryDescrConf.fontSize - 2;
2464
- calcC4ShapeTextWH(
2465
- "descr",
2466
- currentBoundary,
2467
- currentBoundaryTextWrap,
2468
- currentBoundaryDescrConf,
2469
- currentBounds.data.widthLimit
2470
- );
2471
- currentBoundary.descr.Y = Y + 20;
2472
- Y = currentBoundary.descr.Y + currentBoundary.descr.height;
2473
- }
2474
- if (i == 0 || i % c4BoundaryInRow2 === 0) {
2475
- let _x = parentBounds.data.startx + conf.diagramMarginX;
2476
- let _y = parentBounds.data.stopy + conf.diagramMarginY + Y;
2477
- currentBounds.setData(_x, _x, _y, _y);
2478
- } else {
2479
- let _x = currentBounds.data.stopx !== currentBounds.data.startx ? currentBounds.data.stopx + conf.diagramMarginX : currentBounds.data.startx;
2480
- let _y = currentBounds.data.starty;
2481
- currentBounds.setData(_x, _x, _y, _y);
2482
- }
2483
- currentBounds.name = currentBoundary.alias;
2484
- let currentPersonOrSystemArray = diagObj.db.getC4ShapeArray(currentBoundary.alias);
2485
- let currentPersonOrSystemKeys = diagObj.db.getC4ShapeKeys(currentBoundary.alias);
2486
- if (currentPersonOrSystemKeys.length > 0) {
2487
- drawC4ShapeArray(
2488
- currentBounds,
2489
- diagram2,
2490
- currentPersonOrSystemArray,
2491
- currentPersonOrSystemKeys
2492
- );
2493
- }
2494
- parentBoundaryAlias = currentBoundary.alias;
2495
- let nextCurrentBoundaries = diagObj.db.getBoundarys(parentBoundaryAlias);
2496
- if (nextCurrentBoundaries.length > 0) {
2497
- drawInsideBoundary(
2498
- diagram2,
2499
- parentBoundaryAlias,
2500
- currentBounds,
2501
- nextCurrentBoundaries,
2502
- diagObj
2503
- );
2504
- }
2505
- if (currentBoundary.alias !== "global") {
2506
- drawBoundary2(diagram2, currentBoundary, currentBounds);
2507
- }
2508
- parentBounds.data.stopy = Math.max(
2509
- currentBounds.data.stopy + conf.c4ShapeMargin,
2510
- parentBounds.data.stopy
2511
- );
2512
- parentBounds.data.stopx = Math.max(
2513
- currentBounds.data.stopx + conf.c4ShapeMargin,
2514
- parentBounds.data.stopx
2515
- );
2516
- globalBoundaryMaxX = Math.max(globalBoundaryMaxX, parentBounds.data.stopx);
2517
- globalBoundaryMaxY = Math.max(globalBoundaryMaxY, parentBounds.data.stopy);
2518
- }
2519
- }
2520
- __name(drawInsideBoundary, "drawInsideBoundary");
2521
- var draw = /* @__PURE__ */ __name(function(_text, id, _version, diagObj) {
2522
- conf = getConfig2().c4;
2523
- const securityLevel = getConfig2().securityLevel;
2524
- let sandboxElement;
2525
- if (securityLevel === "sandbox") {
2526
- sandboxElement = select_default("#i" + id);
2527
- }
2528
- const root = securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body");
2529
- let db = diagObj.db;
2530
- diagObj.db.setWrap(conf.wrap);
2531
- c4ShapeInRow2 = db.getC4ShapeInRow();
2532
- c4BoundaryInRow2 = db.getC4BoundaryInRow();
2533
- log.debug(`C:${JSON.stringify(conf, null, 2)}`);
2534
- const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select_default(`[id="${id}"]`);
2535
- svgDraw_default.insertComputerIcon(diagram2);
2536
- svgDraw_default.insertDatabaseIcon(diagram2);
2537
- svgDraw_default.insertClockIcon(diagram2);
2538
- let screenBounds = new Bounds(diagObj);
2539
- screenBounds.setData(
2540
- conf.diagramMarginX,
2541
- conf.diagramMarginX,
2542
- conf.diagramMarginY,
2543
- conf.diagramMarginY
2544
- );
2545
- screenBounds.data.widthLimit = screen.availWidth;
2546
- globalBoundaryMaxX = conf.diagramMarginX;
2547
- globalBoundaryMaxY = conf.diagramMarginY;
2548
- const title2 = diagObj.db.getTitle();
2549
- let currentBoundaries = diagObj.db.getBoundarys("");
2550
- drawInsideBoundary(diagram2, "", screenBounds, currentBoundaries, diagObj);
2551
- svgDraw_default.insertArrowHead(diagram2);
2552
- svgDraw_default.insertArrowEnd(diagram2);
2553
- svgDraw_default.insertArrowCrossHead(diagram2);
2554
- svgDraw_default.insertArrowFilledHead(diagram2);
2555
- drawRels2(diagram2, diagObj.db.getRels(), diagObj.db.getC4Shape, diagObj);
2556
- screenBounds.data.stopx = globalBoundaryMaxX;
2557
- screenBounds.data.stopy = globalBoundaryMaxY;
2558
- const box = screenBounds.data;
2559
- let boxHeight = box.stopy - box.starty;
2560
- let height = boxHeight + 2 * conf.diagramMarginY;
2561
- let boxWidth = box.stopx - box.startx;
2562
- const width = boxWidth + 2 * conf.diagramMarginX;
2563
- if (title2) {
2564
- diagram2.append("text").text(title2).attr("x", (box.stopx - box.startx) / 2 - 4 * conf.diagramMarginX).attr("y", box.starty + conf.diagramMarginY);
2565
- }
2566
- configureSvgSize(diagram2, height, width, conf.useMaxWidth);
2567
- const extraVertForTitle = title2 ? 60 : 0;
2568
- diagram2.attr(
2569
- "viewBox",
2570
- box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
2571
- );
2572
- log.debug(`models:`, box);
2573
- }, "draw");
2574
- var c4Renderer_default = {
2575
- drawPersonOrSystemArray: drawC4ShapeArray,
2576
- drawBoundary: drawBoundary2,
2577
- setConf,
2578
- draw
2579
- };
2580
- var getStyles = /* @__PURE__ */ __name((options) => `.person {
2581
- stroke: ${options.personBorder};
2582
- fill: ${options.personBkg};
2583
- }
2584
- `, "getStyles");
2585
- var styles_default = getStyles;
2586
- var diagram = {
2587
- parser: c4Diagram_default,
2588
- db: c4Db_default,
2589
- renderer: c4Renderer_default,
2590
- styles: styles_default,
2591
- init: /* @__PURE__ */ __name(({ c4, wrap }) => {
2592
- c4Renderer_default.setConf(c4);
2593
- c4Db_default.setWrap(wrap);
2594
- }, "init")
2595
- };
2596
- export {
2597
- diagram
2598
- };
2599
- //# sourceMappingURL=c4Diagram-6F5ED5ID-TBHFK2XY.js.map