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