@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.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 (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,4263 +0,0 @@
1
- import { a as y, l as ea, c as Z, G as Zt, m as at, V as aa, R as ra, b as S, e as ke, n as sa, j as ia, t as oa, r as na, k as la, o as ca, E as da, $ as ha, Q as Yt, N as G, am as X, an as At, d as pa, a3 as ve, X as Vt, ao as Ta, ap as Be } from "./index-BaAWoj3P.js";
2
- import { o as Ea, d as re, u as ht, a as ga, l as se, c as ie } from "./chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js";
3
- import { t as ua } from "./chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js";
4
- var Ye = pa(), te = (function() {
5
- var e = /* @__PURE__ */ y(function(N, M, C, b) {
6
- for (C ||= {}, b = N.length; b--; C[N[b]] = M) ;
7
- return C;
8
- }, "o"), t = [1, 2], r = [1, 3], a = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], l = [1, 12], E = [1, 14], d = [1, 15], p = [1, 17], _ = [1, 18], g = [1, 19], I = [1, 25], T = [1, 26], u = [1, 27], O = [1, 28], x = [1, 29], f = [1, 30], L = [1, 31], P = [1, 32], w = [1, 33], k = [1, 34], B = [1, 35], U = [1, 36], $ = [1, 37], q = [1, 38], z = [1, 39], J = [1, 40], it = [1, 42], Q = [1, 43], K = [1, 44], rt = [1, 45], tt = [1, 46], Y = [1, 47], D = [
9
- 1,
10
- 4,
11
- 5,
12
- 10,
13
- 14,
14
- 15,
15
- 17,
16
- 19,
17
- 22,
18
- 24,
19
- 30,
20
- 31,
21
- 32,
22
- 34,
23
- 36,
24
- 37,
25
- 38,
26
- 39,
27
- 40,
28
- 42,
29
- 44,
30
- 45,
31
- 47,
32
- 48,
33
- 49,
34
- 50,
35
- 51,
36
- 53,
37
- 54,
38
- 56,
39
- 61,
40
- 62,
41
- 63,
42
- 64,
43
- 73
44
- ], Lt = [1, 74], Dt = [1, 80], R = [1, 81], A = [1, 82], ct = [1, 83], et = [1, 84], V = [1, 85], Nt = [1, 86], oe = [1, 87], ne = [1, 88], le = [1, 89], ce = [1, 90], de = [1, 91], he = [1, 92], pe = [1, 93], Te = [1, 94], Ee = [1, 95], ge = [1, 96], ue = [1, 97], ye = [1, 98], Oe = [1, 99], _e = [1, 100], xe = [1, 101], be = [1, 102], me = [1, 103], Ie = [1, 104], fe = [1, 105], Re = [2, 78], Pt = [
45
- 4,
46
- 5,
47
- 17,
48
- 51,
49
- 53,
50
- 54
51
- ], kt = [
52
- 4,
53
- 5,
54
- 10,
55
- 14,
56
- 15,
57
- 17,
58
- 19,
59
- 22,
60
- 24,
61
- 30,
62
- 31,
63
- 32,
64
- 34,
65
- 36,
66
- 37,
67
- 38,
68
- 39,
69
- 40,
70
- 42,
71
- 44,
72
- 45,
73
- 47,
74
- 51,
75
- 53,
76
- 54,
77
- 56,
78
- 61,
79
- 62,
80
- 63,
81
- 64,
82
- 73
83
- ], Le = [
84
- 4,
85
- 5,
86
- 10,
87
- 14,
88
- 15,
89
- 17,
90
- 19,
91
- 22,
92
- 24,
93
- 30,
94
- 31,
95
- 32,
96
- 34,
97
- 36,
98
- 37,
99
- 38,
100
- 39,
101
- 40,
102
- 42,
103
- 44,
104
- 45,
105
- 47,
106
- 50,
107
- 51,
108
- 53,
109
- 54,
110
- 56,
111
- 61,
112
- 62,
113
- 63,
114
- 64,
115
- 73
116
- ], Ht = [
117
- 4,
118
- 5,
119
- 10,
120
- 14,
121
- 15,
122
- 17,
123
- 19,
124
- 22,
125
- 24,
126
- 30,
127
- 31,
128
- 32,
129
- 34,
130
- 36,
131
- 37,
132
- 38,
133
- 39,
134
- 40,
135
- 42,
136
- 44,
137
- 45,
138
- 47,
139
- 49,
140
- 51,
141
- 53,
142
- 54,
143
- 56,
144
- 61,
145
- 62,
146
- 63,
147
- 64,
148
- 73
149
- ], Ne = [
150
- 4,
151
- 5,
152
- 10,
153
- 14,
154
- 15,
155
- 17,
156
- 19,
157
- 22,
158
- 24,
159
- 30,
160
- 31,
161
- 32,
162
- 34,
163
- 36,
164
- 37,
165
- 38,
166
- 39,
167
- 40,
168
- 42,
169
- 44,
170
- 45,
171
- 47,
172
- 48,
173
- 51,
174
- 53,
175
- 54,
176
- 56,
177
- 61,
178
- 62,
179
- 63,
180
- 64,
181
- 73
182
- ], zt = [5, 52], W = [
183
- 70,
184
- 71,
185
- 72,
186
- 73
187
- ], ot = [1, 151], Ut = {
188
- trace: /* @__PURE__ */ y(function() {
189
- }, "trace"),
190
- yy: {},
191
- symbols_: {
192
- error: 2,
193
- start: 3,
194
- SPACE: 4,
195
- NEWLINE: 5,
196
- SD: 6,
197
- document: 7,
198
- line: 8,
199
- statement: 9,
200
- INVALID: 10,
201
- box_section: 11,
202
- box_line: 12,
203
- participant_statement: 13,
204
- create: 14,
205
- box: 15,
206
- restOfLine: 16,
207
- end: 17,
208
- signal: 18,
209
- autonumber: 19,
210
- NUM: 20,
211
- off: 21,
212
- activate: 22,
213
- actor: 23,
214
- deactivate: 24,
215
- note_statement: 25,
216
- links_statement: 26,
217
- link_statement: 27,
218
- properties_statement: 28,
219
- details_statement: 29,
220
- title: 30,
221
- legacy_title: 31,
222
- acc_title: 32,
223
- acc_title_value: 33,
224
- acc_descr: 34,
225
- acc_descr_value: 35,
226
- acc_descr_multiline_value: 36,
227
- loop: 37,
228
- rect: 38,
229
- opt: 39,
230
- alt: 40,
231
- else_sections: 41,
232
- par: 42,
233
- par_sections: 43,
234
- par_over: 44,
235
- critical: 45,
236
- option_sections: 46,
237
- break: 47,
238
- option: 48,
239
- and: 49,
240
- else: 50,
241
- participant: 51,
242
- AS: 52,
243
- participant_actor: 53,
244
- destroy: 54,
245
- actor_with_config: 55,
246
- note: 56,
247
- placement: 57,
248
- text2: 58,
249
- over: 59,
250
- actor_pair: 60,
251
- links: 61,
252
- link: 62,
253
- properties: 63,
254
- details: 64,
255
- spaceList: 65,
256
- ",": 66,
257
- left_of: 67,
258
- right_of: 68,
259
- signaltype: 69,
260
- "+": 70,
261
- "-": 71,
262
- "()": 72,
263
- ACTOR: 73,
264
- config_object: 74,
265
- CONFIG_START: 75,
266
- CONFIG_CONTENT: 76,
267
- CONFIG_END: 77,
268
- SOLID_OPEN_ARROW: 78,
269
- DOTTED_OPEN_ARROW: 79,
270
- SOLID_ARROW: 80,
271
- SOLID_ARROW_TOP: 81,
272
- SOLID_ARROW_BOTTOM: 82,
273
- STICK_ARROW_TOP: 83,
274
- STICK_ARROW_BOTTOM: 84,
275
- SOLID_ARROW_TOP_DOTTED: 85,
276
- SOLID_ARROW_BOTTOM_DOTTED: 86,
277
- STICK_ARROW_TOP_DOTTED: 87,
278
- STICK_ARROW_BOTTOM_DOTTED: 88,
279
- SOLID_ARROW_TOP_REVERSE: 89,
280
- SOLID_ARROW_BOTTOM_REVERSE: 90,
281
- STICK_ARROW_TOP_REVERSE: 91,
282
- STICK_ARROW_BOTTOM_REVERSE: 92,
283
- SOLID_ARROW_TOP_REVERSE_DOTTED: 93,
284
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94,
285
- STICK_ARROW_TOP_REVERSE_DOTTED: 95,
286
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96,
287
- BIDIRECTIONAL_SOLID_ARROW: 97,
288
- DOTTED_ARROW: 98,
289
- BIDIRECTIONAL_DOTTED_ARROW: 99,
290
- SOLID_CROSS: 100,
291
- DOTTED_CROSS: 101,
292
- SOLID_POINT: 102,
293
- DOTTED_POINT: 103,
294
- TXT: 104,
295
- $accept: 0,
296
- $end: 1
297
- },
298
- terminals_: {
299
- 2: "error",
300
- 4: "SPACE",
301
- 5: "NEWLINE",
302
- 6: "SD",
303
- 10: "INVALID",
304
- 14: "create",
305
- 15: "box",
306
- 16: "restOfLine",
307
- 17: "end",
308
- 19: "autonumber",
309
- 20: "NUM",
310
- 21: "off",
311
- 22: "activate",
312
- 24: "deactivate",
313
- 30: "title",
314
- 31: "legacy_title",
315
- 32: "acc_title",
316
- 33: "acc_title_value",
317
- 34: "acc_descr",
318
- 35: "acc_descr_value",
319
- 36: "acc_descr_multiline_value",
320
- 37: "loop",
321
- 38: "rect",
322
- 39: "opt",
323
- 40: "alt",
324
- 42: "par",
325
- 44: "par_over",
326
- 45: "critical",
327
- 47: "break",
328
- 48: "option",
329
- 49: "and",
330
- 50: "else",
331
- 51: "participant",
332
- 52: "AS",
333
- 53: "participant_actor",
334
- 54: "destroy",
335
- 56: "note",
336
- 59: "over",
337
- 61: "links",
338
- 62: "link",
339
- 63: "properties",
340
- 64: "details",
341
- 66: ",",
342
- 67: "left_of",
343
- 68: "right_of",
344
- 70: "+",
345
- 71: "-",
346
- 72: "()",
347
- 73: "ACTOR",
348
- 75: "CONFIG_START",
349
- 76: "CONFIG_CONTENT",
350
- 77: "CONFIG_END",
351
- 78: "SOLID_OPEN_ARROW",
352
- 79: "DOTTED_OPEN_ARROW",
353
- 80: "SOLID_ARROW",
354
- 81: "SOLID_ARROW_TOP",
355
- 82: "SOLID_ARROW_BOTTOM",
356
- 83: "STICK_ARROW_TOP",
357
- 84: "STICK_ARROW_BOTTOM",
358
- 85: "SOLID_ARROW_TOP_DOTTED",
359
- 86: "SOLID_ARROW_BOTTOM_DOTTED",
360
- 87: "STICK_ARROW_TOP_DOTTED",
361
- 88: "STICK_ARROW_BOTTOM_DOTTED",
362
- 89: "SOLID_ARROW_TOP_REVERSE",
363
- 90: "SOLID_ARROW_BOTTOM_REVERSE",
364
- 91: "STICK_ARROW_TOP_REVERSE",
365
- 92: "STICK_ARROW_BOTTOM_REVERSE",
366
- 93: "SOLID_ARROW_TOP_REVERSE_DOTTED",
367
- 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED",
368
- 95: "STICK_ARROW_TOP_REVERSE_DOTTED",
369
- 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED",
370
- 97: "BIDIRECTIONAL_SOLID_ARROW",
371
- 98: "DOTTED_ARROW",
372
- 99: "BIDIRECTIONAL_DOTTED_ARROW",
373
- 100: "SOLID_CROSS",
374
- 101: "DOTTED_CROSS",
375
- 102: "SOLID_POINT",
376
- 103: "DOTTED_POINT",
377
- 104: "TXT"
378
- },
379
- productions_: [
380
- 0,
381
- [3, 2],
382
- [3, 2],
383
- [3, 2],
384
- [7, 0],
385
- [7, 2],
386
- [8, 2],
387
- [8, 1],
388
- [8, 1],
389
- [8, 1],
390
- [11, 0],
391
- [11, 2],
392
- [12, 2],
393
- [12, 1],
394
- [12, 1],
395
- [9, 1],
396
- [9, 2],
397
- [9, 4],
398
- [9, 2],
399
- [9, 4],
400
- [9, 3],
401
- [9, 3],
402
- [9, 2],
403
- [9, 3],
404
- [9, 3],
405
- [9, 2],
406
- [9, 2],
407
- [9, 2],
408
- [9, 2],
409
- [9, 2],
410
- [9, 1],
411
- [9, 1],
412
- [9, 2],
413
- [9, 2],
414
- [9, 1],
415
- [9, 4],
416
- [9, 4],
417
- [9, 4],
418
- [9, 4],
419
- [9, 4],
420
- [9, 4],
421
- [9, 4],
422
- [9, 4],
423
- [46, 1],
424
- [46, 4],
425
- [43, 1],
426
- [43, 4],
427
- [41, 1],
428
- [41, 4],
429
- [13, 5],
430
- [13, 3],
431
- [13, 5],
432
- [13, 3],
433
- [13, 3],
434
- [13, 5],
435
- [13, 3],
436
- [13, 5],
437
- [13, 3],
438
- [25, 4],
439
- [25, 4],
440
- [26, 3],
441
- [27, 3],
442
- [28, 3],
443
- [29, 3],
444
- [65, 2],
445
- [65, 1],
446
- [60, 3],
447
- [60, 1],
448
- [57, 1],
449
- [57, 1],
450
- [18, 5],
451
- [18, 5],
452
- [18, 5],
453
- [18, 5],
454
- [18, 6],
455
- [18, 4],
456
- [55, 2],
457
- [74, 3],
458
- [23, 1],
459
- [69, 1],
460
- [69, 1],
461
- [69, 1],
462
- [69, 1],
463
- [69, 1],
464
- [69, 1],
465
- [69, 1],
466
- [69, 1],
467
- [69, 1],
468
- [69, 1],
469
- [69, 1],
470
- [69, 1],
471
- [69, 1],
472
- [69, 1],
473
- [69, 1],
474
- [69, 1],
475
- [69, 1],
476
- [69, 1],
477
- [69, 1],
478
- [69, 1],
479
- [69, 1],
480
- [69, 1],
481
- [69, 1],
482
- [69, 1],
483
- [69, 1],
484
- [69, 1],
485
- [58, 1]
486
- ],
487
- performAction: /* @__PURE__ */ y(function(N, M, C, b, H, n, St) {
488
- var h = n.length - 1;
489
- switch (H) {
490
- case 3:
491
- return b.apply(n[h]), n[h];
492
- case 4:
493
- case 10:
494
- this.$ = [];
495
- break;
496
- case 5:
497
- case 11:
498
- n[h - 1].push(n[h]), this.$ = n[h - 1];
499
- break;
500
- case 6:
501
- case 7:
502
- case 12:
503
- case 13:
504
- this.$ = n[h];
505
- break;
506
- case 8:
507
- case 9:
508
- case 14:
509
- this.$ = [];
510
- break;
511
- case 16:
512
- n[h].type = "createParticipant", this.$ = n[h];
513
- break;
514
- case 17:
515
- n[h - 1].unshift({
516
- type: "boxStart",
517
- boxData: b.parseBoxData(n[h - 2])
518
- }), n[h - 1].push({
519
- type: "boxEnd",
520
- boxText: n[h - 2]
521
- }), this.$ = n[h - 1];
522
- break;
523
- case 19:
524
- this.$ = {
525
- type: "sequenceIndex",
526
- sequenceIndex: Number(n[h - 2]),
527
- sequenceIndexStep: Number(n[h - 1]),
528
- sequenceVisible: !0,
529
- signalType: b.LINETYPE.AUTONUMBER
530
- };
531
- break;
532
- case 20:
533
- this.$ = {
534
- type: "sequenceIndex",
535
- sequenceIndex: Number(n[h - 1]),
536
- sequenceIndexStep: 1,
537
- sequenceVisible: !0,
538
- signalType: b.LINETYPE.AUTONUMBER
539
- };
540
- break;
541
- case 21:
542
- this.$ = {
543
- type: "sequenceIndex",
544
- sequenceVisible: !1,
545
- signalType: b.LINETYPE.AUTONUMBER
546
- };
547
- break;
548
- case 22:
549
- this.$ = {
550
- type: "sequenceIndex",
551
- sequenceVisible: !0,
552
- signalType: b.LINETYPE.AUTONUMBER
553
- };
554
- break;
555
- case 23:
556
- this.$ = {
557
- type: "activeStart",
558
- signalType: b.LINETYPE.ACTIVE_START,
559
- actor: n[h - 1].actor
560
- };
561
- break;
562
- case 24:
563
- this.$ = {
564
- type: "activeEnd",
565
- signalType: b.LINETYPE.ACTIVE_END,
566
- actor: n[h - 1].actor
567
- };
568
- break;
569
- case 30:
570
- b.setDiagramTitle(n[h].substring(6)), this.$ = n[h].substring(6);
571
- break;
572
- case 31:
573
- b.setDiagramTitle(n[h].substring(7)), this.$ = n[h].substring(7);
574
- break;
575
- case 32:
576
- this.$ = n[h].trim(), b.setAccTitle(this.$);
577
- break;
578
- case 33:
579
- case 34:
580
- this.$ = n[h].trim(), b.setAccDescription(this.$);
581
- break;
582
- case 35:
583
- n[h - 1].unshift({
584
- type: "loopStart",
585
- loopText: b.parseMessage(n[h - 2]),
586
- signalType: b.LINETYPE.LOOP_START
587
- }), n[h - 1].push({
588
- type: "loopEnd",
589
- loopText: n[h - 2],
590
- signalType: b.LINETYPE.LOOP_END
591
- }), this.$ = n[h - 1];
592
- break;
593
- case 36:
594
- n[h - 1].unshift({
595
- type: "rectStart",
596
- color: b.parseMessage(n[h - 2]),
597
- signalType: b.LINETYPE.RECT_START
598
- }), n[h - 1].push({
599
- type: "rectEnd",
600
- color: b.parseMessage(n[h - 2]),
601
- signalType: b.LINETYPE.RECT_END
602
- }), this.$ = n[h - 1];
603
- break;
604
- case 37:
605
- n[h - 1].unshift({
606
- type: "optStart",
607
- optText: b.parseMessage(n[h - 2]),
608
- signalType: b.LINETYPE.OPT_START
609
- }), n[h - 1].push({
610
- type: "optEnd",
611
- optText: b.parseMessage(n[h - 2]),
612
- signalType: b.LINETYPE.OPT_END
613
- }), this.$ = n[h - 1];
614
- break;
615
- case 38:
616
- n[h - 1].unshift({
617
- type: "altStart",
618
- altText: b.parseMessage(n[h - 2]),
619
- signalType: b.LINETYPE.ALT_START
620
- }), n[h - 1].push({
621
- type: "altEnd",
622
- signalType: b.LINETYPE.ALT_END
623
- }), this.$ = n[h - 1];
624
- break;
625
- case 39:
626
- n[h - 1].unshift({
627
- type: "parStart",
628
- parText: b.parseMessage(n[h - 2]),
629
- signalType: b.LINETYPE.PAR_START
630
- }), n[h - 1].push({
631
- type: "parEnd",
632
- signalType: b.LINETYPE.PAR_END
633
- }), this.$ = n[h - 1];
634
- break;
635
- case 40:
636
- n[h - 1].unshift({
637
- type: "parStart",
638
- parText: b.parseMessage(n[h - 2]),
639
- signalType: b.LINETYPE.PAR_OVER_START
640
- }), n[h - 1].push({
641
- type: "parEnd",
642
- signalType: b.LINETYPE.PAR_END
643
- }), this.$ = n[h - 1];
644
- break;
645
- case 41:
646
- n[h - 1].unshift({
647
- type: "criticalStart",
648
- criticalText: b.parseMessage(n[h - 2]),
649
- signalType: b.LINETYPE.CRITICAL_START
650
- }), n[h - 1].push({
651
- type: "criticalEnd",
652
- signalType: b.LINETYPE.CRITICAL_END
653
- }), this.$ = n[h - 1];
654
- break;
655
- case 42:
656
- n[h - 1].unshift({
657
- type: "breakStart",
658
- breakText: b.parseMessage(n[h - 2]),
659
- signalType: b.LINETYPE.BREAK_START
660
- }), n[h - 1].push({
661
- type: "breakEnd",
662
- optText: b.parseMessage(n[h - 2]),
663
- signalType: b.LINETYPE.BREAK_END
664
- }), this.$ = n[h - 1];
665
- break;
666
- case 44:
667
- this.$ = n[h - 3].concat([{
668
- type: "option",
669
- optionText: b.parseMessage(n[h - 1]),
670
- signalType: b.LINETYPE.CRITICAL_OPTION
671
- }, n[h]]);
672
- break;
673
- case 46:
674
- this.$ = n[h - 3].concat([{
675
- type: "and",
676
- parText: b.parseMessage(n[h - 1]),
677
- signalType: b.LINETYPE.PAR_AND
678
- }, n[h]]);
679
- break;
680
- case 48:
681
- this.$ = n[h - 3].concat([{
682
- type: "else",
683
- altText: b.parseMessage(n[h - 1]),
684
- signalType: b.LINETYPE.ALT_ELSE
685
- }, n[h]]);
686
- break;
687
- case 49:
688
- n[h - 3].draw = "participant", n[h - 3].type = "addParticipant", n[h - 3].description = b.parseMessage(n[h - 1]), this.$ = n[h - 3];
689
- break;
690
- case 50:
691
- n[h - 1].draw = "participant", n[h - 1].type = "addParticipant", this.$ = n[h - 1];
692
- break;
693
- case 51:
694
- n[h - 3].draw = "actor", n[h - 3].type = "addParticipant", n[h - 3].description = b.parseMessage(n[h - 1]), this.$ = n[h - 3];
695
- break;
696
- case 52:
697
- case 57:
698
- n[h - 1].draw = "actor", n[h - 1].type = "addParticipant", this.$ = n[h - 1];
699
- break;
700
- case 53:
701
- n[h - 1].type = "destroyParticipant", this.$ = n[h - 1];
702
- break;
703
- case 54:
704
- n[h - 3].draw = "participant", n[h - 3].type = "addParticipant", n[h - 3].description = b.parseMessage(n[h - 1]), this.$ = n[h - 3];
705
- break;
706
- case 55:
707
- n[h - 1].draw = "participant", n[h - 1].type = "addParticipant", this.$ = n[h - 1];
708
- break;
709
- case 56:
710
- n[h - 3].draw = "actor", n[h - 3].type = "addParticipant", n[h - 3].description = b.parseMessage(n[h - 1]), this.$ = n[h - 3];
711
- break;
712
- case 58:
713
- this.$ = [n[h - 1], {
714
- type: "addNote",
715
- placement: n[h - 2],
716
- actor: n[h - 1].actor,
717
- text: n[h]
718
- }];
719
- break;
720
- case 59:
721
- n[h - 2] = [].concat(n[h - 1], n[h - 1]).slice(0, 2), n[h - 2][0] = n[h - 2][0].actor, n[h - 2][1] = n[h - 2][1].actor, this.$ = [n[h - 1], {
722
- type: "addNote",
723
- placement: b.PLACEMENT.OVER,
724
- actor: n[h - 2].slice(0, 2),
725
- text: n[h]
726
- }];
727
- break;
728
- case 60:
729
- this.$ = [n[h - 1], {
730
- type: "addLinks",
731
- actor: n[h - 1].actor,
732
- text: n[h]
733
- }];
734
- break;
735
- case 61:
736
- this.$ = [n[h - 1], {
737
- type: "addALink",
738
- actor: n[h - 1].actor,
739
- text: n[h]
740
- }];
741
- break;
742
- case 62:
743
- this.$ = [n[h - 1], {
744
- type: "addProperties",
745
- actor: n[h - 1].actor,
746
- text: n[h]
747
- }];
748
- break;
749
- case 63:
750
- this.$ = [n[h - 1], {
751
- type: "addDetails",
752
- actor: n[h - 1].actor,
753
- text: n[h]
754
- }];
755
- break;
756
- case 66:
757
- this.$ = [n[h - 2], n[h]];
758
- break;
759
- case 67:
760
- this.$ = n[h];
761
- break;
762
- case 68:
763
- this.$ = b.PLACEMENT.LEFTOF;
764
- break;
765
- case 69:
766
- this.$ = b.PLACEMENT.RIGHTOF;
767
- break;
768
- case 70:
769
- this.$ = [
770
- n[h - 4],
771
- n[h - 1],
772
- {
773
- type: "addMessage",
774
- from: n[h - 4].actor,
775
- to: n[h - 1].actor,
776
- signalType: n[h - 3],
777
- msg: n[h],
778
- activate: !0
779
- },
780
- {
781
- type: "activeStart",
782
- signalType: b.LINETYPE.ACTIVE_START,
783
- actor: n[h - 1].actor
784
- }
785
- ];
786
- break;
787
- case 71:
788
- this.$ = [
789
- n[h - 4],
790
- n[h - 1],
791
- {
792
- type: "addMessage",
793
- from: n[h - 4].actor,
794
- to: n[h - 1].actor,
795
- signalType: n[h - 3],
796
- msg: n[h]
797
- },
798
- {
799
- type: "activeEnd",
800
- signalType: b.LINETYPE.ACTIVE_END,
801
- actor: n[h - 4].actor
802
- }
803
- ];
804
- break;
805
- case 72:
806
- this.$ = [
807
- n[h - 4],
808
- n[h - 1],
809
- {
810
- type: "addMessage",
811
- from: n[h - 4].actor,
812
- to: n[h - 1].actor,
813
- signalType: n[h - 3],
814
- msg: n[h],
815
- activate: !0,
816
- centralConnection: b.LINETYPE.CENTRAL_CONNECTION
817
- },
818
- {
819
- type: "centralConnection",
820
- signalType: b.LINETYPE.CENTRAL_CONNECTION,
821
- actor: n[h - 1].actor
822
- }
823
- ];
824
- break;
825
- case 73:
826
- this.$ = [
827
- n[h - 4],
828
- n[h - 1],
829
- {
830
- type: "addMessage",
831
- from: n[h - 4].actor,
832
- to: n[h - 1].actor,
833
- signalType: n[h - 2],
834
- msg: n[h],
835
- activate: !1,
836
- centralConnection: b.LINETYPE.CENTRAL_CONNECTION_REVERSE
837
- },
838
- {
839
- type: "centralConnectionReverse",
840
- signalType: b.LINETYPE.CENTRAL_CONNECTION_REVERSE,
841
- actor: n[h - 4].actor
842
- }
843
- ];
844
- break;
845
- case 74:
846
- this.$ = [
847
- n[h - 5],
848
- n[h - 1],
849
- {
850
- type: "addMessage",
851
- from: n[h - 5].actor,
852
- to: n[h - 1].actor,
853
- signalType: n[h - 3],
854
- msg: n[h],
855
- activate: !0,
856
- centralConnection: b.LINETYPE.CENTRAL_CONNECTION_DUAL
857
- },
858
- {
859
- type: "centralConnection",
860
- signalType: b.LINETYPE.CENTRAL_CONNECTION,
861
- actor: n[h - 1].actor
862
- },
863
- {
864
- type: "centralConnectionReverse",
865
- signalType: b.LINETYPE.CENTRAL_CONNECTION_REVERSE,
866
- actor: n[h - 5].actor
867
- }
868
- ];
869
- break;
870
- case 75:
871
- this.$ = [
872
- n[h - 3],
873
- n[h - 1],
874
- {
875
- type: "addMessage",
876
- from: n[h - 3].actor,
877
- to: n[h - 1].actor,
878
- signalType: n[h - 2],
879
- msg: n[h]
880
- }
881
- ];
882
- break;
883
- case 76:
884
- this.$ = {
885
- type: "addParticipant",
886
- actor: n[h - 1],
887
- config: n[h]
888
- };
889
- break;
890
- case 77:
891
- this.$ = n[h - 1].trim();
892
- break;
893
- case 78:
894
- this.$ = {
895
- type: "addParticipant",
896
- actor: n[h]
897
- };
898
- break;
899
- case 79:
900
- this.$ = b.LINETYPE.SOLID_OPEN;
901
- break;
902
- case 80:
903
- this.$ = b.LINETYPE.DOTTED_OPEN;
904
- break;
905
- case 81:
906
- this.$ = b.LINETYPE.SOLID;
907
- break;
908
- case 82:
909
- this.$ = b.LINETYPE.SOLID_TOP;
910
- break;
911
- case 83:
912
- this.$ = b.LINETYPE.SOLID_BOTTOM;
913
- break;
914
- case 84:
915
- this.$ = b.LINETYPE.STICK_TOP;
916
- break;
917
- case 85:
918
- this.$ = b.LINETYPE.STICK_BOTTOM;
919
- break;
920
- case 86:
921
- this.$ = b.LINETYPE.SOLID_TOP_DOTTED;
922
- break;
923
- case 87:
924
- this.$ = b.LINETYPE.SOLID_BOTTOM_DOTTED;
925
- break;
926
- case 88:
927
- this.$ = b.LINETYPE.STICK_TOP_DOTTED;
928
- break;
929
- case 89:
930
- this.$ = b.LINETYPE.STICK_BOTTOM_DOTTED;
931
- break;
932
- case 90:
933
- this.$ = b.LINETYPE.SOLID_ARROW_TOP_REVERSE;
934
- break;
935
- case 91:
936
- this.$ = b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
937
- break;
938
- case 92:
939
- this.$ = b.LINETYPE.STICK_ARROW_TOP_REVERSE;
940
- break;
941
- case 93:
942
- this.$ = b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
943
- break;
944
- case 94:
945
- this.$ = b.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
946
- break;
947
- case 95:
948
- this.$ = b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
949
- break;
950
- case 96:
951
- this.$ = b.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
952
- break;
953
- case 97:
954
- this.$ = b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
955
- break;
956
- case 98:
957
- this.$ = b.LINETYPE.BIDIRECTIONAL_SOLID;
958
- break;
959
- case 99:
960
- this.$ = b.LINETYPE.DOTTED;
961
- break;
962
- case 100:
963
- this.$ = b.LINETYPE.BIDIRECTIONAL_DOTTED;
964
- break;
965
- case 101:
966
- this.$ = b.LINETYPE.SOLID_CROSS;
967
- break;
968
- case 102:
969
- this.$ = b.LINETYPE.DOTTED_CROSS;
970
- break;
971
- case 103:
972
- this.$ = b.LINETYPE.SOLID_POINT;
973
- break;
974
- case 104:
975
- this.$ = b.LINETYPE.DOTTED_POINT;
976
- break;
977
- case 105:
978
- this.$ = b.parseMessage(n[h].trim().substring(1));
979
- }
980
- }, "anonymous"),
981
- table: [
982
- {
983
- 3: 1,
984
- 4: t,
985
- 5: r,
986
- 6: a
987
- },
988
- { 1: [3] },
989
- {
990
- 3: 5,
991
- 4: t,
992
- 5: r,
993
- 6: a
994
- },
995
- {
996
- 3: 6,
997
- 4: t,
998
- 5: r,
999
- 6: a
1000
- },
1001
- e([
1002
- 1,
1003
- 4,
1004
- 5,
1005
- 10,
1006
- 14,
1007
- 15,
1008
- 19,
1009
- 22,
1010
- 24,
1011
- 30,
1012
- 31,
1013
- 32,
1014
- 34,
1015
- 36,
1016
- 37,
1017
- 38,
1018
- 39,
1019
- 40,
1020
- 42,
1021
- 44,
1022
- 45,
1023
- 47,
1024
- 51,
1025
- 53,
1026
- 54,
1027
- 56,
1028
- 61,
1029
- 62,
1030
- 63,
1031
- 64,
1032
- 73
1033
- ], i, { 7: 7 }),
1034
- { 1: [2, 1] },
1035
- { 1: [2, 2] },
1036
- {
1037
- 1: [2, 3],
1038
- 4: o,
1039
- 5: s,
1040
- 8: 8,
1041
- 9: 10,
1042
- 10: l,
1043
- 13: 13,
1044
- 14: E,
1045
- 15: d,
1046
- 18: 16,
1047
- 19: p,
1048
- 22: _,
1049
- 23: 41,
1050
- 24: g,
1051
- 25: 20,
1052
- 26: 21,
1053
- 27: 22,
1054
- 28: 23,
1055
- 29: 24,
1056
- 30: I,
1057
- 31: T,
1058
- 32: u,
1059
- 34: O,
1060
- 36: x,
1061
- 37: f,
1062
- 38: L,
1063
- 39: P,
1064
- 40: w,
1065
- 42: k,
1066
- 44: B,
1067
- 45: U,
1068
- 47: $,
1069
- 51: q,
1070
- 53: z,
1071
- 54: J,
1072
- 56: it,
1073
- 61: Q,
1074
- 62: K,
1075
- 63: rt,
1076
- 64: tt,
1077
- 73: Y
1078
- },
1079
- e(D, [2, 5]),
1080
- {
1081
- 9: 48,
1082
- 13: 13,
1083
- 14: E,
1084
- 15: d,
1085
- 18: 16,
1086
- 19: p,
1087
- 22: _,
1088
- 23: 41,
1089
- 24: g,
1090
- 25: 20,
1091
- 26: 21,
1092
- 27: 22,
1093
- 28: 23,
1094
- 29: 24,
1095
- 30: I,
1096
- 31: T,
1097
- 32: u,
1098
- 34: O,
1099
- 36: x,
1100
- 37: f,
1101
- 38: L,
1102
- 39: P,
1103
- 40: w,
1104
- 42: k,
1105
- 44: B,
1106
- 45: U,
1107
- 47: $,
1108
- 51: q,
1109
- 53: z,
1110
- 54: J,
1111
- 56: it,
1112
- 61: Q,
1113
- 62: K,
1114
- 63: rt,
1115
- 64: tt,
1116
- 73: Y
1117
- },
1118
- e(D, [2, 7]),
1119
- e(D, [2, 8]),
1120
- e(D, [2, 9]),
1121
- e(D, [2, 15]),
1122
- {
1123
- 13: 49,
1124
- 51: q,
1125
- 53: z,
1126
- 54: J
1127
- },
1128
- { 16: [1, 50] },
1129
- { 5: [1, 51] },
1130
- {
1131
- 5: [1, 54],
1132
- 20: [1, 52],
1133
- 21: [1, 53]
1134
- },
1135
- {
1136
- 23: 55,
1137
- 73: Y
1138
- },
1139
- {
1140
- 23: 56,
1141
- 73: Y
1142
- },
1143
- { 5: [1, 57] },
1144
- { 5: [1, 58] },
1145
- { 5: [1, 59] },
1146
- { 5: [1, 60] },
1147
- { 5: [1, 61] },
1148
- e(D, [2, 30]),
1149
- e(D, [2, 31]),
1150
- { 33: [1, 62] },
1151
- { 35: [1, 63] },
1152
- e(D, [2, 34]),
1153
- { 16: [1, 64] },
1154
- { 16: [1, 65] },
1155
- { 16: [1, 66] },
1156
- { 16: [1, 67] },
1157
- { 16: [1, 68] },
1158
- { 16: [1, 69] },
1159
- { 16: [1, 70] },
1160
- { 16: [1, 71] },
1161
- {
1162
- 23: 72,
1163
- 55: 73,
1164
- 73: Lt
1165
- },
1166
- {
1167
- 23: 75,
1168
- 55: 76,
1169
- 73: Lt
1170
- },
1171
- {
1172
- 23: 77,
1173
- 73: Y
1174
- },
1175
- {
1176
- 69: 78,
1177
- 72: [1, 79],
1178
- 78: Dt,
1179
- 79: R,
1180
- 80: A,
1181
- 81: ct,
1182
- 82: et,
1183
- 83: V,
1184
- 84: Nt,
1185
- 85: oe,
1186
- 86: ne,
1187
- 87: le,
1188
- 88: ce,
1189
- 89: de,
1190
- 90: he,
1191
- 91: pe,
1192
- 92: Te,
1193
- 93: Ee,
1194
- 94: ge,
1195
- 95: ue,
1196
- 96: ye,
1197
- 97: Oe,
1198
- 98: _e,
1199
- 99: xe,
1200
- 100: be,
1201
- 101: me,
1202
- 102: Ie,
1203
- 103: fe
1204
- },
1205
- {
1206
- 57: 106,
1207
- 59: [1, 107],
1208
- 67: [1, 108],
1209
- 68: [1, 109]
1210
- },
1211
- {
1212
- 23: 110,
1213
- 73: Y
1214
- },
1215
- {
1216
- 23: 111,
1217
- 73: Y
1218
- },
1219
- {
1220
- 23: 112,
1221
- 73: Y
1222
- },
1223
- {
1224
- 23: 113,
1225
- 73: Y
1226
- },
1227
- e([
1228
- 5,
1229
- 66,
1230
- 72,
1231
- 78,
1232
- 79,
1233
- 80,
1234
- 81,
1235
- 82,
1236
- 83,
1237
- 84,
1238
- 85,
1239
- 86,
1240
- 87,
1241
- 88,
1242
- 89,
1243
- 90,
1244
- 91,
1245
- 92,
1246
- 93,
1247
- 94,
1248
- 95,
1249
- 96,
1250
- 97,
1251
- 98,
1252
- 99,
1253
- 100,
1254
- 101,
1255
- 102,
1256
- 103,
1257
- 104
1258
- ], Re),
1259
- e(D, [2, 6]),
1260
- e(D, [2, 16]),
1261
- e(Pt, [2, 10], { 11: 114 }),
1262
- e(D, [2, 18]),
1263
- {
1264
- 5: [1, 116],
1265
- 20: [1, 115]
1266
- },
1267
- { 5: [1, 117] },
1268
- e(D, [2, 22]),
1269
- { 5: [1, 118] },
1270
- { 5: [1, 119] },
1271
- e(D, [2, 25]),
1272
- e(D, [2, 26]),
1273
- e(D, [2, 27]),
1274
- e(D, [2, 28]),
1275
- e(D, [2, 29]),
1276
- e(D, [2, 32]),
1277
- e(D, [2, 33]),
1278
- e(kt, i, { 7: 120 }),
1279
- e(kt, i, { 7: 121 }),
1280
- e(kt, i, { 7: 122 }),
1281
- e(Le, i, {
1282
- 41: 123,
1283
- 7: 124
1284
- }),
1285
- e(Ht, i, {
1286
- 43: 125,
1287
- 7: 126
1288
- }),
1289
- e(Ht, i, {
1290
- 7: 126,
1291
- 43: 127
1292
- }),
1293
- e(Ne, i, {
1294
- 46: 128,
1295
- 7: 129
1296
- }),
1297
- e(kt, i, { 7: 130 }),
1298
- {
1299
- 5: [1, 132],
1300
- 52: [1, 131]
1301
- },
1302
- {
1303
- 5: [1, 134],
1304
- 52: [1, 133]
1305
- },
1306
- e(zt, Re, {
1307
- 74: 135,
1308
- 75: [1, 136]
1309
- }),
1310
- {
1311
- 5: [1, 138],
1312
- 52: [1, 137]
1313
- },
1314
- {
1315
- 5: [1, 140],
1316
- 52: [1, 139]
1317
- },
1318
- { 5: [1, 141] },
1319
- {
1320
- 23: 145,
1321
- 70: [1, 142],
1322
- 71: [1, 143],
1323
- 72: [1, 144],
1324
- 73: Y
1325
- },
1326
- {
1327
- 69: 146,
1328
- 78: Dt,
1329
- 79: R,
1330
- 80: A,
1331
- 81: ct,
1332
- 82: et,
1333
- 83: V,
1334
- 84: Nt,
1335
- 85: oe,
1336
- 86: ne,
1337
- 87: le,
1338
- 88: ce,
1339
- 89: de,
1340
- 90: he,
1341
- 91: pe,
1342
- 92: Te,
1343
- 93: Ee,
1344
- 94: ge,
1345
- 95: ue,
1346
- 96: ye,
1347
- 97: Oe,
1348
- 98: _e,
1349
- 99: xe,
1350
- 100: be,
1351
- 101: me,
1352
- 102: Ie,
1353
- 103: fe
1354
- },
1355
- e(W, [2, 79]),
1356
- e(W, [2, 80]),
1357
- e(W, [2, 81]),
1358
- e(W, [2, 82]),
1359
- e(W, [2, 83]),
1360
- e(W, [2, 84]),
1361
- e(W, [2, 85]),
1362
- e(W, [2, 86]),
1363
- e(W, [2, 87]),
1364
- e(W, [2, 88]),
1365
- e(W, [2, 89]),
1366
- e(W, [2, 90]),
1367
- e(W, [2, 91]),
1368
- e(W, [2, 92]),
1369
- e(W, [2, 93]),
1370
- e(W, [2, 94]),
1371
- e(W, [2, 95]),
1372
- e(W, [2, 96]),
1373
- e(W, [2, 97]),
1374
- e(W, [2, 98]),
1375
- e(W, [2, 99]),
1376
- e(W, [2, 100]),
1377
- e(W, [2, 101]),
1378
- e(W, [2, 102]),
1379
- e(W, [2, 103]),
1380
- e(W, [2, 104]),
1381
- {
1382
- 23: 147,
1383
- 73: Y
1384
- },
1385
- {
1386
- 23: 149,
1387
- 60: 148,
1388
- 73: Y
1389
- },
1390
- { 73: [2, 68] },
1391
- { 73: [2, 69] },
1392
- {
1393
- 58: 150,
1394
- 104: ot
1395
- },
1396
- {
1397
- 58: 152,
1398
- 104: ot
1399
- },
1400
- {
1401
- 58: 153,
1402
- 104: ot
1403
- },
1404
- {
1405
- 58: 154,
1406
- 104: ot
1407
- },
1408
- {
1409
- 4: [1, 157],
1410
- 5: [1, 159],
1411
- 12: 156,
1412
- 13: 158,
1413
- 17: [1, 155],
1414
- 51: q,
1415
- 53: z,
1416
- 54: J
1417
- },
1418
- { 5: [1, 160] },
1419
- e(D, [2, 20]),
1420
- e(D, [2, 21]),
1421
- e(D, [2, 23]),
1422
- e(D, [2, 24]),
1423
- {
1424
- 4: o,
1425
- 5: s,
1426
- 8: 8,
1427
- 9: 10,
1428
- 10: l,
1429
- 13: 13,
1430
- 14: E,
1431
- 15: d,
1432
- 17: [1, 161],
1433
- 18: 16,
1434
- 19: p,
1435
- 22: _,
1436
- 23: 41,
1437
- 24: g,
1438
- 25: 20,
1439
- 26: 21,
1440
- 27: 22,
1441
- 28: 23,
1442
- 29: 24,
1443
- 30: I,
1444
- 31: T,
1445
- 32: u,
1446
- 34: O,
1447
- 36: x,
1448
- 37: f,
1449
- 38: L,
1450
- 39: P,
1451
- 40: w,
1452
- 42: k,
1453
- 44: B,
1454
- 45: U,
1455
- 47: $,
1456
- 51: q,
1457
- 53: z,
1458
- 54: J,
1459
- 56: it,
1460
- 61: Q,
1461
- 62: K,
1462
- 63: rt,
1463
- 64: tt,
1464
- 73: Y
1465
- },
1466
- {
1467
- 4: o,
1468
- 5: s,
1469
- 8: 8,
1470
- 9: 10,
1471
- 10: l,
1472
- 13: 13,
1473
- 14: E,
1474
- 15: d,
1475
- 17: [1, 162],
1476
- 18: 16,
1477
- 19: p,
1478
- 22: _,
1479
- 23: 41,
1480
- 24: g,
1481
- 25: 20,
1482
- 26: 21,
1483
- 27: 22,
1484
- 28: 23,
1485
- 29: 24,
1486
- 30: I,
1487
- 31: T,
1488
- 32: u,
1489
- 34: O,
1490
- 36: x,
1491
- 37: f,
1492
- 38: L,
1493
- 39: P,
1494
- 40: w,
1495
- 42: k,
1496
- 44: B,
1497
- 45: U,
1498
- 47: $,
1499
- 51: q,
1500
- 53: z,
1501
- 54: J,
1502
- 56: it,
1503
- 61: Q,
1504
- 62: K,
1505
- 63: rt,
1506
- 64: tt,
1507
- 73: Y
1508
- },
1509
- {
1510
- 4: o,
1511
- 5: s,
1512
- 8: 8,
1513
- 9: 10,
1514
- 10: l,
1515
- 13: 13,
1516
- 14: E,
1517
- 15: d,
1518
- 17: [1, 163],
1519
- 18: 16,
1520
- 19: p,
1521
- 22: _,
1522
- 23: 41,
1523
- 24: g,
1524
- 25: 20,
1525
- 26: 21,
1526
- 27: 22,
1527
- 28: 23,
1528
- 29: 24,
1529
- 30: I,
1530
- 31: T,
1531
- 32: u,
1532
- 34: O,
1533
- 36: x,
1534
- 37: f,
1535
- 38: L,
1536
- 39: P,
1537
- 40: w,
1538
- 42: k,
1539
- 44: B,
1540
- 45: U,
1541
- 47: $,
1542
- 51: q,
1543
- 53: z,
1544
- 54: J,
1545
- 56: it,
1546
- 61: Q,
1547
- 62: K,
1548
- 63: rt,
1549
- 64: tt,
1550
- 73: Y
1551
- },
1552
- { 17: [1, 164] },
1553
- {
1554
- 4: o,
1555
- 5: s,
1556
- 8: 8,
1557
- 9: 10,
1558
- 10: l,
1559
- 13: 13,
1560
- 14: E,
1561
- 15: d,
1562
- 17: [2, 47],
1563
- 18: 16,
1564
- 19: p,
1565
- 22: _,
1566
- 23: 41,
1567
- 24: g,
1568
- 25: 20,
1569
- 26: 21,
1570
- 27: 22,
1571
- 28: 23,
1572
- 29: 24,
1573
- 30: I,
1574
- 31: T,
1575
- 32: u,
1576
- 34: O,
1577
- 36: x,
1578
- 37: f,
1579
- 38: L,
1580
- 39: P,
1581
- 40: w,
1582
- 42: k,
1583
- 44: B,
1584
- 45: U,
1585
- 47: $,
1586
- 50: [1, 165],
1587
- 51: q,
1588
- 53: z,
1589
- 54: J,
1590
- 56: it,
1591
- 61: Q,
1592
- 62: K,
1593
- 63: rt,
1594
- 64: tt,
1595
- 73: Y
1596
- },
1597
- { 17: [1, 166] },
1598
- {
1599
- 4: o,
1600
- 5: s,
1601
- 8: 8,
1602
- 9: 10,
1603
- 10: l,
1604
- 13: 13,
1605
- 14: E,
1606
- 15: d,
1607
- 17: [2, 45],
1608
- 18: 16,
1609
- 19: p,
1610
- 22: _,
1611
- 23: 41,
1612
- 24: g,
1613
- 25: 20,
1614
- 26: 21,
1615
- 27: 22,
1616
- 28: 23,
1617
- 29: 24,
1618
- 30: I,
1619
- 31: T,
1620
- 32: u,
1621
- 34: O,
1622
- 36: x,
1623
- 37: f,
1624
- 38: L,
1625
- 39: P,
1626
- 40: w,
1627
- 42: k,
1628
- 44: B,
1629
- 45: U,
1630
- 47: $,
1631
- 49: [1, 167],
1632
- 51: q,
1633
- 53: z,
1634
- 54: J,
1635
- 56: it,
1636
- 61: Q,
1637
- 62: K,
1638
- 63: rt,
1639
- 64: tt,
1640
- 73: Y
1641
- },
1642
- { 17: [1, 168] },
1643
- { 17: [1, 169] },
1644
- {
1645
- 4: o,
1646
- 5: s,
1647
- 8: 8,
1648
- 9: 10,
1649
- 10: l,
1650
- 13: 13,
1651
- 14: E,
1652
- 15: d,
1653
- 17: [2, 43],
1654
- 18: 16,
1655
- 19: p,
1656
- 22: _,
1657
- 23: 41,
1658
- 24: g,
1659
- 25: 20,
1660
- 26: 21,
1661
- 27: 22,
1662
- 28: 23,
1663
- 29: 24,
1664
- 30: I,
1665
- 31: T,
1666
- 32: u,
1667
- 34: O,
1668
- 36: x,
1669
- 37: f,
1670
- 38: L,
1671
- 39: P,
1672
- 40: w,
1673
- 42: k,
1674
- 44: B,
1675
- 45: U,
1676
- 47: $,
1677
- 48: [1, 170],
1678
- 51: q,
1679
- 53: z,
1680
- 54: J,
1681
- 56: it,
1682
- 61: Q,
1683
- 62: K,
1684
- 63: rt,
1685
- 64: tt,
1686
- 73: Y
1687
- },
1688
- {
1689
- 4: o,
1690
- 5: s,
1691
- 8: 8,
1692
- 9: 10,
1693
- 10: l,
1694
- 13: 13,
1695
- 14: E,
1696
- 15: d,
1697
- 17: [1, 171],
1698
- 18: 16,
1699
- 19: p,
1700
- 22: _,
1701
- 23: 41,
1702
- 24: g,
1703
- 25: 20,
1704
- 26: 21,
1705
- 27: 22,
1706
- 28: 23,
1707
- 29: 24,
1708
- 30: I,
1709
- 31: T,
1710
- 32: u,
1711
- 34: O,
1712
- 36: x,
1713
- 37: f,
1714
- 38: L,
1715
- 39: P,
1716
- 40: w,
1717
- 42: k,
1718
- 44: B,
1719
- 45: U,
1720
- 47: $,
1721
- 51: q,
1722
- 53: z,
1723
- 54: J,
1724
- 56: it,
1725
- 61: Q,
1726
- 62: K,
1727
- 63: rt,
1728
- 64: tt,
1729
- 73: Y
1730
- },
1731
- { 16: [1, 172] },
1732
- e(D, [2, 50]),
1733
- { 16: [1, 173] },
1734
- e(D, [2, 55]),
1735
- e(zt, [2, 76]),
1736
- { 76: [1, 174] },
1737
- { 16: [1, 175] },
1738
- e(D, [2, 52]),
1739
- { 16: [1, 176] },
1740
- e(D, [2, 57]),
1741
- e(D, [2, 53]),
1742
- {
1743
- 23: 177,
1744
- 73: Y
1745
- },
1746
- {
1747
- 23: 178,
1748
- 73: Y
1749
- },
1750
- {
1751
- 23: 179,
1752
- 73: Y
1753
- },
1754
- {
1755
- 58: 180,
1756
- 104: ot
1757
- },
1758
- {
1759
- 23: 181,
1760
- 72: [1, 182],
1761
- 73: Y
1762
- },
1763
- {
1764
- 58: 183,
1765
- 104: ot
1766
- },
1767
- {
1768
- 58: 184,
1769
- 104: ot
1770
- },
1771
- {
1772
- 66: [1, 185],
1773
- 104: [2, 67]
1774
- },
1775
- { 5: [2, 60] },
1776
- { 5: [2, 105] },
1777
- { 5: [2, 61] },
1778
- { 5: [2, 62] },
1779
- { 5: [2, 63] },
1780
- e(D, [2, 17]),
1781
- e(Pt, [2, 11]),
1782
- {
1783
- 13: 186,
1784
- 51: q,
1785
- 53: z,
1786
- 54: J
1787
- },
1788
- e(Pt, [2, 13]),
1789
- e(Pt, [2, 14]),
1790
- e(D, [2, 19]),
1791
- e(D, [2, 35]),
1792
- e(D, [2, 36]),
1793
- e(D, [2, 37]),
1794
- e(D, [2, 38]),
1795
- { 16: [1, 187] },
1796
- e(D, [2, 39]),
1797
- { 16: [1, 188] },
1798
- e(D, [2, 40]),
1799
- e(D, [2, 41]),
1800
- { 16: [1, 189] },
1801
- e(D, [2, 42]),
1802
- { 5: [1, 190] },
1803
- { 5: [1, 191] },
1804
- { 77: [1, 192] },
1805
- { 5: [1, 193] },
1806
- { 5: [1, 194] },
1807
- {
1808
- 58: 195,
1809
- 104: ot
1810
- },
1811
- {
1812
- 58: 196,
1813
- 104: ot
1814
- },
1815
- {
1816
- 58: 197,
1817
- 104: ot
1818
- },
1819
- { 5: [2, 75] },
1820
- {
1821
- 58: 198,
1822
- 104: ot
1823
- },
1824
- {
1825
- 23: 199,
1826
- 73: Y
1827
- },
1828
- { 5: [2, 58] },
1829
- { 5: [2, 59] },
1830
- {
1831
- 23: 200,
1832
- 73: Y
1833
- },
1834
- e(Pt, [2, 12]),
1835
- e(Le, i, {
1836
- 7: 124,
1837
- 41: 201
1838
- }),
1839
- e(Ht, i, {
1840
- 7: 126,
1841
- 43: 202
1842
- }),
1843
- e(Ne, i, {
1844
- 7: 129,
1845
- 46: 203
1846
- }),
1847
- e(D, [2, 49]),
1848
- e(D, [2, 54]),
1849
- e(zt, [2, 77]),
1850
- e(D, [2, 51]),
1851
- e(D, [2, 56]),
1852
- { 5: [2, 70] },
1853
- { 5: [2, 71] },
1854
- { 5: [2, 72] },
1855
- { 5: [2, 73] },
1856
- {
1857
- 58: 204,
1858
- 104: ot
1859
- },
1860
- { 104: [2, 66] },
1861
- { 17: [2, 48] },
1862
- { 17: [2, 46] },
1863
- { 17: [2, 44] },
1864
- { 5: [2, 74] }
1865
- ],
1866
- defaultActions: {
1867
- 5: [2, 1],
1868
- 6: [2, 2],
1869
- 108: [2, 68],
1870
- 109: [2, 69],
1871
- 150: [2, 60],
1872
- 151: [2, 105],
1873
- 152: [2, 61],
1874
- 153: [2, 62],
1875
- 154: [2, 63],
1876
- 180: [2, 75],
1877
- 183: [2, 58],
1878
- 184: [2, 59],
1879
- 195: [2, 70],
1880
- 196: [2, 71],
1881
- 197: [2, 72],
1882
- 198: [2, 73],
1883
- 200: [2, 66],
1884
- 201: [2, 48],
1885
- 202: [2, 46],
1886
- 203: [2, 44],
1887
- 204: [2, 74]
1888
- },
1889
- parseError: /* @__PURE__ */ y(function(N, M) {
1890
- if (M.recoverable) this.trace(N);
1891
- else {
1892
- var C = Error(N);
1893
- throw C.hash = M, C;
1894
- }
1895
- }, "parseError"),
1896
- parse: /* @__PURE__ */ y(function(N) {
1897
- var M = this, C = [0], b = [], H = [null], n = [], St = this.table, h = "", Mt = 0, Pe = 0, Xe = 0, Je = 2, Se = 1, Ze = n.slice.call(arguments, 1), j = Object.create(this.lexer), yt = { yy: {} };
1898
- for (var jt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, jt) && (yt.yy[jt] = this.yy[jt]);
1899
- j.setInput(N, yt.yy), yt.yy.lexer = j, yt.yy.parser = this, j.yylloc === void 0 && (j.yylloc = {});
1900
- var Gt = j.yylloc;
1901
- n.push(Gt);
1902
- var Qe = j.options && j.options.ranges;
1903
- this.parseError = typeof yt.yy.parseError == "function" ? yt.yy.parseError : Object.getPrototypeOf(this).parseError;
1904
- function ta(lt) {
1905
- C.length -= 2 * lt, H.length -= lt, n.length -= lt;
1906
- }
1907
- y(ta, "popStack");
1908
- function we() {
1909
- var lt = b.pop() || j.lex() || Se;
1910
- return typeof lt != "number" && (lt instanceof Array && (b = lt, lt = b.pop()), lt = M.symbols_[lt] || lt), lt;
1911
- }
1912
- y(we, "lex");
1913
- for (var st, Xt, Ot, nt, Jt, mt = {}, vt, pt, Ae, Bt; ; ) {
1914
- if (Ot = C[C.length - 1], this.defaultActions[Ot] ? nt = this.defaultActions[Ot] : (st ??= we(), nt = St[Ot] && St[Ot][st]), nt === void 0 || !nt.length || !nt[0]) {
1915
- var De = "";
1916
- for (vt in Bt = [], St[Ot]) this.terminals_[vt] && vt > Je && Bt.push("'" + this.terminals_[vt] + "'");
1917
- De = j.showPosition ? "Parse error on line " + (Mt + 1) + `:
1918
- ` + j.showPosition() + `
1919
- Expecting ` + Bt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : "Parse error on line " + (Mt + 1) + ": Unexpected " + (st == Se ? "end of input" : "'" + (this.terminals_[st] || st) + "'"), this.parseError(De, {
1920
- text: j.match,
1921
- token: this.terminals_[st] || st,
1922
- line: j.yylineno,
1923
- loc: Gt,
1924
- expected: Bt
1925
- });
1926
- }
1927
- if (nt[0] instanceof Array && nt.length > 1) throw Error("Parse Error: multiple actions possible at state: " + Ot + ", token: " + st);
1928
- switch (nt[0]) {
1929
- case 1:
1930
- C.push(st), H.push(j.yytext), n.push(j.yylloc), C.push(nt[1]), st = null, Xt ? (st = Xt, Xt = null) : (Pe = j.yyleng, h = j.yytext, Mt = j.yylineno, Gt = j.yylloc, Xe > 0);
1931
- break;
1932
- case 2:
1933
- if (pt = this.productions_[nt[1]][1], mt.$ = H[H.length - pt], mt._$ = {
1934
- first_line: n[n.length - (pt || 1)].first_line,
1935
- last_line: n[n.length - 1].last_line,
1936
- first_column: n[n.length - (pt || 1)].first_column,
1937
- last_column: n[n.length - 1].last_column
1938
- }, Qe && (mt._$.range = [n[n.length - (pt || 1)].range[0], n[n.length - 1].range[1]]), Jt = this.performAction.apply(mt, [
1939
- h,
1940
- Pe,
1941
- Mt,
1942
- yt.yy,
1943
- nt[1],
1944
- H,
1945
- n
1946
- ].concat(Ze)), Jt !== void 0) return Jt;
1947
- pt && (C = C.slice(0, -1 * pt * 2), H = H.slice(0, -1 * pt), n = n.slice(0, -1 * pt)), C.push(this.productions_[nt[1]][0]), H.push(mt.$), n.push(mt._$), Ae = St[C[C.length - 2]][C[C.length - 1]], C.push(Ae);
1948
- break;
1949
- case 3:
1950
- return !0;
1951
- }
1952
- }
1953
- return !0;
1954
- }, "parse")
1955
- };
1956
- Ut.lexer = /* @__PURE__ */ (function() {
1957
- return {
1958
- EOF: 1,
1959
- parseError: /* @__PURE__ */ y(function(N, M) {
1960
- if (this.yy.parser) this.yy.parser.parseError(N, M);
1961
- else throw Error(N);
1962
- }, "parseError"),
1963
- setInput: /* @__PURE__ */ y(function(N, M) {
1964
- return this.yy = M || this.yy || {}, this._input = N, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1965
- first_line: 1,
1966
- first_column: 0,
1967
- last_line: 1,
1968
- last_column: 0
1969
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1970
- }, "setInput"),
1971
- input: /* @__PURE__ */ y(function() {
1972
- var N = this._input[0];
1973
- return this.yytext += N, this.yyleng++, this.offset++, this.match += N, this.matched += N, N.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), N;
1974
- }, "input"),
1975
- unput: /* @__PURE__ */ y(function(N) {
1976
- var M = N.length, C = N.split(/(?:\r\n?|\n)/g);
1977
- this._input = N + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - M), this.offset -= M;
1978
- var b = this.match.split(/(?:\r\n?|\n)/g);
1979
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
1980
- var H = this.yylloc.range;
1981
- return this.yylloc = {
1982
- first_line: this.yylloc.first_line,
1983
- last_line: this.yylineno + 1,
1984
- first_column: this.yylloc.first_column,
1985
- last_column: C ? (C.length === b.length ? this.yylloc.first_column : 0) + b[b.length - C.length].length - C[0].length : this.yylloc.first_column - M
1986
- }, this.options.ranges && (this.yylloc.range = [H[0], H[0] + this.yyleng - M]), this.yyleng = this.yytext.length, this;
1987
- }, "unput"),
1988
- more: /* @__PURE__ */ y(function() {
1989
- return this._more = !0, this;
1990
- }, "more"),
1991
- reject: /* @__PURE__ */ y(function() {
1992
- if (this.options.backtrack_lexer) this._backtrack = !0;
1993
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
1994
- ` + this.showPosition(), {
1995
- text: "",
1996
- token: null,
1997
- line: this.yylineno
1998
- });
1999
- return this;
2000
- }, "reject"),
2001
- less: /* @__PURE__ */ y(function(N) {
2002
- this.unput(this.match.slice(N));
2003
- }, "less"),
2004
- pastInput: /* @__PURE__ */ y(function() {
2005
- var N = this.matched.substr(0, this.matched.length - this.match.length);
2006
- return (N.length > 20 ? "..." : "") + N.substr(-20).replace(/\n/g, "");
2007
- }, "pastInput"),
2008
- upcomingInput: /* @__PURE__ */ y(function() {
2009
- var N = this.match;
2010
- return N.length < 20 && (N += this._input.substr(0, 20 - N.length)), (N.substr(0, 20) + (N.length > 20 ? "..." : "")).replace(/\n/g, "");
2011
- }, "upcomingInput"),
2012
- showPosition: /* @__PURE__ */ y(function() {
2013
- var N = this.pastInput(), M = Array(N.length + 1).join("-");
2014
- return N + this.upcomingInput() + `
2015
- ` + M + "^";
2016
- }, "showPosition"),
2017
- test_match: /* @__PURE__ */ y(function(N, M) {
2018
- var C, b, H;
2019
- if (this.options.backtrack_lexer && (H = {
2020
- yylineno: this.yylineno,
2021
- yylloc: {
2022
- first_line: this.yylloc.first_line,
2023
- last_line: this.last_line,
2024
- first_column: this.yylloc.first_column,
2025
- last_column: this.yylloc.last_column
2026
- },
2027
- yytext: this.yytext,
2028
- match: this.match,
2029
- matches: this.matches,
2030
- matched: this.matched,
2031
- yyleng: this.yyleng,
2032
- offset: this.offset,
2033
- _more: this._more,
2034
- _input: this._input,
2035
- yy: this.yy,
2036
- conditionStack: this.conditionStack.slice(0),
2037
- done: this.done
2038
- }, this.options.ranges && (H.yylloc.range = this.yylloc.range.slice(0))), b = N[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
2039
- first_line: this.yylloc.last_line,
2040
- last_line: this.yylineno + 1,
2041
- first_column: this.yylloc.last_column,
2042
- last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + N[0].length
2043
- }, this.yytext += N[0], this.match += N[0], this.matches = N, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(N[0].length), this.matched += N[0], C = this.performAction.call(this, this.yy, this, M, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
2044
- if (this._backtrack) {
2045
- for (var n in H) this[n] = H[n];
2046
- return !1;
2047
- }
2048
- return !1;
2049
- }, "test_match"),
2050
- next: /* @__PURE__ */ y(function() {
2051
- if (this.done) return this.EOF;
2052
- this._input || (this.done = !0);
2053
- var N, M, C, b;
2054
- this._more || (this.yytext = "", this.match = "");
2055
- for (var H = this._currentRules(), n = 0; n < H.length; n++) if (C = this._input.match(this.rules[H[n]]), C && (!M || C[0].length > M[0].length)) {
2056
- if (M = C, b = n, this.options.backtrack_lexer) {
2057
- if (N = this.test_match(C, H[n]), N !== !1) return N;
2058
- if (this._backtrack) {
2059
- M = !1;
2060
- continue;
2061
- }
2062
- return !1;
2063
- }
2064
- if (!this.options.flex) break;
2065
- }
2066
- return M ? (N = this.test_match(M, H[b]), N !== !1 && N) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
2067
- ` + this.showPosition(), {
2068
- text: "",
2069
- token: null,
2070
- line: this.yylineno
2071
- });
2072
- }, "next"),
2073
- lex: /* @__PURE__ */ y(function() {
2074
- return this.next() || this.lex();
2075
- }, "lex"),
2076
- begin: /* @__PURE__ */ y(function(N) {
2077
- this.conditionStack.push(N);
2078
- }, "begin"),
2079
- popState: /* @__PURE__ */ y(function() {
2080
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2081
- }, "popState"),
2082
- _currentRules: /* @__PURE__ */ y(function() {
2083
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2084
- }, "_currentRules"),
2085
- topState: /* @__PURE__ */ y(function(N) {
2086
- return N = this.conditionStack.length - 1 - Math.abs(N || 0), N >= 0 ? this.conditionStack[N] : "INITIAL";
2087
- }, "topState"),
2088
- pushState: /* @__PURE__ */ y(function(N) {
2089
- this.begin(N);
2090
- }, "pushState"),
2091
- stateStackSize: /* @__PURE__ */ y(function() {
2092
- return this.conditionStack.length;
2093
- }, "stateStackSize"),
2094
- options: { "case-insensitive": !0 },
2095
- performAction: /* @__PURE__ */ y(function(N, M, C, b) {
2096
- switch (C) {
2097
- case 0:
2098
- return 5;
2099
- case 1:
2100
- break;
2101
- case 2:
2102
- break;
2103
- case 3:
2104
- break;
2105
- case 4:
2106
- break;
2107
- case 5:
2108
- break;
2109
- case 6:
2110
- return 20;
2111
- case 7:
2112
- return this.begin("CONFIG"), 75;
2113
- case 8:
2114
- return 76;
2115
- case 9:
2116
- return this.popState(), this.begin("ALIAS"), 77;
2117
- case 10:
2118
- return this.popState(), this.popState(), 77;
2119
- case 11:
2120
- return M.yytext = M.yytext.trim(), 73;
2121
- case 12:
2122
- return M.yytext = M.yytext.trim(), this.begin("ALIAS"), 73;
2123
- case 13:
2124
- return M.yytext = M.yytext.trim(), this.popState(), 73;
2125
- case 14:
2126
- return this.popState(), 10;
2127
- case 15:
2128
- return M.yytext = M.yytext.trim(), this.popState(), 10;
2129
- case 16:
2130
- return this.begin("LINE"), 15;
2131
- case 17:
2132
- return this.begin("ID"), 51;
2133
- case 18:
2134
- return this.begin("ID"), 53;
2135
- case 19:
2136
- return 14;
2137
- case 20:
2138
- return this.begin("ID"), 54;
2139
- case 21:
2140
- return this.popState(), this.popState(), this.begin("LINE"), 52;
2141
- case 22:
2142
- return this.popState(), this.popState(), 5;
2143
- case 23:
2144
- return this.begin("LINE"), 37;
2145
- case 24:
2146
- return this.begin("LINE"), 38;
2147
- case 25:
2148
- return this.begin("LINE"), 39;
2149
- case 26:
2150
- return this.begin("LINE"), 40;
2151
- case 27:
2152
- return this.begin("LINE"), 50;
2153
- case 28:
2154
- return this.begin("LINE"), 42;
2155
- case 29:
2156
- return this.begin("LINE"), 44;
2157
- case 30:
2158
- return this.begin("LINE"), 49;
2159
- case 31:
2160
- return this.begin("LINE"), 45;
2161
- case 32:
2162
- return this.begin("LINE"), 48;
2163
- case 33:
2164
- return this.begin("LINE"), 47;
2165
- case 34:
2166
- return this.popState(), 16;
2167
- case 35:
2168
- return 17;
2169
- case 36:
2170
- return 67;
2171
- case 37:
2172
- return 68;
2173
- case 38:
2174
- return 61;
2175
- case 39:
2176
- return 62;
2177
- case 40:
2178
- return 63;
2179
- case 41:
2180
- return 64;
2181
- case 42:
2182
- return 59;
2183
- case 43:
2184
- return 56;
2185
- case 44:
2186
- return this.begin("ID"), 22;
2187
- case 45:
2188
- return this.begin("ID"), 24;
2189
- case 46:
2190
- return 30;
2191
- case 47:
2192
- return 31;
2193
- case 48:
2194
- return this.begin("acc_title"), 32;
2195
- case 49:
2196
- return this.popState(), "acc_title_value";
2197
- case 50:
2198
- return this.begin("acc_descr"), 34;
2199
- case 51:
2200
- return this.popState(), "acc_descr_value";
2201
- case 52:
2202
- this.begin("acc_descr_multiline");
2203
- break;
2204
- case 53:
2205
- this.popState();
2206
- break;
2207
- case 54:
2208
- return "acc_descr_multiline_value";
2209
- case 55:
2210
- return 6;
2211
- case 56:
2212
- return 19;
2213
- case 57:
2214
- return 21;
2215
- case 58:
2216
- return 66;
2217
- case 59:
2218
- return 5;
2219
- case 60:
2220
- return M.yytext = M.yytext.trim(), 73;
2221
- case 61:
2222
- return 80;
2223
- case 62:
2224
- return 97;
2225
- case 63:
2226
- return 98;
2227
- case 64:
2228
- return 99;
2229
- case 65:
2230
- return 78;
2231
- case 66:
2232
- return 79;
2233
- case 67:
2234
- return 100;
2235
- case 68:
2236
- return 101;
2237
- case 69:
2238
- return 102;
2239
- case 70:
2240
- return 103;
2241
- case 71:
2242
- return 85;
2243
- case 72:
2244
- return 86;
2245
- case 73:
2246
- return 87;
2247
- case 74:
2248
- return 88;
2249
- case 75:
2250
- return 93;
2251
- case 76:
2252
- return 94;
2253
- case 77:
2254
- return 95;
2255
- case 78:
2256
- return 96;
2257
- case 79:
2258
- return 81;
2259
- case 80:
2260
- return 82;
2261
- case 81:
2262
- return 83;
2263
- case 82:
2264
- return 84;
2265
- case 83:
2266
- return 89;
2267
- case 84:
2268
- return 90;
2269
- case 85:
2270
- return 91;
2271
- case 86:
2272
- return 92;
2273
- case 87:
2274
- return 104;
2275
- case 88:
2276
- return 104;
2277
- case 89:
2278
- return 70;
2279
- case 90:
2280
- return 71;
2281
- case 91:
2282
- return 72;
2283
- case 92:
2284
- return 5;
2285
- case 93:
2286
- return 10;
2287
- }
2288
- }, "anonymous"),
2289
- rules: [
2290
- /^(?:[\n]+)/i,
2291
- /^(?:\s+)/i,
2292
- /^(?:((?!\n)\s)+)/i,
2293
- /^(?:#[^\n]*)/i,
2294
- /^(?:%(?!\{)[^\n]*)/i,
2295
- /^(?:[^\}]%%[^\n]*)/i,
2296
- /^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,
2297
- /^(?:@\{)/i,
2298
- /^(?:[^\}]+)/i,
2299
- /^(?:\}(?=\s+as\s))/i,
2300
- /^(?:\})/i,
2301
- /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2302
- /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2303
- /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2304
- /^(?:[^<>:\n,;@]*<[^\n]*)/i,
2305
- /^(?:[^\n]+)/i,
2306
- /^(?:box\b)/i,
2307
- /^(?:participant\b)/i,
2308
- /^(?:actor\b)/i,
2309
- /^(?:create\b)/i,
2310
- /^(?:destroy\b)/i,
2311
- /^(?:as\b)/i,
2312
- /^(?:(?:))/i,
2313
- /^(?:loop\b)/i,
2314
- /^(?:rect\b)/i,
2315
- /^(?:opt\b)/i,
2316
- /^(?:alt\b)/i,
2317
- /^(?:else\b)/i,
2318
- /^(?:par\b)/i,
2319
- /^(?:par_over\b)/i,
2320
- /^(?:and\b)/i,
2321
- /^(?:critical\b)/i,
2322
- /^(?:option\b)/i,
2323
- /^(?:break\b)/i,
2324
- /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
2325
- /^(?:end\b)/i,
2326
- /^(?:left of\b)/i,
2327
- /^(?:right of\b)/i,
2328
- /^(?:links\b)/i,
2329
- /^(?:link\b)/i,
2330
- /^(?:properties\b)/i,
2331
- /^(?:details\b)/i,
2332
- /^(?:over\b)/i,
2333
- /^(?:note\b)/i,
2334
- /^(?:activate\b)/i,
2335
- /^(?:deactivate\b)/i,
2336
- /^(?:title\s[^#\n;]+)/i,
2337
- /^(?:title:\s[^#\n;]+)/i,
2338
- /^(?:accTitle\s*:\s*)/i,
2339
- /^(?:(?!\n||)*[^\n]*)/i,
2340
- /^(?:accDescr\s*:\s*)/i,
2341
- /^(?:(?!\n||)*[^\n]*)/i,
2342
- /^(?:accDescr\s*\{\s*)/i,
2343
- /^(?:[\}])/i,
2344
- /^(?:[^\}]*)/i,
2345
- /^(?:sequenceDiagram\b)/i,
2346
- /^(?:autonumber\b)/i,
2347
- /^(?:off\b)/i,
2348
- /^(?:,)/i,
2349
- /^(?:;)/i,
2350
- /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
2351
- /^(?:->>)/i,
2352
- /^(?:<<->>)/i,
2353
- /^(?:-->>)/i,
2354
- /^(?:<<-->>)/i,
2355
- /^(?:->)/i,
2356
- /^(?:-->)/i,
2357
- /^(?:-[x])/i,
2358
- /^(?:--[x])/i,
2359
- /^(?:-[\)])/i,
2360
- /^(?:--[\)])/i,
2361
- /^(?:--\|\\)/i,
2362
- /^(?:--\|\/)/i,
2363
- /^(?:--\\\\)/i,
2364
- /^(?:--\/\/)/i,
2365
- /^(?:\/\|--)/i,
2366
- /^(?:\\\|--)/i,
2367
- /^(?:\/\/--)/i,
2368
- /^(?:\\\\--)/i,
2369
- /^(?:-\|\\)/i,
2370
- /^(?:-\|\/)/i,
2371
- /^(?:-\\\\)/i,
2372
- /^(?:-\/\/)/i,
2373
- /^(?:\/\|-)/i,
2374
- /^(?:\\\|-)/i,
2375
- /^(?:\/\/-)/i,
2376
- /^(?:\\\\-)/i,
2377
- /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
2378
- /^(?::)/i,
2379
- /^(?:\+)/i,
2380
- /^(?:-)/i,
2381
- /^(?:\(\))/i,
2382
- /^(?:$)/i,
2383
- /^(?:.)/i
2384
- ],
2385
- conditions: {
2386
- acc_descr_multiline: {
2387
- rules: [53, 54],
2388
- inclusive: !1
2389
- },
2390
- acc_descr: {
2391
- rules: [51],
2392
- inclusive: !1
2393
- },
2394
- acc_title: {
2395
- rules: [49],
2396
- inclusive: !1
2397
- },
2398
- ID: {
2399
- rules: [
2400
- 2,
2401
- 3,
2402
- 7,
2403
- 11,
2404
- 12,
2405
- 13,
2406
- 14,
2407
- 15
2408
- ],
2409
- inclusive: !1
2410
- },
2411
- ALIAS: {
2412
- rules: [
2413
- 2,
2414
- 3,
2415
- 21,
2416
- 22
2417
- ],
2418
- inclusive: !1
2419
- },
2420
- LINE: {
2421
- rules: [
2422
- 2,
2423
- 3,
2424
- 34
2425
- ],
2426
- inclusive: !1
2427
- },
2428
- CONFIG: {
2429
- rules: [
2430
- 8,
2431
- 9,
2432
- 10
2433
- ],
2434
- inclusive: !1
2435
- },
2436
- CONFIG_DATA: {
2437
- rules: [],
2438
- inclusive: !1
2439
- },
2440
- INITIAL: {
2441
- rules: [
2442
- 0,
2443
- 1,
2444
- 3,
2445
- 4,
2446
- 5,
2447
- 6,
2448
- 16,
2449
- 17,
2450
- 18,
2451
- 19,
2452
- 20,
2453
- 23,
2454
- 24,
2455
- 25,
2456
- 26,
2457
- 27,
2458
- 28,
2459
- 29,
2460
- 30,
2461
- 31,
2462
- 32,
2463
- 33,
2464
- 35,
2465
- 36,
2466
- 37,
2467
- 38,
2468
- 39,
2469
- 40,
2470
- 41,
2471
- 42,
2472
- 43,
2473
- 44,
2474
- 45,
2475
- 46,
2476
- 47,
2477
- 48,
2478
- 50,
2479
- 52,
2480
- 55,
2481
- 56,
2482
- 57,
2483
- 58,
2484
- 59,
2485
- 60,
2486
- 61,
2487
- 62,
2488
- 63,
2489
- 64,
2490
- 65,
2491
- 66,
2492
- 67,
2493
- 68,
2494
- 69,
2495
- 70,
2496
- 71,
2497
- 72,
2498
- 73,
2499
- 74,
2500
- 75,
2501
- 76,
2502
- 77,
2503
- 78,
2504
- 79,
2505
- 80,
2506
- 81,
2507
- 82,
2508
- 83,
2509
- 84,
2510
- 85,
2511
- 86,
2512
- 87,
2513
- 88,
2514
- 89,
2515
- 90,
2516
- 91,
2517
- 92,
2518
- 93
2519
- ],
2520
- inclusive: !0
2521
- }
2522
- }
2523
- };
2524
- })();
2525
- function Ct() {
2526
- this.yy = {};
2527
- }
2528
- return y(Ct, "Parser"), Ct.prototype = Ut, Ut.Parser = Ct, new Ct();
2529
- })();
2530
- te.parser = te;
2531
- var ya = te, Oa = {
2532
- SOLID: 0,
2533
- DOTTED: 1,
2534
- NOTE: 2,
2535
- SOLID_CROSS: 3,
2536
- DOTTED_CROSS: 4,
2537
- SOLID_OPEN: 5,
2538
- DOTTED_OPEN: 6,
2539
- LOOP_START: 10,
2540
- LOOP_END: 11,
2541
- ALT_START: 12,
2542
- ALT_ELSE: 13,
2543
- ALT_END: 14,
2544
- OPT_START: 15,
2545
- OPT_END: 16,
2546
- ACTIVE_START: 17,
2547
- ACTIVE_END: 18,
2548
- PAR_START: 19,
2549
- PAR_AND: 20,
2550
- PAR_END: 21,
2551
- RECT_START: 22,
2552
- RECT_END: 23,
2553
- SOLID_POINT: 24,
2554
- DOTTED_POINT: 25,
2555
- AUTONUMBER: 26,
2556
- CRITICAL_START: 27,
2557
- CRITICAL_OPTION: 28,
2558
- CRITICAL_END: 29,
2559
- BREAK_START: 30,
2560
- BREAK_END: 31,
2561
- PAR_OVER_START: 32,
2562
- BIDIRECTIONAL_SOLID: 33,
2563
- BIDIRECTIONAL_DOTTED: 34,
2564
- SOLID_TOP: 41,
2565
- SOLID_BOTTOM: 42,
2566
- STICK_TOP: 43,
2567
- STICK_BOTTOM: 44,
2568
- SOLID_ARROW_TOP_REVERSE: 45,
2569
- SOLID_ARROW_BOTTOM_REVERSE: 46,
2570
- STICK_ARROW_TOP_REVERSE: 47,
2571
- STICK_ARROW_BOTTOM_REVERSE: 48,
2572
- SOLID_TOP_DOTTED: 51,
2573
- SOLID_BOTTOM_DOTTED: 52,
2574
- STICK_TOP_DOTTED: 53,
2575
- STICK_BOTTOM_DOTTED: 54,
2576
- SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
2577
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
2578
- STICK_ARROW_TOP_REVERSE_DOTTED: 57,
2579
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
2580
- CENTRAL_CONNECTION: 59,
2581
- CENTRAL_CONNECTION_REVERSE: 60,
2582
- CENTRAL_CONNECTION_DUAL: 61
2583
- }, _a = {
2584
- FILLED: 0,
2585
- OPEN: 1
2586
- }, xa = {
2587
- LEFTOF: 0,
2588
- RIGHTOF: 1,
2589
- OVER: 2
2590
- }, $t = {
2591
- ACTOR: "actor",
2592
- CONTROL: "control",
2593
- DATABASE: "database",
2594
- ENTITY: "entity"
2595
- }, ft, ba = (ft = class {
2596
- constructor() {
2597
- this.state = new ua(() => ({
2598
- prevActor: void 0,
2599
- actors: /* @__PURE__ */ new Map(),
2600
- createdActors: /* @__PURE__ */ new Map(),
2601
- destroyedActors: /* @__PURE__ */ new Map(),
2602
- boxes: [],
2603
- messages: [],
2604
- notes: [],
2605
- sequenceNumbersEnabled: !1,
2606
- wrapEnabled: void 0,
2607
- currentBox: void 0,
2608
- lastCreated: void 0,
2609
- lastDestroyed: void 0
2610
- })), this.setAccTitle = ke, this.setAccDescription = sa, this.setDiagramTitle = ia, this.getAccTitle = oa, this.getAccDescription = na, this.getDiagramTitle = la, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(Z().wrap), this.LINETYPE = Oa, this.ARROWTYPE = _a, this.PLACEMENT = xa;
2611
- }
2612
- addBox(t) {
2613
- this.state.records.boxes.push({
2614
- name: t.text,
2615
- wrap: t.wrap ?? this.autoWrap(),
2616
- fill: t.color,
2617
- actorKeys: []
2618
- }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2619
- }
2620
- addActor(t, r, a, i, o) {
2621
- let s = this.state.records.currentBox, l;
2622
- if (o !== void 0) {
2623
- let d;
2624
- d = o.includes(`
2625
- `) ? o + `
2626
- ` : `{
2627
- ` + o + `
2628
- }`, l = ca(d, { schema: da });
2629
- }
2630
- i = l?.type ?? i, l?.alias && (!a || a.text === r) && (a = {
2631
- text: l.alias,
2632
- wrap: a?.wrap,
2633
- type: i
2634
- });
2635
- let E = this.state.records.actors.get(t);
2636
- if (E) {
2637
- if (this.state.records.currentBox && E.box && this.state.records.currentBox !== E.box) throw Error(`A same participant should only be defined in one Box: ${E.name} can't be in '${E.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2638
- if (s = E.box ? E.box : this.state.records.currentBox, E.box = s, E && r === E.name && a == null) return;
2639
- }
2640
- if (a?.text ?? (a = {
2641
- text: r,
2642
- type: i
2643
- }), (i == null || a.text == null) && (a = {
2644
- text: r,
2645
- type: i
2646
- }), this.state.records.actors.set(t, {
2647
- box: s,
2648
- name: r,
2649
- description: a.text,
2650
- wrap: a.wrap ?? this.autoWrap(),
2651
- prevActor: this.state.records.prevActor,
2652
- links: {},
2653
- properties: {},
2654
- actorCnt: null,
2655
- rectData: null,
2656
- type: i ?? "participant"
2657
- }), this.state.records.prevActor) {
2658
- let d = this.state.records.actors.get(this.state.records.prevActor);
2659
- d && (d.nextActor = t);
2660
- }
2661
- this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(t), this.state.records.prevActor = t;
2662
- }
2663
- activationCount(t) {
2664
- let r, a = 0;
2665
- if (!t) return 0;
2666
- for (r = 0; r < this.state.records.messages.length; r++) this.state.records.messages[r].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[r].from === t && a++, this.state.records.messages[r].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[r].from === t && a--;
2667
- return a;
2668
- }
2669
- addMessage(t, r, a, i) {
2670
- this.state.records.messages.push({
2671
- id: this.state.records.messages.length.toString(),
2672
- from: t,
2673
- to: r,
2674
- message: a.text,
2675
- wrap: a.wrap ?? this.autoWrap(),
2676
- answer: i
2677
- });
2678
- }
2679
- addSignal(t, r, a, i, o = !1, s) {
2680
- if (i === this.LINETYPE.ACTIVE_END && this.activationCount(t ?? "") < 1) {
2681
- let l = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + t + ")");
2682
- throw l.hash = {
2683
- text: "->>-",
2684
- token: "->>-",
2685
- line: "1",
2686
- loc: {
2687
- first_line: 1,
2688
- last_line: 1,
2689
- first_column: 1,
2690
- last_column: 1
2691
- },
2692
- expected: ["'ACTIVE_PARTICIPANT'"]
2693
- }, l;
2694
- }
2695
- return this.state.records.messages.push({
2696
- id: this.state.records.messages.length.toString(),
2697
- from: t,
2698
- to: r,
2699
- message: a?.text ?? "",
2700
- wrap: a?.wrap ?? this.autoWrap(),
2701
- type: i,
2702
- activate: o,
2703
- centralConnection: s ?? 0
2704
- }), !0;
2705
- }
2706
- hasAtLeastOneBox() {
2707
- return this.state.records.boxes.length > 0;
2708
- }
2709
- hasAtLeastOneBoxWithTitle() {
2710
- return this.state.records.boxes.some((t) => t.name);
2711
- }
2712
- getMessages() {
2713
- return this.state.records.messages;
2714
- }
2715
- getBoxes() {
2716
- return this.state.records.boxes;
2717
- }
2718
- getActors() {
2719
- return this.state.records.actors;
2720
- }
2721
- getCreatedActors() {
2722
- return this.state.records.createdActors;
2723
- }
2724
- getDestroyedActors() {
2725
- return this.state.records.destroyedActors;
2726
- }
2727
- getActor(t) {
2728
- return this.state.records.actors.get(t);
2729
- }
2730
- getActorKeys() {
2731
- return [...this.state.records.actors.keys()];
2732
- }
2733
- enableSequenceNumbers() {
2734
- this.state.records.sequenceNumbersEnabled = !0;
2735
- }
2736
- disableSequenceNumbers() {
2737
- this.state.records.sequenceNumbersEnabled = !1;
2738
- }
2739
- showSequenceNumbers() {
2740
- return this.state.records.sequenceNumbersEnabled;
2741
- }
2742
- setWrap(t) {
2743
- this.state.records.wrapEnabled = t;
2744
- }
2745
- extractWrap(t) {
2746
- if (t === void 0) return {};
2747
- t = t.trim();
2748
- let r = /^:?wrap:/.exec(t) !== null || /^:?nowrap:/.exec(t) === null && void 0;
2749
- return {
2750
- cleanedText: (r === void 0 ? t : t.replace(/^:?(?:no)?wrap:/, "")).trim(),
2751
- wrap: r
2752
- };
2753
- }
2754
- autoWrap() {
2755
- return this.state.records.wrapEnabled === void 0 ? Z().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2756
- }
2757
- clear() {
2758
- this.state.reset(), ha();
2759
- }
2760
- parseMessage(t) {
2761
- let r = t.trim(), { wrap: a, cleanedText: i } = this.extractWrap(r), o = {
2762
- text: i,
2763
- wrap: a
2764
- };
2765
- return at.debug(`parseMessage: ${JSON.stringify(o)}`), o;
2766
- }
2767
- parseBoxData(t) {
2768
- let r = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t), a = r?.[1] ? r[1].trim() : "transparent", i = r?.[2] ? r[2].trim() : void 0;
2769
- if (window?.CSS) window.CSS.supports("color", a) || (a = "transparent", i = t.trim());
2770
- else {
2771
- let l = new Option().style;
2772
- l.color = a, l.color !== a && (a = "transparent", i = t.trim());
2773
- }
2774
- let { wrap: o, cleanedText: s } = this.extractWrap(i);
2775
- return {
2776
- text: s ? Yt(s, Z()) : void 0,
2777
- color: a,
2778
- wrap: o
2779
- };
2780
- }
2781
- addNote(t, r, a) {
2782
- let i = {
2783
- actor: t,
2784
- placement: r,
2785
- message: a.text,
2786
- wrap: a.wrap ?? this.autoWrap()
2787
- }, o = [].concat(t, t);
2788
- this.state.records.notes.push(i), this.state.records.messages.push({
2789
- id: this.state.records.messages.length.toString(),
2790
- from: o[0],
2791
- to: o[1],
2792
- message: a.text,
2793
- wrap: a.wrap ?? this.autoWrap(),
2794
- type: this.LINETYPE.NOTE,
2795
- placement: r
2796
- });
2797
- }
2798
- addLinks(t, r) {
2799
- let a = this.getActor(t);
2800
- try {
2801
- let i = Yt(r.text, Z());
2802
- i = i.replace(/&equals;/g, "="), i = i.replace(/&amp;/g, "&");
2803
- let o = JSON.parse(i);
2804
- this.insertLinks(a, o);
2805
- } catch (i) {
2806
- at.error("error while parsing actor link text", i);
2807
- }
2808
- }
2809
- addALink(t, r) {
2810
- let a = this.getActor(t);
2811
- try {
2812
- let i = {}, o = Yt(r.text, Z()), s = o.indexOf("@");
2813
- o = o.replace(/&equals;/g, "="), o = o.replace(/&amp;/g, "&");
2814
- let l = o.slice(0, s - 1).trim();
2815
- i[l] = o.slice(s + 1).trim(), this.insertLinks(a, i);
2816
- } catch (i) {
2817
- at.error("error while parsing actor link text", i);
2818
- }
2819
- }
2820
- insertLinks(t, r) {
2821
- if (t.links == null) t.links = r;
2822
- else for (let a in r) t.links[a] = r[a];
2823
- }
2824
- addProperties(t, r) {
2825
- let a = this.getActor(t);
2826
- try {
2827
- let i = Yt(r.text, Z()), o = JSON.parse(i);
2828
- this.insertProperties(a, o);
2829
- } catch (i) {
2830
- at.error("error while parsing actor properties text", i);
2831
- }
2832
- }
2833
- insertProperties(t, r) {
2834
- if (t.properties == null) t.properties = r;
2835
- else for (let a in r) t.properties[a] = r[a];
2836
- }
2837
- boxEnd() {
2838
- this.state.records.currentBox = void 0;
2839
- }
2840
- addDetails(t, r) {
2841
- let a = this.getActor(t), i = document.getElementById(r.text);
2842
- try {
2843
- let o = i.innerHTML, s = JSON.parse(o);
2844
- s.properties && this.insertProperties(a, s.properties), s.links && this.insertLinks(a, s.links);
2845
- } catch (o) {
2846
- at.error("error while parsing actor details text", o);
2847
- }
2848
- }
2849
- getActorProperty(t, r) {
2850
- if (t?.properties !== void 0) return t.properties[r];
2851
- }
2852
- apply(t) {
2853
- if (Array.isArray(t)) t.forEach((r) => {
2854
- this.apply(r);
2855
- });
2856
- else switch (t.type) {
2857
- case "sequenceIndex":
2858
- this.state.records.messages.push({
2859
- id: this.state.records.messages.length.toString(),
2860
- from: void 0,
2861
- to: void 0,
2862
- message: {
2863
- start: t.sequenceIndex,
2864
- step: t.sequenceIndexStep,
2865
- visible: t.sequenceVisible
2866
- },
2867
- wrap: !1,
2868
- type: t.signalType
2869
- });
2870
- break;
2871
- case "addParticipant":
2872
- this.addActor(t.actor, t.actor, t.description, t.draw, t.config);
2873
- break;
2874
- case "createParticipant":
2875
- if (this.state.records.actors.has(t.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
2876
- this.state.records.lastCreated = t.actor, this.addActor(t.actor, t.actor, t.description, t.draw, t.config), this.state.records.createdActors.set(t.actor, this.state.records.messages.length);
2877
- break;
2878
- case "destroyParticipant":
2879
- this.state.records.lastDestroyed = t.actor, this.state.records.destroyedActors.set(t.actor, this.state.records.messages.length);
2880
- break;
2881
- case "activeStart":
2882
- this.addSignal(t.actor, void 0, void 0, t.signalType);
2883
- break;
2884
- case "centralConnection":
2885
- this.addSignal(t.actor, void 0, void 0, t.signalType);
2886
- break;
2887
- case "centralConnectionReverse":
2888
- this.addSignal(t.actor, void 0, void 0, t.signalType);
2889
- break;
2890
- case "activeEnd":
2891
- this.addSignal(t.actor, void 0, void 0, t.signalType);
2892
- break;
2893
- case "addNote":
2894
- this.addNote(t.actor, t.placement, t.text);
2895
- break;
2896
- case "addLinks":
2897
- this.addLinks(t.actor, t.text);
2898
- break;
2899
- case "addALink":
2900
- this.addALink(t.actor, t.text);
2901
- break;
2902
- case "addProperties":
2903
- this.addProperties(t.actor, t.text);
2904
- break;
2905
- case "addDetails":
2906
- this.addDetails(t.actor, t.text);
2907
- break;
2908
- case "addMessage":
2909
- if (this.state.records.lastCreated) {
2910
- if (t.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
2911
- this.state.records.lastCreated = void 0;
2912
- } else if (this.state.records.lastDestroyed) {
2913
- if (t.to !== this.state.records.lastDestroyed && t.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
2914
- this.state.records.lastDestroyed = void 0;
2915
- }
2916
- this.addSignal(t.from, t.to, t.msg, t.signalType, t.activate, t.centralConnection);
2917
- break;
2918
- case "boxStart":
2919
- this.addBox(t.boxData);
2920
- break;
2921
- case "boxEnd":
2922
- this.boxEnd();
2923
- break;
2924
- case "loopStart":
2925
- this.addSignal(void 0, void 0, t.loopText, t.signalType);
2926
- break;
2927
- case "loopEnd":
2928
- this.addSignal(void 0, void 0, void 0, t.signalType);
2929
- break;
2930
- case "rectStart":
2931
- this.addSignal(void 0, void 0, t.color, t.signalType);
2932
- break;
2933
- case "rectEnd":
2934
- this.addSignal(void 0, void 0, void 0, t.signalType);
2935
- break;
2936
- case "optStart":
2937
- this.addSignal(void 0, void 0, t.optText, t.signalType);
2938
- break;
2939
- case "optEnd":
2940
- this.addSignal(void 0, void 0, void 0, t.signalType);
2941
- break;
2942
- case "altStart":
2943
- this.addSignal(void 0, void 0, t.altText, t.signalType);
2944
- break;
2945
- case "else":
2946
- this.addSignal(void 0, void 0, t.altText, t.signalType);
2947
- break;
2948
- case "altEnd":
2949
- this.addSignal(void 0, void 0, void 0, t.signalType);
2950
- break;
2951
- case "setAccTitle":
2952
- ke(t.text);
2953
- break;
2954
- case "parStart":
2955
- this.addSignal(void 0, void 0, t.parText, t.signalType);
2956
- break;
2957
- case "and":
2958
- this.addSignal(void 0, void 0, t.parText, t.signalType);
2959
- break;
2960
- case "parEnd":
2961
- this.addSignal(void 0, void 0, void 0, t.signalType);
2962
- break;
2963
- case "criticalStart":
2964
- this.addSignal(void 0, void 0, t.criticalText, t.signalType);
2965
- break;
2966
- case "option":
2967
- this.addSignal(void 0, void 0, t.optionText, t.signalType);
2968
- break;
2969
- case "criticalEnd":
2970
- this.addSignal(void 0, void 0, void 0, t.signalType);
2971
- break;
2972
- case "breakStart":
2973
- this.addSignal(void 0, void 0, t.breakText, t.signalType);
2974
- break;
2975
- case "breakEnd":
2976
- this.addSignal(void 0, void 0, void 0, t.signalType);
2977
- }
2978
- }
2979
- getConfig() {
2980
- return Z().sequence;
2981
- }
2982
- }, y(ft, "SequenceDB"), ft), ma = /* @__PURE__ */ y((e) => {
2983
- let t = e.dropShadow ?? "none", { look: r } = Z();
2984
- return `.actor {
2985
- stroke: ${e.actorBorder};
2986
- fill: ${e.actorBkg};
2987
- stroke-width: ${e.strokeWidth ?? 1};
2988
- }
2989
-
2990
- rect.actor.outer-path[data-look="neo"] {
2991
- filter: ${t};
2992
- }
2993
-
2994
- rect.note[data-look="neo"] {
2995
- stroke:${e.noteBorderColor};
2996
- fill:${e.noteBkgColor};
2997
- filter: ${t};
2998
- }
2999
-
3000
- text.actor > tspan {
3001
- fill: ${e.actorTextColor};
3002
- stroke: none;
3003
- }
3004
-
3005
- .actor-line {
3006
- stroke: ${e.actorLineColor};
3007
- }
3008
-
3009
- .innerArc {
3010
- stroke-width: 1.5;
3011
- stroke-dasharray: none;
3012
- }
3013
-
3014
- .messageLine0 {
3015
- stroke-width: 1.5;
3016
- stroke-dasharray: none;
3017
- stroke: ${e.signalColor};
3018
- }
3019
-
3020
- .messageLine1 {
3021
- stroke-width: 1.5;
3022
- stroke-dasharray: 2, 2;
3023
- stroke: ${e.signalColor};
3024
- }
3025
-
3026
- [id$="-arrowhead"] path {
3027
- fill: ${e.signalColor};
3028
- stroke: ${e.signalColor};
3029
- }
3030
-
3031
- .sequenceNumber {
3032
- fill: ${e.sequenceNumberColor};
3033
- }
3034
-
3035
- [id$="-sequencenumber"] {
3036
- fill: ${e.signalColor};
3037
- }
3038
-
3039
- [id$="-crosshead"] path {
3040
- fill: ${e.signalColor};
3041
- stroke: ${e.signalColor};
3042
- }
3043
-
3044
- .messageText {
3045
- fill: ${e.signalTextColor};
3046
- stroke: none;
3047
- }
3048
-
3049
- .labelBox {
3050
- stroke: ${e.labelBoxBorderColor};
3051
- fill: ${e.labelBoxBkgColor};
3052
- filter: ${r === "neo" ? t : "none"};
3053
- }
3054
-
3055
- .labelText, .labelText > tspan {
3056
- fill: ${e.labelTextColor};
3057
- stroke: none;
3058
- }
3059
-
3060
- .loopText, .loopText > tspan {
3061
- fill: ${e.loopTextColor};
3062
- stroke: none;
3063
- }
3064
-
3065
- .sectionTitle, .sectionTitle > tspan {
3066
- fill: ${e.loopTextColor};
3067
- stroke: none;
3068
- }
3069
-
3070
- .loopLine {
3071
- stroke-width: 2px;
3072
- stroke-dasharray: 2, 2;
3073
- stroke: ${e.labelBoxBorderColor};
3074
- fill: ${e.labelBoxBorderColor};
3075
- }
3076
-
3077
- .note {
3078
- //stroke: #decc93;
3079
- stroke: ${e.noteBorderColor};
3080
- fill: ${e.noteBkgColor};
3081
- }
3082
-
3083
- .noteText, .noteText > tspan {
3084
- fill: ${e.noteTextColor};
3085
- stroke: none;
3086
- ${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
3087
- }
3088
-
3089
- .activation0 {
3090
- fill: ${e.activationBkgColor};
3091
- stroke: ${e.activationBorderColor};
3092
- }
3093
-
3094
- .activation1 {
3095
- fill: ${e.activationBkgColor};
3096
- stroke: ${e.activationBorderColor};
3097
- }
3098
-
3099
- .activation2 {
3100
- fill: ${e.activationBkgColor};
3101
- stroke: ${e.activationBorderColor};
3102
- }
3103
-
3104
- .actorPopupMenu {
3105
- position: absolute;
3106
- }
3107
-
3108
- .actorPopupMenuPanel {
3109
- position: absolute;
3110
- fill: ${e.actorBkg};
3111
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
3112
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
3113
- }
3114
- .actor-man circle, line {
3115
- fill: ${e.actorBkg};
3116
- stroke-width: 2px;
3117
- }
3118
-
3119
- g rect.rect {
3120
- filter: ${t};
3121
- stroke: ${e.nodeBorder};
3122
- }
3123
- `;
3124
- }, "getStyles"), _t = 36, gt = "actor-top", ut = "actor-bottom", Ft = "actor-box", xt = "actor-man", Tt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), wt = /* @__PURE__ */ y(function(e, t) {
3125
- let r = ga(e, t);
3126
- return Vt().look === "neo" && r.attr("data-look", "neo"), r;
3127
- }, "drawRect"), Ia = /* @__PURE__ */ y(function(e, t, r, a, i) {
3128
- if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3129
- height: 0,
3130
- width: 0
3131
- };
3132
- let o = t.links, s = t.actorCnt, l = t.rectData;
3133
- var E = "none";
3134
- i && (E = "block !important");
3135
- let d = e.append("g");
3136
- d.attr("id", "actor" + s + "_popup"), d.attr("class", "actorPopupMenu"), d.attr("display", E);
3137
- var p = "";
3138
- l.class !== void 0 && (p = " " + l.class);
3139
- let _ = l.width > r ? l.width : r, g = d.append("rect");
3140
- if (g.attr("class", "actorPopupMenuPanel" + p), g.attr("x", l.x), g.attr("y", l.height), g.attr("fill", l.fill), g.attr("stroke", l.stroke), g.attr("width", _), g.attr("height", l.height), g.attr("rx", l.rx), g.attr("ry", l.ry), o != null) {
3141
- var I = 20;
3142
- for (let O in o) {
3143
- var T = d.append("a"), u = (0, Ye.sanitizeUrl)(o[O]);
3144
- T.attr("xlink:href", u), T.attr("target", "_blank"), za(a)(O, T, l.x + 10, l.height + I, _, 20, { class: "actor" }, a), I += 30;
3145
- }
3146
- }
3147
- return g.attr("height", I), {
3148
- height: l.height + I,
3149
- width: _
3150
- };
3151
- }, "drawPopup"), Kt = /* @__PURE__ */ y(function(e) {
3152
- return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3153
- }, "popupMenuToggle"), Wt = /* @__PURE__ */ y(async function(e, t, r = null) {
3154
- let a = e.append("foreignObject"), i = await Be(t.text, Vt()), o = a.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3155
- if (a.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
3156
- let s = e.node().firstChild;
3157
- s.setAttribute("height", o.height + 2 * t.textMargin);
3158
- let l = s.getBBox();
3159
- a.attr("x", Math.round(l.x + l.width / 2 - o.width / 2)).attr("y", Math.round(l.y + l.height / 2 - o.height / 2));
3160
- } else if (r) {
3161
- let { startx: s, stopx: l, starty: E } = r;
3162
- if (s > l) {
3163
- let d = s;
3164
- s = l, l = d;
3165
- }
3166
- a.attr("x", Math.round(s + Math.abs(s - l) / 2 - o.width / 2)), t.class === "loopText" ? a.attr("y", Math.round(E)) : a.attr("y", Math.round(E - o.height));
3167
- }
3168
- return [a];
3169
- }, "drawKatex"), Rt = /* @__PURE__ */ y(function(e, t) {
3170
- let r = 0, a = 0, i = t.text.split(S.lineBreakRegex), [o, s] = ve(t.fontSize), l = [], E = 0, d = /* @__PURE__ */ y(() => t.y, "yfunc");
3171
- if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0) switch (t.valign) {
3172
- case "top":
3173
- case "start":
3174
- d = /* @__PURE__ */ y(() => Math.round(t.y + t.textMargin), "yfunc");
3175
- break;
3176
- case "middle":
3177
- case "center":
3178
- d = /* @__PURE__ */ y(() => Math.round(t.y + (r + a + t.textMargin) / 2), "yfunc");
3179
- break;
3180
- case "bottom":
3181
- case "end":
3182
- d = /* @__PURE__ */ y(() => Math.round(t.y + (r + a + 2 * t.textMargin) - t.textMargin), "yfunc");
3183
- }
3184
- if (t.anchor !== void 0 && t.textMargin !== void 0 && t.width !== void 0) switch (t.anchor) {
3185
- case "left":
3186
- case "start":
3187
- t.x = Math.round(t.x + t.textMargin), t.anchor = "start", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3188
- break;
3189
- case "middle":
3190
- case "center":
3191
- t.x = Math.round(t.x + t.width / 2), t.anchor = "middle", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3192
- break;
3193
- case "right":
3194
- case "end":
3195
- t.x = Math.round(t.x + t.width - t.textMargin), t.anchor = "end", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3196
- }
3197
- for (let [p, _] of i.entries()) {
3198
- t.textMargin !== void 0 && t.textMargin === 0 && o !== void 0 && (E = p * o);
3199
- let g = e.append("text");
3200
- g.attr("x", t.x), g.attr("y", d()), t.anchor !== void 0 && g.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && g.style("font-family", t.fontFamily), s !== void 0 && g.style("font-size", s), t.fontWeight !== void 0 && g.style("font-weight", t.fontWeight), t.fill !== void 0 && g.attr("fill", t.fill), t.class !== void 0 && g.attr("class", t.class), t.dy === void 0 ? E !== 0 && g.attr("dy", E) : g.attr("dy", t.dy);
3201
- let I = _ || "​";
3202
- if (t.tspan) {
3203
- let T = g.append("tspan");
3204
- T.attr("x", t.x), t.fill !== void 0 && T.attr("fill", t.fill), T.text(I);
3205
- } else g.text(I);
3206
- t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (a += (g._groups || g)[0][0].getBBox().height, r = a), l.push(g);
3207
- }
3208
- return l;
3209
- }, "drawText"), $e = /* @__PURE__ */ y(function(e, t) {
3210
- function r(i, o, s, l, E) {
3211
- return i + "," + o + " " + (i + s) + "," + o + " " + (i + s) + "," + (o + l - E) + " " + (i + s - E * 1.2) + "," + (o + l) + " " + i + "," + (o + l);
3212
- }
3213
- y(r, "genPoints");
3214
- let a = e.append("polygon");
3215
- return a.attr("points", r(t.x, t.y, t.width, t.height, 7)), a.attr("class", "labelBox"), t.y += t.height / 2, Rt(e, t), a;
3216
- }, "drawLabel"), v = -1, Ve = /* @__PURE__ */ y((e, t, r, a) => {
3217
- e.select && r.forEach((i) => {
3218
- let o = t.get(i), s = e.select("#actor" + o.actorCnt);
3219
- !a.mirrorActors && o.stopy ? s.attr("y2", o.stopy + o.height / 2) : a.mirrorActors && s.attr("y2", o.stopy);
3220
- });
3221
- }, "fixLifeLineHeights"), fa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3222
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height, { look: E, theme: d, themeVariables: p } = r, { bkgColorArray: _, borderColorArray: g } = p, I = e.append("g").lower();
3223
- var T = I;
3224
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Kt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), E === "neo" && T.attr("data-look", "neo"));
3225
- let u = ht();
3226
- var O = "actor";
3227
- t.properties?.class ? O = t.properties.class : u.fill = "#eaeaea", O += a ? ` ${ut}` : ` ${gt}`, u.x = t.x, u.y = o, u.width = t.width, u.height = t.height, u.class = O, u.rx = 3, u.ry = 3, u.name = t.name, E === "neo" && (u.rx = 6, u.ry = 6);
3228
- let x = wt(T, u), f = i.get(t.name) ?? 0;
3229
- if (Tt.has(d) && (x.style("stroke", g[f % g.length]), x.style("fill", _[f % g.length])), E === "neo" && x.attr("filter", "url(#drop-shadow)"), t.rectData = u, t.properties?.icon) {
3230
- let P = t.properties.icon.trim();
3231
- P.charAt(0) === "@" ? se(T, u.x + u.width - 20, u.y + 10, P.substr(1)) : ie(T, u.x + u.width - 20, u.y + 10, P);
3232
- }
3233
- a || (T.attr("data-et", "participant"), T.attr("data-type", "participant"), T.attr("data-id", t.name)), Et(r, X(t.description))(t.description, T, u.x, u.y, u.width, u.height, { class: `actor ${Ft}` }, r);
3234
- let L = t.height;
3235
- if (x.node) {
3236
- let P = x.node().getBBox();
3237
- t.height = P.height, L = P.height;
3238
- }
3239
- return L;
3240
- }, "drawActorTypeParticipant"), Ra = /* @__PURE__ */ y(function(e, t, r, a, i) {
3241
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height, { look: E, theme: d, themeVariables: p } = r, { bkgColorArray: _, borderColorArray: g } = p, I = e.append("g").lower();
3242
- var T = I;
3243
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Kt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), E === "neo" && T.attr("data-look", "neo"));
3244
- let u = ht();
3245
- var O = "actor";
3246
- t.properties?.class ? O = t.properties.class : u.fill = "#eaeaea", O += a ? ` ${ut}` : ` ${gt}`, u.x = t.x, u.y = o, u.width = t.width, u.height = t.height, u.class = O, u.name = t.name;
3247
- let x = {
3248
- ...u,
3249
- x: u.x + -6,
3250
- y: u.y + 6,
3251
- class: "actor"
3252
- }, f = wt(T, u), L = wt(T, x);
3253
- t.rectData = u, E === "neo" && T.attr("filter", "url(#drop-shadow)");
3254
- let P = i.get(t.name) ?? 0;
3255
- if (Tt.has(d) && (f.style("stroke", g[P % g.length]), f.style("fill", _[P % g.length]), L.style("stroke", g[P % g.length]), L.style("fill", _[P % g.length])), t.properties?.icon) {
3256
- let k = t.properties.icon.trim();
3257
- k.charAt(0) === "@" ? se(T, u.x + u.width - 20, u.y + 10, k.substr(1)) : ie(T, u.x + u.width - 20, u.y + 10, k);
3258
- }
3259
- Et(r, X(t.description))(t.description, T, u.x - 6, u.y + 6, u.width, u.height, { class: `actor ${Ft}` }, r);
3260
- let w = t.height;
3261
- if (f.node) {
3262
- let k = f.node().getBBox();
3263
- t.height = k.height, w = k.height;
3264
- }
3265
- return a || (T.attr("data-et", "participant"), T.attr("data-type", "collections"), T.attr("data-id", t.name)), w;
3266
- }, "drawActorTypeCollections"), La = /* @__PURE__ */ y(function(e, t, r, a, i) {
3267
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height, { look: E, theme: d, themeVariables: p } = r, { bkgColorArray: _, borderColorArray: g } = p, I = e.append("g").lower(), T = I;
3268
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Kt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), E === "neo" && T.attr("data-look", "neo"));
3269
- let u = ht(), O = "actor";
3270
- t.properties?.class ? O = t.properties.class : u.fill = "#eaeaea", O += a ? ` ${ut}` : ` ${gt}`, T.attr("class", O), u.x = t.x, u.y = o, u.width = t.width, u.height = t.height, u.name = t.name;
3271
- let x = u.height / 2, f = x / (2.5 + u.height / 50), L = T.append("g"), P = T.append("g"), w = `M ${u.x},${u.y + x}
3272
- a ${f},${x} 0 0 0 0,${u.height}
3273
- h ${u.width - 2 * f}
3274
- a ${f},${x} 0 0 0 0,-${u.height}
3275
- Z
3276
- `;
3277
- L.append("path").attr("d", w), P.append("path").attr("d", `M ${u.x},${u.y + x}
3278
- a ${f},${x} 0 0 0 0,${u.height}`), L.attr("transform", `translate(${f}, ${-(u.height / 2)})`), P.attr("transform", `translate(${u.width - f}, ${-u.height / 2})`), t.rectData = u, E === "neo" && L.attr("filter", "url(#drop-shadow)");
3279
- let k = i.get(t.name) ?? 0;
3280
- if (Tt.has(d) && (L.style("stroke", g[k % g.length]), L.style("fill", _[k % g.length]), P.style("stroke", g[k % g.length]), P.style("fill", _[k % g.length])), t.properties?.icon) {
3281
- let $ = t.properties.icon.trim(), q = u.x + u.width - 20, z = u.y + 10;
3282
- $.charAt(0) === "@" ? se(T, q, z, $.substr(1)) : ie(T, q, z, $);
3283
- }
3284
- Et(r, X(t.description))(t.description, T, u.x, u.y, u.width, u.height, { class: `actor ${Ft}` }, r);
3285
- let B = t.height, U = L.select("path:last-child");
3286
- if (U.node()) {
3287
- let $ = U.node().getBBox();
3288
- t.height = $.height, B = $.height;
3289
- }
3290
- return a || (T.attr("data-et", "participant"), T.attr("data-type", "queue"), T.attr("data-id", t.name)), B;
3291
- }, "drawActorTypeQueue"), Na = /* @__PURE__ */ y(function(e, t, r, a, i, o) {
3292
- let s = a ? t.stopy : t.starty, l = t.x + t.width / 2, E = s + 75, { look: d, theme: p, themeVariables: _ } = r, { bkgColorArray: g, borderColorArray: I, actorBorder: T, actorBkg: u } = _, O = e.append("g").lower();
3293
- a || (v++, O.append("line").attr("id", "actor" + v).attr("x1", l).attr("y1", E).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3294
- let x = e.append("g"), f = xt;
3295
- f += a ? ` ${ut}` : ` ${gt}`, x.attr("class", f), x.attr("name", t.name);
3296
- let L = ht();
3297
- L.x = t.x, L.y = s, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor";
3298
- let P = t.x + t.width / 2, w = s + 32;
3299
- x.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), x.append("circle").attr("cx", P).attr("cy", w).attr("r", 22).attr("filter", `${d === "neo" ? "url(#drop-shadow)" : ""}`), x.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${P}, ${w - 22})`);
3300
- let k = o.get(t.name) ?? 0;
3301
- return Tt.has(p) ? (x.style("stroke", I[k % I.length]), x.style("fill", g[k % I.length])) : (x.style("stroke", T), x.style("fill", u)), t.height = x.node().getBBox().height + 2 * (r?.sequence?.labelBoxHeight ?? 0), Et(r, X(t.description))(t.description, x, L.x, L.y + 22 + (a ? 5 : 12), L.width, L.height, { class: `actor ${xt}` }, r), a || (x.attr("data-et", "participant"), x.attr("data-type", "control"), x.attr("data-id", t.name)), t.height;
3302
- }, "drawActorTypeControl"), Pa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3303
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + 75, { look: E, theme: d, themeVariables: p } = r, { bkgColorArray: _, borderColorArray: g } = p, I = e.append("g").lower(), T = e.append("g"), u = "actor";
3304
- u += a ? ` ${ut}` : ` ${gt}`, T.attr("class", u), T.attr("name", t.name);
3305
- let O = ht();
3306
- O.x = t.x, O.y = o, O.fill = "#eaeaea", O.width = t.width, O.height = t.height, O.class = "actor";
3307
- let x = t.x + t.width / 2, f = o + (a ? 10 : 25);
3308
- T.append("circle").attr("cx", x).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), T.append("line").attr("x1", x - 22).attr("x2", x + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), E === "neo" && T.attr("filter", "url(#drop-shadow)");
3309
- let L = i.get(t.name) ?? 0;
3310
- return Tt.has(d) && (T.style("stroke", g[L % g.length]), T.style("fill", _[L % g.length])), t.height = T.node().getBBox().height + (r?.sequence?.labelBoxHeight ?? 0), a || (v++, I.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v), Et(r, X(t.description))(t.description, T, O.x, O.y + (a ? 15 : 30), O.width, O.height, { class: `actor ${xt}` }, r), a ? T.attr("transform", "translate(0, 22)") : (T.attr("transform", "translate(0, 6)"), T.attr("data-et", "participant"), T.attr("data-type", "entity"), T.attr("data-id", t.name)), t.height;
3311
- }, "drawActorTypeEntity"), Sa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3312
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height + 2 * r.boxTextMargin, { theme: E, themeVariables: d, look: p } = r, { bkgColorArray: _, borderColorArray: g, actorBorder: I } = d, T = e.append("g").lower(), u = T;
3313
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && u.attr("onclick", Kt(`actor${v}_popup`)).attr("cursor", "pointer"), u.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), u = T.append("g"), t.actorCnt = v, t.links != null && u.attr("id", "root-" + v), p === "neo" && u.attr("data-look", "neo"));
3314
- let O = ht(), x = "actor";
3315
- t.properties?.class ? x = t.properties.class : O.fill = "#eaeaea", x += a ? ` ${ut}` : ` ${gt}`, O.x = t.x, O.y = o, O.width = t.width, O.height = t.height, O.class = x, O.name = t.name, O.x = t.x, O.y = o;
3316
- let f = O.width / 3, L = O.width / 3, P = f / 2, w = P / (2.5 + f / 50), k = u.append("g");
3317
- k.attr("class", x);
3318
- let B = `
3319
- M ${O.x},${O.y + w}
3320
- a ${P},${w} 0 0 0 ${f},0
3321
- a ${P},${w} 0 0 0 -${f},0
3322
- l 0,${L - 2 * w}
3323
- a ${P},${w} 0 0 0 ${f},0
3324
- l 0,-${L - 2 * w}
3325
- `;
3326
- k.append("path").attr("d", B), p === "neo" && k.attr("filter", "url(#drop-shadow)");
3327
- let U = i.get(t.name) ?? 0;
3328
- Tt.has(E) ? (k.style("stroke", g[U % g.length]), k.style("fill", _[U % g.length])) : k.style("stroke", I), k.attr("transform", `translate(${f}, ${w})`), t.rectData = O, Et(r, X(t.description))(t.description, u, O.x, O.y + 35, O.width, O.height, { class: `actor ${Ft}` }, r);
3329
- let $ = k.select("path:last-child");
3330
- return $.node() && (t.height = $.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0)), a || (u.attr("data-et", "participant"), u.attr("data-type", "database"), u.attr("data-id", t.name)), t.height;
3331
- }, "drawActorTypeDatabase"), wa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3332
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + 80, E = e.append("g").lower(), { look: d, theme: p, themeVariables: _ } = r, { bkgColorArray: g, borderColorArray: I, actorBorder: T } = _;
3333
- a || (v++, E.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3334
- let u = e.append("g"), O = xt;
3335
- O += a ? ` ${ut}` : ` ${gt}`, u.attr("class", O), u.attr("name", t.name);
3336
- let x = ht();
3337
- x.x = t.x, x.y = o, x.fill = "#eaeaea", x.width = t.width, x.height = t.height, x.class = "actor", u.append("line").attr("id", "actor-man-torso" + v).attr("x1", t.x + t.width / 2 - 55).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), u.append("line").attr("id", "actor-man-arms" + v).attr("x1", t.x + t.width / 2 - 55).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - 55).attr("y2", o + 22), u.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", 22), d === "neo" && u.attr("filter", "url(#drop-shadow)");
3338
- let f = i.get(t.name) ?? 0;
3339
- return Tt.has(p) ? (u.style("stroke", I[f % I.length]), u.style("fill", g[f % I.length])) : u.style("stroke", T), t.height = u.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0), Et(r, X(t.description))(t.description, u, x.x, x.y + 15, x.width, x.height, { class: `actor ${xt}` }, r), u.attr("transform", "translate(0,21)"), a || (u.attr("data-et", "participant"), u.attr("data-type", "boundary"), u.attr("data-id", t.name)), t.height;
3340
- }, "drawActorTypeBoundary"), Aa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3341
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + 80, { look: E, theme: d, themeVariables: p } = r, { bkgColorArray: _, borderColorArray: g, actorBorder: I } = p, T = e.append("g").lower();
3342
- a || (v++, T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3343
- let u = e.append("g"), O = xt;
3344
- O += a ? ` ${ut}` : ` ${gt}`, u.attr("class", O), u.attr("name", t.name), a || u.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3345
- let x = E === "neo" ? 0.5 : 1, f = E === "neo" ? o + (1 - x) * 30 : o;
3346
- u.append("line").attr("id", "actor-man-torso" + v).attr("x1", s).attr("y1", f + 25 * x).attr("x2", s).attr("y2", f + 45 * x), u.append("line").attr("id", "actor-man-arms" + v).attr("x1", s - _t / 2 * x).attr("y1", f + 33 * x).attr("x2", s + _t / 2 * x).attr("y2", f + 33 * x), u.append("line").attr("x1", s - _t / 2 * x).attr("y1", f + 60 * x).attr("x2", s).attr("y2", f + 45 * x), u.append("line").attr("x1", s).attr("y1", f + 45 * x).attr("x2", s + (_t / 2 - 2) * x).attr("y2", f + 60 * x);
3347
- let L = u.append("circle");
3348
- L.attr("cx", t.x + t.width / 2), L.attr("cy", f + 10 * x), L.attr("r", 15 * x), L.attr("width", t.width * x), L.attr("height", t.height * x), t.height = u.node().getBBox().height;
3349
- let P = ht();
3350
- P.x = t.x, P.y = f, P.fill = "#eaeaea", P.width = t.width, P.height = t.height / x, P.class = "actor", P.rx = 3, P.ry = 3;
3351
- let w = i.get(t.name) ?? 0;
3352
- return Tt.has(d) ? (u.style("stroke", g[w % g.length]), u.style("fill", _[w % g.length])) : u.style("stroke", I), Et(r, X(t.description))(t.description, u, P.x, f + 35 * x - (E === "neo" ? 10 : 0), P.width, P.height, { class: `actor ${xt}` }, r), t.height;
3353
- }, "drawActorTypeActor"), Da = /* @__PURE__ */ y(async function(e, t, r, a, i, o, s) {
3354
- let l = s ?? new Map([...o.db.getActors().values()].map((E, d) => [E.name, d]));
3355
- switch (t.type) {
3356
- case "actor":
3357
- return await Aa(e, t, r, a, l);
3358
- case "participant":
3359
- return await fa(e, t, r, a, l);
3360
- case "boundary":
3361
- return await wa(e, t, r, a, l);
3362
- case "control":
3363
- return await Na(e, t, r, a, i, l);
3364
- case "entity":
3365
- return await Pa(e, t, r, a, l);
3366
- case "database":
3367
- return await Sa(e, t, r, a, l);
3368
- case "collections":
3369
- return await Ra(e, t, r, a, l);
3370
- case "queue":
3371
- return await La(e, t, r, a, l);
3372
- }
3373
- }, "drawActor"), ka = /* @__PURE__ */ y(function(e, t, r) {
3374
- let a = e.append("g");
3375
- We(a, t), t.name && Et(r)(t.name, a, t.x, t.y + r.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, r), a.lower();
3376
- }, "drawBox"), Ca = /* @__PURE__ */ y(function(e) {
3377
- return e.append("g");
3378
- }, "anchorElement"), Ma = /* @__PURE__ */ y(function(e, t, r, a, i, o, s) {
3379
- let { theme: l, themeVariables: E } = a, { bkgColorArray: d, borderColorArray: p, mainBkg: _ } = E, g = ht(), I = t.anchored, T = t.actor;
3380
- g.x = t.startx, g.y = t.starty, g.class = "activation" + i % 3, g.width = t.stopx - t.startx, g.height = r - t.starty;
3381
- let u = wt(I, g), O = (s ?? new Map([...o.db.getActors().values()].map((x, f) => [x.name, f]))).get(T) ?? 0;
3382
- Tt.has(l) && (u.style("stroke", p[O % p.length]), u.style("fill", d[O % p.length] ?? _));
3383
- }, "drawActivation"), va = /* @__PURE__ */ y(async function(e, t, r, a, i) {
3384
- let { boxMargin: o, boxTextMargin: s, labelBoxHeight: l, labelBoxWidth: E, messageFontFamily: d, messageFontSize: p, messageFontWeight: _ } = a, g = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), I = /* @__PURE__ */ y(function(O, x, f, L) {
3385
- return g.append("line").attr("x1", O).attr("y1", x).attr("x2", f).attr("y2", L).attr("class", "loopLine");
3386
- }, "drawLoopLine");
3387
- I(t.startx, t.starty, t.stopx, t.starty), I(t.stopx, t.starty, t.stopx, t.stopy), I(t.startx, t.stopy, t.stopx, t.stopy), I(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(O) {
3388
- I(t.startx, O.y, t.stopx, O.y).style("stroke-dasharray", "3, 3");
3389
- });
3390
- let T = re();
3391
- T.text = r, T.x = t.startx, T.y = t.starty, T.fontFamily = d, T.fontSize = p, T.fontWeight = _, T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.width = Math.max(E ?? 0, 50), T.height = l + (a.look === "neo" ? 15 : 0) || 20, T.textMargin = s, T.class = "labelText", $e(g, T), T = Fe(), T.text = t.title, T.x = t.startx + E / 2 + (t.stopx - t.startx) / 2, T.y = t.starty + o + s, T.anchor = "middle", T.valign = "middle", T.textMargin = s, T.class = "loopText", T.fontFamily = d, T.fontSize = p, T.fontWeight = _, T.wrap = !0;
3392
- let u = X(T.text) ? await Wt(g, T, t) : Rt(g, T);
3393
- if (t.sectionTitles !== void 0) {
3394
- for (let [O, x] of Object.entries(t.sectionTitles)) if (x.message) {
3395
- T.text = x.message, T.x = t.startx + (t.stopx - t.startx) / 2, T.y = t.sections[O].y + o + s, T.class = "sectionTitle", T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.fontFamily = d, T.fontSize = p, T.fontWeight = _, T.wrap = t.wrap, X(T.text) ? (t.starty = t.sections[O].y, await Wt(g, T, t)) : Rt(g, T);
3396
- let f = Math.round(u.map((L) => (L._groups || L)[0][0].getBBox().height).reduce((L, P) => L + P));
3397
- t.sections[O].height += f - (o + s);
3398
- }
3399
- }
3400
- return t.height = Math.round(t.stopy - t.starty), g;
3401
- }, "drawLoop"), We = /* @__PURE__ */ y(function(e, t) {
3402
- Ea(e, t);
3403
- }, "drawBackgroundRect"), Ba = /* @__PURE__ */ y(function(e, t) {
3404
- e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "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");
3405
- }, "insertDatabaseIcon"), Ya = /* @__PURE__ */ y(function(e, t) {
3406
- e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
3407
- }, "insertComputerIcon"), $a = /* @__PURE__ */ y(function(e, t) {
3408
- e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
3409
- }, "insertClockIcon"), Va = /* @__PURE__ */ y(function(e, t) {
3410
- e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3411
- }, "insertArrowHead"), Wa = /* @__PURE__ */ y(function(e, t) {
3412
- e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).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");
3413
- }, "insertArrowFilledHead"), Fa = /* @__PURE__ */ y(function(e, t) {
3414
- e.append("defs").append("marker").attr("id", t + "-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);
3415
- }, "insertSequenceNumber"), Ka = /* @__PURE__ */ y(function(e, t) {
3416
- e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3417
- }, "insertArrowCrossHead"), qa = /* @__PURE__ */ y(function(e, t) {
3418
- let { theme: r } = t;
3419
- e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${r === "redux" || r === "redux-color" ? "#000000" : "#FFFFFF"}`);
3420
- }, "insertDropShadow"), Fe = /* @__PURE__ */ y(function() {
3421
- return {
3422
- x: 0,
3423
- y: 0,
3424
- fill: void 0,
3425
- anchor: void 0,
3426
- style: "#666",
3427
- width: void 0,
3428
- height: void 0,
3429
- textMargin: 0,
3430
- rx: 0,
3431
- ry: 0,
3432
- tspan: !0,
3433
- valign: void 0
3434
- };
3435
- }, "getTextObj"), Ha = /* @__PURE__ */ y(function() {
3436
- return {
3437
- x: 0,
3438
- y: 0,
3439
- fill: "#EDF2AE",
3440
- stroke: "#666",
3441
- width: 100,
3442
- anchor: "start",
3443
- height: 100,
3444
- rx: 0,
3445
- ry: 0
3446
- };
3447
- }, "getNoteRect"), Et = /* @__PURE__ */ (function() {
3448
- function e(o, s, l, E, d, p, _) {
3449
- i(s.append("text").attr("x", l + d / 2).attr("y", E + p / 2 + 5).style("text-anchor", "middle").text(o), _);
3450
- }
3451
- y(e, "byText");
3452
- function t(o, s, l, E, d, p, _, g) {
3453
- let { actorFontSize: I, actorFontFamily: T, actorFontWeight: u } = g, [O, x] = ve(I), f = o.split(S.lineBreakRegex);
3454
- for (let L = 0; L < f.length; L++) {
3455
- let P = L * O - O * (f.length - 1) / 2, w = s.append("text").attr("x", l + d / 2).attr("y", E).style("text-anchor", "middle").style("font-size", x).style("font-weight", u).style("font-family", T);
3456
- w.append("tspan").attr("x", l + d / 2).attr("dy", P).text(f[L]), w.attr("y", E + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(w, _);
3457
- }
3458
- }
3459
- y(t, "byTspan");
3460
- function r(o, s, l, E, d, p, _, g) {
3461
- let I = s.append("switch"), T = I.append("foreignObject").attr("x", l).attr("y", E).attr("width", d).attr("height", p).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3462
- T.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(o), t(o, I, l, E, d, p, _, g), i(T, _);
3463
- }
3464
- y(r, "byFo");
3465
- async function a(o, s, l, E, d, p, _, g) {
3466
- let I = await At(o, Vt()), T = s.append("switch"), u = T.append("foreignObject").attr("x", l + d / 2 - I.width / 2).attr("y", E + p / 2 - I.height / 2).attr("width", I.width).attr("height", I.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3467
- u.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(o, Vt())), t(o, T, l, E, d, p, _, g), i(u, _);
3468
- }
3469
- y(a, "byKatex");
3470
- function i(o, s) {
3471
- for (let l in s) s.hasOwnProperty(l) && o.attr(l, s[l]);
3472
- }
3473
- return y(i, "_setTextAttrs"), function(o, s = !1) {
3474
- return s ? a : o.textPlacement === "fo" ? r : o.textPlacement === "old" ? e : t;
3475
- };
3476
- })(), za = /* @__PURE__ */ (function() {
3477
- function e(i, o, s, l, E, d, p) {
3478
- a(o.append("text").attr("x", s).attr("y", l).style("text-anchor", "start").text(i), p);
3479
- }
3480
- y(e, "byText");
3481
- function t(i, o, s, l, E, d, p, _) {
3482
- let { actorFontSize: g, actorFontFamily: I, actorFontWeight: T } = _, u = i.split(S.lineBreakRegex);
3483
- for (let O = 0; O < u.length; O++) {
3484
- let x = O * g - g * (u.length - 1) / 2, f = o.append("text").attr("x", s).attr("y", l).style("text-anchor", "start").style("font-size", g).style("font-weight", T).style("font-family", I);
3485
- f.append("tspan").attr("x", s).attr("dy", x).text(u[O]), f.attr("y", l + d / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(f, p);
3486
- }
3487
- }
3488
- y(t, "byTspan");
3489
- function r(i, o, s, l, E, d, p, _) {
3490
- let g = o.append("switch"), I = g.append("foreignObject").attr("x", s).attr("y", l).attr("width", E).attr("height", d).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3491
- I.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, g, s, l, E, d, p, _), a(I, p);
3492
- }
3493
- y(r, "byFo");
3494
- function a(i, o) {
3495
- for (let s in o) o.hasOwnProperty(s) && i.attr(s, o[s]);
3496
- }
3497
- return y(a, "_setTextAttrs"), function(i) {
3498
- return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? e : t;
3499
- };
3500
- })(), F = {
3501
- drawRect: wt,
3502
- drawText: Rt,
3503
- drawLabel: $e,
3504
- drawActor: Da,
3505
- drawBox: ka,
3506
- drawPopup: Ia,
3507
- anchorElement: Ca,
3508
- drawActivation: Ma,
3509
- drawLoop: va,
3510
- drawBackgroundRect: We,
3511
- insertArrowHead: Va,
3512
- insertArrowFilledHead: Wa,
3513
- insertSequenceNumber: Fa,
3514
- insertArrowCrossHead: Ka,
3515
- insertDatabaseIcon: Ba,
3516
- insertComputerIcon: Ya,
3517
- insertClockIcon: $a,
3518
- getTextObj: Fe,
3519
- getNoteRect: Ha,
3520
- fixLifeLineHeights: Ve,
3521
- sanitizeUrl: Ye.sanitizeUrl,
3522
- insertDropShadow: qa,
3523
- insertSolidTopArrowHead: /* @__PURE__ */ y(function(e, t) {
3524
- e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3525
- }, "insertSolidTopArrowHead"),
3526
- insertSolidBottomArrowHead: /* @__PURE__ */ y(function(e, t) {
3527
- e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", 0.75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3528
- }, "insertSolidBottomArrowHead"),
3529
- insertStickTopArrowHead: /* @__PURE__ */ y(function(e, t) {
3530
- e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3531
- }, "insertStickTopArrowHead"),
3532
- insertStickBottomArrowHead: /* @__PURE__ */ y(function(e, t) {
3533
- e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3534
- }, "insertStickBottomArrowHead")
3535
- }, c = {}, m = {
3536
- data: {
3537
- startx: void 0,
3538
- stopx: void 0,
3539
- starty: void 0,
3540
- stopy: void 0
3541
- },
3542
- verticalPos: 0,
3543
- sequenceItems: [],
3544
- activations: [],
3545
- models: {
3546
- getHeight: /* @__PURE__ */ y(function() {
3547
- return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3548
- }, "getHeight"),
3549
- clear: /* @__PURE__ */ y(function() {
3550
- this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3551
- }, "clear"),
3552
- addBox: /* @__PURE__ */ y(function(e) {
3553
- this.boxes.push(e);
3554
- }, "addBox"),
3555
- addActor: /* @__PURE__ */ y(function(e) {
3556
- this.actors.push(e);
3557
- }, "addActor"),
3558
- addLoop: /* @__PURE__ */ y(function(e) {
3559
- this.loops.push(e);
3560
- }, "addLoop"),
3561
- addMessage: /* @__PURE__ */ y(function(e) {
3562
- this.messages.push(e);
3563
- }, "addMessage"),
3564
- addNote: /* @__PURE__ */ y(function(e) {
3565
- this.notes.push(e);
3566
- }, "addNote"),
3567
- lastActor: /* @__PURE__ */ y(function() {
3568
- return this.actors[this.actors.length - 1];
3569
- }, "lastActor"),
3570
- lastLoop: /* @__PURE__ */ y(function() {
3571
- return this.loops[this.loops.length - 1];
3572
- }, "lastLoop"),
3573
- lastMessage: /* @__PURE__ */ y(function() {
3574
- return this.messages[this.messages.length - 1];
3575
- }, "lastMessage"),
3576
- lastNote: /* @__PURE__ */ y(function() {
3577
- return this.notes[this.notes.length - 1];
3578
- }, "lastNote"),
3579
- actors: [],
3580
- boxes: [],
3581
- loops: [],
3582
- messages: [],
3583
- notes: []
3584
- },
3585
- init: /* @__PURE__ */ y(function() {
3586
- this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3587
- startx: void 0,
3588
- stopx: void 0,
3589
- starty: void 0,
3590
- stopy: void 0
3591
- }, this.verticalPos = 0, He(Z());
3592
- }, "init"),
3593
- updateVal: /* @__PURE__ */ y(function(e, t, r, a) {
3594
- e[t] = e[t] === void 0 ? r : a(r, e[t]);
3595
- }, "updateVal"),
3596
- updateBounds: /* @__PURE__ */ y(function(e, t, r, a) {
3597
- let i = this, o = 0;
3598
- function s(l) {
3599
- return /* @__PURE__ */ y(function(E) {
3600
- o++;
3601
- let d = i.sequenceItems.length - o + 1;
3602
- i.updateVal(E, "starty", t - d * c.boxMargin, Math.min), i.updateVal(E, "stopy", a + d * c.boxMargin, Math.max), i.updateVal(m.data, "startx", e - d * c.boxMargin, Math.min), i.updateVal(m.data, "stopx", r + d * c.boxMargin, Math.max), l !== "activation" && (i.updateVal(E, "startx", e - d * c.boxMargin, Math.min), i.updateVal(E, "stopx", r + d * c.boxMargin, Math.max), i.updateVal(m.data, "starty", t - d * c.boxMargin, Math.min), i.updateVal(m.data, "stopy", a + d * c.boxMargin, Math.max));
3603
- }, "updateItemBounds");
3604
- }
3605
- y(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3606
- }, "updateBounds"),
3607
- insert: /* @__PURE__ */ y(function(e, t, r, a) {
3608
- let i = S.getMin(e, r), o = S.getMax(e, r), s = S.getMin(t, a), l = S.getMax(t, a);
3609
- this.updateVal(m.data, "startx", i, Math.min), this.updateVal(m.data, "starty", s, Math.min), this.updateVal(m.data, "stopx", o, Math.max), this.updateVal(m.data, "stopy", l, Math.max), this.updateBounds(i, s, o, l);
3610
- }, "insert"),
3611
- newActivation: /* @__PURE__ */ y(function(e, t, r) {
3612
- let a = r.get(e.from), i = qt(e.from).length || 0, o = a.x + a.width / 2 + (i - 1) * c.activationWidth / 2;
3613
- this.activations.push({
3614
- startx: o,
3615
- starty: this.verticalPos + 2,
3616
- stopx: o + c.activationWidth,
3617
- stopy: void 0,
3618
- actor: e.from,
3619
- anchored: F.anchorElement(t)
3620
- });
3621
- }, "newActivation"),
3622
- endActivation: /* @__PURE__ */ y(function(e) {
3623
- let t = this.activations.map(function(r) {
3624
- return r.actor;
3625
- }).lastIndexOf(e.from);
3626
- return this.activations.splice(t, 1)[0];
3627
- }, "endActivation"),
3628
- createLoop: /* @__PURE__ */ y(function(e = {
3629
- message: void 0,
3630
- wrap: !1,
3631
- width: void 0
3632
- }, t) {
3633
- return {
3634
- startx: void 0,
3635
- starty: this.verticalPos,
3636
- stopx: void 0,
3637
- stopy: void 0,
3638
- title: e.message,
3639
- wrap: e.wrap,
3640
- width: e.width,
3641
- height: 0,
3642
- fill: t
3643
- };
3644
- }, "createLoop"),
3645
- newLoop: /* @__PURE__ */ y(function(e = {
3646
- message: void 0,
3647
- wrap: !1,
3648
- width: void 0
3649
- }, t) {
3650
- this.sequenceItems.push(this.createLoop(e, t));
3651
- }, "newLoop"),
3652
- endLoop: /* @__PURE__ */ y(function() {
3653
- return this.sequenceItems.pop();
3654
- }, "endLoop"),
3655
- isLoopOverlap: /* @__PURE__ */ y(function() {
3656
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3657
- }, "isLoopOverlap"),
3658
- addSectionToLoop: /* @__PURE__ */ y(function(e) {
3659
- let t = this.sequenceItems.pop();
3660
- t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3661
- y: m.getVerticalPos(),
3662
- height: 0
3663
- }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3664
- }, "addSectionToLoop"),
3665
- saveVerticalPos: /* @__PURE__ */ y(function() {
3666
- this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3667
- }, "saveVerticalPos"),
3668
- resetVerticalPos: /* @__PURE__ */ y(function() {
3669
- this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3670
- }, "resetVerticalPos"),
3671
- bumpVerticalPos: /* @__PURE__ */ y(function(e) {
3672
- this.verticalPos += e, this.data.stopy = S.getMax(this.data.stopy, this.verticalPos);
3673
- }, "bumpVerticalPos"),
3674
- getVerticalPos: /* @__PURE__ */ y(function() {
3675
- return this.verticalPos;
3676
- }, "getVerticalPos"),
3677
- getBounds: /* @__PURE__ */ y(function() {
3678
- return {
3679
- bounds: this.data,
3680
- models: this.models
3681
- };
3682
- }, "getBounds")
3683
- }, Ua = /* @__PURE__ */ y(async function(e, t, r) {
3684
- m.bumpVerticalPos(c.boxMargin), t.height = c.boxMargin, t.starty = m.getVerticalPos();
3685
- let a = ht();
3686
- a.x = t.startx, a.y = t.starty, a.width = t.width || c.width, a.class = "note";
3687
- let i = e.append("g");
3688
- i.attr("data-et", "note"), i.attr("data-id", "i" + r);
3689
- let o = F.drawRect(i, a), s = re();
3690
- s.x = t.startx, s.y = t.starty, s.width = a.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = c.noteFontFamily, s.fontSize = c.noteFontSize, s.fontWeight = c.noteFontWeight, s.anchor = c.noteAlign, s.textMargin = c.noteMargin, s.valign = "center";
3691
- let l = X(s.text) ? await Wt(i, s) : Rt(i, s), E = Math.round(l.map((d) => (d._groups || d)[0][0].getBBox().height).reduce((d, p) => d + p));
3692
- o.attr("height", E + 2 * c.noteMargin), t.height += E + 2 * c.noteMargin, m.bumpVerticalPos(E + 2 * c.noteMargin), t.stopy = t.starty + E + 2 * c.noteMargin, t.stopx = t.startx + a.width, m.insert(t.startx, t.starty, t.stopx, t.stopy), m.models.addNote(t);
3693
- }, "drawNote"), Ce = /* @__PURE__ */ y(function(e, t, r, a, i, o, s) {
3694
- let l = a.db.getActors(), E = l.get(t.from), d = l.get(t.to), p = r.sequenceVisible, _ = E.x + E.width / 2, g = d.x + d.width / 2, I = _ <= g, T = Ge(t, a), u = e.append("g"), O = /* @__PURE__ */ y((w, k) => {
3695
- let B = w ? 16.5 : -16.5;
3696
- return k ? -B : B;
3697
- }, "getCircleOffset"), x = /* @__PURE__ */ y((w) => {
3698
- u.append("circle").attr("cx", w).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3699
- }, "drawCircle"), { CENTRAL_CONNECTION: f, CENTRAL_CONNECTION_REVERSE: L, CENTRAL_CONNECTION_DUAL: P } = a.db.LINETYPE;
3700
- if (p) switch (t.centralConnection) {
3701
- case f:
3702
- T && (g += O(I, !0));
3703
- break;
3704
- case L:
3705
- T || (_ += O(I, !1));
3706
- break;
3707
- case P:
3708
- T ? g += O(I, !0) : _ += O(I, !1);
3709
- }
3710
- switch (t.centralConnection) {
3711
- case f:
3712
- x(g);
3713
- break;
3714
- case L:
3715
- x(_);
3716
- break;
3717
- case P:
3718
- x(_), x(g);
3719
- }
3720
- }, "drawCentralConnection"), bt = /* @__PURE__ */ y((e) => ({
3721
- fontFamily: e.messageFontFamily,
3722
- fontSize: e.messageFontSize,
3723
- fontWeight: e.messageFontWeight
3724
- }), "messageFont"), It = /* @__PURE__ */ y((e) => ({
3725
- fontFamily: e.noteFontFamily,
3726
- fontSize: e.noteFontSize,
3727
- fontWeight: e.noteFontWeight
3728
- }), "noteFont"), ee = /* @__PURE__ */ y((e) => ({
3729
- fontFamily: e.actorFontFamily,
3730
- fontSize: e.actorFontSize,
3731
- fontWeight: e.actorFontWeight
3732
- }), "actorFont");
3733
- async function Ke(e, t) {
3734
- m.bumpVerticalPos(10);
3735
- let { startx: r, stopx: a, message: i } = t, o = S.splitBreaks(i).length, s = X(i), l = s ? await At(i, Z()) : G.calculateTextDimensions(i, bt(c));
3736
- if (!s) {
3737
- let _ = l.height / o;
3738
- t.height += _, m.bumpVerticalPos(_);
3739
- }
3740
- let E, d = l.height - 10, p = l.width;
3741
- if (r === a) {
3742
- E = m.getVerticalPos() + d, c.rightAngles || (d += c.boxMargin, E = m.getVerticalPos() + d), d += 30;
3743
- let _ = S.getMax(p / 2, c.width / 2);
3744
- m.insert(r - _, m.getVerticalPos() - 10 + d, a + _, m.getVerticalPos() + 30 + d);
3745
- } else d += c.boxMargin, E = m.getVerticalPos() + d, m.insert(r, E - 10, a, E);
3746
- return m.bumpVerticalPos(d), t.height += d, t.stopy = t.starty + t.height, m.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), E;
3747
- }
3748
- y(Ke, "boundMessage");
3749
- var ja = /* @__PURE__ */ y(async function(e, t, r, a, i, o) {
3750
- let { startx: s, stopx: l, starty: E, message: d, type: p, sequenceIndex: _, sequenceVisible: g } = t, I = G.calculateTextDimensions(d, bt(c)), T = re();
3751
- T.x = Math.min(s, l), T.y = E + 10, T.width = Math.abs(l - s), T.class = "messageText", T.dy = "1em", T.text = d, T.fontFamily = c.messageFontFamily, T.fontSize = c.messageFontSize, T.fontWeight = c.messageFontWeight, T.anchor = c.messageAlign, T.valign = "center", T.textMargin = c.wrapPadding, T.tspan = !1, X(T.text) ? await Wt(e, T, {
3752
- startx: s,
3753
- stopx: l,
3754
- starty: r
3755
- }) : Rt(e, T);
3756
- let u = I.width, O;
3757
- if (s === l) {
3758
- let f = g || c.showSequenceNumbers, L = Ge(i, a), P = er(i, a), w = s + (f && (L || P) ? 10 : 0);
3759
- O = c.rightAngles ? e.append("path").attr("d", `M ${w},${r} H ${s + S.getMax(c.width / 2, u / 2)} V ${r + 25} H ${s}`) : e.append("path").attr("d", "M " + w + "," + r + " C " + (w + 60) + "," + (r - 10) + " " + (s + 60) + "," + (r + 30) + " " + s + "," + (r + 20)), Qt(i, a) && Ce(e, i, t, a, s, l, r);
3760
- } else O = e.append("line"), O.attr("x1", s), O.attr("y1", r), O.attr("x2", l), O.attr("y2", r), Qt(i, a) && Ce(e, i, t, a, s, l, r);
3761
- p === a.db.LINETYPE.DOTTED || p === a.db.LINETYPE.DOTTED_CROSS || p === a.db.LINETYPE.DOTTED_POINT || p === a.db.LINETYPE.DOTTED_OPEN || p === a.db.LINETYPE.BIDIRECTIONAL_DOTTED || p === a.db.LINETYPE.SOLID_TOP_DOTTED || p === a.db.LINETYPE.SOLID_BOTTOM_DOTTED || p === a.db.LINETYPE.STICK_TOP_DOTTED || p === a.db.LINETYPE.STICK_BOTTOM_DOTTED || p === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || p === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || p === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || p === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (O.style("stroke-dasharray", "3, 3"), O.attr("class", "messageLine1")) : O.attr("class", "messageLine0"), O.attr("data-et", "message"), O.attr("data-id", "i" + t.id), O.attr("data-from", t.from), O.attr("data-to", t.to);
3762
- let x = "";
3763
- if (c.arrowMarkerAbsolute && (x = Ta(!0)), O.attr("stroke-width", 2), O.attr("stroke", "none"), O.style("fill", "none"), (p === a.db.LINETYPE.SOLID_TOP || p === a.db.LINETYPE.SOLID_TOP_DOTTED) && O.attr("marker-end", "url(" + x + "#" + o + "-solidTopArrowHead)"), (p === a.db.LINETYPE.SOLID_BOTTOM || p === a.db.LINETYPE.SOLID_BOTTOM_DOTTED) && O.attr("marker-end", "url(" + x + "#" + o + "-solidBottomArrowHead)"), (p === a.db.LINETYPE.STICK_TOP || p === a.db.LINETYPE.STICK_TOP_DOTTED) && O.attr("marker-end", "url(" + x + "#" + o + "-stickTopArrowHead)"), (p === a.db.LINETYPE.STICK_BOTTOM || p === a.db.LINETYPE.STICK_BOTTOM_DOTTED) && O.attr("marker-end", "url(" + x + "#" + o + "-stickBottomArrowHead)"), (p === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || p === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && O.attr("marker-start", "url(" + x + "#" + o + "-solidBottomArrowHead)"), (p === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || p === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && O.attr("marker-start", "url(" + x + "#" + o + "-solidTopArrowHead)"), (p === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE || p === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && O.attr("marker-start", "url(" + x + "#" + o + "-stickBottomArrowHead)"), (p === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || p === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && O.attr("marker-start", "url(" + x + "#" + o + "-stickTopArrowHead)"), (p === a.db.LINETYPE.SOLID || p === a.db.LINETYPE.DOTTED) && O.attr("marker-end", "url(" + x + "#" + o + "-arrowhead)"), (p === a.db.LINETYPE.BIDIRECTIONAL_SOLID || p === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (O.attr("marker-start", "url(" + x + "#" + o + "-arrowhead)"), O.attr("marker-end", "url(" + x + "#" + o + "-arrowhead)")), (p === a.db.LINETYPE.SOLID_POINT || p === a.db.LINETYPE.DOTTED_POINT) && O.attr("marker-end", "url(" + x + "#" + o + "-filled-head)"), (p === a.db.LINETYPE.SOLID_CROSS || p === a.db.LINETYPE.DOTTED_CROSS) && O.attr("marker-end", "url(" + x + "#" + o + "-crosshead)"), g || c.showSequenceNumbers) {
3764
- let f = p === a.db.LINETYPE.BIDIRECTIONAL_SOLID || p === a.db.LINETYPE.BIDIRECTIONAL_DOTTED, L = p === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || p === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || p === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || p === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || p === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE || p === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || p === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || p === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, P = Qt(i, a), w = s, k = l;
3765
- f ? (s < l ? w = s + 12 : (w = s - 6 + (P ? -5 : 0), w += i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), O.attr("x1", w)) : L ? (l > s ? k = l - 12 : (k = l - 6, w += i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), k += P ? 15 : 0, O.attr("x2", k), O.attr("x1", w)) : O.attr("x1", s + 6);
3766
- let B = 0, U = s === l, $ = s <= l;
3767
- B = U ? t.fromBounds + 1 : L ? $ ? t.toBounds - 1 : t.fromBounds + 1 : $ ? t.fromBounds + 1 : t.toBounds - 1;
3768
- let q = "12px", z = _.toString().length;
3769
- z > 5 ? q = "7px" : z > 3 && (q = "9px"), e.append("line").attr("x1", B).attr("y1", r).attr("x2", B).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + x + "#" + o + "-sequencenumber)"), e.append("text").attr("x", B).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", q).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(_);
3770
- }
3771
- }, "drawMessage"), Ga = /* @__PURE__ */ y(function(e, t, r, a, i, o, s) {
3772
- let l = 0, E = 0, d, p = 0;
3773
- for (let _ of a) {
3774
- let g = t.get(_), I = g.box;
3775
- d && d != I && (s || m.models.addBox(d), E += c.boxMargin + d.margin), I && I != d && (s || (I.x = l + E, I.y = i), E += I.margin), g.width = S.getMax(g.width || c.width, c.width), g.height = S.getMax(g.height || c.height, c.height), g.margin = g.margin || c.actorMargin, p = S.getMax(p, g.height), r.get(g.name) && (E += g.width / 2), g.x = l + E, g.starty = m.getVerticalPos(), m.insert(g.x, i, g.x + g.width, g.height), l += g.width + E, g.box && (g.box.width = l + I.margin - g.box.x), E = g.margin, d = g.box, m.models.addActor(g);
3776
- }
3777
- d && !s && m.models.addBox(d), m.bumpVerticalPos(p);
3778
- }, "addActorRenderingData"), ae = /* @__PURE__ */ y(async function(e, t, r, a, i, o, s) {
3779
- if (a) {
3780
- let l = 0;
3781
- m.bumpVerticalPos(c.boxMargin * 2);
3782
- for (let E of r) {
3783
- let d = t.get(E);
3784
- d.stopy ||= m.getVerticalPos();
3785
- let p = await F.drawActor(e, d, c, !0, i, o, s);
3786
- l = S.getMax(l, p);
3787
- }
3788
- m.bumpVerticalPos(l + c.boxMargin);
3789
- } else for (let l of r) {
3790
- let E = t.get(l);
3791
- await F.drawActor(e, E, c, !1, i, o, s);
3792
- }
3793
- }, "drawActors"), qe = /* @__PURE__ */ y(function(e, t, r, a) {
3794
- let i = 0, o = 0;
3795
- for (let s of r) {
3796
- let l = t.get(s), E = Ja(l), d = F.drawPopup(e, l, E, c, c.forceMenus, a);
3797
- d.height > i && (i = d.height), d.width + l.x > o && (o = d.width + l.x);
3798
- }
3799
- return {
3800
- maxHeight: i,
3801
- maxWidth: o
3802
- };
3803
- }, "drawActorsPopup"), He = /* @__PURE__ */ y(function(e) {
3804
- ra(c, e), e.fontFamily && (c.actorFontFamily = c.noteFontFamily = c.messageFontFamily = e.fontFamily), e.fontSize && (c.actorFontSize = c.noteFontSize = c.messageFontSize = e.fontSize), e.fontWeight && (c.actorFontWeight = c.noteFontWeight = c.messageFontWeight = e.fontWeight);
3805
- }, "setConf"), qt = /* @__PURE__ */ y(function(e) {
3806
- return m.activations.filter(function(t) {
3807
- return t.actor === e;
3808
- });
3809
- }, "actorActivations"), Me = /* @__PURE__ */ y(function(e, t) {
3810
- let r = t.get(e), a = qt(e);
3811
- return [a.reduce(function(i, o) {
3812
- return S.getMin(i, o.startx);
3813
- }, r.x + r.width / 2 - 1), a.reduce(function(i, o) {
3814
- return S.getMax(i, o.stopx);
3815
- }, r.x + r.width / 2 + 1)];
3816
- }, "activationBounds");
3817
- function dt(e, t, r, a, i) {
3818
- m.bumpVerticalPos(r);
3819
- let o = a;
3820
- if (t.id && t.message && e[t.id]) {
3821
- let s = e[t.id].width, l = bt(c);
3822
- t.message = G.wrapLabel(`[${t.message}]`, s - 2 * c.wrapPadding, l), t.width = s, t.wrap = !0;
3823
- let E = G.calculateTextDimensions(t.message, l), d = S.getMax(E.height, c.labelBoxHeight);
3824
- o = a + d, at.debug(`${d} - ${t.message}`);
3825
- }
3826
- i(t), m.bumpVerticalPos(o);
3827
- }
3828
- y(dt, "adjustLoopHeightForWrap");
3829
- function ze(e, t, r, a, i, o, s) {
3830
- function l(p, _) {
3831
- p.x < i.get(e.from).x ? (m.insert(t.stopx - _, t.starty, t.startx, t.stopy + p.height / 2 + c.noteMargin), t.stopx += _) : (m.insert(t.startx, t.starty, t.stopx + _, t.stopy + p.height / 2 + c.noteMargin), t.stopx -= _);
3832
- }
3833
- y(l, "receiverAdjustment");
3834
- function E(p, _) {
3835
- p.x < i.get(e.to).x ? (m.insert(t.startx - _, t.starty, t.stopx, t.stopy + p.height / 2 + c.noteMargin), t.startx += _) : (m.insert(t.stopx, t.starty, t.startx + _, t.stopy + p.height / 2 + c.noteMargin), t.startx -= _);
3836
- }
3837
- y(E, "senderAdjustment");
3838
- let d = [
3839
- $t.ACTOR,
3840
- $t.CONTROL,
3841
- $t.ENTITY,
3842
- $t.DATABASE
3843
- ];
3844
- if (o.get(e.to) == a) {
3845
- let p = i.get(e.to);
3846
- l(p, d.includes(p.type) ? _t / 2 + 3 : p.width / 2 + 3), p.starty = r - p.height / 2, m.bumpVerticalPos(p.height / 2);
3847
- } else if (s.get(e.from) == a) {
3848
- let p = i.get(e.from);
3849
- c.mirrorActors && E(p, d.includes(p.type) ? _t / 2 : p.width / 2), p.stopy = r - p.height / 2, m.bumpVerticalPos(p.height / 2);
3850
- } else if (s.get(e.to) == a) {
3851
- let p = i.get(e.to);
3852
- c.mirrorActors && l(p, d.includes(p.type) ? _t / 2 + 3 : p.width / 2 + 3), p.stopy = r - p.height / 2, m.bumpVerticalPos(p.height / 2);
3853
- }
3854
- }
3855
- y(ze, "adjustCreatedDestroyedData");
3856
- var Xa = /* @__PURE__ */ y(async function(e, t, r, a) {
3857
- let { securityLevel: i, sequence: o, look: s, themeVariables: l } = Z();
3858
- c = o;
3859
- let E;
3860
- i === "sandbox" && (E = Zt("#i" + t));
3861
- let d = Zt(i === "sandbox" ? E.nodes()[0].contentDocument.body : "body"), p = i === "sandbox" ? E.nodes()[0].contentDocument : document;
3862
- m.init(), at.debug(a.db);
3863
- let _ = i === "sandbox" ? d.select(`[id="${t}"]`) : Zt(`[id="${t}"]`), g = a.db.getActors(), I = a.db.getCreatedActors(), T = a.db.getDestroyedActors(), u = a.db.getBoxes(), O = a.db.getActorKeys(), x = a.db.getMessages(), f = a.db.getDiagramTitle(), L = a.db.hasAtLeastOneBox(), P = a.db.hasAtLeastOneBoxWithTitle(), w = await Ue(g, x, a);
3864
- if (c.height = await je(g, w, u), F.insertComputerIcon(_, t), F.insertDatabaseIcon(_, t), F.insertClockIcon(_, t), L && (m.bumpVerticalPos(c.boxMargin), P && m.bumpVerticalPos(u[0].textMaxHeight)), c.hideUnusedParticipants === !0) {
3865
- let R = /* @__PURE__ */ new Set();
3866
- x.forEach((A) => {
3867
- R.add(A.from), R.add(A.to);
3868
- }), O = O.filter((A) => R.has(A));
3869
- }
3870
- let k = new Map(O.map((R, A) => [g.get(R)?.name ?? R, A]));
3871
- Ga(_, g, I, O, 0, x, !1);
3872
- let B = await rr(x, g, w, a);
3873
- F.insertArrowHead(_, t), F.insertArrowCrossHead(_, t), F.insertArrowFilledHead(_, t), F.insertSequenceNumber(_, t), F.insertSolidTopArrowHead(_, t), F.insertSolidBottomArrowHead(_, t), F.insertStickTopArrowHead(_, t), F.insertStickBottomArrowHead(_, t), s === "neo" && F.insertDropShadow(_, c);
3874
- function U(R, A) {
3875
- let ct = m.endActivation(R);
3876
- ct.starty + 18 > A && (ct.starty = A - 6, A += 12), F.drawActivation(_, ct, A, c, qt(R.from).length, a, k), m.insert(ct.startx, A - 10, ct.stopx, A);
3877
- }
3878
- y(U, "activeEnd");
3879
- let $ = 1, q = 1, z = [], J = [], it = 0;
3880
- for (let R of x) {
3881
- let A, ct, et;
3882
- switch (R.type) {
3883
- case a.db.LINETYPE.NOTE:
3884
- m.resetVerticalPos(), ct = R.noteModel, await Ua(_, ct, R.id);
3885
- break;
3886
- case a.db.LINETYPE.ACTIVE_START:
3887
- m.newActivation(R, _, g);
3888
- break;
3889
- case a.db.LINETYPE.CENTRAL_CONNECTION:
3890
- m.newActivation(R, _, g);
3891
- break;
3892
- case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3893
- m.newActivation(R, _, g);
3894
- break;
3895
- case a.db.LINETYPE.ACTIVE_END:
3896
- U(R, m.getVerticalPos());
3897
- break;
3898
- case a.db.LINETYPE.LOOP_START:
3899
- dt(B, R, c.boxMargin, c.boxMargin + c.boxTextMargin, (V) => m.newLoop(V));
3900
- break;
3901
- case a.db.LINETYPE.LOOP_END:
3902
- A = m.endLoop(), await F.drawLoop(_, A, "loop", c, R), m.bumpVerticalPos(A.stopy - m.getVerticalPos()), m.models.addLoop(A);
3903
- break;
3904
- case a.db.LINETYPE.RECT_START:
3905
- dt(B, R, c.boxMargin, c.boxMargin, (V) => {
3906
- let Nt = V.message;
3907
- Nt ||= l?.rectBkgColor || l?.actorBkg || "rgba(128, 128, 128, 0.5)", m.newLoop(void 0, Nt);
3908
- });
3909
- break;
3910
- case a.db.LINETYPE.RECT_END:
3911
- A = m.endLoop(), J.push(A), m.models.addLoop(A), m.bumpVerticalPos(A.stopy - m.getVerticalPos());
3912
- break;
3913
- case a.db.LINETYPE.OPT_START:
3914
- dt(B, R, c.boxMargin, c.boxMargin + c.boxTextMargin, (V) => m.newLoop(V));
3915
- break;
3916
- case a.db.LINETYPE.OPT_END:
3917
- A = m.endLoop(), await F.drawLoop(_, A, "opt", c, R), m.bumpVerticalPos(A.stopy - m.getVerticalPos()), m.models.addLoop(A);
3918
- break;
3919
- case a.db.LINETYPE.ALT_START:
3920
- dt(B, R, c.boxMargin, c.boxMargin + c.boxTextMargin, (V) => m.newLoop(V));
3921
- break;
3922
- case a.db.LINETYPE.ALT_ELSE:
3923
- dt(B, R, c.boxMargin + c.boxTextMargin, c.boxMargin, (V) => m.addSectionToLoop(V));
3924
- break;
3925
- case a.db.LINETYPE.ALT_END:
3926
- A = m.endLoop(), await F.drawLoop(_, A, "alt", c, R), m.bumpVerticalPos(A.stopy - m.getVerticalPos()), m.models.addLoop(A);
3927
- break;
3928
- case a.db.LINETYPE.PAR_START:
3929
- case a.db.LINETYPE.PAR_OVER_START:
3930
- dt(B, R, c.boxMargin, c.boxMargin + c.boxTextMargin, (V) => m.newLoop(V)), m.saveVerticalPos();
3931
- break;
3932
- case a.db.LINETYPE.PAR_AND:
3933
- dt(B, R, c.boxMargin + c.boxTextMargin, c.boxMargin, (V) => m.addSectionToLoop(V));
3934
- break;
3935
- case a.db.LINETYPE.PAR_END:
3936
- A = m.endLoop(), await F.drawLoop(_, A, "par", c, R), m.bumpVerticalPos(A.stopy - m.getVerticalPos()), m.models.addLoop(A);
3937
- break;
3938
- case a.db.LINETYPE.AUTONUMBER:
3939
- $ = R.message.start || $, q = R.message.step || q, R.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
3940
- break;
3941
- case a.db.LINETYPE.CRITICAL_START:
3942
- dt(B, R, c.boxMargin, c.boxMargin + c.boxTextMargin, (V) => m.newLoop(V));
3943
- break;
3944
- case a.db.LINETYPE.CRITICAL_OPTION:
3945
- dt(B, R, c.boxMargin + c.boxTextMargin, c.boxMargin, (V) => m.addSectionToLoop(V));
3946
- break;
3947
- case a.db.LINETYPE.CRITICAL_END:
3948
- A = m.endLoop(), await F.drawLoop(_, A, "critical", c, R), m.bumpVerticalPos(A.stopy - m.getVerticalPos()), m.models.addLoop(A);
3949
- break;
3950
- case a.db.LINETYPE.BREAK_START:
3951
- dt(B, R, c.boxMargin, c.boxMargin + c.boxTextMargin, (V) => m.newLoop(V));
3952
- break;
3953
- case a.db.LINETYPE.BREAK_END:
3954
- A = m.endLoop(), await F.drawLoop(_, A, "break", c, R), m.bumpVerticalPos(A.stopy - m.getVerticalPos()), m.models.addLoop(A);
3955
- break;
3956
- default:
3957
- try {
3958
- et = R.msgModel, et.starty = m.getVerticalPos(), et.sequenceIndex = $, et.sequenceVisible = a.db.showSequenceNumbers(), et.id = R.id, et.from = R.from, et.to = R.to;
3959
- let V = await Ke(_, et);
3960
- ze(R, et, V, it, g, I, T), z.push({
3961
- messageModel: et,
3962
- lineStartY: V,
3963
- msg: R
3964
- }), m.models.addMessage(et);
3965
- } catch (V) {
3966
- at.error("error while drawing message", V);
3967
- }
3968
- }
3969
- [
3970
- a.db.LINETYPE.SOLID_OPEN,
3971
- a.db.LINETYPE.DOTTED_OPEN,
3972
- a.db.LINETYPE.SOLID,
3973
- a.db.LINETYPE.SOLID_TOP,
3974
- a.db.LINETYPE.SOLID_BOTTOM,
3975
- a.db.LINETYPE.STICK_TOP,
3976
- a.db.LINETYPE.STICK_BOTTOM,
3977
- a.db.LINETYPE.SOLID_TOP_DOTTED,
3978
- a.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3979
- a.db.LINETYPE.STICK_TOP_DOTTED,
3980
- a.db.LINETYPE.STICK_BOTTOM_DOTTED,
3981
- a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3982
- a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3983
- a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3984
- a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3985
- a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3986
- a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3987
- a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3988
- a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3989
- a.db.LINETYPE.DOTTED,
3990
- a.db.LINETYPE.SOLID_CROSS,
3991
- a.db.LINETYPE.DOTTED_CROSS,
3992
- a.db.LINETYPE.SOLID_POINT,
3993
- a.db.LINETYPE.DOTTED_POINT,
3994
- a.db.LINETYPE.BIDIRECTIONAL_SOLID,
3995
- a.db.LINETYPE.BIDIRECTIONAL_DOTTED
3996
- ].includes(R.type) && ($ = Math.round(($ + q) * 100) / 100), it++;
3997
- }
3998
- at.debug("createdActors", I), at.debug("destroyedActors", T), await ae(_, g, O, !1, t, a, k);
3999
- for (let R of z) await ja(_, R.messageModel, R.lineStartY, a, R.msg, t);
4000
- c.mirrorActors && await ae(_, g, O, !0, t, a, k), J.forEach((R) => F.drawBackgroundRect(_, R)), Ve(_, g, O, c);
4001
- for (let R of m.models.boxes) {
4002
- R.height = m.getVerticalPos() - R.y, m.insert(R.x, R.y, R.x + R.width, R.height);
4003
- let A = c.boxMargin * 2;
4004
- R.startx = R.x - A, R.starty = R.y - A * 0.25, R.stopx = R.startx + R.width + 2 * A, R.stopy = R.starty + R.height + A * 0.75, R.stroke = "rgb(0,0,0, 0.5)", F.drawBox(_, R, c);
4005
- }
4006
- L && m.bumpVerticalPos(c.boxMargin);
4007
- let Q = qe(_, g, O, p), { bounds: K } = m.getBounds();
4008
- K.startx === void 0 && (K.startx = 0), K.starty === void 0 && (K.starty = 0), K.stopx === void 0 && (K.stopx = 0), K.stopy === void 0 && (K.stopy = 0);
4009
- let rt = K.stopy - K.starty;
4010
- rt < Q.maxHeight && (rt = Q.maxHeight);
4011
- let tt = rt + 2 * c.diagramMarginY;
4012
- c.mirrorActors && (tt = tt - c.boxMargin + c.bottomMarginAdj);
4013
- let Y = K.stopx - K.startx;
4014
- Y < Q.maxWidth && (Y = Q.maxWidth);
4015
- let D = Y + 2 * c.diagramMarginX;
4016
- f && _.append("text").text(f).attr("x", (K.stopx - K.startx) / 2 - 2 * c.diagramMarginX).attr("y", -25), aa(_, tt, D, c.useMaxWidth);
4017
- let Lt = f ? 40 : 0, Dt = g.size && s === "neo" ? 30 : 0;
4018
- _.attr("viewBox", K.startx - c.diagramMarginX + " -" + (c.diagramMarginY + Lt) + " " + D + " " + (tt + Lt + Dt)), at.debug("models:", m.models);
4019
- }, "draw");
4020
- async function Ue(e, t, r) {
4021
- let a = {};
4022
- for (let i of t) if (e.get(i.to) && e.get(i.from)) {
4023
- let o = e.get(i.to);
4024
- if (i.placement === r.db.PLACEMENT.LEFTOF && !o.prevActor || i.placement === r.db.PLACEMENT.RIGHTOF && !o.nextActor) continue;
4025
- let s = i.placement !== void 0, l = !s, E = s ? It(c) : bt(c), d = i.wrap ? G.wrapLabel(i.message, c.width - 2 * c.wrapPadding, E) : i.message, p = (X(d) ? await At(i.message, Z()) : G.calculateTextDimensions(d, E)).width + 2 * c.wrapPadding;
4026
- l && i.from === o.nextActor ? a[i.to] = S.getMax(a[i.to] || 0, p) : l && i.from === o.prevActor ? a[i.from] = S.getMax(a[i.from] || 0, p) : l && i.from === i.to ? (a[i.from] = S.getMax(a[i.from] || 0, p / 2), a[i.to] = S.getMax(a[i.to] || 0, p / 2)) : i.placement === r.db.PLACEMENT.RIGHTOF ? a[i.from] = S.getMax(a[i.from] || 0, p) : i.placement === r.db.PLACEMENT.LEFTOF ? a[o.prevActor] = S.getMax(a[o.prevActor] || 0, p) : i.placement === r.db.PLACEMENT.OVER && (o.prevActor && (a[o.prevActor] = S.getMax(a[o.prevActor] || 0, p / 2)), o.nextActor && (a[i.from] = S.getMax(a[i.from] || 0, p / 2)));
4027
- }
4028
- return at.debug("maxMessageWidthPerActor:", a), a;
4029
- }
4030
- y(Ue, "getMaxMessageWidthPerActor");
4031
- var Ja = /* @__PURE__ */ y(function(e) {
4032
- let t = 0, r = ee(c);
4033
- for (let a in e.links) {
4034
- let i = G.calculateTextDimensions(a, r).width + 2 * c.wrapPadding + 2 * c.boxMargin;
4035
- t < i && (t = i);
4036
- }
4037
- return t;
4038
- }, "getRequiredPopupWidth");
4039
- async function je(e, t, r) {
4040
- let a = 0;
4041
- for (let o of e.keys()) {
4042
- let s = e.get(o);
4043
- s.wrap && (s.description = G.wrapLabel(s.description, c.width - 2 * c.wrapPadding, ee(c)));
4044
- let l = X(s.description) ? await At(s.description, Z()) : G.calculateTextDimensions(s.description, ee(c));
4045
- s.width = s.wrap ? c.width : S.getMax(c.width, l.width + 2 * c.wrapPadding), s.height = s.wrap ? S.getMax(l.height, c.height) : c.height, a = S.getMax(a, s.height);
4046
- }
4047
- for (let o in t) {
4048
- let s = e.get(o);
4049
- if (!s) continue;
4050
- let l = e.get(s.nextActor);
4051
- if (!l) {
4052
- let d = t[o] + c.actorMargin - s.width / 2;
4053
- s.margin = S.getMax(d, c.actorMargin);
4054
- continue;
4055
- }
4056
- let E = t[o] + c.actorMargin - s.width / 2 - l.width / 2;
4057
- s.margin = S.getMax(E, c.actorMargin);
4058
- }
4059
- let i = 0;
4060
- return r.forEach((o) => {
4061
- let s = bt(c), l = o.actorKeys.reduce((_, g) => _ += e.get(g).width + (e.get(g).margin || 0), 0), E = c.boxMargin * 8;
4062
- l += E, l -= 2 * c.boxTextMargin, o.wrap && (o.name = G.wrapLabel(o.name, l - 2 * c.wrapPadding, s));
4063
- let d = G.calculateTextDimensions(o.name, s);
4064
- i = S.getMax(d.height, i);
4065
- let p = S.getMax(l, d.width + 2 * c.wrapPadding);
4066
- if (o.margin = c.boxTextMargin, l < p) {
4067
- let _ = (p - l) / 2;
4068
- o.margin += _;
4069
- }
4070
- }), r.forEach((o) => o.textMaxHeight = i), S.getMax(a, c.height);
4071
- }
4072
- y(je, "calculateActorMargins");
4073
- var Za = /* @__PURE__ */ y(async function(e, t, r) {
4074
- let a = t.get(e.from), i = t.get(e.to), o = a.x, s = i.x, l = e.wrap && e.message, E = X(e.message) ? await At(e.message, Z()) : G.calculateTextDimensions(l ? G.wrapLabel(e.message, c.width, It(c)) : e.message, It(c)), d = {
4075
- width: l ? c.width : S.getMax(c.width, E.width + 2 * c.noteMargin),
4076
- height: 0,
4077
- startx: a.x,
4078
- stopx: 0,
4079
- starty: 0,
4080
- stopy: 0,
4081
- message: e.message
4082
- };
4083
- return e.placement === r.db.PLACEMENT.RIGHTOF ? (d.width = l ? S.getMax(c.width, E.width) : S.getMax(a.width / 2 + i.width / 2, E.width + 2 * c.noteMargin), d.startx = o + (a.width + c.actorMargin) / 2) : e.placement === r.db.PLACEMENT.LEFTOF ? (d.width = l ? S.getMax(c.width, E.width + 2 * c.noteMargin) : S.getMax(a.width / 2 + i.width / 2, E.width + 2 * c.noteMargin), d.startx = o - d.width + (a.width - c.actorMargin) / 2) : e.to === e.from ? (E = G.calculateTextDimensions(l ? G.wrapLabel(e.message, S.getMax(c.width, a.width), It(c)) : e.message, It(c)), d.width = l ? S.getMax(c.width, a.width) : S.getMax(a.width, c.width, E.width + 2 * c.noteMargin), d.startx = o + (a.width - d.width) / 2) : (d.width = Math.abs(o + a.width / 2 - (s + i.width / 2)) + c.actorMargin, d.startx = o < s ? o + a.width / 2 - c.actorMargin / 2 : s + i.width / 2 - c.actorMargin / 2), l && (d.message = G.wrapLabel(e.message, d.width - 2 * c.wrapPadding, It(c))), at.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
4084
- }, "buildNoteModel"), Qa = 4, Qt = /* @__PURE__ */ y(function(e, t) {
4085
- let { CENTRAL_CONNECTION: r, CENTRAL_CONNECTION_REVERSE: a, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
4086
- return [
4087
- r,
4088
- a,
4089
- i
4090
- ].includes(e.centralConnection);
4091
- }, "hasCentralConnection"), tr = /* @__PURE__ */ y(function(e, t, r) {
4092
- let { CENTRAL_CONNECTION_REVERSE: a, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: o, BIDIRECTIONAL_DOTTED: s } = t.db.LINETYPE, l = 0;
4093
- return (e.centralConnection === a || e.centralConnection === i) && (l += Qa), (e.centralConnection === a || e.centralConnection === i) && (e.type === o || e.type === s) && (l += r ? 0 : -6), l;
4094
- }, "calculateCentralConnectionOffset"), Ge = /* @__PURE__ */ y(function(e, t) {
4095
- let { SOLID_ARROW_TOP_REVERSE: r, SOLID_ARROW_TOP_REVERSE_DOTTED: a, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: o, STICK_ARROW_TOP_REVERSE: s, STICK_ARROW_TOP_REVERSE_DOTTED: l, STICK_ARROW_BOTTOM_REVERSE: E, STICK_ARROW_BOTTOM_REVERSE_DOTTED: d } = t.db.LINETYPE;
4096
- return [
4097
- r,
4098
- a,
4099
- i,
4100
- o,
4101
- s,
4102
- l,
4103
- E,
4104
- d
4105
- ].includes(e.type);
4106
- }, "isReverseArrowType"), er = /* @__PURE__ */ y(function(e, t) {
4107
- let { BIDIRECTIONAL_SOLID: r, BIDIRECTIONAL_DOTTED: a } = t.db.LINETYPE;
4108
- return [r, a].includes(e.type);
4109
- }, "isBidirectionalArrowType"), ar = /* @__PURE__ */ y(function(e, t, r) {
4110
- let { look: a } = Z();
4111
- if (![
4112
- r.db.LINETYPE.SOLID_OPEN,
4113
- r.db.LINETYPE.DOTTED_OPEN,
4114
- r.db.LINETYPE.SOLID,
4115
- r.db.LINETYPE.SOLID_TOP,
4116
- r.db.LINETYPE.SOLID_BOTTOM,
4117
- r.db.LINETYPE.STICK_TOP,
4118
- r.db.LINETYPE.STICK_BOTTOM,
4119
- r.db.LINETYPE.SOLID_TOP_DOTTED,
4120
- r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4121
- r.db.LINETYPE.STICK_TOP_DOTTED,
4122
- r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4123
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4124
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4125
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4126
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4127
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4128
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4129
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4130
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4131
- r.db.LINETYPE.DOTTED,
4132
- r.db.LINETYPE.SOLID_CROSS,
4133
- r.db.LINETYPE.DOTTED_CROSS,
4134
- r.db.LINETYPE.SOLID_POINT,
4135
- r.db.LINETYPE.DOTTED_POINT,
4136
- r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4137
- r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4138
- ].includes(e.type)) return {};
4139
- let [i, o] = Me(e.from, t), [s, l] = Me(e.to, t), E = i <= s, d = E ? o : i, p = E ? s : l;
4140
- a === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (p += E ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (d += E ? 3 : -3)), d += tr(e, r, E);
4141
- let _ = Math.abs(s - l) > 2, g = /* @__PURE__ */ y((O) => E ? -O : O, "adjustValue");
4142
- e.from === e.to ? p = d : (e.activate && !_ && (p += g(c.activationWidth / 2 - 1)), [
4143
- r.db.LINETYPE.SOLID_OPEN,
4144
- r.db.LINETYPE.DOTTED_OPEN,
4145
- r.db.LINETYPE.STICK_TOP,
4146
- r.db.LINETYPE.STICK_BOTTOM,
4147
- r.db.LINETYPE.STICK_TOP_DOTTED,
4148
- r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4149
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4150
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4151
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4152
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4153
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4154
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4155
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4156
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4157
- ].includes(e.type) || (p += g(3)), [
4158
- r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4159
- r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4160
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4161
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4162
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4163
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4164
- ].includes(e.type) && (d -= g(3)));
4165
- let I = [
4166
- i,
4167
- o,
4168
- s,
4169
- l
4170
- ], T = Math.abs(d - p);
4171
- e.wrap && e.message && (e.message = G.wrapLabel(e.message, S.getMax(T + 2 * c.wrapPadding, c.width), bt(c)));
4172
- let u = G.calculateTextDimensions(e.message, bt(c));
4173
- return {
4174
- width: S.getMax(e.wrap ? 0 : u.width + 2 * c.wrapPadding, T + 2 * c.wrapPadding, c.width),
4175
- height: 0,
4176
- startx: d,
4177
- stopx: p,
4178
- starty: 0,
4179
- stopy: 0,
4180
- message: e.message,
4181
- type: e.type,
4182
- wrap: e.wrap,
4183
- fromBounds: Math.min.apply(null, I),
4184
- toBounds: Math.max.apply(null, I)
4185
- };
4186
- }, "buildMessageModel"), rr = /* @__PURE__ */ y(async function(e, t, r, a) {
4187
- let i = {}, o = [], s, l, E;
4188
- for (let d of e) {
4189
- switch (d.type) {
4190
- case a.db.LINETYPE.LOOP_START:
4191
- case a.db.LINETYPE.ALT_START:
4192
- case a.db.LINETYPE.OPT_START:
4193
- case a.db.LINETYPE.PAR_START:
4194
- case a.db.LINETYPE.PAR_OVER_START:
4195
- case a.db.LINETYPE.CRITICAL_START:
4196
- case a.db.LINETYPE.BREAK_START:
4197
- o.push({
4198
- id: d.id,
4199
- msg: d.message,
4200
- from: 2 ** 53 - 1,
4201
- to: -9007199254740991,
4202
- width: 0
4203
- });
4204
- break;
4205
- case a.db.LINETYPE.ALT_ELSE:
4206
- case a.db.LINETYPE.PAR_AND:
4207
- case a.db.LINETYPE.CRITICAL_OPTION:
4208
- d.message && (s = o.pop(), i[s.id] = s, i[d.id] = s, o.push(s));
4209
- break;
4210
- case a.db.LINETYPE.LOOP_END:
4211
- case a.db.LINETYPE.ALT_END:
4212
- case a.db.LINETYPE.OPT_END:
4213
- case a.db.LINETYPE.PAR_END:
4214
- case a.db.LINETYPE.CRITICAL_END:
4215
- case a.db.LINETYPE.BREAK_END:
4216
- s = o.pop(), i[s.id] = s;
4217
- break;
4218
- case a.db.LINETYPE.ACTIVE_START:
4219
- {
4220
- let p = t.get(d.from ? d.from : d.to.actor), _ = qt(d.from ? d.from : d.to.actor).length, g = p.x + p.width / 2 + (_ - 1) * c.activationWidth / 2, I = {
4221
- startx: g,
4222
- stopx: g + c.activationWidth,
4223
- actor: d.from,
4224
- enabled: !0
4225
- };
4226
- m.activations.push(I);
4227
- }
4228
- break;
4229
- case a.db.LINETYPE.ACTIVE_END: {
4230
- let p = m.activations.map((_) => _.actor).lastIndexOf(d.from);
4231
- m.activations.splice(p, 1).splice(0, 1);
4232
- }
4233
- }
4234
- d.placement === void 0 ? (E = ar(d, t, a), d.msgModel = E, E.startx && E.stopx && o.length > 0 && o.forEach((p) => {
4235
- if (s = p, E.startx === E.stopx) {
4236
- let _ = t.get(d.from), g = t.get(d.to);
4237
- s.from = S.getMin(_.x - E.width / 2, _.x - _.width / 2, s.from), s.to = S.getMax(g.x + E.width / 2, g.x + _.width / 2, s.to), s.width = S.getMax(s.width, Math.abs(s.to - s.from)) - c.labelBoxWidth;
4238
- } else s.from = S.getMin(E.startx, s.from), s.to = S.getMax(E.stopx, s.to), s.width = S.getMax(s.width, E.width) - c.labelBoxWidth;
4239
- })) : (l = await Za(d, t, a), d.noteModel = l, o.forEach((p) => {
4240
- s = p, s.from = S.getMin(s.from, l.startx), s.to = S.getMax(s.to, l.startx + l.width), s.width = S.getMax(s.width, Math.abs(s.from - s.to)) - c.labelBoxWidth;
4241
- }));
4242
- }
4243
- return m.activations = [], at.debug("Loop type widths:", i), i;
4244
- }, "calculateLoopBounds"), nr = {
4245
- parser: ya,
4246
- get db() {
4247
- return new ba();
4248
- },
4249
- renderer: {
4250
- bounds: m,
4251
- drawActors: ae,
4252
- drawActorsPopup: qe,
4253
- setConf: He,
4254
- draw: Xa
4255
- },
4256
- styles: ma,
4257
- init: /* @__PURE__ */ y((e) => {
4258
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, ea({ sequence: { wrap: e.wrap } }));
4259
- }, "init")
4260
- };
4261
- export {
4262
- nr as diagram
4263
- };